Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: .HuNTeR. on August 27, 2008, 12:59:06 AM

Title: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on August 27, 2008, 12:59:06 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1319)
By Shahriar Gholami
This mod will install AjaxChat (https://blueimp.net/ajax/) on your smf.

Tested on freshly installed smf 1.1.10/2.0 RC1.2

~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Demo (http://chat.ecobytes.net/)
username:admin
password:admin

Features:
Adds a button to chat system in default theme.
Access/Moderate permission.(https://www.simplemachines.org/community/Themes/smsite/images/english-utf8/new.gif)
chat in a pop up page or a regular page.
Shows the number of chating users in:
    1. Online Users section.
    2. Beside of chat button.
    3. Below of total time logged in.
    number 2 and 3 can disabled.

adds a shoutbox.(you can disable it)
    View/Shout/Moderate permission.(https://www.simplemachines.org/community/Themes/smsite/images/english-utf8/new.gif)
    can set to only in index page or all pages.
    compatible with your theme.
    Bold Italic Underline bb codes and smiley.
    collapsible.
    can integrate shout box and chat room to work together and show same conversation.


thanks mrtrc266 (http://index.php?action=profile;u=178448) for his great support on this mod.
Title: Re: AjaxChat Integration
Post by: 4Kstore on August 27, 2008, 01:13:31 AM
Thanks, this is a beatiful mod.

Spanish Traduction:

//Users in chat
$txt['user_in_chat']=' Usuario en el Chat:';
$txt['users_in_chat']='Usuarios en el Chat:';
$txt['no_user_in_chat']='No hay usuarios en el chat';



Baiis (!)
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on August 27, 2008, 04:52:58 AM
thanks 4kstore
spanish translation added

if anynody have an idea for new features i will be glad to know
Title: Re: AjaxChat Integration
Post by: senyorito on August 27, 2008, 07:46:29 AM
Is there a demo site?
Title: Re: AjaxChat Integration
Post by: Kimmie on August 27, 2008, 02:52:15 PM
tried to click the link in the original post but the site wont load. Can you post screenshots of what this is supposed to look like? Where does the chat show up? Are there any admin settings for it?
Title: Re: AjaxChat Integration
Post by: ron351 on August 27, 2008, 11:21:51 PM
I installed this and the ajax chat but don't seem to see how to get a link to the chat to become available.
I have added the lines to the boardindex template and boardindex and language file.
I do see where it says at the bottom of the forum that no one is in chat.
But how in the world do I get something easy for my users to enter the ajax chat?
I am using a theme by Nesianstyles called Blackday which I don't think would make a difference.
Any suggestions on what to do to get this chat going easily for my users?
I tink it is a super mod if I can get it to run from my forum.
I have 1.15 version.
Thanks Ron
Title: Re: AjaxChat Integration
Post by: mashby on August 27, 2008, 11:26:14 PM
I installed ajaxchat and then this mod. I put a link in the Global Headers and Footers mod (in the footer) to make the link available on any page. I absolutely love this one. Top notch and well integrated with SMF. A+(infinity)
Title: Re: AjaxChat Integration
Post by: Urbanite on August 28, 2008, 12:19:08 PM
I don't want to pour cold water on anybody's Mod as I am of the opinion that if Modders go to the effort of putting it together they deserve a lot of praise, so great work Shahriar!

Just throwing my opinion into the mix; my recent post on the various "Chat Mods" have all been related to servers and loads that any server side chat brings to bear on your server.

This is a quote straight from the ajax-chat wiki "If you want to have a real chat server you should go for IRC or Jabber. (http://ajax-chat.wiki.sourceforge.net/Server+load)"

Just to advise anyone who may want to have a 'sizeable chat' on their site that you need to be looking into these as opposed to 'hosting your own chat'

The limitations are in and around ~50 concurrent users for most shared servers although with the ajax-chat there is the means to increase the 'live chat' delay, so these bounds can in theory at least be extended.

It's all good right?


Title: Re: AjaxChat Integration
Post by: n0s4ra2 on August 28, 2008, 01:05:28 PM
Thank you so much I have tried to figure this out for days. Finally a mod for it. Thank you.

I am having one problem I'm using a different theme and I got it working but on my index page it shows the user in chat and how many it just doesn't show the words (user in chat)
Title: Re: AjaxChat Integration
Post by: n0s4ra2 on August 28, 2008, 01:16:28 PM
I fixed it in the manual instructions it hast to change --------Modifications.english.php
But my board is using a file labeled -------Modifications.english-utf8.php

Thanks again for this mod
Title: Re: AjaxChat Integration
Post by: Lady Bug on September 03, 2008, 11:31:41 AM
Does anyone know what kind of bandwidth this Ajax program consumes?
Title: Re: AjaxChat Integration
Post by: Normano on September 03, 2008, 12:03:52 PM
I like the mod, if I could get it working
swedish translated
//Users in chat
$txt['user_in_chat']=' Användaren är i chatten:';
$txt['users_in_chat']=' Användare i chatten:';
$txt['no_user_in_chat']=' Inga användare är i chatten.';
Title: Re: AjaxChat Integration
Post by: mashby on September 03, 2008, 07:54:09 PM
Initially I had this linked in the footer using the Global Headers/Footers mod and it's working great there. I wanted to make this a tab though that works like the PM tab, so if 3 people are in chat, the tab would read CHAT[3]. And with no one in there, it would just read CHAT. I have the tab logic down to accomplish this, but I think I need to globalize the context. At the moment, the context only works when on the FORUMS tab as the context is defined on the BoardIndex.template file (I also have TinyPortal installed, so it's not the HOME tab). Where should I put the code to make the context global?
(I'm running 1.1.5 with many mods.)
Title: Re: AjaxChat Integration
Post by: mashby on September 04, 2008, 12:13:42 AM
I ended up putting the code from the code inserted on the BoardIndex source file in the index.template file for all of the themes I have installed. Is there a danger in putting database calls in a file NOT in the /Sources/ folder? It's working like a charm, but I'm left wondering if putting DB calls in a theme file is OK from a security standpoint.
Title: Re: AjaxChat Integration
Post by: edi67 on September 04, 2008, 02:13:04 AM
intersting i hope to see soon release for smf 2.0 thx
Title: Re: AjaxChat Integration
Post by: kifow on September 04, 2008, 06:17:13 AM
I installed it succefully but In the forum index page i have this error:
Table 'myBD.ajax_chat_online' doesn't exist
Archivo: /home/myFTP/public_html/foro/Sources/BoardIndex.php
Línea: 346
Title: Re: AjaxChat Integration
Post by: Smythe on September 04, 2008, 10:42:31 AM
Wish someone would update this.... I need to see how Ajax is supposed to look when integrated into SMF.
I tried it on my own once and was not over thrilled with the end results. Might have done it wrong....

Anyone ???
Title: Re: AjaxChat Integration
Post by: bfeo on September 06, 2008, 09:37:44 AM
This seems better than IRC, and it shouldn't matter either way if you have sufficient web resources for your website.
Title: Re: AjaxChat Integration
Post by: cfp85 on September 06, 2008, 02:14:58 PM
Quote from: ron351 on August 27, 2008, 11:21:51 PM
I installed this and the ajax chat but don't seem to see how to get a link to the chat to become available.
I have added the lines to the boardindex template and boardindex and language file.
I do see where it says at the bottom of the forum that no one is in chat.
But how in the world do I get something easy for my users to enter the ajax chat?
I am using a theme by Nesianstyles called Blackday which I don't think would make a difference.
Any suggestions on what to do to get this chat going easily for my users?
I tink it is a super mod if I can get it to run from my forum.
I have 1.15 version.
Thanks Ron

i just installed it and having the same thing .. version 1.1.5 with default theme
Title: Re: AjaxChat Integration
Post by: Smythe on September 06, 2008, 02:44:15 PM
the irc is nice and might be the way to go to alleviate bandwidth issues, but bear in mind you might want to set up a permanent bot in the room you create in IRC  to keep peeps from stealing the room from you and what have ya.

Alternatively, FlashChat integration is pretty simple and from what I can see works great. Works just like IRC chat with more control. You can set up private rooms with passwords, you can set it up as a customer service type chat with a que. Also it pulls all the user data from your site so when people click the chat button, it logs them in no problem ... or they can log in separately with the login and password they already have within the site. Transfers admins in too!!  :D , and little bandwidth usage.... so far. Its $5 buck to obtain and sometimes you can find it floating out there on the internet too....  ;D .... come on tho.... $5 bucks.... thats a steal in itself. I had mine up and running in no time, and it can be integrated right into the theme of your site ......Highly recommend it.
Title: Re: AjaxChat Integration
Post by: bfeo on September 06, 2008, 03:33:45 PM
I installed the chat, and I get this above the chat area, and I'm also not able to log in.  It tells me that my username is invalid. 


Warning: mysqli::mysqli() [function.mysqli-mysqli]: (28000/1045): Access denied for user 'root'@'localhost' (using password: NO) in /home/bfeo/public_html/forum/chat/lib/class/AJAXChatMySQLiDataBase.php on line 29

Warning: mysqli::select_db() [function.mysqli-select-db]: Couldn't fetch mysqli in /home/bfeo/public_html/forum/chat/lib/class/AJAXChatMySQLiDataBase.php on line 40

Warning: AJAXChatDataBaseMySQLi::select() [function.AJAXChatDataBaseMySQLi-select]: Couldn't fetch mysqli in /home/bfeo/public_html/forum/chat/lib/class/AJAXChatMySQLiDataBase.php on line 41

Warning: AJAXChatDataBaseMySQLi::select() [function.AJAXChatDataBaseMySQLi-select]: Couldn't fetch mysqli in /home/bfeo/public_html/forum/chat/lib/class/AJAXChatMySQLiDataBase.php on line 42

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/bfeo/public_html/forum/chat/lib/class/AJAXChatMySQLiDataBase.php:29) in /home/bfeo/public_html/forum/chat/lib/class/AJAXChat.php on line 2466

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/bfeo/public_html/forum/chat/lib/class/AJAXChatMySQLiDataBase.php:29) in /home/bfeo/public_html/forum/chat/lib/class/AJAXChat.php on line 2466

Warning: Cannot modify header information - headers already sent by (output started at /home/bfeo/public_html/forum/chat/lib/class/AJAXChatMySQLiDataBase.php:29) in /home/bfeo/public_html/forum/chat/lib/class/AJAXChatHTTPHeader.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/bfeo/public_html/forum/chat/lib/class/AJAXChatMySQLiDataBase.php:29) in /home/bfeo/public_html/forum/chat/lib/class/AJAXChatHTTPHeader.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/bfeo/public_html/forum/chat/lib/class/AJAXChatMySQLiDataBase.php:29) in /home/bfeo/public_html/forum/chat/lib/class/AJAXChatHTTPHeader.php on line 41

Warning: Cannot modify header information - headers already sent by (output started at /home/bfeo/public_html/forum/chat/lib/class/AJAXChatMySQLiDataBase.php:29) in /home/bfeo/public_html/forum/chat/lib/class/AJAXChatHTTPHeader.php on line 45

Title: Re: AjaxChat Integration
Post by: The Saviour on September 06, 2008, 08:11:12 PM
Quote from: Smythe on September 06, 2008, 02:44:15 PM
the irc is nice and might be the way to go to alleviate bandwidth issues, but bear in mind you might want to set up a permanent bot in the room you create in IRC  to keep peeps from stealing the room from you and what have ya.

Alternatively, FlashChat integration is pretty simple and from what I can see works great. Works just like IRC chat with more control. You can set up private rooms with passwords, you can set it up as a customer service type chat with a que. Also it pulls all the user data from your site so when people click the chat button, it logs them in no problem ... or they can log in separately with the login and password they already have within the site. Transfers admins in too!!  :D , and little bandwidth usage.... so far. Its $5 buck to obtain and sometimes you can find it floating out there on the internet too....  ;D .... come on tho.... $5 bucks.... thats a steal in itself. I had mine up and running in no time, and it can be integrated right into the theme of your site ......Highly recommend it.

I'd also recommend FlashChat over this mod...due to the Admin settings and integration within SMF...as well as the button added to navigation and the number of users in chat.

This mod has a way to go before it can be ranked up there with the big boys.

FlashChat...$5...can't beat it!
Title: Re: AjaxChat Integration
Post by: bfeo on September 07, 2008, 11:05:26 PM
Nice to see my support inquiry be entirely ignored over a subject that makes little difference.  Either one will put some strain on your forums.  It's really aesthetic preference.
Title: Re: AjaxChat Integration
Post by: bfeo on September 08, 2008, 08:52:44 AM
This error isn't from the package, it's from the ajax chat, which installed perfectly fine on my brother's site.  I'm not gonna install this mod if I can't get the bat working...
Title: Re: AjaxChat Integration
Post by: bfeo on September 08, 2008, 02:45:05 PM
Mind directing me to a support forum specifically for the chat?  I've tried directly contacting the authors, but it has been a month and no reply has been made.
Title: Re: AjaxChat Integration
Post by: edi67 on September 11, 2008, 05:58:25 AM
I added code in index.template.php too for view the user in chat under menu, everything work ok but i have a lot of these errors:
8: Undefined index: users_in_chat_links
Riga: 555


this is line 555:     if(count($context['users_in_chat_links'])==0)

some solution ? i think is missing this part that i have in boardindex.php:
//users in chat
$result = db_query("SELECT userID,userName FROM ajax_chat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)", __FILE__, __LINE__);
$context['users_in_chat_links'] = array();
while ($row = mysql_fetch_assoc($result))
{
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userID'] ;
if(isset($context['online_groups'][$row['userID']]['color'])){
$link.= '" style="color: ' . $context['online_groups'][$row['userID']]['color'];
}
$link.= '">' . $row['userName'] . '</a>';
    array_push($context['users_in_chat_links'], $link);
}
mysql_free_result($result);


some solution?
Title: Re: AjaxChat Integration
Post by: TC Carl on September 12, 2008, 11:12:29 AM
I've fooled around with this mod package as well, trying to get the 'users in chat information' up in the top header for every page. It worked when clicking the HOME button but returned "No users in chat" for all other operations, and also loaded up the error log as described earlier.

Since we are a small site, and would not have more than 10 users in chat at any time, this package works well for me. All I'd like to do is get the users information moved from the bottom of the home screen, up into the header where it can be seen at all times.

Rereading this thread, it seems doable, and many of us seem to be close, but I haven't seen the right solution yet. I know enough about programming to understand the scoping of variables, but not enough about php in general. I don't mind hacking along until I either get lucky or discover what I need to know, although I have other, more pressing issues to deal with, outside of this.

If any of the more regular coders want to provide some details on this enhancement, it would be appreciated by at least one of us, and likely several more. As usual with my requests, time is not of the essence, we're up and running and doing just fine, thanks to the stability of SMF in general.

Carl

Title: Re: AjaxChat Integration
Post by: .HuNTeR. on September 14, 2008, 04:35:48 AM
edi67 please attach your BoardIndex.template.php and BoardIndex.php
i think you missed something
and TC Carl i should see your code too
Title: Re: AjaxChat Integration
Post by: TC Carl on September 14, 2008, 09:40:22 AM
Basically, I lifted the code from this modification, the first part that was supposed to be in BoardIndex.template.php (which puts the data at the bottom of the screen) and copied it into the default theme's index.template.php --  my addition is clearly marked:


// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="43200">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}

// begin TC CARL mod move chat data up here

// users in chat
  if(count($context['users_in_chat_links'])==0)
  {
  echo '<br />' . $txt['no_user_in_chat'];
  }elseif(count($context['users_in_chat_links'])==1)
  {
  echo '<br />  1' . $txt['user_in_chat']. '<br />', implode($context['users_in_chat_links']);
  }else
  {
  echo '<br /> ' . count($context['users_in_chat_links']). $txt['users_in_chat']. '<br />', implode(', ', $context['users_in_chat_links']);
  }

// end TC CARL mod move chat data up here


echo '
</td>';
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads = show_welcomeAds();



The error I get in the forum error log is:

8: Undefined index: users_in_chat_links
File: /forum/Themes/default/Packages.template.php (eval?)
Line: 340

The file listed changes, it can be

File: /forum/Themes/default/Admin.template.php (eval?)
File: /forum/Themes/default/Errors.template.php (eval?)
File: /forum/Themes/default/Login.template.php (eval?)
File: /forum/Themes/default/Recent.template.php (eval?)



This was a cheap attempt to get the chat user data up into the header, and probably violates a boxful of rules. Maybe this is just a variable scoping issue, I seem to know enough to get myself in trouble, so I do all of this on a "practice" simulator site first.  This might be the only sensible thing I do!

Carl


Title: Re: AjaxChat Integration
Post by: bfeo on September 18, 2008, 10:26:46 AM
Any ways of speeding the chat up some?  Some members are complaining about the 3 second delay.
Title: Re: AjaxChat Integration
Post by: bfeo on September 18, 2008, 10:33:39 AM
nvm.  modified

  // The time in ms between update calls to retrieve new chat messages:
   timerRate: 2000,

in config.js

2000=2 seconds and is default.  I changed to 500, half a sec, 4x as fast, and it seems to have greatly increased speed.  Causes larger load on server, but if you can handle it, you could make this ridiculously fast.
Title: Re: AjaxChat Integration
Post by: Running With Scissors on September 18, 2008, 01:42:02 PM
Is there any way to make this work with 2.0 beta 4?
Title: Re: AjaxChat Integration
Post by: DSollick on September 20, 2008, 11:25:49 AM
Quote from: kifow on September 04, 2008, 06:17:13 AM
I installed it succefully but In the forum index page i have this error:
Table 'myBD.ajax_chat_online' doesn't exist
Archivo: /home/myFTP/public_html/foro/Sources/BoardIndex.php
Línea: 346

I've had the same issue -- any idea on a fix?  I've poked around in BoardIndex.php and parsed the package and I don't even see a query to make the table in question, which makes me wonder how anybody ever got it to work :P

Error is showing up in the database query in the beginning here.

//users in chat
$result = db_query("SELECT userID,userName FROM ajax_chat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)", __FILE__, __LINE__);
$context['users_in_chat_links'] = array();
while ($row = mysql_fetch_assoc($result))
{
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['userID'] ;
if(isset($context['online_groups'][$row['userID']]['color'])){
$link.= '" style="color: ' . $context['online_groups'][$row['userID']]['color'];
}
$link.= '">' . $row['userName'] . '</a>';
    array_push($context['users_in_chat_links'], $link);
}
mysql_free_result($result);


On a mildly related note, is it worth trying to get this to work at all?  Reading through, I'm just wondering if there are not better packages for integrated chat [I have AChat right now but it's ancient and works poorly].
Title: Re: AjaxChat Integration
Post by: jrdollesin on September 22, 2008, 12:44:20 AM
Quote from: ron351 on August 27, 2008, 11:21:51 PM
I installed this and the ajax chat but don't seem to see how to get a link to the chat to become available.
I have added the lines to the boardindex template and boardindex and language file.
I do see where it says at the bottom of the forum that no one is in chat.
But how in the world do I get something easy for my users to enter the ajax chat?
I am using a theme by Nesianstyles called Blackday which I don't think would make a difference.
Any suggestions on what to do to get this chat going easily for my users?
I tink it is a super mod if I can get it to run from my forum.
I have 1.15 version.
Thanks Ron

you need to download the package first, only then you can rev the mod successfully.

the package is here:

https://blueimp.net/ajax
Title: Re: AjaxChat Integration
Post by: jrdollesin on September 22, 2008, 12:47:45 AM
Quote from: kifow on September 04, 2008, 06:17:13 AM
I installed it succefully but In the forum index page i have this error:
Table 'myBD.ajax_chat_online' doesn't exist
Archivo: /home/myFTP/public_html/foro/Sources/BoardIndex.php
Línea: 346

install the package first then the mod.

that should get you going
Title: Re: AjaxChat Integration
Post by: DSollick on September 22, 2008, 12:59:16 AM
Quote from: jrdollesin on September 22, 2008, 12:47:45 AM
Quote from: kifow on September 04, 2008, 06:17:13 AM
I installed it succefully but In the forum index page i have this error:
Table 'myBD.ajax_chat_online' doesn't exist
Archivo: /home/myFTP/public_html/foro/Sources/BoardIndex.php
Línea: 346

install the package first then the mod.

that should get you going

Erm, the two processes aren't seperate.  o_O  Did you mean something else?
Title: Re: AjaxChat Integration
Post by: jrdollesin on September 24, 2008, 04:37:47 AM
the one you installed is exclusively for smf

the package i'm talking about is the main engine for the chat aside from the smf 'elixir'.

go to where you downloaded AjaxChat Integration, get the main package first aside from what makes it run for smf.

after which, only then you can install the smf module and run it well.
Title: Re: AjaxChat Integration
Post by: Dhekelian on September 24, 2008, 08:08:58 AM
I'm not to good at php but like having a go. Anyway I'm struggling getting this chat to show up. I have installed the main program and it is working as I went directly there through the browser. I then put the integration mod on and it hasn't done anything that I can see, I cannot get to the chat program from my forum. I assume there is nothing to turn on in the admin so I do not know what is up.

I am using the black & blue theme so this is the only thing I can point to. Any help would be great as I like the look of this.
Title: Re: AjaxChat Integration
Post by: Dhekelian on September 24, 2008, 10:24:02 AM
Update, before i log on to my forum it says at the bottom 0 users in chat but as soon as i log on it dissappears. Have you got to create a chat button and link it or something?

I am not sure what is wrong and would dearly love to have this as part of the forum but can't see it at all unless i go there via the browser.
Title: Re: AjaxChat Integration
Post by: Dhekelian on September 24, 2008, 02:56:03 PM
Is there any support at all for this mod?
Title: Re: AjaxChat Integration
Post by: esber on October 07, 2008, 01:25:45 PM
i need some serious help here. i installed the mod and all installed correctly but nothing happens after install......how do i get it to work?
Title: Re: AjaxChat Integration
Post by: The Saviour on October 07, 2008, 09:12:39 PM
This would be a great mod if the chat could be embedded into an SMF forum page...

...as it stands, you have to edit the chat templates with HTML or use an iframe...neither of which is suitable for the forum.

I've tested the chat and like it much better than FlashChat, after all.  However...the above is what is keeping me from using it on my forums.
Title: Re: AjaxChat Integration
Post by: metius84 on October 10, 2008, 08:03:09 PM
hello,
sorry, i've this problem.. someone can help me?

Table 'Sql100239_2.ajax_chat_online' doesn't exist
File: /web/htdocs/www.caorlotti.com/home/forum/Sources/BoardIndex.php
Line: 346
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on October 11, 2008, 02:52:32 AM
did you installed the chat before installing the mod?
Title: Re: AjaxChat Integration
Post by: ryozo on October 12, 2008, 08:52:41 PM
installed ajaxchat and installed this mod, perfectly.  :D
Title: Re: AjaxChat Integration
Post by: BarfBag on October 13, 2008, 09:59:34 AM
When I installed the AjaxChat Integration mod, my board became unusable.  Thankfully, uninstalling it brought my board back to life.  The error I got while it was down was:

Table 'che0801302144290.ajax_chat_online' doesn't exist
File: /home/content/r/b/r/rbrown1990/html/Sources/BoardIndex.php
Line: 359


What's this I read above about having to install AjaxChat before installing the integration mod?

I'm running SMF 1.1.6.  I can post a list of installed mods, or any board files upon request.
Title: Re: AjaxChat Integration
Post by: TC Carl on October 13, 2008, 10:11:06 AM
One would sort of assume if you are installing an integration mod, the pieces you are trying to integrate should already be there.

Title: Re: AjaxChat Integration
Post by: BarfBag on October 13, 2008, 10:18:29 AM
Quote from: TC Carl on October 13, 2008, 10:11:06 AM
One would sort of assume if you are installing an integration mod, the pieces you are trying to integrate should already be there.



Yeah.  lol  Is there a tutorial that shows how to do this?  I'm reading the official documentation, and it's going right over my head.  X_X
Title: Re: AjaxChat Integration
Post by: stingerman on October 14, 2008, 10:42:36 PM
The source is not showing up in my packages - version 1.16 default.

Maybe cant use it?

the mod does though (doesnt work without it?)
Title: Re: AjaxChat Integration
Post by: The Cadet on October 17, 2008, 01:12:35 PM
Quote from: TC Carl on October 13, 2008, 10:11:06 AM
One would sort of assume if you are installing an integration mod, the pieces you are trying to integrate should already be there.
wut

QuoteTable 'mtgda0_smf.ajax_chat_online' doesn't exist
File: /home/mtgda0/public_html/forums/Sources/BoardIndex.php
Line: 387

Er... I take it I should've installed the AJAX chat beforehand... How do I do this?
Title: Re: AjaxChat Integration
Post by: The Saviour on October 17, 2008, 01:22:24 PM
This mod never specifies you have to install Ajax Chat first...

It doesn't even tell you to visit the site...it just provides you with a link:  AjaxChat (https://blueimp.net/ajax/)

Go to that link for instructions on installing Ajax Chat.  Once you have it installed correctly, then you can use the mod as outlined by the original coder.

Problem with this mod is the lack of proper directions...and its misleading intro.

The only thing this mod does is to show the users in chat...once the chat has been installed.

The coder should update his directions...or SMF should review these submissions a little further before actually approving them for installation.
Title: Re: AjaxChat Integration
Post by: The Cadet on October 17, 2008, 02:21:37 PM
I got the chat set up. Installed the MOD. So forget my question.
Title: Re: AjaxChat Integration
Post by: TC Carl on October 17, 2008, 02:26:13 PM
I still think the mod is a helpful one, but I really need the "Who is in chat"
information to be in the user's header so it's always available from the forum.
Having it in the home screen footer means folks hardly never see it.

Any ideas on how to achieve this? Thanks!!

Carl
Title: Re: AjaxChat Integration
Post by: The Cadet on October 17, 2008, 02:31:23 PM
I have the problem that nothing I post on the chat comes up, I can't use commands, and logout/anything whatsoever doesn't work.
Title: Re: AjaxChat Integration
Post by: bfeo on October 17, 2008, 03:19:18 PM
Does anyone know how to get the Ruby socket working with the ajax chat?  I have SSH allowed by my host.
Title: Re: AjaxChat Integration
Post by: Hoodie on October 18, 2008, 12:05:12 AM
Anybody make any progress on how to add just the number of users on the index.template.php where you put the chat button in the menu.  i've tried a few things but get errors galore.
Title: Re: AjaxChat Integration
Post by: Daymon on October 19, 2008, 04:27:38 PM
I've got this mod up and running, but I cannot figure out a way to resize the browser window for the chat. I tried body onload,  and it does resize the window, but everything stops working when I use it. Does anyone know how to get this window resized?
Title: Re: AjaxChat Integration
Post by: TaTaM on October 23, 2008, 12:25:29 AM
How I use AJAX Chat as Shoutbox ?

I read readme.txt but I'm not understand  :-[


Shoutbox:
=========

AJAX Chat is also usable as shoutbox - this is a short guide on how to set it up:


1. Shoutbox stylesheet
----------------------

Add the following line to the stylesheet (CSS) of all pages displaying the shoutbox:

@import url("http://example.org/path/to/chat/css/shoutbox.css");

Replace http://example.org/path/to/chat/ with the URL to the chat.
Modify css/shoutbox.css to your liking.


2. Shoutbox function
--------------------

Add the following function to your PHP code:

<?php
function getShoutBoxContent() {
// URL to the chat directory:
if(!defined('AJAX_CHAT_URL')) {
define('AJAX_CHAT_URL''./chat/');
}

// Path to the chat directory:
if(!defined('AJAX_CHAT_PATH')) {
define('AJAX_CHAT_PATH'realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/');
}

// Validate the path to the chat:
if(@is_file(AJAX_CHAT_PATH.'lib/classes.php')) {

// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the shoutbox:
$ajaxChat = new CustomAJAXChatShoutBox();

// Parse and return the shoutbox template content:
return $ajaxChat->getShoutBoxContent();
}

return null;
}
?>


Make sure AJAX_CHAT_URL and AJAX_CHAT_PATH point to the chat directory.


2. Shoutbox output
------------------

Display the shoutbox content using the shoutbox function:

<div style="width:200px;"><?php echo getShoutBoxContent(); ?></div>


I have to edit which files ?

Please tell me  :'(
Title: Re: AjaxChat Integration
Post by: The Cadet on October 25, 2008, 03:10:53 PM
NOTHING is working on my chat. Should we use the SMF or normal AJAX Chat download? The SMF version doesn't work, the normal one won't integrate. Is there any support for this mod?
Title: Re: AjaxChat Integration
Post by: nay27uk on October 30, 2008, 08:45:08 AM
is ther any way of hiding the chat tab from guests, in other words i only want the chat button to be avaliable to loged in members
Title: Re: AjaxChat Integration
Post by: The Cadet on November 02, 2008, 04:42:45 AM
Is there support here?
Title: Re: AjaxChat Integration
Post by: AnotherDimension on November 02, 2008, 09:25:30 AM
I added flashchat but cant get a button to go there. I had to use version 5 and there is no where I can chance the url for the chat. Every chat integration mod I have tried has crashed my board....so I have flash chat tied to a thread since I cannot get a single chat button to actually go to my chat. Saying "find hswfdiuwyeihaflweyfkdyaweriaq" in 3million lines of non english is like a needle in a haystack....when is 2.0 going to be available for an auto-upgrade.
Title: Re: AjaxChat Integration
Post by: nodent on November 04, 2008, 08:00:30 AM
To get a button I added mod

Your Button 1.1   (http://custom.simplemachines.org/mods/index.php?mod=1206)

What file needs editing to get a shoutbox on the main page forum?
Title: Re: AjaxChat Integration
Post by: sarita on November 07, 2008, 02:44:45 AM
Hi,

I have installed AjaxChat_Integration_1.1 and ybutton1.2. But still nothing happens in my SMF. I am not able to see any button or any thing related to chat. I tried to download both ajax_chat-0.8.1.2.tar and ajax_chat-0.8.1.2_SMF.tar one by one but i got the error message : The package you tried to upload either is not a valid package or has become corrupted.

Please help me how will i get the chat to work. I really need it to be done.

Thanks,
Sarita
Title: Re: AjaxChat Integration
Post by: sarita on November 07, 2008, 03:56:51 AM
Hi

I after successful installation of AjaxChat_Integration_1.1 i got the following error on my index page:

Table 'smf.ajax_chat_online' doesn't exist
File: C:\xampp\htdocs\smf\Sources\BoardIndex.php
Line: 346

Please tell me how to solve this error. Also after installing ybutton1.2. although i got a chat tab but when i click on the tab i got the error page.

Please anyone help.

Thanks,
Sarita
Title: Re: AjaxChat Integration
Post by: sarita on November 07, 2008, 04:31:13 AM
Quote from: jrdollesin on September 22, 2008, 12:47:45 AM
Quote from: kifow on September 04, 2008, 06:17:13 AM
I installed it succefully but In the forum index page i have this error:
Table 'myBD.ajax_chat_online' doesn't exist
Archivo: /home/myFTP/public_html/foro/Sources/BoardIndex.php
Línea: 346

install the package first then the mod.

that should get you going

i have tried everything to get it work. I have 2 time uninstalled the smf also. but it wont work. I tried to install the chat package first from https://blueimp.net/ajax/ but it gives me the file corrupted error.

i am not getting what to do to work the ajax chat with the smf.

Title: Re: AjaxChat Integration
Post by: THUNDERxRAGE on November 08, 2008, 10:09:18 AM
I think this is the only chat mod that I can find to work with the latest SMF version.

I'm trying to install this, but I got an error.

Quote!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

QuoteInstalling this package will perform the following actions:  Type Action Description
1. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
2. Execute Modification ./Themes/default/Index.template.php File not found  
3. Execute Modification ./Sources/BoardIndex.php Test successful
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.persian.php Skipping file
6. Execute Modification ./Themes/default/languages/Modifications.Spanish.php Skipping file

www.americraze.net

Theme - NewBalance v2

Installed Mods

Quote1. Default Membergroup on Registration 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
2. Signature Settings Mod 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
3. Profile Comments 1.4   [ Uninstall ] [ List Files ] [ Delete ] 
4. AjaxChat Integration 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
5. Notify of posts and replys by default 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
6. Look But No Read 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
7. Disable_Decrease_Post_Count_Option 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. Enhance Recent Post 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
9. Ignore user 1.4   [ Uninstall ] [ List Files ] [ Delete ] 
10. Enhanced Profile 1.1.5   [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: AjaxChat Integration
Post by: THUNDERxRAGE on November 08, 2008, 10:23:08 AM
I think I need to install this first...

https://blueimp.net/ajax/

After reading posts on this thread.

Be back soon.

Downloaded the file from there, but SMF wouldn't accept it.

QuoteThe package manager currently allows only these file types: zip, tgz, tar.gz.

I noticed the file ending extension is .tar.tar and I tried to rezip them, but SMF thinks it is corrupt.  There is virtually no support existance over there on Ajax site.

Everytime I extract them and rezip them in so many ways, I keep getting...

QuoteThe package you tried to upload either is not a valid package or has become corrupted.
Title: Re: AjaxChat Integration
Post by: Hoodie on November 09, 2008, 09:35:24 PM
Quote from: THUNDERxRAGE on November 08, 2008, 10:23:08 AM
I think I need to install this first...

https://blueimp.net/ajax/

After reading posts on this thread.


You do need to install the main chat program..  The author of this mod needs to update his package for the file not found error during install..  It is "Index.template.php" currently..  SMF is picky and needs it to exactly be "index.template.php" without the I capitalized..
Title: Re: AjaxChat Integration
Post by: haito on November 10, 2008, 05:40:05 AM
Table 'a9055580_haito.ajax_chat_online' doesn't exist
File: /home/a9055580/public_html/Sources/BoardIndex.php
Line: 418

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.

==========================================
what should i do??
Title: Re: AjaxChat Integration
Post by: stingerman on November 12, 2008, 02:51:02 AM
Quote from: CustomChargersCarClub on November 09, 2008, 09:35:24 PM
Quote from: THUNDERxRAGE on November 08, 2008, 10:23:08 AM
I think I need to install this first...

https://blueimp.net/ajax/

After reading posts on this thread.


You do need to install the main chat program..  The author of this mod needs to update his package for the file not found error during install..  It is "Index.template.php" currently..  SMF is picky and needs it to exactly be "index.template.php" without the I capitalized..

Yeah, that is the problem I get.  Can we manually change it in the zip file somewhere?
Title: Re: AjaxChat Integration
Post by: flapjack on November 18, 2008, 08:26:41 PM
what do I need to do to have it integraded and showing up like Help or Calendar as one of the SMF pages?

thanks
Title: Re: AjaxChat Integration
Post by: Sabbz on November 30, 2008, 04:33:25 PM
Quote from: stingerman on November 12, 2008, 02:51:02 AM
Quote from: CustomChargersCarClub on November 09, 2008, 09:35:24 PM
Quote from: THUNDERxRAGE on November 08, 2008, 10:23:08 AM
I think I need to install this first...

https://blueimp.net/ajax/

After reading posts on this thread.


You do need to install the main chat program..  The author of this mod needs to update his package for the file not found error during install..  It is "Index.template.php" currently..  SMF is picky and needs it to exactly be "index.template.php" without the I capitalized..

Yeah, that is the problem I get.  Can we manually change it in the zip file somewhere?

Unzip the archive, and open the file 'install.xml' in an html/xml editing program. I used Dreamweaver CS3. Find <file name="$themedir/Index.template.php"> and change to <file name="$themedir/index.template.php">

Add all the files into a new zip archive and name it the same thing "AjaxChat_Integration_1.1.zip" and upload it via the package manager and install as normal. Works flawlessly now with no errors. ;)
Title: Re: AjaxChat Integration
Post by: WyckedDreamz on December 01, 2008, 05:27:44 AM
for everyone trying to install the actual Ajax chat via the SMF package manager/installer.... thats where your issue lies, you can't do it that way. To install the actual chat (I use the SMF integrated version) you have to unpack the Ajax Chat archive, and FTP it to your servers forum root (I made a folder in the forum root called chat). then you run the install file via your browser and your chat is all set. THEN you install this mod. I am never one to knock a modders work, because I can't code for squat, but if this mod could be made to show the users in chat in the tinyportal site stats block, that would be GREAT.... but it seems this mod's creator isn't very big on support right now.
Title: Re: AjaxChat Integration
Post by: dream1 on December 09, 2008, 01:10:10 AM
I'll clarify some more as I too had trouble figuring out how to install this mod.

This mod does not install Ajax Chat (You need to install that first), it installs a button to link to the chat on the default theme and some stats on the board index with number of users in chat and a list of their usernames.

There are two major steps in this installation

Here's what I did...

Install Ajax Chat

Install This Mod

Accessing the chatroom

Appendix (A)
You can manually edit your current themes files by going to This Mods Manual Install Instructions (http://custom.simplemachines.org/mods/index.php?mod=1319) in order to see the board index stats and button.
Title: Re: AjaxChat Integration
Post by: simpsonetti on December 11, 2008, 01:43:37 PM
Well i did the same:
QuoteInstall Ajax Chat

    * Download Ajax Chat from Ajax Chat Website (Grab the SMF integrated version).
    * Unzip the files to a directory on your pc.
    * Create a directory in your forum root eg: if your forum root is somewhere.com\forum then make a directory somewhere.com\forum\chat or similar.
    * FTP the unzipped Ajax Chat files to the directory you created (somewhere.com\forum\chat).
    * Run the install.php file that will now be in somewhere.com\forum\chat\install.php
    * Delete the install.php file for security reasons
    * Your Chatroom should now be functional and can be seen by navigating to somewhere.com\forum\chat\index.php

But i get an error:
Quote

Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM db1070799-smf.ajax_chat_online ORDER BY userName; Error-Report: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-smf.ajax_chat_online ORDER BY userName' at line 9 Error-Code: 1064


But why ? there is a difference in chat.sql in file and here: http://ajax-chat.wiki.sourceforge.net/Database+Tables
for tables there is .... collate:utf8_bin in file, but not in link. is this right ?
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on December 13, 2008, 07:16:19 AM
this is chat problem i see your post here (http://sourceforge.net/forum/forum.php?thread_id=2678062&forum_id=774132) too but i don't  faced this problem and have no idea
but if i found the answer i will share it with you ;)
Title: Re: AjaxChat Integration
Post by: simpsonetti on December 13, 2008, 12:32:09 PM
well i will try it at my local testserver without a minus. lets see what happens...
Title: Re: AjaxChat Integration
Post by: Wolfie1 on December 13, 2008, 01:57:12 PM
Hi I downloaded the Ajaxchat and when I uploaded it in my package manager I received an error that the file is corrupt. Did I do something wrong?
Title: Re: AjaxChat Integration
Post by: RIGILKENTARUS on December 13, 2008, 05:22:47 PM
This  mods is very good but have a problem with another mod: Spoiler Show & Hide

Can you fixed this please?
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on December 14, 2008, 10:53:28 AM
Wolfie1 please redownload and reupload the mod the problem will fix
RIGILKENTARUS are you sore? whats the problem?
Title: Re: AjaxChat Integration
Post by: Wolfie1 on December 14, 2008, 03:58:48 PM
It's not the mod that's the problem, it is the ajax chat itself. I go to the site the nod points you to and I download the one for SMF and when I upload it it says it's corrupt. Do I need the one from source forge in order to run the mod?
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on December 15, 2008, 08:26:11 AM
yes you should install this file (http://downloads.sourceforge.net/ajax-chat/ajax_chat-0.8.1.2_SMF.tar.gz?modtime=1206204156&big_mirror=0) first then install the Ajaxchat mod
Title: Re: AjaxChat Integration
Post by: Acans on December 16, 2008, 09:40:27 PM
Will this be available on SMF 2.0.4 Beta
Title: Re: AjaxChat Integration
Post by: mrtrc266 on December 19, 2008, 01:55:53 PM
Hello I installed Ajax Chat and this intergration Mod.

The chat box has Ad infested banners and popups. Theres not even a spot to loggin. (Screen shot attatched)

Any help would be greatly appreciated.

Thanks in advance.

SMF 1.1.7
Title: Re: AjaxChat Integration
Post by: Burke ♞ Knight on December 19, 2008, 06:12:06 PM
Quote from: mrtrc266 on December 19, 2008, 01:55:53 PM
Hello I installed Ajax Chat and this intergration Mod.

The chat box has Ad infested banners and popups. Theres not even a spot to loggin. (Screen shot attatched)

Any help would be greatly appreciated.

Thanks in advance.

SMF 1.1.7

That is not the chat. That is your host's 404 not found page, because you do not have the chat program installed correctly. Did you run the installer the chat program's readme file said to run?

And yes, I know that the chat in your image is from your host's 404 error page, due to the fact that I helped test it. ;)
Example, look here: http://1sthost.org/blog4/index.php
get the same chat there.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on December 20, 2008, 12:57:35 AM
QuoteThat is not the chat. That is your host's 404 not found page, because you do not have the chat program installed correctly. Did you run the installer the chat program's readme file said to run?

I thought I had installed it correctly. I uploaded all the files to www.myforum.com/chat/ .....Then ran the install.php and deleted it.

I guess I missed something, I'll keep tryin though.

Thanks
Title: Re: AjaxChat Integration
Post by: Blinker on December 22, 2008, 06:22:51 AM
Quote from: nay27uk on October 30, 2008, 08:45:08 AM
is ther any way of hiding the chat tab from guests, in other words i only want the chat button to be avaliable to loged in members

I too would like the chat link NOT to appear when a user is not logged in. I modded my custom theme's index.template.php to get the button to appear on the tab. That worked fine but it shows up to guests - the tab order for guests is Home, Help, Login, Register, Chat.

Any ideas on how to remove it?
Title: Re: AjaxChat Integration
Post by: ZaleTabakman on December 23, 2008, 09:03:36 PM
Hi There,

I just installed it following the simple instructions.

Upload ajax chat to server.
Unpack
Run install

Upload mod
run installation.

All done.

Works great - i am not sure how to manage it though...

Zale
Title: Re: AjaxChat Integration
Post by: Burke ♞ Knight on December 24, 2008, 07:40:39 AM
To really manage it, you would have to edit the files, to do advanced setting up.
This can be better explained at the Ajax Chat site.

https://blueimp.net/ajax/
Title: Re: AjaxChat Integration
Post by: Mraza on December 25, 2008, 02:02:19 PM
hello guys again merry christmes

i have succefully installed ajax chat and its working well, now i have 2 problems

1. my issue is some time if i will enter in chat it will show some error like this down :

"ChatBot: Error: Failed to load sound file (Flash IO Error)."

2. how can i put user online option as default theme to other themes.

it will be great help ....thanks for reply in advance
Title: Re: AjaxChat Integration
Post by: Burke ♞ Knight on December 25, 2008, 06:09:42 PM
1. As I stated on my site:
QuoteHowever, if you get the following error: "Error: Failed to load sound file (Flash IO Error)." - Please wait a few minutes, then log out of the chat, then log back in, and the sound should work. This is an issue with FireFox driven browsers, such as FireFox 3, Flock, and Netscape. The chat program Ajax Chat team are working on a fix.

2. That will depend on what SMF version you are running. The mod that this thread is for, should do it for SMF 1.1.x
As for SMF 2.0, not that I know of....Yet.
Title: Re: AjaxChat Integration
Post by: Mraza on December 26, 2008, 09:05:43 AM
Quote from: BurkeKnight on December 25, 2008, 06:09:42 PM
2. That will depend on what SMF version you are running. The mod that this thread is for, should do it for SMF 1.1.x
As for SMF 2.0, not that I know of....Yet.

thanks for your interst... i am using 1.1.7 version of smf and if i will use default theme i can see the user in chat option an if i will use any other custom theme..its not visible.. so how can i put these setting on other themes as its appearing in default..thanks
Title: Re: AjaxChat Integration
Post by: Burke ♞ Knight on December 26, 2008, 09:21:04 AM
You will need to manually install the mod into the other theme.

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: AjaxChat Integration
Post by: Mraza on December 27, 2008, 05:38:11 AM
Quote from: BurkeKnight on December 26, 2008, 09:21:04 AM
You will need to manually install the mod into the other theme.

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)

thanks again but when i read that how to manually install the packages everythings is going up to head  O:) . for test i download hidetagespecial171.zip and extract one file named hidetagspecial1.1.x.mod to edit... as in tutorial they write to find some codes well i found but what to change there i can't understand any help
Title: Re: AjaxChat Integration
Post by: Marsha on December 30, 2008, 11:07:19 AM
I have installed the chat.  It works fine.
I have installed the mod.  Seems to all be there.  I have manually checked all of the files that it says to modify and all the required modifications are there.
I'm using the babylon theme.

I don't get the number of users in the chat or which members are in the chat.  What now??

I manually installed a chat button and the chat opens in a new window and requires you to log in.  Isn't it supposed to transfer the info from the forum?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 03, 2009, 11:20:53 AM
Hello, I have AJAX Chat and the intergration working just fine but I have searched everywhere to find out how to use the shoutbox feature.

Has anyone done this or does anyone know where to find a tutorial on how to do this for SMF?

Thanks in advance.
Title: Re: AjaxChat Integration
Post by: dream1 on January 04, 2009, 05:19:09 AM
Quote from: Blinker on December 22, 2008, 06:22:51 AM
Quote from: nay27uk on October 30, 2008, 08:45:08 AM
is ther any way of hiding the chat tab from guests, in other words i only want the chat button to be avaliable to loged in members

I too would like the chat link NOT to appear when a user is not logged in. I modded my custom theme's index.template.php to get the button to appear on the tab. That worked fine but it shows up to guests - the tab order for guests is Home, Help, Login, Register, Chat.

Any ideas on how to remove it?

Something like this

   // If the user is a guest
   if ($context['user']['is_guest'])
   echo'
           Hello Guest ';


  // If the user is registered
   if ($context['user']['is_logged'])
   echo'
           Hello Registered User ';

Title: Re: AjaxChat Integration
Post by: nwobhm on January 07, 2009, 05:06:54 AM
When I use this integration is there a way to open this ajax-chat into new window and it would be "always on top"?
And how I can determ how many messages will be visible when a member joins into chat? Or log-out time when user gets inactive and will be locekd out from chat?
Title: Re: AjaxChat Integration
Post by: funcouldron on January 07, 2009, 11:38:23 PM
when it wil lcome for SMF 2.0b4 .. ??
Title: Re: AjaxChat Integration
Post by: Blinker on January 08, 2009, 02:16:45 AM
Quote from: mrtrc266 on January 03, 2009, 11:20:53 AM
Hello, I have AJAX Chat and the intergration working just fine but I have searched everywhere to find out how to use the shoutbox feature.

Has anyone done this or does anyone know where to find a tutorial on how to do this for SMF?

Thanks in advance.

I too would like to hear from anyone who has managed to get it working as a shoutbox.

I have searched high and low here and on the official AJAX Chat forum as well as Google and cannot find any definitive answer.

The following is provided in the official readme.txt, the problem is it only refers to "PHP code", not which code or where to put it, ie: which template file.

Shoutbox:
=========

AJAX Chat is also usable as shoutbox - this is a short guide on how to set it up:


1. Shoutbox stylesheet
----------------------

Add the following line to the stylesheet (CSS) of all pages displaying the shoutbox:

@import url("http://example.org/path/to/chat/css/shoutbox.css");

Replace http://example.org/path/to/chat/ with the URL to the chat.
Modify css/shoutbox.css to your liking.


2. Shoutbox function
--------------------

Add the following function to your PHP code:

<?php
function getShoutBoxContent() {
// URL to the chat directory:
if(!defined('AJAX_CHAT_URL')) {
define('AJAX_CHAT_URL''./chat/');
}

// Path to the chat directory:
if(!defined('AJAX_CHAT_PATH')) {
define('AJAX_CHAT_PATH'realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/');
}

// Validate the path to the chat:
if(@is_file(AJAX_CHAT_PATH.'lib/classes.php')) {

// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the shoutbox:
$ajaxChat = new CustomAJAXChatShoutBox();

// Parse and return the shoutbox template content:
return $ajaxChat->getShoutBoxContent();
}

return null;
}
?>


Make sure AJAX_CHAT_URL and AJAX_CHAT_PATH point to the chat directory.


2. Shoutbox output
------------------

Display the shoutbox content using the shoutbox function:

<div style="width:200px;"><?php echo getShoutBoxContent(); ?></div>
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 08, 2009, 03:02:00 AM
nwobhm:
opening the chat in new window is possible but i dont think it is possible to set it "always on top"
goto to chat/lib/config.php find the line:
$config['requestMessagesLimit'] = 10;
and set it to your desired number
and for time out
$config['inactiveTimeout'] = 2;
its in minute
-------------------------------------------------------------------
first i should say thank you because of this:
"It's a shame"
and i doesn't know this chat system has this ability
now i am working on it ;)
-------------------------------------------------------------------
funcouldron (http://index.php?action=profile;u=121147)
i haven't enough time and may be until smf 2 is beta i don't do this
but maybe I'll do it before that
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 08, 2009, 08:56:30 AM
ok its the ShoutBox
install the chat
install this mod
and everything is ready
also this mod fix a bug in chat system
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 08, 2009, 11:46:29 AM
Quote from: HuNTeR@sm on January 08, 2009, 08:56:30 AM
ok its the ShoutBox
install the chat
install this mod
and everything is ready
also this mod fix a bug in chat system

Thanks, that worked pretty good. Sorry about my last post but was getting very frusterated with the lack of support for this board. Hope you can keep up with it. Thanks again.
Title: Re: AjaxChat Integration
Post by: netmatrix on January 09, 2009, 12:42:26 AM
How would I get this chatbox to show up as a shout box on my main index page? 
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 09, 2009, 01:14:32 AM
just install AjaxChat ShoutBox 1.0.zip
2 posts upper
Title: Re: AjaxChat Integration
Post by: nwobhm on January 09, 2009, 04:45:44 AM
At least one of my members on my forums has this kind of problem with Firefox.
It doesn't show messages or userlist, but if messages is written, it will show up, but for other users.

With IE it works fine.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 09, 2009, 05:36:54 AM
nwobhm i personally using Firefox(now 3.0.4) for a long time
and never had any problem with this chat
Title: Re: AjaxChat Integration
Post by: nwobhm on January 09, 2009, 12:51:31 PM
Quote from: HuNTeR@sm on January 09, 2009, 05:36:54 AM
nwobhm i personally using Firefox(now 3.0.4) for a long time
and never had any problem with this chat
I've used too.
But it seems that java needed some updating since problem has been cleared.
Title: Re: AjaxChat Integration
Post by: tittiger on January 10, 2009, 02:13:25 PM
I installed AjaxChat v1.3 into it's own database and it works it seems. I logged in and chatted.

Then I installed the mod  AjaxChat Integration 1.1.1.zip

When I go to the forum home page:

http://tittiger.com/bigjohnsforum/index.php

I get the following error:

Database Error
Table 'bigjohnsforum.ajax_chat_online' doesn't exist
File: /home/content/t/i/t/tittiger1/html/bigjohnsforum/Sources/BoardIndex.php
Line: 346

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.


Thanks!

Joe T.
   

Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 11, 2009, 12:11:59 AM
ajaxchat last version is 0.8.1.2 (for smf)
and here is the download link
http://downloads.sourceforge.net/ajax-chat/ajax_chat-0.8.1.2_SMF.tar.gz?modtime=1206204156&big_mirror=0
i think you downloaded a wrong chat system
Title: Re: AjaxChat Integration
Post by: Rattler on January 11, 2009, 03:01:43 AM
Today, following the readme, installed both chat and mod on a SMF 1.1.7 that was laden with mods, installed fine, runs smoothely.

Thanks, great mod!

Rattler
Title: Re: AjaxChat Integration
Post by: tittiger on January 11, 2009, 09:56:25 AM
Quote from: .HuNTeR. on January 11, 2009, 12:11:59 AM
ajaxchat last version is 0.8.1.2 (for smf)
and here is the download link
http://downloads.sourceforge.net/ajax-chat/ajax_chat-0.8.1.2_SMF.tar.gz?modtime=1206204156&big_mirror=0
i think you downloaded a wrong chat system

Thanks it seems to be working now!    :D

My only request is how do I get this to work with other themes than the default?

Joe
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 11, 2009, 11:23:02 AM
you want place the chat button or number of chating users?
Title: Re: AjaxChat Integration
Post by: tittiger on January 11, 2009, 11:41:26 AM
Quote from: .HuNTeR. on January 11, 2009, 11:23:02 AM
you want place the chat button or number of chating users?

The chat button.

I did not know that the number of chatters could be displayed but that would also be a nice option.

Thanks,
Joe
Title: Re: AjaxChat Integration
Post by: tittiger on January 11, 2009, 11:52:59 AM
Another issue that I just discovered is that I can not get into the logs, where ever they are stored.

I used the syntax:

http://www.bigjohnsforum.com/chat/?view=logs

as described in the readme.txt

When I log in I am taken to the SMF home page rather than having log access.


Thanks again,
Joe

Title: Re: AjaxChat Integration
Post by: WyckedDreamz on January 11, 2009, 01:27:47 PM
I have a code snippet for a TP block that I'd like to show chat users in as well as the bottom of the forum... I have the display on the bottom of the forum working, if you want to take a look at my code snippet for my TP block so oyu can give me some pointers, I'll post it for you, not sure if its allowed here, so I wont post it unless you give me the go-ahead.
Title: Re: AjaxChat Integration
Post by: effex on January 12, 2009, 12:57:35 AM
This mod is such a life saver, thanks for everything!

It would be nice if I could figure out how to put the chat button next the Help, Search, etc though on a custom theme.

Could someone also point out which files I would edit to add my main site's navigation bar to the top? That'd make this chat flawless.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 12, 2009, 09:43:59 AM
tittiger:
for chat button open your index.template.php
find:
    // Otherwise, they might want to [logout]...
add before:
    // the [chat] button
    $path = str_replace("index.php", "chat/index.php", $scripturl);
    echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
        <td valign="top" class="maintab_back">
            <a href="', $path, '" target="_blank">', $txt['chat'], '</a></td>';


for list of chating users:
find:
    // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
    if (!empty($context['users_online']))
        echo '
                            ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

add after:
                           
    // users in chat
  if(count($context['users_in_chat_links'])==0)
  {
      echo '<br />' . $txt['no_user_in_chat'];
  }elseif(count($context['users_in_chat_links'])==1)
  {
      echo '<br />  1' . $txt['user_in_chat']. '<br />', implode($context['users_in_chat_links']);
  }else
  {
      echo '<br /> ' . count($context['users_in_chat_links']). $txt['users_in_chat']. '<br />', implode(', ', $context['users_in_chat_links']);
  }


and for logs you should visit
http://www.bigjohnsforum.com/chat/index.php?view=logs (http://www.bigjohnsforum.com/chat/index.php?view=logs)
WyckedDreamz  I'll glad if you share your code with us
effex i think you find your answer ;) [/hr][/hr]
Title: Re: AjaxChat Integration
Post by: effex on January 12, 2009, 12:42:18 PM
Hunter is that code for the button only for the default theme? I did add it, but nothing appears on my end.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 12, 2009, 12:49:35 PM
place your index.template.php here
it should work for any theme
Title: Re: AjaxChat Integration
Post by: boazor on January 14, 2009, 11:35:51 AM
hello

i am useing the extreme6 theme .

how can i add the chat i add button to the panel but
i dont know how to direct it to the chat .

btw can i had him to the man page like board in the end of the page?
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 14, 2009, 12:11:51 PM
@boazor:
put the code you written for button here and i will check it ;)
Title: Re: AjaxChat Integration
Post by: Jazman on January 14, 2009, 01:20:41 PM
Quote from: BurkeKnight on December 26, 2008, 09:21:04 AM
You will need to manually install the mod into the other theme.

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)

I followed the directions to a tee for the manual install into the "Dilber MC" theme, however, I'm experiencing a few vagaries.

The chat button isn't showing up, however, a space was created between two other menu options

And the users online portion is looking incomplete. (Not seeing text for "chat users online," just the number)
Example.
QuoteUsers Online       0 Guests, 2 Users
Users active in past 15 minutes:
Jesse, Mick
3
Jesse, Mick, karl

The code also looks a lot different from the other menu buttons.
Example.
// Go to PM center... [pm]
        if ($context['user']['is_logged'] && $context['allow_pm'])
        echo'
                                <td align="center" class="menubg' , $current_action == 'pm' ? '2' : '' , '">
                                        <a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
                                </td>';
        // the [chat] button
        $path = str_replace("index.php", "chat/index.php", $scripturl);
        echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
                                <td valign="top" class="maintab_back">
                                        <a href="', $path, '" target="_blank">', $txt['chat'], '</a>
                                </td>';

        // The [calendar]!
        if ($context['allow_calendar'])
        echo'
                                <td align="center" class="menubg' , $current_action == 'calendar' ? '2' : '' , '">
                                        <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
                                </td>';
        // the [SMF Gallery] button
        if ($context['allow_smfgallery_view'])
        echo'

                                <td align="center" class="menubg' , $current_action == 'gallery'  ? '2' : '' , '">
                                        <a href="', $scripturl, '?action=gallery">' , $txt['smfgallery_menu']  , '</a>
                                </td>';


Any suggestions or insight?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 14, 2009, 03:16:42 PM
Quote from: boazor on January 14, 2009, 11:35:51 AM
hello

i am useing the extreme6 theme .

how can i add the chat i add button to the panel but
i dont know how to direct it to the chat .

btw can i had him to the man page like board in the end of the page?

I use the same theme, your button code should look something like this...

// Show the [chat] button.
echo '<li><a target="_blank" href="http://monsters-mansion.com/chat/index.php" class="kwick opt2" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.png" alt="' . $txt['chat'] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[119]), '</span></a></li>';


Of course change <a target="_blank" href="http://monsters-mansion.com/chat/index.php" to your URL
Title: Re: AjaxChat Integration
Post by: nwobhm on January 14, 2009, 03:33:21 PM
@Jazman

I have Dilber theme also and the code for chat button looks like this on my forum.
This will make the chat go into new window

<td align="center" class="menubg' , $current_action == 'chat' ? '2' : '' , '">
<a href="board url in here/Chat/index.php" target="_blank">' , $txt['chat'] , '</a>
</td>';
Title: Re: AjaxChat Integration
Post by: boazor on January 14, 2009, 05:40:06 PM
Quote from: .HuNTeR. on January 14, 2009, 12:11:51 PM
@boazor:
put the code you written for button here and i will check it ;)

i just copy the other code and just add new pic  but i guess i need all the code
but i didnt find way to link the chat :P
Title: Re: AjaxChat Integration
Post by: boazor on January 14, 2009, 05:49:02 PM
Quote from: mrtrc266 on January 14, 2009, 03:16:42 PM
Quote from: boazor on January 14, 2009, 11:35:51 AM
hello

i am useing the extreme6 theme .

how can i add the chat i add button to the panel but
i dont know how to direct it to the chat .

btw can i had him to the man page like board in the end of the page?

I use the same theme, your button code should look something like this...

// Show the [chat] button.
echo '<li><a target="_blank" href="http://monsters-mansion.com/chat/index.php" class="kwick opt2" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.png" alt="' . $txt['chat'] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[119]), '</span></a></li>';


Of course change <a target="_blank" href="http://monsters-mansion.com/chat/index.php" to your URL


thx man its work great .

btw did u find why to make it part of the first page like in the board?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 14, 2009, 06:16:59 PM
@ boazor

Quotethx man its work great .

btw did u find why to make it part of the first page like in the board?

you mean like a shoutbox?
Title: Re: AjaxChat Integration
Post by: boazor on January 15, 2009, 05:15:42 AM
Quote from: mrtrc266 on January 14, 2009, 06:16:59 PM
@ boazor

Quotethx man its work great .

btw did u find why to make it part of the first page like in the board?

you mean like a shoutbox?

yup but just at the end of the man page
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 15, 2009, 01:06:37 PM
Quote from: boazor on January 15, 2009, 05:15:42 AM
Quote from: mrtrc266 on January 14, 2009, 06:16:59 PM
@ boazor

Quotethx man its work great .

btw did u find why to make it part of the first page like in the board?

you mean like a shoutbox?

yup but just at the end of the man page

Go back one page on this thread and you will find a "Shoutbox Intergration" file from Hunter (AjaxChat ShoutBox 1.0.zip) then Im sure you could just look for the edit and put it wherever you want.
Title: Re: AjaxChat Integration
Post by: boazor on January 15, 2009, 05:35:20 PM
Quote from: mrtrc266 on January 15, 2009, 01:06:37 PM
Quote from: boazor on January 15, 2009, 05:15:42 AM
Quote from: mrtrc266 on January 14, 2009, 06:16:59 PM
@ boazor

Quotethx man its work great .

btw did u find why to make it part of the first page like in the board?

you mean like a shoutbox?

yup but just at the end of the man page

Go back one page on this thread and you will find a "Shoutbox Intergration" file from Hunter (AjaxChat ShoutBox 1.0.zip) then Im sure you could just look for the edit and put it wherever you want.

i talk to my friend that is .net man he told me that i can use iframe but i dont know how or where to put it.
did you here about this one?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 15, 2009, 11:21:22 PM
Quote from: boazor on January 15, 2009, 05:35:20 PM
Quote from: mrtrc266 on January 15, 2009, 01:06:37 PM
Quote from: boazor on January 15, 2009, 05:15:42 AM
Quote from: mrtrc266 on January 14, 2009, 06:16:59 PM
@ boazor

Quotethx man its work great .

btw did u find why to make it part of the first page like in the board?

This attatchment is from hunter, just intsall it and it should add the shoutbox to your board page.

you mean like a shoutbox?

yup but just at the end of the man page

Go back one page on this thread and you will find a "Shoutbox Intergration" file from Hunter (AjaxChat ShoutBox 1.0.zip) then Im sure you could just look for the edit and put it wherever you want.

i talk to my friend that is .net man he told me that i can use iframe but i dont know how or where to put it.
did you here about this one?


This is the AWESOME attatchment from Hunter ( tyvm Hunter), just install this and it should add the shoutbox to your board page. Be sure to do the manual edits if you have a custom theme. Hope I'm understanding you correctly and that this helps.

EDIT: Shoutbox now enabled or disabled in AJAX Chat Intergration. Thanks Hunter.

BTW Whats your website addy?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 16, 2009, 12:18:22 AM
A little trick from Source Forge.

To Add the Ajax Chat Smilies to your shoutbox do the following...

find in chat/lib/template/shoutbox.html
<div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a> | <a href="http://4tmu.ir">Integrated with SMF</a></div>

add above
<div id="emoticonsContainer" dir="ltr"></div>
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 16, 2009, 07:58:25 AM
In new version you can enable or disable shoutbox
just install the last version
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 16, 2009, 10:50:18 AM
Quote from: .HuNTeR. on January 16, 2009, 07:58:25 AM
In new version you can enable or disable shoutbox
just install the last version

Ohhh, very cool good job.
Title: Re: AjaxChat Integration
Post by: ChackanPT on January 16, 2009, 09:20:49 PM
My chat button appears to be a bit...weird lol

I'm using MeshTP, any help?
Title: Re: AjaxChat Integration
Post by: Blinker on January 16, 2009, 10:15:02 PM
Quote from: ChackanPT on January 16, 2009, 09:20:49 PM
My chat button appears to be a bit...weird lol

I'm using MeshTP, any help?

In your Mesh theme's index.template.php.

Find the code for the chat button and replace with this:
// the [chat] button
   $path = str_replace("index.php", "chat/index.php", $scripturl);
   if ($context['user']['is_logged'])
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <td nowrap="nowrap" valign="top" class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back2' , '">
         <a href="', $path, '" target="_blank">', $txt['chat'], '</a></td>';


The main change is the 'back2',  there is probably no '2' on yours.
Title: Re: AjaxChat Integration
Post by: ChackanPT on January 16, 2009, 10:22:51 PM
Nice! Worked like a charm!

Also, the Stats don't show the Online users in the chat, i already added the code manually in the custom themes files.

I use both Mesh and Aero. Doesn't show in any of them
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 16, 2009, 11:37:17 PM
if in your default theme stats works you entered wrong code for your theme
this is the code:
find:

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

add after it:


// users in chat
  if(count($context['users_in_chat_links'])==0)
  {
  echo '<br />' . $txt['no_user_in_chat'];
  }elseif(count($context['users_in_chat_links'])==1)
  {
  echo '<br />  1' . $txt['user_in_chat']. '<br />', implode($context['users_in_chat_links']);
  }else
  {
  echo '<br /> ' . count($context['users_in_chat_links']). $txt['users_in_chat']. '<br />', implode(', ', $context['users_in_chat_links']);
  }

and for shoutbox:
find

<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">', theme_linktree(), '</td>
<td align="right">';
if (!$settings['show_sp1_info'])

replace with:

<table width="100%" cellpadding="0" cellspacing="0">';
if ($modSettings['enableShoutBox'])
echo' <tr>
<td>
<div class="tborder">' . getShoutBoxContent() . '
</div>
</td>
</tr>';
echo' <tr>
<td valign="bottom">', theme_linktree(), '</td>
<td align="right">';
if (!$settings['show_sp1_info'])


and also add this before ?>

function getShoutBoxContent()
{
    global $scripturl;

    // Get the URL to the chat directory:
    if (!defined('AJAX_CHAT_URL'))
    {
        define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));
    }
   
    // Get the real path to the chat directory:
    if (!defined('AJAX_CHAT_PATH'))
    {
define('AJAX_CHAT_PATH', dirname(__FILE__) . '/../chat/');
    }
   
    // Validate the path to the chat:
    if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php'))
    {
        // Include Class libraries:
        require_once(AJAX_CHAT_PATH.'lib/classes.php');

        // Initialize the shoutbox:
        $ajaxChat = new CustomAJAXChatShoutBox();

        // Parse and return the shoutbox template content:
        return $ajaxChat->getShoutBoxContent();
    }
    return null;
}
Title: Re: AjaxChat Integration
Post by: ChackanPT on January 17, 2009, 09:32:19 AM
No, it didn't work in the default theme either :| I'll try with that code, be back with info later

Didn't work ;|
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 17, 2009, 09:40:13 AM
ok then there is something wrong with the users list
place your sources/boardindex.php here
any errors in forum error log?
Title: Re: AjaxChat Integration
Post by: ChackanPT on January 17, 2009, 10:35:47 AM
Only get this error:

8: Undefined index: chat
File: /home/otherwor/public_html/Themes/default/Packages.template.php (eval?)
Line: 528

As for the boardindex.php:


<?php
/**********************************************************************************
* BoardIndex.php                                                                  *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* The single function this file contains is used to display the main
board index.  It uses just the following functions:

void BoardIndex()
- shows the board index.
- uses the BoardIndex template, and main sub template.
- may use the boardindex subtemplate for wireless support.
- updates the most online statistics.
- is accessed by ?action=boardindex.

bool calendarDoIndex()
- prepares the calendar data for the board index.
- takes care of caching it for speed.
- depends upon these settings: cal_showeventsonindex,
  cal_showbdaysonindex, cal_showholidaysonindex.
- returns whether there is anything to display.
*/

// Show the board index!
function BoardIndex()
{
global $txt$scripturl$db_prefix$ID_MEMBER$user_info$sourcedir;
global $modSettings$context$settings;

// For wireless, we use the Wireless template...
if (WIRELESS)
$context['sub_template'] = WIRELESS_PROTOCOL '_boardindex';
else
loadTemplate('BoardIndex');

// Remember the most recent topic for optimizing the recent posts feature.
$most_recent_topic = array(
'timestamp' => 0,
'ref' => null
);

// Find all boards and categories, as well as related information.  This will be sorted by the natural order of boards and categories, which we control.
$result_boards db_query("
SELECT
c.name AS catName, c.ID_CAT, b.ID_BOARD, b.name AS boardName, b.description,
b.numPosts, b.numTopics, b.ID_PARENT, IFNULL(m.posterTime, 0) AS posterTime,
IFNULL(mem.memberName, m.posterName) AS posterName, m.subject, m.ID_TOPIC,
IFNULL(mem.realName, m.posterName) AS realName," 
. ($user_info['is_guest'] ? "
1 AS isRead, 0 AS new_from" 
"
(IFNULL(lb.ID_MSG, 0) >= b.ID_MSG_UPDATED) AS isRead, IFNULL(lb.ID_MSG, -1) + 1 AS new_from,
c.canCollapse, IFNULL(cc.ID_MEMBER, 0) AS isCollapsed"
) . ",
IFNULL(mem.ID_MEMBER, 0) AS ID_MEMBER, m.ID_MSG,
IFNULL(mods_mem.ID_MEMBER, 0) AS ID_MODERATOR, mods_mem.realName AS modRealName
FROM 
{$db_prefix}boards AS b
LEFT JOIN 
{$db_prefix}categories AS c ON (c.ID_CAT = b.ID_CAT)
LEFT JOIN 
{$db_prefix}messages AS m ON (m.ID_MSG = b.ID_LAST_MSG)
LEFT JOIN 
{$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "
LEFT JOIN 
{$db_prefix}log_boards AS lb ON (lb.ID_BOARD = b.ID_BOARD AND lb.ID_MEMBER = $ID_MEMBER)
LEFT JOIN 
{$db_prefix}collapsed_categories AS cc ON (cc.ID_CAT = c.ID_CAT AND cc.ID_MEMBER = $ID_MEMBER)" '') . "
LEFT JOIN 
{$db_prefix}moderators AS mods ON (mods.ID_BOARD = b.ID_BOARD)
LEFT JOIN 
{$db_prefix}members AS mods_mem ON (mods_mem.ID_MEMBER = mods.ID_MEMBER)
WHERE 
$user_info[query_see_board]. (empty($modSettings['countChildPosts']) ? "
AND b.childLevel <= 1" 
''), __FILE____LINE__);

// Run through the categories and boards....
$context['categories'] = array();
while ($row_board mysql_fetch_assoc($result_boards))
{
// Haven't set this category yet.
if (empty($context['categories'][$row_board['ID_CAT']]))
{
$context['categories'][$row_board['ID_CAT']] = array(
'id' => $row_board['ID_CAT'],
'name' => $row_board['catName'],
'is_collapsed' => isset($row_board['canCollapse']) && $row_board['canCollapse'] == && $row_board['isCollapsed'] > 0,
'can_collapse' => isset($row_board['canCollapse']) && $row_board['canCollapse'] == 1,
'collapse_href' => isset($row_board['canCollapse']) ? $scripturl '?action=collapse;c=' $row_board['ID_CAT'] . ';sa=' . ($row_board['isCollapsed'] > 'expand' 'collapse;') . '#' $row_board['ID_CAT'] : '',
'collapse_image' => isset($row_board['canCollapse']) ? '<img src="' $settings['images_url'] . '/' . ($row_board['isCollapsed'] > 'expand.gif" alt="+"' 'collapse.gif" alt="-"') . ' border="0" />' '',
'href' => $scripturl '#' $row_board['ID_CAT'],
'boards' => array(),
'new' => false
);
$context['categories'][$row_board['ID_CAT']]['link'] = '<a name="' $row_board['ID_CAT'] . '" href="' . (isset($row_board['canCollapse']) ? $context['categories'][$row_board['ID_CAT']]['collapse_href'] : $context['categories'][$row_board['ID_CAT']]['href']) . '">' $row_board['catName'] . '</a>';
}

// If this board has new posts in it (and isn't the recycle bin!) then the category is new.
if (empty($modSettings['recycle_enable']) || $modSettings['recycle_board'] != $row_board['ID_BOARD'])
$context['categories'][$row_board['ID_CAT']]['new'] |= empty($row_board['isRead']) && $row_board['posterName'] != '';

// Collapsed category - don't do any of this.
if ($context['categories'][$row_board['ID_CAT']]['is_collapsed'])
continue;

// Let's save some typing.  Climbing the array might be slower, anyhow.
$this_category = &$context['categories'][$row_board['ID_CAT']]['boards'];

// This is a parent board.
if (empty($row_board['ID_PARENT']))
{
// Is this a new board, or just another moderator?
if (!isset($this_category[$row_board['ID_BOARD']]))
{
// Not a child.
$isChild false;

$this_category[$row_board['ID_BOARD']] = array(
'new' => empty($row_board['isRead']),
'id' => $row_board['ID_BOARD'],
'name' => $row_board['boardName'],
'description' => $row_board['description'],
'moderators' => array(),
'link_moderators' => array(),
'children' => array(),
'link_children' => array(),
'children_new' => false,
'topics' => $row_board['numTopics'],
'posts' => $row_board['numPosts'],
'href' => $scripturl '?board=' $row_board['ID_BOARD'] . '.0',
'link' => '<a href="' $scripturl '?board=' $row_board['ID_BOARD'] . '.0">' $row_board['boardName'] . '</a>'
);
}
if (!empty($row_board['ID_MODERATOR']))
{
$this_category[$row_board['ID_BOARD']]['moderators'][$row_board['ID_MODERATOR']] = array(
'id' => $row_board['ID_MODERATOR'],
'name' => $row_board['modRealName'],
'href' => $scripturl '?action=profile;u=' $row_board['ID_MODERATOR'],
'link' => '<a href="' $scripturl '?action=profile;u=' $row_board['ID_MODERATOR'] . '" title="' $txt[62] . '">' $row_board['modRealName'] . '</a>'
);
$this_category[$row_board['ID_BOARD']]['link_moderators'][] = '<a href="' $scripturl '?action=profile;u=' $row_board['ID_MODERATOR'] . '" title="' $txt[62] . '">' $row_board['modRealName'] . '</a>';
}
}
// Found a child board.... make sure we've found its parent and the child hasn't been set already.
elseif (isset($this_category[$row_board['ID_PARENT']]['children']) && !isset($this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']]))
{
// A valid child!
$isChild true;

$this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']] = array(
'id' => $row_board['ID_BOARD'],
'name' => $row_board['boardName'],
'description' => $row_board['description'],
'new' => empty($row_board['isRead']) && $row_board['posterName'] != '',
'topics' => $row_board['numTopics'],
'posts' => $row_board['numPosts'],
'href' => $scripturl '?board=' $row_board['ID_BOARD'] . '.0',
'link' => '<a href="' $scripturl '?board=' $row_board['ID_BOARD'] . '.0">' $row_board['boardName'] . '</a>'
);

// Counting child board posts is... slow :/.
if (!empty($modSettings['countChildPosts']))
{
$this_category[$row_board['ID_PARENT']]['posts'] += $row_board['numPosts'];
$this_category[$row_board['ID_PARENT']]['topics'] += $row_board['numTopics'];
}

// Does this board contain new boards?
$this_category[$row_board['ID_PARENT']]['children_new'] |= empty($row_board['isRead']);

// This is easier to use in many cases for the theme....
$this_category[$row_board['ID_PARENT']]['link_children'][] = &$this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']]['link'];
}
// Child of a child... just add it on...
elseif (!empty($modSettings['countChildPosts']))
{
if (!isset($parent_map))
$parent_map = array();

if (!isset($parent_map[$row_board['ID_PARENT']]))
foreach ($this_category as $id => $board)
{
if (!isset($board['children'][$row_board['ID_PARENT']]))
continue;

$parent_map[$row_board['ID_PARENT']] = array(&$this_category[$id], &$this_category[$id]['children'][$row_board['ID_PARENT']]);
$parent_map[$row_board['ID_BOARD']] = array(&$this_category[$id], &$this_category[$id]['children'][$row_board['ID_PARENT']]);

break;
}

if (isset($parent_map[$row_board['ID_PARENT']]))
{
$parent_map[$row_board['ID_PARENT']][0]['posts'] += $row_board['numPosts'];
$parent_map[$row_board['ID_PARENT']][0]['topics'] += $row_board['numTopics'];
$parent_map[$row_board['ID_PARENT']][1]['posts'] += $row_board['numPosts'];
$parent_map[$row_board['ID_PARENT']][1]['topics'] += $row_board['numTopics'];

continue;
}

continue;
}
// Found a child of a child - skip.
else
continue;

// Prepare the subject, and make sure it's not too long.
censorText($row_board['subject']);
$row_board['short_subject'] = shorten_subject($row_board['subject'], 24);
$this_last_post = array(
'id' => $row_board['ID_MSG'],
'time' => $row_board['posterTime'] > timeformat($row_board['posterTime']) : $txt[470],
'timestamp' => forum_time(true$row_board['posterTime']),
'subject' => $row_board['short_subject'],
'member' => array(
'id' => $row_board['ID_MEMBER'],
'username' => $row_board['posterName'] != '' $row_board['posterName'] : $txt[470],
'name' => $row_board['realName'],
'href' => $row_board['posterName'] != '' && !empty($row_board['ID_MEMBER']) ? $scripturl '?action=profile;u=' $row_board['ID_MEMBER'] : '',
'link' => $row_board['posterName'] != '' ? (!empty($row_board['ID_MEMBER']) ? '<a href="' $scripturl '?action=profile;u=' $row_board['ID_MEMBER'] . '">' $row_board['realName'] . '</a>' $row_board['realName']) : $txt[470],
),
'start' => 'msg' $row_board['new_from'],
'topic' => $row_board['ID_TOPIC']
);

// Provide the href and link.
if ($row_board['subject'] != '')
{
$this_last_post['href'] = $scripturl '?topic=' $row_board['ID_TOPIC'] . '.msg' . ($user_info['is_guest'] ? $modSettings['maxMsgID'] : $row_board['new_from']) . (empty($row_board['isRead']) ? ';boardseen' '') . '#new';
$this_last_post['link'] = '<a href="' $this_last_post['href'] . '" title="' $row_board['subject'] . '">' $row_board['short_subject'] . '</a>';
}
else
{
$this_last_post['href'] = '';
$this_last_post['link'] = $txt[470];
}

// Set the last post in the parent board.
if (empty($row_board['ID_PARENT']) || ($isChild && !empty($row_board['posterTime']) && $this_category[$row_board['ID_PARENT']]['last_post']['timestamp'] < forum_time(true$row_board['posterTime'])))
$this_category[$isChild $row_board['ID_PARENT'] : $row_board['ID_BOARD']]['last_post'] = $this_last_post;
// Just in the child...?
if ($isChild)
{
$this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']]['last_post'] = $this_last_post;

// If there are no posts in this board, it really can't be new...
$this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']]['new'] &= $row_board['posterName'] != '';
}
// No last post for this board?  It's not new then, is it..?
elseif ($row_board['posterName'] == '')
$this_category[$row_board['ID_BOARD']]['new'] = false;

// Determine a global most recent topic.
if (!empty($row_board['posterTime']) && forum_time(true$row_board['posterTime']) > $most_recent_topic['timestamp'])
$most_recent_topic = array(
'timestamp' => forum_time(true$row_board['posterTime']),
'ref' => &$this_category[$isChild $row_board['ID_PARENT'] : $row_board['ID_BOARD']]['last_post'],
);
}
mysql_free_result($result_boards);

// Load the users online right now.
$result db_query("
SELECT
lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,
mg.onlineColor, mg.ID_GROUP, mg.groupName
FROM 
{$db_prefix}log_online AS lo
LEFT JOIN 
{$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
LEFT JOIN 
{$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))"__FILE____LINE__);

$context['users_online'] = array();
$context['list_users_online'] = array();
$context['online_groups'] = array();
$context['num_guests'] = 0;
$context['num_buddies'] = 0;
$context['num_users_hidden'] = 0;

$context['show_buddies'] = !empty($user_info['buddies']);

while ($row mysql_fetch_assoc($result))
{
if (empty($row['realName']))
{
$context['num_guests']++;
continue;
}
elseif (empty($row['showOnline']) && !allowedTo('moderate_forum'))
{
$context['num_users_hidden']++;
continue;
}

// Some basic color coding...
if (!empty($row['onlineColor']))
$link '<a href="' $scripturl '?action=profile;u=' $row['ID_MEMBER'] . '" style="color: ' $row['onlineColor'] . ';">' $row['realName'] . '</a>';
else
$link '<a href="' $scripturl '?action=profile;u=' $row['ID_MEMBER'] . '">' $row['realName'] . '</a>';

$is_buddy in_array($row['ID_MEMBER'], $user_info['buddies']);
if ($is_buddy)
{
$context['num_buddies']++;
$link '<b>' $link '</b>';
}

$context['users_online'][$row['logTime'] . $row['memberName']] = array(
'id' => $row['ID_MEMBER'],
'username' => $row['memberName'],
'name' => $row['realName'],
'group' => $row['ID_GROUP'],
'href' => $scripturl '?action=profile;u=' $row['ID_MEMBER'],
'link' => $link,
'is_buddy' => $is_buddy,
'hidden' => empty($row['showOnline']),
);

$context['list_users_online'][$row['logTime'] . $row['memberName']] = empty($row['showOnline']) ? '<i>' $link '</i>' $link;

if (!isset($context['online_groups'][$row['ID_GROUP']]))
$context['online_groups'][$row['ID_GROUP']] = array(
'id' => $row['ID_GROUP'],
'name' => $row['groupName'],
'color' => $row['onlineColor']
);
}
mysql_free_result($result);

krsort($context['users_online']);
krsort($context['list_users_online']);
ksort($context['online_groups']);

$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

//users in chat
$result db_query("SELECT userID,userName FROM ajax_chat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)"__FILE____LINE__);
$context['users_in_chat_links'] = array();
while ($row mysql_fetch_assoc($result))
{
$link '<a href="' $scripturl '?action=profile;u=' $row['userID'] ;
if(isset($context['online_groups'][$row['userID']]['color'])){
$link.= '" style="color: ' $context['online_groups'][$row['userID']]['color'];
}
$link.= '">' $row['userName'] . '</a>';
   
array_push($context['users_in_chat_links'], $link);
}
mysql_free_result($result);

//users in chat
$result db_query("SELECT userID,userName FROM ajax_chat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)"__FILE____LINE__);
$context['users_in_chat_links'] = array();
while ($row mysql_fetch_assoc($result))
{
$link '<a href="' $scripturl '?action=profile;u=' $row['userID'] ;
if(isset($context['online_groups'][$row['userID']]['color'])){
$link.= '" style="color: ' $context['online_groups'][$row['userID']]['color'];
}
$link.= '">' $row['userName'] . '</a>';
   
array_push($context['users_in_chat_links'], $link);
}
mysql_free_result($result);

// Track most online statistics?
if (!empty($modSettings['trackStats']))
{
// Determine the most users online - both all time and per day.
$total_users $context['num_guests'] + $context['num_users_online'];

// More members on now than ever were?  Update it!
if (!isset($modSettings['mostOnline']) || $total_users >= $modSettings['mostOnline'])
updateSettings(array('mostOnline' => $total_users'mostDate' => time()));

$date strftime('%Y-%m-%d'forum_time(false));

// One or more stats are not up-to-date?
if (!isset($modSettings['mostOnlineUpdated']) || $modSettings['mostOnlineUpdated'] != $date)
{
$request db_query("
SELECT mostOn
FROM 
{$db_prefix}log_activity
WHERE date = '
$date'
LIMIT 1"
__FILE____LINE__);

// The log_activity hasn't got an entry for today?
if (mysql_num_rows($request) == 0)
{
db_query("
INSERT IGNORE INTO 
{$db_prefix}log_activity
(date, mostOn)
VALUES ('
$date', $total_users)"__FILE____LINE__);
}
// There's an entry in log_activity on today...
else
{
list ($modSettings['mostOnlineToday']) = mysql_fetch_row($request);

if ($total_users $modSettings['mostOnlineToday'])
trackStats(array('mostOn' => $total_users));

$total_users max($total_users$modSettings['mostOnlineToday']);
}
mysql_free_result($request);

updateSettings(array('mostOnlineUpdated' => $date'mostOnlineToday' => $total_users));
}
// Highest number of users online today?
elseif ($total_users $modSettings['mostOnlineToday'])
{
trackStats(array('mostOn' => $total_users));
updateSettings(array('mostOnlineUpdated' => $date'mostOnlineToday' => $total_users));
}
}

// Set the latest member.
$context['latest_member'] = &$context['common_stats']['latest_member'];

// Load the most recent post?
if ((!empty($settings['number_recent_posts']) && $settings['number_recent_posts'] == 1) || $settings['show_sp1_info'])
$context['latest_post'] = $most_recent_topic['ref'];

if (!empty($settings['number_recent_posts']) && $settings['number_recent_posts'] > 1)
{
require_once($sourcedir '/Recent.php');

if (($context['latest_posts'] = cache_get_data('boardindex-latest_posts:' md5($user_info['query_see_board'] . $user_info['language']), 180)) == null)
{
$context['latest_posts'] = getLastPosts($settings['number_recent_posts']);
cache_put_data('boardindex-latest_posts:' md5($user_info['query_see_board'] . $user_info['language']), $context['latest_posts'], 180);
}

// We have to clean up the cached data a bit.
foreach ($context['latest_posts'] as $k => $post)
{
$context['latest_posts'][$k]['time'] = timeformat($post['raw_timestamp']);
$context['latest_posts'][$k]['timestamp'] = forum_time(true$post['raw_timestamp']);
}
}

$settings['display_recent_bar'] = !empty($settings['number_recent_posts']) ? $settings['number_recent_posts'] : 0;
$settings['show_member_bar'] &= allowedTo('view_mlist');
$context['show_stats'] = allowedTo('view_stats') && !empty($modSettings['trackStats']);
$context['show_member_list'] = allowedTo('view_mlist');
$context['show_who'] = allowedTo('who_view') && !empty($modSettings['who_enabled']);

// Set some permission related settings.
$context['show_login_bar'] = $user_info['is_guest'] && !empty($modSettings['enableVBStyleLogin']);
$context['show_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);

// Load the calendar?
if ($context['show_calendar'])
$context['show_calendar'] = calendarDoIndex();

$context['page_title'] = $txt[18];
}

// Called from the BoardIndex to display the current day's events on the board index.
function calendarDoIndex()
{
global $modSettings$context$user_info$scripturl$sc$ID_MEMBER;

// Make sure at least one of the options is checked.
if (empty($modSettings['cal_showeventsonindex']) && empty($modSettings['cal_showbdaysonindex']) && empty($modSettings['cal_showholidaysonindex']))
return false;

// Get the current forum time and check whether the statistics are up to date.
if (empty($modSettings['cal_today_updated']) || $modSettings['cal_today_updated'] != strftime('%Y%m%d'forum_time(false)))
updateStats('calendar');

// Load the holidays for today, ...
if (!empty($modSettings['cal_showholidaysonindex']) && isset($modSettings['cal_today_holiday']))
$holidays unserialize($modSettings['cal_today_holiday']);
// ... the birthdays for today, ...
if (!empty($modSettings['cal_showbdaysonindex']) && isset($modSettings['cal_today_birthday']))
$bday unserialize($modSettings['cal_today_birthday']);
// ... and the events for today.
if (!empty($modSettings['cal_showeventsonindex']) && isset($modSettings['cal_today_event']))
$events unserialize($modSettings['cal_today_event']);

// No events, birthdays, or holidays... don't show anything.  Simple.
if (empty($holidays) && empty($bday) && empty($events))
return false;

// This shouldn't be less than one!
if (empty($modSettings['cal_days_for_index']) || $modSettings['cal_days_for_index'] < 1)
$days_for_index 86400;
else
$days_for_index $modSettings['cal_days_for_index'] * 86400;

$context['calendar_only_today'] = $modSettings['cal_days_for_index'] == 1;

// Get the current member time/date.
$now forum_time();

// This is used to show the "how-do-I-edit" help.
$context['calendar_can_edit'] = allowedTo('calendar_edit_any');

// Holidays between now and now + days.
$context['calendar_holidays'] = array();
for ($i $now$i $now $days_for_index$i += 86400)
{
if (isset($holidays[strftime('%Y-%m-%d'$i)]))
$context['calendar_holidays'] = array_merge($context['calendar_holidays'], $holidays[strftime('%Y-%m-%d'$i)]);
}

// Happy Birthday, guys and gals!
$context['calendar_birthdays'] = array();
for ($i $now$i $now $days_for_index$i += 86400)
if (isset($bday[strftime('%Y-%m-%d'$i)]))
{
foreach ($bday[strftime('%Y-%m-%d'$i)] as $index => $dummy)
$bday[strftime('%Y-%m-%d'$i)][$index]['is_today'] = strftime('%Y-%m-%d'$i) == strftime('%Y-%m-%d'forum_time());
$context['calendar_birthdays'] = array_merge($context['calendar_birthdays'], $bday[strftime('%Y-%m-%d'$i)]);
}

$context['calendar_events'] = array();
$duplicates = array();
for ($i $now$i $now $days_for_index$i += 86400)
{
if (empty($events[strftime('%Y-%m-%d'$i)]))
continue;

foreach ($events[strftime('%Y-%m-%d'$i)] as $ev => $event)
{
if (empty($event['topic']) || (count(array_intersect($user_info['groups'], $event['allowed_groups'])) != || allowedTo('admin_forum')))
{
if (isset($duplicates[$events[strftime('%Y-%m-%d'$i)][$ev]['topic'] . $events[strftime('%Y-%m-%d'$i)][$ev]['title']]))
{
unset($events[strftime('%Y-%m-%d'$i)][$ev]);
continue;
}

$this_event = &$events[strftime('%Y-%m-%d'$i)][$ev];
$this_event['href'] = $this_event['topic'] == '' $scripturl '?topic=' $this_event['topic'] . '.0';
$this_event['modify_href'] = $scripturl '?action=' . ($this_event['topic'] == 'calendar;sa=post;' 'post;msg=' $this_event['msg'] . ';topic=' $this_event['topic'] . '.0;calendar;') . 'eventid=' $this_event['id'] . ';sesc=' $sc;
$this_event['can_edit'] = allowedTo('calendar_edit_any') || ($this_event['poster'] == $ID_MEMBER && allowedTo('calendar_edit_own'));
$this_event['is_today'] = (strftime('%Y-%m-%d'$i)) == strftime('%Y-%m-%d'forum_time());
$this_event['date'] = strftime('%Y-%m-%d'$i);

$duplicates[$this_event['topic'] . $this_event['title']] = true;
}
else
unset($events[strftime('%Y-%m-%d'$i)][$ev]);
}

if (!empty($events[strftime('%Y-%m-%d'$i)]))
$context['calendar_events'] = array_merge($context['calendar_events'], $events[strftime('%Y-%m-%d'$i)]);
}

for ($i 0$n count($context['calendar_birthdays']); $i $n$i++)
$context['calendar_birthdays'][$i]['is_last'] = !isset($context['calendar_birthdays'][$i 1]);
for ($i 0$n count($context['calendar_events']); $i $n$i++)
$context['calendar_events'][$i]['is_last'] = !isset($context['calendar_events'][$i 1]);

// This is used to make sure the header should be displayed.
return !empty($context['calendar_holidays']) || !empty($context['calendar_birthdays']) || !empty($context['calendar_events']);
}

?>

Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 17, 2009, 12:29:42 PM
it seems you installed this mod twice
try replacing this with your boardindex.php file (dont forget make a backup before any editing)

<?php
/**********************************************************************************
* BoardIndex.php                                                                  *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
   die(
'Hacking attempt...');

/*   The single function this file contains is used to display the main
   board index.  It uses just the following functions:

   void BoardIndex()
      - shows the board index.
      - uses the BoardIndex template, and main sub template.
      - may use the boardindex subtemplate for wireless support.
      - updates the most online statistics.
      - is accessed by ?action=boardindex.

   bool calendarDoIndex()
      - prepares the calendar data for the board index.
      - takes care of caching it for speed.
      - depends upon these settings: cal_showeventsonindex,
        cal_showbdaysonindex, cal_showholidaysonindex.
      - returns whether there is anything to display.
*/

// Show the board index!
function BoardIndex()
{
   global 
$txt$scripturl$db_prefix$ID_MEMBER$user_info$sourcedir;
   global 
$modSettings$context$settings;

   
// For wireless, we use the Wireless template...
   
if (WIRELESS)
      
$context['sub_template'] = WIRELESS_PROTOCOL '_boardindex';
   else
      
loadTemplate('BoardIndex');

   
// Remember the most recent topic for optimizing the recent posts feature.
   
$most_recent_topic = array(
      
'timestamp' => 0,
      
'ref' => null
   
);

   
// Find all boards and categories, as well as related information.  This will be sorted by the natural order of boards and categories, which we control.
   
$result_boards db_query("
      SELECT
         c.name AS catName, c.ID_CAT, b.ID_BOARD, b.name AS boardName, b.description,
         b.numPosts, b.numTopics, b.ID_PARENT, IFNULL(m.posterTime, 0) AS posterTime,
         IFNULL(mem.memberName, m.posterName) AS posterName, m.subject, m.ID_TOPIC,
         IFNULL(mem.realName, m.posterName) AS realName," 
. ($user_info['is_guest'] ? "
         1 AS isRead, 0 AS new_from" 
"
         (IFNULL(lb.ID_MSG, 0) >= b.ID_MSG_UPDATED) AS isRead, IFNULL(lb.ID_MSG, -1) + 1 AS new_from,
         c.canCollapse, IFNULL(cc.ID_MEMBER, 0) AS isCollapsed"
) . ",
         IFNULL(mem.ID_MEMBER, 0) AS ID_MEMBER, m.ID_MSG,
         IFNULL(mods_mem.ID_MEMBER, 0) AS ID_MODERATOR, mods_mem.realName AS modRealName
      FROM 
{$db_prefix}boards AS b
         LEFT JOIN 
{$db_prefix}categories AS c ON (c.ID_CAT = b.ID_CAT)
         LEFT JOIN 
{$db_prefix}messages AS m ON (m.ID_MSG = b.ID_LAST_MSG)
         LEFT JOIN 
{$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER)" . (!$user_info['is_guest'] ? "
         LEFT JOIN 
{$db_prefix}log_boards AS lb ON (lb.ID_BOARD = b.ID_BOARD AND lb.ID_MEMBER = $ID_MEMBER)
         LEFT JOIN 
{$db_prefix}collapsed_categories AS cc ON (cc.ID_CAT = c.ID_CAT AND cc.ID_MEMBER = $ID_MEMBER)" '') . "
         LEFT JOIN 
{$db_prefix}moderators AS mods ON (mods.ID_BOARD = b.ID_BOARD)
         LEFT JOIN 
{$db_prefix}members AS mods_mem ON (mods_mem.ID_MEMBER = mods.ID_MEMBER)
      WHERE 
$user_info[query_see_board]. (empty($modSettings['countChildPosts']) ? "
         AND b.childLevel <= 1" 
''), __FILE____LINE__);

   
// Run through the categories and boards....
   
$context['categories'] = array();
   while (
$row_board mysql_fetch_assoc($result_boards))
   {
      
// Haven't set this category yet.
      
if (empty($context['categories'][$row_board['ID_CAT']]))
      {
         
$context['categories'][$row_board['ID_CAT']] = array(
            
'id' => $row_board['ID_CAT'],
            
'name' => $row_board['catName'],
            
'is_collapsed' => isset($row_board['canCollapse']) && $row_board['canCollapse'] == && $row_board['isCollapsed'] > 0,
            
'can_collapse' => isset($row_board['canCollapse']) && $row_board['canCollapse'] == 1,
            
'collapse_href' => isset($row_board['canCollapse']) ? $scripturl '?action=collapse;c=' $row_board['ID_CAT'] . ';sa=' . ($row_board['isCollapsed'] > 'expand' 'collapse;') . '#' $row_board['ID_CAT'] : '',
            
'collapse_image' => isset($row_board['canCollapse']) ? '<img src="' $settings['images_url'] . '/' . ($row_board['isCollapsed'] > 'expand.gif" alt="+"' 'collapse.gif" alt="-"') . ' border="0" />' '',
            
'href' => $scripturl '#' $row_board['ID_CAT'],
            
'boards' => array(),
            
'new' => false
         
);
         
$context['categories'][$row_board['ID_CAT']]['link'] = '<a name="' $row_board['ID_CAT'] . '" href="' . (isset($row_board['canCollapse']) ? $context['categories'][$row_board['ID_CAT']]['collapse_href'] : $context['categories'][$row_board['ID_CAT']]['href']) . '">' $row_board['catName'] . '</a>';
      }

      
// If this board has new posts in it (and isn't the recycle bin!) then the category is new.
      
if (empty($modSettings['recycle_enable']) || $modSettings['recycle_board'] != $row_board['ID_BOARD'])
         
$context['categories'][$row_board['ID_CAT']]['new'] |= empty($row_board['isRead']) && $row_board['posterName'] != '';

      
// Collapsed category - don't do any of this.
      
if ($context['categories'][$row_board['ID_CAT']]['is_collapsed'])
         continue;

      
// Let's save some typing.  Climbing the array might be slower, anyhow.
      
$this_category = &$context['categories'][$row_board['ID_CAT']]['boards'];

      
// This is a parent board.
      
if (empty($row_board['ID_PARENT']))
      {
         
// Is this a new board, or just another moderator?
         
if (!isset($this_category[$row_board['ID_BOARD']]))
         {
            
// Not a child.
            
$isChild false;

            
$this_category[$row_board['ID_BOARD']] = array(
               
'new' => empty($row_board['isRead']),
               
'id' => $row_board['ID_BOARD'],
               
'name' => $row_board['boardName'],
               
'description' => $row_board['description'],
               
'moderators' => array(),
               
'link_moderators' => array(),
               
'children' => array(),
               
'link_children' => array(),
               
'children_new' => false,
               
'topics' => $row_board['numTopics'],
               
'posts' => $row_board['numPosts'],
               
'href' => $scripturl '?board=' $row_board['ID_BOARD'] . '.0',
               
'link' => '<a href="' $scripturl '?board=' $row_board['ID_BOARD'] . '.0">' $row_board['boardName'] . '</a>'
            
);
         }
         if (!empty(
$row_board['ID_MODERATOR']))
         {
            
$this_category[$row_board['ID_BOARD']]['moderators'][$row_board['ID_MODERATOR']] = array(
               
'id' => $row_board['ID_MODERATOR'],
               
'name' => $row_board['modRealName'],
               
'href' => $scripturl '?action=profile;u=' $row_board['ID_MODERATOR'],
               
'link' => '<a href="' $scripturl '?action=profile;u=' $row_board['ID_MODERATOR'] . '" title="' $txt[62] . '">' $row_board['modRealName'] . '</a>'
            
);
            
$this_category[$row_board['ID_BOARD']]['link_moderators'][] = '<a href="' $scripturl '?action=profile;u=' $row_board['ID_MODERATOR'] . '" title="' $txt[62] . '">' $row_board['modRealName'] . '</a>';
         }
      }
      
// Found a child board.... make sure we've found its parent and the child hasn't been set already.
      
elseif (isset($this_category[$row_board['ID_PARENT']]['children']) && !isset($this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']]))
      {
         
// A valid child!
         
$isChild true;

         
$this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']] = array(
            
'id' => $row_board['ID_BOARD'],
            
'name' => $row_board['boardName'],
            
'description' => $row_board['description'],
            
'new' => empty($row_board['isRead']) && $row_board['posterName'] != '',
            
'topics' => $row_board['numTopics'],
            
'posts' => $row_board['numPosts'],
            
'href' => $scripturl '?board=' $row_board['ID_BOARD'] . '.0',
            
'link' => '<a href="' $scripturl '?board=' $row_board['ID_BOARD'] . '.0">' $row_board['boardName'] . '</a>'
         
);

         
// Counting child board posts is... slow :/.
         
if (!empty($modSettings['countChildPosts']))
         {
            
$this_category[$row_board['ID_PARENT']]['posts'] += $row_board['numPosts'];
            
$this_category[$row_board['ID_PARENT']]['topics'] += $row_board['numTopics'];
         }

         
// Does this board contain new boards?
         
$this_category[$row_board['ID_PARENT']]['children_new'] |= empty($row_board['isRead']);

         
// This is easier to use in many cases for the theme....
         
$this_category[$row_board['ID_PARENT']]['link_children'][] = &$this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']]['link'];
      }
      
// Child of a child... just add it on...
      
elseif (!empty($modSettings['countChildPosts']))
      {
         if (!isset(
$parent_map))
            
$parent_map = array();

         if (!isset(
$parent_map[$row_board['ID_PARENT']]))
            foreach (
$this_category as $id => $board)
            {
               if (!isset(
$board['children'][$row_board['ID_PARENT']]))
                  continue;

               
$parent_map[$row_board['ID_PARENT']] = array(&$this_category[$id], &$this_category[$id]['children'][$row_board['ID_PARENT']]);
               
$parent_map[$row_board['ID_BOARD']] = array(&$this_category[$id], &$this_category[$id]['children'][$row_board['ID_PARENT']]);

               break;
            }

         if (isset(
$parent_map[$row_board['ID_PARENT']]))
         {
            
$parent_map[$row_board['ID_PARENT']][0]['posts'] += $row_board['numPosts'];
            
$parent_map[$row_board['ID_PARENT']][0]['topics'] += $row_board['numTopics'];
            
$parent_map[$row_board['ID_PARENT']][1]['posts'] += $row_board['numPosts'];
            
$parent_map[$row_board['ID_PARENT']][1]['topics'] += $row_board['numTopics'];

            continue;
         }

         continue;
      }
      
// Found a child of a child - skip.
      
else
         continue;

      
// Prepare the subject, and make sure it's not too long.
      
censorText($row_board['subject']);
      
$row_board['short_subject'] = shorten_subject($row_board['subject'], 24);
      
$this_last_post = array(
         
'id' => $row_board['ID_MSG'],
         
'time' => $row_board['posterTime'] > timeformat($row_board['posterTime']) : $txt[470],
         
'timestamp' => forum_time(true$row_board['posterTime']),
         
'subject' => $row_board['short_subject'],
         
'member' => array(
            
'id' => $row_board['ID_MEMBER'],
            
'username' => $row_board['posterName'] != '' $row_board['posterName'] : $txt[470],
            
'name' => $row_board['realName'],
            
'href' => $row_board['posterName'] != '' && !empty($row_board['ID_MEMBER']) ? $scripturl '?action=profile;u=' $row_board['ID_MEMBER'] : '',
            
'link' => $row_board['posterName'] != '' ? (!empty($row_board['ID_MEMBER']) ? '<a href="' $scripturl '?action=profile;u=' $row_board['ID_MEMBER'] . '">' $row_board['realName'] . '</a>' $row_board['realName']) : $txt[470],
         ),
         
'start' => 'msg' $row_board['new_from'],
         
'topic' => $row_board['ID_TOPIC']
      );

      
// Provide the href and link.
      
if ($row_board['subject'] != '')
      {
         
$this_last_post['href'] = $scripturl '?topic=' $row_board['ID_TOPIC'] . '.msg' . ($user_info['is_guest'] ? $modSettings['maxMsgID'] : $row_board['new_from']) . (empty($row_board['isRead']) ? ';boardseen' '') . '#new';
         
$this_last_post['link'] = '<a href="' $this_last_post['href'] . '" title="' $row_board['subject'] . '">' $row_board['short_subject'] . '</a>';
      }
      else
      {
         
$this_last_post['href'] = '';
         
$this_last_post['link'] = $txt[470];
      }

      
// Set the last post in the parent board.
      
if (empty($row_board['ID_PARENT']) || ($isChild && !empty($row_board['posterTime']) && $this_category[$row_board['ID_PARENT']]['last_post']['timestamp'] < forum_time(true$row_board['posterTime'])))
         
$this_category[$isChild $row_board['ID_PARENT'] : $row_board['ID_BOARD']]['last_post'] = $this_last_post;
      
// Just in the child...?
      
if ($isChild)
      {
         
$this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']]['last_post'] = $this_last_post;

         
// If there are no posts in this board, it really can't be new...
         
$this_category[$row_board['ID_PARENT']]['children'][$row_board['ID_BOARD']]['new'] &= $row_board['posterName'] != '';
      }
      
// No last post for this board?  It's not new then, is it..?
      
elseif ($row_board['posterName'] == '')
         
$this_category[$row_board['ID_BOARD']]['new'] = false;

      
// Determine a global most recent topic.
      
if (!empty($row_board['posterTime']) && forum_time(true$row_board['posterTime']) > $most_recent_topic['timestamp'])
         
$most_recent_topic = array(
            
'timestamp' => forum_time(true$row_board['posterTime']),
            
'ref' => &$this_category[$isChild $row_board['ID_PARENT'] : $row_board['ID_BOARD']]['last_post'],
         );
   }
   
mysql_free_result($result_boards);

   
// Load the users online right now.
   
$result db_query("
      SELECT
         lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,
         mg.onlineColor, mg.ID_GROUP, mg.groupName
      FROM 
{$db_prefix}log_online AS lo
         LEFT JOIN 
{$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
         LEFT JOIN 
{$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))"__FILE____LINE__);

   
$context['users_online'] = array();
   
$context['list_users_online'] = array();
   
$context['online_groups'] = array();
   
$context['num_guests'] = 0;
   
$context['num_buddies'] = 0;
   
$context['num_users_hidden'] = 0;

   
$context['show_buddies'] = !empty($user_info['buddies']);

   while (
$row mysql_fetch_assoc($result))
   {
      if (empty(
$row['realName']))
      {
         
$context['num_guests']++;
         continue;
      }
      elseif (empty(
$row['showOnline']) && !allowedTo('moderate_forum'))
      {
         
$context['num_users_hidden']++;
         continue;
      }

      
// Some basic color coding...
      
if (!empty($row['onlineColor']))
         
$link '<a href="' $scripturl '?action=profile;u=' $row['ID_MEMBER'] . '" style="color: ' $row['onlineColor'] . ';">' $row['realName'] . '</a>';
      else
         
$link '<a href="' $scripturl '?action=profile;u=' $row['ID_MEMBER'] . '">' $row['realName'] . '</a>';

      
$is_buddy in_array($row['ID_MEMBER'], $user_info['buddies']);
      if (
$is_buddy)
      {
         
$context['num_buddies']++;
         
$link '<b>' $link '</b>';
      }

      
$context['users_online'][$row['logTime'] . $row['memberName']] = array(
         
'id' => $row['ID_MEMBER'],
         
'username' => $row['memberName'],
         
'name' => $row['realName'],
         
'group' => $row['ID_GROUP'],
         
'href' => $scripturl '?action=profile;u=' $row['ID_MEMBER'],
         
'link' => $link,
         
'is_buddy' => $is_buddy,
         
'hidden' => empty($row['showOnline']),
      );

      
$context['list_users_online'][$row['logTime'] . $row['memberName']] = empty($row['showOnline']) ? '<i>' $link '</i>' $link;

      if (!isset(
$context['online_groups'][$row['ID_GROUP']]))
         
$context['online_groups'][$row['ID_GROUP']] = array(
            
'id' => $row['ID_GROUP'],
            
'name' => $row['groupName'],
            
'color' => $row['onlineColor']
         );
   }
   
mysql_free_result($result);

   
krsort($context['users_online']);
   
krsort($context['list_users_online']);
   
ksort($context['online_groups']);

   
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

   
//users in chat
   
$result db_query("SELECT userID,userName FROM   ajax_chat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)"__FILE____LINE__);
   
$context['users_in_chat_links'] = array();
   while (
$row mysql_fetch_assoc($result))
      {
      
$link '<a href="' $scripturl '?action=profile;u=' $row['userID'] ;
      if(isset(
$context['online_groups'][$row['userID']]['color'])){
         
$link.= '" style="color: ' $context['online_groups'][$row['userID']]['color'];
      }
      
$link.= '">' $row['userName'] . '</a>';
      
array_push($context['users_in_chat_links'], $link);
      }
   
mysql_free_result($result);

   
// Track most online statistics?
   
if (!empty($modSettings['trackStats']))
   {
      
// Determine the most users online - both all time and per day.
      
$total_users $context['num_guests'] + $context['num_users_online'];

      
// More members on now than ever were?  Update it!
      
if (!isset($modSettings['mostOnline']) || $total_users >= $modSettings['mostOnline'])
         
updateSettings(array('mostOnline' => $total_users'mostDate' => time()));

      
$date strftime('%Y-%m-%d'forum_time(false));

      
// One or more stats are not up-to-date?
      
if (!isset($modSettings['mostOnlineUpdated']) || $modSettings['mostOnlineUpdated'] != $date)
      {
         
$request db_query("
            SELECT mostOn
            FROM 
{$db_prefix}log_activity
            WHERE date = '
$date'
            LIMIT 1"
__FILE____LINE__);

         
// The log_activity hasn't got an entry for today?
         
if (mysql_num_rows($request) == 0)
         {
            
db_query("
               INSERT IGNORE INTO 
{$db_prefix}log_activity
                  (date, mostOn)
               VALUES ('
$date', $total_users)"__FILE____LINE__);
         }
         
// There's an entry in log_activity on today...
         
else
         {
            list (
$modSettings['mostOnlineToday']) = mysql_fetch_row($request);

            if (
$total_users $modSettings['mostOnlineToday'])
               
trackStats(array('mostOn' => $total_users));

            
$total_users max($total_users$modSettings['mostOnlineToday']);
         }
         
mysql_free_result($request);

         
updateSettings(array('mostOnlineUpdated' => $date'mostOnlineToday' => $total_users));
      }
      
// Highest number of users online today?
      
elseif ($total_users $modSettings['mostOnlineToday'])
      {
         
trackStats(array('mostOn' => $total_users));
         
updateSettings(array('mostOnlineUpdated' => $date'mostOnlineToday' => $total_users));
      }
   }

   
// Set the latest member.
   
$context['latest_member'] = &$context['common_stats']['latest_member'];

   
// Load the most recent post?
   
if ((!empty($settings['number_recent_posts']) && $settings['number_recent_posts'] == 1) || $settings['show_sp1_info'])
      
$context['latest_post'] = $most_recent_topic['ref'];

   if (!empty(
$settings['number_recent_posts']) && $settings['number_recent_posts'] > 1)
   {
      require_once(
$sourcedir '/Recent.php');

      if ((
$context['latest_posts'] = cache_get_data('boardindex-latest_posts:' md5($user_info['query_see_board'] . $user_info['language']), 180)) == null)
      {
         
$context['latest_posts'] = getLastPosts($settings['number_recent_posts']);
         
cache_put_data('boardindex-latest_posts:' md5($user_info['query_see_board'] . $user_info['language']), $context['latest_posts'], 180);
      }

      
// We have to clean up the cached data a bit.
      
foreach ($context['latest_posts'] as $k => $post)
      {
         
$context['latest_posts'][$k]['time'] = timeformat($post['raw_timestamp']);
         
$context['latest_posts'][$k]['timestamp'] = forum_time(true$post['raw_timestamp']);
      }
   }

   
$settings['display_recent_bar'] = !empty($settings['number_recent_posts']) ? $settings['number_recent_posts'] : 0;
   
$settings['show_member_bar'] &= allowedTo('view_mlist');
   
$context['show_stats'] = allowedTo('view_stats') && !empty($modSettings['trackStats']);
   
$context['show_member_list'] = allowedTo('view_mlist');
   
$context['show_who'] = allowedTo('who_view') && !empty($modSettings['who_enabled']);

   
// Set some permission related settings.
   
$context['show_login_bar'] = $user_info['is_guest'] && !empty($modSettings['enableVBStyleLogin']);
   
$context['show_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);

   
// Load the calendar?
   
if ($context['show_calendar'])
      
$context['show_calendar'] = calendarDoIndex();

   
$context['page_title'] = $txt[18];
}

// Called from the BoardIndex to display the current day's events on the board index.
function calendarDoIndex()
{
   global 
$modSettings$context$user_info$scripturl$sc$ID_MEMBER;

   
// Make sure at least one of the options is checked.
   
if (empty($modSettings['cal_showeventsonindex']) && empty($modSettings['cal_showbdaysonindex']) && empty($modSettings['cal_showholidaysonindex']))
      return 
false;

   
// Get the current forum time and check whether the statistics are up to date.
   
if (empty($modSettings['cal_today_updated']) || $modSettings['cal_today_updated'] != strftime('%Y%m%d'forum_time(false)))
      
updateStats('calendar');

   
// Load the holidays for today, ...
   
if (!empty($modSettings['cal_showholidaysonindex']) && isset($modSettings['cal_today_holiday']))
      
$holidays unserialize($modSettings['cal_today_holiday']);
   
// ... the birthdays for today, ...
   
if (!empty($modSettings['cal_showbdaysonindex']) && isset($modSettings['cal_today_birthday']))
      
$bday unserialize($modSettings['cal_today_birthday']);
   
// ... and the events for today.
   
if (!empty($modSettings['cal_showeventsonindex']) && isset($modSettings['cal_today_event']))
      
$events unserialize($modSettings['cal_today_event']);

   
// No events, birthdays, or holidays... don't show anything.  Simple.
   
if (empty($holidays) && empty($bday) && empty($events))
      return 
false;

   
// This shouldn't be less than one!
   
if (empty($modSettings['cal_days_for_index']) || $modSettings['cal_days_for_index'] < 1)
      
$days_for_index 86400;
   else
      
$days_for_index $modSettings['cal_days_for_index'] * 86400;

   
$context['calendar_only_today'] = $modSettings['cal_days_for_index'] == 1;

   
// Get the current member time/date.
   
$now forum_time();

   
// This is used to show the "how-do-I-edit" help.
   
$context['calendar_can_edit'] = allowedTo('calendar_edit_any');

   
// Holidays between now and now + days.
   
$context['calendar_holidays'] = array();
   for (
$i $now$i $now $days_for_index$i += 86400)
   {
      if (isset(
$holidays[strftime('%Y-%m-%d'$i)]))
         
$context['calendar_holidays'] = array_merge($context['calendar_holidays'], $holidays[strftime('%Y-%m-%d'$i)]);
   }

   
// Happy Birthday, guys and gals!
   
$context['calendar_birthdays'] = array();
   for (
$i $now$i $now $days_for_index$i += 86400)
      if (isset(
$bday[strftime('%Y-%m-%d'$i)]))
      {
         foreach (
$bday[strftime('%Y-%m-%d'$i)] as $index => $dummy)
            
$bday[strftime('%Y-%m-%d'$i)][$index]['is_today'] = strftime('%Y-%m-%d'$i) == strftime('%Y-%m-%d'forum_time());
         
$context['calendar_birthdays'] = array_merge($context['calendar_birthdays'], $bday[strftime('%Y-%m-%d'$i)]);
      }

   
$context['calendar_events'] = array();
   
$duplicates = array();
   for (
$i $now$i $now $days_for_index$i += 86400)
   {
      if (empty(
$events[strftime('%Y-%m-%d'$i)]))
         continue;

      foreach (
$events[strftime('%Y-%m-%d'$i)] as $ev => $event)
      {
         if (empty(
$event['topic']) || (count(array_intersect($user_info['groups'], $event['allowed_groups'])) != || allowedTo('admin_forum')))
         {
            if (isset(
$duplicates[$events[strftime('%Y-%m-%d'$i)][$ev]['topic'] . $events[strftime('%Y-%m-%d'$i)][$ev]['title']]))
            {
               unset(
$events[strftime('%Y-%m-%d'$i)][$ev]);
               continue;
            }

            
$this_event = &$events[strftime('%Y-%m-%d'$i)][$ev];
            
$this_event['href'] = $this_event['topic'] == '' $scripturl '?topic=' $this_event['topic'] . '.0';
            
$this_event['modify_href'] = $scripturl '?action=' . ($this_event['topic'] == 'calendar;sa=post;' 'post;msg=' $this_event['msg'] . ';topic=' $this_event['topic'] . '.0;calendar;') . 'eventid=' $this_event['id'] . ';sesc=' $sc;
            
$this_event['can_edit'] = allowedTo('calendar_edit_any') || ($this_event['poster'] == $ID_MEMBER && allowedTo('calendar_edit_own'));
            
$this_event['is_today'] = (strftime('%Y-%m-%d'$i)) == strftime('%Y-%m-%d'forum_time());
            
$this_event['date'] = strftime('%Y-%m-%d'$i);

            
$duplicates[$this_event['topic'] . $this_event['title']] = true;
         }
         else
            unset(
$events[strftime('%Y-%m-%d'$i)][$ev]);
      }

      if (!empty(
$events[strftime('%Y-%m-%d'$i)]))
         
$context['calendar_events'] = array_merge($context['calendar_events'], $events[strftime('%Y-%m-%d'$i)]);
   }

   for (
$i 0$n count($context['calendar_birthdays']); $i $n$i++)
      
$context['calendar_birthdays'][$i]['is_last'] = !isset($context['calendar_birthdays'][$i 1]);
   for (
$i 0$n count($context['calendar_events']); $i $n$i++)
      
$context['calendar_events'][$i]['is_last'] = !isset($context['calendar_events'][$i 1]);

   
// This is used to make sure the header should be displayed.
   
return !empty($context['calendar_holidays']) || !empty($context['calendar_birthdays']) || !empty($context['calendar_events']);
}

?>



if this doesn't solve the problem place a link to your forum here
Title: Re: AjaxChat Integration
Post by: TC Carl on January 17, 2009, 01:24:52 PM
My chat integration worked from the start and continues to work fine. Nobody uses it though, because they cannot readily see who is in chat -- that info is at the very bottom of the main screen only.

IF we could list who is currently in the chatroom in the user's header area, under this text:

Show unread posts since last visit.
Show new replies to your posts.
Total time logged in: 59 days, 1 hours and 1 minutes.
Users currently in chat: 6 users

I think that would be the best improvement ever. Any chance of making this happen? Thanks!

Title: Re: AjaxChat Integration
Post by: ChackanPT on January 17, 2009, 03:31:35 PM
Still didn't work.

Url for my forum is: www.otherworld-portal.com

You can login with the following user: test / password: test

Thanks for the help!
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 18, 2009, 05:57:08 AM
ChackanPT i checked your forum
everything is OK?
whats the problem???!!!
Title: Re: AjaxChat Integration
Post by: ChackanPT on January 18, 2009, 06:08:35 AM
There is nothing showing how many users are online in the chat :O
Title: Re: AjaxChat Integration
Post by: Blinker on January 18, 2009, 06:47:31 AM
Hey Chackan, I just logged into your forum with the test account.

I clicked the chat button and the chat window opened up and logged me in.

Then I went back to the forum index and did a refresh and it definitely shows "1 user is in chat" - test.

See screenshot.
Title: Re: AjaxChat Integration
Post by: ChackanPT on January 18, 2009, 11:07:42 AM
Weird. Im logged in with both my account and the test account, and are in the forum and the chat and that doesnt appear :S Im trying in opera and internet explorer
Title: Re: AjaxChat Integration
Post by: heinandar on January 18, 2009, 03:44:30 PM
hay.. i use member color link mod. Can i integrate member color in online users?? I use Ajax Chat 0.8.2 Anyone can help me?
Title: Re: AjaxChat Integration
Post by: ryozo on January 18, 2009, 09:52:46 PM
can i restrict access to chat by using post counts? thanks
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 19, 2009, 01:25:17 AM
@heinandar
I see your post in member link mod too, but this is not related to that mod

and unfortunately i tried this before but i don't think with this version of chat it will be possible(at least without hard coding)
because the chat system has only 3 group (admin, moderator , regular member) and just 3 color for them
and colorize the members based on their group
but i try one more time but i don't think i can do something helpful

@ryozo
open your chat/index.php file and replace all of it with this code

<?php
require_once("../ssi.php");
global 
$user_info;
if (
ssi_login("","chat"))
   
ssi_login("http://yoursite.com/forum/chat/index.php");
else{
   
$allowed_groups= array(1);
  
$flag false;
  foreach (
$allowed_groups as $group) {
     if(
in_array($group$user_info['groups']))
        
$flag true;
   }
   if (
$flag){
         
/*
         * @package AJAX_Chat
          * @author Sebastian Tschan
          * @copyright (c) Sebastian Tschan
          * @license GNU Affero General Public License
          * @link https://blueimp.net/ajax/
          */

         // Show all errors:
         
error_reporting(E_ALL);

         
// Path to the chat directory:
         
define('AJAX_CHAT_PATH'dirname($_SERVER['SCRIPT_FILENAME']).'/');

         
// Include custom libraries and initialization code:
         
require(AJAX_CHAT_PATH.'lib/custom.php');

         
// Include Class libraries:
         
require(AJAX_CHAT_PATH.'lib/classes.php');

         
// Initialize the chat:
         
$ajaxChat = new CustomAJAXChat();
         }
         else{
            echo 
'Sorry, you can\'t access the chat.';
            }
      }
?>



the only thing you should do is edit this line
$allowed_groups= array(1);
to your desired groups something like this:
$allowed_groups= array(1,2,3,4);
and also this line
ssi_login("http://yoursite.com/forum/chat/index.php (http://yoursite.com/forum/chat/index.php)");
to your site url
Title: Re: AjaxChat Integration
Post by: heinandar on January 19, 2009, 08:41:08 AM
HI...HuNTeR.

above code is not work for me. After replace code and  i can't login because i see white screen only. Any way, Thanks for ur time
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 19, 2009, 09:23:24 AM
did you changed these items:

the only thing you should do is edit this line
$allowed_groups= array(1);
to your desired groups something like this:
$allowed_groups= array(1,2,3,4);
and also this line
ssi_login("http://yoursite.com/forum/chat/index.php");
to your site url
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 19, 2009, 09:54:45 AM
Quote from: .HuNTeR. on January 19, 2009, 09:23:24 AM
did you changed these items:

the only thing you should do is edit this line
$allowed_groups= array(1);
to your desired groups something like this:
$allowed_groups= array(1,2,3,4);
and also this line
ssi_login("http://yoursite.com/forum/chat/index.php");
to your site url

I tried the same thing and did change $allowed_groups= array(1); to my user groups and changed to my url and got the same results. 500 Internal Error

EDIT: Is it possible to do something like this for SMF Users?

"How to display members of a custom user group in a custom color (phpBB3)"

http://ajax-chat.wiki.sourceforge.net/phpBB3+custom+user+group
Title: Re: AjaxChat Integration
Post by: heinandar on January 19, 2009, 09:58:51 AM
Quote<?php
require_once("../ssi.php");
global $user_info;
if (ssi_login("","chat"))
   ssi_login("http://trueloveland.net/community/chat/index.php");
else{
   $allowed_groups= array(1,2,4,5,6,7,8);
  $flag = false;
  foreach ($allowed_groups as $group) {
     if(in_array($group, $user_info['groups']))
        $flag = true;
   }
   if ($flag){
         /*
         * @package AJAX_Chat
          * @author Sebastian Tschan
          * @copyright (c) Sebastian Tschan
          * @license GNU Affero General Public License
          * @link https://blueimp.net/ajax/
          */

         // Show all errors:
         error_reporting(E_ALL);

         // Path to the chat directory:
         define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');

         // Include custom libraries and initialization code:
         require(AJAX_CHAT_PATH.'lib/custom.php');

         // Include Class libraries:
         require(AJAX_CHAT_PATH.'lib/classes.php');

         // Initialize the chat:
         $ajaxChat = new CustomAJAXChat();
         }
         else{
            echo 'Sorry, you can't access the chat.;
            }
      }
?>

above is my code. does not work for me. I tried http://www.trueloveland.net/community/chat/index.php but the result is also white page.   :'( :'( :'( :'( :'(
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 19, 2009, 11:00:04 AM
sorry my bad
use this new code

<?php
require_once("../ssi.php");
global 
$user_info;
if (
ssi_login("","chat"))
   
ssi_login("http://trueloveland.net/community/chat/index.php");
else{
   
$allowed_groups= array(1,2,4,5,6,7,8);
  
$flag false;
  foreach (
$allowed_groups as $group) {
     if(
in_array($group$user_info['groups']))
        
$flag true;
   }
   if (
$flag){
         
/*
         * @package AJAX_Chat
          * @author Sebastian Tschan
          * @copyright (c) Sebastian Tschan
          * @license GNU Affero General Public License
          * @link https://blueimp.net/ajax/
          */

         // Show all errors:
         
error_reporting(E_ALL);

         
// Path to the chat directory:
         
define('AJAX_CHAT_PATH'dirname($_SERVER['SCRIPT_FILENAME']).'/');

         
// Include custom libraries and initialization code:
         
require(AJAX_CHAT_PATH.'lib/custom.php');

         
// Include Class libraries:
         
require(AJAX_CHAT_PATH.'lib/classes.php');

         
// Initialize the chat:
         
$ajaxChat = new CustomAJAXChat();
         }
         else{
            echo 
'Sorry, you can't access the chat.';
            }
      }
?>



@mrtrc266 what you linked possible but if you want colorize 5 groups you should add this code 5 times and also because of manually entering the colors if you some day want to change any group's colors in your forum then you should do the same in chat
maybe possible to create an automated code but i haven't enough time now but i will remember this and maybe some day...
but if you want do it manually it is possible and there's no code editing in smf and all edits is on chat script
Title: Re: AjaxChat Integration
Post by: pipo_il_primero on January 19, 2009, 06:58:21 PM
Hello,
I've installed Ajax Chat for SMF but have not yet installed the integration of .HuNTeR. because I have some permission problems that I want to solve first.

The chat is working fine, but when I am logged in SMF and enter the chatroom I am assigned no username. I do keep my Admin functions though (or at least I think so).

On the other hand, all other users upon entering chatroom keep their username, but lose their permissions. So everybody is a "user" at the end. No admins, no mods!!!

This is really weird, can anybody help me with this please?
Thx
pipo
Title: Re: AjaxChat Integration
Post by: newhand on January 20, 2009, 12:32:32 AM
Hi,

I 've just successfully installed Ajax Chat for SMF 1.1.7.

I also install the "Chat" button into the main menu bar.

It works fine.  It is very good.

I have  a problem when user change their profile to use THAI language, the "Chat" button disappear from the main menu bar.

Does anyone can help me to modify !!

Thanks in advanced
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 20, 2009, 01:20:05 AM
Quote from: .HuNTeR. on January 19, 2009, 11:00:04 AM
@mrtrc266 what you linked possible but if you want colorize 5 groups you should add this code 5 times and also because of manually entering the colors if you some day want to change any group's colors in your forum then you should do the same in chat
maybe possible to create an automated code but i haven't enough time now but i will remember this and maybe some day...
but if you want do it manually it is possible and there's no code editing in smf and all edits is on chat script
This would be way cool when you get the time

But for now I tried this just for myself (Admin)

<?php
require_once("../ssi.php");
global 
$user_info;
if (
ssi_login("","chat"))
   
ssi_login("http://monsters-mansion.com/chat/index.php");
else{
   
$allowed_groups= array(1);
  
$flag false;
  foreach (
$allowed_groups as $group) {
     if(
in_array($group$user_info['groups']))
        
$flag true;
   }
   if (
$flag){
         
/*
         * @package AJAX_Chat
          * @author Sebastian Tschan
          * @copyright (c) Sebastian Tschan
          * @license GNU Affero General Public License
          * @link https://blueimp.net/ajax/
          */

         // Show all errors:
         
error_reporting(E_ALL);

         
// Path to the chat directory:
         
define('AJAX_CHAT_PATH'dirname($_SERVER['SCRIPT_FILENAME']).'/');

         
// Include custom libraries and initialization code:
         
require(AJAX_CHAT_PATH.'lib/custom.php');

         
// Include Class libraries:
         
require(AJAX_CHAT_PATH.'lib/classes.php');

         
// Initialize the chat:
         
$ajaxChat = new CustomAJAXChat();
         }
         else{
            echo 
'Sorry, you can't access the chat.;
            }
      }
?>



and stil get an this same error?
QuoteThe website cannot display the page  HTTP 500 
Title: Re: AjaxChat Integration
Post by: X3R0_9 on January 20, 2009, 02:13:22 PM
I have to say that I'm having a hard time getting the mod to work on the default theme. The chat install went smoothly, but the mod is not. It's not showing the shoutbox option in the "Features and Options" part of Admin. Do I have to manually install the mod on the default theme also?
Title: Re: AjaxChat Integration
Post by: computerworks on January 20, 2009, 03:21:00 PM
Ajax Chat and this mod works well in v.1.1.5  => Thank you for it.

I have a suggestion ( or can anyone help with the code for the default theme?)

The mod adds a Chat button in the top menu...

It would be very helpful if the 'legend' on that button included the number of users presently in chat.

In other words, with 4 members in chat, the button would read: "CHAT(4)"

I think I have seen this in other chat integrations.
Title: Re: AjaxChat Integration
Post by: TC Carl on January 20, 2009, 03:27:15 PM
Quote from: computerworks on January 20, 2009, 03:21:00 PM

In other words, with 4 members in chat, the button would read: "CHAT(4)"


I would most definitely second the motion on that.
My users tell me they don't bother with the chat room
because they cannot see if there is anyone in there.

They do not use the "home" page and scroll to the bottom,
so that area is useless for this purpose.

CHAT(n) would be fantricular!!

Title: Re: AjaxChat Integration
Post by: CueBurn on January 20, 2009, 03:50:33 PM
I'd really appreciate some help please...  I haven't even got up to the mod stage yet but am having problems getting the chat client to work (I know it's not to do with the mod as such, so sorry for posting here but I can't find much support for it elsewhere and am hope it's something simple I'm not doing).  I've installed the chat client as below:

QuoteInstall Ajax Chat
1.   Download Ajax Chat from Ajax Chat Website (Grab the SMF integrated version).
2.   Unzip the files to a directory on your pc.
3.   Create a directory in your forum root eg: if your forum root is somewhere.com/forum then make a directory somewhere.com/forum/chat
4.   FTP the unzipped Ajax Chat files to the directory you created (somewhere.com/forum/chat).
5.   Run the install.php file that will now be in somewhere.com/forum/chat/install.php
6.   Delete the install.php file for security reasons
7.   Your Chatroom should now be functional and can be seen by navigating to somewhere.com/forum/chat/index.php

But when I access the client (www.mywebsite.com/forum/chat/index.php) it loads up but I can't do anything in the chat room.  From the documentation it seems like the IRC server should be hosted locally, but I'm beginning to think I need to link it to an IRC server (which is ideal as I'd like to link this to an existing channel).  I'm not sure if this is possible, nor how I'd do it though?
Title: Re: AjaxChat Integration
Post by: heinandar on January 20, 2009, 04:30:45 PM
Quote from: .HuNTeR. on January 19, 2009, 11:00:04 AM
sorry my bad
use this new code

<?php
require_once("../ssi.php");
global 
$user_info;
if (
ssi_login("","chat"))
   
ssi_login("http://trueloveland.net/community/chat/index.php");
else{
   
$allowed_groups= array(1,2,4,5,6,7,8);
  
$flag false;
  foreach (
$allowed_groups as $group) {
     if(
in_array($group$user_info['groups']))
        
$flag true;
   }
   if (
$flag){
         
/*
         * @package AJAX_Chat
          * @author Sebastian Tschan
          * @copyright (c) Sebastian Tschan
          * @license GNU Affero General Public License
          * @link https://blueimp.net/ajax/
          */

         // Show all errors:
         
error_reporting(E_ALL);

         
// Path to the chat directory:
         
define('AJAX_CHAT_PATH'dirname($_SERVER['SCRIPT_FILENAME']).'/');

         
// Include custom libraries and initialization code:
         
require(AJAX_CHAT_PATH.'lib/custom.php');

         
// Include Class libraries:
         
require(AJAX_CHAT_PATH.'lib/classes.php');

         
// Initialize the chat:
         
$ajaxChat = new CustomAJAXChat();
         }
         else{
            echo 
'Sorry, you can't access the chat.';
            }
      }
?>



@mrtrc266 what you linked possible but if you want colorize 5 groups you should add this code 5 times and also because of manually entering the colors if you some day want to change any group's colors in your forum then you should do the same in chat
maybe possible to create an automated code but i haven't enough time now but i will remember this and maybe some day...
but if you want do it manually it is possible and there's no code editing in smf and all edits is on chat script

Still didn't work for me. i get white page
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 21, 2009, 12:56:11 AM
@pipo_il_primero (http://index.php?action=profile;u=1945)
i don't get this part:
"The chat is working fine, but when I am logged in SMF and enter the chatroom I am assigned no username."
may be a picture shows the problem.
in chat users only have three groups admins(red color) moderators(blue colors) and regular users (black color). and their groups based on their forum groups.
if I can't explain this good let me know.

@newhand (http://index.php?action=profile;u=191251)
you should put this lines in your Themes\default\languages\Modifications.[thai or any other language you want].php
//Begin AjaxChat Integration
$txt['chat']='Chat';
$txt['user_in_chat']=' user is in chat:';
$txt['users_in_chat']=' users are in chat:';
$txt['no_user_in_chat']='No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
//End AjaxChat Integration


Themes/default/languages/Help.[thai or any other language you want].php
//Begin AjaxChat Integration
$helptxt['enableShoutBox'] = 'This enables the ajaxchat shoutbox on your index page.';
//End AjaxChat Integration


with your desired translations
@mrtrc266 (http://index.php?action=profile;u=178448) and @ heinandar (http://index.php?action=profile;u=174047)
it seems there is a bug in WYSIWYG editor
this line
  echo 'Sorry, you can't access the chat.;
  should be:
  echo 'Sorry, you can\'t access the chat.';
i edited this two times but still ...
let me know what happened

@X3R0_9 (http://index.php?action=profile;u=191178)
are you using any language other than english?
if you do you should edit your language files and add these codes:
Themes/default/languages/Modifications.[YOUR LANGUAGE].php
//Begin AjaxChat Integration
$txt['chat']='Chat';
$txt['user_in_chat']=' user is in chat:';
$txt['users_in_chat']=' users are in chat:';
$txt['no_user_in_chat']='No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
//End AjaxChat Integration


Themes/default/languages/Help.[YOUR LANGUAGE].php
//Begin AjaxChat Integration
$helptxt['enableShoutBox'] = 'This enables the ajaxchat shoutbox on your index page.';
//End AjaxChat Integration

@ computerworks (http://index.php?action=profile;u=15971) and TC Carl (http://index.php?action=profile;u=62607)
thanks i will try to add this in next update
@CueBurn (http://index.php?action=profile;u=163863)
you don't need a IRC server
you said "I can't do anything" but i don't get what you mean try be more aspecific and place a link to your site here.
wow so many questions :D
Title: Re: AjaxChat Integration
Post by: WyckedDreamz on January 21, 2009, 12:59:15 AM
QuoteWyckedDreamz  I'll glad if you share your code with us

heres the code snippet from the custom TP block I am using... I tried to figure out how to make it show users in chat using the code from the mod, but no dice for me... maybe you can work some majic on it :)
Heres the code:

global $context, $settings, $options, $scripturl, $txt, $user_info, $modSettings;

    $bullet = '<img src="'.$settings['images_url'].'/TPdivider.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
$bullet2 = '<img src="'.$settings['images_url'].'/TPdivider2.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
$bullet3 = '<img src="'.$settings['images_url'].'/TPdivider3.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
$bullet4 = '<img src="'.$settings['images_url'].'/tpgoto.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
$bullet5 = '<img src="'.$settings['images_url'].'/tpmodule2.gif" alt="" border="0" style="margin:0 2px 0 0;" />';

echo'
<div class="smalltext" style="font-family: verdana, arial, sans-serif;">';

       if(isset($context['TPortal']['userbox']['stats']))
   // members stats
            echo '
                 <img src="'.$settings['images_url'].'/icons/members.gif" style="margin: 0;" align="bottom" alt="" />
                 <a href="'.$scripturl.'?action=mlist"><b>'.$txt[19].'</b></a>
                 <br />'.$bullet.$txt[488].': ' , isset($modSettings['memberCount']) ? $modSettings['memberCount'] : $modSettings['totalMembers'] , '
                 <br />'.$bullet.$txt['tp-latest']. ': <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '"><b>', $modSettings['latestRealName'], '</b></a>';
       if(isset($context['TPortal']['userbox']['stats_all']))

global $db_prefix,$modSettings;
$today = strtotime("24 hours ago");
date('j') == 1 ? $thismonth = $today : $thismonth = strtotime(date('F') . ' 1');
date('l') == 'Sunday' ? $thisweek = $today : $thisweek = strtotime('last Sunday');
date('M') == 'January' ? $thisyear = $thismonth : $thisyear = strtotime('January 1');
$query = db_query("SELECT
COUNT(dateRegistered > $thisyear OR NULL) as year,
COUNT(dateRegistered > $thismonth OR NULL) as month,
COUNT(dateRegistered > $thisweek OR NULL) as week,
COUNT(dateRegistered > $today OR NULL) as today
FROM {$db_prefix}members
WHERE is_activated = 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($query);

settype($row['today'], "integer");
settype($row['week'], "integer");
settype($row['month'], "integer");

echo '<br />',$bullet,'New This Month: ', $row['month'],'<br />';
echo $bullet,'New This Week: ', $row['week'],'<br />';
echo $bullet,'New Today: ', $row['today'];

   // more stats
            echo '
                  <hr /><img src="'.$settings['images_url'].'/icons/info.gif" style="margin: 0;" align="bottom" alt="" />
                 <a href="'.$scripturl.'?action=stats"><b>'.$txt['tp-stats'].'</b></a>
                 <br />'.$bullet.$txt[489].': '.$modSettings['totalMessages']. '
  <br />'.$bullet. $txt[490].': '.$modSettings['totalTopics']. '
  <br />'.$bullet.$txt['tp-mostonline-today'].': '.$modSettings['mostOnlineToday'].'
  <br />'.$bullet.$txt['tp-mostonline'].': '.$modSettings['mostOnline'].'<br />
  ('.timeformat($modSettings['mostDate']).')
  ';

       if(isset($context['TPortal']['userbox']['online'])){
   // add online users
            echo '<hr /><img src="'.$settings['images_url'].'/icons/online.gif" style="margin: 0;" align="bottom" alt="" />
                 <a href="'.$scripturl.'?action=who"><b>'.$txt[158].'</b></a><br />';

            $online = ssi_whosOnline('array');
   echo $bullet.$txt['tp-users'].': '.$online['num_users'];
   echo '<br />'.$bullet.$txt['tp-guests'].': '.$online['guests'];
   echo '<br />'.$bullet.$txt['tp-total'].': '.$online['total_users'].'<hr />
<div style="width: 100%; ' , $online['num_users']>14 ? 'height: 23ex;overflow: auto;' : '' ,'">';

      foreach($online['users'] as $user){
echo $bullet2 , $user['hidden'] ? '<i>' . $user['link'] . '</i>' : $user['link'];
echo '<br />';
   }
echo '</div>';
         }
echo '</div>

</div>';
Title: Re: AjaxChat Integration
Post by: WyckedDreamz on January 21, 2009, 01:05:26 AM
and just so theres no confusion, the list of users in chat shows up just fine at the bottom of the forums, I'd just like it to display in the left TP block as well. I have my chat nestled safely in an iframe in a TP article so that it looks more integrated with the site.

Title: Re: AjaxChat Integration
Post by: Mraza on January 21, 2009, 03:48:49 PM
i was working well on my chatting since i installed some language files. i am not using utf8. now when i click chat button i am getting this error:

XML Parsing Error: undefined entity
Location: /smf/chat/index.php
Line Number 13, Column 65:            </select><input type="hidden" name="changelang" value="1" />&nbsp;<noscript><input type="submit" value="<br />
--------------------------------------------------------------------------------------------

any help please?
Title: Re: AjaxChat Integration
Post by: heinandar on January 21, 2009, 07:18:05 PM
Quote from: .HuNTeR. on January 21, 2009, 12:56:11 AM
mrtrc266 (http://index.php?action=profile;u=178448) [/b]and @ heinandar (http://index.php?action=profile;u=174047)
it seems there is a bug in WYSIWYG editor
this line
  echo 'Sorry, you can't access the chat.;
  should be:
  echo 'Sorry, you can\'t access the chat.';
i edited this two times but still ...
let me know what happened


Thaks for your reply. but for me, still got white page.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 21, 2009, 08:02:45 PM
This is still a no go  :(

<?php
require_once("../ssi.php");
global 
$user_info;
if (
ssi_login("","chat"))
   
ssi_login("http://monsters-mansion.com/chat/index.php");
else{
   
$allowed_groups= array(1);
  
$flag false;
  foreach (
$allowed_groups as $group) {
     if(
in_array($group$user_info['groups']))
        
$flag true;
   }
   if (
$flag){
         
/*
         * @package AJAX_Chat
          * @author Sebastian Tschan
          * @copyright (c) Sebastian Tschan
          * @license GNU Affero General Public License
          * @link https://blueimp.net/ajax/
          */

         // Show all errors:
         
error_reporting(E_ALL);

         
// Path to the chat directory:
         
define('AJAX_CHAT_PATH'dirname($_SERVER['SCRIPT_FILENAME']).'/');

         
// Include custom libraries and initialization code:
         
require(AJAX_CHAT_PATH.'lib/custom.php');

         
// Include Class libraries:
         
require(AJAX_CHAT_PATH.'lib/classes.php');

         
// Initialize the chat:
         
$ajaxChat = new CustomAJAXChat();
         }
         else{
            echo 
'Sorry, you can\'t access the chat.';
            
            }
      }
?>

Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 22, 2009, 03:12:59 AM
@mraza (http://index.php?action=profile;u=187493) you said you installed new language files
place a link to your site + your new language files

@heinandar (http://index.php?action=profile;u=174047) and mrtrc266 (http://index.php?action=profile;u=178448)
I'm completely confused i checked this code locally and works good
i changed some parts and I think this should work
<?php

require(dirname(dirname(__FILE__)) . '/SSI.php');
global 
$user_info;
if (
ssi_login("","chat"))
   
ssi_login("http://monsters-mansion.com/chat/index.php");
else{
   
$allowed_groups= array(1);
  
$flag false;
  foreach (
$allowed_groups as $group) {
     if(
in_array($group$user_info['groups']))
        
$flag true;
   }
   if (
$flag){
         
/*
         * @package AJAX_Chat
          * @author Sebastian Tschan
          * @copyright (c) Sebastian Tschan
          * @license GNU Affero General Public License
          * @link https://blueimp.net/ajax/
          */

         // Show all errors:
         
error_reporting(E_ALL);

         
// Path to the chat directory:
         
define('AJAX_CHAT_PATH'dirname($_SERVER['SCRIPT_FILENAME']).'/');

         
// Include custom libraries and initialization code:
         
require(AJAX_CHAT_PATH.'lib/custom.php');

         
// Include Class libraries:
         
require(AJAX_CHAT_PATH.'lib/classes.php');

         
// Initialize the chat:
         
$ajaxChat = new CustomAJAXChat();
         }
         else{
            echo 
'Sorry, you can\'t access the chat.';
            
            }
      }
?>

Title: Re: AjaxChat Integration
Post by: heinandar on January 22, 2009, 05:29:36 AM
HI.. I can log in . But online color is only for 3 groups (not for membergroups color).
Title: Re: AjaxChat Integration
Post by: Mraza on January 22, 2009, 08:34:09 AM
Quote from: .HuNTeR. on January 22, 2009, 03:12:59 AM
@mraza (http://index.php?action=profile;u=187493) you said you installed new language files
place a link to your site + your new language files

i am developing on local host its not online yet. i installed greek and french with english is default..which langauge files i need to put thanks..
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 22, 2009, 10:33:52 AM
@mraza you mean you created a new translation for chat or smf?
if for chat
what files you translated and did what after translation?
Title: Re: AjaxChat Integration
Post by: newhand on January 22, 2009, 10:35:51 AM
Quote from: .HuNTeR. on January 21, 2009, 12:56:11 AM
...


@newhand (http://index.php?action=profile;u=191251)
you should put this lines in your Themes\default\languages\Modifications.[thai or any other language you want].php
//Begin AjaxChat Integration
$txt['chat']='Chat';
$txt['user_in_chat']=' user is in chat:';
$txt['users_in_chat']=' users are in chat:';
$txt['no_user_in_chat']='No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
//End AjaxChat Integration


Themes/default/languages/Help.[thai or any other language you want].php
//Begin AjaxChat Integration
$helptxt['enableShoutBox'] = 'This enables the ajaxchat shoutbox on your index page.';
//End AjaxChat Integration


with your desired translations


Many thanks .HuNTeR.
It works great.
The chat button appears nicely in the menu, in Thai mode, without having to do anything with the " Themes/default/languages/Help.thai.php. 
So does it still need to add the code in the help file??

I also change the this line
$txt['chat']='Chat';
to display in Thai alphabet like
$txt['chat']='ห้อง Chat';
but it displays in ascii symbol that can not read?

Why?
I use utf8.

However, Thanks for your help !!
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 22, 2009, 10:43:28 AM
yes you need to edit help too
and you shouldn't translate those word only between "" parts
if you do you will have problems ;)
Title: Re: AjaxChat Integration
Post by: Mraza on January 22, 2009, 11:04:06 AM
Quote from: .HuNTeR. on January 22, 2009, 10:33:52 AM
@mraza you mean you created a new translation for chat or smf?
if for chat
what files you translated and did what after translation?
thanks for reply

i just installed the language pack on smf1.7.7..nothing else. and put laguage bar on smf to choose the language

and i am also getting these 2 errors in my error log

i am getting these 2 errors in my error log always:

8: Undefined index: quick_mod_go
/home/public_html/smf/Sources/Load.php(1746) : eval()'d code
614

8: Undefined index: character_set
/home/public_html/smf/Sources/Load.php(1746) : eval()'d code
455
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 22, 2009, 12:45:46 PM
Ok, using this code....
<?php

require(dirname(dirname(__FILE__)) . '/SSI.php');
global 
$user_info;
if (
ssi_login("","chat"))
   
ssi_login("http://monsters-mansion.com/chat/index.php");
else{
   
$allowed_groups= array(1,2,3,11,9,13,14);
  
$flag false;
  foreach (
$allowed_groups as $group) {
     if(
in_array($group$user_info['groups']))
        
$flag true;
   }
   if (
$flag){
         
/*
         * @package AJAX_Chat
          * @author Sebastian Tschan
          * @copyright (c) Sebastian Tschan
          * @license GNU Affero General Public License
          * @link https://blueimp.net/ajax/
          */

         // Show all errors:
         
error_reporting(E_ALL);

         
// Path to the chat directory:
         
define('AJAX_CHAT_PATH'dirname($_SERVER['SCRIPT_FILENAME']).'/');

         
// Include custom libraries and initialization code:
         
require(AJAX_CHAT_PATH.'lib/custom.php');

         
// Include Class libraries:
         
require(AJAX_CHAT_PATH.'lib/classes.php');

         
// Initialize the chat:
         
$ajaxChat = new CustomAJAXChat();
         }
         else{
            echo 
'Sorry, you can\'t access the chat.';
            
            }
      }
?>



...here are the result in both IE and FF3.  The Chatroom still appears to using just the 3 default colors from the style sheets.

Also, previously when there were users in chat it also showed them logged into the forum, now if they are in the chat it shows them as "offline" in the forum even though they are still logged in to the forum as well.

The only Membergroup Colors that show up in the "Users in Chat" are Grp 1 and 2.

I hope below makes sense below.

Forum Settings      Co Leader (Admin)   Grp #1   Grp Color #ff0000      
Still has Default Chatroom Color (red) Member Group Color shows up correctly in "Users in Chat"

Forum Settings      Clan Leader    Grp #2   Grp Color #1575EB
Has Default Chatroom Color #00AA00 Member Group Color shows up correctly in "Users in Chat"

Forum Settings      Monster Executive    Grp #9   Grp Color #9400d3      
Still has Default Chatroom Color #00AA00

Forum Settings      Honorary Monster    Grp #11   Grp Color #3B9C9C      
Still has Default Chatroom Color #FFF

Forum Settings      Monster Friend    Grp #13   Grp Color #00FF00    
Still has Default Chatroom Color #FFF

Forum Settings      Regular Member    Grp #14   Group Color#FFB900      
Still has Default Chatroom Color #FFF

I know earlier that you said I would have to enter the code 5 times, I haven't done that yet. Can I get an example of how to do that just 2 times? Not sure where the break would go.

Thanks for all your hard work on this.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 22, 2009, 01:41:09 PM
@mraza (http://index.php?action=profile;u=187493) i think your problem is not related to this mod
until now i just find out you installed some new languages in your smf and now have some problem in your forum+chat not working
i think you should first fix your problem with your forum
I'm not completely sore but I think you should use UTF-8 for those languages
for more support maybe a new topic here (http://www.simplemachines.org/community/index.php?board=9.0) will be good Idea

@mrtrc266 (http://index.php?action=profile;u=178448)
Quote from: mrtrc266 on January 22, 2009, 12:45:46 PM
Previously, if a user was in the Chatroom they stil showed online in my "Users Online." Now, if they are in the Chatroom
they appear as "Offline" in the forum.   
when users are in chat their last activity will not update and after 15 minutes(default time) they will be become offline in smf
Quote from: mrtrc266 on January 22, 2009, 12:45:46 PM
When I first put in this code for about 15 minutes all of the Membergroup Colors were showing up correctly in the "User in Chat" section. But now they are not? And ALL groups had Moderator rights in the Chatroom and their color was green, I guess it took awhile for everything to kick in but now nobody besides me has Moderator Rights in the Chatroom and everyones color is white except mine

I hope below makes sense below.

Groups that should have Mod Rights are 1, 2 and 9

Forum Settings      Co Leader      Grp #1   Grp Color #ff0000     
Has Default Chatroom Color (red)

Forum Settings      Clan Leader       Grp #2   Grp Color #1575EB
Has Default Chatroom Color (white) Should have Mod Rights

Forum Settings      Monster Executive    Grp #9   Grp Color #9400d3     
Has Default Chatroom Color (white) Should have Mod rights

Forum Settings      Honorary Monster    Grp #11   Grp Color #3B9C9C     
Has Default Chatroom Color (white)

Forum Settings      Monster Friend       Grp #13   Grp Color #00FF00   
Has Default Chatroom Color (white)

Forum Settings      Regular Member       Grp #14   Group Color#FFB900     
Has Default Chatroom Color (white)

I know earlier that you said I would have to enter the code 5 times, I haven't done that yet. Can I get an example of how to do that just 2 times? Not sure where the break would go.

Thanks for all your hard work on this.
let me clearly show you what's happening
first of all this code is a simple ssi functions and cant result any change to your chat behaviors or any thing else
only users can use the chat or they can't

second this chat system every time a user try to login checks what groups he is in if he is admin then he will be in group No 1 and has red color if he is Gmoderator will be blue and moderation acsess and if he is moderator will be green and moderation acsees if none of aboves happen then he will be a regular member with black color
and what happens if you try add more colors to your chat you will have a new group with diffrent color and no moderation acsees and if you want add one more group you should do the same changes one more time(because of this i sayed yu should do this five times for five new groups)

now if your users became regular and they should be moderators recheck their gropus in smf there must be some mistake there.
becaues nothing changed by this code and any behavior changing made by yourself
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 22, 2009, 02:22:30 PM
Thanks Hunter, I was editing my last post while you were posting this...LOL I think the prob with all groups being white was the cache not being cleared, sorry about that.

Also sorry for being such a pain but I'm lost.

Admin Group # 1 (Clan Co-eader) is red everywhere. Everything is OK.

GMod Group #2 (Clan Leader) is Blue on Forum and in "Users in Chat" but in Chatroom is Green. Mods Rights are ok.

Regular Mod Group #9 (Executives) is Purple on Forum, default link color in "Users in Chat" but in Chatroom is Green. Mod rights are ok.

How do I add the code 5 times I'm lost on that part? What do I add 5 times and where?

and will this get ALL of my Member Group Colors to be the same in the Chatroom and in the "Users in Chat" as they are in the forum?


<?php

require(dirname(dirname(__FILE__)) . '/SSI.php');
global 
$user_info;
if (
ssi_login("","chat"))
   
ssi_login("http://monsters-mansion.com/chat/index.php");
else{
   
$allowed_groups= array(1,2,3,11,9,13,14);
  
$flag false;
  foreach (
$allowed_groups as $group) {
     if(
in_array($group$user_info['groups']))
        
$flag true;
   }
   if (
$flag){
         
/*
         * @package AJAX_Chat
          * @author Sebastian Tschan
          * @copyright (c) Sebastian Tschan
          * @license GNU Affero General Public License
          * @link https://blueimp.net/ajax/
          */

         // Show all errors:
         
error_reporting(E_ALL);

         
// Path to the chat directory:
         
define('AJAX_CHAT_PATH'dirname($_SERVER['SCRIPT_FILENAME']).'/');

         
// Include custom libraries and initialization code:
         
require(AJAX_CHAT_PATH.'lib/custom.php');

         
// Include Class libraries:
         
require(AJAX_CHAT_PATH.'lib/classes.php');

         
// Initialize the chat:
         
$ajaxChat = new CustomAJAXChat();
         }
         else{
            echo 
'Sorry, you can\'t access the chat.';
            
            }
      }
?>




Once again sorry for being such a pain, if I don't get it after this I'll move on to something else...LOL mrtrc666=banging head against wall!
Title: Re: AjaxChat Integration
Post by: Gp. on January 23, 2009, 09:02:28 AM
Hi,
I'm using the custom theme Aa Damage v2.

I've manually gone through and gotten everything to work with alot of messing around, but one thing still won't work.
As you can see, the integrated chatbox does not look like it should.
I dunno if it's not linking to a particular css file but I need some help!

When you type it moves down the entire forum instead of having any overflow at all.
Please let me know what I should try/do.
Also you can view the issue live at http://www.the512project.com
I've left it like that so I can get some help, so the quicker someone replies the more appreciated I will be =D
Title: Re: AjaxChat Integration
Post by: nwobhm on January 23, 2009, 10:04:30 AM
I found strange bug or oddity :-\

When I gave a premission to member to add events into calendar this changes user colors in ajax chat into blue or green. And that permission also enables user to delete their posts from chat :-\

Another admin on my board discovered this, I only have seen blue user colors in chat.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 23, 2009, 02:10:41 PM
@mrtrc266 let me check this myself and then I tell you what to do ;)

@nwobhm how do you give them this permission?
i checked it myself but this doesn't happened

@nwobhm you should add this line to your style.css file
@import url(../../chat/css/shoutbox.css);
remember it should be first line
Title: Re: AjaxChat Integration
Post by: nwobhm on January 23, 2009, 05:10:55 PM
@.HuNTer

From admin cpanel... permissions.
Currently I only allow members to "view calendar". But when allowed to add event.... user colors appeared into chat.

Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 24, 2009, 07:39:36 AM
@nwobhm one of users has this problem place here all groups he is in and also the group you changing it's permissions to "view calendar"
i think you making a mistake and your users are in a group with moderation privilages
Title: Re: AjaxChat Integration
Post by: KadirX on January 24, 2009, 09:09:42 AM
Isnt there any commands?
Like /prune, /ban kadir, /mute kadir or something? :)


EDIT: When I tried this on my localhost, it worked like amazing.
But when I uploaded only the chat for smf, without installing the mod first, it worked, but no message, sidebar stuff didnt appear.

It came with this error at http://mysite.com/community/chat/:

This page contains the following errors:

error on line 388 at column 1: Extra content at the end of the document

Below is a rendering of the page up to the first error.
Title: Re: AjaxChat Integration
Post by: Gp. on January 24, 2009, 09:20:50 AM
Hunter, are you able to assist me? =D
Title: Re: AjaxChat Integration
Post by: asmith on January 24, 2009, 09:45:12 AM
Does this chat provide an individual window for each 2 users? Or all people have to chat in a same window?

Any URL I can see how this chat is working?
Title: Re: AjaxChat Integration
Post by: KadirX on January 24, 2009, 11:39:05 AM
Quote from: Gp. on January 24, 2009, 09:20:50 AM
Hunter, are you able to assist me? =D

Add this to the first line of style.css in your theme's folder:
@import url(../../chat/css/shoutbox.css);

Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 24, 2009, 12:23:48 PM
@KadirX yes commands list:

Join a channel:
/join Channelname

Create a private room (Registered users only):
/join

Invite someone (e.g. to a private room):
/invite Username

Revoke invitation:
/uninvite Username

Logout from Chat:
/quit

Private message:
/msg Username Text

Open a private channel:
/query Username

Close a private channel:
/query

Describe action:
/action Text

Describe action in private message:
/describe Username Text

Ignore/accept messages from user:
/ignore Username

List ignored users:
/ignore

Display user channel:
/whereis Username

Kick a user (Moderators only):
/kick Username [Minutes banned]

Unban a user (Moderators only):
/unban Username

List banned users (Moderators only):
/bans

Display user IP (Moderators only):
/whois Username

List online users:
/who [Channelname]

List available channels:
/list

Roll dice:
/roll [number]d[sides]

Change username:
/nick Username

and for errors on chat try to reInstall it maybe this solve the problem

@Gp KadirX right this answer is for you i just miss typed the name

@asmith all people are in same window but you can have private chats
Demo (http://chat.ecobytes.net/)
username:admin
password:admin
Title: Re: AjaxChat Integration
Post by: asmith on January 24, 2009, 12:55:38 PM
It is very nice :)

few questions :
1. Can I censor some words in it?
2. Everybody can change his nick, or it was me only as admin?
3. Is there some kind of manual so that I cold read all about it, I mean options or so?
4. the logout button will logout you from the forum too or only the chat ?
Title: Re: AjaxChat Integration
Post by: Mraza on January 24, 2009, 04:26:08 PM
hi Hunter i am back with the same problem.. there is nothing else problem except of this ajax chat now. i re-installed it again and its working no my default theme but when i will select the custom theme there is xml parsing problem here is the link where i discuss of my problem. please have a look

http://www.simplemachines.org/community/index.php?topic=287705.0

and i chat with  H (http://www.simplemachines.org/community/index.php?action=profile;u=24172) he also tell me its the mod problem..



XML Parsing Error: undefined entity
Location: smf/chat/index.php
Line Number 13, Column 65:


</select><input type="hidden" name="changelang" value="1" />&nbsp;<noscript><input type="submit" /></noscript></form>

---------------------------------------------------^


this ( ^ ) is touching to &nbsp;
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 25, 2009, 01:50:32 AM
@asmith
1. unfortunately No
2. it is customizable you can give them this permission
3. there is 2 file in chat system
first:
chat\lib\config.php
this is serer side configuration and lots of options
second:
chat\js\config.js
and this is client side configuration
check them both all options have comments

4. no just the chat
---------------------------------------------------------------------------------------------------------
@mraza
I read that topic and it seems you solved your first and second problem and now just there is an issue with chat
you said when you are using default theme everything is OK but in cargo you have this XML Parsing Error

you mean when in smf you select the default theme and go to chat, chat loads OK
but when you select cargo and then going to chat you see this error?

this chat system doesn't use your theme and it's behaviors not related to your theme
this is so confusing

a bad question: are you sure you are using Ajax chat by https://blueimp.net/ ??

you also said you are on local host and this makes it harder because i cant check it myself

OK let's do this make an snapshot of your chat when you are in default theme and one when you are in cargo and let me see them
Title: Re: AjaxChat Integration
Post by: nwobhm on January 25, 2009, 03:16:11 AM
Quote from: .HuNTeR. on January 24, 2009, 07:39:36 AM
@nwobhm one of users has this problem place here all groups he is in and also the group you changing it's permissions to "view calendar"
i think you making a mistake and your users are in a group with moderation privilages
Members with colors in chat are in regular member group and this color appeared when I gave the permission to add events into calendar. Now that I have disabled the "add events" all members show up in black in chat, just like they should.

And there is no shoutbox.css file in the chat folder..
Title: Re: AjaxChat Integration
Post by: Gp. on January 25, 2009, 05:04:54 AM
Hi,
I added it to the first line, and it seems to work.
Thanks!
However, three more things I was wondering if you could help me with.
1. How can I make it so that when the user is not logged in (Guest) that the integrated box does not show up?
I'm intending to have this work only for logged in members.

2. How come the integrated chat window isn't the same as the default theme for the fullscreen chat?
I have the black theme selected, but in the integrated chat window it looks like this...

3. Whenever I go to delete a message in the chat, integrated or fullscreen, I am returned with the message:
(21:13:49) ChatBot: Error: Connection status: 0

some of the time.

How can I fix that?

Thanks.
Title: Re: AjaxChat Integration
Post by: asmith on January 25, 2009, 06:50:02 AM
Thanks for the answers.

I have nneonneo's shoutbox on my site main template, which means in every page I go, people have that chat. it is written in ajax also.

I'm thinking, If I make a page with this chat, and place it in my site template.  would this 2 mods have any conflict with each other? (Since they are both in ajax)
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 25, 2009, 06:53:38 AM
@nwobhm you are right
i will report this as a bug to chat developers
and if you looking for shoutbox.css :
chatcssshoutbox.css
-------------------------------------------------------------------------
@Gp.
1. go to themes[your theme folder]BoardIndex.template.php
add
      if (!$context['user']['is_guest'])

after
   if ($modSettings['enableShoutBox'])

2. the chat system has own themes and doesn't use your smf themes and if you want can manually change the themes to look like your theme (if you done this share your code with us too ;) )

3. i seen this as simple bug but it isn't important but if this bothers you I can find the solution
-------------------------------------------------------------------------
@asmith i don't think so but I'm not sure
Title: Re: AjaxChat Integration
Post by: Gp. on January 25, 2009, 07:23:07 AM
Hey,
For the bug, if you can fix it I'd appreciate it greatly!

As for number two, I don't mean it doesn't look like my smf theme, I mean the subblack2 theme on the AjaxChat. I have subblack2 as the default theme for Ajax chat. Is the integrated chat supposed to use it's own separate theme? is that what you mean?
and to manually change the theme of the integrated chatbox, what do I do? Just modify the .css or what? :S


Thanks for the help man!
Title: Re: AjaxChat Integration
Post by: Mraza on January 25, 2009, 11:58:54 AM
Quote from: .HuNTeR. on January 25, 2009, 01:50:32 AM

when you select cargo and then going to chat you see this error?


a bad question: are you sure you are using Ajax chat by https://blueimp.net/ ??


YES when i select cargo theme it appear an xml parsing error
and the second answer YES this is the ajax chat site where i downloaded..

i am attaching a snapshot of both on the left side is with cargo and on the right is working with default theme it let me enter in the chat room...

Title: Re: AjaxChat Integration
Post by: KadirX on January 25, 2009, 12:18:10 PM
Maybe you could do so there is clickable smilies? :)
Just a suggestion. By the way, when Ive added this mod, it made a CHAT link at the link bar.
Where do I do that it doesnt show that CHAT link?

Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 26, 2009, 02:19:45 AM
@Gp.
Open chat/js/chat.js
find:
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
replace with:
if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}


if you want change the style of your shoutbox you should edit these files:
chat\css\shoutbox.css
chat\lib\template\shoutbox.html
_________________________________________________________________________

@mraza
go to:
chat\lib\config.php
find:
$config['contentType'] = null;
and replace with:
$config['contentType'] = 'text/html';

if this solved your problem check this (http://ajax-chat.wiki.sourceforge.net/XML+Parsing+Errors) page for more information.
_________________________________________________________________________

@KadirX
if you mean adding smilies to shoutbox?
this will be in next version
and for removing chat button
open Themes\[your theme]\index.template.php
and remove these lines:
// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = count(getChatOnlineUserIDs());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '" target="_blank">', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a></td>';
Title: Re: AjaxChat Integration
Post by: Mraza on January 26, 2009, 03:54:20 AM
Quote from: .HuNTeR. on January 26, 2009, 02:19:45 AM

@mraza
go to:
chat\lib\config.php
find:
$config['contentType'] = null;
and replace with:
$config['contentType'] = 'text/html';

if this solved your problem check this (http://ajax-chat.wiki.sourceforge.net/XML+Parsing+Errors) page for more information.

thanks Hunter ! ok when i put this code my chat let me enter but i can't see there anything in online users and when i went to this page that you wrote the link i really don't know what to do next. so i just save the ajaxchat page as an xml file and tried to validate but its not validating missing many things. and one thing i notice i don't know if it is the correct problem when i saved the index page of ajaxchat i see there thi line of code :

[size=1]<select id="language_select" name="language" onchange="this.form.submit()" class="smalltext">
<option value="dutch">Dutch</option>
<option value="italian">Italian</option>
<option value="english" selected="selected">English</option>
<option value="spanish_es">Spanish Es</option>
<option value="russian">Russian</option>
<option value="greek">Greek</option>
<option value="french">French</option>
</select><input name="changelang" value="1" type="hidden">&nbsp;<noscript><input type="submit" /></noscript></form>[/size]


ok i have installed these language packages on this forum.. maybe this language option and the languages in ajaxchat which ate built-in options i think these are conflicting with each other..i am not sure so is it possible to remove this option when entering in the chat ..it will just load built-in or mine language option..thanks
Title: Re: AjaxChat Integration
Post by: TurtleKicker on January 26, 2009, 04:57:37 PM
Ok I have this all working great, except when you click on Chat, it launches in a new window/tab. How do I get it to appear integrated within the site like so many of you show in your screenshots?

I'm using 1.1.7, default theme.

I must be missing something obvious... but I've poured over the help files and docs.

EDIT: Also, "enable shoutbox" doesn't seem to have an effect... the "Chat" button/tab appears even with this unchecked.
Title: Re: AjaxChat Integration
Post by: Mraza on January 26, 2009, 05:09:33 PM
Quote from: sremick on January 26, 2009, 04:57:37 PM
Ok I have this all working great, except when you click on Chat, it launches in a new window/tab. How do I get it to appear integrated within the site like so many of you show in your screenshots?

I'm using 1.1.7, default theme.

I must be missing something obvious... but I've poured over the help files and docs.

with my best guess in your index.template.php find this line:
directory:  ./Themes/default/index.template.php

<a href="', $chatPath, '" target="_blank">', $txt['chat'], '</a></td>'

Replace with this:

<a href="', $chatPath, $txt['chat'], '</a></td>'

Quote
EDIT: Also, "enable shoutbox" doesn't seem to have an effect... the "Chat" button/tab appears even with this unchecked.
and the shoutbox you will enable from admin control panel>Feature and options>Basic Feature>

i attach the file watch it
Title: Re: AjaxChat Integration
Post by: TurtleKicker on January 26, 2009, 05:19:12 PM
Quote from: mraza on January 26, 2009, 05:09:33 PM
with my best guess in your index.template.php find this line:
directory:  ./Themes/default/index.template.php

<a href="', $chatPath, '" target="_blank">', $txt['chat'], '</a></td>'

Replace with this:

<a href="', $chatPath, $txt['chat'], '</a></td>'


Not quite. What you really meant was:

<a href="', $chatPath, '">', $txt['chat'], '</a></td>'

But all that does is replace the entire forum window with the chat window. I don't want it to just not open in a new window, I want it to look like:

http://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=83215;image
Title: Re: AjaxChat Integration
Post by: Snow Keld on January 27, 2009, 02:51:53 PM
i hope this comes across as a simple question with a simple answer, but the way we use your VERY AWESOME MOD on my forum is we go to the /chat/index.php file (rather than using it as a shoutbox that sits on the index page, i put it in an iframe on a simple portal block) which shows all the diff channels which are all based off the forum sections it seems, is there a way to change that (delete channels and make new, permanent ones) ?

this info would be a HUGE help, and again, i LOVE this mod, makes it all so very easy to use and setup :D, i've been looking into the whole ajaxchat idea for awhile but i dont have the skills to integrate it with SMF, which is what i wanted.
Title: Re: AjaxChat Integration
Post by: ZuX on January 27, 2009, 02:57:30 PM
hy everybody, how to add shoutbox?
maybe is stupid question, but to ask :)

i have 1.1.7 smf
Title: Re: AjaxChat Integration
Post by: Snow Keld on January 27, 2009, 03:15:35 PM
oh, you go to features and options on the admin menu, the page it brings you to on auto (first one) has an option about half way down to enable shoutbox, theres a screen shot on the first post here., a bit small though..
Title: Re: AjaxChat Integration
Post by: ZuX on January 27, 2009, 04:17:25 PM
when try to install this mod, i got this msg

10.     Execute Modification     ./chat/css/shoutbox.css     Test failed
11.    Execute Modification    ./chat/lib/template/shoutbox.html    Test failed
12.    Execute Modification    ./chat/lib/class/AJAXChatDataBase.php    Test failed

why?
Title: Re: AjaxChat Integration
Post by: Snow Keld on January 27, 2009, 10:49:32 PM
did you get Ajax chat for SMF (http://downloads.sourceforge.net/ajax-chat/ajax_chat-0.8.1.2_SMF.tar.gz?modtime=1206204156&big_mirror=0), uncompress it, and upload it to your hosting, then go to the install.php  ?

if not then that would be why, or you placed it in the wrong location, it needs to go in the root directory of your forum, if you go to the forum index, the root directory is the URL upright before the index.php end.

yoursite.com/index.php would be in the very root directory of your hosting.
yoursite.com/shomething-or-another/index.php  you would put the chat into shomething-or-another folder.

then go to your index again on your forum, and replace index.php with chat/install.php


then install this mod.

(if this mod is already installed then uninstall it before you upload the chat, then install it after)






d@mn, i come here with a question and i end up answering other peeps questions, so odd...
Title: Re: AjaxChat Integration
Post by: runebergen on January 28, 2009, 03:23:58 AM

Installed the mod and the chat...

But something is very wrong.. .

At all the chat channels (drop down menu), I can choose all my boards as chat channels... wtf..

And noone shows online in the chat, nor is it possible to write anything into the chat...

Please help :)
Title: Re: AjaxChat Integration
Post by: Lemming on January 28, 2009, 10:33:26 AM
Quote from: runebergen on January 28, 2009, 03:23:58 AM
And noone shows online in the chat, nor is it possible to write anything into the chat...
Ha! And I thought I were the only one with this problem. I already had a look into the help section of the chat (support) forum but did find nothing!
It seems that it has something to do with a server configuration. I tested the chat on another webspace and it worked fine. Hm...  ::) Strange...


PHP version:                4.3.10
MySQL version:                4.1.10a

Should work fine but it doesn't...
Title: Re: AjaxChat Integration
Post by: Snow Keld on January 28, 2009, 12:29:52 PM
Quote from: Snow Keld on January 27, 2009, 02:51:53 PM
i hope this comes across as a simple question with a simple answer, but the way we use your VERY AWESOME MOD on my forum is we go to the /chat/index.php file (rather than using it as a shoutbox that sits on the index page, i put it in an iframe on a simple portal block) which shows all the diff channels which are all based off the forum sections it seems, is there a way to change that (delete channels and make new, permanent ones) ?

this info would be a HUGE help, and again, i LOVE this mod, makes it all so very easy to use and setup :D, i've been looking into the whole ajaxchat idea for awhile but i dont have the skills to integrate it with SMF, which is what i wanted.

ok... well i still really want this answered please :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 28, 2009, 03:42:57 PM
Quote from: runebergen on January 28, 2009, 03:23:58 AM

Installed the mod and the chat...

But something is very wrong.. .

At all the chat channels (drop down menu), I can choose all my boards as chat channels... wtf..

Please help :)

Quote from: Snow Keld on January 27, 2009, 02:51:53 PM
which shows all the diff channels which are all based off the forum sections it seems, is there a way to change that (delete channels and make new, permanent ones) ?

You can limit the boards that are listed as channels....

Find in chat/lib/config.php:

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;


change to something like this ...

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(33,);


(this is for my forum, the only channel available is "Public" and my board #33). In my forum board #33 is only accessible to me and my Mods so in the chat it is only visible to me and my Mods as well.
Nobody else can see it.

Be sure to change array(33,); to whatever board numbers you want to be available.

EXAMPLE: array(123,456,789);

Hope that helps.
Title: Re: AjaxChat Integration
Post by: Snow Keld on January 28, 2009, 04:28:22 PM
thank you so much!

your awesome :D
Title: Re: AjaxChat Integration
Post by: gusgoober on January 28, 2009, 04:57:22 PM
I am getting this message.

XML Parsing Error: mismatched tag. Expected: </html>.
Location: http://mysite.net/forum/chat/index.php
Line Number 385, Column 3:

</noscript>
--^

Any ideas what is wrong?
Title: Re: AjaxChat Integration
Post by: runebergen on January 28, 2009, 10:24:43 PM
Quote from: mrtrc266 on January 28, 2009, 03:42:57 PM

Be sure to change array(33,); to whatever board numbers you want to be available.

EXAMPLE: array(123,456,789);

Hope that helps.

Yeah I figured out how to fix that part .. :) And thax for the array tip....

But still not working at all...
Noone shows as logged in, noone can post anything


Quote from: Lemming on January 28, 2009, 10:33:26 AM
Quote from: runebergen on January 28, 2009, 03:23:58 AM
And noone shows online in the chat, nor is it possible to write anything into the chat...
Ha! And I thought I were the only one with this problem. I already had a look into the help section of the chat (support) forum but did find nothing!
It seems that it has something to do with a server configuration. I tested the chat on another webspace and it worked fine. Hm...  ::) Strange...
Should work fine but it doesn't...

Yeah, wonder what it can be.... hum ..  server configuration. Thats going to be a needle in the haystack
Title: Re: AjaxChat Integration
Post by: Robert F on January 29, 2009, 02:26:02 PM
Quote from: Snow Keld on January 27, 2009, 10:49:32 PM
did you get Ajax chat for SMF (http://downloads.sourceforge.net/ajax-chat/ajax_chat-0.8.1.2_SMF.tar.gz?modtime=1206204156&big_mirror=0), uncompress it, and upload it to your hosting, then go to the install.php  ?

if not then that would be why, or you placed it in the wrong location, it needs to go in the root directory of your forum, if you go to the forum index, the root directory is the URL upright before the index.php end.

yoursite.com/index.php would be in the very root directory of your hosting.
yoursite.com/shomething-or-another/index.php  you would put the chat into shomething-or-another folder.

then go to your index again on your forum, and replace index.php with chat/install.php


then install this mod.

(if this mod is already installed then uninstall it before you upload the chat, then install it after)






d@mn, i come here with a question and i end up answering other peeps questions, so odd...

I go to that link and download the file. But it downloads as a GZ file - ajax_chat-0.8.1.2_SMF.tar

Which my computer doesn't recognise. You say to uncompress it? There's nothing to uncompress. It doesn't download as a folder but as a GZ file! Is this normal because my computer can't open the file at all. I've tried searching the web to find software that will open the file but i've found nothing!!
Title: Re: AjaxChat Integration
Post by: nodent on January 29, 2009, 03:18:45 PM
Quote
I go to that link and download the file. But it downloads as a GZ file - ajax_chat-0.8.1.2_SMF.tar

Which my computer doesn't recognise. You say to uncompress it? There's nothing to uncompress. It doesn't download as a folder but as a GZ file! Is this normal because my computer can't open the file at all. I've tried searching the web to find software that will open the file but i've found nothing!!

I get the same problem.

BTW I have an older version installed.

Do I just overwrite and re-run install?
Title: Re: AjaxChat Integration
Post by: Robert F on January 29, 2009, 04:07:38 PM
I downloaded Bitzipper but I still can't get the chat feature to work.

How the hell do you "Run the install.php file that will now be in somewhere.com/forum/chat/install.php"?

::)
Title: Re: AjaxChat Integration
Post by: nomnomfish on January 29, 2009, 10:15:43 PM
hey guys, i just installed ajax chat and ajax integration mod and it works great.

i wanted a shoutbox on my main forum page, but the "shoutbox" option in features doesn't work.
i am using simple portal for my layout, maybe this is why. i would like to know if their is any code (html, php, etc.) that i can use to place the shoutbox inside a "block" on my portal.
my smf forum is:
http://www.swampratracing.com/forum/ (http://www.swampratracing.com/forum/)


if not i was looking at the nneonneos shoutbox mod. thanks  :D
Title: Re: AjaxChat Integration
Post by: Snow Keld on January 30, 2009, 12:34:55 AM
nneonneos shoutbox doesnt work good, i'm not sure what your problem is cuz iuse simple portal too and the shoutbox worked fine, but what i did was...


<IFRAME SRC="http://www.swampratracing.com/forum/chat/index.php" WIDTH=100% HEIGHT=500>
If you can see this, your browser doesn't
understand IFRAME.  However, we'll still
<A HREF="http://www.swampratracing.com/forum/chat/index.php">link</A>
you to the page.
</IFRAME>


as written here it should work on your site, put it in a html block then play with the hight to what you think is good.




and to the people who are talking about the .tar.gz files, it needs to be uncompressed, like a zip for or a .rar file... although .rar is a bit diff, still its a file rather than a folder as is, you uncompress it into a folder that says chat and upload that folder to your forum hosting.

sorry though, i assume your using windows, and i use all ubuntu linux and i've forgotten the horrors of microsoft and paying for software, so i cant really help you with exactly HOW to uncompress it in windows, but it should be fairly simple like right click then uncompress or some very simple program you can get for free to uncompress it like 7zip i remember from windows.


i saw this on a linux forum.

QuoteIf you have a world without walls, then  who needs windows?
play off their recent ad campaign.
Title: Re: AjaxChat Integration
Post by: nodent on January 30, 2009, 06:24:25 AM
Quote from: forbescreatives on January 29, 2009, 04:07:38 PM
I downloaded Bitzipper but I still can't get the chat feature to work.

How the hell do you "Run the install.php file that will now be in somewhere.com/forum/chat/install.php"?

::)

AFTER you upload  the AJAX Chat via FTP program to a folder call chat  off the root of your forum
1.) Open your browser
2.) in the address type "http://www.yourwebsite.com/yourforum/chat/install.php"
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 30, 2009, 12:17:45 PM
hello to all
first i should apologize because of these days i cant answer you questions
but now with a new version and some updates in way(admin cp, new design for shout box,...) ;)
if any of you have an unanswered question please re post it
Title: Re: AjaxChat Integration
Post by: TurtleKicker on January 30, 2009, 03:11:54 PM
Stupid question, but I'm new to SMF and this is the first time I've run into this and I can't find it in the docs, FAQ or using Google...

But what's the proper way to update this (or any other) mod? Do I uninstall first? Install right over? Do something else?
Title: Re: AjaxChat Integration
Post by: nodent on January 30, 2009, 03:27:45 PM
Quote from: sremick on January 30, 2009, 03:11:54 PM
Stupid question, but I'm new to SMF and this is the first time I've run into this and I can't find it in the docs, FAQ or using Google...

But what's the proper way to update this (or any other) mod? Do I uninstall first? Install right over? Do something else?

I had an older version that did not have the SMF side plugin.

What I did was...  (On test server first then on the production http://www.mattsoutback.com/board/ )

1.) Unzippid the CHAT folder local
2.) Uploaded it to my board/chat folder over-writing all
3.) Ran the install.php
4.) downloaded the SMF mod to my PC
5.) uploaded and installed the mod via the SMF admin panel
6.) enabled the shoutbox

Worked good

REMEMBER------------------------- Shout box is only modding the default theme for use.
Title: Re: AjaxChat Integration
Post by: TurtleKicker on January 30, 2009, 03:49:31 PM
Except my upgrade isn't so big. I already have AjaxChat installed and don't need to upgrade that, and I already have v1.2.2 of the Integration mod installed. All I'm wondering about is upgrading the mod from 1.2.2 -> 2.0.
Title: Re: AjaxChat Integration
Post by: computerworks on January 30, 2009, 05:05:02 PM
Uninstalled v.1.22, which has been working flawlessly.

Uploaded and executed install of 2.0

Get failure in     ./Themes/default/index.template.php

Unload 2.0, reinstall 1.22... no errors

What should we look for to troubleshoot this?
Title: Re: AjaxChat Integration
Post by: RoCKeT-88 on January 30, 2009, 05:47:19 PM
I am getting the same thing with version 2.  I am back on 1.22 with no issues.

Marking for later.

I do love this mod!  Thanks!
Title: Re: AjaxChat Integration
Post by: nomnomfish on January 30, 2009, 06:33:26 PM
Quote from: Snow Keld on January 30, 2009, 12:34:55 AM
nneonneos shoutbox doesnt work good, i'm not sure what your problem is cuz iuse simple portal too and the shoutbox worked fine, but what i did was...


<IFRAME SRC="http://www.swampratracing.com/forum/chat/index.php" WIDTH=100% HEIGHT=500>
If you can see this, your browser doesn't
understand IFRAME.  However, we'll still
<A HREF="http://www.swampratracing.com/forum/chat/index.php">link</A>
you to the page.
</IFRAME>


as written here it should work on your site, put it in a html block then play with the hight to what you think is good.




and to the people who are talking about the .tar.gz files, it needs to be uncompressed, like a zip for or a .rar file... although .rar is a bit diff, still its a file rather than a folder as is, you uncompress it into a folder that says chat and upload that folder to your forum hosting.

sorry though, i assume your using windows, and i use all ubuntu linux and i've forgotten the horrors of microsoft and paying for software, so i cant really help you with exactly HOW to uncompress it in windows, but it should be fairly simple like right click then uncompress or some very simple program you can get for free to uncompress it like 7zip i remember from windows.


i saw this on a linux forum.

QuoteIf you have a world without walls, then  who needs windows?
play off their recent ad campaign.

first off, thanks for your help. didn't even think of that.
but i would like a smaller version, not the full chat.
how can i do this? ???
Title: Re: AjaxChat Integration
Post by: Sweetwater on January 30, 2009, 10:05:17 PM
Im getting the same error 4 times on the top of the page on mine.

Notice: Undefined index: lang_locale in /home/xxxx/public_html/Forum/Sources/Subs.php on line 883

http://www.sweetwaterfishing.com.au/Forum/chat/

The remainder of the chat loads but does not work.

Does anyone know what this means & how to solve it?
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 31, 2009, 12:31:32 AM
@sremick
for update just uninstall previous version and install the new one

@computerworks &`Z0mB|e`
attach your index.template.php here
must have conflict with another mod

@Sweetwater
these xml parsing errors are seen by other users too
but i cant help you much maybe the chat writer here (http://sourceforge.net/forum/forum.php?forum_id=774132) can help you

Title: Re: AjaxChat Integration
Post by: RoCKeT-88 on January 31, 2009, 02:16:21 AM
<?php
// Version: 1.1.5; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
{
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;
//Display ads on the top of the page
if (function_exists("show_topofpageAds"))
{
$ads show_topofpageAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}



echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">'
;

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">'
$context['forum_name'], '</span>';
else
echo '
<img src="'
$settings['header_logo_url'], '" style="margin: 4px;" alt="'$context['forum_name'], '" />';

echo '
</td>
<td align="right" class="catbg">
<img src="'
$settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>'
;


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>'
;

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>'
;

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</td>'
;
//Welcome Ads
if (function_exists("show_welcomeAds"))
{
$ads show_welcomeAds();
if(!empty($ads))
{
echo '<td class="windowbg2">';
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
echo '</td>';
}
unset($ads);
}
echo '

</tr>
</table>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
</td>'
;
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>'
;


// Show the menu here, according to the menu sub template.
template_menu();
//Below the menu ads
if (function_exists("show_indexAds") && function_exists("show_towerleftAds") && function_exists("show_towerrightAds"))
{
$ads show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

//Tower left Ads
$ads show_towerleftAds();
if(!empty($ads))
echo '<table><tr><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td><td width="100%" valign="top">';

unset($ads);
//Tower Right Ads
$ads show_towerrightAds();
if(!empty($ads))
echo '<table><tr><td width="100%" valign="top">';
unset($ads);
}




// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

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

echo '
</div>'
;


//Close table for towerright ads
if (function_exists("show_towerrightAds") && function_exists("show_towerleftAds") && function_exists("show_bottomAds"))
{
$ads show_towerrightAds();
if(!empty($ads))
echo '</td><td valign="top">'$ads['type']==$ads['content'] : eval($ads['content']) ,'</td></tr></table>'

unset($ads);
//Close table for towerleft ads
$ads show_towerleftAds();
if(!empty($ads))
echo '</td></tr></table>';
unset($ads);

//Show ads on the bottom of the page
$ads show_bottomAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt$modSettings;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''managegames''arcadesettings''arcadecategory''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''arcade''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';

if ($context['current_action'] == 'googlemap')
$current_action 'googlemap';
if ($context['current_action']=='mgallery')
$current_action 'mgallery';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

    echo ($current_action == 'arcade' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'arcade' 'active_back' 'back' '">
<a href="'
$scripturl'?action=arcade">' $txt['arcade'] , '</a>
</td>' 
$current_action == 'arcade' '<td class="maintab_active_' $last '">&nbsp;</td>' '';// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Google Maps Mod
if (($modSettings['googleMapsEnable']) && (allowedTo('googleMap_view')))
echo ($current_action == 'googlemap' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'googlemap' 'active_back' 'back' '">
<a href="'
$scripturl'?action=googlemap">' $txt['googleMap'] , '</a>
</td>' 
$current_action == 'googlemap' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// [SMF Media Gallery]
if (allowedTo('mgallery_access'))
echo ($current_action == 'mgallery' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mgallery' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mgallery">' $txt['mgallery_gallery'] , '</a>
</td>' 
$current_action == 'mgallery' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mlist' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// the [chat] button
$chatPath str_replace("index.php""chat/index.php"$scripturl);
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' $first '">&nbsp;</td>' '''
<td valign="top" class="maintab_back">
<a href="'
$chatPath'" target="_blank">'$txt['chat'], '</a></td>'; // Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>
Title: Re: AjaxChat Integration
Post by: DareDevil1990 on January 31, 2009, 07:17:27 AM
i successfully installed it at abc.com/chat but when i got to abc.com/chat/index.php i get this error XML Parsing Error: not well-formed
Location: http://da-legends.info/Chat/index.php
Line Number 5, Column 12:length+1,j<0?c.length:j)}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;
-----------^



what should i do :-s

ps:i am on smf 1.1.7
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on January 31, 2009, 08:13:12 AM
@`Z0mB|e`
i edited your index manually attached it here

-------------------------------------------------
@MRDJ  the error is because of the script you put in the index:

<script>
function utmx_section(){}function utmx(){}
(function(){var k='3780910551',d=document,l=d.location,c=d.cookie;function f(n){
if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.indexOf(';',i);return c.substring(i+n.
length+1,j<0?c.length:j)}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;
d.write('<sc'+'ript src="'+
'http'+(l.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com'
+'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='
+new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
'" type="text/javascript" charset="utf-8"></sc'+'ript>')})();
</script>
<script>
if(typeof(urchinTracker)!='function')document.write('<sc'+'ript src="'+
'http'+(document.location.protocol=='https:'?'s://ssl':'://www')+
'.google-analytics.com/urchin.js'+'"></sc'+'ript>')
</script>
<script>
try {
_uacct = 'UA-7214252-1';
urchinTracker("/3780910551/test");
} catch (err) { }
</script>

Title: Re: AjaxChat Integration
Post by: mrtrc266 on January 31, 2009, 10:24:59 AM
The only error I get is here...

Execute Modification ./Sources/BoardIndex.php Test failed

I think it's because I have the "Users Online Today MOD" and my BoardIndex.php does not have this code as it is in the parser.
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

// Track most online statistics?
if (!empty($modSettings['trackStats']))

Mine is kind of broken up so I'm not quite sure where to add this
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

//users in chat
$userIDs = array_unique(getChatOnlineUserIDs());
if (count($userIDs) > 0){
$query = "SELECT mem.ID_MEMBER, mem.realName, mem.ID_GROUP, mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON
(mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))WHERE ";
foreach ($userIDs as $ID)
$query .= 'ID_MEMBER = '. $ID . ' OR ';
//remove the last OR
$query = substr($query, 0, strlen($query)-3);

$result = db_query($query, __FILE__, __LINE__);
$context['chat_links'] = array();
while ($row = mysql_fetch_assoc($result))
{
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
if($row['onlineColor'] != ""){
$link.= '" style="color: ' . $row['onlineColor'];
}
$link.= '">' . $row['realName'] . '</a>';
array_push($context['chat_links'], $link);
}
mysql_free_result($result);
}

// Track most online statistics?
if (!empty($modSettings['trackStats']))


Attatched is my file if you could give me a hand I'd greatly appreciate it.

Thank you in advance.
Title: Re: AjaxChat Integration
Post by: Mystery? on January 31, 2009, 10:29:52 AM
The mod needs:

- You need to make"Guest cannot view the chatroom" option.
- You should be allowed to display what forum chatrooms should appear or not
- You should be able to delete all the forums chatrooms.
- You should be able to make a PUBLIC custom chatroom.

Basically I want the features in FlashChat :D.
Title: Re: AjaxChat Integration
Post by: computerworks on January 31, 2009, 12:22:19 PM
Quote from: .HuNTeR. on January 31, 2009, 12:31:32 AM
@computerworks &`Z0mB|e`
attach your index.template.php here
must have conflict with another mod


File attached
Title: Re: AjaxChat Integration
Post by: RoCKeT-88 on January 31, 2009, 12:49:21 PM
Ok thanks .HuNTeR I will try it out soon.
Title: Re: AjaxChat Integration
Post by: DareDevil1990 on January 31, 2009, 11:05:59 PM
@.HuNTeR i edited the code the error is gone and is now working good :D but how doi show it on my index page ?

i am attaching index.template.php and BoardIndex.php
it gave me error on boardindex.php but when i check the code was placed so u can do a re-check
Title: Re: AjaxChat Integration
Post by: Wolfie1 on February 01, 2009, 11:12:31 AM
Hi I am having a problem with the integration mod, I have my chat installed already but when I try to install the integration mod I receive the following errors, can anyone please help?

I am running version 1.1.7

QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Quote1.     Execute Modification     ./Sources/BoardIndex.php     Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test successful
3.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/style.css    Test successful
6.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
8.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.persian.php    Skipping file
10.    Execute Modification    ./chat/css/shoutbox.css    File not found
11.    Execute Modification    ./chat/lib/template/shoutbox.html    File not found
12.    Execute Modification    ./chat/lib/class/AJAXChatDataBase.php    File not found

The other mods I have installed are:
SimplePortal      V 2.0.4
Custom Tab      V1.11
SMF 1.0.15 / 1.1.7 Update     V 1.0
Title: Re: AjaxChat Integration
Post by: Crackhead on February 01, 2009, 11:16:29 AM
Question for the author,

Did you created the package based on the addon from our community site?
http://ddi-online.co.uk/forum

Just wondering cause i adjusted ajax to work with our forum and autorisation in dec/jan 2007/2008.

Overall great work to make it a package, i aint skilled anough for such :)
Title: Re: AjaxChat Integration
Post by: newhand on February 01, 2009, 11:50:19 PM
Quote from: .HuNTeR. on January 30, 2009, 12:17:45 PM
hello to all
first i should apologize because of these days i cant answer you questions
but now with a new version and some updates in way(admin cp, new design for shout box,...) ;)
if any of you have an unanswered question please re post it


.HuNTeR.
by modify the config.php in lib as

if(!defined('AJAX_CHAT_CHATBOT'))                 this line
   define('AJAX_CHAT_CHATBOT',      4);
if(!defined('AJAX_CHAT_ADMIN'))
   define('AJAX_CHAT_ADMIN',      3);
if(!defined('AJAX_CHAT_MODERATOR'))
   define('AJAX_CHAT_MODERATOR',   2);
if(!defined('AJAX_CHAT_USER'))
   define('AJAX_CHAT_USER',      1);
if(!defined('AJAX_CHAT_GUEST'))
   define('AJAX_CHAT_GUEST',      0);


I 've got error when go to chat from board.

Parse error: syntax error, unexpected T_STRING in D:\...\..\...\...\SMF\chat\lib\config.php on line 11


Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 02, 2009, 04:01:50 AM
@mrtrc266
you should first remove previous version and then install the new one.

@Mystery?
-will be added soon
all of other features you requested are possible just read previous posts

@computerworks
your index.template.php file attached

@MRDJ
did you enabled the shoutbox from Admin>Features and Options>Enable the Shout Box?

@Wolfie1
you should install the chat in  forum/chat/ if you don't the mod fails

@Crackhead
no it is first time i see your website
but if you want to share your code with us we all will be happy

@newhand
first try to install 2.1 if you get this error again attach your config file here
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 02, 2009, 11:09:57 AM
I still had the error on the Sources/boardindex.php as mentioned before I have the User Online Today Mod and I think it interferes. I did find a solution though...

instead of finding
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

// Track most online statistics?
if (!empty($modSettings['trackStats']))


I just found...
// Track most online statistics?
if (!empty($modSettings['trackStats']))


and replaced with...
//users in chat
$userIDs = array_unique(getChatOnlineUserIDs());
if (count($userIDs) > 0){
$query = "SELECT mem.ID_MEMBER, mem.realName, mem.ID_GROUP, mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON
(mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))WHERE ";
foreach ($userIDs as $ID)
$query .= 'ID_MEMBER = '. $ID . ' OR ';
//remove the last OR
$query = substr($query, 0, strlen($query)-3);

$result = db_query($query, __FILE__, __LINE__);
$context['chat_links'] = array();
while ($row = mysql_fetch_assoc($result))
{
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
if($row['onlineColor'] != ""){
$link.= '" style="color: ' . $row['onlineColor'];
}
$link.= '">' . $row['realName'] . '</a>';
array_push($context['chat_links'], $link);
}
mysql_free_result($result);
}

// Track most online statistics?
if (!empty($modSettings['trackStats']))


That seemed to work for me, thank you very much for the great MOD it gets better with every release. Can't wait for the next one, keep up the great work.
Title: Re: AjaxChat Integration
Post by: ttuu on February 02, 2009, 01:22:16 PM
Good job.
You can add a function of Permissions?
What happened a group of specific users can enter chat? For example, only admins.
Title: Re: AjaxChat Integration
Post by: ohioreef on February 02, 2009, 07:41:46 PM
I tried to install AjaxChat and I got the following error when I tried to run the install.php:

QuoteQuery: CREATE TABLE ajax_chat_online ( userID INT(11) NOT NULL, userName VARCHAR(64) NOT NULL, userRole INT(1) NOT NULL, channel INT(11) NOT NULL, dateTime DATETIME NOT NULL, ip VARBINARY(16) NOT NULL ) DEFAULT CHARSET=utf8 COLLATE=utf8_bin; Error-Report: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8 Error-Code: 1064

Any suggestions?
Title: Re: AjaxChat Integration
Post by: nomnomfish on February 03, 2009, 12:44:47 AM
hey guys, i now have my ajax chat up and functional for the members of my site:
http://www.swampratracing.com/forum (http://www.swampratracing.com/forum)

but i was wondering how people get the "users in chat" to display by their users online area?

any help would be appreciated,
thanks
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 03, 2009, 01:03:08 AM
Quote from: rsanchez78118 on February 03, 2009, 12:44:47 AM
hey guys, i now have my ajax chat up and functional for the members of my site:
http://www.swampratracing.com/forum (http://www.swampratracing.com/forum)

but i was wondering how people get the "users in chat" to display by their users online area?

any help would be appreciated,
thanks

If you have installed this intergration mod and edited your custom theme then you should be able to just go to Admin/Features and Options/Basic Features and check the "Show online users below total logged in time section?" box.

I hope that helps
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 03, 2009, 05:06:58 AM
version 2.2 released and now it is possible to give any group you want permission to use the chat
check the mod images for more information
==========================================
@mrtrc266
i think you solved the problem with installing 2.1?
now remove it :D and install 2.2 :P

@ttuu
added

@ohioreef
open chat/chat.sql file
and if before "DEFAULT CHARSET=utf8" in line error says there is a ')' like:
ip VARBINARY(16) NOT NULL ) DEFAULT CHARSET=utf8
remove it. like this:
ip VARBINARY(16) NOT NULL DEFAULT CHARSET=utf8
Title: Re: AjaxChat Integration
Post by: djrem on February 03, 2009, 11:01:39 AM
Before I install this.
If i use a folder other than "chat" will it install ok?

Also, has anyone a demo of the "shoutbox" mode?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 03, 2009, 11:41:53 AM
Great just Hunter, just a couple things though. Due to a TON of mods installed these 2 edits get interfered with. I did get it to install by the following which should easily install on all forums without any errors.

1. Execute Modification ./Sources/BoardIndex.php Test failed  

Still tries to find
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

// Track most online statistics?
if (!empty($modSettings['trackStats']))

should find find
// Track most online statistics?
if (!empty($modSettings['trackStats']))

replace with
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

//users in chat
$userIDs = array_unique(getChatOnlineUserIDs());
if (count($userIDs) > 0){
$query = "SELECT mem.ID_MEMBER, mem.realName, mem.ID_GROUP, mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON
(mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))WHERE ";
foreach ($userIDs as $ID)
$query .= 'ID_MEMBER = '. $ID . ' OR ';
//remove the last OR
$query = substr($query, 0, strlen($query)-3);

$result = db_query($query, __FILE__, __LINE__);
$context['chat_links'] = array();
while ($row = mysql_fetch_assoc($result))
{
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
if($row['onlineColor'] != ""){
$link.= '" style="color: ' . $row['onlineColor'];
}
$link.= '">' . $row['realName'] . '</a>';
    array_push($context['chat_links'], $link);
}
mysql_free_result($result);
}

// Track most online statistics?
if (!empty($modSettings['trackStats']))



2. Execute Modification ./Sources/ManagePermissions.php Test failed  
Same thing with this edit, I have other MODs installed that interfere with this layout of the permissions.
says to find
'profile_upload_avatar' => false,
'profile_remote_avatar' => false,
)
),
'board' => array(

Should just find
)
),
'board' => array(

and replace with
),
'chat' => array(
'chat_access' => false,
)
),
'board' => array(


Once again great job and keep up the good work :)
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 03, 2009, 01:36:11 PM
@djrem
unfortunately No it must be 'chat'
there is a picture of shout Box but i don't have a demo

@mrtrc266
OK in next release i will change those parts
----------------------------------------------------------
next update will be 2Beta 4 compatibility or admin panel

and please answer these questions in your posts
1. What is the best feature can be added to this chat?
2. What is the worst thing in it ?

Title: Re: AjaxChat Integration
Post by: ttuu on February 03, 2009, 02:04:41 PM
thanks for addition Permissions.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 03, 2009, 02:24:57 PM
Quote1. What is the best feature can be added to this chat?

A.  I know it's extremely dificult to pull smilies from the forum but you can easily add custom smilies to the AJAX Chat. The ability to add custom smilies via Admin Panel would be awesome. Also to add a "more" button with a popup for the extra smilies.

B. In my shoutbox I added the URL and IMG code buttons which is a nice feature.

C. To get Membergroup Colors to show would be great too.

D. In Admin Panel have the option to select which boards you want to use as Channels.

E. Of course a release for SMF 2 Beta

F. To add the ability to show the Shout Box on multiple pages, ie. arcade, portal, etc.

Quote2. What is the worst thing in it ?

Nothing other than it doesn't have the above features in it LOL

I'm sure there's more but I gotta run off to work and will add more to the list when I get back. Keep up the great work  :)
Title: Re: AjaxChat Integration
Post by: ttuu on February 03, 2009, 03:35:50 PM
i want hide the "chat" button for user cannot have a Permissions in chat or for guest.
it is possible?
Title: Re: AjaxChat Integration
Post by: ohioreef on February 03, 2009, 05:46:40 PM
Quote from: .HuNTeR. on February 03, 2009, 05:06:58 AM
@ohioreef
open chat/chat.sql file
and if before "DEFAULT CHARSET=utf8" in line error says there is a ')' like:
ip VARBINARY(16) NOT NULL ) DEFAULT CHARSET=utf8
remove it. like this:
ip VARBINARY(16) NOT NULL DEFAULT CHARSET=utf8

I tried your suggestion, but I am still getting the same error. I will attach my chat.sql file, maybe you can figure it out.
Title: Re: AjaxChat Integration
Post by: nomnomfish on February 03, 2009, 06:54:59 PM
i still can't seem to get the "users in chat" to work. i tried to manually include the code into my boardindex.template.php and my index.template.php, but it still won't work.

if any1 would be kind enough to take a look at it i would really appreciate it.

my forum is located at: http://www.swampratracing.com/forum (http://www.swampratracing.com/forum)
Title: Re: AjaxChat Integration
Post by: Blinker on February 04, 2009, 02:45:08 AM
I get these strange symbols at the top left corner of my shoutbox - 

Any ideas?
Title: AjaxChat Integration - javascript popup window required
Post by: munty on February 04, 2009, 03:03:25 AM
I am new to smf so please bear with me. i have a site where they are still on 1.1.4 (i know, but owner of the site doesnt like upgrades.... )

Any one know how to add the chat in popup window thats featured on the following site (http://ajax-chat.wiki.sourceforge.net/Chat+in+popup+window) as it would make life soooo much easier for him.

or details on how to tie it into the board itself, so that it sits at the top of the forum all the time


tia

Munty

(if you need any files, just let me know)
Title: Re: AjaxChat Integration
Post by: ttuu on February 04, 2009, 05:20:24 AM
Quote from: ttuu on February 03, 2009, 03:35:50 PM
i want hide the "chat" button for user cannot have a Permissions in chat or for guest.
it is possible?

i solved myself.
in the index.template.php.
replace this:
// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = ($modSettings['enableChatButtonNo']) ? count(array_unique(getChatOnlineUserIDs())) : 0;
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '" target="_blank">', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a></td>';

to this:
// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = ($modSettings['enableChatButtonNo']) ? count(array_unique(getChatOnlineUserIDs())) : 0;
    if (allowedTo('chat_access'))
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '" target="_blank">', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a></td>';


thanks.
Title: Re: AjaxChat Integration
Post by: djrem on February 04, 2009, 06:44:58 AM
I have flashchat currently installed and it uses "chat" as its folder aswell as its "action" thingy.
Now i wanted to leave it installed in case it went wrong and i can revert back to it.

May be worth while for others trying to jump between the systems to use "chatroom" or "ajaxchat" or something.

Just my opinion.


Feature question
Can Guest log into the chat?
I havent found a way on flash chat for a non-logged user to log in.

I would love the option for a nonforum member to be able to preview the community before joining if possible.
Title: Re: AjaxChat Integration
Post by: ttuu on February 04, 2009, 10:49:43 AM
i have a problem.
my site is in Hebrew. and uesrs set you username in hebrew. now if user that username it is hebrew i cannot see in the chat the username but  i see space in place of username.
how i can fix that?
Title: Re: AjaxChat Integration
Post by: ryozo on February 04, 2009, 12:26:29 PM
I already have the old mod and just want the "Access Feature" of this new mod.
So what i did is modify the managepermission, modification.english, and chat's index.php.

Tried denying access to 1 group, but still they can access chatroom.
Am i missing something?

Thanks a lot.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 04, 2009, 12:39:32 PM
Quote from: rsanchez78118 on February 03, 2009, 06:54:59 PM
i still can't seem to get the "users in chat" to work. i tried to manually include the code into my boardindex.template.php and my index.template.php, but it still won't work.

if any1 would be kind enough to take a look at it i would really appreciate it.

my forum is located at: http://www.swampratracing.com/forum (http://www.swampratracing.com/forum)

Hi rsanchez, I just did the manual edit for your boardindex and tried it out on my site and it worked fine.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi216.photobucket.com%2Falbums%2Fcc92%2Fmrtrc266%2FMIsc%2Fuic.png&hash=8980c87db7cdf633969547b2b0092bb3dec3c51c)

Hope this helps.

Title: Re: AjaxChat Integration
Post by: Malignant on February 04, 2009, 04:27:24 PM
How can I add the chat to the index? (like so http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=84538;image )
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 04, 2009, 04:48:50 PM
Quote from: Malignant on February 04, 2009, 04:27:24 PM
How can I add the chat to the index? (like so http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=84538;image )

Just install AJAX Chat and this AJAX Chat Intergration MOD and then enable it in Admin/Features and Options/Basic Features and set it to your liking with these settings...

Enable the ShoutBox?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?   
Title: Re: AjaxChat Integration
Post by: Malignant on February 04, 2009, 07:29:09 PM
Quote from: mrtrc266 on February 04, 2009, 04:48:50 PM
Quote from: Malignant on February 04, 2009, 04:27:24 PM
How can I add the chat to the index? (like so http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=84538;image )

Just install AJAX Chat and this AJAX Chat Intergration MOD and then enable it in Admin/Features and Options/Basic Features and set it to your liking with these settings...

Enable the ShoutBox?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?

Thanks... I got it.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 05, 2009, 06:12:28 AM
@ohioreef
your chat.sql file seems OK and I'm confused
maybe chat developer (http://sourceforge.net/forum/forum.php?forum_id=774132) can help you more
----------------------------------------------------------------------------------------------------------
@Blinker
maybe a link to your forum help us to solve your problem
----------------------------------------------------------------------------------------------------------
@munty
open themes/index.template.php
find:

   // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = ($modSettings['enableChatButtonNo']) ? count(array_unique(getChatOnlineUserIDs())) : 0;
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <td valign="top" class="maintab_back">
         <a href="', $chatPath, '" target="_blank">', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a></td>';

replace with:

   // the [chat] button
   echo '    <script type="text/javascript">
        // <![CDATA[
            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 = ($modSettings['enableChatButtonNo']) ? count(array_unique(getChatOnlineUserIDs())) : 0;
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <td valign="top" class="maintab_back">
         <a href="', $chatPath, '" onclick="openWindow(this.href);this.blur();return false;">', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a></td>';

----------------------------------------------------------------------------------------------------------
@djrem
you are right this is not good that users had to install the chat in chat folder
and I'm searching a good solution for this

check these for guests:
chat/lib/config.php

// Enable/Disable guest logins:
$config['allowGuestLogins'] = true;
// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
$config['allowGuestWrite'] = true;
// Allow/Disallow guest users to choose their own userName:
$config['allowGuestUserName'] = true;
// Guest users should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['guestUserPrefix'] = '(';
// Guest users should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['guestUserSuffix'] = ')';
// Guest userIDs may not be lower than this value (and not higher than privateChannelDiff):
$config['minGuestUserID'] = 400000000;

and also remember to give guests chat access in smf permission
----------------------------------------------------------------------------------------------------------
@ttuu
i used this chat with Persian/Arabic languages that need utf-8 encoding and working good
may be chat developer (http://sourceforge.net/forum/forum.php?forum_id=774132) can help you more
----------------------------------------------------------------------------------------------------------
@ryozo
i think it is better you install the latest version because of bug fix and ...
but if you don't want  there is some changes in chat/index.php file too
Title: Re: AjaxChat Integration
Post by: munty on February 05, 2009, 09:17:26 AM
right,

Persuaded him to upgrade to 1.1.7 SMF and installed this mod, and its lovely...

all i would like now is to be able to have the shoutbox that shows on the front page, to show all the time, for even when users are going into other parts of the forum.

is this possible?


tia

M
Title: Re: AjaxChat Integration
Post by: ohioreef on February 05, 2009, 03:18:53 PM
Quote from: .HuNTeR. on February 05, 2009, 06:12:28 AM
@ohioreef
your chat.sql file seems OK and I'm confused
maybe chat developer (http://sourceforge.net/forum/forum.php?forum_id=774132) can help you more

With the help of the link you provided I was able to get the chat installed, however I am now having issues with the mod itself. I am getting the following errors:


QuoteInstalling this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test failed
2. Execute Modification ./Sources/ManagePermissions.php Test failed
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
5. Execute Modification ./Themes/default/index.template.php Test successful
6. Execute Modification ./Themes/default/style.css Test successful
7. Execute Modification ./Themes/default/languages/Help.english.php Test successful
8. Execute Modification ./Themes/default/languages/Help.persian.php Skipping file
9. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
10. Execute Modification ./Themes/default/languages/Modifications.persian.php Skipping file
11. Execute Modification ./chat/index.php Test successful
12. Execute Modification ./chat/lib/class/AJAXChat.php Test successful
13. Execute Modification ./chat/lib/class/AJAXChatDataBase.php Test successful
14. Execute Modification ./chat/lib/config.php Test successful
15. Execute Modification ./chat/lib/template/shoutbox.html Test successful
16. Execute Modification ./chat/lib/template/loggedOut.html Test successful
17. Execute Modification ./chat/css/shoutbox.css Test successful
Title: Re: AjaxChat Integration
Post by: Jazman on February 05, 2009, 03:23:46 PM
Hey everyone.

I'm have a little problem with some text displaying after installing this mod (I tried 1.2.2, and _2.2). I just recently installed a fresh copy of SMF1.1.7, and Tinyportal1.06. In order to view tinyportal administrative features, I had to set the default language to English from English-UTF8.

So with that said, I'm seeing this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.aevumarcana.com%2Fjesse%2Ftemp%2FMissingTextMenu.jpg&hash=bbef05082bab196391c1f79e7de2919f52d9f542) and (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.aevumarcana.com%2Fjesse%2Ftemp%2FMissingTextOnline.jpg&hash=51bd87230dca0052a52fdf9929f2f3e00012be38).


If I enter Admin-Configuration-Server Settings and set English again, the correct text appears.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.aevumarcana.com%2Fjesse%2Ftemp%2FAfterSaveMenu.jpg&hash=31aef7f198c1e1b94dc2fdb704622b8056f26b97) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.aevumarcana.com%2Fjesse%2Ftemp%2FAfterSaveOnline.jpg&hash=3333b9d9ffafa11311c562133dade19b2be42232)

But I have to do this every time I return to the forums.

Any thoughts?

Again, this is on a fresh install of SMF, and I received no errors during the integration mod install.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 05, 2009, 03:29:28 PM
Quote from: ohioreef on February 05, 2009, 03:18:53 PM

With the help of the link you provided I was able to get the chat installed, however I am now having issues with the mod itself.

This should help with your boardindex and managepermissions

http://www.simplemachines.org/community/index.php?topic=257973.msg1909954#msg1909954

Title: Re: AjaxChat Integration
Post by: ohioreef on February 05, 2009, 04:03:02 PM
Quote from: mrtrc266 on February 05, 2009, 03:29:28 PM
This should help with your boardindex and managepermissions

http://www.simplemachines.org/community/index.php?topic=257973.msg1909954#msg1909954


Ok thanks, but what do I do? Do I change something in the mod install files?

I'm using the chat without the mod and really like it. Looking forward to having the mod installed.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 05, 2009, 04:12:38 PM
Quote from: ohioreef on February 05, 2009, 04:03:02 PM
Quote from: mrtrc266 on February 05, 2009, 03:29:28 PM
This should help with your boardindex and managepermissions

http://www.simplemachines.org/community/index.php?topic=257973.msg1909954#msg1909954


Ok thanks, but what do I do? Do I change something in the mod install files?

I'm using the chat without the mod and really like it. Looking forward to having the mod installed.

Be sure to backup, then proceed with the install. When you're done post the following files and I'll take a look

./Sources/BoardIndex.php Test failed
./Sources/ManagePermissions.php Test failed
./Themes/default/BoardIndex.template.php Test failed

Title: Re: AjaxChat Integration
Post by: BarfBag on February 05, 2009, 10:00:51 PM
I installed this mod and it seems to be working pretty good.  I have some questions, though.

1.  How do I add members as moderators?
2.  How do I skin it?
3.  I'm getting this error in the log (a LOT):
8: Undefined index: enableChatBelowPM
File: /home/content/r/b/r/rbrown1990/html/Themes/default/Admin.template.php (eval?)
Line: 285
Title: Re: AjaxChat Integration
Post by: nomnomfish on February 05, 2009, 10:33:06 PM
Quote from: munty on February 05, 2009, 09:17:26 AM
right,

Persuaded him to upgrade to 1.1.7 SMF and installed this mod, and its lovely...

all i would like now is to be able to have the shoutbox that shows on the front page, to show all the time, for even when users are going into other parts of the forum.

is this possible?

you may be able to do this with the global headers footers mod.


tia

M
Title: Re: AjaxChat Integration
Post by: nomnomfish on February 05, 2009, 10:35:02 PM
Quote from: djrem on February 04, 2009, 06:44:58 AM
I have flashchat currently installed and it uses "chat" as its folder aswell as its "action" thingy.
Now i wanted to leave it installed in case it went wrong and i can revert back to it.

May be worth while for others trying to jump between the systems to use "chatroom" or "ajaxchat" or something.

Just my opinion.


Feature question
Can Guest log into the chat?
I havent found a way on flash chat for a non-logged user to log in.

I would love the option for a nonforum member to be able to preview the community before joining if possible.

try meebo chat or maybe even gabbly
Title: Re: AjaxChat Integration
Post by: nomnomfish on February 05, 2009, 11:40:07 PM
wow, i just cannot get it to display the number of users in chat or no users in chat at the bottom where it says users online.  >:(

could someone walk me through this painful process? :D
thanks
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 05, 2009, 11:49:59 PM
Quote from: rsanchez78118 on February 05, 2009, 11:40:07 PM
wow, i just cannot get it to display the number of users in chat or no users in chat at the bottom where it says users online.  >:(

could someone walk me through this painful process? :D
thanks

Hmmm, did you upload the BoardIndex.template.php  that I edited? Cuz I tried your BoardIndex.template.php  on my site and it worked just fine. Be sure to enable it in the Admin Section....

Admin/Features and Options/Basic Features and set it to your liking with these settings...

Enable the ShoutBox?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?   

Also be sure to add the language strings if your theme has it's own language folder.

Add to to bottom of /Themes/yourtheme/languages/Modifications.english.php

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration
Title: Re: AjaxChat Integration
Post by: nomnomfish on February 06, 2009, 12:13:42 AM
ya i used the one u edited...still nothing

Enable the ShoutBox?    have
Enable online chat users numbering on chat button?   dont have
Show online users below total logged in time section?   dont have

it only shows the "enable the shoutbox" checkbox...
i dont have the other two...

i added the code to my /Themes/yourtheme/languages/pages.english.php file
still nothing
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 06, 2009, 12:30:03 AM
Quote from: rsanchez78118 on February 06, 2009, 12:13:42 AM
ya i used the one u edited...still nothing

Enable the ShoutBox?    have
Enable online chat users numbering on chat button?   dont have
Show online users below total logged in time section?   dont have

it only shows the "enable the shoutbox" checkbox...
i dont have the other two...

i added the code to my /Themes/yourtheme/languages/pages.english.php file
still nothing

Are you sure you have the latest version AjaxChat_Integration_2.2.zip ? I know a previous version only had the "Enable the ShoutBox" feature but the latest version should have all these features.

Enable the ShoutBox?
Enable online chat users numbering on chat button?
Show online users below total logged in time section?

Try to enable your default "core" theme and see if those options are in there.
Title: Re: AjaxChat Integration
Post by: nomnomfish on February 06, 2009, 12:33:50 AM
i enabled the default-core theme and it shows the users in chat there but not my custom blackrainv2 theme
Title: Re: AjaxChat Integration
Post by: nomnomfish on February 06, 2009, 12:35:36 AM
i have 1.2.2

looks like i need to upgrade?
how do i go about the upgrade?
just install in the admin package section?
or do i need to uninstall the other? then install the new?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 06, 2009, 12:43:06 AM
Quote from: rsanchez78118 on February 06, 2009, 12:35:36 AM
i have 1.2.2

looks like i need to upgrade?
how do i go about the upgrade?
just install in the admin package section?
or do i need to uninstall the other? then install the new?

Uninstall the old and then intstall the new. Be sure to use a Package Parser (http://resourcez.biz/PackageParser/) to remove all edits from your custom theme
Title: Re: AjaxChat Integration
Post by: nomnomfish on February 06, 2009, 01:14:18 AM
im workin on the uninstall process, ill post back 2morrow when i finish.
thanks for all your help mrtrc266, and thanks for joining our swamp rat community.
i checked yours out, and you have a pretty nice forum yourself... :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 06, 2009, 01:21:58 AM
Quote from: rsanchez78118 on February 06, 2009, 01:14:18 AM
im workin on the uninstall process, ill post back 2morrow when i finish.
thanks for all your help mrtrc266, and thanks for joining our swamp rat community.
i checked yours out, and you have a pretty nice forum yourself... :D

NP at all, hope it works out for ya. Thanks for the comps on the Mansion, very nice site you have too. Mine is currently closed for reg, you have to join www.railbirds.com and hit some poker table first :D.

I'll check back in the morn.
Title: Re: AjaxChat Integration
Post by: djrem on February 06, 2009, 07:24:51 AM
Quote from: rsanchez78118 on February 06, 2009, 12:33:50 AM
i enabled the default-core theme and it shows the users in chat there but not my custom blackrainv2 theme

You need to manually install the edits to your custom themes.
Title: Re: AjaxChat Integration
Post by: ohioreef on February 06, 2009, 10:20:04 AM
Quote from: mrtrc266 on February 05, 2009, 04:12:38 PM
Be sure to backup, then proceed with the install. When you're done post the following files and I'll take a look

./Sources/BoardIndex.php Test failed
./Sources/ManagePermissions.php Test failed
./Themes/default/BoardIndex.template.php Test failed

I tried that on my test board and it crashed the board. I ended up just reinstalling it. I'm afraid to risk that on my main site, it is much larger. Could I possibly send you those files before the mod for you to look at?

Gary
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 06, 2009, 11:47:26 AM
Quote from: ohioreef on February 06, 2009, 10:20:04 AM
Quote from: mrtrc266 on February 05, 2009, 04:12:38 PM
Be sure to backup, then proceed with the install. When you're done post the following files and I'll take a look

./Sources/BoardIndex.php Test failed
./Sources/ManagePermissions.php Test failed
./Themes/default/BoardIndex.template.php Test failed

I tried that on my test board and it crashed the board. I ended up just reinstalling it. I'm afraid to risk that on my main site, it is much larger. Could I possibly send you those files before the mod for you to look at?

Gary

Yes go ahead and attatch those 3.
Title: Re: AjaxChat Integration
Post by: Wolfie1 on February 06, 2009, 12:37:03 PM
Hi, I installed my chat in the smf-forum/chat and all is working great but when I installed the integration mod, nothing happened. Nothing showed in the admin panel, no shoutbox thing in the basic features section or anything.

I just upgraded to 1.1.8 and was wondering if that was why.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 06, 2009, 12:39:56 PM
Quote from: Wolfie1 on February 06, 2009, 12:37:03 PM
Hi, I installed my chat in the smf-forum/chat and all is working great but when I installed the integration mod, nothing happened. Nothing showed in the admin panel, no shoutbox thing in the basic features section or anything.

I just upgraded to 1.1.8 and was wondering if that was why.

Are you using the default theme? If not switch to the default theme and see if anything shows up there.
Title: Re: AjaxChat Integration
Post by: ohioreef on February 06, 2009, 12:56:33 PM
Quote from: mrtrc266 on February 06, 2009, 11:47:26 AM
Yes go ahead and attatch those 3.

Thank you, here they are.......

I have already downloaded copies of all the files that need modified. I have manually modified all of them except the 3 below. If you could help me get these last 3 modified I'd be very grateful!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 06, 2009, 02:01:22 PM
Quote from: ohioreef on February 06, 2009, 12:56:33 PM
Quote from: mrtrc266 on February 06, 2009, 11:47:26 AM
Yes go ahead and attatch those 3.

Thank you, here they are.......

Ok I did all the edits for this version AjaxChat_Integration_2.2.zip, the only thing I wasn't able to test was the Boardindex.php but the edit is there. I tried the Boardindex.template.php and ManagePermissions.php on my forum and as you can see in the pics it worked just fine.

Try installing the MOD again and use these. Hope this works for you.
Title: Re: AjaxChat Integration
Post by: ohioreef on February 06, 2009, 03:41:30 PM
I believe it is working now, at least appears to be. I have noticed some new errors in the forum error log......I'll see how persistent they are and repost if there are issues.

Thank you very much for your help!!!!
Title: Re: AjaxChat Integration
Post by: qtime on February 06, 2009, 04:28:55 PM
it's working great!
1 problem for me is not to see the total members in the chatbox, but I can live with that.
Does someone know how to change the standard style if a member enters the room?
Title: Re: AjaxChat Integration
Post by: qtime on February 06, 2009, 04:40:34 PM
Quote from: qtime on February 06, 2009, 04:28:55 PM
it's working great!
1 problem for me is not to see the total members in the chatbox, but I can live with that.
Does someone know how to change the standard style if a member enters the room?
solved the style problem
find it in the config.php
$config['styleDefault'] = 'XXXXX';
Title: Re: AjaxChat Integration
Post by: ohioreef on February 06, 2009, 06:06:49 PM
I am getting multiple errors. I will copy a couple below. Thel all seem to have the same issue:

8: Undefined variable: modSettings
File: /homepages/7/d162731726/htdocs/forum/Themes/default/Display.template.php (eval?)
Line: 724

8: Undefined variable: modSettings
File: /homepages/7/d162731726/htdocs/forum/Themes/default/Recent.template.php (eval?)
Line: 724

8: Undefined variable: modSettings
File: /homepages/7/d162731726/htdocs/forum/Themes/default/PersonalMessage.template.php (eval?)
Line: 724

8: Undefined variable: modSettings
File: /homepages/7/d162731726/htdocs/forum/Themes/default/EzPortal.template.php (eval?)
Line: 724



Are these indicating a problem with the modsettings file? Other than these errors in the error file it seems to running fine.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 06, 2009, 07:05:47 PM
Quote from: ohioreef on February 06, 2009, 06:06:49 PM
I am getting multiple errors. I will copy a couple below. Thel all seem to have the same issue:

8: Undefined variable: modSettings
File: /homepages/7/d162731726/htdocs/forum/Themes/default/Display.template.php (eval?)
Line: 724

8: Undefined variable: modSettings
File: /homepages/7/d162731726/htdocs/forum/Themes/default/Recent.template.php (eval?)
Line: 724

8: Undefined variable: modSettings
File: /homepages/7/d162731726/htdocs/forum/Themes/default/PersonalMessage.template.php (eval?)
Line: 724

8: Undefined variable: modSettings
File: /homepages/7/d162731726/htdocs/forum/Themes/default/EzPortal.template.php (eval?)
Line: 724

Are these indicating a problem with the modsettings file? Other than these errors in the error file it seems to running fine.

I'm glad It's finally workin for ya Ohio. I'm not sure about the errors though I'm not very good at this php coding stuff but this looks like it might work http://www.simplemachines.org/community/index.php?topic=210751.0 give it a try.
Title: Re: AjaxChat Integration
Post by: qtime on February 06, 2009, 07:33:54 PM
what's the text on line 724 ?
Title: Re: AjaxChat Integration
Post by: ohioreef on February 06, 2009, 09:37:56 PM
Quote from: qtime on February 06, 2009, 07:33:54 PM
what's the text on line 724 ?

In which file? My modsettings file doesnt have that many lines.
Title: Re: AjaxChat Integration
Post by: nomnomfish on February 06, 2009, 10:01:23 PM
my chat is now working great.
i only have one question...

my "Users active in past 15 minutes:" doesn't retain the users in the last 15 minutes.
when a user logs out, he/she disappears from this list.
it only shows who is currently online.
how do i change this to display who was online for the last 15 minutes?  :)
Title: Re: AjaxChat Integration
Post by: ohioreef on February 06, 2009, 10:18:47 PM
I fixed it!!!!! When I installed the mod manually, there was a string that needed to be modfied in the index.template.php file multiple times. I found it once, changed it, but never thought to see if there were other instances of the same string.

Thanks for the suggestions! It did involve what was discussed in the link you sent me.
Title: Re: AjaxChat Integration
Post by: Mystery? on February 06, 2009, 10:33:36 PM
May you please update it for SMF 2.0 RC1?
Title: Re: AjaxChat Integration
Post by: ohioreef on February 06, 2009, 10:56:36 PM
I've got the chat all up and running and all the errors are gone........I did notice that in the Users Online section of the forum, it is listing spiders under the Users in Chat line rather than up on the online users line. I'm thinking maybe this is simply a misplacement of code? Is there an easy way to fix this?

Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 07, 2009, 01:21:55 AM
@ Ohioreef and rsanchez I had the same question....I think :P ....and this was the response

Quote@mrtrc266
Quote from: mrtrc266 on January 22, 2009, 12:45:46 PM
Previously, if a user was in the Chatroom they stil showed online in my "Users Online." Now, if they are in the Chatroom
they appear as "Offline" in the forum.

Answer

Quotewhen users are in chat their last activity will not update and after 15 minutes(default time) they will be become offline in smf
Title: Re: AjaxChat Integration
Post by: Mdk001 on February 07, 2009, 06:54:15 AM
Quote from: Blinker on February 04, 2009, 02:45:08 AM
I get these strange symbols at the top left corner of my shoutbox - 

Any ideas?

I'm getting them too, and I didn't even enable the shoutbox (actually, I didn't place the shoutbox code anywhere, since I'm not planning to use it anyway)
Site's www.alcatrazfumetteria.com/forum if you want to give it a look, I'm not scanning the source code to see if that slipped in somewhere...
Title: Re: AjaxChat Integration
Post by: Mdk001 on February 07, 2009, 07:03:52 AM
Quote from: ohioreef on February 06, 2009, 10:56:36 PM
I've got the chat all up and running and all the errors are gone........I did notice that in the Users Online section of the forum, it is listing spiders under the Users in Chat line rather than up on the online users line. I'm thinking maybe this is simply a misplacement of code? Is there an easy way to fix this?

Yeah, it's pretty easy, your code should look like this in boardindex.template:

Quote// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online']))
      echo '
                     ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);


   if (!empty($context['spiders']))
   {
      if ($modSettings['ob_googlebot_display_own_list'])
         echo '
            <br />
            ', $txt['ob_googlebot_spiders_last_active'], ':<br />';
      else
      {
         if (empty($context['users_online']))
            echo '
            ', $txt[140], ':<br />';
         else
            echo ', ';
      }
      
      echo implode(', ', $context['spiders']);
   }

// users in chat
   if (isset($context['chat_links'])){
  if (count($context['chat_links']) == 0 )
     echo '<br />' . $txt['chat_no_user'];
   elseif (count($context['chat_links']) == 1 )
     echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
   else
     echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }

   echo '
                     <br />
Title: Re: AjaxChat Integration
Post by: sdodc09 on February 07, 2009, 07:26:19 AM
Help! I installed this following the instructions, and now my forum index will not work (installed in its own /chat/directory... and now I cannot access anything on the forum). I deleted the chat install, and all original forum files are intact, but I keep getting a http 500 "cannot display page". Any suggestions? Thank you.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 07, 2009, 07:41:52 AM
@munty
this feature will added to next version
-----------------------------------------------------------
@Jazman
you should copy all of text between
//Begin AjaxChat Integration
and
//End AjaxChat Integration
in
ThemesdefaultlanguagesModifications.english.php
and
ThemesdefaultlanguagesHelp.english.php
into
ThemesdefaultlanguagesModifications.english-utf8.php
and
ThemesdefaultlanguagesHelp.english-utf8.php
-----------------------------------------------------------
@BarfBag
1. if a users in your forum be a moderator in your chat became a moderator too

2. the only available skins can find in chat => style

3. i think your mod completely not installed
-----------------------------------------------------------
@Mystery?
next update will be 2 RC1 compatibility ;)
-----------------------------------------------------------
@ohioreef
look at two post upper Mdk001 posted the right code for you
-----------------------------------------------------------
@Mdk001
I checked your site
but shoutbox is disabled and i cant see any strange symbols!
-----------------------------------------------------------
@sdodc09
this problem occurred after installing the chat or the mod ?
are you using default theme or a 3rd party theme?
and a link to your site will help a lot
Title: Re: AjaxChat Integration
Post by: sdodc09 on February 07, 2009, 08:00:32 AM
Would changing back to a default theme help?

(To answer my own question, yes, I switched to the SMF default, and that restored access to the index.php page - phew!). I may attempt to reinstall the chat later, and hope that it will work next time -- it looked like a great tool. Thanks!
Title: Re: AjaxChat Integration
Post by: Mdk001 on February 07, 2009, 08:11:56 AM
Quote from: .HuNTeR. on February 07, 2009, 07:41:52 AM

@Mdk001
I checked your site
but shoutbox is disabled and i cant see any strange symbols!


As I said, I didn't bother adding the code for the shoutbox to avoid extra mess in the code :)
You can't see the weird chars cause they're black on a black background,but you can highlight the whole page and you'll see they're displayed on the upper-left part of the page
What's worse, if you go to any other forum section (calendar, help or anything), those chars will warp to the navigation bar, making it a mess

Edit:in fact, I left out 2 of the modification I was supposed to do to my custom theme, the shoutbox part and the chat below the PM one, I doubt it had anything important in there, right?

Do you mind adding me on MSN so I can explain it out in real time? :)
The MSN email is on that site, check Mdk's profile
Title: Re: AjaxChat Integration
Post by: Mdk001 on February 07, 2009, 09:43:25 AM
After a bit of research, that char seems to be something that has to do with unicode, so I might fix it by switching my database to utf-8 (and the site as well)
Let's see how it turns out...

Edit:ok, I can't convert my italian database into UTF8 without having a mess with special characters... I guess it's up to you to find out where that special char is coming from :)

Quote
Yes, "" is the Byte Order Mark (BOM) of the Unicode Standard. Specifically it is the hex bytes EF BB BF, which form the UTF-8 representation of the BOM, misinterpreted as ISO 8859/1 text instead of UTF-8.

Probably what it means is that you are using a text editor that is saving files in UTF-8 with the BOM, when it should be saving without the BOM. It could be PHP files that have the BOM, in which case they'd appear as literal text on your page. Or it could be translated text you pasted into Joomla! edit windows.

The Unicode Consortium's FAQ on the Byte Order Mark is at http://www.unicode.org/faq/utf_bom.html#BOM .

I also tried with the defaul theme and I get the same weird code, so it must be something in the common files rather than something I got wrong while installing the mod on my theme :)

One more edit:
after some testing, it seem that the error code is somewhat related to
Quote
//users in chat
   $userIDs = array_unique(getChatOnlineUserIDs());
   if (count($userIDs) > 0){
      $query = "SELECT mem.ID_MEMBER, mem.realName, mem.ID_GROUP, mg.onlineColor, mg.ID_GROUP
       FROM   {$db_prefix}members AS mem
       LEFT JOIN {$db_prefix}membergroups AS mg ON
       (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))WHERE ";
      foreach ($userIDs as $ID)
         $query .= 'ID_MEMBER = '. $ID . ' OR ';
      //remove the last OR
      $query = substr($query, 0, strlen($query)-3);

      $result = db_query($query, __FILE__, __LINE__);
      $context['chat_links'] = array();
      while ($row = mysql_fetch_assoc($result))
         {
         $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
         if($row['onlineColor'] != ""){
            $link.= '" style="color: ' . $row['onlineColor'];
         }
         $link.= '">' . $row['realName'] . '</a>';
         array_push($context['chat_links'], $link);
         }
      mysql_free_result($result);
      }

If I leave it, I get the error right on top of the page... if it's out, it displays the error in the menu bar
Title: Re: AjaxChat Integration
Post by: ohioreef on February 07, 2009, 09:48:03 AM
You guys are awesome!!! Sure enough my code was flipped. I made the change and all looks good!! Thanks again!!
Title: Re: AjaxChat Integration
Post by: Mystery? on February 07, 2009, 10:39:59 AM
Oh and is there a way to disable name change that was the main reason I uninstalled this mod.

EDIT: (Please put this as an option for people who hate dealing with HTML)
Title: Re: AjaxChat Integration
Post by: Mdk001 on February 07, 2009, 10:54:25 AM
Quote from: ohioreef on February 07, 2009, 09:48:03 AM
You guys are awesome!!! Sure enough my code was flipped. I made the change and all looks good!! Thanks again!!
If only my problem was that easy :D

Quote from: Mystery? on February 07, 2009, 10:39:59 AM
Oh and is there a way to disable name change that was the main reason I uninstalled this mod.
There's something for it in the config.php, plus I modified the loggedout.html file so it would automatically redirect to the chat instead of being shown, so I don't think they have a way to change their nicks now

Also, I fixed my problem by exporting my database in utf-8, reimporting it and switching the SMF to italian-utf8 language... quite a lot of work :)
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 07, 2009, 11:49:42 AM
@sdodc09
place a link to your forum please

@Mdk001
happy to hear you solved your problem

@Mystery?
of curse it is possible
open:
chat\lib\config.php
and set these setting to your desired values:

// Allow/Disallow users to change their userName (Nickname):
$config['allowNickChange'] = true;
// Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['changedNickPrefix'] = '(';
// Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['changedNickSuffix'] = ')';

Title: Re: AjaxChat Integration
Post by: Jiveturkey on February 07, 2009, 12:24:30 PM
I installed everything per the instructions and made all of the manual code edits (some were already there and some weren't).  I'm running 1.1.8 and the Default template.

The Chat button shows up without a problem but when I click on it as the admin I get a blank chat window.  Everything is there except for users and I can't post.  I attached the screen shot.

If a non admin clicks on the Chat button they get this message "An Error Has Occurred!
Sorry, you can't access the chat."

It seems like I'm just not pulling any users over to the chat.

Here's a link to my forum http://coastercommunity.com/smf_forum/index.php
Title: Re: AjaxChat Integration
Post by: Mdk001 on February 07, 2009, 01:55:18 PM
As silly as it sounds, my theme now has an empty line at the top where the symbols once were... but that's only for the index page
I swear, all this makes no sense!

In fact, the default theme even shows the same problem being inside the menu as well, but luckily enough it doesn't show with the theme I use
Basically, I managed to hide the symbols but the empty space still takes up the space they're supposed to...
Title: Re: AjaxChat Integration
Post by: qtime on February 07, 2009, 05:55:17 PM
I cannot see the total of chat members who are active
Call to undefined function getChatOnlineUserIDs() is the error in my apache error log.
Is there something to do?

edit:
I changed the boardindex.php
with:
   //users in chat
   $userIDs = array_unique(getChatOnlineUserIDs());
   if (count($userIDs) > 0){
      $query = "SELECT mem.ID_MEMBER, mem.realName, mem.ID_GROUP, mg.onlineColor, mg.ID_GROUP
       FROM   {$db_prefix}members AS mem
       LEFT JOIN {$db_prefix}membergroups AS mg ON
       (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))WHERE ";
      foreach ($userIDs as $ID)
         $query .= 'ID_MEMBER = '. $ID . ' OR ';
      //remove the last OR
      $query = substr($query, 0, strlen($query)-3);

      $result = db_query($query, __FILE__, __LINE__);
      $context['chat_links'] = array();
      while ($row = mysql_fetch_assoc($result))
         {
         $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
         if($row['onlineColor'] != ""){
            $link.= '" style="color: ' . $row['onlineColor'];
         }
         $link.= '">' . $row['realName'] . '</a>';
         array_push($context['chat_links'], $link);
         }
      mysql_free_result($result);
      }


and the error is away, but still can not see the total, it's says:No user is in chat.
Title: Re: AjaxChat Integration
Post by: Snow Keld on February 07, 2009, 06:04:06 PM
i love this mod, after much hard work i got my forum to look like this (http://img7.imageshack.us/img7/8805/screenshot2jj9.jpg)

felt compelled to show it to you all, many other mods, most obvious is simple portal.


but i'm posting back again cuz i find the timeout very annoying, how can you extend it to like 1h or something?


(cross my fingers that its not the same as forum timeout, cuz it should stay low, and chat needs to be long.)
Title: Re: AjaxChat Integration
Post by: Mystery? on February 07, 2009, 06:34:34 PM
Quote from: .HuNTeR. on February 07, 2009, 11:49:42 AM
@sdodc09
place a link to your forum please

@Mdk001
happy to hear you solved your problem

@Mystery?
of curse it is possible
open:
chat\lib\config.php
and set these setting to your desired values:

// Allow/Disallow users to change their userName (Nickname):
$config['allowNickChange'] = true;
// Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['changedNickPrefix'] = '(';
// Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['changedNickSuffix'] = ')';


What should I change them to?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 07, 2009, 06:36:45 PM
Quote from: Snow Keld on February 07, 2009, 06:04:06 PM
i love this mod, after much hard work i got my forum to look like this (http://img7.imageshack.us/img7/8805/screenshot2jj9.jpg)

felt compelled to show it to you all, many other mods, most obvious is simple portal.


but i'm posting back again cuz i find the timeout very annoying, how can you extend it to like 1h or something?


(cross my fingers that its not the same as forum timeout, cuz it should stay low, and chat needs to be long.)

In your /chat/lib/config.php find
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:


And right below that change the settings to what you'd like.
Title: Re: AjaxChat Integration
Post by: Snow Keld on February 07, 2009, 06:46:27 PM
thank you vry much :D

quite simple.
Title: Re: AjaxChat Integration
Post by: Jiveturkey on February 07, 2009, 08:09:07 PM
So what's the best way to delete all of the changes that I had to make to install this?  I found another chat solution that I plan on using.

I uploaded a backup copy of my forum from 3 days ago but this mod was still in there.  It also looks like a lot of the code changes were still in there.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 07, 2009, 08:20:48 PM
Quote from: Jiveturkey on February 07, 2009, 08:09:07 PM
So what's the best way to delete all of the changes that I had to make to install this?  I found another chat solution that I plan on using.

I uploaded a backup copy of my forum from 3 days ago but this mod was still in there.  It also looks like a lot of the code changes were still in there.

If some of the code got stuck in there you should use a Package Parser (http://resourcez.biz/PackageParser/) and remove everything manually especially from your custom themes
Title: Re: AjaxChat Integration
Post by: Jiveturkey on February 07, 2009, 08:30:01 PM
I've been going back through and make the changes listed there and now I'm getting this error.

Parse error: syntax error, unexpected $end in /home1/coasterc/public_html/smf_forum/Sources/BoardIndex.php on line 655

Any thoughts?
Title: Re: AjaxChat Integration
Post by: Jiveturkey on February 07, 2009, 09:01:46 PM
Line 655 is the very end of the file.

Everything on the admin end works, I only get that error when I click home to view the actual forum.
Title: Re: AjaxChat Integration
Post by: ohioreef on February 07, 2009, 11:10:38 PM
I really hate to do this....I thought the forum was up and running fine with the chat and it is unless you access for a mobile device. When accessing from a mobile device you get the following error:

Fatal error: Call to undefined function: getchatonlineuserids() in /homepages/7/d162731726/htdocs/forum/Sources/BoardIndex.php on line 531


Any suggestions?
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 08, 2009, 06:39:11 AM
@Jiveturkey
i checked your site
you are using another chat system
this mod is for AjaxChat (https://blueimp.net/ajax/) only

@qtime
are you trying to install the mod manually?
what you mean when you said??: "I changed the boardindex.php"

@Mystery?
$config['allowNickChange'] = false;
and the users can't change their nick names

@Jiveturkey
probably you missed a }
attach your boardindex.php here and we correct it for you

@ohioreef
download the 2.2.1 version this bug patched
Title: Re: AjaxChat Integration
Post by: ttuu on February 08, 2009, 07:05:07 AM
which file(s) change from 2.2.0 to 2.2.1?
Title: Re: AjaxChat Integration
Post by: ohioreef on February 08, 2009, 07:11:12 AM
Quote from: .HuNTeR. on February 08, 2009, 06:39:11 AM
@ohioreef
download the 2.2.1 version this bug patched

I had to manually install this mod with the help of mrtrc266. I installed the latest version as of a couple days ago. Is 2.2.1 newer than that?

What changes do I need to make?
Title: Re: AjaxChat Integration
Post by: ohioreef on February 08, 2009, 07:26:57 AM
Is the only change in the boardindex.php file? I found that change, made it and wireless access is back.

I found:

if (!defined('WIRELESS')) {

EXISTING CODE

}


I made the change above and now the list of users in the chat room is no longer showing up beneath the users online list. Did I miss some changes?

Title: Re: AjaxChat Integration
Post by: Kyrislian on February 08, 2009, 09:19:44 AM
I've installed the chat and the integration and everything works beautifully. The one problem I have though is that normal users cannot access the chatroom. What I want it to do is to only allow registered users, but not to guests.

Help please? ^^
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 08, 2009, 09:22:55 AM
sorry 2.2.1 version is just bad coding and not fixing any problem and just make new ones
sorry again
i just made a new version with some new feature and also bug in wireless mode fixed

i think it is a bad news for you ohioreef because lots of codes changed

added feature:
shoutbox on all pages feature added.
open chat in a new pop up window.

@Kyrislian
first if you are using 2.2.1 use newer version 2.3
and you should give them chat access from permission
Title: Re: AjaxChat Integration
Post by: Kyrislian on February 08, 2009, 09:40:40 AM
Thanks for the speedy reply, Hunter! I totally forgot about the permissions bit XD
Title: Re: AjaxChat Integration
Post by: ttuu on February 08, 2009, 10:25:49 AM
i want update version from 2.2 to 2.3
u can tel me which file(s) change from 2.2 to 2.3
Title: Re: AjaxChat Integration
Post by: DakOon on February 08, 2009, 10:37:24 AM
Thanks
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 08, 2009, 10:49:36 AM
Just installed 2.3 and when I have check "check for ShoutBox on any page or uncheck for only in index page" it does show the shoutbox on all pages as designed.

But when I uncheck it the shoutbox does not appear anywhere?

Any ideas?
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 08, 2009, 10:57:04 AM
@ttuu
why you just uninstall previous version and then install the new one?

@mrtrc266
rechecked this setting on default theme did you put the code in your theme in right place?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 08, 2009, 11:08:08 AM
I have not installed on custom theme, that was happening on default theme.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 08, 2009, 11:21:14 AM
@mrtrc266
attach your index.template.php file here
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 08, 2009, 11:27:12 AM
Here you go, I have attatched my custom one too. I'm havin a hard time finding where to put the code for my custom theme cuz I dont have "// Show the menu here, according to the menu sub template."

If you could take a look I'd really appreciate it.

Thanks in advance.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 08, 2009, 11:35:55 AM
Hunter I uninstalled and reinstalled and it's working on the default theme, sorry about that. But still havin hard time with custom.

Also I still get intall errors on the Boardindex and ManagePermission and have to do the manual edits.

Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 08, 2009, 11:39:30 AM
I put the code but I'm not sore it is in right place
if it isn't move it between those div tags above my code and the test the result
it should be after:
<div id="toolbar">',template_menu(),'</div>
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 08, 2009, 11:51:06 AM
That worked... you da man! Thank you very much!

Can't wait for RC1  ;)
Title: Re: AjaxChat Integration
Post by: qtime on February 08, 2009, 11:53:46 AM
@ .HuNTeR.
I changed the code which was posted here before, but changed it back to normal
So still not showing the total loged in chatters on the board index and see the error getchatonlineuserids() as others posted here before.
Title: Re: AjaxChat Integration
Post by: ohioreef on February 08, 2009, 12:31:39 PM
I am happy with the way it was working and I have no desire for the shoutbox. What code changes do I need to make just to get the wireless working? I would like the list of who is in the chat room, but could do without it if I had to.
Title: Re: AjaxChat Integration
Post by: Mystery? on February 08, 2009, 12:41:51 PM
I thought you said the next update was for RC1?
Title: Re: AjaxChat Integration
Post by: aibehn on February 09, 2009, 06:35:54 AM
SMF 1.1.8, ajax chat 0.8.1.2 and AjaxChat_Integration_2.3

I'm having this error:


index.php?action=packages;sa=uninstall2;package=AjaxChat_Integration_2.3.zip

8: Undefined index: enableShoutBox
Archivo: /public_html/foro/Themes/default/Packages.template.php (main_above sub template - eval?)
Línea: 349



And more errors like this:


8: Undefined index: chat
8: Undefined index: chat_no_user
...


Some suggestions?
Title: Re: AjaxChat Integration
Post by: ttuu on February 09, 2009, 07:24:19 AM
Quote from: .HuNTeR. on February 08, 2009, 10:57:04 AM
@ttuu
why you just uninstall previous version and then install the new one?

Because I did that a few design changes and settings that I'd rather not start all over.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 09, 2009, 09:58:45 AM
@qtime
attach these files here:
BoardIndex.php
BoardIndex.template.php
index.template.php
and let me look at them
-------------------------------------------------------------
@ohioreef
just replace this code in boardindex.php

$userIDs = array_unique(getChatOnlineUserIDs());
$context['chat_links'] = array();
if (count($userIDs) > 0){
$query = "SELECT mem.ID_MEMBER, mem.realName, mem.ID_GROUP, mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON
(mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))WHERE ";
foreach ($userIDs as $ID)
$query .= 'ID_MEMBER = '. $ID . ' OR ';
//remove the last OR
$query = substr($query, 0, strlen($query)-3);

$result = db_query($query, __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result))
{
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
if($row['onlineColor'] != ""){
$link.= '" style="color: ' . $row['onlineColor'];
}
$link.= '">' . $row['realName'] . '</a>';
    array_push($context['chat_links'], $link);
}
mysql_free_result($result);
}
//set the flag true for home page
$context['chat_isHome'] = true;

with this:

if (!WIRELESS){
$userIDs = array_unique(getChatOnlineUserIDs());
$context['chat_links'] = array();
if (count($userIDs) > 0){
$query = "SELECT mem.ID_MEMBER, mem.realName, mem.ID_GROUP, mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON
(mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))WHERE ";
foreach ($userIDs as $ID)
$query .= 'ID_MEMBER = '. $ID . ' OR ';
//remove the last OR
$query = substr($query, 0, strlen($query)-3);

$result = db_query($query, __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result))
{
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
if($row['onlineColor'] != ""){
$link.= '" style="color: ' . $row['onlineColor'];
}
$link.= '">' . $row['realName'] . '</a>';
    array_push($context['chat_links'], $link);
}
mysql_free_result($result);
}
//set the flag true for home page
$context['chat_isHome'] = true;
}


the users list showing below of online forum users
you want to show that any other place?
-------------------------------------------------------------
@Mystery?
yes It should be but this is just a critical fix
and I wrote these new codes before and want to public it with smf 2 compatible version
but it seems smf 2 need more work
because of changes made in smf 2 some parts are harder to coded.
but I'm working on it.
-------------------------------------------------------------
@aibehn
I think your forum languages isn't english and you didn't add these strings to your language files?
-------------------------------------------------------------
@ttuu
then you must compare new mod with previous version and make changes manually
Title: Re: AjaxChat Integration
Post by: raven85 on February 09, 2009, 10:39:49 AM
Im using 1.1.8 and a custom skin and when I go to the forum index I received this error..

Fatal error: Call to undefined function getchatonlineuserids() in /home/xboxunio/domains/xxxxx/public_html/forum/Sources/BoardIndex.php on line 346

and when i do the installed.php I received this error too.


Warning: require(/home/xboxunio/domains/xxxx/public_html/lib/custom.php) [function.require]: failed to open stream: No such file or directory in /home/xboxunio/domains/xxxxx/public_html/forum/chat/install.php on line 17

Fatal error: require() [function.require]: Failed opening required '/home/xboxunio/domains/xxxxx/public_html/lib/custom.php' (include_path='.:/usr/local/lib/php') in /home/xboxunio/domains/xxxxx/public_html/forum/chat/install.php on line 17
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 09, 2009, 12:25:01 PM
@raven85
are you have same problem in default theme?
if no you should edit your themes boardindex.template.php and index.template.php files manually
Title: Re: AjaxChat Integration
Post by: raven85 on February 09, 2009, 01:40:55 PM
Quote from: .HuNTeR. on February 09, 2009, 12:25:01 PM
@raven85
are you have same problem in default theme?
if no you should edit your themes boardindex.template.php and index.template.php files manually

The default theme is fine. The custom skin im using doesn't have boardindex.template.php. What should I do?
Title: Re: AjaxChat Integration
Post by: ohioreef on February 09, 2009, 02:38:34 PM
Quote from: .HuNTeR. on February 09, 2009, 09:58:45 AM
@ohioreef
just replace this code in boardindex.php

That works perfectly!! Thanks!!
Title: Re: AjaxChat Integration
Post by: raven85 on February 09, 2009, 03:34:27 PM
The only error im getting is..

Fatal error: Call to undefined function getchatonlineuserids() in /home/xboxunio/domains/xxxxx/public_html/forum/Sources/BoardIndex.php on line 346

How do i fix it?
Title: Re: AjaxChat Integration
Post by: ZuX on February 09, 2009, 03:58:15 PM
hy all, i have 1.1.7. and when install all, i got this message
Fatal error: Call to undefined function getchatonlineuserids() in /home/nikola84/public_html/*****.org/Sources/BoardIndex.php on line 347

what is the problem?

please quick answer
thanks
Title: Re: AjaxChat Integration
Post by: MarineSniper on February 09, 2009, 04:06:44 PM
I am needing some serious help. I have installed smf and without any problems and i have my site up and running smoothly. But i have tried and tried to install this mod and cannot. I have uploaded the mod to the packages folder and in my admin panel when i go to the packages it will not upload it tells me one of the files in the folder is not writeable well i checked it and everything is good and then when it try to install it again i get fatal errors. I am so stupid about coding i have looked all through this thread and cannot figure it. i have even tried to install other mods and the same problem i just want a chat on my forum. Anyone have any ideas that will help me out.
Title: Re: AjaxChat Integration
Post by: qtime on February 09, 2009, 04:24:58 PM
Quote from: MarineSniper on February 09, 2009, 04:06:44 PM
I am needing some serious help. I have installed smf and without any problems and i have my site up and running smoothly. But i have tried and tried to install this mod and cannot. I have uploaded the mod to the packages folder and in my admin panel when i go to the packages it will not upload it tells me one of the files in the folder is not writeable well i checked it and everything is good and then when it try to install it again i get fatal errors. I am so stupid about coding i have looked all through this thread and cannot figure it. i have even tried to install other mods and the same problem i just want a chat on my forum. Anyone have any ideas that will help me out.
do you have chown all files to the correct user? For example apache?
Title: Re: AjaxChat Integration
Post by: MarineSniper on February 09, 2009, 06:58:21 PM
Yes i have chmod all the files in the packages folder even the package folder itself. Still nothing.

Now here is the step that i am using i have uploaded the file to the server via ftp client, and chmod the files and double checked it placed the mod in the packages folder.

and then in my admin window i get my ftp server information enter it and hit the button...

then i get this big window on my admin control panel that says this..

shoutBox v1.2.1
By Hack's Park

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

Link to Mod | Comment On This Mod

--------------------------------------------------------------------------------
Introduction

Note (makito): For the past days I'd been receiving some reports about the smilies's more link being bugged. I didn't test it actually, but now is completely fixed. I'm sorry for that.

Bassed on PHP, Javascript (Ajax/xml) and XHTML, this is an SMF modification that allows you to have a shoutBox or message board, like a chat, that was designed in order to make minimal modifications to the SMF original script.

Features

ShoutBox

users can use command /url
users can use command /me
admins and moderators can use /clear to clear list of shouts
font face selection
background, border and text color selection
font styles like "bold, italic, underline"

Moderation Panel

edit messages that contain commands as /url or /me
edit and delete messages
delete all messages with one click
add and remove ban status for users

Administration Panel

edit border, background and text color of the input message
modify time of reload of the list of shouts
choose if the usernames will be printed as links
change div's class style that contains usernames and messages
add or remove font faces
edit time format and text time color
add or remove sections, where the shoutBox is displayed "?action="
modify size and number of messages to display values
add or remove group permissions for the shoutBox

Installation

Simply install the package to add this modification on the Default theme.

This mod will work for SMF "1.1.0" to "1.1.9".

Manual Edit

A Manual edit will be required for non-default themes to add the modification. Here you have a manual.

Look for the instructions in our page: www.hackspark.com

Languages

You can find other languages in our page, other languages are welcome and will be published in the thread.

Support

Please use the modification thread for support of this modification.
You can look for support also in our page, there you will find more scripts, and new versions if apply.

Credits

Developed by
Marco Florian Gonzales [makito]

Install pack
English language
Thanks Juan Carlos Sierra [JCS]

Thanks
OtaKumi - AniDreamZ anime y manga de fans para fans
Mundo SonyEricson todo para tu celular

Changelog

Previus versions
shoutBox v1.2
shoutBox v1.1
shoutBox v1.0.1
shoutBox v1.0
shoutBox v1.0 RC 1
shoutBox Beta

and... what's new?

smilies's more link problem is fixed
some corrections were made in the source code, nothing important

(cc) Hack's Park | Complete details | License


Install Actions
Installations actions for "HacksPark shoutBox":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/Subs.php Test successful
3. Execute Modification ./Themes/default/index.template.php Test successful
4. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
5. Extract File ./Sources/HP_shoutBox.php 
6. Extract File ./Sources/HP_shoutBox_Manage.php 
7. Extract File ./Sources/HP_shoutBox_Subs.php 
8. Extract File ./Themes/default/HP_colorPicker.js 
9. Extract File ./Themes/default/HP_shoutBox.js 
10. Extract File ./Themes/default/HP_shoutBox_Mod.js 
11. Extract File ./Themes/default/HP_shoutBox.template.php 
12. Extract File ./Themes/default/HP_shoutBox_Manage.template.php 
13. Extract File ./Themes/default/images/del.gif 
14. Extract File ./Themes/default/images/edit.gif 
15. Extract File ./Themes/default/images/loading.gif 
16. Extract File ./Themes/default/images/bbc/bgcolor.gif 
17. Extract File ./Themes/default/images/bbc/caretos.gif 
18. Extract File ./Themes/default/images/bbc/clean.gif 
19. Extract File ./Themes/default/images/bbc/fontcolor.gif 
20. Extract File ./Themes/default/images/bbc/nocolor.gif 
21. Extract File ./Themes/default/languages/HP_shoutBox.english.php 
22. Extract File ./Themes/default/languages/HP_shoutBox_Manage.english.php 
23. Execute Code HP_shoutBox_Install.php


and when i hit install i get this..

Fatal error: require() [function.require]: Failed opening required '/home/a2646840/public_html/forum/Packages/temp/HP_shoutBox_Install.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a2646840/public_html/forum/Sources/Packages.php on line 556


what does this mean.
Title: Re: AjaxChat Integration
Post by: syntaxera on February 09, 2009, 07:24:56 PM
I am having trouble getting this mod to work...

I have installed the chat and it is working perfect  www.DeadTix.info/chat (http://www.deadtix.info/chat)


But when I put the MOD in I get this error:

QuoteFatal error: Call to undefined function getChatOnlineUserIDs() in /home/content/s/y/n/syntaxera/html/DeadTix/Sources/BoardIndex.php on line 347


Why is there no "FIND"  then "PASTE" code for custom templates?
I am assuming that it is adding code to the source folder and NOT the themes folder,
But WHAT CODE DO I ADD TO THE CUSTOM THEME  to get this to work?

I feel like I am very close to getting this to work...  but am just missing the right code to put into  index.template ?   

PLEASE HELP ME!!! ahhhhhhh

My Email:  [email protected]  
Title: Re: AjaxChat Integration
Post by: raven85 on February 09, 2009, 07:34:59 PM
Yeah me too man.
Title: Re: AjaxChat Integration
Post by: syntaxera on February 09, 2009, 07:41:47 PM
I can't wait to add this mod to my sites...

Please help us out!!!!!!!!!!!!
Title: Re: AjaxChat Integration
Post by: raven85 on February 09, 2009, 07:45:33 PM
Quote from: syntaxera on February 09, 2009, 07:41:47 PM
I can't wait to add this mod to my sites...

Please help us out!!!!!!!!!!!!

Yeah me too... I really need this mod very badly.
Title: Re: AjaxChat Integration
Post by: syntaxera on February 09, 2009, 08:43:59 PM
Help us Hunter... help help us Hunter.... 
Help us Hunter... help help us Hunter.... 

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fblogs.guardian.co.uk%2Fbooks%2FhunterS460.jpg&hash=6a0f3c95e0d3e597bf009925589e90f1d01f5e77)
Title: Re: AjaxChat Integration
Post by: syntaxera on February 09, 2009, 09:13:21 PM
60 Phish Fans await this MOD  :)

www.PhishTix.info (http://www.phishtix.info)
Title: Re: AjaxChat Integration
Post by: Blinker on February 09, 2009, 09:21:35 PM
@MarineSniper - that's a different mod. You're using the Hack's Park shoutbox. This thread (and mod) are for AJAXChat.
Title: Re: AjaxChat Integration
Post by: MarineSniper on February 10, 2009, 04:56:51 AM
YEah i understand that now. but i am having the issue with that mod too. Hell i am having issues with every mod i cannot install nothing
Title: Re: AjaxChat Integration
Post by: Kyrislian on February 10, 2009, 08:58:05 AM
I've got a few questions about the AjaxChat, and I'd LOVE it if someone could help me?

I want to add a certain number of channels, all titled. But how do I go about doing this? And how can I change "Ajax Chat" into a title of my own?
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 10, 2009, 09:00:53 AM
@syntaxera,raven85
I tried to make a manual on installing this mod on other themes but it's impossible.
if you have a little php skills you can do it your self with reading the mod codes.
but now the only thing I can say is attach your boardinde.tempalte.php and index.template.php file here and let me or any other users help you do the edits

@MarineSniper
if you can't install any modes start a topic here (http://www.simplemachines.org/community/index.php?board=9.0)
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 10, 2009, 09:12:45 AM
@Kyrislian
this feature doesn't available now
but after next version I will check this
because this is a popular feature ;)
@ZuX
you should edit your boardinde.tempalte.php and index.template.php located in themes/yourtheme/
you attached wrong file
Title: Re: AjaxChat Integration
Post by: munty on February 10, 2009, 10:01:36 AM
i would like to be able to restrict what channels are there, ideally i only want the "public" channel and then the private one.

I dont want to have my forums listed as channels, tried to look at the code on the chat itself, and it appears you "cant" change if you are integrating

is this correct?

hope not!


keep up the good work  :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 10, 2009, 10:51:14 AM
Quote from: munty on February 10, 2009, 10:01:36 AM
i would like to be able to restrict what channels are there, ideally i only want the "public" channel and then the private one.

I dont want to have my forums listed as channels, tried to look at the code on the chat itself, and it appears you "cant" change if you are integrating

is this correct?

hope not!


keep up the good work  :D

you will find the settings here /public_html/chat/lib/config.php and find

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;




In addition If you want to have a private channel you can create a board visible to Admin, moderator (or whoever) ONLY. You would then replace that code with something like this. Of course you would change your board number array(33,) and you could add channels by seperating with a comma.

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(33,);

Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 10, 2009, 11:08:21 AM
Quote from: Kyrislian on February 10, 2009, 08:58:05 AM
I've got a few questions about the AjaxChat, and I'd LOVE it if someone could help me?

I want to add a certain number of channels, all titled. But how do I go about doing this? And how can I change "Ajax Chat" into a title of my own?

This should do the trick for your Custom Channels Custom Chat Channels (http://ajax-chat.wiki.sourceforge.net/Custom+chat+channels)

"how can I change "Ajax Chat" into a title of my own?"

Found @ https://sourceforge.net

Go to chat/lib/template/ & edit the files "loggedin" & "loggedout" as follows:
Find this code:

<title>[LANG]title[/LANG]</title>  
Replace it with: 
<title>The title of your chat here</title>  
Then find: 
<h1>[LANG]title[/LANG]</h1>  
Replace with: 
<h1>The header of your chat here</h1>

If you want to place an image instead of either the title or the header, place an HTML image link between the <h1> tags. Exemple:

<h1><img src="http://www.yourdomain.com/chat_header_icon.jpg"></h1>

& upload your chat_header_icon to your server of course.
Title: Re: AjaxChat Integration
Post by: EJR on February 10, 2009, 02:23:31 PM
Having an issue intergrating chat into SMF.

I did a new install of SMF 1.1.8 today.  www.rescuetechs.com/community is the URL.  I placed the CHAT files within the install as directed. 

I then installed Ajax chat integration (tried with 2.2 and 2.3).  Now I can log into chat mand get it to work (I am the admin), but all of other members are told they do not have access?

Any thoughts?
Title: Re: AjaxChat Integration
Post by: syntaxera on February 10, 2009, 07:25:32 PM
Quote@syntaxera,raven85
I tried to make a manual on installing this mod on other themes but it's impossible.
if you have a little php skills you can do it your self with reading the mod codes.
but now the only thing I can say is attach your boardinde.tempalte.php and index.template.php file here and let me or any other users help you do the edits



The theme is called:  MultiBlue

Here is the code for:  BoardIndex.template

<?php
// Version: 1.1; BoardIndex

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

// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">'
theme_linktree(), '</td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
echo '
'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#8226;&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '
'
, ($settings['show_latest_member'] ? '<br />' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');
echo '
</td>
</tr>
</table>'
;

// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
echo '
<table border="0" width="100%" class="tborder" cellspacing="' 
, ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' '0' '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="catbg"> &nbsp;'
$txt[102], '</td>
</tr>
<tr>
<td valign="middle" align="center" height="60">'
;

// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

var foreColor, backEl, backColor;

if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;

backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;

backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}

// List all the lines of the news for display.
var smfFadeContent = new Array(
"'
implode('",
"'
$context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>
</td>
</tr>
</table>'
;
}

/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */
$first true;
foreach ($context['categories'] as $category)
{
echo '
<div style="margin-top: ' 
$first '0;' '1ex;' '' $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' '''">
<div class="catbgnew-l">
<div class="catbgnew-r">
<div class="catbgnew"  style="padding: 5px 0 0 10px;">'
;
$first false;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="'
$category['collapse_href'], '">'$category['collapse_image'], '</a>';

echo '
'
$category['link'], '
</div></div></div>'
;

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '

<table border="0" width="100%" cellspacing="0" cellpadding="5" class="bordercolor" style="margin-top: 0px;">'
;

/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td ' 
, !empty($board['children']) ? 'rowspan="2"' '' ' class="windowbg" width="6%" align="center" valign="top"><a href="'$scripturl'?action=unread;board='$board['id'], '.0">';

// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
'
$board['description'];

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;">
<span class="largetext">'
$board['posts'], '</span><br /><span class="smalltext">'$txt[21], '</span>
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;">
<span class="largetext">'
$board['topics'],'</span><br /><span class="smalltext">'$txt[330], '</span>
</td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">
'
;

    /* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>'
$txt[22], '</b>  '$txt[525], ' '$board['last_post']['member']['link'] , '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], '<a href="'$board['last_post']['href'], '"><img src="'$settings['images_url'], '/icons/last_post.gif" alt="'$txt[111], '" title="'$txt[111], '" style="float: right;" /></a><br />
'
$txt[30], ' '$board['last_post']['time'];
echo '
</span>
</td>
</tr>'
;
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();

/* Each child in each board's children has:
             id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
 {
 
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
 
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
 }
               echo 
'
     <tr>
            <td colspan="5" class="windowbg'
, !empty($settings['seperate_sticky_lock']) ? '3' '''">
               <span class="smalltext"><b>'
$txt['parent_boards'], '</b>: 'implode(', '$children), '</span>
            </td>
         </tr>'
;
            }

         }

         echo 
'
      </table>
<table style=" width: 100%;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="altbgsol">&nbsp;</td><td class="altbgarka">&nbsp;</td><td class="altbgsag">&nbsp;</td>
</tr>
</table>'
;

      }
      echo 
'
   </div>'
;
   }
   if (
$context['user']['is_logged'])
   {   echo 
'
   <table border="0" width="100%" cellspacing="0" cellpadding="5">
      <tr>
 <td align="'
, !$context['right_to_left'] ? 'center' 'center''">';

      
// Mark read button.
  $mark_read_button = array('markread' => array('text' => 452'image' => 'markread.gif''lang' => true'url' => $scripturl '?action=markasread;sa=all;sesc=' $context['session_id']));

      
// Show the mark all as read button?
      
if ($settings['show_mark_read'] && !empty($context['categories']))
            echo 
'
            <table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: -5px;">
               <tr>
                      '
template_button_strip($mark_read_button'top'), '
               </tr>
            </table>'
;
      echo 
'
         </td>
      </tr>
   </table>'
;

   } 

// Here's where the "Info Center" starts...
echo '<br />
<div class="catbgnew-l">
<div class="catbgnew-r">
<div class="catbgnew" style="padding-top: 5px; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
'
$txt[685], '
</div>
</div>
</div>

<div  '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' '''>

<div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>
<table border="0" width="100%" cellspacing="0" cellpadding="4" class="bordercolor">'
;

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=recent"><img src="'$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" /></a>
</td>
<td class="windowbg2">'
;

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>
<div class="smalltext">
'
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />
</div>'
;
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%" border="0">'
;

/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="middletext" valign="top"><b>'
$post['link'], '</b> '$txt[525], ' '$post['poster']['link'], ' ('$post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>
</tr>'
;
echo '
</table>'
;
}
echo '
</td>
</tr>'
;
}

// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=calendar"><img src="'$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">'
;

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
'
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';

// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>'
;
}


// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=stats"><img src="'$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>
<br /> ' 
$txt[659] . ': <b>&quot;' $context['latest_post']['link'] . '&quot;</b>  ( ' $context['latest_post']['time'] . ' )<br />
<a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</span>
</td>
</tr>'
;
}

// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[158], '</td>
</tr><tr>
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" />'$context['show_who'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">'
;

echo '
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];

echo ')';
}

echo $context['show_who'] ? '</a>' '''
<div class="smalltext">'
;

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
'
$txt[140], ':<br />'implode(', '$context['list_users_online']);

echo '
<br />
'
$context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' $scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.
'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>'
;

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
 echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" />'$context['allow_pm'] ? '</a>' '''
</td>
<td class="windowbg2" valign="top">
<b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>
<div class="smalltext">
'
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '
</div>
</td>
</tr>'
;
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="'
$scripturl'?action=login"><img src="'$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>'
$txt[35], ':</b><br />
<input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>'
$txt[36], ':</b><br />
<input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>'
$txt[497], ':</b><br />
<input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>'
$txt[508], ':</b><br />
<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="'
$txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>'
;
}
  echo 
'
      </table>
<table style=" width: 100%;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="altbgsol">&nbsp;</td><td class="altbgarka">&nbsp;</td><td class="altbgsag">&nbsp;</td>
</tr>
</table>'
;
echo '

</div>
</div>'
;
}
 

?>





Title: Re: AjaxChat Integration
Post by: syntaxera on February 10, 2009, 07:28:21 PM
and here is the code for:  index.template


  <?php
// Version: 1.1.5; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
'
;
echo (!empty(
$modSettings['meta_description'])) ? ' <meta name="description" content="'$modSettings['meta_description'] .'" />' '<meta name="description" content="'$context['page_title'] .'" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'  
;
echo (!empty(
$modSettings['meta_keywords'])) ? '
<meta name="keywords" content="'
$modSettings['meta_keywords'] .'" />' '';
echo (!empty(
$modSettings['meta_copyright'])) ? '
<meta name="copyright" content="'
$modSettings['meta_copyright'] .'" />' '';
echo (!empty(
$modSettings['meta_author'])) ? '
<meta name="author" content="'
$modSettings['meta_author'] .'" />' '';
echo 
'
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
{
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;

echo
'
<div id="container">
<div id="header">'
;
template_menu();

echo'
<h1>
 <span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span><br />';






// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '

<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];
// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo  
''$txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'];
echo
'<br />

'
;

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' ';
}


echo '

</h1>
   
  </div>'
;

echo'
<div id="content">'
;

// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

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

echo '
</div></div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
</div>


<td valign="middle" align="center" style="white-space: nowrap;">
<p> '
theme_copyright(), ' <br /><a href="http://www.jamtix.info" style="font-size:10px;"><img src="'.$settings['images_url'].'/mysql.gif" alt=""/></a><a href="http://www.biscotix.info" style="font-size:10px;"><img src="'.$settings['images_url'].'/php.gif" alt=""/></a><a href="http://www.deadtix.info" style="font-size:10px;"><img src="'.$settings['images_url'].'/xhtml.gif" alt=""/></a><a href="http://www.phishtix.info/" style="font-size:10px;"><img src="'.$settings['images_url'].'/css.gif" alt=""/></a><br />
<font color="white"></font> <a href="http://www.smfgrup.com" target="_blank" title="smf, smfdestek, smf destek"></a><br />
</p>
<p class="credit"><a href="http://www.dead.net/" target="_blank"><img src="'
$settings['images_url'], '/fc.png" alt="Phish Official Winter and Summer Tour Dates at www.Phish.com" width="150" height="50" style="margin: 5px 16px;"  /></a></p>
</td>

</tr>
</table>'
;


// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3435913-28");
pageTracker._trackPageview();
</script>

</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Show the start of the tab section.

echo '
           <ul id="mainmenu">'
;

// Show the [home] button.
echo '<li><a' $current_action=='home' ' class="active"' '' ' href="'$scripturl'"><span>' $txt[103] , '</span></a></li>';

// Show the [help] button.
 echo '<li><a' $current_action=='help' ' class="active"' '' ' href="'$scripturl'?action=help"><span>' $txt[119] , '</span></a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '<li><a' $current_action=='search' ' class="active"' '' ' href="'$scripturl'?action=search"><span>' $txt[182] , '</span></a></li>';

// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' $current_action=='calendar' ' class="active"' '' ' href="'$scripturl'?action=calendar"><span>' $txt['calendar24'] , '</span></a></li>'

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li><a' $current_action=='admin' ' class="active"' '' ' href="'$scripturl'?action=admin"><span>' $txt[2] , '</span></a></li>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a' $current_action=='profile' ' class="active"' '' ' href="'$scripturl'?action=profile"><span>' $txt[79] , '</span></a></li>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a' $current_action=='pm' ' class="active"' '' ' href="'$scripturl'?action=pm"><span>' $txt['pm_short'] , '</span></a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo '<li><a ' $current_action=='mlist' ' class="active"' '' ' href="'$scripturl'?action=mlist"><span>' $txt[331] , '</span></a></li>';

// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li><a ' $current_action=='login' ' class="active"' '' ' href="'$scripturl'?action=login"><span>' $txt[34] , '</span></a></li>';

// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li><a ' $current_action=='register' ' class="active"' '' ' href="'$scripturl'?action=register"><span>' $txt[97] , '</span></a></li>';

// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a ' $current_action=='logout' ' class="active"' '' 'href="'$scripturl'?action=logout;sesc='$context['session_id'], '"><span>' $txt[108] , '</span></a></li>';

echo '
</ul>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>
   





Hunter... thanks again for trying to help.  I am VERY EXCITED about this mod.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 10, 2009, 07:29:52 PM
Quote from: EJR on February 10, 2009, 02:23:31 PM
Having an issue intergrating chat into SMF.

I did a new install of SMF 1.1.8 today.  www.rescuetechs.com/community is the URL.  I placed the CHAT files within the install as directed. 

I then installed Ajax chat integration (tried with 2.2 and 2.3).  Now I can log into chat mand get it to work (I am the admin), but all of other members are told they do not have access?

Any thoughts?

The new version has "Permission Settings" make sure you give access to who you want to have chat access :D
Title: Re: AjaxChat Integration
Post by: fords8 on February 10, 2009, 09:59:19 PM
Sorry if this was answered already, but is .HuNTeR. going to make this mod useable for SMF 2 RC1?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 11, 2009, 12:32:00 AM
Yes, should coming very soon  :)
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 12:47:24 AM
can someone who is using this mod in a custom theme please look at the code I posted.

I would love to get this to work right...

page 19 of this post
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 11, 2009, 12:56:58 AM
Quote from: syntaxera on February 11, 2009, 12:47:24 AM
can someone who is using this mod in a custom theme please look at the code I posted.

I would love to get this to work right...

page 19 of this post

I'm messing with it right now, will post it back in a few minutes.
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 01:06:52 AM
QuoteI'm messing with it right now, will post it back in a few minutes.

YOU RULE!   Thank you SO MUCH!

very excited....
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 11, 2009, 01:18:23 AM
Ok, I'm not the greatest at this stuff but I have installed, uninstalled, reinstalled, deinstalled and whateveralled this MOD on my site atleast 100 times.

Only thing I'm not sure about on your index.template is the button portion. But give these a shot and let's see what happens.

Of course be sure to BACK UP!
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 03:06:29 AM
still no good... but we might be getting closer:

Now I get this error:

QuoteTemplate Parse Error!
There was a problem loading the /Themes/multiblue/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------


Parse error: syntax error, unexpected $end in .../Themes/multiblue/index.template.php on line 612

603:         return $ajaxChat->getShoutBoxContent();
604:     }
605:     return null;
606: }
607: 
608: function getChatOnlineUserIDs() {
609:     return ($chatInterface = getChatInterface()) ? $chatInterface->getOnlineUserIDs() : array();
610: }
611: 
612: ?>  613:
614:



either way I REALLY appreciate the help....

thanks in advance my friend  :)

Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 11, 2009, 03:26:56 AM
what's the link to the theme you're using?
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 11:48:01 AM
Multi Blue is the theme:  http://custom.simplemachines.org/themes/index.php?lemma=1347 (http://custom.simplemachines.org/themes/index.php?lemma=1347)

thanks again for your help
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 11, 2009, 01:15:48 PM
Ok I think this might be a problem with SMF 1.1.8 cuz I never had any problems on 1.1.7. It seems that 1.1.8 might be messing something up???

Installed a Fresh version of SMF 1.1.8 on a test site no problems

Installed AJAX Chat no problems.

Installed AJAX Chat Intergration no problems. Works great on default theme.

Installed a custom theme and WITHOUT doing any edits I can't get to my /test118/index.php (home) page I get a 500 Internal Error.

I installed 2 more themes and the same exact thing happens. Everything installs clean with no errors but the moment I switch themes (once again with no edits) the home page goes dead. Then switch it back to default theme and everything is ok again.

I uninstalled this MOD and everything works fine on ALL themes.

Was there a change in SMF 1.1.8 somewhere that would cause this?
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 11, 2009, 02:06:35 PM
ok use these edited files and also you need these edits for your theme
open Themes\multiblue118\style.css
add this in first line

@import url(../../chat/css/shoutbox.css);

and find:

#header h1 {
    position: absolute;
    top: 90px;

replace with:

#header h1 {
    position: absolute;
    top: 50px;


and i think you can't access to your chat and will get xml parsing error
if so then open chat/lib/config.php
find:

$config['contentType'] = '';

replace with:

$config['contentType'] = 'text/html';
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 11, 2009, 02:24:05 PM
I had no probs accessing chat.

I just did all the manual edits for the themes right now. After I do the manaul  everything works fine.

The wierd thing is though if you install this MOD the custom themes will not work at all untill you do the manual edits. You should still be able to use the theme even though the edits for the MOD aren't done.

I have done the edits for the Themes Multi Blue and dilbermc on a Fresh Install of SMF 118 with no other MODS exept this one if you want them ?
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 02:53:07 PM
very exciting...!  almost there, but still not working.

The chat pops up,  but does not work... and does not show user in the list.

here's the site: http://www.deadtix.info/index.php (http://www.deadtix.info/index.php)

user:   test
password:   test

and the chat at http://www.deadtix.info/chat  (http://www.deadtix.info/chat) of course...
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 03:30:26 PM
I even tried to re-install chat... no luck

and now it is asking you to login again before you enter the chat
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 11, 2009, 03:37:07 PM
Quote from: syntaxera on February 11, 2009, 03:30:26 PM
I even tried to re-install chat... no luck

and now it is asking you to login again before you enter the chat

Is the chat working on the default theme?

I have it going on the theme your using.

http://www.monsters-mansion.com/test118/index.php 
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 06:23:09 PM
wow... it sure is working on you site  :(

dang!  I wonder what it is at this point...   hmmm

I will test it in the default theme now...
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 06:29:40 PM
I tried loading the default theme and the site fell apart  lol

now it just reads this error

QuoteFatal error: Cannot redeclare getchatinterface() (previously declared in /home/content/s/y/n/syntaxera/html/DeadTix/Sources/Load.php(1726) : eval()'d code:730) in /home/content/s/y/n/syntaxera/html/DeadTix/Sources/Load.php(1726) : eval()'d code on line 818

ugggh
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 06:40:31 PM
I'm going to reload the board from scratch i guess :-/

See what happens...

thank god i did not do this on the main site yet
Title: Re: AjaxChat Integration
Post by: LT07 on February 11, 2009, 06:49:52 PM
I installed this mod on my forum (1.1.8) and it works fine for the default theme but any other theme just crashes (but only when you visit the home directory)

Any ideas?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 11, 2009, 06:56:42 PM
Quote from: LT07 on February 11, 2009, 06:49:52 PM
I installed this mod on my forum (1.1.8) and it works fine for the default theme but any other theme just crashes (but only when you visit the home directory)

Any ideas?

I was having the same exact problem, I had to do the manual edits for all my themes to get it to work.

http://www.simplemachines.org/community/index.php?topic=257973.msg1926709#msg1926709

http://www.simplemachines.org/community/index.php?topic=257973.msg1926854#msg1926854
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 07:01:37 PM
I'm reinstlling now...  so i can load the scripts you guys worked on fresh into the custom theme.
I figured I would get chat to work... THEN mod the custom theme...

Anything I should know before doing this?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 11, 2009, 07:07:04 PM
Quote from: syntaxera on February 11, 2009, 06:40:31 PM
I'm going to reload the board from scratch i guess :-/

See what happens...

thank god i did not do this on the main site yet

Not sure if you saw my post but I have this working perfectly on your Multi Blue Theme on a fresh install of SMF 118.

When you're done installing your theme, then AJAX Chat, then AJAX Chat Intergration and then immediately replace these 3 files in your /Themes/Multi Blue directory

You can jump in and check it out if you like.

Username: test
Password: testuser

http://www.monsters-mansion.com/test118/index.php

Attatched is the edited files for Multi Blue

BoardIndex.template
index.template
style
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 07:15:28 PM
so far... working perfect in the DEFAULT THEME  (love this mod.. gotta get it to work in custom.)

so I will hold my breath and install the custom theme and the editted files...  wish me luck  :)
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 07:51:46 PM
it was working for a second... i closed the browser and now nothing is coming up.

is that site workin for you guys?   www.DeadTix.info (http://www.deadtix.info)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 11, 2009, 07:56:48 PM
Quote from: syntaxera on February 11, 2009, 07:51:46 PM
it was working for a second... i closed the browser and now nothing is coming up.

is that site workin for you guys?   www.DeadTix.info (http://www.deadtix.info)

Yeah I've been lookin at it for the last 30 minutes waiting to see the shoutbox pop up :-) It's still up for me.
Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 08:19:34 PM
weird... wasnt loading on on IE.  Is now... looks great.

The background image for the CHAT TAB does not come up on safari and firefox...  and idea?

And how to I start the shout box?  (forgive my dumbness... can't find the options in the admin lol)

Title: Re: AjaxChat Integration
Post by: syntaxera on February 11, 2009, 08:27:31 PM
and you version of the script does not make you login to the chat when it's clicked and shows the number of users in the CHAT TAB.

I assume I am missing that in the control window as well...   lol
Or maybe I installed the wrong version of AJAZ chat.

do you the direct link to the SMF AJAX CHAT...  I am rather sure I grabbed the right one, but there must a reason behind these errors... and why it was not working when the theme was modded.

I really want to add it to www.PhishTix.info  (1000 members just this week) BUT I am freaked out to mess with it.  I would hate to see it crash and have to reload it again like the deadtix site.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 11, 2009, 08:40:05 PM
Quote from: syntaxera on February 11, 2009, 08:27:31 PM
and you version of the script does not make you login to the chat when it's clicked and shows the number of users in the CHAT TAB.

I assume I am missing that in the control window as well...   lol
Or maybe I installed the wrong version of AJAZ chat.

do you the direct link to the SMF AJAX CHAT...  I am rather sure I grabbed the right one, but there must a reason behind these errors... and why it was not working when the theme was modded.

I really want to add it to www.PhishTix.info  (1000 members just this week) BUT I am freaked out to mess with it.  I would hate to see it crash and have to reload it again like the deadtix site.

Go here and login with username: test password: testuser

http://www.monsters-mansion.com/test118/index.php
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 11, 2009, 09:26:19 PM
Quote from: mrtrc266 on February 11, 2009, 08:40:05 PM
Quote from: syntaxera on February 11, 2009, 08:27:31 PM
and you version of the script does not make you login to the chat when it's clicked and shows the number of users in the CHAT TAB.

I assume I am missing that in the control window as well...   lol
Or maybe I installed the wrong version of AJAZ chat.

do you the direct link to the SMF AJAX CHAT...  I am rather sure I grabbed the right one, but there must a reason behind these errors... and why it was not working when the theme was modded.

I really want to add it to www.PhishTix.info  (1000 members just this week) BUT I am freaked out to mess with it.  I would hate to see it crash and have to reload it again like the deadtix site.

WOOOHOOOOO Site #1 is up and running! WTG!
Title: Re: AjaxChat Integration
Post by: MarineSniper on February 11, 2009, 09:27:29 PM
Something happened to my chat.

- The Online Users box doesn't show the online users, including my administrator account

- When I type in text and hit enter or submit, the message never show up, but there is no error message.

- None of the icons work either: i.e. smilies, BBcode buttons etc.

Does anyone know if there is a way to refresh this, or some how fix it?

My site is http://mobland.comyr.com/index.php for somereason you have to be a member to access chat but chat is http://mobland.comyr.com/chat/index.php

Thanks
Title: Re: AjaxChat Integration
Post by: segvon2003 on February 11, 2009, 09:45:12 PM
I am trying to download it but it says Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM chelky_IC_20090205_023412.ajax_chat_online ORDER BY userName; Error-Report: Table 'chelky_IC_20090205_023412.ajax_chat_online' doesn't exist Error-Code: 1146


when I go to the chat/index.php
Title: Re: AjaxChat Integration
Post by: MarineSniper on February 11, 2009, 09:50:57 PM
ummm i know it does not work in firefox that i have not figured out at all but i am attaching a picture of the chat i cannot type or do anything no one can. i have uninstalled the mod and deleted the chat in the server and re uploaded the chat to the server ran the install.php. and then re added the mod and applied it but still nothing
Title: Re: AjaxChat Integration
Post by: segvon2003 on February 11, 2009, 09:56:32 PM
Thank You
Title: Re: AjaxChat Integration
Post by: MarineSniper on February 11, 2009, 10:13:23 PM
well now i have tried 2 more browsers google chrome and firefox and i get all kinds of errors when i log into my site and then go to my chat. chat box comes up in ie 7 but you cannot type see users or anything

Title: Re: AjaxChat Integration
Post by: MarineSniper on February 12, 2009, 10:30:32 AM
Okay i did a complete fresh install and viola the chat worked. but then when i went into my admin panel and made new boards the chat stopped working it will load up but you cannot type anything or do nothing anyone have any ideas.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 12, 2009, 11:00:42 AM
Quote from: MarineSniper on February 12, 2009, 10:30:32 AM
Okay i did a complete fresh install and viola the chat worked. but then when i went into my admin panel and made new boards the chat stopped working it will load up but you cannot type anything or do nothing anyone have any ideas.

If you really don't need or want all you boards as channels, you can try this an see if that works.

http://www.simplemachines.org/community/index.php?topic=257973.msg1924652#msg1924652
Title: Re: AjaxChat Integration
Post by: MarineSniper on February 12, 2009, 11:05:28 AM
you will find the settings here /public_html/chat/lib/config.php and find


// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;

okay what do i need to change in that section or is that the way it should look to just have the public channel because that is the only channel that i need
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 12, 2009, 12:22:19 PM
@ MarineSniper

you will find the settings here /public_html/chat/lib/config.php and find

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;




You would then replace that code with something like this. Of course you would change your board number to what board you want to use array(33,) and you could add channels/boards by seperating with a comma.
This is an example of mine.
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(33,);

Title: Re: AjaxChat Integration
Post by: MarineSniper on February 12, 2009, 12:36:43 PM
okay i am going to change it to array(0,) that is what my default public board is i am installing a clean version of smf with new database right now and then i am going to create all my boards and then install the chat script and then the mod i hope it works this time
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 12, 2009, 12:48:47 PM
@LT07
you should do the edits in other themes manually
crashing in other themes (that doesn't have this mod) will fixed in next version

@segvon2003
this bug is in chat script but if you install this mod will be fixed and you can use the chat

to all of those waiting next release of this mod
i found a bug in chat access permission and after fixing that mod ready to release

and mrtrc266 thank you for your help
your help let me to spend more time in coding
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 12, 2009, 12:57:01 PM
Quote from: .HuNTeR. on February 12, 2009, 12:48:47 PM
and mrtrc266 thank you for your help
your help let me to spend more time in coding

NP at all, I have no idea what I'm doing but this is fun, I got 2 sites up and running last night  :D

I'm working on something really cool that you might wanna check out for future features. I got a PopUp smiley box going in the Chat Room and ShoutBox :D

You can check it out here if ya like

http://monsters-mansion.com

Username: test
Password: testuser
Title: Re: AjaxChat Integration
Post by: Jazman on February 12, 2009, 01:34:41 PM
Well, I figured out my previous issues with the language text, but I just noticed I'm getting this error repeatedly in my Forum Error Log.

8: Undefined index: chatPopUp


Any thoughts?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 12, 2009, 01:51:03 PM
Quote from: Jazman on February 12, 2009, 01:34:41 PM
Well, I figured out my previous issues with the language text, but I just noticed I'm getting this error repeatedly in my Forum Error Log.

8: Undefined index: chatPopUp


Any thoughts?

Goto Admin/Configuration/Features and Options/Basic Features and check "chat in popup page?" See if that helps.
Title: Re: AjaxChat Integration
Post by: MarineSniper on February 12, 2009, 02:07:24 PM
That still did not work at all. and i did a fresh install of 1.1.7 and installed the chat script created my boards and then applied the mod here is my chat room

Title: Re: AjaxChat Integration
Post by: MarineSniper on February 12, 2009, 08:49:45 PM
Anyone have any ideas i know it works other people have it but why can i not get it to work is there special server req. that i need.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 12, 2009, 09:06:35 PM
Quote from: MarineSniper on February 12, 2009, 08:49:45 PM
Anyone have any ideas i know it works other people have it but why can i not get it to work is there special server req. that i need.

I've been trying to get to your site....Looks like you're reinstalling, if that's the case as soon as your done immediately install this version of  AJAX Chat  ajax_chat-0.8.1.2_SMF.tar.gz  (https://sourceforge.net/project/downloading.php?group_id=214758&use_mirror=&filename=ajax_chat-0.8.1.2_SMF.tar.gz&45316394)

Then install this versions of the AJAX Chat Intergration MOD AjaxChat_Integration_2.3.zip  (http://custom.simplemachines.org/mods/index.php?mod=1319)

Do both of these steps before you install any other MODs or Themes, post back here when you're done.
Title: Re: AjaxChat Integration
Post by: MarineSniper on February 12, 2009, 09:51:05 PM
okay i will do that i am reinstalling the 1.1.8 smf software right now. do you have a messenger service ??? like yahoo or msn
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 12, 2009, 09:58:19 PM
Quote from: MarineSniper on February 12, 2009, 09:51:05 PM
okay i will do that i am reinstalling the 1.1.8 smf software right now. do you have a messenger service ??? like yahoo or msn

PM sent
Title: Re: AjaxChat Integration
Post by: MarineSniper on February 12, 2009, 10:59:05 PM
Man i appreciate all the work you did for me tonight my site now rocks and my members can have the chat that they deserve.

Thank You
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 12, 2009, 11:12:29 PM
Quote from: MarineSniper on February 12, 2009, 10:59:05 PM
Man i appreciate all the work you did for me tonight my site now rocks and my members can have the chat that they deserve.

Thank You

No problem at all, glad I could help you get it going  :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 13, 2009, 01:54:30 AM
Hey Hunter when you have a second can you check out my Chat Room and Shoutbox?

http://monsters-mansion.com

Username: test
Password: testuser

I have added a PopUp window for the emoticons.

In the ChatRoom it's working perfectly with a scrollable container.

In the Shoutbox I can get it to popup but I can't get them into a container, they just go straight across my forum.  I think it's a css setting but I can't figure out where.

Do you have any ideas?

Thanks in advance.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 13, 2009, 03:19:02 AM
without code I can't do much :D
Title: Re: AjaxChat Integration
Post by: munty on February 13, 2009, 03:23:46 AM
mrtrc266 - the array thing worked!  cheers... (i had missed out the , in the brackets)

now another challenge....

http://yourwebsiteaddress/forum/chat/?view=logs

is how you view the logs, any chance of getting this integrated so that it can be seen from the admin panel?

keep up the outstanding work!
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on February 13, 2009, 03:39:57 AM
2.5
February 13 2009:
compatibility with smf 2 RC1.
a bug in chat access permission fixed.
some changes to fix crashing in other themes.
Title: Re: AjaxChat Integration
Post by: heinandar on February 13, 2009, 04:07:17 AM
Quote from: mrtrc266 on February 12, 2009, 12:57:01 PM
Quote from: .HuNTeR. on February 12, 2009, 12:48:47 PM
and mrtrc266 thank you for your help
your help let me to spend more time in coding

NP at all, I have no idea what I'm doing but this is fun, I got 2 sites up and running last night  :D

I'm working on something really cool that you might wanna check out for future features. I got a PopUp smiley box going in the Chat Room and ShoutBox :D

You can check it out here if ya like

http://monsters-mansion.com

Username: test
Password: testuser

hello mrtrc

I very like your Chat smile pop up. I also want to do . Can you share your mod.

Hope the luck
Thank you
Title: Re: AjaxChat Integration
Post by: slyone on February 13, 2009, 07:58:23 AM
I just wanted to note how much I like this mod! Great job to all involved in making this mod, keep up the super great work!!

On a side note I also wanted to mention that I had a perfectly flawless installation of the whole thing using ajax_chat-0.8.1.2_SMF.tar and AjaxChat_Integration_2.5

I followed the instructions from the first post and now I have  perfectly running chat in the new 2.0RC1 version.


Thank-you
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 13, 2009, 11:20:27 AM
MAKING SMILEYS POPUP in your Chat Room and ShoutBox :D

This has been tested on AJAX Chat Intergration MOD 2.3 and 2.5

THIS WILL NOT WORK ON VERSION 3

This tweak also adds all the BBC Code Buttons and the Font Color Pallets to your ShoutBox.

These edits are AFTER the Installation on the AJAX Chat Intergration MOD.

Also, the last edit is if you want to add 60 Smileys to your chat room.

You can test it here http://www.monsters-mansion.com/test118/index.php

Username: test
Password: testuser

If you like it, here are the edits.

chat/lib/template/loggedIn.html

Find
<div id="bbCodeContainer">
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>

Replace with
<div id="bbCodeContainer">
<input type="button" onclick="document.getElementById('emoticonsContainer').style.display = (document.getElementById('emoticonsContainer').style.display != 'block' ? 'block' : 'none')" value="Insert Smiley"/>
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>


chat/css/positions.css

Find
#content #emoticonsContainer {
position:absolute;
left:20px;
bottom:57px;
padding:3px;
}

Replace with
#content #emoticonsContainer {
position:absolute;
left:20px;
bottom:57px;
padding:3px;
width:200px;
height:200px;
overflow:auto;
display:none;
}

Find
#content #emoticonsContainer img {
vertical-align:middle;
margin-bottom:2px;
}

Replace with
#content #emoticonsContainer img {
padding:3px;
vertical-align:middle;
margin-bottom:2px;
}


chat/lib/template/shoutbox.html

Find
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="[AJAX_CHAT_URL/]../Themes/default/images/collapse.gif" alt="*" style="margin-right: 5px;"  /></a>ShoutBox
</div>
<div id="ShoutBox">

Replace with
<div class="tborder" style="margin: 10px 0 10px 0;">
<table width="100%" class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<tr>
<td width="50%">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="[AJAX_CHAT_URL/]../Themes/default/images/collapse.gif" alt="*" style="margin-right: 5px;"  /></a>ShoutBox
</div>
</td>
<td width="50%" align="right">
<div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">
          <font size="1">AJAX Chat</font></a><font size="1"> &copy; <a href="https://blueimp.net">blueimp.net</a> |
          </font> <a href="http://4tmu.ir/forum/index.php"><font size="1">Integrated with SMF</font></a></div>
</td>
</tr>
</table>
<div id="ShoutBox">

Find
<table>
<tr>
<td width="49%">
<div id="ajaxChatInputFieldContainer">
<input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/>
</div>
<!—

Replace with
<table width="100%" class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<tr>
<td width="100%">
<div id="ajaxChatInputFieldContainer">
<input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" size="20"/>
<input type="button" id="submitButton" value="[LANG]messageSubmit[/LANG]" onclick="ajaxChat.sendMessage();"/>
</div>
</td>
</tr>
</table>
<table>
<tr>
<td width="60%">
<div id="bbCodeContainer">
<input type="button" onclick="document.getElementById('emoticonsContainer').style.display = (document.getElementById('emoticonsContainer').style.display != 'block' ? 'block' : 'none')" value="Insert Smiley"/>
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>
<input type="button" value="[LANG]bbCodeLabelItalic[/LANG]" title="[LANG]bbCodeTitleItalic[/LANG]" onclick="ajaxChat.insertBBCode('i');" style="font-style:italic;"/>
<input type="button" value="[LANG]bbCodeLabelUnderline[/LANG]" title="[LANG]bbCodeTitleUnderline[/LANG]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;"/>
<input type="button" value="[LANG]bbCodeLabelQuote[/LANG]" title="[LANG]bbCodeTitleQuote[/LANG]" onclick="ajaxChat.insertBBCode('quote');"/>
<input type="button" value="[LANG]bbCodeLabelCode[/LANG]" title="[LANG]bbCodeTitleCode[/LANG]" onclick="ajaxChat.insertBBCode('code');"/>
<input type="button" value="[LANG]bbCodeLabelURL[/LANG]" title="[LANG]bbCodeTitleURL[/LANG]" onclick="ajaxChat.insertBBCode('url');"/>
<input type="button" value="[LANG]bbCodeLabelImg[/LANG]" title="[LANG]bbCodeTitleImg[/LANG]" onclick="ajaxChat.insertBBCode('img');"/>
<input type="button" value="[LANG]bbCodeLabelColor[/LANG]" title="[LANG]bbCodeTitleColor[/LANG]" onclick="ajaxChat.showHide('colorCodesContainer', null);"/>
</div>
<div id="colorCodesContainer" style="display:none;" onclick="this.style.display='none'" ></div>
<!—

Find
//-->
<div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a> | <a href="http://4tmu.ir/forum/index.php">Integrated with SMF</a></div>
<script type="text/javascript">
// <![CDATA[

Replace with
//-->
<script type="text/javascript">
// <![CDATA[

Find
</script>
</td>
<td>
<div id="bbCodeContainer">
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>
<input type="button" value="[LANG]bbCodeLabelItalic[/LANG]" title="[LANG]bbCodeTitleItalic[/LANG]" onclick="ajaxChat.insertBBCode('i');" style="font-style:italic;"/>
<input type="button" value="[LANG]bbCodeLabelUnderline[/LANG]" title="[LANG]bbCodeTitleUnderline[/LANG]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;"/>
</div>
</td>
<td>
<div id="emoticonsContainer" dir="ltr"></div>

Replace with
</script>
</td>
<td width="40%">
<div id="emoticonsContainer" style="display:none;" onclick="this.style.display='none'" ></div>


chat/css/shoutbox.css

Find
#ajaxChatContent #ajaxChatInputFieldContainer #ajaxChatInputField {
width:60%;
}
#ajaxChatContent #ajaxChatCopyright {
margin-top:5px;
}

Replace with
#ajaxChatContent #ajaxChatInputFieldContainer #ajaxChatInputField {
width:45%;
}
#ajaxChatContent #ajaxChatCopyright {
margin-top:5px;
}
#bbCodeContainer {
padding:3px;
}
#colorCodesContainer {
padding:3px;
}
#colorCodesContainer a {
display:block;
float:left;
width:20px;
height:20px;
border:outset;
}
#emoticonsContainer {
padding:3px;
padding:3px;
width:95%px;
height:55px;
overflow:auto;
display:none;
}
#emoticonsContainer a {
margin-left:1px;
margin-right:1px;
}
#emoticonsContainer img {
padding:3px;
vertical-align:middle;
margin-bottom:2px;
}


The attatched zip file is over 60 Smileys. Unzip the file and upload them to chat/img/emoticons. Some will overwrite what is already there but these are better anyway :-)
You can add Smileys to the script but it's important make sure the the input code is in the same order as the image file. Also make sure that the last array DOES NOT have a comma.
Then do the following edits in the file...

chat/js/config.js

Find
// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
';)',
':P',
':D',
':|',
':O',
':?',
'8)',
'8o',
'B)',
':-)',
':-(',
':-*',
'O:-D',
'>:-D',
':o)',
':idea:',
':important:',
':help:',
':error:',
':warning:',
':favorite:'
),

Replace with
// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
':cc',
';)',
':winktongue:',
':P',
':D',
':wave:',
':sleeping:',
':whistle:',
':idea:',
':|',
':resigned:',
':O',
':err',
':grr',
'8o',
'B)',
':headphones:',
':onthephone:',
':applause:',
':money:',
':thumbsup:',
':thumbsdown:',
':undecided:',
':nervous:',
':worried:',
':scaredblue:',
':stop:',
':despair:',
':angel:',
'devilish',
':vampire:',
':blushing:',
':lustful:',
':inlove:',
':kiss:',
':flower:',
':radioactive:',
':ill:',
':tongue:',
':mean:',
':lipsrsealed:',
':bequiet:',
':pirate:',
':clown:',
':mouse:',
':bull:',
':cow:',
':pig:',
':bandaged:',
':dead:',
':biohazard:',
':creeper:',
':grab:',
':banghead:',
':lmaoslap:',
':spitcoffe:',
':lols:',
':rofl:'
),

Find
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'wink.png',
'razz.png',
'grin.png',
'plain.png',
'surprise.png',
'confused.png',
'glasses.png',
'eek.png',
'cool.png',
'smile-big.png',
'crying.png',
'kiss.png',
'angel.png',
'devilish.png',
'monkey.png',
'idea.png',
'important.png',
'help.png',
'error.png',
'warning.png',
'favorite.png'
),

Replace with
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.gif',
'sad.gif',
'cry.gif',
'wink.gif',
'winktongue.gif',
'grin.gif',
'cheesy.gif',
'wave.gif',
'sleeping.gif',
'whistle.gif',
'idea.gif',
'unhappy.gif',
'resigned.gif',
'surprised.gif',
'angry.gif',
'angry2.gif',
'eek.gif',
'cool.gif',
'headphones.gif',
'onthephone.gif',
'applause.gif',
'money.gif',
'thumbsup.gif',
'thumbsdown.gif',
'undecided.gif',
'nervous.gif',
'worried.gif',
'scaredblue.gif',
'stop.gif',
'despair.gif',
'angel.gif',
'devilish.gif',
'vampire.gif',
'blushing.gif',
'lustful.gif',
'inlove.gif',
'kiss.gif',
'flower.gif',
'radioactive.gif',
'ill.gif',
'tongue.gif',
'mean.gif',
'lipsrsealed.gif',
'bequiet.gif',
'pirate.gif',
'clown.gif',
'mouse.gif',
'bull.gif',
'cow.gif',
'pig.gif',
'bandaged.gif',
'dead.gif',
'biohazard.gif',
'creeper.gif',
'grab.gif',
'banghead.gif',
'lmaoslap.gif',
'spitcoffe.gif',
'lols.gif',
'rofl.gif'
),


Title: Re: AjaxChat Integration
Post by: vlindertje on February 13, 2009, 11:21:14 AM
I install first the ajax chat for smf.
After that i install this mod.

I use smf 2.0 rc1  (default theme)

=====
Problem 1
Now i've a strange situation:

If i write something in the shout, you can see it in the chat.
And if i write it in the chat, you see the text in the shoutbox.

This is not the intention i guess?!

====
Problem 2
Then i get some errors only in the errorlog:

8: Undefined index: anyPageShoutBox
forum/Themes/default/index.template.php
Regel: 364
======

Problem 3

8: Constant AJAX_CHAT_USER already defined
8: Constant AJAX_CHAT_ADMIN already defined
8: Constant AJAX_CHAT_CHATBOT already defined
8: Constant AJAX_CHAT_MODERATOR already defined
8: Constant AJAX_CHAT_GUEST already defined

forum/chat/lib/config.php
(line 11, 12, 13, 14, 15)

=====
Problem 4

I want only 1 channel!
But i get a list of all the channel in the chat.  All subjects on my community are one for one a channel :-\

=====


I hope some one can help me. I'm NOT an expert with php files. I understand them a little.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 13, 2009, 11:33:06 AM
@  vlindertje

Problem 3, I have no clue.

Problem 1
Yes it is designed to allow you to see that chat no matter whether you are in the shoutboxor chatroom, hence "Intergration"

Problem 2
Then i get some errors only in the errorlog:

Don't worry about the error it's only cuz you don't have this checked "check for ShoutBox on any page or uncheck for only in index page: If you want the shoutbox on ALL pages then go to Admin/Modifications/Chat and check that box. The error goes away if your do this.

I'm sure there will be a fix for that soon.

Problem 4
I want only 1 channel!

This should help.

http://www.simplemachines.org/community/index.php?topic=257973.msg1928449#msg1928449
Title: Re: AjaxChat Integration
Post by: vlindertje on February 13, 2009, 12:52:12 PM
Very thanx for the help mrtrc266 :D

Problem 4 is fix
Problem 2 i will ignore and wait still this will be fix.


I hope somebody else can help me with problem 1 and 3  (see my earlier message)
Title: Re: AjaxChat Integration
Post by: heinandar on February 13, 2009, 02:26:21 PM
Thankyou mrtrc266

I also want to Font Color PoPup. I played like smile pop up. But i can't . If you have free time, pls help me.
very very thanks for your contribution.

========================================================

Edit: I got it color popup. Thanks

:D :D :D :D :D :D
Title: Re: AjaxChat Integration
Post by: munty on February 13, 2009, 03:44:37 PM
problem 1:

texts from users showing in chat and shoutbox at the same time....  you are using only 1 program to actually run both, therefore you are going to see text in both.

my mates site they actually find this good, as the chatters are in the chat popup all the time, but the others are posting etc on the forum and chatting occasionally.
Title: Re: AjaxChat Integration
Post by: Jazman on February 13, 2009, 04:13:23 PM
Quote from: mrtrc266 on February 12, 2009, 01:51:03 PM
Quote from: Jazman on February 12, 2009, 01:34:41 PM
Well, I figured out my previous issues with the language text, but I just noticed I'm getting this error repeatedly in my Forum Error Log.

8: Undefined index: chatPopUp


Any thoughts?

Goto Admin/Configuration/Features and Options/Basic Features and check "chat in popup page?" See if that helps.

I really don't want that option enabled though. I'd rather fix the error than hide it.
Title: Re: AjaxChat Integration
Post by: vlindertje on February 13, 2009, 05:29:51 PM
Quote from: munty on February 13, 2009, 03:44:37 PM
problem 1:

texts from users showing in chat and shoutbox at the same time....  you are using only 1 program to actually run both, therefore you are going to see text in both.

my mates site they actually find this good, as the chatters are in the chat popup all the time, but the others are posting etc on the forum and chatting occasionally.

Thanx for your answer. I understand it better now.

But do you know if its possible to make a function that i can choose/switch, that the text i write in the chat don't show in the shoutbox and what i write in the shoutbox not show in the chat?
Title: Re: AjaxChat Integration
Post by: PerryM on February 13, 2009, 06:17:25 PM
Hope this module works - I sure can use it.

Installed the stand alone directory in my smf folder and ran install.php

Got the following error message at the top of each page:

Notice: Undefined index: topic in /home/m4inform/public_html/smf/Sources/Load.php on line 1472

When I hook up your module I see the "chat" tab and when I click it I get the same error message and I do see my user name in a drop down box for rooms but I can't type in anything.

Help!

I downloaded the chat program version for smf - should I have downloaded a different version?

Thanks so much.

P.S.

Just reinstalled ajax chat-0.8.1.2 SMF.tar.qz from the sourceforge.net site and moved chat into the smf folder. 

Typed in .....smf/chat/install.php and get the following error message:

Notice: Undefined index: topic in /home/m4inform/public_html/smf/Sources/Load.php on line 1472
Database tables created successfully - please delete this file (install.php).


Obviously the chat module has a lot of problems and needs to be fixed before wasting time trying to integrate it with smf - the chat room is not compatible with smf 2.0 RC1.

P.P.S.

What database is this crazy module talking about?  I see that it got into the smf mysql database and did not honor the prefix but added Ajax_chat_ of its own - someone never told the author about prefixes and what they mean?

I see where the Collation column is :utf8_bin" and smf uses "Latin1_swedish_ci" - is this the problem?  Do you have to convert to that utf8 code for the mysql?
Title: Re: AjaxChat Integration
Post by: munty on February 14, 2009, 03:49:26 AM
vlindertje
Because you are using the same program in both locations at the same time, to be honest i cant think of a way of changing apart from using 2 versions of the same program (which will probably cause issues) or to use 2 different chat programs.

1 for Shoutbox
1 for chatrooms

hth

M
Title: Re: AjaxChat Integration
Post by: vlindertje on February 14, 2009, 05:02:56 AM
Quote from: munty on February 14, 2009, 03:49:26 AM
vlindertje
Because you are using the same program in both locations at the same time, to be honest i cant think of a way of changing apart from using 2 versions of the same program (which will probably cause issues) or to use 2 different chat programs.

1 for Shoutbox
1 for chatrooms

hth

M

Okay i understand.
Then i take only the ajax chat and i will search for another shoutbox.
Title: Re: AjaxChat Integration
Post by: Propaganistas on February 14, 2009, 05:31:05 AM
The pop up option isn't working for the Reference Theme (http://custom.simplemachines.org/themes/index.php?lemma=1311)
Title: Re: AjaxChat Integration
Post by: Paracelsus on February 14, 2009, 06:56:54 AM
Quote from: .HuNTeR. on February 13, 2009, 03:39:57 AM
2.5
February 13 2009:
compatibility with smf 2 RC1.
a bug in chat access permission fixed.
some changes to fix crashing in other themes.


Working well, even in custom themes.

One question: How to make the Shoutbox activation / deactivation available to other membergroups? (because the "activate shoutbox" option is in ModSettings.php which is only available to admins)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 14, 2009, 11:01:44 AM
Quote from: heinandar on February 13, 2009, 02:26:21 PM
Thankyou mrtrc266

I also want to Font Color PoPup. I played like smile pop up. But i can't . If you have free time, pls help me.
very very thanks for your contribution.

========================================================

Edit: I got it color popup. Thanks

:D :D :D :D :D :D

Hey heinandar, can you show what you did to get the colors to PopUp in the ShoutBox? I have it working but for some reason the Color Palette  doesn't show.

Thanks in advance.
Title: Re: AjaxChat Integration
Post by: heinandar on February 14, 2009, 11:26:50 AM
Quote from: mrtrc266 on February 14, 2009, 11:01:44 AM
Quote from: heinandar on February 13, 2009, 02:26:21 PM
Thankyou mrtrc266

I also want to Font Color PoPup. I played like smile pop up. But i can't . If you have free time, pls help me.
very very thanks for your contribution.

========================================================

Edit: I got it color popup. Thanks

:D :D :D :D :D :D

Hey heinandar, can you show what you did to get the colors to PopUp in the ShoutBox? I have it working but for some reason the Color Palette  doesn't show.

Thanks in advance.


This is really easy mrtrc.

chat/css/position.css

#content #colorCodesContainer {
position:absolute;
left:500px;
bottom:57px;
padding:3px;
width:180px;
height:200px;
display:none;
}


#content #colorCodesContainer a {
display:block;
float:left;
width:10px;
height:10px;
padding:3px;
}


chat/lib/template/loggedln.html

<div id="emoticonsContainer" onclick="this.style.display='none'" ></div>
<div id="colorCodesContainer" onclick="this.style.display='none'" ></div>
        <div id="bbCodeContainer">
         <input type="button" onclick="document.getElementById('emoticonsContainer').style.display = (document.getElementById('emoticonsContainer').style.display != 'block' ? 'block' : 'none')" value="Insert Smiley"/>
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>
<input type="button" value="[LANG]bbCodeLabelItalic[/LANG]" title="[LANG]bbCodeTitleItalic[/LANG]" onclick="ajaxChat.insertBBCode('i');" style="font-style:italic;"/>
<input type="button" value="[LANG]bbCodeLabelUnderline[/LANG]" title="[LANG]bbCodeTitleUnderline[/LANG]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;"/>
<input type="button" value="[LANG]bbCodeLabelQuote[/LANG]" title="[LANG]bbCodeTitleQuote[/LANG]" onclick="ajaxChat.insertBBCode('quote');"/>
<input type="button" value="[LANG]bbCodeLabelCode[/LANG]" title="[LANG]bbCodeTitleCode[/LANG]" onclick="ajaxChat.insertBBCode('code');"/>
<input type="button" value="[LANG]bbCodeLabelURL[/LANG]" title="[LANG]bbCodeTitleURL[/LANG]" onclick="ajaxChat.insertBBCode('url');"/>
<input type="button" value="[LANG]bbCodeLabelImg[/LANG]" title="[LANG]bbCodeTitleImg[/LANG]" onclick="ajaxChat.insertBBCode('img');"/>

    <input type="button" onclick="document.getElementById('colorCodesContainer').style.display = (document.getElementById('colorCodesContainer').style.display != 'block' ? 'block' : 'none')" value="Font color"/>

</div>



from above code, you can see how i modified code.
Title: Re: AjaxChat Integration
Post by: sreisenb001 on February 14, 2009, 01:10:34 PM
where do i find this and where do i go to change it


Note that you should install the chat Script before installing this mod
you can find more information here
Title: Re: AjaxChat Integration
Post by: heinandar on February 14, 2009, 01:37:19 PM
Quote from: sreisenb001 on February 14, 2009, 01:10:34 PM
where do i find this and where do i go to change it


Note that you should install the chat Script before installing this mod
you can find more information here

you can find following link (Mod link)

http://custom.simplemachines.org/mods/index.php?mod=1319

this is chat script link . You must choose SMF link

http://sourceforge.net/project/showfiles.php?group_id=214758&package_id=258987&release_id=586239
Title: Re: AjaxChat Integration
Post by: sreisenb001 on February 14, 2009, 01:41:07 PM
thanks. i am sure I  will be back
Title: Re: AjaxChat Integration
Post by: Propaganistas on February 14, 2009, 06:07:12 PM
This mod causes many errors in my forum, all containing this:
Quote8: Undefined variable: modSettings

Any idea how to fix it?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 15, 2009, 12:23:55 AM
@ heinandar, tyvm but in you're previous post I thought you got the color palllete to PopUp in the Shoutbox, that's what I was trying to do. Sorry if I misunderstood, as soon as I figure this one out I will post back  :) I'm getting close ;)
Title: Re: AjaxChat Integration
Post by: slyone on February 15, 2009, 12:58:44 PM
ok everything was working fine.................then today this:
'ChatBot: Error: Connection status: 404'

Anybody?

still using 2RC1
Title: Re: AjaxChat Integration
Post by: PerryM on February 15, 2009, 11:43:41 PM
Is there anyone here running smf 2.0 RC1 and the chat room software for smf?

Every time I install it I always get the error:

Notice: Undefined index: topic in /home/m4inform/public_html/smf/Sources/Load.php on line 1472
Database tables created successfully - please delete this file (install.php).


Are you guys running another version of the chat room?

I install smf 2.0 RC1 and 10 seconds later install the chat room for smf and I ALWAYS get the above error.

What gives?

I can never get to the point of installing this mod since 100% of the time the chat room is broken - it doesn't work.


P.S.
I got the chat room to work - you must use the database prefix smf_ (the default) and it works fine.  This is a major design fault since many folks use the same mysql to handle multiple smf installations.

But at least I know why mine kept blowing up - my prefix is always smf01_ for installation #1, etc.

P.P.S.
I have a smf installation that I would like this module working with Ajax Chat but have the prefix smf01 - any ideas on how to make it work?

Thanks,
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 16, 2009, 11:17:29 AM
My previous post has been Modified. Here you can add a PopUp Smiley Box in your ChatRoom and ShoutBox. Adds some more BBCode Buttons to the ShoutBox and adds the Font Color Pallete to your Shoutbox.

If you like there are also 60 Smileys with the code edits. Just do the edits, upload the images and you're all set. Have Fun!!! ;)

http://www.simplemachines.org/community/index.php?topic=257973.msg1930049#msg1930049
Title: Moderator privileges?
Post by: PerryM on February 16, 2009, 12:44:09 PM
Now that I'm up and running I'm looking at modification needed to make mysql prefix work - I believe I can modify the .php files to do this.

However, is there an easier way to make a user the Moderator of the AjaxChat than to modify .php files?

Thanks,
Title: Re: Moderator privileges?
Post by: mrtrc266 on February 17, 2009, 12:29:15 AM
Quote from: PerryM on February 16, 2009, 12:44:09 PM
Now that I'm up and running I'm looking at modification needed to make mysql prefix work - I believe I can modify the .php files to do this.

However, is there an easier way to make a user the Moderator of the AjaxChat than to modify .php files?

Thanks,

I saw in your previous post that you had to change the SQL Prefix??? That's bizarre, I've installed AJAX Chat MANY times and I've never had to mess with the prefixes. To my knowledge there are only a few AJAX Chat SQL tables that all start with ajax_chat_

By default the Admin and Moderators of your forum are also Moderators of the AJAX Chat Room. But if you'd like to make custom Moderators then this might help.

http://ajax-chat.wiki.sourceforge.net/Custom+moderators+and+admins

Hope that helps
Title: Re: AjaxChat Integration
Post by: hayley2007 on February 17, 2009, 08:35:14 AM
Hi ive just found out about this, it looks amazing, but i have a problem, something is conflicting it. Any help appreciated.

1. My current installed and in use mods are:

1.  Twitter Field  1.0    [ Uninstall ]  [ List Files ]  [ Delete ]
4. Order Stickied Topics 1.01 [ Uninstall ] [ List Files ] [ Delete ]
5. Hide Tag 1.7.1 [ List Files ] [ Delete ]
6. Display Location on posts 1.0 [ Uninstall ] [ List Files ] [ Delete ]
7. SMF Gallery Lite 1.9.4 [ Uninstall ] [ List Files ] [ Delete ]
8. MCLegendII.2 3.0 [ Uninstall ] [ List Files ] [ Delete ]
9. Member Color Link 3.0.5a [ List Files ] [ Delete ]
10. BK-SMF Sub-Board 1.5 [ Uninstall ] [ List Files ] [ Delete ]
11. Redirection Boards 2.01 [ Uninstall ] [ List Files ] [ Delete ]
12. SMF 1.0.16 / 1.1.8 Update 1.0 [ Uninstall ] [ List Files ] [ Delete ]
13. Recent Topics On Board Index 1.01 [ Uninstall ] [ List Files ] [ Delete ]
14. Aeva ~ Auto-Embed Video & Audio 5.2.52 [ Uninstall ] [ List Files ] [ Delete ]
15. VisualWarning 1.42 [ Uninstall ] [ List Files ] [ Delete ]
16. Avatar Under Membergroups Rank 1.3.KD [ Uninstall ] [ List Files ] [ Delete ]


I get an error in "managepermissions" when trying to install the Integration. Any clue as to what is stopping it?


2nd Q. A small error as im using the chat at this moment to test (without the integration) and im getting this error in the chat every few minutes "ChatBot: Error: Connection status: 0" but it still works fine by the looks of it.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 17, 2009, 08:49:42 AM
@ hayley2007

You can use a proceed with the install and then use a Package Parser  (http://resourcez.biz/PackageParser) to do the manual edit to the ManagePermissions.php file.

Of couse be sure to back up

Hope this helps

Not sure about the connection error
Title: Re: AjaxChat Integration
Post by: hayley2007 on February 17, 2009, 09:12:22 AM
ok then il look into it, thank you for a quick response.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 17, 2009, 09:35:54 AM
Quote from: hayley2007 on February 17, 2009, 09:12:22 AM
ok then il look into it, thank you for a quick response.

No problem, if you have any problems or need help post back here and attach your ManagePermissions.php
Title: Re: AjaxChat Integration
Post by: teshin on February 17, 2009, 10:10:21 AM
Hi there,

I'm quite the newbie.  I'm trying to install ajax chat and when i run the install.php I get the following:

Notice: Undefined index: SCRIPT_FILENAME in D:\inetpub\wwwroot\windhorsezen.org\html\portal\chat\install.php on line 14

Warning: main(/lib/custom.php): failed to open stream: No such file or directory in D:\inetpub\wwwroot\windhorsezen.org\html\portal\chat\install.php on line 17

Fatal error: main(): Failed opening required '/lib/custom.php' (include_path='.;c:\php4\pear') in D:\inetpub\wwwroot\windhorsezen.org\html\portal\chat\install.php on line 17

Any help would be appreciated.

Thanks
Title: Re: AjaxChat Integration
Post by: PipeRain on February 17, 2009, 02:44:58 PM
I am getting a TON of this error in my error log:

Quote8: Undefined index: enableShoutBox

File: /home/content/*/*/*/********/html/reboot/forum/Themes/default/Packages.template.php (eval?)
Line: 360

I do not have the shoutbox enabled in the control panel for this mod.

I am running SMF 2.0 RC1 and have the following mods installed:

Display Location on posts   1.0   
Share this topic SMF Mod   1.1
Notify Modification Last Post   1.1
Search Focus Dropdown   1.1
Go Up & Go Down   1.1
Reflection Avatar   1.1
MessagePreviewOnHover   1.7
SMF Staff Page   1.6
AjaxChat Integration   2.5

Any help or insight would appreciated!
Title: Re: AjaxChat Integration
Post by: PerryM on February 17, 2009, 04:16:07 PM
Quote from: PipeRain on February 17, 2009, 02:44:58 PM
I am getting a TON of this error in my error log:

Quote8: Undefined index: enableShoutBox

File: /home/content/*/*/*/********/html/reboot/forum/Themes/default/Packages.template.php (eval?)
Line: 360

I do not have the shoutbox enabled in the control panel for this mod.

I am running SMF 2.0 RC1 and have the following mods installed:

Display Location on posts   1.0   
Share this topic SMF Mod   1.1
Notify Modification Last Post   1.1
Search Focus Dropdown   1.1
Go Up & Go Down   1.1
Reflection Avatar   1.1
MessagePreviewOnHover   1.7
SMF Staff Page   1.6
AjaxChat Integration   2.5

Any help or insight would appreciated!

Sometimes you need to un-install the mods (in the exact same order as the Install Mod screen) and then try to install a problem mod.  Many times it will install just fine - then re-install the other mods.

Just a suggestion...
Title: Re: AjaxChat Integration
Post by: EagleHawk on February 18, 2009, 05:16:31 AM
Hello
I would be glad if you would explain me in detail how to install both chat and AjaxChat Integration.
Title: Re: AjaxChat Integration
Post by: munty on February 18, 2009, 05:36:43 AM
eaglehawk,

Got to the topic page of this thread, there are detailed instructions on there...

in a nutshell, download the smf version of ajaxchat and install that
then download and install this integration mod
tick some boxes under server features...
and its running...!
Title: Re: AjaxChat Integration
Post by: munty on February 18, 2009, 05:37:31 AM
anyway to remove the sound???


drives me batty when i want to listen to my music at the same time...
Title: Re: AjaxChat Integration
Post by: herohenson on February 18, 2009, 10:08:22 AM
can any one help me i want to put the chat in my front page forum at the upper center, how can i do this im bit newbie in this kind of work.. i already installed chatroom in www.mysite.com/forum/chat any help? want to put this chatroom in uppercenter
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 18, 2009, 10:44:27 AM
Quote from: herohenson on February 18, 2009, 10:08:22 AM
can any one help me i want to put the chat in my front page forum at the upper center, how can i do this im bit newbie in this kind of work.. i already installed chatroom in www.mysite.com/forum/chat any help? want to put this chatroom in uppercenter

Did you install this MOD yet? This puts a shoubox (intergrated with your chat room) in the upper center portion of your forum.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 18, 2009, 10:55:23 AM
Quote from: munty on February 18, 2009, 05:37:31 AM
anyway to remove the sound???


drives me batty when i want to listen to my music at the same time...

You can play around with these setting here in.....

/chat/js/config.js

// Defines if sounds are played:
audio: true,
// Defines the sound volume (0.0 = mute, 1.0 = max):
audioVolume: 1.0,
Title: Re: AjaxChat Integration
Post by: munty on February 18, 2009, 11:22:57 AM
mrtrc

star as always!

thanks

Actually i had to change a bit more than that, but it pointed me in the right direction!


Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 18, 2009, 12:10:21 PM
Glad you got it worked out. I wasn't too sure and I can't test it cuz my sound only works half the time LOL
Title: Re: AjaxChat Integration
Post by: munty on February 18, 2009, 12:23:17 PM
i just removed all the settings for the sound files

no sound then!

:D
Title: Re: AjaxChat Integration
Post by: crypt on February 18, 2009, 02:45:11 PM
got this mod working, but it hasnt actually embedded the chat within the forum. the chat button just redirects me to chat/index.php

any ideas where i should look first for a fix? ive played with the settings for the mod but they have no affect.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 18, 2009, 08:08:11 PM
Quote from: crypt on February 18, 2009, 02:45:11 PM
got this mod working, but it hasnt actually embedded the chat within the forum. the chat button just redirects me to chat/index.php

any ideas where i should look first for a fix? ive played with the settings for the mod but they have no affect.

Do you mean the ShoutBox? If you have a custom theme you will have to do the manual edits for it to show and then enable the ShoutBox.

For SMF1.x.x Go to Admin/Features and Options and then check what features you want...

Enable the ShoutBox?   
check for ShoutBox on any page or uncheck for only in index page:   
chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?


For SMF 2 RC1 go to Admin/Modifications/Chat
Title: undefined indexs for AJAX Chat
Post by: nikljones on February 18, 2009, 08:20:08 PM
Hi there,

Just installed AJAX Chat and the integration. Everything went well...no errors etc. After installing nothing showed up in admin or permissions and the button didn't appear in the default template. In persmissions I did have a line show up with no text but one check box.

Checking the error log I see undefined index over and over with all the variables listed for chat.

I'm install the SMF version of Chat and used the package installer  to install the integration piece.

I'm running SMF 1.1.8, Simple Portal 2.1.1 and the following mods, SMF Articles, SMF Links, SMF Media Gallery.

I've checked each of the files and they all appear to match the changes that should have taken place. Don't know where else to look.

Any help appreciated.

Title: Re: undefined indexs for AJAX Chat
Post by: mrtrc266 on February 18, 2009, 08:37:57 PM
Quote from: nikljones on February 18, 2009, 08:20:08 PM
Hi there,

Just installed AJAX Chat and the integration. Everything went well...no errors etc. After installing nothing showed up in admin or permissions and the button didn't appear in the default template. In persmissions I did have a line show up with no text but one check box.

Checking the error log I see undefined index over and over with all the variables listed for chat.

I'm install the SMF version of Chat and used the package installer  to install the integration piece.

I'm running SMF 1.1.8, Simple Portal 2.1.1 and the following mods, SMF Articles, SMF Links, SMF Media Gallery.

I've checked each of the files and they all appear to match the changes that should have taken place. Don't know where else to look.

Any help appreciated.

Are you using a custom theme? If so see if your theme has it's own language folder, if it does add the language strings in there too.

Hope you get it going, if not I'll be back in a few hrs and help if I can.
Title: Re: AjaxChat Integration
Post by: nikljones on February 18, 2009, 08:49:19 PM
Thanks for the reply.

I've used the default template to install all mods so don't think that's the problem. I've also uninstalled all my mods except Simple Portal and then ran  the integration mod. No difference.

Have you heard of a conflict with Simple Portal?

Thanks
Title: Re: AjaxChat Integration
Post by: nikljones on February 18, 2009, 10:43:36 PM
Okay figured it out. MY site was set up with UTF-8. Set it to English and everything appears to be working. Now have to figure the configuration out. Thanks again for your help.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 12:23:44 AM
Quote from: nikljones on February 18, 2009, 10:43:36 PM
Okay figured it out. MY site was set up with UTF-8. Set it to English and everything appears to be working. Now have to figure the configuration out. Thanks again for your help.

Glad you got it sorted  :D
Title: Re: AjaxChat Integration
Post by: sebado on February 19, 2009, 03:56:04 PM
Hi all  :)

I've installed it, it works on the default theme, but i have a problem, my forum style is the "Dark Night" theme, so, i've tried to put the code which goes in the files:

./Themes/default/index.template.php
and
./Themes/default/BoardIndex.template.php

to my darknight/ directory and it don't works.

So, ¿what can i do to use the chat with my theme?  :(

Thanks !  ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 04:38:42 PM
Quote from: sebado on February 19, 2009, 03:56:04 PM
Hi all  :)

I've installed it, it works on the default theme, but i have a problem, my forum style is the "Dark Night" theme, so, i've tried to put the code which goes in the files:

./Themes/default/index.template.php
and
./Themes/default/BoardIndex.template.php

to my darknight/ directory and it don't works.

So, ¿what can i do to use the chat with my theme?  :(

Thanks !  ;)

What version of SMF do you have and wheres a link to your theme? I'll take a look.
Title: Re: AjaxChat Integration
Post by: sebado on February 19, 2009, 04:43:02 PM
Quote from: mrtrc266 on February 19, 2009, 04:38:42 PM

What version of SMF do you have and wheres a link to your theme? I'll take a look.

Hi. Thanks for your reply

I've the 1.1.8 SMF Version and MKPortal C1.2 rc1, but with the default theme of SMF it works :S Also i've read the description of this and i see that it have to work but i can't...

Quoteadds a shoutbox in index page.(you can disable it)
   compatible with your theme.
   Bold Italic Underline bb codes and smilies.
   collapsible.

A link to my theme or my site?? www.f1america.com.ar , and my theme http://www.simplemachines.org/community/index.php?topic=228617.0
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 04:52:42 PM
Looks like that theme is no longer available.
http://custom.simplemachines.org/themes/index.php?lemma=577

Go ahead and attach these files....

/Themes/DarkNight/BoardIndex.template.php

/Themes/DarkNight/index.template.php

/Themes/DarkNight/style.css

Title: Re: AjaxChat Integration
Post by: sebado on February 19, 2009, 05:00:44 PM
Yes, sorry, it seems to be unavailable...  Thanks for your willingness! (I'm attaching the files in this post) :)

Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 05:42:46 PM
Here you go, try these out. I just tested these on another theme and it seemed to work fine.

Let me know how it goes
Title: Re: AjaxChat Integration
Post by: blacko on February 19, 2009, 06:14:25 PM
Does anybody know how to deactivate te sounds in the shoutbox as a default for all users?


Thanks!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 06:19:04 PM
Quote from: blacko on February 19, 2009, 06:14:25 PM
Does anybody know how to deactivate te sounds in the shoutbox as a default for all users?


Thanks!

Also read the next fews posts after this...

http://www.simplemachines.org/community/index.php?topic=257973.msg1939178#msg1939178
Title: Re: AjaxChat Integration
Post by: sebado on February 19, 2009, 06:21:37 PM
Quote from: mrtrc266 on February 19, 2009, 05:42:46 PM
Here you go, try these out. I just tested these on another theme and it seemed to work fine.

Let me know how it goes

Thanks!!!!!!!! It's working now. But, some questions: for example, i can't see the "X" (delete) button, and another question that i want to implement is, put the shoutbox in the portal, not only in the forum, but i think that's some impossible... What do u think? :P

Oh, another question, is there any form to show the nickname color based on  the group of the user? And the last.. why it doesn't has sound?  :-X
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 06:25:28 PM
Quote from: sebado on February 19, 2009, 06:21:37 PM
Quote from: mrtrc266 on February 19, 2009, 05:42:46 PM
Here you go, try these out. I just tested these on another theme and it seemed to work fine.

Let me know how it goes

Thanks!!!!!!!! It's working now. But, some questions: for example, i can't see the "X" (delete) button, and another question that i want to implement is, put the shoutbox in the portal, not only in the forum, but i think that's some impossible... What do u think? :P

Oh, another question, is there any form to show the nickname color based on  the group of the user? And the last.. why it doesn't has sound?  :-X

No problem at all, glad I could help. I'm not sure about the red X, that should be there. Make sure that you have this file /chat/img/delete.png


As for the Portal, I think the only way to do that is to enable the shoutbox on all pages.
Title: Re: AjaxChat Integration
Post by: sebado on February 19, 2009, 06:30:29 PM
Quote from: mrtrc266 on February 19, 2009, 06:25:28 PM

No problem at all, glad I could help. I'm not sure about the red X, that should be there. Make sure that you have this file /chat/img/delete.png


As for the Portal, I think the only way to do that is to enable the shoutbox on all pages.

Yes, the delete.png is in that place :(

And for the shoutbox, it appears in all the pages but no in the index of the portal, i've check "check for ShoutBox on any page or uncheck for only in index page" in the Features&Options page on the administration panel.


(I've sent you a PM with 2 screenshots to show you)

It's now working!! :D But, the only question now is, how to show it in the portal homepage... see the PM
Title: Re: AjaxChat Integration
Post by: blacko on February 19, 2009, 06:34:11 PM
Thanks mrtrc266!!

Just one more:
How do i leave the shoutbox collapsed? I collapse it [-], and when page refreshes, it's expanded again :s
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 06:38:14 PM
Quote from: blacko on February 19, 2009, 06:34:11 PM
Thanks mrtrc266!!

Just one more:
How do i leave the shoutbox collapsed? I collapse it [-], and when page refreshes, it's expanded again :s

No problem.

I'm not sure leaving the shoutbox collapsed. I will play with it and see if it can be reversed where by default it's closed and then users will have to open it. But then I think the same thing will happen, it will close on every refresh.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 08:17:18 PM
@ sebado

Try this one

EDITED
Title: Re: AjaxChat Integration
Post by: sebado on February 19, 2009, 08:36:45 PM
Quote from: mrtrc266 on February 19, 2009, 08:17:18 PM
@ sebado

Try this one

Nop.. :( it doesn't work:

http://i44.tinypic.com/2l54c2.jpg
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 08:53:59 PM
Download it again and try that
Title: Re: AjaxChat Integration
Post by: sebado on February 19, 2009, 08:58:15 PM
Quote from: mrtrc266 on February 19, 2009, 08:53:59 PM
Download it again and try that

Yeah! Now it's ok, but, sorry for another time this question. Is another form to show the shoutbox like now but also in the Portal? Because the position now is perfect, but in the portal it doesn't appear :P (Obviously because are different directories), but, i don't know how to put it, what code change or some like that
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 09:05:31 PM
WOOOHOOO Glad it's where you want it.

I have no clue about how to put it on the portal page. I would post over at MK Portal and ask if anyone is willing to take on the challenge and making a script to have this show in the Portal ;)

Glad you got it goin :)
Title: Re: AjaxChat Integration
Post by: sebado on February 19, 2009, 09:07:50 PM
Okay, thank you so much for the work and the time you spent on it. See you next days! bye!! :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 09:25:55 PM
Quote from: sebado on February 19, 2009, 09:07:50 PM
Okay, thank you so much for the work and the time you spent on it. See you next days! bye!! :)


No problem at all. I use Simple Portal and when I have the ShoutBox enabled on ALL pages it shows on my Portal too.

It's pretty cool if you haven't tried it....

http://www.simpleportal.net/
Title: Re: AjaxChat Integration
Post by: sebado on February 19, 2009, 09:39:52 PM
It's like tinyportal, ¿no?

by the way, it's so difficult to migrate from one site to other, because we use this site from 2008's start, so, there are too much posts and information to migrate them.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 10:05:12 PM
Quote from: sebado on February 19, 2009, 09:39:52 PM
It's like tinyportal, ¿no?

by the way, it's so difficult to migrate from one site to other, because we use this site from 2008's start, so, there are too much posts and information to migrate them.

Simple Portal is exaclty that "Simple." It's just a MOD so there would be no migrating just replacing one portal (home page) for another. And the ShoutBox goes in there too. You can see it here

http://monsters-mansion.com/index.php

Title: Re: AjaxChat Integration
Post by: sebado on February 19, 2009, 10:15:12 PM
Quote from: mrtrc266 on February 19, 2009, 10:05:12 PM
Simple Portal is exaclty that "Simple." It's just a MOD so there would be no migrating just replacing one portal (home page) for another. And the ShoutBox goes in there too. You can see it here

http://monsters-mansion.com/index.php

Wooha! nice! so, i have to replace the mkportal with the simpleportal you say? And leave the SMF and it'll work?? :|
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 19, 2009, 10:24:54 PM
Im gonna PM so we don't take over this thread.
Title: Re: AjaxChat Integration
Post by: EagleHawk on February 20, 2009, 04:04:53 AM
Quote from: munty on February 18, 2009, 05:36:43 AM
eaglehawk,

Got to the topic page of this thread, there are detailed instructions on there...

in a nutshell, download the smf version of ajaxchat and install that
then download and install this integration mod
tick some boxes under server features...
and its running...!

but i want to know how to install and how to tick some boxes (where to upload necessary files and what to open then), because everyone writes to install, but no one explains clearly - how?
Title: Re: AjaxChat Integration
Post by: FUBAR on February 20, 2009, 04:51:37 AM
I recently did a SMF Large Package Upgrade and overwrote all of my SMF files and ran the upgraded.php file.  Everything went successfully and I'm starting to reinstall each of my mods one by one.  Everything was going good right up until I tried to install this mod :(. 

Here's the problem when I try and apply the integration.

1.     Execute Modification     ./Sources/BoardIndex.php     Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test successful
3.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/style.css    Test successful
6.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
8.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.persian.php    Skipping file
10.    Execute Modification    ./chat/css/shoutbox.css    Test failed
11.    Execute Modification    ./chat/lib/template/shoutbox.html    Test failed
12.    Execute Modification    ./chat/lib/class/AJAXChatDataBase.php    Test failed


I haven't installed the mod yet due to the errors but when I go to the chatroom directly it still works properly. 

Can I still run this installation with these errors or will it create a problem with the database. 

The other problem is I was running AjaxChat Integration 1.2.2 so if I install manually should I install this version again or the new one?

Any help would be much appreciated.  Thanks!
Title: Re: AjaxChat Integration
Post by: munty on February 20, 2009, 05:51:46 AM
Eaglehawk,

Have you tried reading the installation instructions provided for each part you need to install?

They are self explanatory on what is required for you to do.

Have you ever installed any other modifications to your SMF?

Title: Re: AjaxChat Integration
Post by: euroro on February 20, 2009, 06:20:48 AM
I have installed AJAX on my 1.1.8 version of SMF and it workes fine.
After that, I have installed the integration using the package manager.
It was installed fine.

But I do not see a Button on main forum page.
What went wrong?

Please help!
thanks
Title: Re: AjaxChat Integration
Post by: munty on February 20, 2009, 06:25:21 AM
euroro,

In the instructions it mentions that you need to go into admin, then features and options (smf 1.1.8)

there are the boxes you need to tick there
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 20, 2009, 09:55:42 AM
@ FUBAR You could repalce these 3 files with the ones from the original chat folder and overwrite what you have and then run the Intergration MOD again.

./chat/css/shoutbox.css   
./chat/lib/template/shoutbox.html   
./chat/lib/class/AJAXChatDataBase.php

And yes, you want to use the current version 2.5
Title: Re: AjaxChat Integration
Post by: Kyrislian on February 20, 2009, 01:33:54 PM
I hope someone can help me - I want to make only two channels, and I have no idea how to do it.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 20, 2009, 03:57:44 PM
Quote from: euroro on February 20, 2009, 06:20:48 AM
I have installed AJAX on my 1.1.8 version of SMF and it workes fine.
After that, I have installed the integration using the package manager.
It was installed fine.

But I do not see a Button on main forum page.
What went wrong?

Please help!
thanks

Are you using a custom theme?
Title: Re: AjaxChat Integration
Post by: Kirsten07734 on February 20, 2009, 03:59:13 PM
Installed with 2.0RC1 and working beautifully.  Very easy install, much easier than FlashChat which no longer has mod support.  BTW, no modification was needed for the custom theme (Impress by Bloc) because it uses text buttons. 

My users love AjaxChat.  Thanks for the mod!

Now the stupid newbie question.  Where can I find a list of commands for this chat?  I tried /help and I searched the documentation for Ajax Chat (on Source Forge) and this thread, and am still clueless.  There are a great many features available in the software that I would like to use, but I haven't a clue how.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 20, 2009, 04:04:44 PM
Quote from: Kyrislian on February 20, 2009, 01:33:54 PM
I hope someone can help me - I want to make only two channels, and I have no idea how to do it.

http://www.simplemachines.org/community/index.php?topic=257973.msg1928449#msg1928449
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 20, 2009, 04:08:25 PM
Quote from: Kirsten07734 on February 20, 2009, 03:59:13 PM
Installed with 2.0RC1 and working beautifully.  Very easy install, much easier than FlashChat which no longer has mod support.  BTW, no modification was needed for the custom theme (Impress by Bloc) because it uses text buttons. 

My users love AjaxChat.  Thanks for the mod!

Now the stupid newbie question.  Where can I find a list of commands for this chat?  I tried /help and I searched the documentation for Ajax Chat (on Source Forge) and this thread, and am still clueless.  There are a great many features available in the software that I would like to use, but I haven't a clue how.

What commands are you referring to exactly? If you're referring to these they are in the ChatRoom, you'll see them when you hit the Help Button "?"

Join a channel: /join Channelname
Create a private room (Registered users only): /join
Invite someone (e.g. to a private room): /invite Username
Revoke invitation: /uninvite Username
Logout from Chat: /quit
Private message: /msg Username Text
Open a private channel: /query Username
Close a private channel: /query
Describe action: /action Text
Describe action in private message: /describe Username Text
Ignore/accept messages from user: /ignore Username
List ignored users: /ignore
Display user channel: /whereis Username
Kick a user (Moderators only): /kick Username [Minutes banned]
Unban a user (Moderators only): /unban Username
List banned users (Moderators only): /bans
Display user IP (Moderators only): /whois Username
List online users: /who [Channelname]
List available channels: /list
Roll dice: /roll [number]d[sides]
Change username: /nick Username
Title: Re: AjaxChat Integration
Post by: Kirsten07734 on February 20, 2009, 06:07:59 PM
Geez.  I knew it had to be easy.   I'm an idiot.  Thanks mrtrc266.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 20, 2009, 06:38:12 PM
Quote from: Kirsten07734 on February 20, 2009, 06:07:59 PM
Geez.  I knew it had to be easy.   I'm an idiot.  Thanks mrtrc266.

LOL No problem at all, sometimes it the easiest things that will drive you nuts ;)
Title: Re: AjaxChat Integration
Post by: Kyrislian on February 20, 2009, 08:27:19 PM
Thank you very much for helping! But I fail to understand :( I'm not looking to create the channels based on the forum boards. All I want is for two channels stating "The Traveller's Rest" and "The Marketplace".

Help please? ^^

Quote from: mrtrc266 on February 20, 2009, 04:04:44 PM
Quote from: Kyrislian on February 20, 2009, 01:33:54 PM
I hope someone can help me - I want to make only two channels, and I have no idea how to do it.

http://www.simplemachines.org/community/index.php?topic=257973.msg1928449#msg1928449
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 20, 2009, 08:30:25 PM
Quote from: Kyrislian on February 20, 2009, 08:27:19 PM
Thank you very much for helping! But I fail to understand :( I'm not looking to create the channels based on the forum boards. All I want is for two channels stating "The Traveller's Rest" and "The Marketplace".

Help please? ^^

Quote from: mrtrc266 on February 20, 2009, 04:04:44 PM
Quote from: Kyrislian on February 20, 2009, 01:33:54 PM
I hope someone can help me - I want to make only two channels, and I have no idea how to do it.

http://www.simplemachines.org/community/index.php?topic=257973.msg1928449#msg1928449

Here's how to creat custom channels

http://ajax-chat.wiki.sourceforge.net/Custom+chat+channels
Title: Re: AjaxChat Integration
Post by: Kyrislian on February 20, 2009, 08:42:24 PM
Yup, I've actually gone there to look up how to do the coding, but I'm lost as to whether or not I'm to use both codes, or just one of them, and what the numbers mean and what numbers I should use to assign the chatroom.

Yes. I'm a complete noob on this.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 20, 2009, 09:41:39 PM
Quote from: Kyrislian on February 20, 2009, 08:42:24 PM
Yup, I've actually gone there to look up how to do the coding, but I'm lost as to whether or not I'm to use both codes, or just one of them, and what the numbers mean and what numbers I should use to assign the chatroom.

Yes. I'm a complete noob on this.

Do you have Boards names "The Traveller's Rest" and ""The Marketplace"? That would be the easiest way to do what you want. Then you could just do the following

Open...../chat/lib/config.php
Find
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;


And replace with the code below and just change the numbers to the number of the boards for "The Traveller's Rest" and ""The Marketplace"
EXAMPLE: If The Traveller's Rest was board #20 and The Marketplace was board #21 then your code would look like this.

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(20,21);


EDIT:

I just added 2 Custom Channels to my test site with the names that you're looking for.


chat/lib/class/CustomAJAXChat.php

Find
return $this->_channels;
Replace with
$this->_channels = array_merge($this->_channels, array('The_Travellers_Rest'=>567, 'The_Marketplace'=>890));
return $this->_channels;


Find
return $this->_allChannels;
Replace with
$this->_allChannels = array_merge($this->_allChannels, array('The_Travellers_Rest'=>567, 'The_Marketplace'=>890));
return $this->_allChannels;


That should do it ;)
Title: Re: AjaxChat Integration
Post by: Kyrislian on February 20, 2009, 10:13:40 PM
I don't have the boards with that name - they're threads. Is there any other way to fix this up?

And thank you so much for your patience!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 20, 2009, 10:22:49 PM
No problem at all.

Attatch your chat/lib/class/CustomAJAXChat.php file and I'll take a look
Title: Re: AjaxChat Integration
Post by: Kyrislian on February 20, 2009, 10:45:13 PM
Here it is :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 20, 2009, 10:57:10 PM
Here you go, this should do it  ;)
Title: Re: AjaxChat Integration
Post by: Kyrislian on February 20, 2009, 11:05:50 PM
Thank you so much! It works perfectly now!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 20, 2009, 11:12:13 PM
Quote from: Kyrislian on February 20, 2009, 11:05:50 PM
Thank you so much! It works perfectly now!

No problem at all, glad I could help :)
Title: Re: AjaxChat Integration
Post by: ajaxman on February 21, 2009, 02:14:17 AM
Hi,

I recently installed SMF 1.1.8. Then the only mod I installed was AjaxChat. First I installed the chat under the forum directoy. Everything works fine.

However when I try to install AjaxChat Integration I get the following:

Installing this package will perform the following actions:

Type Action Description

1. Execute Modification ./Sources/BoardIndex.php Test failed
2. Execute Modification ./Sources/ManagePermissions.php Test failed

3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Sources/Subs.php Test successful
5. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
6. Execute Modification ./Themes/default/index.template.php Test failed

7. Execute Modification ./Themes/default/style.css Test successful
8. Execute Modification ./Themes/default/languages/Help.english.php Test successful
9. Execute Modification ./Themes/default/languages/Help.persian.php Skipping file
10. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
11. Execute Modification ./Themes/default/languages/Modifications.persian.php Skipping file
12. Execute Modification ./chat/index.php Test successful
13. Execute Modification ./chat/lib/class/AJAXChat.php Test successful
14. Execute Modification ./chat/lib/class/AJAXChatDataBase.php Test successful
15. Execute Modification ./chat/lib/config.php Test successful
16. Execute Modification ./chat/lib/template/shoutbox.html Test successful
17. Execute Modification ./chat/lib/template/loggedOut.html Test successful
18. Execute Modification ./chat/css/shoutbox.css Test successful

What can I do to fix this?

J
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 21, 2009, 09:35:51 AM
@ Ajaxman, it looks like you might some some other MODs installed that are interfering with this install.

You can do the manual edits for the files that you get the errors on using a Package Parser (http://resourcez.biz/PackageParser/)
Title: Re: AjaxChat Integration
Post by: ajaxman on February 21, 2009, 12:36:10 PM
Hi,

There are no other mod's installed. SMF is brand new "out of the box". The system admin's installed v 1.1.7, then I upgraded to 1.1.8.

Nothing more there.

I'm attaching the files that have a problem, in case you are able to find the errors.

What do you suggest?

J

Title: Re: AjaxChat Integration
Post by: PJC2006 on February 21, 2009, 02:20:38 PM
Hi, I have a small problem and was hoping someone could help me fix it please.

I tick the option for my chat to chat in popup page but it does not!

It does when i use the default core theme but not in the custom theme that i use.

I use the custom theme Asalet v7 and SMF 2 RC1.

Thanks in advance  :D
Title: Re: AjaxChat Integration
Post by: crypt on February 21, 2009, 06:37:13 PM
Quote from: mrtrc266 on February 18, 2009, 08:08:11 PM
Quote from: crypt on February 18, 2009, 02:45:11 PM
got this mod working, but it hasnt actually embedded the chat within the forum. the chat button just redirects me to chat/index.php

any ideas where i should look first for a fix? ive played with the settings for the mod but they have no affect.

Do you mean the ShoutBox? If you have a custom theme you will have to do the manual edits for it to show and then enable the ShoutBox.

For SMF1.x.x Go to Admin/Features and Options and then check what features you want...

Enable the ShoutBox?   
check for ShoutBox on any page or uncheck for only in index page:   
chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?


For SMF 2 RC1 go to Admin/Modifications/Chat

thanks for the response, sorry i wasnt more specific. im using smf 2.0 rc1 with the default core theme. the most ive managed  is a mostly empty nonfunctional shoutbox which you can see a screen cap of here (http://www.realitytunnel.org/visual/shoutbox.png). ajaxchat was installed fine and i can access it otherwise. its just the embedding that escapes me at the moment.
Title: Re: AjaxChat Integration
Post by: fotografo74 on February 22, 2009, 12:33:03 AM
Thanks .HuNTeR. for this Mod!
I have a problem: istallation is ok...i write my shout but nothing shows...users online is = 0 ....
Helps please?
Antonio
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 22, 2009, 12:40:28 AM
Quote from: ajaxman on February 21, 2009, 12:36:10 PM
Hi,

There are no other mod's installed. SMF is brand new "out of the box". The system admin's installed v 1.1.7, then I upgraded to 1.1.8.

Nothing more there.

I'm attaching the files that have a problem, in case you are able to find the errors.

What do you suggest?

J

It looks like you must have proceeded with this install cuz all the files have all the edits in them. There was only one file that was missing one edit. If you did already install the Intergration try to use this index.template and see how it goes. Of course back up first.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 22, 2009, 01:02:15 AM
Quote from: fotografo74 on February 22, 2009, 12:33:03 AM
Thanks .HuNTeR. for this Mod!
I have a problem: istallation is ok...i write my shout but nothing shows...users online is = 0 ....
Helps please?
Antonio

What version of SMF are you using?
Do you have a custom theme?
Did you get a clean install of this Intergration MOD version 2.5 without any errors?
Title: Re: AjaxChat Integration
Post by: euroro on February 22, 2009, 04:43:06 AM
Quote from: mrtrc266 on February 20, 2009, 03:57:44 PM
Quote from: euroro on February 20, 2009, 06:20:48 AM
I have installed AJAX on my 1.1.8 version of SMF and it workes fine.
After that, I have installed the integration using the package manager.
It was installed fine.

But I do not see a Button on main forum page.
What went wrong?

Please help!
thanks

Are you using a custom theme?

Yes, I am using the Babylon Theme, but if I switch to another theme, it does not work either.
thanks for your help!
Title: Re: AjaxChat Integration
Post by: fotografo74 on February 22, 2009, 07:04:52 AM
Quote from: mrtrc266 on February 22, 2009, 01:02:15 AM
Quote from: fotografo74 on February 22, 2009, 12:33:03 AM
Thanks .HuNTeR. for this Mod!
I have a problem: istallation is ok...i write my shout but nothing shows...users online is = 0 ....
Helps please?
Antonio

What version of SMF are you using?
Do you have a custom theme?
Did you get a clean install of this Intergration MOD version 2.5 without any errors?
I use SMF2 RC1, default theme, installation without any errors, fresh install of SMF 2RC1
I've uploaded chat folder...it's ok...but nothing shout!
www.macroforum.org/forum/index.php
Login
test
test1234

Title: Re: AjaxChat Integration
Post by: d0brin on February 22, 2009, 08:56:24 AM
Hey i Installed the AJAX Script on SMF 1.1.8, ran the Install.PHP file and than it said to delete it. And after that when i went to the index.php file of the chat it is showing me this error (from the picture). Why is that and can i fix it? Pls help
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 22, 2009, 09:15:18 AM
@ fotografo74 & d0brin  is your site set to UTF-8? If so change it to english and see if that helps.

Also, did you check your permissions?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 22, 2009, 09:27:23 AM
Quote from: euroro on February 22, 2009, 04:43:06 AM
But I do not see a Button on main forum page.
What went wrong?

No button even on the default theme and it installed clean?
Title: Re: AjaxChat Integration
Post by: d0brin on February 22, 2009, 12:34:40 PM
Quote from: mrtrc266 on February 22, 2009, 09:15:18 AM
@ fotografo74 & d0brin  is your site set to UTF-8? If so change it to english and see if that helps.

Also, did you check your permissions?

How to know is it UTF-8 or english? and how to change it?
Title: Re: AjaxChat Integration
Post by: UkGangsta on February 22, 2009, 12:39:03 PM
admin>server settings it should be in there
Title: Re: AjaxChat Integration
Post by: d0brin on February 22, 2009, 12:47:48 PM
Default Forum Language is set to English ( I mean it was set English and before so....it is not working ) any other ideas?
Title: Re: AjaxChat Integration
Post by: d0brin on February 22, 2009, 12:50:20 PM
Hey i kind of understand form html and php (php less) anyway.... i was going trou the phpo code of the Ajax Chat and i saw this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="bg" lang="bg" dir="ltr">



It is in encoding UTF-8, maybe my forum should too? But if it has too the forum doesnt have UTF-8 it is only english.
Title: Re: AjaxChat Integration
Post by: d0brin on February 22, 2009, 12:53:29 PM
No problems i Fixed it :) I just made the PHP document to be reparesed as HTML document.
Title: Re: AjaxChat Integration
Post by: crypt on February 22, 2009, 03:51:47 PM
this is what im seeing..
Title: Re: AjaxChat Integration
Post by: sprntrcr on February 22, 2009, 07:22:56 PM
Great package.  Installation went as smooth as could be and it is working great.  The forum members really like it.

I have one minor problem that is actually a real annoyance that I'm hoping someone can help me with.   When the ShoutBox is minimized using the button in the left corner,  it is not persisted like when you minimize the header box or a board.   As soon as you go to another page page, the ShoutBox maximizes again. 

This is really bothering my members that don't care to be part of the chat. They don't mind having to minimize the ShoutBox once, but every time is unacceptable and I understand that.  Does anyone else see this problem and/or have any suggestions how to fix.

Any help would be greatly appreciated.

Title: Re: AjaxChat Integration
Post by: fotografo74 on February 23, 2009, 01:32:21 AM
Quote from: d0brin on February 22, 2009, 12:34:40 PM
Quote from: mrtrc266 on February 22, 2009, 09:15:18 AM
@ fotografo74 & d0brin  is your site set to UTF-8? If so change it to english and see if that helps.

Also, did you check your permissions?

How to know is it UTF-8 or english? and how to change it?
hi,
the permission are ok, i'm admin and shout not shows. Language is english but not UTF-8.
thanks!
Title: Re: AjaxChat Integration
Post by: tripl3r on February 23, 2009, 04:21:20 AM
Installed fined etc but isnt working i get:
ChatBot: Error: Connection status: 404

can anyone tell me why?
Title: Re: AjaxChat Integration
Post by: blacko on February 23, 2009, 08:33:50 AM
Hi there,

I'm kind of having a problem with my shoutbox.
If a user leaves a message, and another user replies like 2 minutes after that, the first user is not reading it. I believe it has to do with the session time?

And I have a question as well, maybe one of you guys can help me out.
My homepage is blocked for visitors (they only see the login), but when i set the shoutbox to all pages, it shows above the login :s . How do I make it appear when the user logs in only? (i mean, i don't want it to show in the homepage).



THANKSSS IN ADVANCE
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 23, 2009, 09:34:22 AM
Quote from: blacko on February 23, 2009, 08:33:50 AM
Hi there,

I'm kind of having a problem with my shoutbox.
If a user leaves a message, and another user replies like 2 minutes after that, the first user is not reading it. I believe it has to do with the session time?

In your /chat/lib/config.php find
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:


And right below that change the settings to what you'd like.


QuoteAnd I have a question as well, maybe one of you guys can help me out.
My homepage is blocked for visitors (they only see the login), but when i set the shoutbox to all pages, it shows above the login :s . How do I make it appear when the user logs in only? (i mean, i don't want it to show in the homepage).

The quests can see the shoutbox without being loggen in but if you change your permissions for quests they won't be able to see the shouts. Hope that help.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 23, 2009, 09:37:17 AM
Quote from: fotografo74 on February 23, 2009, 01:32:21 AM
the permission are ok, i'm admin and shout not shows. Language is english but not UTF-8.
thanks!

Did you get this sorted?
Title: Re: AjaxChat Integration
Post by: fotografo74 on February 23, 2009, 09:44:30 AM
Quote from: mrtrc266 on February 23, 2009, 09:37:17 AM
Quote from: fotografo74 on February 23, 2009, 01:32:21 AM
the permission are ok, i'm admin and shout not shows. Language is english but not UTF-8.
thanks!

Did you get this sorted?
I set now to UTF-8 but still not shows...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 23, 2009, 10:27:59 AM
Quote from: fotografo74 on February 23, 2009, 09:44:30 AM
Quote from: mrtrc266 on February 23, 2009, 09:37:17 AM
Quote from: fotografo74 on February 23, 2009, 01:32:21 AM
the permission are ok, i'm admin and shout not shows. Language is english but not UTF-8.
thanks!

Did you get this sorted?
I set now to UTF-8 but still not shows...

I just went to your site and another thing I noticed is that you can't log out of the chat room. I'm not sure what's causing the prob, maybe something went awry during the install?

I would start from scratch and try to reinstall.

Set your forum back to English (and leave it at English), uninstall the Intergration Mod and delete the entire /chat folder and drop these table from from your Cpanel/phpMyAdmin

ajax_chat_bans 
ajax_chat_invitations       
ajax_chat_messages
ajax_chat_online 

Reinstall this version of ajax_chat-0.8.1.2_SMF.tar.gz  (https://sourceforge.net/project/downloading.php?group_id=214758&use_mirror=superb-east&filename=ajax_chat-0.8.1.2_SMF.tar.gz&a=45696770)

And then the Intergration MOD Version 2.5. Give that a shot and see if it helps.

Title: Re: AjaxChat Integration
Post by: fotografo74 on February 23, 2009, 10:39:29 AM
Quote from: mrtrc266 on February 23, 2009, 10:27:59 AM
Quote from: fotografo74 on February 23, 2009, 09:44:30 AM
Quote from: mrtrc266 on February 23, 2009, 09:37:17 AM
Quote from: fotografo74 on February 23, 2009, 01:32:21 AM
the permission are ok, i'm admin and shout not shows. Language is english but not UTF-8.
thanks!

Did you get this sorted?
I set now to UTF-8 but still not shows...

I just went to your site and another thing I noticed is that you can't log out of the chat room. I'm not sure what's causing the prob, maybe something went awry during the install?

I would start from scratch and try to reinstall.

Set your forum back to English (and leave it at English), uninstall the Intergration Mod and delete the entire /chat folder and drop these table from from your Cpanel/phpMyAdmin

ajax_chat_bans 
ajax_chat_invitations       
ajax_chat_messages
ajax_chat_online 

Reinstall this version of ajax_chat-0.8.1.2_SMF.tar.gz  (https://sourceforge.net/project/downloading.php?group_id=214758&use_mirror=superb-east&filename=ajax_chat-0.8.1.2_SMF.tar.gz&a=45696770)

And then the Intergration MOD Version 2.5. Give that a shot and see if it helps.


Ok, i try now
Thanks!
Title: Re: AjaxChat Integration
Post by: blacko on February 23, 2009, 11:34:23 AM
Quote from: mrtrc266 on February 23, 2009, 09:34:22 AM
Quote from: blacko on February 23, 2009, 08:33:50 AM
Hi there,

I'm kind of having a problem with my shoutbox.
If a user leaves a message, and another user replies like 2 minutes after that, the first user is not reading it. I believe it has to do with the session time?

In your /chat/lib/config.php find
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:


And right below that change the settings to what you'd like.


QuoteAnd I have a question as well, maybe one of you guys can help me out.
My homepage is blocked for visitors (they only see the login), but when i set the shoutbox to all pages, it shows above the login :s . How do I make it appear when the user logs in only? (i mean, i don't want it to show in the homepage).

The quests can see the shoutbox without being loggen in but if you change your permissions for quests they won't be able to see the shouts. Hope that help.

Thanks mrtrc266!!! Really helpful as usual

I've changed the permissions for the Guests (No access to chat), but the shoutbox keeps appearing on the homepage :(
Title: Re: AjaxChat Integration
Post by: blacko on February 23, 2009, 01:43:31 PM
I add my last question of the day :D

It it possible to refresh the number besides the word CHAT, in the menu?
Because it's not reflecting the real amount of people in the chat

For example now i see CHAT(5), but there's only 3 of us in the chat, and only if I refresh, the number changes.

Title: Re: AjaxChat Integration
Post by: CraftyLion on February 23, 2009, 08:16:07 PM
Quote from: tripl3r on February 23, 2009, 04:21:20 AM
Installed fined etc but isnt working i get:
ChatBot: Error: Connection status: 404

can anyone tell me why?

You may need to check your file permissions ....
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 24, 2009, 12:33:30 AM
Quote from: blacko on February 23, 2009, 01:43:31 PM
I add my last question of the day :D

It it possible to refresh the number besides the word CHAT, in the menu?
Because it's not reflecting the real amount of people in the chat

For example now i see CHAT(5), but there's only 3 of us in the chat, and only if I refresh, the number changes.

The number will only change when you refresh. Another thing is that if a user just closes the windown without logging out it will still show that they are in chat until they are timed out. Also, if a user is using the shoutbox and not in the chatroom it will show as a user in chat. I don't think there's a way around that.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 24, 2009, 12:45:54 AM
@ fotografo74 

I see that you're still having problems. I have no idea what it could be, I have AJAX CHat and this MOD on 3 different sites and 2 SMF Versions and they all work perfectly.

Are you using a free hosting service, could it possibly be on their end?

I would create a free account here http://xtreemhost.com and install a quick SMF, chat and then this MOD and see if it works there. They have TONS of bandwidth and storage and lots of great features.
Title: Re: AjaxChat Integration
Post by: fotografo74 on February 24, 2009, 01:21:24 AM
Quote from: mrtrc266 on February 24, 2009, 12:45:54 AM
@ fotografo74 

I see that you're still having problems. I have no idea what it could be, I have AJAX CHat and this MOD on 3 different sites and 2 SMF Versions and they all work perfectly.

Are you using a free hosting service, could it possibly be on their end?

I would create a free account here http://xtreemhost.com and install a quick SMF, chat and then this MOD and see if it works there. They have TONS of bandwidth and storage and lots of great features.

I use paid hoster...it's always ok.
i dont understand...nneoshout box works....this not! i try again. thanks!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 24, 2009, 01:31:00 AM
Did you ever try using the Chat Room before you installed this Intergration MOD?
Title: Re: AjaxChat Integration
Post by: fotografo74 on February 24, 2009, 02:21:50 AM
Quote from: mrtrc266 on February 24, 2009, 01:31:00 AM
Did you ever try using the Chat Room before you installed this Intergration MOD?
Yes, but not works.
Maybe it's a problem about chmod files of chat's folder?
In nneoshoutbox i chmod to 777 some files for works ok....
Title: Re: AjaxChat Integration
Post by: Golden Boy on February 24, 2009, 02:31:03 AM
hi everyone,
i'm kinda new in this forum bussiness

i encounter some trouble while installing this mod
i couldn't run the install.php
i'm using a paid host and the ftp software is total commander

can somebody tell what to do?
thanks for ur attention

edited : nevermind my question it was a silly typo that makes me couldn't run the install.php
Title: Re: AjaxChat Integration
Post by: netmatrix on February 24, 2009, 07:40:42 AM
I got this mod to work correctly on my site.  I need to do some manual install for all of my other themes still.  My one question is where do you find the commands to delete chat history that you can use on the shoutbox part.  Like with the SB for VB you use /prune.  What would all the different commands be for this one.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 24, 2009, 10:29:59 AM
Quote from: fotografo74 on February 24, 2009, 02:21:50 AM
Quote from: mrtrc266 on February 24, 2009, 01:31:00 AM
Did you ever try using the Chat Room before you installed this Intergration MOD?
Yes, but not works.
Maybe it's a problem about chmod files of chat's folder?
In nneoshoutbox i chmod to 777 some files for works ok....

All my Folders are 755 and all my files are 644.

I also just noticed that I don't see you smilies in the ChatRoom or Shoutbox.
Title: Re: AjaxChat Integration
Post by: Propaganistas on February 25, 2009, 07:08:21 AM
Hello,

I'm getting these errors:
Quote
8: Undefined index: enableChatButtonNo
File: /home/***/***/community/Themes/default/Errors.template.php (body_above sub template - eval?)
Line: 380

Quote
8: Undefined index: enableChatButtonNo
File: /home/***/***/community/Themes/default/BoardIndex.template.php (body_above sub template - eval?)
Line: 380

Quote
8: Undefined index: enableChatButtonNo
File: /home/***/***/community/cache/lang_Who_dutch-utf8_Reference20bp.php (body_above sub template - eval?)
Line: 380

How can I fix this? Thanks in advance,

Propa
Title: Re: AjaxChat Integration
Post by: siofra1101 on February 25, 2009, 09:03:55 AM
Please, please help, I have been messing around with my support forum for Fibromyalgia sufferers today and its all gone horribly wrong.  I wanted to change the theme and had previously had chat added to one of my themes. 

I recently moved my forum from one provider to another and since doing this I keep getting an error message about my database being out of date whenever a member tries to use search.  It always worked before but I am having this sorted today with new provider.

Problem is, I changed the theme over to Dilbert MC and tried to went to packages.  Ihad AjaxChat Integration on my package list so I activated it.  I got an error message similar to the one below.  So I went back to packages and deleted it now I get this:


Table 'sarahta_siofra1101.ajax_chat_online' doesn't exist
File: D:\hshome\sarahtaylor\fibromyalgia-kent-uk.co.uk\smf\Sources\BoardIndex.php
Line: 346

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.8, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.

When ever I try to look at my home page.  Admins still works but not my board....  I am already getting members emailing me and need to get it back online a.s.a.p.   I'm desperate.  Can anyone help please????? 
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 25, 2009, 10:42:35 AM
@siofra1101 You will probably get much better and faster help if you report your problem on one of the boards. Good luck on getting your forum back online.

http://www.simplemachines.org/community/index.php?board=10.0

http://www.simplemachines.org/community/index.php?board=9.0
Title: Re: AjaxChat Integration
Post by: sprntrcr on February 25, 2009, 10:59:45 AM
Can someone please verify if they have the same issue so I know if it is this mod or an issue with my install.   If I can't resolve this, I'm afraid the shoutbox will have to go.

thanks,


Quote from: sprntrcr on February 22, 2009, 07:22:56 PM
Great package.  Installation went as smooth as could be and it is working great.  The forum members really like it.

I have one minor problem that is actually a real annoyance that I'm hoping someone can help me with.   When the ShoutBox is minimized using the button in the left corner,  it is not persisted like when you minimize the header box or a board.   As soon as you go to another page page, the ShoutBox maximizes again. 

This is really bothering my members that don't care to be part of the chat. They don't mind having to minimize the ShoutBox once, but every time is unacceptable and I understand that.  Does anyone else see this problem and/or have any suggestions how to fix.

Any help would be greatly appreciated.


Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 25, 2009, 11:10:21 AM
It will reopen on refresh but what is annoying about it, the sound? That can be turned off. If you have the shoutbox on just the forum page it should't be too annoying, I can only speak for myself but if I'm not in the shoutbox then I am cruising through my forum where I don't see it anyway.

Just pretend like your using the last version where it didn't have a collapsable shoutbox ;)
Title: Re: AjaxChat Integration
Post by: sprntrcr on February 25, 2009, 12:15:26 PM
I have a fair amount of users that would like to have it on the top of every page so they can chat and surf at the same time.  To them it is not a problem.  On the other hand there is also a substantial group that don't wish to participate in the chat at all so for now I have limited it to the index page.  But with people posting pictures in the chat,  it is a little overbearing on the index page at times too.  I can also understand it is a nuisance when you have a large number of boards and each time you minimize a group of boards, the shoutbox has to be re-minimized.   People start to hate the thing real fast.

It would be real nice it it had the allow users to collapse this category feature like in the board admin.  Especially since it displays the collapse button, but doesn't act like the others.

I have muted sound by default, so the sound is not an issue. 

I took a quick look at the code, and it appears that the database is used to store collapse settings for boards, so I guess this would require a database table hit to implement it for the ShoutBox and not just a simple fix.

Perhaps this can be added as a feature request if there will be further updates to this mod?????

Thanks for all your work..
Title: Re: AjaxChat Integration
Post by: dweez on February 25, 2009, 02:36:23 PM
I'm a moderator on a forum where we use the AjaxChat integration.  The admin recently contacted me regarding a reoccurring error that is logged.

QuoteI have noticed that we everyone is logging an error which is this:

Quote8: Undefined index: enableShoutBox
File: /var/www/html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 11

It is an error to do with the Ajax chat stuff but the shoutBox is not even activated (that I suppose could be the problem) and one of these errors is logged every time someone moves or refreshes as page.

I saw a previous post in this thread very similar to our issue (post and response from .HuNTeR. found on page 17 and quoted here).  We are only experiencing the second error aibehn listed.

Quote from: aibehn on February 09, 2009, 06:35:54 AM
SMF 1.1.8, ajax chat 0.8.1.2 and AjaxChat_Integration_2.3

I'm having this error:


index.php?action=packages;sa=uninstall2;package=AjaxChat_Integration_2.3.zip

8: Undefined index: enableShoutBox
Archivo: /public_html/foro/Themes/default/Packages.template.php (main_above sub template - eval?)
Línea: 349



And more errors like this:


8: Undefined index: chat
8: Undefined index: chat_no_user
...


Some suggestions?

And .HuNTeR.'s response here.

Quote from: .HuNTeR. on February 09, 2009, 09:58:45 AM
-------------------------------------------------------------
@aibehn
I think your forum languages isn't english and you didn't add these strings to your language files?
-------------------------------------------------------------

As far as I know, the language should be set to whatever was default on install.  We're using SMF 1.1.8 and PHP 5.2. Let me know if more info is needed.

-dweez
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 25, 2009, 02:58:25 PM
@ dweez

It's seems that for some reason if a Feature is NOT checked then an error appears, chat enable, chat in pop up, etc. I know it's annoying to have those errors but they are harmless and hopefully it will get fixed in the next release.
Title: Re: AjaxChat Integration
Post by: dweez on February 25, 2009, 03:43:34 PM
Quote from: mrtrc266 on February 25, 2009, 02:58:25 PM
@ dweez

It's seems that for some reason if a Feature is NOT checked then an error appears, chat enable, chat in pop up, etc. I know it's annoying to have those errors but they are harmless and hopefully it will get fixed in the next release.

Much thanks mrtrc266.
Title: Re: AjaxChat Integration
Post by: gonjess on February 25, 2009, 04:33:58 PM
Hello.. help me please..

I was tried to install the AjaxChat Integration mod inside my forum [SMF 1.1.8 + AjaxChat 0.8.1.2], I found some error / incompatible report when I start to install the mod, since I pushed the install button, there're no thing with my forum anymore [blank]. what happen with this, and how to get my forum back..?

attached my last record of screen

here the forum address: http://forum.sml125.cc/

many thanks for your help
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 25, 2009, 04:41:28 PM
Quote from: gonjess on February 25, 2009, 04:33:58 PM
Hello.. help me please..

I was tried to install the AjaxChat Integration mod inside my forum [SMF 1.1.8 + AjaxChat 0.8.1.2], I found some error / incompatible report when I start to install the mod, since I pushed the install button, there're no thing with my forum anymore [blank]. what happen with this, and how to get my forum back..?

attached my last record of screen

here the forum address: http://forum.sml125.cc/

many thanks for your help

Uhg!!! have you tried doing the manual edits for this MOD?
Title: Re: AjaxChat Integration
Post by: MG Braden on February 25, 2009, 06:58:34 PM
I'm not sure if this is the right place to post this question, but I was following the steps in this and got stalled at the install stage.  This is what it's showing:

Warning: main(/cgi-bin/lib/custom.php): failed to open stream: No such file or directory in /home/content/e/s/p/espan1/html/forum/chat/install.php on line 17

Warning: main(/cgi-bin/lib/custom.php): failed to open stream: No such file or directory in /home/content/e/s/p/espan1/html/forum/chat/install.php on line 17

Fatal error: main(): Failed opening required '/cgi-bin/lib/custom.php' (include_path='.:/usr/local/lib/php') in /home/content/e/s/p/espan1/html/forum/chat/install.php on line 17


The forum is at espan-rwa.com/forum/  So I'm a bit confused about the path it's wanting to take here.  Any ideas?

Thank you in advance.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 25, 2009, 07:15:04 PM
Quote from: MG Braden on February 25, 2009, 06:58:34 PM
I'm not sure if this is the right place to post this question, but I was following the steps in this and got stalled at the install stage.  This is what it's showing:
Warning: main(/cgi-bin/lib/custom.php): failed to open stream: No such file or directory in /home/content/e/s/p/espan1/html/forum/chat/install.php on line 17
Warning: main(/cgi-bin/lib/custom.php): failed to open stream: No such file or directory in /home/content/e/s/p/espan1/html/forum/chat/install.php on line 17
Fatal error: main(): Failed opening required '/cgi-bin/lib/custom.php' (include_path='.:/usr/local/lib/php') in /home/content/e/s/p/espan1/html/forum/chat/install.php on line 17


The forum is at espan-rwa.com/forum/  So I'm a bit confused about the path it's wanting to take here.  Any ideas?

Thank you in advance.

Did you install the AJAX Chat exactly like this?

Download ajax_chat-0.8.1.2_SMF.tar.gz  (https://sourceforge.net/project/downloading.php?group_id=214758&use_mirror=&filename=ajax_chat-0.8.1.2_SMF.tar.gz&70178931)

Unzip the package and via your FTP copy the whole chat folder in your root directory and then point your browser to yourforum/chat/install.php

And when you're done be sure to delete the install.php

Then you would install this AJAX Chat Intergration MOD Version 2.5
(http://custom.simplemachines.org/mods/index.php?mod=1319)
Title: Re: AjaxChat Integration
Post by: MG Braden on February 25, 2009, 07:33:42 PM
Quote from: mrtrc266 on February 25, 2009, 07:15:04 PM

Did you install the AJAX Chat exactly like this?

Download ajax_chat-0.8.1.2_SMF.tar.gz  (https://sourceforge.net/project/downloading.php?group_id=214758&use_mirror=&filename=ajax_chat-0.8.1.2_SMF.tar.gz&70178931)

Unzip the package and via your FTP copy the whole chat folder in your root directory and then point your browser to yourforum/chat/install.php

And when you're done be sure to delete the install.php

Then you would install this AJAX Chat Intergration MOD Version 2.5
(http://custom.simplemachines.org/mods/index.php?mod=1319)

Yes, I followed that exactly.  I haven't even been able to get to the installation of the Chat Integration because I'm getting the error on the install.  I'm thinking it may be time to try a different chat.  :-(
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 25, 2009, 08:20:11 PM
That's odd, after you unzip ajax_chat-0.8.1.2_SMF.tar.gz you should just be able to copy the whole chat folder to your root directory and then point your browser to http://www.espan-rwa.com/forum/chat/install.php and it should work fine???
Title: Re: AjaxChat Integration
Post by: gonjess on February 25, 2009, 10:55:32 PM
Quote from: mrtrc266 on February 25, 2009, 04:41:28 PM
Uhg!!! have you tried doing the manual edits for this MOD?

yes I have before I tried to automatic install, what do you suggest to change back..?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 25, 2009, 11:05:43 PM
Quote from: gonjess on February 25, 2009, 10:55:32 PM
Quote from: mrtrc266 on February 25, 2009, 04:41:28 PM
Uhg!!! have you tried doing the manual edits for this MOD?

yes I have before I tried to automatic install, what do you suggest to change back..?

Attatch the following files and I'll take a look

/Sources/BoardIndex.php
/Sources/ManagePermissions.php
/Themes/default/BoardIndex.template.php
/Themes/default/index.template.php
Title: Re: AjaxChat Integration
Post by: gonjess on February 25, 2009, 11:22:45 PM
Quote from: mrtrc266 on February 25, 2009, 11:05:43 PM

Attatch the following files and I'll take a look

/Sources/BoardIndex.php
/Sources/ManagePermissions.php
/Themes/default/BoardIndex.template.php
/Themes/default/index.template.php

here are the files, thanks in advance bro...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 25, 2009, 11:33:18 PM
Looks like you got it restored ???
Title: Re: AjaxChat Integration
Post by: gonjess on February 25, 2009, 11:35:26 PM
Quote from: mrtrc266 on February 25, 2009, 11:33:18 PM
Looks like you got it restored ???

yes I've got restored it since the problem has come..

should I check the database before...??
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 25, 2009, 11:42:57 PM
Quote from: gonjess on February 25, 2009, 11:35:26 PM
Quote from: mrtrc266 on February 25, 2009, 11:33:18 PM
Looks like you got it restored ???

yes I've got restored it since the problem has come..

should I check the database before...??

If you want to try AJAX Chat and this Intergration MOD again go ahead and drop these tables from your cPanel myPhpAdmin

ajax_chat_bans 
ajax_chat_invitations       
ajax_chat_messages
ajax_chat_online 

And then....

Download ajax_chat-0.8.1.2_SMF.tar.gz  (https://sourceforge.net/project/downloading.php?group_id=214758&use_mirror=&filename=ajax_chat-0.8.1.2_SMF.tar.gz&70178931)

Unzip the package and via your FTP copy the whole chat folder in your root directory and then point your browser to yourforum/chat/install.php

When you're done be sure to delete the install.php

Then install this AJAX Chat Intergration MOD Version 2.5
(http://custom.simplemachines.org/mods/index.php?mod=1319)

If you get errors again when you hit "Apply Mod" DO NOT Proceed. Post back here with the errors and we will take it from there.
Title: Re: AjaxChat Integration
Post by: gonjess on February 26, 2009, 12:00:40 AM
Quote from: mrtrc266 on February 25, 2009, 11:42:57 PM

If you want to try AJAX Chat and this Intergration MOD again go ahead and drop these tables from your cPanel myPhpAdmin

ajax_chat_bans 
ajax_chat_invitations       
ajax_chat_messages
ajax_chat_online 

And then....

Download ajax_chat-0.8.1.2_SMF.tar.gz  (https://sourceforge.net/project/downloading.php?group_id=214758&use_mirror=&filename=ajax_chat-0.8.1.2_SMF.tar.gz&70178931)

Unzip the package and via your FTP copy the whole chat folder in your root directory and then point your browser to yourforum/chat/install.php

When you're done be sure to delete the install.php

Then install this AJAX Chat Intergration MOD Version 2.5
(http://custom.simplemachines.org/mods/index.php?mod=1319)

If you get errors again when you hit "Apply Mod" DO NOT Proceed. Post back here with the errors and we will take it from there.

I've doing both procedure, and re-check all modified files too.. but the forum still can not open till now [blank page only]
it confused me, do you have any suggest for other problem may be..?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 26, 2009, 12:10:07 AM
Can you take your forum out of maintanence mode?
Title: Re: AjaxChat Integration
Post by: gonjess on February 26, 2009, 12:18:47 AM
Quote from: mrtrc266 on February 26, 2009, 12:10:07 AM
Can you take your forum out of maintanence mode?

yes I have take my forum out of maintenance mode
still blank to the main page  :(

Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 26, 2009, 12:29:02 AM
Hmmmm....Sorry but I have no idea and it's especially hard when I can't read a single word LOL. I see that your site is up so I'm not sure what you mean by "blank page."

Sorry I can't be of more help on this. :(
Title: Re: AjaxChat Integration
Post by: gonjess on February 26, 2009, 12:40:57 AM
yes, itsup now, ok many thanks bro.. I will review both changed settings

kind regards from Indonesia...  ;D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 26, 2009, 12:46:15 AM
Quote from: gonjess on February 26, 2009, 12:40:57 AM
yes, itsup now, ok many thanks bro.. I will review both changed settings

kind regards from Indonesia...  ;D

Phew, I'm glad you got it sorted. When you get back to installing the chat and intergration MOD I. Follow the steps above. I hope it goes well cuz this is a great feature for your site. :)
Title: Re: AjaxChat Integration
Post by: gonjess on February 26, 2009, 12:52:50 AM
Quote from: mrtrc266 on February 26, 2009, 12:46:15 AM
Phew, I'm glad you got it sorted. When you get back to installing the chat and intergration MOD I. Follow the steps above. I hope it goes well cuz this is a great feature for your site. :)

yes I will, thank you for now I must repair my forum first because the 'home' page still can not up... I only can working from admin area.. :)
Title: Re: AjaxChat Integration
Post by: MG Braden on February 26, 2009, 10:34:56 PM
Quote from: mrtrc266 on February 25, 2009, 08:20:11 PM
That's odd, after you unzip ajax_chat-0.8.1.2_SMF.tar.gz you should just be able to copy the whole chat folder to your root directory and then point your browser to http://www.espan-rwa.com/forum/chat/install.php and it should work fine???

I know, it just didn't like it for some reason.  It's not like the instructions were hard or anything, but for some reason it just wouldn't work.  Thanks, anyway, for responding.  I went ahead and installed FlashChat and that's working fine for me.
Title: Re: AjaxChat Integration
Post by: spazz on February 27, 2009, 05:35:04 AM
okay...so i uploaded the chat first... www.setitoffcreations.com/chat its there. But... i try to do the intergation mod and i get this error when trying to apply it.

Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.

!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

   Type     Action     Description
1.    Execute Modification    ./Sources/BoardIndex.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test failed


What should i do? im so newbie at this...its amazing i got this far.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 27, 2009, 09:49:37 AM
@ spazz

You can do the manual edits for the files that you get the errors on using a Package Parser (http://resourcez.biz/PackageParser/)

Download your Sources/ManagePermissions.php (MAKE A BACKUP) and then open the Intergration MOD in the package parser (be sure to select the version of SMF you're using) and manually do the edit for that file.

Proceed with the install and then upload the file that you edited. That should do it.
Title: Re: AjaxChat Integration
Post by: Biza on February 27, 2009, 12:49:24 PM
hello,
when I want to change room, it lists all my forums (big list), is it posible to edit that list, or to make custome one?

thanks
Title: Re: AjaxChat Integration
Post by: mrtrc266 on February 27, 2009, 09:39:47 PM
Quote from: Biza on February 27, 2009, 12:49:24 PM
hello,
when I want to change room, it lists all my forums (big list), is it posible to edit that list, or to make custome one?

thanks


To edit the channels that are currently boards you can do this

Open...../chat/lib/config.php
Find
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;


And replace with the code below and just change the numbers to the number of the boards for the boards you want to have as channels

EXAMPLE: If "General Discussion" was board #1 and you had another board "SMF Talk" was board #2 then your code would look like this.

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(1,2);


To actually add custom channels then you do this

chat/lib/class/CustomAJAXChat.php

Find
return $this->_channels;
Replace with
$this->_channels = array_merge($this->_channels, array('Custom_Channel_1'=>567, 'Custom_Channel_2'=>890));
return $this->_channels;


Find
return $this->_allChannels;
Replace with
$this->_allChannels = array_merge($this->_allChannels, array('Custom_Channel_1'=>567, 'Custom_Channel_2'=>890));
return $this->_allChannels;


That should do it ;)
Title: Re: AjaxChat Integration
Post by: GinoDicandio on February 28, 2009, 06:23:19 AM
Hello,

I followed the steps to install AjaxChat Integration:

- Installed ajax_chat-0.8.1.2_SMF.tar.gz as described
- Runned the install.php file and then delete it
(The chatroom works perfectly by accessing it directly: ...forum/chat/)
- Downloaded AjaxChat_Integration_2.5.zip and transferred the packet on the SMF forum 1.1.8
- Started the apply MOD process and there I get 2 errors/warnings

./Sources/ManagePermissions.php and
.../forum/Themes/default/index.template.php

I tried anyway to continue (I made a full backup before) and I could install everything, the only problem is that I can't specify the permisions because the "Chat" options doesn't appear in the permissions sections so (non admin) users can't use the chat (They are rejected)

So, I manually modified (using SMF Package Parser) the ./Sources/ManagePermissions.php file and that one now works.
I can access members permissions for chat.

I'm still having problems with the Themes/default/index.template.php file, especially that portion (other modifications in file were correctly applied):
// But, let's always show minutes - Time wasted here: 0 minutes .
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }

that must be replaced by
// But, let's always show minutes - Time wasted here: 0 minutes .
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      if ($modSettings['enableChatBelowPM']){
         if (count(array_unique(getChatOnlineUserIDs())) == 0 )
            echo '<br />' . $txt['chat_no_user'];
         elseif (count(array_unique(getChatOnlineUserIDs())) == 1 )
           echo '<br />  1' . $txt['chat_aUser']. '.<br />';
         else
           echo '<br /> ' . count(array_unique(getChatOnlineUserIDs())). $txt['chat_users']. '<br />';

      }
      echo '            </span>';
   }


But if I modify it, I have error on the forum.
Here's the portion of code I actually have in that file:
if ($context['user']['total_time_logged_in']['days'] > 0)
            echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

         // Same with hours - only show it if it's above zero.
         if ($context['user']['total_time_logged_in']['hours'] > 0)
            echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

         // But, let's always show minutes - Time wasted here: 0 minutes .
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }      
      
                     echo'
                     <hr>
                     <b>', $txt[645], ':</b><br />
                     &raquo; ', $context['common_stats']['total_posts'], ' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], ' ', $context['common_stats']['total_members'], ' ', $txt[19], '.<br />
                     &raquo; ', ($settings['show_latest_member'] ? '' . $txt[201] . ' <b>' . $context['common_stats']['latest_member']['link'] . '</b>' . $txt[581] : '');
                     echo '</span></td>';
   }
   
   
   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {
      echo '            </span>
                        <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

                        <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
                           <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                           <select name="cookielength">
                              <option value="60">', $txt['smf53'], '</option>
                              <option value="1440">', $txt['smf47'], '</option>
                              <option value="10080">', $txt['smf48'], '</option>
                              <option value="43200">', $txt['smf49'], '</option>
                              <option value="-1" selected="selected">', $txt['smf50'], '</option>
                           </select>
                           <input type="submit" value="', $txt[34], '" /><br />
                           <span class="middletext">', $txt['smf52'], '</span>
                           <input type="hidden" name="hash_passwrd" value="" />
                        </form>';
   }

   echo '
                     </td>';
                     //Welcome Ads
                     if (function_exists("show_welcomeAds"))


I'm not a PHP specialist and so I don't know exactly where to incorporate the portion of code with all those "({)}';if,else..." mixed, any idea to help me ?

Thanks
regards

Gino
Title: Re: AjaxChat Integration
Post by: wardeh on February 28, 2009, 10:40:54 AM
Maybe will post my question later, after I've looked around a little more. :D
Title: Re: AjaxChat Integration
Post by: kailew on February 28, 2009, 07:24:43 PM
Hi,

I've installed Ajax Chat with installation and it worked perfect ... until today. I've installed a few modifications and the chat isn't working anymore. I can start it but I'm not logged in ...

I've 1.1.8 and this modifications installed after the chat:

Googlebot & Spiders Mod  2.0.4   
Pretty URLs    0.9.1
SMF Sitemap    1.2.2
Another URL Popup    1.0
Table From CSV    1.30
Wikipedia BBCode    1.3
Karma Description Mod    2.3.1

I think it could be the pretty URLs - but have no idea how ...

Any help is appreciated.

Kai
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 01, 2009, 11:43:10 AM
@ GinoDicandio attatch your Themes/default/index.template.php file and I'll take a look.

@ kailew try to uninstall the MODs you added in the order you added them and see if and when your chat comes back.
Title: Re: AjaxChat Integration
Post by: GinoDicandio on March 01, 2009, 11:49:16 AM
Hello,

Here's the file (index.template.php)

Thank you for your help

Best regards

Gino
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 01, 2009, 12:26:53 PM
Quote from: GinoDicandio on March 01, 2009, 11:49:16 AM
Hello,

Here's the file (index.template.php)

Thank you for your help

Best regards

Gino

Here you go, I just tested it on my forum and it seemed to work ok. You should now see the number of users in chat right above your forum stats in the header.
Title: Re: AjaxChat Integration
Post by: GinoDicandio on March 01, 2009, 01:16:08 PM
Hello,

Yes, it works perfectly now.
Once again, thank you very much for your help on my problem.

Best regards

Gino
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 01, 2009, 01:20:40 PM
Quote from: GinoDicandio on March 01, 2009, 01:16:08 PM
Hello,

Yes, it works perfectly now.
Once again, thank you very much for your help on my problem.

Best regards

Gino

You're welcome, glad I could help.
Title: Re: AjaxChat Integration
Post by: Coyote Keith on March 01, 2009, 03:36:42 PM
I just installed AjaxChat (current version) and it works fine. When I try to apply the package with SMF, I'm getting an error. The test that fails is on a chat file.
Any ideas?

1.     Execute Modification     ./Sources/BoardIndex.php     Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Sources/Subs.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/index.template.php    Test successful
7.    Execute Modification    ./Themes/default/style.css    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
10.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
11.    Execute Modification    ./Themes/default/languages/Modifications.persian.php    Skipping file
12.    Execute Modification    ./chat/index.php    Test successful
13.    Execute Modification    ./chat/lib/class/AJAXChat.php    Test successful
14.    Execute Modification    ./chat/lib/class/AJAXChatDataBase.php    Test failed
15.    Execute Modification    ./chat/lib/config.php    Test successful
16.    Execute Modification    ./chat/lib/template/shoutbox.html    Test successful
17.    Execute Modification    ./chat/lib/template/loggedOut.html    Test successful
18.    Execute Modification    ./chat/css/shoutbox.css    Test successful
Title: Re: AjaxChat Integration
Post by: wardeh on March 01, 2009, 04:11:03 PM
Hello!

I think I've done allright installing this modification. It is the only one installed on a fresh installation of SMF 2.0 RC1.

I limited the channels to only about 4 of the forums. I set the permissions such that Guests do not have access to the Chat.

My issue is with the Shoutbox; Guests can see it. I would like it to be private also. How can I do this?

I am confused about it, though. When a guest first comes to the site, the SHoutbox is not populated. Then if they click on chat, they see the error message: "Sorry, guest don't have access to chat." (or whatever the wording is). But ironically, now the Shoutbox is populated. A bug? Something I didn't set up right?

Thanks for your help!
Title: Re: AjaxChat Integration
Post by: Shadow03 on March 01, 2009, 05:17:46 PM
The shoutbox won't show up with the anecdota skin, but it works fine with the default one. I'm using SMF 2 RC1 (just upgraded from Beta 4). Any suggestions?

Note: I did not update the skin after upgrading to RC1 because I made modifications to the pictures and I was too lazy to do it over. Could this be the cause of the problem?
Title: Re: AjaxChat Integration
Post by: Coyote Keith on March 01, 2009, 07:17:46 PM
This mod does not appear to work with Chat 0.8.2

I'd love to be able to use it.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 01, 2009, 11:45:28 PM
Quote from: Coyote Keith on March 01, 2009, 07:17:46 PM
This mod does not appear to work with Chat 0.8.2

I'd love to be able to use it.

RE: your post above with the error on the ./chat/lib/class/AJAXChatDataBase.php file, use a Package Parser (http://resourcez.biz/PackageParser/) and edit the file manually. That should do it.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 02, 2009, 12:27:44 AM
Quote from: wardeh on March 01, 2009, 04:11:03 PM
Hello!

I think I've done allright installing this modification. It is the only one installed on a fresh installation of SMF 2.0 RC1.

I limited the channels to only about 4 of the forums. I set the permissions such that Guests do not have access to the Chat.

My issue is with the Shoutbox; Guests can see it. I would like it to be private also. How can I do this?

I am confused about it, though. When a guest first comes to the site, the SHoutbox is not populated. Then if they click on chat, they see the error message: "Sorry, guest don't have access to chat." (or whatever the wording is). But ironically, now the Shoutbox is populated. A bug? Something I didn't set up right?

Thanks for your help!

I was having the same problem but it didn't happen when I was using version 2.3 so I looked for the differences and this is what I found.

This is the edit I did and it seems to work fine for me so far it's only tested on my 1.1.8 site
In /chat/index.php

Find

$ssi_on_error_method = true;

//our flag for chat access
$accessable = false;

if ($_GET['shoutbox'])
$accessable = true;


Replace with
//our flag for chat access
$accessable = false;


As you can see it removed a cpl lines and I have no idea what the purpose was but guests can no longer see chat and I don't seem to be having any errors.
Title: Re: AjaxChat Integration
Post by: Coyote Keith on March 02, 2009, 11:44:15 AM
Quote from: mrtrc266 on March 01, 2009, 11:45:28 PM
Quote from: Coyote Keith on March 01, 2009, 07:17:46 PM
This mod does not appear to work with Chat 0.8.2

I'd love to be able to use it.

The error seems to be because the mod to that file is already done in Chat 0.8.2

When I did it manually, It works but I get some strange chars that are either above the forum or just ahead of the text telling how many are in chat.

RE: your post above with the error on the ./chat/lib/class/AJAXChatDataBase.php file, use a Package Parser (http://resourcez.biz/PackageParser/) and edit the file manually. That should do it.
Title: Re: AjaxChat Integration
Post by: Shadow03 on March 02, 2009, 01:02:28 PM
Does anyone have a solution to the problem I posted above?
Title: Re: AjaxChat Integration
Post by: Coyote Keith on March 02, 2009, 07:38:35 PM
Must be something that has changed from Chat 0.8.1.2 to Chat 0.8.2

Even manually fixing the one file I still have a problem. The mod installs but there are some non ascii chars showing up on my forum page with it installed.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 03, 2009, 12:29:37 AM
Quote from: Coyote Keith on March 02, 2009, 07:38:35 PM
Must be something that has changed from Chat 0.8.1.2 to Chat 0.8.2

Even manually fixing the one file I still have a problem. The mod installs but there are some non ascii chars showing up on my forum page with it installed.

This is the version of AJAX Chat you want.

Download ajax_chat-0.8.1.2_SMF.tar.gz  (https://sourceforge.net/project/downloading.php?group_id=214758&use_mirror=&filename=ajax_chat-0.8.1.2_SMF.tar.gz&70178931)

This is the version you want for the Intergration MOD

Then install this AJAX Chat Intergration MOD Version 2.5
(http://custom.simplemachines.org/mods/index.php?mod=1319)

Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 03, 2009, 12:31:01 AM
Quote from: Shadow03 on March 02, 2009, 01:02:28 PM
Does anyone have a solution to the problem I posted above?

You'll have to use a Package Parser (http://resourcez.biz/PackageParser/) and edit custom your custom theme files manually.
Title: Re: AjaxChat Integration
Post by: allymcbeal on March 03, 2009, 07:36:42 AM
Sorry is possible to install only the shout box, but not the chat?
Title: Re: AjaxChat Integration
Post by: Coyote Keith on March 03, 2009, 11:42:09 AM
Quote from: mrtrc266 on March 03, 2009, 12:29:37 AM
Quote from: Coyote Keith on March 02, 2009, 07:38:35 PM
Must be something that has changed from Chat 0.8.1.2 to Chat 0.8.2

Even manually fixing the one file I still have a problem. The mod installs but there are some non ascii chars showing up on my forum page with it installed.

This is the version of AJAX Chat you want.

Download ajax_chat-0.8.1.2_SMF.tar.gz  (https://sourceforge.net/project/downloading.php?group_id=214758&use_mirror=&filename=ajax_chat-0.8.1.2_SMF.tar.gz&70178931)

This is the version you want for the Intergration MOD

Then install this AJAX Chat Intergration MOD Version 2.5
(http://custom.simplemachines.org/mods/index.php?mod=1319)



That fixed it. Thank you!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 03, 2009, 01:44:15 PM
Quote from: Coyote Keith on March 02, 2009, 07:38:35 PM
That fixed it. Thank you!

You're welcome, glad you got it goin :) Get ready for my next post ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 03, 2009, 02:11:24 PM
There have been a few requests for this feature..."Make the ShoutBox stay collapsed."

After a couple of weeks I got it figured out, not sure if the is the best way but it works and also has a nice animated sliding effect. You can now have your ShoutBox stay opened or closed no matter whether you refresh or navigate away from the page. It will stick to whatever your prefer.

Download these 2 files animatedcollapse.js and jquery-1.2.2.pack.js from HERE (http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm)

Then upload them to /yourforum/chat/js/

open /yourforum/chat/lib/template/shoutbox.html and add to the very beginning of the file...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<script type="text/javascript" src="[AJAX_CHAT_URL/]js/jquery-1.2.2.pack.js"></script>
<script type="text/javascript" src="[AJAX_CHAT_URL/]js/animatedcollapse.js">

/***********************************************
* Animated Collapsible DIV v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>


<script type="text/javascript">
animatedcollapse.addDiv('ShoutBox', 'fade=0,speed=400,persist=1,hide=0')
animatedcollapse.init()
</script>


Find

<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="[AJAX_CHAT_URL/]../Themes/default/images/collapse.gif" alt="*" style="margin-right: 5px;"  /></a>ShoutBox


Replace with

<a href="javascript:animatedcollapse.toggle('ShoutBox')"><img id="ajax_shoutbox_collapse" src="[AJAX_CHAT_URL/]../Themes/default/images/collapse.gif" alt="Show/Hide ShoutBox" style="margin-right: 5px;"  /></a>ShoutBox



That's about it  :)

You can check it out here http://monsters-mansion.com/test118/index.php

You can play around with these functions and set it to your liking.

fade=0,speed=400,persist=1,hide=0 (info on these and other function are available HERE (http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm))
Have fun :D
Title: Re: AjaxChat Integration
Post by: Shadow03 on March 03, 2009, 08:26:54 PM
Okay, this is ridiculous...It is unnecessary for every single post I made yesterday to be ignored...

Could somebody PLEASE check out my problem? I posted it on page 31...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 03, 2009, 08:39:10 PM
Quote from: Shadow03 on March 03, 2009, 08:26:54 PM
Okay, this is ridiculous...It is unnecessary for every single post I made yesterday to be ignored...

Could somebody PLEASE check out my problem? I posted it on page 31...

Look at my post 4 posts the one you just made.

http://www.simplemachines.org/community/index.php?topic=257973.msg1959286#msg1959286
Title: Re: AjaxChat Integration
Post by: Deju on March 04, 2009, 10:37:07 AM
I was about to install this mod with smf1.1.8,  tinyportal 0.9.8, black rain v.2 . First I installed the chat: http://troutlegend.com/forum/chat/index . Forum at: http://troutlegend.com/forum1/ or http://troutlegend.com/forum/ unwrapped.  I got the 2 errors below (2&14) - should I continue?

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/BoardIndex.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Sources/Subs.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/index.template.php    Test successful
7.    Execute Modification    ./Themes/default/style.css    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
10.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
11.    Execute Modification    ./Themes/default/languages/Modifications.persian.php    Skipping file
12.    Execute Modification    ./chat/index.php    Test successful
13.    Execute Modification    ./chat/lib/class/AJAXChat.php    Test successful
14.    Execute Modification    ./chat/lib/class/AJAXChatDataBase.php    Test failed
15.    Execute Modification    ./chat/lib/config.php    Test successful
16.    Execute Modification    ./chat/lib/template/shoutbox.html    Test successful
17.    Execute Modification    ./chat/lib/template/loggedOut.html    Test successful
18.    Execute Modification    ./chat/css/shoutbox.css    Test successful
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 04, 2009, 10:49:04 AM
Regarding: ./chat/lib/class/AJAXChatDataBase.php    Test failed

There was a post earlier about that and I think you have the wrong Chat Version. I know they just released a new one but...

This is the version of AJAX Chat you want.

Download ajax_chat-0.8.1.2_SMF.tar.gz  (https://sourceforge.net/project/downloading.php?group_id=214758&use_mirror=&filename=ajax_chat-0.8.1.2_SMF.tar.gz&70178931)

The ./Sources/ManagePermissions.php  Test failed can be easily fixed using a  Package Parser (http://resourcez.biz/PackageParser/)
Title: Re: AjaxChat Integration
Post by: dreamwhisper on March 04, 2009, 12:27:12 PM
Ok, I'm getting the managepermissions.php failure as well.  I used the parser to get the manual instructions and changed my managepermissions.php file to:
'profile_upload_avatar' => false,
'profile_remote_avatar' => false,
'give_awards' => false,
'profile_personal_icon' => false,
),
'chat' => array(
'chat_access' => false,
)
),
'board' => array(


Should I still get the "test failed"?
It then asks if I'm sure I want to continue even though the installation won't be successful. 
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 04, 2009, 12:48:48 PM
Quote from: dreamwhisper on March 04, 2009, 12:27:12 PM
Ok, I'm getting the managepermissions.php failure as well.  I used the parser to get the manual instructions and changed my managepermissions.php file to:

Should I still get the "test failed"?
It then asks if I'm sure I want to continue even though the installation won't be successful.

Make a backup of the managepermissions.php (just rename it) before you do the edit.

Go ahead and install the MOD and ignore the error, then upload the edited file.
Title: Re: AjaxChat Integration
Post by: dreamwhisper on March 04, 2009, 02:06:03 PM
Thanks.  I installed the mod and uploaded the changed file.  I'm just a bit confused though.

I changed the permissions in the user groups and I see the "no user in chat" at the bottom of the forum.  However, how do you get into chat?  I'm certain I need to add a button in my theme - I guess.  Also, is there an options page or configuration page?  I can't seem to find it.  Sorry.  Cringing....(just cant seem to search on the right thing in the forum here)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 04, 2009, 02:13:29 PM
Quote from: dreamwhisper on March 04, 2009, 02:06:03 PM
Thanks.  I installed the mod and uploaded the changed file.  I'm just a bit confused though.

I changed the permissions in the user groups and I see the "no user in chat" at the bottom of the forum.  However, how do you get into chat?  I'm certain I need to add a button in my theme - I guess.  Also, is there an options page or configuration page?  I can't seem to find it.  Sorry.  Cringing....(just cant seem to search on the right thing in the forum here)

Can you post a link to your site, or send a PM if you don't want it public.

Also a link to the theme you're using.
Title: Re: AjaxChat Integration
Post by: Deju on March 04, 2009, 03:01:25 PM
I switched out the chat script and that solved the one error, but I'm still getting the managepermissions error.  I'm unsure of what exactly to change in that file?  I made a backup, made what I thought were the correct changes, but still got the error and never followed through with the mod application.  My file doesn't look exactly like the "find" text.

$permissionList = array(
'membergroup' => array(
'general' => array(
'view_stats' => false,
'view_mlist' => false,
'who_view' => false,
'search_posts' => false,
'karma_edit' => false,
),
'pm' => array(
'pm_read' => false,
'pm_send' => false,
),
'calendar' => array(
'calendar_view' => false,
'calendar_post' => false,
'calendar_edit' => true,
),
'maintenance' => array(
'admin_forum' => false,
'manage_boards' => false,
'manage_attachments' => false,
'manage_smileys' => false,
'edit_news' => false,
),
'member_admin' => array(
'moderate_forum' => false,
'manage_membergroups' => false,
'manage_permissions' => false,
'manage_bans' => false,
'send_mail' => false,
),
'profile' => array(
'profile_view' => true,
'profile_identity' => true,
'profile_extra' => true,
'profile_title' => true,
'profile_remove' => true,
'profile_server_avatar' => false,
'profile_upload_avatar' => false,
'profile_remote_avatar' => false,
),
// TinyPortal
'tinyportal' => array(
'tp_settings' => false,
'tp_blocks' => false,
'tp_articles' => false,
),
'tinyportal_dl' => array(
'tp_dlmanager' => false,
'tp_dlupload' => false,
),
'tinyportal_link' => array(
'tp_linkmanager' => false,
),
'tinyportal_gallery' => array(
'tp_gallery' => false,
),
'tinyportal_team' => array(
'tp_teampage' => false,
)
),
'board' => array(
'general_board' => array(
'moderate_board' => false,
),
'topic' => array(
'post_new' => false,
'merge_any' => false,
'split_any' => false,
'send_topic' => false,
'make_sticky' => false,
'move' => true,
'lock' => true,
'remove' => true,
'post_reply' => true,
'modify_replies' => false,
'delete_replies' => false,
'announce_topic' => false,
),
'post' => array(
'delete' => true,
'modify' => true,
'report_any' => false,
),
'poll' => array(
Title: Re: AjaxChat Integration
Post by: dreamwhisper on March 04, 2009, 03:14:36 PM
Thanks a bunch.  Interestingly, my theme doesn't have a BoardIndex.template.php.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 04, 2009, 04:44:53 PM
Ok I got your theme going on my site, check it out here http://monsters-mansion.com/test118/index.php

username: test
password: testuser
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 04, 2009, 06:02:08 PM
Here you go dreamwhisper. Just upload these to forum/Themes/yourtheme/ and you're all set.
Title: Re: AjaxChat Integration
Post by: Deju on March 04, 2009, 06:58:08 PM
mrt, do you suggest I follow your instructions for dream and just go ahead and install the mod?
Title: Re: AjaxChat Integration
Post by: dreamwhisper on March 05, 2009, 12:02:03 AM
I'm having problems with BOMs after installing this and integrating it with my theme.  On my main page, the BOM is located at the top left of the file.  On all other pages, the BOM is above the number of users in chat.  Before I placed the users in chat code, the BOM was located in the menu bar next to the chat button.

As it is a members only site, when you log out, the number of users in chat disappears and the BOM is in the menu bar, which totally breaks layout.


Nevermind, I believe I have solved it! 
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 05, 2009, 01:49:13 AM
Quote from: dreamwhisper on March 05, 2009, 12:02:03 AM
Nevermind, I believe I have solved it!

Cool glad you got it sorted, how did it work out for you after the files I uploaded?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 05, 2009, 02:24:47 AM
Quote from: Deju on March 04, 2009, 06:58:08 PM
mrt, do you suggest I follow your instructions for dream and just go ahead and install the mod?

Attach the file you're still getting the error on and I'll take a look
Title: Re: AjaxChat Integration
Post by: Deju on March 05, 2009, 09:34:55 AM
I tried over and over again to download the file from my Godaddy server, but it wouldn't go.  Get back to you asap.  thank you ahead for the help.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 05, 2009, 09:44:06 AM
Are you trying to download it via your cPanel? Use an FTP and you're life become way easier ;D
http://filezilla-project.org/download.php?type=client
Title: Re: AjaxChat Integration
Post by: Deju on March 05, 2009, 09:51:09 AM
Man, you are on the money 8)  Just found the ftp and walla! lol

Is there anything else you need?
Title: Re: AjaxChat Integration
Post by: dreamwhisper on March 05, 2009, 10:05:35 AM
Quote from: mrtrc266 on March 05, 2009, 01:49:13 AM
Cool glad you got it sorted, how did it work out for you after the files I uploaded?

Your files were extremely helpful.  My problem originated from a bad backup of my theme and a BOM in the chat config file.  I just had to resave that file in Notepad++ and all was good.  The trick was finding which file had the BOM!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 05, 2009, 10:18:12 AM
Quote from: Deju on March 05, 2009, 09:51:09 AM
Man, you are on the money 8)  Just found the ftp and walla! lol

Is there anything else you need?

Here you go Deju, go ahead and proceed with this install and then upload this to your Sources direcory.

Title: Re: AjaxChat Integration
Post by: petrus2 on March 05, 2009, 10:54:46 AM
i want to ask...
when i create directory and install the mod..
there is a output...

Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in C:\xampp\htdocs\forum\SSI.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\forum\Sources\SPortal2.php:4022) in C:\xampp\htdocs\forum\Sources\Errors.php on line 290

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\forum\Sources\SPortal2.php:4022) in C:\xampp\htdocs\forum\Sources\Subs.php on line 3401

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\forum\Sources\SPortal2.php:4022) in C:\xampp\htdocs\forum\Sources\Subs.php on line 3402

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\forum\Sources\SPortal2.php:4022) in C:\xampp\htdocs\forum\Sources\Subs.php on line 3408

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\forum\Sources\SPortal2.php:4022) in C:\xampp\htdocs\forum\Sources\Subs.php on line 3411
My Community


what the solution of this??
thankssss
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 05, 2009, 01:04:13 PM
@ petrus2 Search around for Notice: SSI.php was unable to load a session! it seems there are a few issues with that error.
Title: Re: AjaxChat Integration
Post by: Deju on March 05, 2009, 01:29:53 PM
mrt,

I installed the mod and then uploaded your file.  I see the options in the "basic features" section, but nothing else has changed.  I'm probably missing something major - sorry.  Do I need to make ALL the changes listed the 1.1.8 parser list not just the managepermissions.php file?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 05, 2009, 01:36:24 PM
Quote from: Deju on March 05, 2009, 01:29:53 PM
mrt,

I installed the mod and then uploaded your file.  I see the options in the "basic features" section, but nothing else has changed.  I'm probably missing something major - sorry.  Do I need to make ALL the changes listed the 1.1.8 parser list not just the managepermissions.php file?

Are you using a custom theme? If so you need to just go enable the shoutbox.

Admin/Features and Options/Basic Features

And check these boxes...
Enable the ShoutBox?   
check for ShoutBox on any page or uncheck for only in index page:   
chat in popup page?   
Enable online chat users numbering on chat button?   

If you have a custom theme the edits for that theme will need to be done
Title: Re: AjaxChat Integration
Post by: Deju on March 05, 2009, 01:40:23 PM
yeah, my theme is blackrain form bloc.  So, I'd need to just pick out the edits having to do with my particular theme and make only those?
http://troutlegend.com/forum1/ (http://troutlegend.com/forum1/)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 05, 2009, 01:46:40 PM
Yes you'll have to do the manual edits for the theme. Let me know if you need any help.
Title: Re: AjaxChat Integration
Post by: Deju on March 05, 2009, 02:36:35 PM
mrt,

Maybe you can help me out here, but also teach a man to fish:)

I can easily find and replace text, but I get scared when the "Find" doesn't match up with my file.  Maybe there's a br>/ or something extra or missing or a whole section that doesn't match up.  How do you decide what to replace and where to add?  Find the theme files attached.

Also, do you download and then modify the files?  And if so what program do you use?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 05, 2009, 02:52:56 PM
Most custom themes will be different than the default, so the code to "find" won't always be there. You just have to look at where it goes in the default file and then compare it to your custom file. Then just keep playing with it until it's in the right spot.

I use Notepad++  (http://sourceforge.net/project/downloading.php?group_id=95717&use_mirror=voxel&filename=npp.5.2.Installer.exe&a=40986710) to edit the files, it supports many file type and won't mess up the formating

Do you have a link to the theme you're using? There are 2 Black Rains. Got it.

Here are you're files, one thing to note though, you have a white background so you might have to play with your themes style.css or the shoutbox.css so it's not white on white.
Title: Re: AjaxChat Integration
Post by: suitupdude on March 05, 2009, 08:46:06 PM
hello,

I just installed SMF 1.1.8 and it works fine.
Added a theme, changed baner, fine aswell.

Now I want to add a shoutbox, so I this mod and wanted to install it.
But I got a problem, I just can't install it :|

here is the forum: http://mecchaniciens.free.fr/

here is where I have to go to install ajax chat 0.8.2: http://mecchaniciens.free.fr/chat/

and here is the error:
QuoteConnection Problems

Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

checked logs for database in setting.php in root folder but they are good..Got this error since 8 PM (europe).


so if you have any idea...thanks :]
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 05, 2009, 09:24:03 PM
@ suitupdude

Did you install the AJAX Chat exactly like this?

Download ajax_chat-0.8.1.2_SMF.tar.gz  (https://sourceforge.net/project/downloading.php?group_id=214758&use_mirror=&filename=ajax_chat-0.8.1.2_SMF.tar.gz&70178931)

Unzip the package and via your FTP copy the whole chat folder in your root directory and then point your browser to yourforum/chat/install.php

And when you're done be sure to delete the install.php

Then you would install this AJAX Chat Intergration MOD Version 2.5
(http://custom.simplemachines.org/mods/index.php?mod=1319)
Title: Re: AjaxChat Integration
Post by: suitupdude on March 05, 2009, 10:03:19 PM
I did unzip it: ajax_chat-0.8.2_SMF.zip  (from: http://sourceforge.net/project/showfiles.php?group_id=214758&package_id=258987&release_id=664620 )  in my desktop (so I got the chat folder which contain all files)  then I put it in my FTP (so  url/chat/install.php) and it doesn't work. I can't intall it, it gives me what I said previously, as error message..so I can't go to the 2nd step which is to install the mod (AJAX Chat Intergration MOD Version 2.5)

ps: the forum is on the root@ftp, which means root/index.php, so I put the folder to install the chat here:  root/chat/install.php
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 05, 2009, 10:29:19 PM
Do you have a folder /public_html/ or yourforum/htdocs/ ?

That's where the chat should go

yourforum/public_html/chat/ or /yourforum/htdocs/chat/
Title: Re: AjaxChat Integration
Post by: suitupdude on March 05, 2009, 10:57:29 PM
that's like that:

http://mecchaniciens.free.fr/screen.jpg
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 05, 2009, 11:22:02 PM
Quote from: suitupdude on March 05, 2009, 10:57:29 PM
that's like that:

http://mecchaniciens.free.fr/screen.jpg

Yeah, that's the wrong spot

LOL I was drinkin!!!

PM sent
Title: Re: AjaxChat Integration
Post by: ninedoors on March 06, 2009, 08:06:50 AM
I did the ajax chat upload to my server.  Then I tried to run the install.php file and I have an error on the screen that says 'No database selected'.

In the forum error log I have this:

: No database selected
/public_directory/forum/Sources/Load.php
535

On line 535 is where I have a custom query that loads the a member's team name that he is on for my hockey league.  This query runs fine with no errors with every other file.  Here it is:


<?php
//get user's team
    
$request db_query("
            SELECT teamID, jerseyID, division, position, season
            FROM bmhl_member_teams
            WHERE ID_MEMBER = '"
.$ID_MEMBER."' AND rostered = 1 ORDER BY id DESC"__FILE____LINE__);
    
$numrows mysql_num_rows($request);
    if (
$numrows 0)
    {
        while (
$row mysql_fetch_assoc($request))
        {
            
$user_info['teams'][$row['teamID']] = array(
                        
'teamID' => $row['teamID'],
                        
'jersey' => $row['jerseyID'],
                        
'div' => $row['division'],
                        
'pos' => $row['position'],
                        
'season' => $row['season']
                        );
        }
        
mysql_free_result($request);
    }
    else
    {
        
$user_info['teams'][0] = array();
    }
?>


Anyone had this happen to them before? Or seen this error?

Thanks Nick
Title: Re: AjaxChat Integration
Post by: ninedoors on March 06, 2009, 08:14:42 AM
Also, I get the exact same error when I call the index.php file as well.  I installed the DB tables thru phpMyAdmin myself.  Is that the only thing the install.php file does?  Or is the more I need to manually do?

Nick
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 06, 2009, 12:12:41 PM
Quote from: ninedoors on March 06, 2009, 08:14:42 AM
Also, I get the exact same error when I call the index.php file as well.  I installed the DB tables thru phpMyAdmin myself.  Is that the only thing the install.php file does?  Or is the more I need to manually do?

Nick

Yes I believe that's the only thing the chat/install.php does is create these tables

ajax_chat_bans 
ajax_chat_invitations       
ajax_chat_messages
ajax_chat_online 
Title: Re: AjaxChat Integration
Post by: ninedoors on March 06, 2009, 12:28:24 PM
Ok, so do you know what classes calls the load.php file?  That way I can try and fix the error i keep getting
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 06, 2009, 12:48:29 PM
Not sure, it's odd though the chat/install just creates those 4 table in the DB.

Just looking through the parser I don't see where this MOD or the actual chat is called from the load.php at all. During the install the load.php file isn't edited at all.

EDIT:

I just installed a fresh chat on a test site. Ran the mysite/chat/install.php and this is the result....

Database tables created successfully - please delete this file (install.php).
Title: Re: AjaxChat Integration
Post by: Deju on March 06, 2009, 06:50:35 PM
mrt,  Thank you very much for your time, patience, and expertise in helping to set up my Chatroom.  It's up running and the responses are very positive thus far.  Ideas like "Open Source" and "The Social Web" wouldn't exist if it were not for people like you. 
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 06, 2009, 08:50:54 PM
Quote from: Deju on March 06, 2009, 06:50:35 PM
mrt,  Thank you very much for your time, patience, and expertise in helping to set up my Chatroom.  It's up running and the responses are very positive thus far.  Ideas like "Open Source" and "The Social Web" wouldn't exist if it were not for people like you.

Thank you very much for the compliments :) I'm far from an expert, I barely know what I'm doing but I love a challenge ;) I know how much of an asset this AJAX Chat and Intergration MOD are to a community, so I'm glad I was able to help you get it goin'.
Title: Re: AjaxChat Integration
Post by: bullbreedluverz on March 07, 2009, 06:39:49 AM
hi ive got couple problems with the integration for chatroom

1) when entering chat it doesnt open in a new window - i have the popup selected

2) i have a custom menu bar, its a static menu positioned at top of my screen, and the users in chat doesnt display there

3) i dont have a header on my forum so cant display users in chat in the header info section, which code operates this so i can try moving it to a place somewhere at the top of my forum

cheers
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 07, 2009, 10:25:22 AM
Quote from: bullbreedluverz on March 07, 2009, 06:39:49 AM
hi ive got couple problems with the integration for chatroom

1) when entering chat it doesnt open in a new window - i have the popup selected

2) i have a custom menu bar, its a static menu positioned at top of my screen, and the users in chat doesnt display there

3) i dont have a header on my forum so cant display users in chat in the header info section, which code operates this so i can try moving it to a place somewhere at the top of my forum

cheers

For 1, 2 and 3 it looks like you just need to do the manual edits for your theme using a Package Parser (http://resourcez.biz/PackageParser/index.php)

1. After doing the manual edits make sure you don't have PopUp Blockers on. It works fine in IE and FF tested on 118 and RC1

2. Doing the manual edits for your theme should show the number of users on the chat menu button.

3. When you open the intergration MOD in the Package Parser look for this piece of code that shows the number of users in chat. Just a thought though, if you want this at the top of your forum you will already have the number of users on the top of your forum on the menu button. Might be kind of redundent?

if ($modSettings['enableChatBelowPM']){
if (count(array_unique(getChatOnlineUserIDs())) == 0 )
echo '<br />' . $txt['chat_no_user'];
elseif (count(array_unique(getChatOnlineUserIDs())) == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' . count(array_unique(getChatOnlineUserIDs())). $txt['chat_users']. '<br />';


Have fun and good luck ;)
Title: Re: AjaxChat Integration
Post by: bullbreedluverz on March 07, 2009, 12:28:21 PM
i did have a look at some the manual edits and they seemed fine but ill go thru it all a lot closer later

the reason i may need to place the users in chat somewhere at top my forum is because the number on the chat button may not work because of my custom menu bar
Title: Re: AjaxChat Integration
Post by: Damien666 on March 07, 2009, 07:53:46 PM
Ok so i got it running but i cant see any of the link texts for it, check boxs there and work but no text.

www.aefleet.com

I just updated from 1.1.7 - 1.1.8
No mods installed yet.


also where do i find the custom theme coding?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 08, 2009, 12:40:39 AM
Quote from: Damien666 on March 07, 2009, 07:53:46 PM
Ok so i got it running but i cant see any of the link texts for it, check boxs there and work but no text.

www.aefleet.com

I just updated from 1.1.7 - 1.1.8
No mods installed yet.


also where do i find the custom theme coding?

Not sure exaclty what you mean by "link texts" Looking at your forum it seems that everything is showing just fine?

Regarding the custom theme coding you'll have to use a Package Parser (http://resourcez.biz/PackageParser/)to do the edits.
Title: Re: AjaxChat Integration
Post by: Damien666 on March 08, 2009, 01:48:11 AM
i got it working just need mabey some help on custom theme.


working on menu

Quote// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
      <ul id="menu">';

   // Show the default [home] button.
   echo   '<li', $current_action == "home" ? ' class="current"' : '', '><a href="', $scripturl, '"><strong>' , $txt[103] , '</strong></a></li>';
     
     
   // How about the [Forum] button?
   if(!empty($context['portalactive']))
      echo '<li', $current_action == "forum" ? ' class="current"' : '', '><a href="', $scripturl, '?action=forum"><strong>' , $txt['sp-forum'] , '</strong></a></li>';
 
   // How about the [search] button?
   if ($context['allow_search'])
      echo '<li', $current_action == "search" ? ' class="current"' : '', '><a href="', $scripturl, '?action=search"><strong>' , $txt[182] , '</strong></a></li>';

   // Is the user allowed to administrate at all? ([admin])
   if ($context['allow_admin'])
      echo '<li', $current_action == "admin" ? ' class="current"' : '', '><a href="', $scripturl, '?action=admin"><strong>' , $txt[2] , '</strong></a></li>';

   // Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo '<li', $current_action == "profile" ? ' class="current"' : '', '><a href="', $scripturl, '?action=profile"><strong>' , $txt[79] , '</strong></a></li>';

   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
      echo '<li', $current_action == "pm" ? ' class="current"' : '', '><a href="', $scripturl, '?action=pm"><strong>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ?

'[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</strong></a></li>';

   // The [calendar]!
   if ($context['allow_calendar'])
      echo '<li', $current_action == "calendar" ? ' class="current"' : '', '><a href="', $scripturl, '?action=calendar"><strong>' , $txt['calendar24'] , '</strong></a></li>';

// The [calendar]!
   if ($context['allow_chat'])
      echo '<li', $current_action == "chat/index.php" ? ' class="current"' : '', '><a href="', $scripturl, '?action=chat/index.php"><strong>' , $txt['chat'] , '</strong></a></li>';


// [SMF Media Gallery]
   if (allowedTo('mgallery_access'))
      echo '<li', $current_action == "mgallery" ? ' class="current"' : '', '><a href="', $scripturl, '?action=mgallery"><strong>' , $txt['mgallery_gallery'] , '</strong></a></li>';

  // the [member] list button
   if ($context['allow_memberlist'])
      echo '<li', $current_action == "mlist" ? ' class="current"' : '', '><a href="', $scripturl, '?action=mlist"><strong>' , $txt[331] , '</strong></a></li>';


   // If the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
      echo '<li', $current_action == "login" ? ' class="current"' : '', '><a href="', $scripturl, '?action=login"><strong>' , $txt[34] , '</strong></a></li>';


   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
      echo '<li', $current_action == "register" ? ' class="current"' : '', '><a href="', $scripturl, '?action=register"><strong>' , $txt[97] , '</strong></a></li>';


   // Otherwise, they might want to [logout]...
   if ($context['user']['is_logged'])
      echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><strong>' , $txt[108] , '</strong></a></li>';

   echo '</ul>';
}


I have no idea where to start on the shoutbox its self. Im useing Efsane Atomic theme. Any help is welcome


edit:  trying the package parser
Title: Re: AjaxChat Integration
Post by: Xboers on March 08, 2009, 04:57:34 AM
Where should I post?

Is there a fuction on this chat whereby I could set a MINIMUM post size? I would like to have the people on my chat post no less than 20 words and if they do and error message telling then that: "Sorry, this is a discussion Chat and your reply must consist of more than twenty words. Please try again."

Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 08, 2009, 10:41:18 AM
Quote from: Xboers on March 08, 2009, 04:57:34 AM
Where should I post?

Is there a fuction on this chat whereby I could set a MINIMUM post size? I would like to have the people on my chat post no less than 20 words and if they do and error message telling then that: "Sorry, this is a discussion Chat and your reply must consist of more than twenty words. Please try again."

Not sure how to get a custon error message but here it the code that will set the min/max charcters..

/yourforum/chat/lib/config.php

find
// Max messageText length:
$config['messageTextMaxLength'] = 1040;


and change to whatever you'd like
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 08, 2009, 10:52:07 AM
@ Damien666

GL w/ the Parser, attatch up your theme files if you have any troubles.
Title: Re: AjaxChat Integration
Post by: Xboers on March 08, 2009, 11:05:57 AM
Quote from: mrtrc266 on March 08, 2009, 10:41:18 AM
Quote from: Xboers on March 08, 2009, 04:57:34 AM
Where should I post?

Is there a fuction on this chat whereby I could set a MINIMUM post size? I would like to have the people on my chat post no less than 20 words and if they do and error message telling then that: "Sorry, this is a discussion Chat and your reply must consist of more than twenty words. Please try again."

Not sure how to get a custon error message but here it the code that will set the min/max charcters..

/yourforum/chat/lib/config.php

find
// Max messageText length:
$config['messageTextMaxLength'] = 1040;


and change to whatever you'd like

Tried to put in a MIN string but that did not word.

Thanks mrtc266, I need to NOT limit the words Max, but the words MIN
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 08, 2009, 11:44:01 AM
Oooops, sorry I misread your post. That's what I get for posting BEFORE coffee ;D.

Not sure about that one, will look into it though after work. Just at a quick glance there are 9 files with 12 referrences to the messageTextMaxLength. Might be a tough one.
Title: Re: AjaxChat Integration
Post by: Xboers on March 08, 2009, 11:51:18 AM
 :)

Thanks! No hurry ....
Title: Re: AjaxChat Integration
Post by: fotografo74 on March 08, 2009, 03:02:08 PM
Quote from: fotografo74 on February 23, 2009, 10:39:29 AM
Quote from: mrtrc266 on February 23, 2009, 10:27:59 AM
Quote from: fotografo74 on February 23, 2009, 09:44:30 AM
Quote from: mrtrc266 on February 23, 2009, 09:37:17 AM
Quote from: fotografo74 on February 23, 2009, 01:32:21 AM
the permission are ok, i'm admin and shout not shows. Language is english but not UTF-8.
thanks!

Did you get this sorted?
I set now to UTF-8 but still not shows...

I just went to your site and another thing I noticed is that you can't log out of the chat room. I'm not sure what's causing the prob, maybe something went awry during the install?

I would start from scratch and try to reinstall.

Set your forum back to English (and leave it at English), uninstall the Intergration Mod and delete the entire /chat folder and drop these table from from your Cpanel/phpMyAdmin

ajax_chat_bans 
ajax_chat_invitations       
ajax_chat_messages
ajax_chat_online 

Reinstall this version of ajax_chat-0.8.1.2_SMF.tar.gz  (https://sourceforge.net/project/downloading.php?group_id=214758&use_mirror=superb-east&filename=ajax_chat-0.8.1.2_SMF.tar.gz&a=45696770)

And then the Intergration MOD Version 2.5. Give that a shot and see if it helps.


Ok, i try now
Thanks!

I solved!
I moved the forum to root directory and now all works ok!
Thans!
Antonio
Title: Re: AjaxChat Integration
Post by: Damien666 on March 08, 2009, 05:39:56 PM
Im haveing no luck with the package parser, and the chat link i cant get to show up right i dont care if the user count dont show just need the darn link to work and look right.

If anyone want to try good luck i cant find any of the (find this and replace) lines that the package parser says should be there.
Title: Re: AjaxChat Integration
Post by: tfs on March 08, 2009, 06:23:33 PM
>>1. What is the best feature can be added to this chat?

It needs the ability to limit shoutbox access to specific security levels.  I want to enable it on all of my pages, but that means that people who haven't logged in have access to the shoutbox.  A bad thing on a private board.

Also, setup should be moved to its own separate panel.
Title: Re: AjaxChat Integration
Post by: Mystery? on March 08, 2009, 07:03:26 PM
Whenever I try to delete a message, it deletes fine, but then it says Error: Connection status: 0.

Also how do I add or delete channels and not allow boards to be chatrooms.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 08, 2009, 10:13:10 PM
Quote from: Damien666 on March 08, 2009, 05:39:56 PM
Im haveing no luck with the package parser, and the chat link i cant get to show up right i dont care if the user count dont show just need the darn link to work and look right.

If anyone want to try good luck i cant find any of the (find this and replace) lines that the package parser says should be there.

Do you have a link to the theme you're using?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 08, 2009, 10:25:00 PM
Quote from: Mystery? on March 08, 2009, 07:03:26 PM
Whenever I try to delete a message, it deletes fine, but then it says Error: Connection status: 0.

Also how do I add or delete channels and not allow boards to be chatrooms.

Not sure about the "delete error" but just a few pages back you would have seen this post regarding adding/deleting channels or creating custom channels

http://www.simplemachines.org/community/index.php?topic=257973.msg1954273#msg1954273
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 08, 2009, 10:26:27 PM
Quote from: tfs on March 08, 2009, 06:23:33 PM
>>1. What is the best feature can be added to this chat?

It needs the ability to limit shoutbox access to specific security levels.  I want to enable it on all of my pages, but that means that people who haven't logged in have access to the shoutbox.  A bad thing on a private board.

Also, setup should be moved to its own separate panel.

Here is an ugly fix so that guests cannot see the chat...

http://www.simplemachines.org/community/index.php?topic=257973.msg1957514#msg1957514

Hopefully it will be fixed in the next release.
Title: Re: AjaxChat Integration
Post by: Amordadnet on March 10, 2009, 07:11:38 AM
Hi.

sorry, when i intall this mod i see this message in board index:

Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM ``.ajax_chat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE) ORDER BY userName; Error-Report: Error-Code:

1. i installed ajax_chat-0.8.2_SMF.zip in mysite.com/forum/chat
2. mysite.com/forum/chat/install.php
3. delete install.php
4. everything was ok, and chat index in mysite.com/forum/chat/index.php was running
5. i install AjaxChat_Integration_2.5.zip
and :

Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM ``.ajax_chat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE) ORDER BY userName; Error-Report: Error-Code:

!

why? what mistake?


thanks
Title: Re: AjaxChat Integration
Post by: MyOwnInsanity on March 10, 2009, 07:17:39 AM
ok when i installed the mod(after installing ajax chat) the only error that came up is the Execute Modification     ./Sources/ModSettings.php     Test failed, i know everything works fine(have tested the chat) but because of the error i cannot find any way to do anything to it in the features and options in the admin CP. Is there any way someone can help me getting the the options for the chat to show( i tried something that was said much earlier on in this thread but didnt work seeing that i already have everything that was said) i am using the default theme BUT its the Dark Default Theme Black
Title: Re: AjaxChat Integration
Post by: gothicfires on March 10, 2009, 08:28:44 AM
To amordadnet... you went to index.php... repleace index with install.php

I am getting the same problem as myowninsaity

when i first ran the check to install it gave an error here 15.     Execute Modification     ./chat/lib/class/AJAXChatDataBase.php

i installed it anyway and there was no permission check box to give anyone permission to see the chat nor was it there for administrator who had permission anyway
Title: Re: AjaxChat Integration
Post by: fotografo74 on March 10, 2009, 09:06:21 AM
Hi:-)
The regular members now can delete post of other regular members...it's normal this?
Antonio
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 10, 2009, 10:51:27 AM
Quote from: MyOwnInsanity on March 10, 2009, 07:17:39 AM
ok when i installed the mod(after installing ajax chat) the only error that came up is the Execute Modification     ./Sources/ModSettings.php     Test failed, i know everything works fine(have tested the chat) but because of the error i cannot find any way to do anything to it in the features and options in the admin CP. Is there any way someone can help me getting the the options for the chat to show( i tried something that was said much earlier on in this thread but didnt work seeing that i already have everything that was said) i am using the default theme BUT its the Dark Default Theme Black

Attatch your ModSettings.php file
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 10, 2009, 10:54:16 AM
Quote from: gothicfires on March 10, 2009, 08:28:44 AM
To amordadnet... you went to index.php... repleace index with install.php

I am getting the same problem as myowninsaity

when i first ran the check to install it gave an error here 15.     Execute Modification     ./chat/lib/class/AJAXChatDataBase.php

i installed it anyway and there was no permission check box to give anyone permission to see the chat nor was it there for administrator who had permission anyway

That error on tinstall you got was nothing to worry about, the edit that it was trying to do was already done in the latest release of AJAX Chat.

What version on SMF are you running?
Title: Re: AjaxChat Integration
Post by: gothicfires on March 10, 2009, 11:03:08 AM
Gee that is embaressing. As a former software techical support I should have figured to put that information in there.

I am using 2.0RC1.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 10, 2009, 11:45:16 AM
Not sure if I understood the problem 100% but...

The permission settings should be in Admin/Members/Permissions/ select the group you want to have permissions and check "Access to chat" in the General Category.

Anyone who has Admin or Moderator rights on your forum should automatically have Moderator rights in the Chat.

If you're saying that you don't have the "Access to chat" checkbox in your permission settings then, hmmmm, are you using a custom theme?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 10, 2009, 11:57:16 AM
Quote from: fotografo74 on March 10, 2009, 09:06:21 AM
Hi:-)
The regular members now can delete post of other regular members...it's normal this?
Antonio

Do you have your regular members based off a group that has or had moderator priviledges?
Title: Re: AjaxChat Integration
Post by: gothicfires on March 10, 2009, 12:04:34 PM
Quote from: mrtrc266 on March 10, 2009, 11:45:16 AM
Not sure if I understood the problem 100% but...

The permission settings should be in Admin/Members/Permissions/ select the group you want to have permissions and check "Access to chat" in the General Category.

Anyone who has Admin or Moderator rights on your forum should automatically have Moderator rights in the Chat.

If you're saying that you don't have the "Access to chat" checkbox in your permission settings then, hmmmm, are you using a custom theme?

No. I am using a test site with an almost clean install of 2.0 rc1. It has had nneonneo's AJAX ShoutBox installed and uninstalled. I have 1 administrator and one regular member. other than that there has been no other alterations or installs.

after ajaxchat integration is installed I can see at the bottom that it says no one is in chat, but there is no chat box anywhere and going into permissions there is no option for 'chat' per the screen shot on the mod download page (this of course is while i am logged in as the administator.)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 10, 2009, 12:48:04 PM
Sorry for the delay, damn Internet/Cable/Phone went down LOL

If you're using the default theme of a fresh install it has to be something simple

Do you see the chat button on the menu?

For the shoutbox be sure to go to Admin/Configuration/Modifications/Chat/ and you should see these options...

Enable the ShoutBox?   
check for ShoutBox on any page or uncheck for only in index page:   
chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?   

Title: Re: AjaxChat Integration
Post by: gothicfires on March 10, 2009, 12:53:55 PM
thanks... not being accustomed to the look ov 2.0 is really throwing me.

you're a gem
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 10, 2009, 01:00:54 PM
You're welcome...Glad you got it goin :)
Title: Re: AjaxChat Integration
Post by: Ingtar on March 10, 2009, 01:21:45 PM
sending a picture in 1.1.8 locked out my chat and forum.  I need to disable that, apparently
Title: Re: AjaxChat Integration
Post by: fotografo74 on March 10, 2009, 01:49:39 PM
Quote from: mrtrc266 on March 10, 2009, 11:45:16 AM
Not sure if I understood the problem 100% but...

The permission settings should be in Admin/Members/Permissions/ select the group you want to have permissions and check "Access to chat" in the General Category.

Anyone who has Admin or Moderator rights on your forum should automatically have Moderator rights in the Chat.

If you're saying that you don't have the "Access to chat" checkbox in your permission settings then, hmmmm, are you using a custom theme?
Thanks for your support and sorry for my poor english :-(
I have selected right permission, sure, and regular members, admin and moderators have access to chat, it's ok.
But regular members can delete post of other regular members...it's ok this ?
I.e: i'm regular member and i access to chat...i write message...you are regular member and you can delete my message!!!

Thanks!
Antonio
Title: Re: AjaxChat Integration
Post by: filipes on March 10, 2009, 04:06:12 PM
Hello
I've installed it, it works on the default theme, but i have a problem, my forum style is "Extreme6" theme,but in this theme it does not work,can any one help me please.
Thnks ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 01:49:05 AM
Quote from: filipes on March 10, 2009, 04:06:12 PM
Hello
I've installed it, it works on the default theme, but i have a problem, my forum style is "Extreme6" theme,but in this theme it does not work,can any one help me please.
Thnks ;)

I have it workin in the same theme http://monsters-mansion.com

What seems to be the problem?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 01:51:04 AM
@ fotografo74 

You are correct, regular users should only be able to delete their own messages. For some reason they have Moderator Rights.

Can you post a link to your site or PM it to me if you don't want it public?
Title: Re: AjaxChat Integration
Post by: filipes on March 11, 2009, 02:49:47 AM
Quote from: mrtrc266 on March 11, 2009, 01:49:05 AM
Quote from: filipes on March 10, 2009, 04:06:12 PM
Hello
I've installed it, it works on the default theme, but i have a problem, my forum style is "Extreme6" theme,but in this theme it does not work,can any one help me please.
Thnks ;)
Hello
In the theme Extreme6 nothing at all, I do not see the Shoutbox,in the theme default it works ok.....
Thanks for your help ;)

I have it workin in the same theme http://monsters-mansion.com

What seems to be the problem?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 10:40:49 AM
@ filipes you will have to use a Package Parser  (http://resourcez.biz/PackageParser) to do all the manual edits for your theme.

Also for the Extreme6 Theme you will need to make a custom image for your chat button. Templates can be found in the .PSD file, download it from the same place you got the theme.
Title: Re: AjaxChat Integration
Post by: filipes on March 11, 2009, 12:24:26 PM
Thank You for your help, I do not understand a lot of this, I think I will stay like this because I do not how to do that...
I am sorry for my Inglesh I am Portuguese :(
Thanks a lot for your help any way :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 12:49:59 PM
Quote from: filipes on March 11, 2009, 12:24:26 PM
Thank You for your help, I do not understand a lot of this, I think I will stay like this because I do not how to do that...
I am sorry for my Inglesh I am Portuguese :(
Thanks a lot for your help any way :)

Attatch your BoardIndex.php,  index.template.php and style.css from the Extreme6 Theme folder plz
Title: Re: AjaxChat Integration
Post by: gothicfires on March 11, 2009, 01:13:19 PM
This doesn't need a reply. I am sorry if it was mentioned before. I think it may be a very minor bug. When the shoutbox is minimized and you navigate to another page it is maximized again.

thanks for the previous help in getting this mod working on my site. my users love it.
Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 03:01:29 PM
When I access mydomain.com/forums/chat  or  /chat/index.php, I get prompted with a login and I haven't setup a username or password yet.  I've tried entering my information to log into the ftp/cpanel, but that doesn't seem to work either.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 03:12:16 PM
It should be the same username and password that you use for your forum.
Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 03:15:34 PM
hmm, i've tried that as well.  i guess i'll tell you what i did to install it.

i went to http://sourceforge.net/project/showfiles.php?group_id=214758&package_id=258987&release_id=664620 and downloaded the smf version.  after that, i unzipped the files and placed them in my ftp (../forums/chat/)

once i went to http://www.domain.com/forums/chat - i was prompted with login

i'm using SMF 1.1.8

thanks for the quick response, Bc.
Title: Re: AjaxChat Integration
Post by: filipes on March 11, 2009, 03:23:56 PM
Here is what you ask for mrtrc266, thanks for your help.... :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 03:34:16 PM
@ bchill did you try loggin into your forum first and the just hit the chat button? Either way this is very odd, you should be able to log into it.

Any errors in your error log?

@ filipes

I will have a look at your files and post them back shortly
Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 03:49:13 PM
Oh wow.  Sorry, i'm at work and multitasking and i'm leaving out information.  I meant to say I can't install the chat.  I've uploaded the install files to my forums/chat/ folder, but when i go to www.domain.com/forums/chat/install.php - that's when i'm prompted for login.

"Enter username for 'forbidden' at www.domain.com"
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 03:59:39 PM
Ahhhhhh, that sounds like you might have to seek support from your host. Sorry but I'm clueless about that one ??? ??? ???
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 05:11:15 PM
@ filipes

Here are your files, let me know if it works out ok for ya.

Also attatched is a Chat Button (chat.png) that I made. Upload it to the folowing directory.

yourforum/Themes/extreme6/images/english/
Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 06:40:25 PM
Alright, so I got the chat script installed.  I downloaded the SMF Integration for Ajax and when I try to install the package everything is successful except for this:

1.     Execute Modification     ./Sources/BoardIndex.php     Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Sources/Subs.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/index.template.php    Test successful
7.    Execute Modification    ./Themes/default/style.css    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
10.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
11.    Execute Modification    ./Themes/default/languages/Modifications.persian.php    Skipping file
12.    Execute Modification    ./chat/index.php    Test successful
13.    Execute Modification    ./chat/lib/class/AJAXChat.php    Test successful
14.    Execute Modification    ./chat/lib/class/AJAXChatDataBase.php    Test failed
15.    Execute Modification    ./chat/lib/config.php    Test successful
16.    Execute Modification    ./chat/lib/template/shoutbox.html    Test successful
17.    Execute Modification    ./chat/lib/template/loggedOut.html    Test successful
18.    Execute Modification    ./chat/css/shoutbox.css    Test successful

So I installed it anyways, and made the modification to the file myself using the manual install instructions.  The install was successful, however, when I go to my admin panel and look under Features and Options, there's a few check boxes with no text by them.  Any ideas?
Title: Re: AjaxChat Integration
Post by: Filipina on March 11, 2009, 06:45:43 PM
Hi.. I installed this mod and all was great until my server started to bog down, and to make a long story short it cannot handle the load... question? Is is possible to run the chat off another server? Of course I could change the button to connect to the other domain, but I know it is more complicated than that. I am just clueless on the logistics of making it work. Any ideas? :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 06:45:56 PM
@ bchill 

Don't worry about that error, just go ahead and do the install. It's just trying to do an edit that was already done in the new chat version.

Proceed and you'll be fine.
Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 07:12:16 PM
Ah, i updated the post.  Yeah i just went ahead and did the modification manually to that file.  My new problem is that:

1) i don't have a chat button on the menu (not sure if it has to be enabled)
2) i don't see the option to enable the chat anywheres
- there's a few checkboxes with no text by them in the Features and Options page, but i'm not sure if they pertain to the chat.  There's 5 checkboxes with no text saying what they're for underneath the "Maximum characters allowed in signature" option.

If the checkboxes don't pertain to the chat, then where can I find the chat options?  I've changed back to default theme, thinking it was something to do with the theme customization, but I had the same problem.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 07:22:26 PM
The chat options are under Admin/Features and Options/  and then you should see some checkboxes

Enable the ShoutBox?   
check for ShoutBox on any page or uncheck for only in index page:   
chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?   
Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 07:26:15 PM
This is what i'm seeing..

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.failureisoptional.com%2Fimages%2Fadminpanel.jpg&hash=254a989a6295cf42af06beb9885132e379724a0b)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 07:40:02 PM
Ohhh, you have a custom theme LOL

Open you YouForum/Themes/YourCustomTheme/languages/Modifications.english.php

And add this to the bottom of the file

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'chat in popup page?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration
Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 07:45:31 PM
I didn't have a modifications.english.php file in my Languages folder, so I checked the one in my default theme folder and that's where it was storing the information.  Anyways, the Ajax information as well as the information from another mod was put into there.

<?php
// Version: 1.1; Modifications

$txt['mp1']='Welcome to Bunny Wars Multiplayer!
You can play this game with your forum. username! No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game! Remember this login to play also in the future without needing to register again!
Enjoy the game!'

$txt['mp2']='Welcome to Chess Multiplayer!You can play this game with your  forum. username!  No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game! Remember this login to play also in the future without needing to register again!
Enjoy the game!'

$txt['mp333']='Welcome to Texas Hold em Poker Multiplayer!
A very quick register in the game is needed to play this 
game! Remember this login to play also in the future without needing to register 
again!
Enjoy the game!'

$txt['mp4']='Welcome to Conquer Antarctica Multiplayer!You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!Enjoy the game!';
$txt['checkers']='Welcome to Checkers Multiplayer!You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!
Enjoy the game!'
;
$txt['m4']='Welcome to Match-4 Multiplayer!You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!
Enjoy the game!'
;
$txt['mp5']='Conquer Antarctica Multiplayer';
$txt['mp6']='The multiplayer version of this Antarctic domination game.. Shoot your evil rival penguins to oblivion!...';
$txt['mp7']='Texas Hold em Poker Multiplayer';
$txt['mp8']=' Bet, bluff and
win the jackpot!...'
;
$txt['cannot_multiplayer_view'] = 'You are not allowed to access multiplayer.';
$txt['cannot_multiplayer_play'] = 'You are not allowed to play.';
$txt['mp9']=' Multiplayer Bunny Wars';
$txt['mp10']='Time for some bunny whacking puzzle game action! Dominate the playing field with your bunnies!...';
$txt['mp11']='Multiplayer Chess';
$txt['mp12']='Practice your logic skills on this online game of chess! Revisit the best classic game of all time!...';
$txt['mp13']='Multiplayer';
$txt['mp14']='play';
$txt['mp15']='Simple Multiplayer 3.2 &copy; 2008<a href="http://waynesworld.kicks-ass.net/"> wdm2005 </a>';
$txt['permissiongroup_multiplayer'] = 'Multiplayer';
$txt['permissionname_multiplayer_view'] = 'View Multiplayer';
$txt['permissionname_multiplayer_play'] = 'Play Multiplayer';
$txt['mp116']='Try this classic game with players from around the world!';
$txt['mp54']='Checkers Multiplayer';
$txt['mp544']='Up for a game of match 4? Test your logic skills by playing against other people in this fun multiplayer game....';
$txt['mp56']='Match-4 Multiplayer';
$txt['permissionname_multiplayer_admin'] = 'Admin multiplayer';
$txt['permissionname_multiplayer_view'] = 'View multiplayer';
$txt['Trouble'] = 'Trouble Multiplayer';
$txt['T1'] = 'Play Multiplayer Trouble against other players in real time. Join a room of 2, 3 or 4 players and roll the dice. You need to roll a 6 to leave the castle. Bring all your pwans inside the center places to win the game. Good Luck.';
$txt['T2'] = 'Zodiac War Multiplayer';
$txt['T3'] = 'The point of the game is to shoot the other players';
$txt['mM4']='Welcome to Trouble Multiplayer!You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['mM5']='Welcome to Zodiac War Multiplayer You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['Description:']='Description:';
$txt['Title:']='Title:';
$txt['PLYD']='Plays:';
$txt['des']='Have you got what it take to win';
$txt['triv']='Trivia Multiplayer';
$txt['bship']='Draw my Thing  Multiplayer';
$txt['bship1']='How good are you at guessing';
$txt['pg1']='Page 1';
$txt['pg2']='Page 2';
$txt['pg3']='Page 3';
$txt['ast']='Asteroids  Multiplayer';
$txt['ast1']='Multiplayer asteroids is a small space shooter where you are able to show your friends whos the boss! ';
$txt['mmm']='Welcome to Trivia Multiplayer!You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['astt']='Welcome to Asteroids Multiplayer!You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['dmthh']='Welcome to Draw my Thing  Multiplayer! You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['race']='Nonoba Racing';
$txt['race1']='A multiplayer racing game with other people across the internet. Can you beat them on all 3 tracks?';
$txt['race2']='Welcome to Nonoba Racing Multiplayer!You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button!You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['prace']='Welcome to PRacing Multiplayer!You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['prace1']='Create your own levels, and race online with friends.';
$txt['prace2']='Platform Racing 2';
$txt['block1']='Blockles ';
$txt['block2']='Play with up to 7 pals in this multiplayer Tetris game, or just play a pick up game with other loners. Fast-paced fun.  ';
$txt['block3']='Welcome to Blockles Multiplayer! You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['dpop']='DinglePop ';
$txt['dpop1']='Welcome to DinglePop Multiplayer! You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['dpop2']='Play with up to 7 friends in this fast-paced multiplayer Snood-like game. ';
$txt['fmag1']='Welcome to Fridge Magnets  Multiplayer! You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!'
$txt['fmag2']='Fridge Magnets'
$txt['fmag3']='Fun Game just play with the magnes Fridge Magnets'
$txt['cwars']='Castle wars'
$txt['cwars1']='Welcome to Castle wars Multiplayer! You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['cwars2']='Show these goblins the hilt of your sword, pointy end first. Get the kills, grab the gold, and get yourself bigger and better weapons. Are you the top gladiator?'
$txt['pawngame1']='A massively multiplayer online 2D shooter game. Here at Pawn you can jump right into the action by creating an account and joining thousands of other players in a variety of different arenas'
$txt['pawngame2']='Pawn Game'
$txt['pawngame3']='Welcome to Pawn Game Multiplayer! You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['snake']='Ever wondered what would happen if you took the traditional snake game and the made it massively multiplayer? Look no further! Play with hundreds of other people on the internet. '
$txt['snake1']='Multi Snake'
$txt['snake2']='Welcome to Multi Snake Multiplayer! You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['tw1']='Eliminate every member of the opposing team.'
$txt['tw2']='Territory Wars '
$txt['tw3']='Welcome to Territory Wars  Multiplayer! You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['dino']='Escape the pyroclastic wall of doom and find your dino sanctuary.'
$txt['dino1']='Dino Run  '
$txt['dino2']='Welcome to Dino Run Multiplayer! You can play this game with your forum. username!  No need to register in the game! Type in your username and press the Guest Login button! You can also choose to do a very quick register in the game so your scores will be saved in this game and also to be able to chat in the game! Remember this login to play also in the future without needing to register again!';
$txt['multiplayer_enabled']='Enable Multiplayer';
$txt['GamesMax']='Games Per Page';
$txt['ModifymultiplayerSettings']='Multiplayer';
$txt['multiplayer_disabled'] = "multiplayer disabled by Admin";
$txt['multiplayer_GuestAllowed'] = "Allow Guest to Veiw Multiplayer";
$txt['allow_guest_play'] = "Allow Guest to play Multiplayer";
$txt['k5'] = "5";
$txt['k10'] = "10";
$txt['k15'] = "15";
$txt['Enable_Conquer_Antarctica']='Enable Conquer Antarctica ';
$txt['Enable_Texas_Hold_em_Poker']='Enable Texas Hold em Poker ';
$txt['Enable_Bunny_Wars']='Enable Bunny Wars ';
$txt['Enable_Chess']='Enable Chess ';
$txt['Enable_Checkers']='Enable Checkers ';
$txt['Enable_Match4']='Enable Match4 ';
$txt['Enable_Trouble']='Enable Trouble ';
$txt['Enable_Zodiac']='Enable Zodiac ';
$txt['Enable_Triva']='Enable Trivia';
$txt['Enable_Draw_my_Thing']='Enable Draw my Thing';
$txt['Enable_Asteroids']='Enable Asteroids';
$txt['Enable_Nonoba_Racing']='Enable Nonoba Racing';
$txt['Enable_Platform_Racing_2']='Enable Platform Racing 2';
$txt['Enable_Blockles']='Enable Blockles';
$txt['Enable_Dinglepop']='Enable Dinglepop';
$txt['Enable_Fridge_magnets']='Enable Fridge magnets';
$txt['Enable_Castle_wars']='Enable Castle wars';
$txt['Enable_Pawn_Game']='Enable Pawn Game';
$txt['Enable_Multi_Snake']='Enable Multi Snake';
$txt['Enable_Territory_Wars']='Enable Territory Wars';
$txt['Enable_Dino_run']='Enable Dino Run';

// PJL : Start of Redirect on login/logout Mod.
$txt['logon_redirect_enable'] = 'Enable Logon Redirect<br /><span class="smalltext">(This redirect users to given URL when they login)</span>';
$txt['logon_redirect_url'] = 'Enter Login URL';
$txt['logout_redirect_enable'] = 'Enable Logout Redirect?<br /><span class="smalltext">(This redirect users to given URL when they logout)</span>';
$txt['logout_redirect_url'] = 'Enter Logout URL';
// End Mod.

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'chat in popup page?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration

?>


So i copied that file into my Language folder for my custom theme and it still didn't show up.  So then i changed my forum theme to the default one and still got nothing.  I'm lost.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 07:57:12 PM
Just check ALL the boxes....LOL Just kidding

What theme are you using? Post up the link to it please.

Also, send me the link to your forum. PM me if you don't want it public please.
Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 08:03:05 PM
I sent you a message.  Not sure if you got it.  It's not showing up in my sent messages.

Haha, also I did click them all to see if the chat would show up, and I got nothing.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 09:00:14 PM
I installed the theme from the link that you sent (Albino) but it looks totally different from the one on your site. Is Albino the theme you want it on?

You can check it out here http://monsters-mansion.com/test118/index.php?action=forum

Here it working on Albino, if this is the theme you're want it on please attatch your BoardIndex.php,  index.template.php and style.css files
Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 09:26:15 PM
no, the theme i'm using is different in the sense that i recoded the looks of it.  nothing that would affect something showing up in the modifications.english.php file or the admin options i don't think.

i'll attach my files, but i want to keep my custom theme.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 09:56:49 PM
Give these a try, this theme is not being very cooperative so the popup chat feature will not work now will you see the number of users below the Unread / Replies in the top right hand corner.

But everything else should work just fine. I will continue to work on it and get everything going

Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 10:01:21 PM
Eh, nothing changed.  It just tried to create a button on the menu bar, but it was unsuccessful.  It's just a link with no text.  Still don't have the options to change chat or the multiplayer mod in the admin panel.  I think it's something more than the theme.  Because even when i use the default theme that came with the forums, which i have tampered with, i can't see any mod settings other than karma (which came with the forum).  Thanks for looking at the files though.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 10:35:29 PM
Do you have any errors in the error log?
Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 10:44:32 PM
wow.  i have loads of errors.  1116 pages of them.

most of them are this

Guest    March 09, 2009, 10:48:43 PM
8: Undefined index: hel_lo
File: /home/***/public_html/forums/Themes/default/Register.template.php (main_above sub template - eval?)
Line: 198


is there any way we can join a chat or something to avoid waiting a few minutes per post?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 10:52:39 PM
Ugh!!! That's only about 15,000 errors or so.

Might have to get some support in the SMF 1.XX support boards to get them sorted out, or do a reinstall of SMF ???
Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 11:01:03 PM
is there any way to back up the content of my boards so when i reinstall i'll have all my groups/members/content back?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 11, 2009, 11:26:25 PM
Quote from: bchill on March 11, 2009, 11:01:03 PM
is there any way to back up the content of my boards so when i reinstall i'll have all my groups/members/content back?

Yes if you back up your database all will be fine

Admin/Forum Maintenance and check all of these...

Save the table structure.
Save the table data. (the important stuff.)
Compress the file with gzip.

And / Or export your entire database through your cPanel MyphpAdmin

If you plan on doing this and need help please create a top HERE (http://www.simplemachines.org/community/index.php?board=9.0) so we don't take over the AJAX Chat Intergration MOD support board.
Title: Re: AjaxChat Integration
Post by: bchill on March 11, 2009, 11:39:18 PM
will do.  thanks for all of your help.  appreciate everything.
Title: Re: AjaxChat Integration
Post by: filipes on March 12, 2009, 06:38:21 AM
Mrtrc266, thank you very much for your time, patience, you are an expert in helping me with my problem.It's up running very good, one more time (obrigado) that is in Portuguese (Thank You)....
How can I have the same Chat Box that you have in your forum, because the one I have is not like your, I love your Chat Box!!!!!

filipe
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 12, 2009, 11:16:57 AM
Quote from: filipes on March 12, 2009, 06:38:21 AM
Mrtrc266, thank you very much for your time, patience, you are an expert in helping me with my problem.It's up running very good, one more time (obrigado) that is in Portuguese (Thank You)....
How can I have the same Chat Box that you have in your forum, because the one I have is not like your, I love your Chat Box!!!!!

filipe

You're very welcome, glad I could help you get it going.

My Shoutbox is totally customized, I did a little tutorial on how to do it HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1930049#msg1930049). Check it out and if you need any help post back here and I'll take a look at yours.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on March 12, 2009, 12:09:00 PM
new version is ready to download (http://custom.simplemachines.org/mods/index.php?mod=1319)

note if you already have previous version of this mod after uninstalling the previous version delete the entire chat folder too.
new version install the chat by self.
3.0
March 11 2009:
New features:
- Now install the chat too.
- New chat version 0.8.2
- Lots of code change in mod.
- Restrict access to shoutbox to your desired groups.
- Shoutbox doesn't shown to groups can't access it
- Can integrate shout box and chat room.

Bugfixes:
- Fixed conflict between chat and shoutbox.
- Fixed creating tons of error's in logs .
==========================================================
chat change log in new version:
Version 0.8.2  (27.02.2009):
-------------------------------

New features:
- Added status icon to indicate when chat is waiting for a response from the server (orange) or when chat is idle (green). - Clicking the status icon will force the chat client to retry (workaround for when there is a lost connection).
- Added Catalan locale - thanks to Manu Quintans.
- Added Japanese locale - thanks to Ocean.
- Added Croatian locale - thanks to Renato.
- Added Korean locale - thanks to Sangho Choi.
- Added Slovenian locale - thanks to Valter Pepelko.
- Added Chinese (Traditional) locale - thanks to Tiffblue.
- Added Indonesian locale - thanks to Edi Muljadi.
- Added Czech locale - thanks to Fredy.
- Updated Swedish localization - thanks to Eric.
- Updated Spanish localization - thanks to Manu Quintans.

Bugfixes:
- Inline user menus will no longer expand hidden below the chat window.
- Replacing the accept method of the server socket with the non-blocking accept_nonblock.
- Hyphen in database table names should no longer cause an error (in standalone chat client only).
- Fixed a typo in the Greek translation - thanks to Marios Zindilis.
- Posting an image should no longer break the autoscroll on slow connections or when it is not cached.
- Blank username and password will now log in correctly with a guest number in the standalone client.[/]
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 12, 2009, 02:47:36 PM
Awesome Job Hunter!

I just installed on SMF 1.1.8 and SMF 2 RC1 test sites and it went great. Clean install and no errors in error log.

Love the new features and options. You really went all out on this one! Thank you for all your time and dedication to making such a fabulous MOD.

This is EXACTLY what every forum needs! :D
Title: Re: AjaxChat Integration
Post by: bchill on March 12, 2009, 03:29:44 PM
I was having a problem earlier where I couldn't see the text in the features and options menu, but I've resolved that problem.  I see the Enable Shoutbox options and the other 4.  However, when I click enable shoutbox I don't see the shoutbox anywhere.  Same problem if it's unchecked.  Any ideas?

Edit:  Alright, I've figured out that it's only showing up on the default theme.  Any idea as to how to implement the code in my custom theme?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 12, 2009, 03:54:28 PM
You should be able to upload those files that I did for you and it should work. They include all the edits for your custom theme
Title: Re: AjaxChat Integration
Post by: imthenachoman on March 12, 2009, 04:04:11 PM
Will this mod work with SMF 1.1.7? I know it says 1.1.8 but I cannot update to 1.1.8 just yet. I am using Justhost.com and they provide a pre-installed version of SMF with 1.1.7 and it wont let me upgrade easily.

Thanks!
Title: Re: AjaxChat Integration
Post by: filipes on March 12, 2009, 04:20:44 PM
mrtrc266  I need your help, I have this error each time I want to make a message(Fatal error: Cannot redeclare template_init() (previously declared in /home/forumemi/public_html/forum​/Sources/Load.php(1966) : eval()'d code:33) in /home/forumemi/public_html/forum​/Sources/Load.php(1966) : eval()'d code on line 58)can you tell me if is any change I made with my board(Chatbox)
Thanks :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 12, 2009, 04:44:58 PM
Quote from: filipes on March 12, 2009, 04:20:44 PM
mrtrc266  I need your help, I have this error each time I want to make a message(Fatal error: Cannot redeclare template_init() (previously declared in /home/forumemi/public_html/forum​/Sources/Load.php(1966) : eval()'d code:33) in /home/forumemi/public_html/forum​/Sources/Load.php(1966) : eval()'d code on line 58)can you tell me if is any change I made with my board(Chatbox)
Thanks :)

Are you saying you get that message when you try to chat or a post a message within your forum?

If it's when you try to create message please post a topic in SMF 1.x Support  (http://www.simplemachines.org/community/index.php?board=9.0)

If it's when you try to chat, we'll have to see if we can get some help from someone cuz I have no idea.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 12, 2009, 05:16:22 PM
Quote from: imthenachoman on March 12, 2009, 04:04:11 PM
Will this mod work with SMF 1.1.7? I know it says 1.1.8 but I cannot update to 1.1.8 just yet. I am using Justhost.com and they provide a pre-installed version of SMF with 1.1.7 and it wont let me upgrade easily.

Thanks!

Yes for SMF 1.x.x. this MOD is comaptible with 1.1.6-1.1.8
Title: Re: AjaxChat Integration
Post by: tfs on March 12, 2009, 11:47:36 PM
Quote from: .HuNTeR. on March 12, 2009, 12:09:00 PM
new version is ready to download (http://custom.simplemachines.org/mods/index.php?mod=1319)

VERY nice work.  Install went nice on my SMF 2 RC1, and it's working as advertized.  If I had a suggestion now it would be to make some options about placement of the shoutbox.  I'm using SimplePortal 2.1.1, with boxes displayed down the left side of the page, and would wish that the shoutbox could compress horizontally and allow the SimplePortal box to move up along side of it.  The shoutbox doesn't have a need for all that width.  The chat screen does, but not the shoutbox.

Also, if someone doesn't have access to the chat page they shouldn't be able to see the Chat tab.  I had an issue where I logged in as admin and went into the chat screen.  Then I closed chat and logged out of SMF and then logged in as Test1,  who isn't supposed to be able to access chat.  Somehow chat was letting me in (by putting empty user and password) and kept letting me in until I actually tried to login to chat with my Test1 username and password.

It seems to remember the previous person's ability to login.  Not their username or security level, but their ability to login.  Assuming your users all come from different machines over the net I guess this is a non issue.

Anyway, thanks for a great product!
Title: Re: AjaxChat Integration
Post by: filipes on March 13, 2009, 10:06:27 AM
mrtrc266  Everything works today, only a little problem,I can not change my chat like yours, I am  :'( because I do not how to do it, can you do it for me, please?I will thank you very much for that :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 13, 2009, 10:23:27 AM
I will take a look at it, it might take some time though cuz I go back to work today..I am (https://www.simplemachines.org/community/Smileys/simple/cry.gif) too...LOL

Might be a day or 2 before I get to it.
Title: Re: AjaxChat Integration
Post by: cwd1031 on March 13, 2009, 10:39:10 AM
I have  a question. I installed on smf 2.0 rc1. Install was not a problem, seems like everything is working for me. Question I have is if you sign into chat, and leave by not signing out it still says that person is in chat. Like the chat button itself will say chat (1). Will this always be this way if the person does not log out? If so i can just take that option off (how many users in chat). Also if you write in chat, and go back in say a while later, it still shows all the previous chats still there. Is this also the way this works, or do i have to delete each one. I was wondering if there were options to change any of these. Sorry if i'm missing something. And thanks alot for your great mod and help.   Christian
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on March 13, 2009, 11:05:10 AM
@cwd1031
if a user without logging out close the chat after 2 minutes the chat automatically remove him from online user list
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 13, 2009, 11:05:33 AM
@cwd1031

Yes if a user does not log out of that chat room it will still show that they are in chat until they are timed out. You can set the default time as to how long you want them idle before they are booted.

In your /chat/lib/config.php file find this and change to whatever you like.

// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;


To answer your question though
Quoteso i can just take that option off (how many users in chat).
Go to your Admin/Modifications/Chat and uncheck all the options that will show users in chat.

QuoteAlso if you write in chat, and go back in say a while later, it still shows all the previous chats still there. Is this also the way this works, or do i have to delete each one.

I'm not sure if there is a setting to purge all the messages if a user leaves and comes back. Do you need to delete them because they are private? If that's the case then your can create a board on your forum and give only those you want permissions to it. Then it will appear as a channel in the chat room and only those who have permission to the board you created will have access to that channel and you won't have to worry about deleting anything.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 13, 2009, 11:08:20 AM
LOL Hunter we posted  23 seconds a part.
Title: Re: AjaxChat Integration
Post by: cwd1031 on March 13, 2009, 11:15:34 AM
Mrtrc266,
Thx for the info about the user timing out of chat if they dont log out. Also thx for the tip about making a board for private chat also. That was my intention is some user's have "higher rights" than others. So this well help out a real lot. And thx again for the great mod, my user's are already expressing how much they are loving this since we added it the other day.    cheers Christian :)
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on March 13, 2009, 11:19:12 AM
Is there any way this will work on SMF 2.0 BETA 4?
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on March 13, 2009, 01:27:38 PM
@johncccccc
best way you have is update to 2 rc 1
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 13, 2009, 08:53:55 PM
I have installed this mod on a clean install of SMF 2.0 RC1 and it shows fine, both the shoutbox and the chat. All of the permissions are set. However, I cannot shout. When I navigate to another page an error shows briefly: ChatBot: Error: Connection status: 0. It also looks like it's not inputting anything to the database. You can see it here (http://www.empireofthesun.net/testsite/index.php).

username: test
password: tester123

Any help would be appreciated.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 13, 2009, 11:09:13 PM
Quote from: cwd1031 on March 13, 2009, 11:15:34 AM
Mrtrc266,
Thx for the info about the user timing out of chat if they dont log out. Also thx for the tip about making a board for private chat also. That was my intention is some user's have "higher rights" than others. So this well help out a real lot. And thx again for the great mod, my user's are already expressing how much they are loving this since we added it the other day.    cheers Christian :)

Glad I could help, thank Hunter for the great MOD though, I just love it would like to see it on ALL SMF Boards out there and am happy to help however I can ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 13, 2009, 11:13:15 PM
@ SunKing I think I remember seeing this problem before and it might be a server issue. You'll have to look back through the posts. I just logged into your site and I can't see any user info in the chatroom, no users in chat...nothing.

I would try uninstalling the MOD and drop the tables from your DB and try to reinstall again.
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 13, 2009, 11:18:43 PM
OK. Thank you.

EDIT: I have read 39 pages and seen a few references to this along with possible solutions. Unfortunately, none of them worked.
I have dropped the tables from the database. No change. I also noticed that the collation for the AJAX Chat tables is set at utf8_bin while all other tables are set at utf8_general_ci. I changed these but no help. I have uninstalled and reinstalled several times. No change. I am at a loss.
Title: Re: AjaxChat Integration
Post by: Killer-B on March 14, 2009, 02:25:21 AM
Wow - never had a mod/hack like this install so easily - and WORK out of the box with a 3rd party theme! Great! I'm so happy :D "Chat" shows up in my portal and forum and didn't have to make any mods! yaaaaaa!

Now, that said, as a previous poster asked... How can I show the chat/shoutbox using  SimplePortal? I don't see any "default" boxes... so will assume I'll have to write my own link or something... I've asked about this on both AjaxC and SimplePortals sites - but got no response.... Would be the last piece of the puzzle for me!!

www.f-1chat.com if you can offer some suggestions?

Thanks!

KB
Title: Re: AjaxChat Integration
Post by: discjocke on March 14, 2009, 02:58:42 AM
I had issues some time back ago installing Ajax Chat which brought down my forum. I'm going to try it again. I'm a novice at this, so I need some input.

Question: Can I install it via my package manager, or should I manually install it. My concern with manually installing it is, the last part that has to do with the query part is foreign to me on what to do with them. My main concern is, if I can install it using my package manager, do I have to do anything in my file manager before I install it? Thanks.
Title: Re: AjaxChat Integration
Post by: Smoky "Rider" Blue on March 14, 2009, 05:03:02 AM
completely odd.. this will not install correct on easyphp 2.0b  it does nothing..

in order for me to get it in, its the manual.. but its all good.. thanks..  ;)
Title: Re: AjaxChat Integration
Post by: filipes on March 14, 2009, 06:38:38 AM
I am having a problem with my Chat, only me that can write in the chat box, the rest of the people can not do it, why? :'(
Title: Re: AjaxChat Integration
Post by: Killer-B on March 14, 2009, 07:00:31 AM
Quote from: discjocke on March 14, 2009, 02:58:42 AM
I had issues some time back ago installing Ajax Chat which brought down my forum. I'm going to try it again. I'm a novice at this, so I need some input.

Question: Can I install it via my package manager, or should I manually install it. My concern with manually installing it is, the last part that has to do with the query part is foreign to me on what to do with them. My main concern is, if I can install it using my package manager, do I have to do anything in my file manager before I install it? Thanks.

It's a complete stand-alone app - you cannot install via "packages" as it's not written specifically for SMF - you have to read the manual that comes with it... and upload via FTP and run a URL install - by itself...

After that, you'll have a /forum/chat tree... and then using THIS mod (which you do install via SMF) it ties to the 2 together... or did for me! - See www.f-1chat.com - it even shows the "chat" button on the main portal page header... Still need to sort out how to "box" it on the portal Index page... but otherwise, I had no issue with SMF2.0RC1

GL-

KB
Title: Re: AjaxChat Integration
Post by: Killer-B on March 14, 2009, 07:01:48 AM
Quote from: filipes on March 14, 2009, 06:38:38 AM
I am having a problem with my Chat, only me that can write in the chat box, the rest of the people can not do it, why? :'(

Are the others "Logged in" to the Forum site?
Title: Re: AjaxChat Integration
Post by: Smoky "Rider" Blue on March 14, 2009, 07:16:41 AM
hmm well i had no problems manually doing this.. thing is, its not showing a shout in the shout box..

everything is showing up, yet i get this to go to the intergrated chat on my local:

XML Parsing Error: XML or text declaration not at start of entity
Location: http://127.0.0.1/1.1.8/chat/index.php
Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?>
^


on a custom theme.. now:


online, i have no issues getting it to work with the default.

since then i dropped the tables for it and popped em up in the local, but yet the local doesnt want to work. at least for the shout box.. maybe it is in the settings. still tinkering with it..


Quote from: Killer-B on March 14, 2009, 07:00:31 AM
It's a complete stand-alone app - you cannot install via "packages" as it's not written specifically for SMF - you have to read the manual that comes with it... and upload via FTP and run a URL install - by itself...

After that, you'll have a /forum/chat tree... and then using THIS mod (which you do install via SMF) it ties to the 2 together... or did for me! - See www.f-1chat.com - it even shows the "chat" button on the main portal page header... Still need to sort out how to "box" it on the portal Index page... but otherwise, I had no issue with SMF2.0RC1

GL-

KB

funny, it installed on line with no issues.. thru the package manager, 1.1.8 ;)but yet you are saying its a stand alone??  :o


i didnt see a "manual" only the read me, which says:

Quote

By Shahriar Gholami
This mod will install AjaxChat (https://blueimp.net/ajax/) on your smf.

Tested on freshly installed smf 1.1.8/2 RC1

Features:
Adds a button to chat system in default theme.
restrict access to chat to your desired groups.
chat in a pop up page or a regular page.

Shows the number of chating users in:
    1. Online Users section.
    2. Beside of chat button.
    3. Below of total time logged in.
    number 2 and 3 can disabled.

adds a shoutbox.(you can disable it)
    restrict access to shout box to your desired groups.
    can set to only in index page or all pages.
    compatible with your theme.
    Bold Italic Underline bb codes and smiley.
    collapsible.
    can integrate shout box and chat room and work together and show same conversation.

better documentation would be nice for the mod..  O:)
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on March 14, 2009, 08:49:05 AM
@Killer-B
supporting simple Portal and tiny Portal will add but i need some time

@discjocke
in new version package manager will do all the things
the only thing you should do is manually add some code in BoardIndex.template.php
and
index.template.php
only in third party themes
no upload/download or file running only upload in package manager and smf package manager
will do the rest ;)

@SmokyBlue
I've seen this problem before on 3rd party themes
you should go to
chat/lib/config.php
and
shoutBox/lib/config.php

and change:
$config['contentType'] = null;
to
$config['contentType'] = "text/html";
in both files
i think this will fix XML Parsing Error

and for what Killer-B said
all of previous version's of this mod has a manual installation part
but in new version i changed it and now the package manager do all the needed parts

@filipes
did you gave them chat access permission?
Title: Re: AjaxChat Integration
Post by: filipes on March 14, 2009, 09:21:15 AM
Did you gave them chat access permission? How can I do that? :(
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 14, 2009, 09:49:54 AM
@ filipes

Go to Admin/Permissions/ and select the Member Group that you want to have access, and check  Access to chat & Use shoutBox.
Title: Re: AjaxChat Integration
Post by: filipes on March 14, 2009, 10:23:00 AM
One more time thanks it works, remember me for my chat that I whant like yours ;)
Obrigado :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 14, 2009, 10:37:33 AM
Quote from: filipes on March 14, 2009, 10:23:00 AM
One more time thanks it works, remember me for my chat that I whant like yours ;)
Obrigado :)

I'm workin on getting mine back to the way it was also, there were a few changes in the latest version. You can see the progress here http://www.monsters-mansion.com/testrc1/index.php

Username: test
Password: testuser

EDIT: Done...I will take a look at yours in a day or so
Title: Re: AjaxChat Integration
Post by: wardeh on March 14, 2009, 11:27:54 AM
I am getting a Wordpress 404 Not Found error with the upgrade of AJAX Chat.

I think it has to do with my installation structure.

Website runs on Wordpress in the root folder: www.my-website.com
Forums in a subfolder: www.my-website.com/forums

I got no such error on the previous version of AJAXChat.

Any ideas?

I'd really like to be able to use the new features (especially the pop-up). If If I can't use the new version, can someone tell me how to make the Chat be a pop-up or new window?

Also, how can I add a link in the Chat back to Forums?

Thanks!


Title: Re: AjaxChat Integration
Post by: [unplugged] on March 14, 2009, 01:45:06 PM
Still no word on my issue? I have tried everything I know of (which isn't much  :P) and have yet to get it working.
Title: Re: AjaxChat Integration
Post by: Shadow03 on March 14, 2009, 02:31:37 PM
Two problems (the second one is pretty long).

1. Nobody (including myself) can post in the shoutbox for some reason.

2. When I try to access the chat, I get the following errors on the page:


Strict Standards: Non-static method AJAXChatFileSystem::getFileContents() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatTemplate.php on line 37

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81

Strict Standards: Non-static method AJAXChatEncoding::htmlEncode() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 2858

Strict Standards: Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 53

Strict Standards: Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChatEncoding.php on line 81



*SHOUTBOX IS HERE*




Notice: Constant AJAX_CHAT_PATH already defined in /home/ubercow/public_html/bbshrine/forum/chat/index.php on line 38

Fatal error: Cannot redeclare class AJAXChat in /home/ubercow/public_html/bbshrine/forum/chat/lib/class/AJAXChat.php on line 11


*CHAT WOULD HAVE BEEN HERE IF IT WORKED*
Title: Re: AjaxChat Integration
Post by: discjocke on March 14, 2009, 05:33:25 PM
Quote from: .HuNTeR. on March 14, 2009, 08:49:05 AM

@discjocke
in new version package manager will do all the things
the only thing you should do is manually add some code in BoardIndex.template.php
and
index.template.php
only in third party themes
no upload/download or file running only upload in package manager and smf package manager
will do the rest ;)

That's the part I'm concerned on doing, is inserting in BoardIndex.template.php and
index.template.php.  I'm not sure in what section of the file to enter the codes. I also don't know what to add into the files.

It would be nice if I can just let package manager do it all. Unfortunately, of what I read, it's not the case. Any assistance would be appreciated. I do know how to edit in file manager. Where do I get more info on installation?
Title: Re: AjaxChat Integration
Post by: Killer-B on March 14, 2009, 06:47:37 PM
Quote from: Killer-B on March 14, 2009, 07:00:31 AM
It's a complete stand-alone app - you cannot install via "packages" as it's not written specifically for SMF - you have to read the manual that comes with it... and upload via FTP and run a URL install - by itself...

After that, you'll have a /forum/chat tree... and then using THIS mod (which you do install via SMF) it ties to the 2 together... or did for me! - See www.f-1chat.com - it even shows the "chat" button on the main portal page header... Still need to sort out how to "box" it on the portal Index page... but otherwise, I had no issue with SMF2.0RC1

GL-

KB

Quote from: smokybluefunny, it installed on line with no issues.. thru the package manager, 1.1.8 ;)but yet you are saying its a stand alone??  :o


i didnt see a "manual" only the read me, which says:

Quote

better documentation would be nice for the mod..  O:)

Sorry for the confusion Smoky - but discjocke was asking about installing the Ajax Chat software - not this mod....

Quote"I had issues some time back ago installing Ajax Chat which brought down my forum. I'm going to try it again. I'm a novice at this, so I need some input."

As AjaxChat is a stand-alone app... and there is a ton of documentation on their sourceforge site...

Cheers -

KB
Title: Re: AjaxChat Integration
Post by: Smoky "Rider" Blue on March 14, 2009, 07:04:06 PM
that is ok Killer-B.

i have been around long enough to figure out scripts and what nots..

i did get it going, but i think the mod does need a little improving..

personal oppinion, so please, dont take any offense.  ;)
Title: Re: AjaxChat Integration
Post by: heinandar on March 14, 2009, 09:38:25 PM
Hello .HuNTeR ,,, I want to request you one thing.
What i want is , i attach Pic .

Whein i click A, A will appear in Text area. Whein i click "How are you", How are you will appear in Text area.

If you have time, please Test it and it will great .  :) :) :)
Title: Re: AjaxChat Integration
Post by: Shadow03 on March 14, 2009, 11:16:25 PM
Does anyone have a solution to my problem on page 39?
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 14, 2009, 11:25:06 PM
Does anyone have a solution to my problem just one post up from Shadow03's problem on page 39?  :P
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 14, 2009, 11:42:45 PM
@Shadow03 and SunKing

I'm not sure but I thinkt the only time I remember seeing anyone have the problems that you 2 are having is if you have your forum set to UTF-8. I'm not sure of a fix, maybe Hunter can help when he gets back online if this is the case.
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 14, 2009, 11:51:24 PM
I didnt have it initially set as UTF-8 and it didnt work. Switching it to UTF-8 made no difference.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 15, 2009, 12:03:02 AM
SunKing, I'm not sure then, I am no coder by any means. Hopefully Hunter will have an answer for ya.

BTW LMAO @ your signature
Quote« Next Edit: Tomorrow at 08:34:45 PM by SunKing »
You had me thinking for a second. Good one :D
Title: Re: AjaxChat Integration
Post by: Shadow03 on March 15, 2009, 12:03:49 AM
Nope. I don't have it set to UTF-8, and switching it didn't make a difference. Any other suggestions to my problems?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 15, 2009, 12:35:48 AM
Quote from: Shadow03 on March 15, 2009, 12:03:49 AM
Nope. I don't have it set to UTF-8, and switching it didn't make a difference. Any other suggestions to my problems?

I googled some of your error "should not be called statically" and it seems like it might be a hosting issue, what version of PHP are they using?

Google should not be called statically and you'll see what I mean.
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 15, 2009, 12:48:42 AM
PHP Version 5.2.5
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 15, 2009, 12:52:47 AM
Quote from: SunKing on March 15, 2009, 12:48:42 AM
PHP Version 5.2.5

Ok, not sure then...sorry. Out of over 800 posts on this topic I have not seen any errors like the one you are getting. Hopefully Hunter or might have a suggestion.
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 15, 2009, 01:03:24 AM
I am trying out some of the suggestions I found from Googling "should not be called statically" and will post back here with the results. Thanks again for all of your help.

I have been using nneonneo's shoutbox for quite some time and truly like it (I even helped with some of the advanced options), but I really like the features of this one. If only I could get it working.....
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 15, 2009, 01:08:29 AM
I hope you get it going, this is a great MOD. Not only a shoutbox but a full featured Chat Room for your members. Good luck to you.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on March 15, 2009, 03:42:11 AM
@heinandar
wow no time for it not a good idea
but check this:
goto
shoutBox/js/chat.js
find:

insertBBCode: function(bbCode) {

add before

   insertWord: function(word) {
      this.insert(word, '');     
   },


goto shoutBox/lib/template/shoutbox.html
find:

<input type="button" value="[LANG]bbCodeLabelUnderline[/LANG]" title="[LANG]bbCodeTitleUnderline[/LANG]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;"/>

add after:

<input type="button" value="Hello" title="Hello" onclick="ajaxChat.insertWord('Hello');"/>

this will do the hello ;)




@Shadow03
i have absolutely no idea what cause these errors :(




@SunKing (http://index.php?action=profile;u=82405)
i checked your test site, no test user no chat... :-X
Title: Re: AjaxChat Integration
Post by: Smoky "Rider" Blue on March 15, 2009, 05:23:03 AM
Quote from: .HuNTeR. on March 14, 2009, 08:49:05 AM

@SmokyBlue
I've seen this problem before on 3rd party themes
you should go to
chat/lib/config.php
and
shoutBox/lib/config.php

and change:
$config['contentType'] = null;
to
$config['contentType'] = "text/html";
in both files
i think this will fix XML Parsing Error


hmm well the issue happened on a local install of easyphp.. it would not go thru the package manager, but yet on line, it does.. like i said, i manipulated the db tables and got it in local, and it is running on 2 of my sites..

will respond to your pm..  ;)
Title: Re: AjaxChat Integration
Post by: Joe N on March 15, 2009, 06:38:55 AM
Thanks

This is a great mod!

Joe
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 15, 2009, 08:18:41 AM
Quote from: .HuNTeR. on March 15, 2009, 03:42:11 AM
@SunKing (http://index.php?action=profile;u=82405)
i checked your test site, no test user no chat... :-X

Sorry. I was inbetween another reinstall.  ;D

I am installing it right now.

As for the test account, username is test and password is tester123.
Thanks again for your time.
Title: Re: AjaxChat Integration
Post by: discjocke on March 15, 2009, 11:20:18 AM
Actually, I thought it would be easier to set the chat mod via the package manager, instead of using the software version. If anyone can show me what has to be edited and where, I'll give it a gander. I'll just backup before I try it.

I went to sourceforge and couldn't find any manual on how to set it up. So, I'd like to try the mod, but what I'd like to know is what files (php) have to be edited, and with what has to be inserted.

Quote from: discjocke on March 14, 2009, 05:33:25 PM
Quote from: .HuNTeR. on March 14, 2009, 08:49:05 AM

@discjocke
in new version package manager will do all the things
the only thing you should do is manually add some code in BoardIndex.template.php
and
index.template.php
only in third party themes
no upload/download or file running only upload in package manager and smf package manager
will do the rest ;)

That's the part I'm concerned on doing, is inserting in BoardIndex.template.php and
index.template.php.  I'm not sure in what section of the file to enter the codes. I also don't know what to add into the files.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 15, 2009, 11:53:59 AM
Quote from: discjocke on March 14, 2009, 05:33:25 PM

That's the part I'm concerned on doing, is inserting in BoardIndex.template.php and
index.template.php.  I'm not sure in what section of the file to enter the codes. I also don't know what to add into the files.

It would be nice if I can just let package manager do it all. Unfortunately, of what I read, it's not the case. Any assistance would be appreciated. I do know how to edit in file manager. Where do I get more info on installation?

It is easier to install the Chat Mod via the Package Manager. Unforunately when Mods are created they are only made to be installed on the default theme becuase there are TONS of themes out there, it would be impossible to the Author to have it install on EVERY theme made.

You can use a Package Parser (http://resourcez.biz/PackageParser/) to view what edits that need to be done to your files for your custom theme. After you install the MOD put the same Mod in the Package Parser and select the version of SMF you are running and select "Only Theme edits (editing a theme to support a mod)"

It will show you exactly where the code goes and what to do with it, replace, add after, add before, etc. Once again what you see in the Parser might be a little different than what's in your file cuz it's "custom." This should get you going in the right direction.

Of course be sure to back up the 2 or 3 files you edit, after you play around with it if you still can't get it going you can attatch your files here along with a link to your theme and I or someone will take a look. I'll be back after work.
Title: Re: AjaxChat Integration
Post by: discjocke on March 15, 2009, 12:39:17 PM
Thank you very much. I think I have the theme that already came with the forum initially (below). As far as I know non of my members have changed their theme. I think I didn't give that permission.
   
SMF Default Theme - Core
The default theme from Simple Machines.

I just checked the parser for the first time. Quite beneficial. Thank you very much again. I'll try it today when I can and will give you update on how it went. You explained it in layman's terms, which I appreciate that. I'm a novice at this. One thing I can't afford is to have my forum go down. Thanks again.

Title: Re: AjaxChat Integration
Post by: Joe N on March 15, 2009, 12:42:31 PM
Hiya

Is there a way to say on top of the forum after it says how many users in chat. Is there a way to show the names of the people in the chat?

Joe
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 15, 2009, 01:07:35 PM
@discjocke
Glad I could help. Yes that is the default theme and any MOD should work with that theme, as long as you don't get any errors on install. If you do get errors or need to install on a custom theme the Package Parser is a life saver :D

@WBA Dude
You mean you want to the top of your forum to display the info like on the bottom for you forum in the "Users Online" Section?

Try this and see if this is what you're looking for.

YourForum/Themes/YourTheme/index.template.php

Find

Nevermind that didn't work very well LOL

Will keep trying though ;)
Title: Re: AjaxChat Integration
Post by: Joe N on March 15, 2009, 01:10:22 PM
Will that say which users are in chat?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 15, 2009, 01:12:57 PM
Quote from: WBA Dude on March 15, 2009, 01:10:22 PM
Will that say which users are in chat?

Check it out here http://monsters-mansion.com/test118/index.php

Username: test
Password: testuser
Title: Re: AjaxChat Integration
Post by: Joe N on March 15, 2009, 01:14:18 PM
Quote from: mrtrc266 on March 15, 2009, 01:12:57 PM
Quote from: WBA Dude on March 15, 2009, 01:10:22 PM
Will that say which users are in chat?

Check it out here http://monsters-mansion.com/test118/index.php

Username: test
Password: testuser

Could you help me with that

I am rubbish with FTP

Joe
Title: Re: AjaxChat Integration
Post by: discjocke on March 15, 2009, 01:24:10 PM
Quote from: mrtrc266 on March 15, 2009, 11:53:59 AM
Quote from: discjocke on March 14, 2009, 05:33:25 PM

It is easier to install the Chat Mod via the Package Manager. Unforunately when Mods are created they are only made to be installed on the default theme becuase there are TONS of themes out there, it would be impossible to the Author to have it install on EVERY theme made.

You can use a Package Parser (http://resourcez.biz/PackageParser/) to view what edits that need to be done to your files for your custom theme. After you install the MOD put the same Mod in the Package Parser and select the version of SMF you are running and select "Only Theme edits (editing a theme to support a mod)"

It will show you exactly where the code goes and what to do with it, replace, add after, add before, etc. Once again what you see in the Parser might be a little different than what's in your file cuz it's "custom." This should get you going in the right direction.

Of course be sure to back up the 2 or 3 files you edit, after you play around with it if you still can't get it going you can attatch your files here along with a link to your theme and I or someone will take a look. I'll be back after work.


This is what I got, when I tried to install AjaxChat_Integration via package manager. 

"Execute Modification     ./Themes/default/BoardIndex.template.php     Test failed

Execute Modification    ./Themes/default/index.template.php            Test failed

Now do I go into those files and edit them, before I try the download again?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 15, 2009, 01:35:08 PM
@discjocke

1. Make backups of those files

2. Edit the files according to the Package Parser

3. Proceed with install (ignore the errors)

4. Upload the files that you edited.

Title: Re: AjaxChat Integration
Post by: discjocke on March 15, 2009, 02:00:00 PM
Quote from: mrtrc266 on March 15, 2009, 01:35:08 PM
@discjocke

1. Make backups of those files

2. Edit the files according to the Package Parser

3. Proceed with install (ignore the errors)

4. Upload the files that you edited.

I went into Themes/default/BoardIndex.template.php and it says below:

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online']))
      echo '
                     ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

But parser says to look for:

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online']))
      echo '
                     ', $txt[140], ':<br />', implode(', ', $context['list_users_online']);

   echo '
                     <br />

If you see where it says (below) isn't in the Themes/default/BoardIndex.template.php to replace it.

        echo ' 
                                                        <br />
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 15, 2009, 02:24:39 PM
Attatch your BoardIndex.template.php please. I have to go in about 10 minutes, will try to get to it.
Title: Re: AjaxChat Integration
Post by: discjocke on March 15, 2009, 02:42:28 PM
I just checked another indentical directory (Boardindex) which is in my CPanel directory, and it shows exactly as the one that has to be replaced.

I had issues of not having access to my admin section in my forum. I had techs from my host fix it, by putting it before the old forum directory (Forum1). Here's what my CPanel directory looks like. That actual one that's not being used is (Forum1) as far as I know, but has the correct Boardindex file that has to be replaced:

       forum      (Default Forum directory)
      
       attachments
      
       avatars
      
       home
      
       mgal_data
      
       Packages
      
       Smileys
      
       Sources
      
       Themes
      
       
   
       (forum1)           (Original forum directory)
      
       attachments
      
       avatars
      
       gallery
      
       home
      
       mgal_data
      
       Packages
      
       Smileys
      
       Sources
      
       Themes

Version: 1.1; BoardIndex file

Title: Re: AjaxChat Integration
Post by: trevor_olson on March 15, 2009, 03:55:56 PM
I've installed this mod but cannot get it to work.

I get this error message when I click the chat button

http://i163.photobucket.com/albums/t297/catfishjoe/Untitled-1copy-14.jpg

any clue as to how to get it to work?
Title: Re: AjaxChat Integration
Post by: reeldragon on March 15, 2009, 05:41:48 PM
Hello,

I have installed the mod but is dont see the shoutbox. A have set permissions and enable shoutbox. The chat works fine but is dont see the shoutbox can you help me please. Ik have smf 2.0 rc1

greetz bazzie
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 16, 2009, 12:14:40 AM
@ discjocke
Attatched is your BoardIndex.template.php file

put it in the following directory.....   yourforum/Themes/default/

When you goto your site does it say http://yoursite/forum/ or http://yoursite/forum1/ ? Whatever you see in the URL is the live site.




@trevor_olson
that seems to be an error from your host/server. I think you might need to contact them to get assistance.



@reeldragon
Are you using a custom theme?



Title: Re: AjaxChat Integration
Post by: reeldragon on March 16, 2009, 03:55:33 AM
Hi I am using EDSO Theme Cadosoas

2.0 rc1

look here:            www.basenjill.nl/forum


greetz reeldragon
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 16, 2009, 09:38:02 AM
@ reeldragon

You need use a Package Parser (http://resourcez.biz/PackageParser/) to do the edits for your custom theme.
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on March 16, 2009, 10:45:35 AM
@SunKing
i checked your site
you should give chat access permission to i check the chat
and shoutbox seems disabled too
Title: Re: AjaxChat Integration
Post by: deZio on March 16, 2009, 03:47:32 PM
Quote from: fotografo74 on March 10, 2009, 01:49:39 PM
Quote from: mrtrc266 on March 10, 2009, 11:45:16 AM
Not sure if I understood the problem 100% but...

The permission settings should be in Admin/Members/Permissions/ select the group you want to have permissions and check "Access to chat" in the General Category.

Anyone who has Admin or Moderator rights on your forum should automatically have Moderator rights in the Chat.

If you're saying that you don't have the "Access to chat" checkbox in your permission settings then, hmmmm, are you using a custom theme?
Thanks for your support and sorry for my poor english :-(
I have selected right permission, sure, and regular members, admin and moderators have access to chat, it's ok.
But regular members can delete post of other regular members...it's ok this ?
I.e: i'm regular member and i access to chat...i write message...you are regular member and you can delete my message!!!

Thanks!
Antonio
Any solution for this? I have same problem on my forum(2.0 RC1)
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 16, 2009, 04:58:47 PM
Quote from: .HuNTeR. on March 16, 2009, 10:45:35 AM
@SunKing
i checked your site
you should give chat access permission to i check the chat
and shoutbox seems disabled too

I just double-checked, re-added, and checked again.  ;D
Everyone should have access and everything should be enabled.
Title: Re: AjaxChat Integration
Post by: Lotti on March 16, 2009, 07:42:14 PM
Quote from: deZio on March 16, 2009, 03:47:32 PM
Quote from: fotografo74 on March 10, 2009, 01:49:39 PM
Quote from: mrtrc266 on March 10, 2009, 11:45:16 AM
Not sure if I understood the problem 100% but...

The permission settings should be in Admin/Members/Permissions/ select the group you want to have permissions and check "Access to chat" in the General Category.

Anyone who has Admin or Moderator rights on your forum should automatically have Moderator rights in the Chat.

If you're saying that you don't have the "Access to chat" checkbox in your permission settings then, hmmmm, are you using a custom theme?
Thanks for your support and sorry for my poor english :-(
I have selected right permission, sure, and regular members, admin and moderators have access to chat, it's ok.
But regular members can delete post of other regular members...it's ok this ?
I.e: i'm regular member and i access to chat...i write message...you are regular member and you can delete my message!!!

Thanks!
Antonio
Any solution for this? I have same problem on my forum(2.0 RC1)
Same here, on 1.1.8
Title: Re: AjaxChat Integration
Post by: discjocke on March 16, 2009, 10:36:45 PM
mrtrc266, I edited both files and applied mod via the package manager and followed your instructions.

Here's an issue that the CPanel techs from my host (Siteground) couldn't figure out and fix.

1) After initially clearing out anything having to do with "Chat" from before, even a "Chat" folder I had in the forum directory, the buttons on menu in the forum still have the word "Chat" twice on the buttons section. When I click on them, even after editing and applying the mod just now, I get this error message, and there are no settings buttons in features and options in my admin section.

I think I made one error though. Should I have made a "Chat" folder in my forum directory before applying the mod via package manager? I totally forgot about that. 

I did find the mod zip file in the "packages" folder, in my forum directory tree, but can't find it anywhere else.

Now the current "Chat" buttons I told you about, when I press them, I get this error message:

"If you are the webmaster of this site please log in to Cpanel and check the Error Logs. You will find the exact reason for this error there.

Common reasons for this error are:

    * Incorrect file/directory permissions: Above 755.

      In order files to be processed by the webserver, their permissions have to be equal or below 755. You can update file permissions with a FTP client or through cPanel's File Manager.
    * Incorrect Apache directives inside .htaccess file.

      Make sure you have not specified unsupported directives inside the local .htaccess file. Such include PHP settings and Apache module settings"

Now here's the strange part. I have a test login. When I use it to log into my forum the "Chat" words don't appear in the menu buttons. I'm the only one to see them. None of my members see it. Only when I'm logged in as admin can I see them on the menu bar.

I did a search initially within the entire directory and couldn't find anything in it where I can delete those "Chat" words on buttons. I did the search a few days ago, before I did anything today.

I hope this doesn't confuse you to much. First I'd like to know if I can uninstall the Chat mod, then create a "Chat" folder, then try to reinstall the mod.

Second. Before I do this, how can I get rid of the two "Chat" buttons on the menu bar currently showing? I don't understand why I'm the only one that see's them. I haven't been drinking either.  ;D
Title: Re: AjaxChat Integration
Post by: Mystery? on March 16, 2009, 10:53:42 PM
I am getting this error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.nextgenbattles.com Port 80
Title: Re: AjaxChat Integration
Post by: Filipina on March 16, 2009, 11:17:53 PM
Quote from: Mystery? on March 16, 2009, 10:53:42 PM
I am getting this error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.nextgenbattles.com Port 80

Hello I got the same error on installation when clicking the chat button

http://xxxxxxxxxxxxxxxxx/penpal-community/chat/index.php
Title: Re: AjaxChat Integration
Post by: Filipina on March 16, 2009, 11:22:21 PM
Oh think this is solved I had to change the persmissions on the index.php file inside the chat folder.
Title: Re: AjaxChat Integration
Post by: Mystery? on March 16, 2009, 11:36:03 PM
Quote from: Filipina on March 16, 2009, 11:22:21 PM
Oh think this is solved I had to change the persmissions on the index.php file inside the chat folder.

What did you change it to?
Title: Re: AjaxChat Integration
Post by: Filipina on March 16, 2009, 11:54:57 PM
755 and i actually had to change a lot of folders inside the chat folder to 755...

The problem I have now is it keeps asking me to log in when it use to remember me before? Was that addressed on another post?

P.S. It is awesome except for this log in thing I cannot figure out :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 12:49:25 AM
@ discjocke I sent you a PM, let's see if we can get this going for you.

Just a quick address to some of your book though  :D

QuoteAfter initially clearing out anything having to do with "Chat" from before, even a "Chat" folder I had in the forum directory, the buttons on menu in the forum still have the word "Chat" twice on the buttons section.
I noticed when I looked at your BoardIndex.template file that the chat code was in there twice, I bet it's in your index.template file twice as well (probably all edited files), that would explain the 2 buttons.

QuoteI think I made one error though. Should I have made a "Chat" folder in my forum directory before applying the mod via package manager? I totally forgot about that.
Actaully you DO NOT want to create the "Chat" Folder.

QuoteI did find the mod zip file in the "packages" folder, in my forum directory tree, but can't find it anywhere else.
That just means that the MOD is sitting in your Package Manager ready to install or uninstall

QuoteNow the current "Chat" buttons I told you about, when I press them, I get this error message:
"If you are the webmaster of this site please log in to Cpanel and check the Error Logs. You will find the exact reason for this error there.
Common reasons for this error are:
    * Incorrect file/directory permissions: Above 755.
      In order files to be processed by the webserver, their permissions have to be equal or below 755. You can update file permissions with a FTP client or through cPanel's File Manager.
    * Incorrect Apache directives inside .htaccess file.
      Make sure you have not specified unsupported directives inside the local .htaccess file. Such include PHP settings and Apache module settings"
I have no idea, but we will figure it out.
    
QuoteNow here's the strange part. I have a test login. When I use it to log into my forum the "Chat" words don't appear in the menu buttons. I'm the only one to see them. None of my members see it. Only when I'm logged in as admin can I see them on the menu bar.
Maybe Permissions aren't set for the Member Groups yet?

QuoteI hope this doesn't confuse you to much. First I'd like to know if I can uninstall the Chat mod, then create a "Chat" folder, then try to reinstall the mod.
LOL Nothing about SMF in NOT confusing. Don't uninstall, reinstall or create a chat folder.

QuoteSecond. Before I do this, how can I get rid of the two "Chat" buttons on the menu bar currently showing? I don't understand why I'm the only one that see's them. I haven't been drinking either.
Read my very first line on this post  ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 01:44:41 AM
@ Filipina  and Mystery

For AJAX Chat Intergration Version 3 just looking though my file permissions it seems that all my "Folders" are set @ 755 and all my "Files" are set @ 666.

For AJAX Chat Intergration Version 2 my "Folders" are set @ 755 and all my "Files" are set @ 644.
Title: Re: AjaxChat Integration
Post by: ricorico on March 17, 2009, 01:55:55 AM
thanks to some help by .hunter. i can manaully go to the chat. however it is not displaying via my forum settings.

so what kind of code on tinyportal can i do it to make it display at a top panel above the forum?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 02:01:55 AM
Quote from: ricorico on March 17, 2009, 01:55:55 AM
thanks to some help by .hunter. i can manaully go to the chat. however it is not displaying via my forum settings.

so what kind of code on tinyportal can i do it to make it display at a top panel above the forum?

If you are using a custom theme you will to edit the following files in your custom theme using a Package Parser (http://resourcez.biz/PackageParser/)
Themes/yourtheme/BoardIndex.template.php
Themes/yourtheme/index.template.php
Themes/yourtheme/style.css
Title: Re: AjaxChat Integration
Post by: ricorico on March 17, 2009, 02:41:50 AM
thank you, i tried your suggestion, the first php was default and already had that code from the install i guess and the template ones the first 2 i found (but it gave me an error saying some codes with ' end with a/ usually etc.. didnt understand cuz i copied and pasted but the other template fixes were nowhere to be found?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 02:51:05 AM
1.What version of SMF are you using

2. Please post a link to your forum (Or PM a link to your forum if you prefer).

3. If you're using a custom theme please send a link to your theme.

Title: Re: AjaxChat Integration
Post by: ricorico on March 17, 2009, 04:15:55 AM
site - http://commonenemy.ifastnet.com/forum/index.php
and im usin the 'reference' template by crip.

i actually had to re download the skin cuz the changes i made  in that one template had an error ? but i just had to re up that page and its fine.

i made a tinyportal box up there and i can manually go to the chat/index.php but i dont know how to just put the code there to display up there or if whatever ur helping me with will auto do that.
Title: Re: AjaxChat Integration
Post by: bluegray on March 17, 2009, 08:43:31 AM
I installed the latest version. Chat is working fine on the seperate chat page. The shoutbox is enabled and is showing up on the main page, but it does not show chats or add them if entered. It just stays blank.
What can be going wrong?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 11:00:57 AM
@ ricorico  please atttatch your yourforum/Themes/Reference/index.template.php and style.css files.


Title: Re: AjaxChat Integration
Post by: ricorico on March 17, 2009, 11:14:57 AM
here ya go.
Title: Re: AjaxChat Integration
Post by: wiki on March 17, 2009, 11:29:28 AM
Hi thank you for a great mod.

but since i am using custom theme http://custom.simplemachines.org/themes/index.php?lemma=348

I got error after i click on chat button can you help me to make it work I am using smf 2.0 rc1.

Regards,
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 11:34:04 AM
@ ricorico  here are you edits. I just uploaded these to my Test Site (http://monsters-mansion.com/test118/index.php) and it's working great. You should be up and running now.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 11:48:52 AM
@ wiki exactly what is the error?

Also as stated a few posts ago....

If you are using a custom theme you will to edit the following files in your custom theme using a Package Parser (http://resourcez.biz/PackageParser/)
Themes/yourtheme/BoardIndex.template.php
Themes/yourtheme/index.template.php
Themes/yourtheme/style.css
Title: Re: AjaxChat Integration
Post by: ricorico on March 17, 2009, 12:19:52 PM
beautiful thank you very much :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 12:35:11 PM
Quote from: ricorico on March 17, 2009, 12:19:52 PM
beautiful thank you very much :D

You're very welcome :)
Title: Re: AjaxChat Integration
Post by: wiki on March 17, 2009, 12:37:09 PM
Quote from: mrtrc266 on March 17, 2009, 11:48:52 AM
@ wiki exactly what is the error?

Also as stated a few posts ago....

If you are using a custom theme you will to edit the following files in your custom theme using a Package Parser (http://resourcez.biz/PackageParser/)
Themes/yourtheme/BoardIndex.template.php
Themes/yourtheme/index.template.php
Themes/yourtheme/style.css

Sorry I am newbie and i am worry to edit theme but i will try to do it and when i search at theme modification i can't find boardindex.template.php

pls if you can upload the modified files i will be approciated.

btw i don't installed any shoutbox is it required?


Thank you
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 12:54:17 PM
@ wiki

Please attach yourforum/Themes/BlackRainV220rc1/index.template.php and yourforum/Themes/BlackRainV220rc1/style.css files please.
Title: Re: AjaxChat Integration
Post by: deZio on March 17, 2009, 01:55:03 PM
Quote from: Lotti on March 16, 2009, 07:42:14 PM
Quote from: deZio on March 16, 2009, 03:47:32 PM
Quote from: fotografo74 on March 10, 2009, 01:49:39 PM
Quote from: mrtrc266 on March 10, 2009, 11:45:16 AM
Not sure if I understood the problem 100% but...

The permission settings should be in Admin/Members/Permissions/ select the group you want to have permissions and check "Access to chat" in the General Category.

Anyone who has Admin or Moderator rights on your forum should automatically have Moderator rights in the Chat.

If you're saying that you don't have the "Access to chat" checkbox in your permission settings then, hmmmm, are you using a custom theme?
Thanks for your support and sorry for my poor english :-(
I have selected right permission, sure, and regular members, admin and moderators have access to chat, it's ok.
But regular members can delete post of other regular members...it's ok this ?
I.e: i'm regular member and i access to chat...i write message...you are regular member and you can delete my message!!!

Thanks!
Antonio
Any solution for this? I have same problem on my forum(2.0 RC1)
Same here, on 1.1.8
I find out a solution!  :D
Open CustomAJAXChat.php and make this changes:
Find:
if($context['user']['is_admin'])
$userData['userRole'] = AJAX_CHAT_ADMIN;
// $context['user']['is_mod'] is always false if no board is loaded.
// As a workaround we check the permission 'calendar_post'.
// This is only set to true for global moderators by default:
elseif(in_array('calendar_post', $user_info['permissions']))
$userData['userRole'] = AJAX_CHAT_MODERATOR;
else
$userData['userRole'] = AJAX_CHAT_USER;


Replace with:
if($context['user']['is_admin'])
$userData['userRole'] = AJAX_CHAT_ADMIN;
else
$userData['userRole'] = AJAX_CHAT_USER;
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 01:59:08 PM
Glad you got it sorted! Does that affect your Forum Moderators in the chat room at all?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 02:03:17 PM
Quote from: bluegray on March 17, 2009, 08:43:31 AM
I installed the latest version. Chat is working fine on the seperate chat page. The shoutbox is enabled and is showing up on the main page, but it does not show chats or add them if entered. It just stays blank.
What can be going wrong?

Have you gone through all the settings?

For SMF 1.1.X Admin/Configuration/Features and Options/

For SMF 2 RC1  Admin/Configuration/Modifications/Chat/

Enable the ShoutBox?   
Check for ShoutBox on any page or uncheck for only in index page:   
Integrate shout box and chat room?   
Chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section? 

Also be sure to CHECK PERMISSIONS!  ;)
Title: Re: AjaxChat Integration
Post by: wiki on March 17, 2009, 02:07:01 PM
Here is the both files and thank you so much

Also logout button go to row 2 under menu so why is that i have free place at menu at first row?
Title: Re: AjaxChat Integration
Post by: deZio on March 17, 2009, 02:23:35 PM
Quote from: mrtrc266 on March 17, 2009, 01:59:08 PM
Glad you got it sorted! Does that affect your Forum Moderators in the chat room at all?
No, everything is fine. All users exept admins are now normal users and they cant delete messages. Solution to enable forum mods to moderate chat is to recognise them with ids. Something like this: if($context['user']['is_admin'])
$userData['userRole'] = AJAX_CHAT_ADMIN;
elseif($context['user']['id'] == 154 || $context['user']['id'] == 250)
$userData['userRole'] = AJAX_CHAT_MODERATOR;
else
$userData['userRole'] = AJAX_CHAT_USER;
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 02:24:43 PM
Here you go wiki.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 17, 2009, 02:27:55 PM
Quote from: deZio on March 17, 2009, 02:23:35 PM
Quote from: mrtrc266 on March 17, 2009, 01:59:08 PM
Glad you got it sorted! Does that affect your Forum Moderators in the chat room at all?
No, everything is fine. All users exept admins are now normal users and they cant delete messages. Solution to enable forum mods to moderate chat is to recognise them with ids. Something like this

Cool, thank you for the info. It's weird that you even had that problem though, I haven't run into that on 1.1.8 or RC1 ???

Cya all in about 10 hrs off to work :(
Title: Re: AjaxChat Integration
Post by: wiki on March 17, 2009, 02:46:42 PM
Quote from: mrtrc266 on March 17, 2009, 02:24:43 PM
Here you go wiki.

I upload the files and now i can see the shoutbox only at my home page but the chat is not integrated and i got this (error: connection status:500) here the photo of my home page beside can we make the logout button at same menu row?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg19.imageshack.us%2Fimg19%2F9662%2Fcapturelkk.jpg&hash=29bddb25c654a464f877f38123fcc67ef3ff7569)


Thx a lot
Title: Re: AjaxChat Integration
Post by: deZio on March 17, 2009, 03:32:17 PM
Quote from: mrtrc266 on March 17, 2009, 02:27:55 PM
Quote from: deZio on March 17, 2009, 02:23:35 PM
Quote from: mrtrc266 on March 17, 2009, 01:59:08 PM
Glad you got it sorted! Does that affect your Forum Moderators in the chat room at all?
No, everything is fine. All users exept admins are now normal users and they cant delete messages. Solution to enable forum mods to moderate chat is to recognise them with ids. Something like this

Cool, thank you for the info. It's weird that you even had that problem though, I haven't run into that on 1.1.8 or RC1 ???

Cya all in about 10 hrs off to work :(
Problem starts when you allow all members to change and create events in calendar. I have allow that permissions and because of that chat recognise all members as moderators.
Title: Re: AjaxChat Integration
Post by: Lotti on March 17, 2009, 08:08:00 PM
Quote from: deZio on March 17, 2009, 03:32:17 PM
Quote from: mrtrc266 on March 17, 2009, 02:27:55 PM
Quote from: deZio on March 17, 2009, 02:23:35 PM
Quote from: mrtrc266 on March 17, 2009, 01:59:08 PM
Glad you got it sorted! Does that affect your Forum Moderators in the chat room at all?
No, everything is fine. All users exept admins are now normal users and they cant delete messages. Solution to enable forum mods to moderate chat is to recognise them with ids. Something like this

Cool, thank you for the info. It's weird that you even had that problem though, I haven't run into that on 1.1.8 or RC1 ???

Cya all in about 10 hrs off to work :(
Problem starts when you allow all members to change and create events in calendar. I have allow that permissions and because of that chat recognise all members as moderators.
it's possible, i have the same policy on my forum.
Title: Re: AjaxChat Integration
Post by: MistWDS on March 17, 2009, 10:12:50 PM
@ wiki
I too have a similar error at forum (error: connection status: 500), however on my local server, at the same configuration, all work.
About "menu in line":
I not assured, but the problem can be solved having changed in file: "style.css"

find:
#tabs6 a span {
float : left;
display : block;
background : url(images/tabright6.gif) no-repeat right top;
padding : 5px 15px 4px 6px;
color : #fff;
}

and change on the such:
#tabs6 a span {
float : left;
display : block;
background : url(images/tabright6.gif) no-repeat right top;
padding : 5px 11px 4px 5px;
color : #fff;
}
or try set another value of "padding : 5px 5px 4px 5px;"
Title: Re: AjaxChat Integration
Post by: arrowboy55 on March 17, 2009, 10:26:05 PM
Hi, I installed this on my 2.0 RC1 board http:forum.victorylaneforum.com and it works perfect on a separate page but when I enable the shoutbox box in Admin>Config>Mod>Chat I see the shoutbox but it has a short line for the shout entry and the bold, italic tags and that is it.  There is no "shout" button or smilies or anyway to enter the shout.

I am kinda confused as I have tried virtually every combo of permissions...unless I am missing any.  Like I said it works perfect in the pop up mode (which incidentally is the opposite of what I want...lol)

I am using the default Core theme and the install of this Mod went perfect.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 18, 2009, 01:05:29 AM
Quote from: wiki on March 17, 2009, 02:46:42 PM
Quote from: mrtrc266 on March 17, 2009, 02:24:43 PM
Here you go wiki.

I upload the files and now i can see the shoutbox only at my home page but the chat is not integrated and i got this (error: connection status:500) here the photo of my home page beside can we make the logout button at same menu row?
Thx a lot

Sorry for the delay, I had to run off to work. I just uploaded the same files that I gave you and it seems to work fine, check it out here....It must be something else.
http://monsters-mansion.com/testrc1/index.php

username: test
password: testuser
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 18, 2009, 01:23:38 AM
@ arrowboy55  there is not a submit button, you just hit the enter key and your shout is sent
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 18, 2009, 01:26:00 AM
@ deZio thanks nice catch on the "allowing user to post calendar events."

I'm sure Hunter will fix that.
Title: Re: AjaxChat Integration
Post by: Rex Zac on March 18, 2009, 07:09:04 AM
i have same problem like wiki, my installation went perfect but i get (12:03:32) ChatBot: Error: Connection status: 500,

and here is my log error:

[Wed Mar 18 12:03:37 2009] [error] [client 78.3.20.77] SoftException in Application.cpp:252: File "/home/island/public_html/damon1/f/chat/index.php" is writeable by group, referer: http://www.damon.in/f/index.php
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on March 18, 2009, 07:42:30 AM
in next version there will be "moderate chat" permission
Title: Re: AjaxChat Integration
Post by: Rex Zac on March 18, 2009, 07:59:05 AM
ok, i figure it out that this "http://custom.simplemachines.org/mods/index.php?mod=1319" isnt same as  this chat in this topic.
actualy chat it is, but not same thing, since that integrated isnt working, and this is working, but only direct url. how can i integrate it now?



edit: after installing this mod from this post, install ajaxchat integration... dunno if this is proper way or not since i couldnt find anywhere is written, but for me, now it works


Quote from: Rex Zac on March 18, 2009, 07:09:04 AM
i have same problem like wiki, my installation went perfect but i get (12:03:32) ChatBot: Error: Connection status: 500,

and here is my log error:

[Wed Mar 18 12:03:37 2009] [error] [client 78.3.20.77] SoftException in Application.cpp:252: File "/home/island/public_html/damon1/f/chat/index.php" is writeable by group, referer: http://www.damon.in/f/index.php
Title: Re: AjaxChat Integration
Post by: wiki on March 18, 2009, 09:14:50 AM
Quote from: mrtrc266 on March 18, 2009, 01:05:29 AM
Quote from: wiki on March 17, 2009, 02:46:42 PM
Quote from: mrtrc266 on March 17, 2009, 02:24:43 PM
Here you go wiki.

I upload the files and now i can see the shoutbox only at my home page but the chat is not integrated and i got this (error: connection status:500) here the photo of my home page beside can we make the logout button at same menu row?
Thx a lot

Sorry for the delay, I had to run off to work. I just uploaded the same files that I gave you and it seems to work fine, check it out here....It must be something else.
http://monsters-mansion.com/testrc1/index.php

username: test
password: testuser

I chk the site u gave me and i can't see the shoutbox at main page so i should disable it?

Here the mod i am using:
1.     Cristalab Icon Set  1.0
2.    jQLightbox  0.3
3.    Hide SMF Version 1.0.3b

Title: Re: AjaxChat Integration
Post by: arrowboy55 on March 18, 2009, 10:12:37 AM
Quote from: mrtrc266 on March 18, 2009, 01:23:38 AM
@ arrowboy55  there is not a submit button, you just hit the enter key and your shout is sent

Okay, and thank you.  Except I have tried that and it never enters the chat when I hit enter.  The shoutbox does not seem "tall" enough maybe?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 18, 2009, 01:08:30 PM
@ Rex Zac  did you get it sorted?
Title: Re: AjaxChat Integration
Post by: tfs on March 18, 2009, 01:50:41 PM
I'd like to have the shoutbox remember more than the last ten items before they scroll off.  I've tried editing the obvious stuff in \forum\shoutbox\lib\config.php but they don't seem to make a  difference.

Basically I'd like to increase it to 30 items, and have those remain for three days before being removed for time reasons.

Here's what I changed in \forum\shoutbox\lib\config.php

// Max time difference in hours for messages to display on each request: (Changed 24 to 72)
$config['requestMessagesTimeDiff'] = 72;
// Max number of messages to display on each request: (Changed 10 to 30)
$config['requestMessagesLimit'] = 30;

Should I be making the change in forum\ajaxchat\lib\config.php even though it's the shoutbox I want to modify?
Title: Re: AjaxChat Integration
Post by: tfs on March 18, 2009, 02:10:37 PM
Quote from: tfs on March 18, 2009, 01:50:41 PM
Should I be making the change in forum\ajaxchat\lib\config.php even though it's the shoutbox I want to modify?

I answered my own question by editing forum\ajaxchat\lib\config.php, which made the desired change in the shoutbox.  I wonder then, does the file forum\shoutbox\lib\config.php get used at all?  Is it possible to configure settings in the shoutbox and the chat window seperately?
Title: Re: AjaxChat Integration
Post by: Rex Zac on March 18, 2009, 02:13:33 PM
Quote from: mrtrc266 on March 18, 2009, 01:08:30 PM
@ Rex Zac  did you get it sorted?

i did, it work, however, am not sure should that go the way i said or i just overwrite with some older version so it work :D
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 18, 2009, 05:12:17 PM
*scratches head*

Still nothing?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 19, 2009, 12:03:37 AM
Here are some the most common questions and answers to getting your Chat Room and Shoutbox going on your forum for AJAX Chat Intergration 3.X 
If you are using a custom theme you will need to edit the following files in your custom theme using a Package Parser (http://resourcez.biz/PackageParser/)
Here some known issues and fixes caused by either other Mods or some servers
If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755 (and in some cases CHMOD the actual "Folders" as well).
This could possible be the solution for this as well.... "If you install the Mod and it looks like it installs fine but the   shoutbox and chat room are blank"
If you get this error XML Parsing Error: junk after document element
Open yourforum/chat/lib/config.php
Find
// The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null):
$config['contentType'] = null;

Replace with
// The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null):
$config['contentType'] = 'text/html';

If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing
Open chat/js/chat.js
Find
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
Replace with
if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}

AJAX Chat User submitted tweaks (Thank you for your contributions.) 
Here are some tips for adding some functionality and customization to your Ajax Chat Room.
Disable guests accessing chat in version 3.2
Open and find /chat/lib/config.php / Change true to false
// Enable/Disable guest logins:
$config['allowGuestLogins'] = true;

Redirect the Logout back to your forum when you log out of the Chat Room
Open.....yourforum/chat/lib/config.php
Find
// Argument that is given to the handleLogout JavaScript method:
$config['logoutData'] = './?logout=true';

Replcace with (of course change http://yourforum.com (http://yourforum.com/) to your forum) ;)
// Argument that is given to the handleLogout JavaScript method:
$config['logoutData'] = 'http://yourforum.com';
           
Set how long you want members to be idle before they are timed out.
Open.....yourforum/chat/lib/config.php (Change to whatever you like.)
Find
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;
           
Edit/Remove the channels that are currently boards.
Open.....yourforum/chat/lib/config.php
Find
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;

And replace with the code below and just change the numbers to the number of the boards for the boards you want to have as channels

EXAMPLE: If "General Discussion" was board #1 and you had another board "SMF Talk" was board #2 then your code would look like this. This would make it so ONLY General Discussion and SMF Talk would appear in the channel list.

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(1,2);

To have ONLY the Public Room avaliable in the Channel List, change the array to 0 (Thanks stikkki)
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(0);

You can also change the name of the Public Channel to something like "YourForums Lounge" Find and change Public to whatever you like
// Default channelName used together with the defaultChannelID if no channel with this ID exists:
$config['defaultChannelName'] = 'Public';

To actually add custom channels that are NOT in your board.
Open....yourforum/chat/lib/class/CustomAJAXChat.php (Just change Custom_Channel_1 and 'Custom_Channel_2 to what you want. No white spaces allowed.)
Find
      return $this->_channels;
Replace with
      $this->_channels = array_merge($this->_channels, array('Custom_Channel_1'=>567, 'Custom_Channel_2'=>890));
      return $this->_channels;

Find
      return $this->_allChannels;
Replace with
      $this->_allChannels = array_merge($this->_allChannels, array('Custom_Channel_1'=>567, 'Custom_Channel_2'=>890));
      return $this->_allChannels;
           
To set default Chat Room template and/or remove the template selection from drop down list
Remove selection from list delete the ones you don't want from the "Availabe Styles" array.
To set default template just change "Default style" to what you want.

Open.....yourforum/chat/lib/config.php
Find
// Available styles:
$config['styleAvailable'] = array('beige','black','grey','Oxygen','Lithium','Sulfur','Cobalt','Mercury','Radium','prosilver','subsilver2','subblack2','subSilver','Core','MyBB','vBulletin');
// Default style:
$config['styleDefault'] = 'Core';
           
Add a Welcome Message when you users enter the Chat
Open.....yourforum/chat/js/custom.js
Find
// Overriding client side functionality:
Add After (of course change Welcome to the Monsters Chat Room! to whatever you like.)

ajaxChat.customInitialize = function() {
   ajaxChat.addChatBotMessageToChatList('Welcome to the Monsters Chat Room!');
}
           
Change the name of your Chatbot
Open.....yourforum/chat/lib/config.php
Find and change Chatbot to whatever you'd like.
// The userName used for ChatBot messages
$config['chatBotName'] = 'ChatBot';
           
This is a fun one..Add a command to take over the Chat Bot
The command will look like this....EXAMPLE  /takeover I have been taken over..will result in ChatBot: I have been taken over
Open.....yourforum/chat/lib/class/CustomAJAXChat.php
Find
}
?>

Replace with
// Add custom commands
function parseCustomCommands($text, $textParts) {
switch($textParts[0]) { 
  case '/takeover':
  $this->insertChatBotMessage( $this->getChannel(), $text );
  return true; 
  default:
  return false; 
}

}
?>

Open.....yourforum/chat/js/custom.js
Find
// Overriding client side functionality:
Add after

ajaxChat.replaceCustomCommands = function(text, textParts) {
   switch(textParts[0]) {
      case '/takeover':
      text=text.replace('/takeover', ' ');
      return '<span class="chatBotMessage">' + text + '</span>';
      default:
      return text;
   }
}



Adding some Smileys, BBCode and Font Color Palette to your Shoutbox (FOR AJAX CHAT INTERGRATION 2.3 AND 2.5 ONLY)
http://www.simplemachines.org/community/index.php?topic=257973.msg1930049#msg1930049 (http://www.simplemachines.org/community/index.php?topic=257973.msg1930049#msg1930049)
Title: Re: AjaxChat Integration
Post by: Kirsten07734 on March 19, 2009, 02:08:42 AM
I successfully installed version 2.5 of this mod on an SMF 2.0 RC1 site a few weeks ago.  At that time we were supposed to install the Ajax Chat software first, then install the mod to integrate it into SMF.  It worked fine and the forum users loved it.

I upgraded another forum tonight and naturally wanted to use the Ajax Chat mod again.  This time I installed version 3.0 of the Ajax Chat mod, which includes the Ajax Chat software in the mod itself.  But this time I'm getting the following error message in both the chat room and the shoutbox:

Quote
ChatBot: Error: Connection status: 404

It appears that version 2.5 is no longer available for download and I no longer have the copy I used.
Title: Re: AjaxChat Integration
Post by: herohenson on March 19, 2009, 05:02:49 AM
im getting this error when i going to chatroom, and i cant use the shoutbox? can any one help me here? here's my site www.pinoygroundz.comuf.com here's the error im getting
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg7.imageshack.us%2Fimg7%2F5002%2F27985514.png&hash=de9fd9e791e29b1f994b0243c71222bb28f998f4)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 19, 2009, 09:54:28 AM
@Kirsten07734

In addition to uninstalling 2.5 did you remove the chat folder from your root directory before you installed version 3?
Title: Re: AjaxChat Integration
Post by: berrylife on March 19, 2009, 11:49:34 AM
hi ive installed the 3.0 version on 2.0 RC1. it says it installs fine but when i click on the chat tab i get this

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi547.photobucket.com%2Falbums%2Fhh470%2Fmic8310%2Fchaterror.jpg&hash=36bb95fa7b3dab71a5d0ab4b21c78dbab92711e2)

i dont know what it means, how would i fix it please!
Title: Re: AjaxChat Integration
Post by: Kirsten07734 on March 19, 2009, 12:17:50 PM
Quote from: mrtrc266 on March 19, 2009, 09:54:28 AM
In addition to uninstalling 2.5 did you remove the chat folder from your root directory before you installed version 3?

Yes.  I had some trouble with the upgrade from 1.1.8 to 2.0 RC1 and wound up blowing the forum away, installing a fresh copy of 2.0 RC1, and then using repair_settings to connect my old database to my new instance of SMF 2.0 RC1. 

The new instance is lightly modded, using mods I have used in the past with Ajax Chat mod 2.5 (Stop Spammer and View Only Boards).

------
BTW, thanks very much for the mod.  My users much prefer it to FlashChat or X7 Chat.  I have a forum for people with disabilities and my vision impaired folks find Ajax Chat much easier to use with their accessibility software.  We'll be running a test with JAWS (a text reader for the blind) once this instance is fully operational.  I'll report back on how well it works if you're interested.  Finding a chat room for the blind as well as the deaf has been nearly impossible and this one comes the closest so far.
Title: Re: AjaxChat Integration
Post by: Podologo on March 19, 2009, 05:43:07 PM


This is a great mod which is going down well with my members, but is there a way to clear chat history easily, perhaps automatically?

Any help/advice will be appreciated.

Podologo


Title: Re: AjaxChat Integration
Post by: tfs on March 19, 2009, 06:03:18 PM
Quote from: Podologo on March 19, 2009, 05:43:07 PM
This is a great mod which is going down well with my members, but is there a way to clear chat history easily, perhaps automatically?

There's some settings in \chat\lib\config.php that you might look at.  Such as...

// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;

As  far as I can tell, this is a setting to say how old a messages can get before it's purged.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 19, 2009, 07:17:54 PM
This is weird, I am upgrading to 3.0 on my live site and during uninstall I cannot remove this from my index.template.php without my index page crashing, this happens on the default theme and my custom theme. Any ideas? Thanks in advance.
Find
function getChatInterface() {
    global $scripturl;
    static $ajaxChat;

    if (!$ajaxChat) {
        // URL to the chat directory:
        if (!defined('AJAX_CHAT_URL')) {
            define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));
        }

        // Path to the chat directory:
        if (!defined('AJAX_CHAT_PATH')) {
            define('AJAX_CHAT_PATH', dirname(__FILE__) . '/../chat/');
        }

        // Validate the path to the chat:
        if (@is_file(AJAX_CHAT_PATH.'lib/classes.php')) {
            // Include Class libraries:
            require_once(AJAX_CHAT_PATH.'lib/classes.php');

            // Initialize the chat interface:
            $ajaxChat = new CustomAJAXChatInterface();
        }
    }

    return $ajaxChat;
}

function getShoutBoxContent()
{
    global $scripturl;

    // Get the URL to the chat directory:
    if (!defined('AJAX_CHAT_URL'))
    {
        define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));
    }
   
    // Get the real path to the chat directory:
    if (!defined('AJAX_CHAT_PATH'))
    {
define('AJAX_CHAT_PATH', dirname(__FILE__) . '/../chat/');
    }
   
    // Validate the path to the chat:
    if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php'))
    {
        // Include Class libraries:
        require_once(AJAX_CHAT_PATH.'lib/classes.php');

        // Initialize the shoutbox:
        $ajaxChat = new CustomAJAXChatShoutBox();

        // Parse and return the shoutbox template content:
        return $ajaxChat->getShoutBoxContent();
    }
    return null;
}

function getChatOnlineUserIDs() {
    return ($chatInterface = getChatInterface()) ? $chatInterface->getOnlineUserIDs() : array();
}

?>

Replace with
?>

EDIT: I got it sorted, the Top Stats MOD was interfering with something.
Title: Re: AjaxChat Integration
Post by: tibaba on March 19, 2009, 07:20:26 PM
Hello,

First, sorry for my bad english. I will try to explain my problem :

I will use the shout box and the chat, but not together.

If I check "Integrate shout box and chat room?", chat and shoutbox work without problem

(See ok.jpg)

If I uncheck "Integrate shout box and chat room?", chat work without problem, but shoutbox is blank, only menubar come.

(See nok.jpg)


Any idea?

Thanks in advance.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 19, 2009, 07:31:00 PM
@ tibaba  in the second pic it looks like the shoutbox is just collapsed?
Title: Re: AjaxChat Integration
Post by: tibaba on March 19, 2009, 07:32:33 PM
No, it's not collapsed, already tried this lol  :P

You can try it at : www.tibaba.ch (http://www.tibaba.ch)
Title: Re: AjaxChat Integration
Post by: bullbreedluverz on March 19, 2009, 07:52:12 PM
hi mrtrc266 - in your FAQ you give instructions to edit/remove channels from channel list

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(1,2);


i dont want any channels based on my forum boards i just want to have the public channel - how would i configure this edit correctly - would i just place  $config['limitChannelList'] = array(0);
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 19, 2009, 07:53:20 PM
Quote from: tibaba on March 19, 2009, 07:32:33 PM
No, it's not collapsed, already tried this lol  :P

You can try it at : www.tibaba.ch (http://www.tibaba.ch)

Hmmm, not sure I just tried it on my Test Site (http://monsters-mansion.com/testrc1/index.php) with those same settings and it worked for me.

You got a clean install with no errors?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 19, 2009, 07:55:20 PM
@ stikkki I'm not sure but that's the first thing that came to my mind LOL. Try it,  and if not I will see if I can figure it out.

EDIT: I Just tried it and that worked. I will add that to the tip list...Thanks ;)
Title: Re: AjaxChat Integration
Post by: bullbreedluverz on March 19, 2009, 08:01:12 PM
your welcome and thanks  :D
Title: Re: AjaxChat Integration
Post by: tibaba on March 19, 2009, 08:18:52 PM
@ mrtrc266

Hmm, yes it's a new install, i already added some mod (Simple Portal, Gallery, Age,Gender,Location on Registation ...) but everything seem ok.

If i check the code source of the page loaded, here is the code for shoutbox. In red, shoutbox is blank, its without the check in "Integrate shout box and chat room?".

In pruple, this is OK, its if "Integrate shout box and chat room?" is check.


      <script language="JavaScript" type="text/javascript">
         var sb_current_header = false;

         function ajax_shoutBox_collapse(mode)
         {
            smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "a5e1ff18f2c8f29fa0a1357dbf12fc52");
            document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("ShoutBox").style.display = mode ? "none" : "";

            sb_current_header = mode;
            }
      </script>
      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="http://www.tibaba.ch/Themes/default/images/collapse.gif" alt="*" style="margin-right: 5px;"  /></a>ShoutBox
         </div>
         <div id="ShoutBox">

         
         </div>





   <script language="JavaScript" type="text/javascript">
         var sb_current_header = false;

         function ajax_shoutBox_collapse(mode)
         {
            smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "a5e1ff18f2c8f29fa0a1357dbf12fc52");
            document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("ShoutBox").style.display = mode ? "none" : "";

            sb_current_header = mode;
            }
      </script>
      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="http://www.tibaba.ch/Themes/default/images/collapse.gif" alt="*" style="margin-right: 5px;"  /></a>ShoutBox
         </div>
         <div id="ShoutBox">

                     <div class="tborder" style="margin: 1px 0 0 0;">
         <div id="ajaxChatContent">
            <script src="http://www.tibaba.ch/chat/js/chat.js" type="text/javascript" charset="UTF-8"></script>
            <script src="http://www.tibaba.ch/chat/js/custom.js" type="text/javascript" charset="UTF-8"></script>
            <script src="http://www.tibaba.ch/chat/js/shoutbox.js" type="text/javascript" charset="UTF-8"></script>
            <script src="http://www.tibaba.ch/chat/js/lang/fr.js" type="text/javascript" charset="UTF-8"></script>
            <script src="http://www.tibaba.ch/chat/js/config.js" type="text/javascript" charset="UTF-8"></script>

            <script src="http://www.tibaba.ch/chat/js/FABridge.js" type="text/javascript" charset="UTF-8"></script>
            <div id="ajaxChatChatList"></div>
         </div>
      </div>
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 19, 2009, 09:24:46 PM
Not sure tibaba, I just compared it with mine and it's exactly the same. Maybe Hunter will have a solution when he gets back on.
Title: Re: AjaxChat Integration
Post by: tibaba on March 19, 2009, 10:37:53 PM
I've found something...

I just check the manual procedure, and I see that my shoutBox folder was fast empty.

So I do that :

Move the included directory "chat/css" to "./shoutBox".
Move the included directory "chat/flash" to "./shoutBox".
Move the included directory "chat/img" to "./shoutBox".
Move the included directory "chat/js" to "./shoutBox".
Move the included directory "chat/lib" to "./shoutBox".
Move the included directory "chat/socket" to "./shoutBox".
Move the included directory "chat/sounds" to "./shoutBox".
Move the included directory "chat/src" to "./shoutBox".


Now, with check or uncheck the option "Integrate shout box and chat room?" , shoutbox and chat work but .... If i write in chat, that write the message in shoutbox too ....  and vice versa....  ??
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 19, 2009, 10:41:27 PM
K but now how does the "Intergrate Shoutbox" feature work?
Title: Re: AjaxChat Integration
Post by: tibaba on March 19, 2009, 10:44:27 PM
If checked, work good, write in both place

If unchecked, doesnt' work, write in both place too ...
Title: Re: AjaxChat Integration
Post by: tibaba on March 19, 2009, 10:51:11 PM
Ok, resolved yet  ;D

   
After uploading the files as explained in the manual installation , I put the 4 files that were in the shoutbox folder back :

js/config.js
lib/config.php
class/CustomAJAXChat.php
index.php

Thanks for help mrtrc266
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 19, 2009, 11:22:04 PM
WOOOOHOOOOO!!! Glad you got it sorted! :D
Title: Re: AjaxChat Integration
Post by: herohenson on March 20, 2009, 02:01:18 AM
hmm.. my post just been ignored.. tnx anyway, i guess i cant find my answers and help here..
Title: Re: AjaxChat Integration
Post by: Podologo on March 20, 2009, 02:19:58 AM


Thanks tfs, I shall take a look there and see what happens when I make some changes.

Podologo

Title: Re: AjaxChat Integration
Post by: berrylife on March 20, 2009, 04:44:32 AM
Quote from: berrylife on March 19, 2009, 11:49:34 AM
hi ive installed the 3.0 version on 2.0 RC1. it says it installs fine but when i click on the chat tab i get this

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi547.photobucket.com%2Falbums%2Fhh470%2Fmic8310%2Fchaterror.jpg&hash=36bb95fa7b3dab71a5d0ab4b21c78dbab92711e2)

i dont know what it means, how would i fix it please!

ive read back and see others had this problem, how did they overcome it?

could someone please help i really want this to work :(
Title: Re: AjaxChat Integration
Post by: discjocke on March 20, 2009, 05:12:06 AM
Thanks mrtrc266

The connection status: 500 which is the problem I had was corrected after having the permissions corrected in file manager. Thanks again.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 20, 2009, 11:04:00 AM
Quote from: berrylife on March 20, 2009, 04:44:32 AM
Quote from: berrylife on March 19, 2009, 11:49:34 AM
hi ive installed the 3.0 version on 2.0 RC1. it says it installs fine but when i click on the chat tab i get this

i dont know what it means, how would i fix it please!

ive read back and see others had this problem, how did they overcome it?

could someone please help i really want this to work :(

The 500 error is an internal server error, there have  been a few issues with this and it could be a number of things, .htaccess file, file permissions, etc. Right above this post discjockie got it sorted by contacting his host and they fixed it for him. Give that a shot.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 20, 2009, 12:21:10 PM
Quote from: herohenson on March 20, 2009, 02:01:18 AM
hmm.. my post just been ignored.. tnx anyway, i guess i cant find my answers and help here..

Sorry bout that herohenson, no you weren't being ignored. Can you please put the error in here in text, I can barley see the pic.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 20, 2009, 01:19:04 PM
Quote from: SunKing on March 18, 2009, 05:12:17 PM
*scratches head*
Still nothing?

Not sure SunKing, can't remember if we went through this already, but did we uninstall, delete chat and shoutbox folders and reinstall?

EDIT: Nevermind Just went through your posts and saw that you had done this.

Hopefully Hunter can help when he gets back online
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 20, 2009, 01:24:05 PM
Button Help

I'm using the Extreme 6 Theme and trying to get this correct to show my image..

<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';



Here is an example of another menu button, what and where would I add to the code above? Of course the image will be chat.png. I have a temporary fix but I loose the popup feature.

echo '<li><a href="', $scripturl, '?action=profile" class="kwick opt5">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.png" alt="' . $txt[79] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[467]), '</span></a></li>';



Thanks in advance.
Title: Re: AjaxChat Integration
Post by: berrylife on March 20, 2009, 04:45:56 PM
Quote from: mrtrc266 on March 17, 2009, 01:44:41 AM
@ Filipina  and Mystery

For AJAX Chat Intergration Version 3 just looking though my file permissions it seems that all my "Folders" are set @ 755 and all my "Files" are set @ 666.

For AJAX Chat Intergration Version 2 my "Folders" are set @ 755 and all my "Files" are set @ 644.

i did same as you for version 3 and i still get the error 500 :(
Title: Re: AjaxChat Integration
Post by: Mystery? on March 20, 2009, 06:21:04 PM
Quote from: berrylife on March 20, 2009, 04:45:56 PM
Quote from: mrtrc266 on March 17, 2009, 01:44:41 AM
@ Filipina  and Mystery

For AJAX Chat Intergration Version 3 just looking though my file permissions it seems that all my "Folders" are set @ 755 and all my "Files" are set @ 666.

For AJAX Chat Intergration Version 2 my "Folders" are set @ 755 and all my "Files" are set @ 644.

i did same as you for version 3 and i still get the error 500 :(

I changed the permission to 755 for index.php and it worked. Try it.
Title: Re: AjaxChat Integration
Post by: Filipina on March 20, 2009, 07:46:58 PM
Quote from: berrylife on March 20, 2009, 04:45:56 PM
i did same as you for version 3 and i still get the error 500 :(

Everything is cool for me with permissions except the shoutbox... getting this eror and i have checked all permissions on all files so i am scratcvhing me head now :)

ChatBot: Error: Connection status: 500
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 20, 2009, 08:21:00 PM
@ Filipina did you try Mysterys suggestion?
Title: Re: AjaxChat Integration
Post by: Cheese Head on March 20, 2009, 08:38:08 PM
Hi All, would love to use this Mod on my SMF Version 2 RC1 forum.

I'm not that IT literate, I've tried doing the auto install from Menu's Admin > Main > Download Packages > Browse > New Feature > Download, but get error message "An Error Has Occurred!" "Although the package was downloaded to the server it appears to be empty . . .".

Is something wrong or can you only do a manual install?

Thanks for support/advice . . . John.
Title: Re: AjaxChat Integration
Post by: Vekseid on March 20, 2009, 08:51:16 PM
Manually installing Ajaxchat works better, in my opinion. One less mod : )
Title: Re: AjaxChat Integration
Post by: Filipina on March 20, 2009, 09:08:42 PM
Quote from: mrtrc266 on March 20, 2009, 08:21:00 PM
@ Filipina did you try Mysterys suggestion?

Hi mrtrc266! Do you mean the 755? I think I have double checked every file and they are all 755. I think this is something simple but cannot figure it out?  :)
Title: Re: AjaxChat Integration
Post by: Filipina on March 20, 2009, 09:30:11 PM
oh sorry i missed the shoutbox folder all fixed now thanks!
Title: Re: AjaxChat Integration
Post by: heinandar on March 20, 2009, 10:54:53 PM
Hi. Hunter

This is a part of code to add new group in ajaxchat for phpbb3

I can't configure this part. Below is for phpbb3

$userData['groupID'] = $user->data['group_id'];

            if($auth->acl_get('a_')) {
                $userData['userRole'] = AJAX_CHAT_ADMIN;
            } elseif($auth->acl_get('m_')) {
                $userData['userRole'] = AJAX_CHAT_MODERATOR;
            }    else {
                // Check if we have a member of our custom user group
                if($userData['groupID'] == 7)
                    $userData['userRole'] = AJAX_CHAT_VIP;
                else
                    $userData['userRole'] = AJAX_CHAT_USER;
            }


original source code link is here

http://ajax-chat.wiki.sourceforge.net/phpBB3+custom+user+group

I want to know that, can i add that code to SMF? if this is possible, pls help me :D :D :D
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 20, 2009, 11:32:19 PM
Quote from: Cheese Head on March 20, 2009, 08:38:08 PM
Hi All, would love to use this Mod on my SMF Version 2 RC1 forum.

I'm not that IT literate, I've tried doing the auto install from Menu's Admin > Main > Download Packages > Browse > New Feature > Download, but get error message "An Error Has Occurred!" "Although the package was downloaded to the server it appears to be empty . . .".

Is something wrong or can you only do a manual install?

Thanks for support/advice . . . John.

I had this same issue. Unzip the package to any spot on your computer. Then simply "rezip" it into a new zip file, upload the new one, and try again from the package manager (that worked for me).

Now if I could just get the chat working....... :P
Title: Re: AjaxChat Integration
Post by: berrylife on March 21, 2009, 02:55:46 AM
Quote from: Mystery? on March 20, 2009, 06:21:04 PM
Quote from: berrylife on March 20, 2009, 04:45:56 PM
Quote from: mrtrc266 on March 17, 2009, 01:44:41 AM
@ Filipina  and Mystery

For AJAX Chat Intergration Version 3 just looking though my file permissions it seems that all my "Folders" are set @ 755 and all my "Files" are set @ 666.

For AJAX Chat Intergration Version 2 my "Folders" are set @ 755 and all my "Files" are set @ 644.

i did same as you for version 3 and i still get the error 500 :(

I changed the permission to 755 for index.php and it worked. Try it.

excellent that did it for me thanks very much!!
Title: Re: AjaxChat Integration
Post by: Rex Zac on March 21, 2009, 08:00:59 AM
hm, when user chat in shoutbox, then go on example forum,  and then dont click back on chat in shoutbox, he is not updated untill user dont click in box to write msg (shoutbox only), can this be somehow auto update, without this - it look like timeout in shoutbox?

some users might ting no one is on chat cos of that, and when they click text box to send msg, they get like 10 rows of chat
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 21, 2009, 10:01:35 AM
@ Cheese Head  Delete the package from you server then upload it again.
Title: Re: AjaxChat Integration
Post by: discjocke on March 21, 2009, 10:40:19 AM
I had some questions from some of my moderators, about items on the forum. My forum menu shows the word "Chat", but one of my moderators shows only "(1)".

I also logged in on a temporary test log in, and I don't see anything as the moderator does. There's a Shoutbox, but no option on the menu for a pop-up chat box. I checked the settings and all looks ok.

Is there some sort of manual on how to manage the chat? here's what my moderator's seeing. Also shows a "1." next to his avatar.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 21, 2009, 11:03:52 AM
Quote from: SunKingNow if I could just get the chat working....... :P

Have you tried setting the file permissions, I know you're not getting the 500 error but it might be worth a shot.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 21, 2009, 11:13:38 AM
@ discjocke

I just went to your site and everywhere it's supposed to show the Number of User in Chat it just shows the number. It was working fine the other day right? Have you installed any more Mods?

I have to run to work but will take a look when I get back if you don't get it sorted.

Title: Re: AjaxChat Integration
Post by: WindsorLive! on March 21, 2009, 11:48:51 AM
I think I have read all 46 pages of thei tread and it only gets more confusing.

If I may, please specify the exact way to start from scratch. Do ya use the mod or do ya install the ajax chat from sourceforge first?

I just installed the mod and got it working but am having some issues that are probably solved with the correct starting point.

Can you load the chat room into the shoutbox, or am I way off?

I also wonder if I can dump the chat and only leave the shoutbox. For some reason I thought the posts were integrated from the shoutbox to the chat room.

It is a very cool mod and it seems nice. I like the previous post with regards to the accessibility aspect which is why I would like to utilize this mod. I just would like to customize it a little bit.

And btw: Happy Spring Everyone!


Title: Re: AjaxChat Integration
Post by: Filipina on March 21, 2009, 12:55:31 PM
shoutbox keeps adding "my connection has status 0" for people using firefox.

Anyone else experience or know a solution :)
Title: Re: AjaxChat Integration
Post by: discjocke on March 21, 2009, 01:51:48 PM
Quote from: mrtrc266 on March 21, 2009, 11:13:38 AM
@ discjocke

I just went to your site and everywhere it's supposed to show the Number of User in Chat it just shows the number. It was working fine the other day right? Have you installed any more Mods?

I have to run to work but will take a look when I get back if you don't get it sorted.

Haven't added or changed anything. The Chat and Shoutbox are working okay. It's just some questions I had. I changed "Maximum number of messages in the chatlist:" to 100 for now, due to someone asking me why the history of the messages doesn't last long. When I go back in to check the settings, it's back to zero. No major issues though.

I setup all permissions of what I saw. We're able to use it, it's just a couple of things to tweak. Old_Ods on my forum wanted to know why that "1." next to his avatar. It's not next to mine.  ???
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on March 21, 2009, 04:17:40 PM
@xxxwindsor
your confusion is because of lots of changes in this mod from first version

you should only install the mod, and some little manual edits in 3rd party themes

yes it is possible

i don't get what you mean

@Filipina
this only happens in dial-up and wireless connections
and also reported a little bug when deleting a message, there is solution for it in this topic just search you find it

@discjocke
those user using english language?
Title: Re: AjaxChat Integration
Post by: discjocke on March 21, 2009, 05:01:21 PM
Yes. All of them using English.

I found out what the "1." on side of the avatar is. On the side of mine, it says "1 user is in chat." But on the side of my moderator, it just says "1.".
Title: Re: AjaxChat Integration
Post by: WindsorLive! on March 21, 2009, 05:21:04 PM
Quote from: .HuNTeR. on March 21, 2009, 04:17:40 PM
@xxxwindsor
your confusion is because of lots of changes in this mod from first version

you should only install the mod, and some little manual edits in 3rd party themes

yes it is possible

i don't get what you mean


You answered my question. I only installed the mod, I just thought I was lucky that it was working for me, after a few small issues.

I just need to change the look a little, edit the default text, like the 'AJAX Chat' and the title, etc. Should I look here for those answers or are they better covered elsewhere?


The odd question I have is that if I choose to only have the chat feature for certain groups but would like the shoutbox to remain accessible to the vast majority. Is there a way to only display the 'chat' button (in the menu bar)  to those with permission to use the chat feature?

Title: Re: AjaxChat Integration
Post by: [unplugged] on March 21, 2009, 08:12:25 PM
Quote from: mrtrc266 on March 21, 2009, 11:03:52 AM
Quote from: SunKingNow if I could just get the chat working....... :P

Have you tried setting the file permissions, I know you're not getting the 500 error but it might be worth a shot.

I have. My error is actually Error: Connection status: 0.  :P

EDIT:
Quote from: .HuNTeR. on March 21, 2009, 04:17:40 PM
@Filipina
this only happens in dial-up and wireless connections
and also reported a little bug when deleting a message, there is solution for it in this topic just search you find it
I just wanted to add that I have tried to chat from Firefox, IE, and Opera. I have tried as guest, as regular member, and as admin. And I do not use dial-up or wireless.
Title: Re: AjaxChat Integration
Post by: InternetMafia on March 21, 2009, 11:56:52 PM
I have the chat installed and working, however I do not see it as a SB on the main index page of my forum?

Any ideas?

Are there easy instructions anywhere to get this to show as a SB?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 22, 2009, 01:31:28 AM
Quote from: xxxwindsor on March 21, 2009, 05:21:04 PM
Quote from: .HuNTeR. on March 21, 2009, 04:17:40 PM
@xxxwindsor
I just need to change the look a little, edit the default text, like the 'AJAX Chat' and the title, etc. Should I look here for those answers or are they better covered elsewhere?


The odd question I have is that if I choose to only have the chat feature for certain groups but would like the shoutbox to remain accessible to the vast majority. Is there a way to only display the 'chat' button (in the menu bar)  to those with permission to use the chat feature?

Here is some tips on changing the header of your chat
http://sourceforge.net/forum/message.php?msg_id=4860651

In your permissions you can check these settings for who you want to have access to what...

Access to chat     
Use shoutBox    

The chat button will show but if they don't have permission to access the chat it will tell them so.
Title: Re: AjaxChat Integration
Post by: tibaba on March 22, 2009, 08:15:58 AM
Quote from: Rex Zac on March 21, 2009, 08:00:59 AM
hm, when user chat in shoutbox, then go on example forum,  and then dont click back on chat in shoutbox, he is not updated untill user dont click in box to write msg (shoutbox only), can this be somehow auto update, without this - it look like timeout in shoutbox?

some users might ting no one is on chat cos of that, and when they click text box to send msg, they get like 10 rows of chat

I have same "problem" here, any idea ? Thanks  :D
Title: Re: AjaxChat Integration
Post by: Rex Zac on March 22, 2009, 03:45:58 PM
Quote from: tibaba on March 22, 2009, 08:15:58 AM
Quote from: Rex Zac on March 21, 2009, 08:00:59 AM
hm, when user chat in shoutbox, then go on example forum,  and then dont click back on chat in shoutbox, he is not updated untill user dont click in box to write msg (shoutbox only), can this be somehow auto update, without this - it look like timeout in shoutbox?

some users might ting no one is on chat cos of that, and when they click text box to send msg, they get like 10 rows of chat

I have same "problem" here, any idea ? Thanks  :D

should it be like that or?  any chance to put it like... if user click anywhere on site, chat update itself?


another question, i change theme from default to gothic, and manualy updated: BoardIndex.template.php, index.template.php, style.css .

shoutbox has appear, but when someone enter text, it continue to go down pushing the web, he dont limit to lines + apear scroll.
when i click on some link, forum or something, he cut text before and start again from last ~7-8 lines.
it also dont show background of chat, only title (AJaxChat).

could anyone hlp me?
Title: Re: AjaxChat Integration
Post by: arkanoidblue on March 22, 2009, 04:34:37 PM

My trouble is here.

No scroolbar onto shoutbox. See atachament

Chats work perfectly

Somebody knows as to make this?

Any solution is very welcome.

Regards

Look this:


Title: Re: AjaxChat Integration
Post by: hdhoran on March 22, 2009, 06:15:22 PM
Could anybody help with my index.template.php? I have a very heavily modded forum and after spending 2 days trying to get this working, I'm ready to pull my hair out. I've tried to manually edit but with all of the other mods, I guess 'm putting something in the wrong place and I keep getting a parse error.

It would be greatly appreciated!
Title: Re: AjaxChat Integration
Post by: okchunter on March 22, 2009, 06:38:17 PM
Quick question is there a way to set it up so that when someone logs out it closes the pop up window?
Title: Re: AjaxChat Integration
Post by: Cobra97 on March 22, 2009, 09:34:43 PM
I just installed this in my test forum which is running SMF 2.0 RC.  I am getting this error in the shoutbox and chat will not work at all..... a database error I'm guessing?

(20:32:06) ChatBot: Error: Connection status: 500

What should I look for to fix this.....

Thanks
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 22, 2009, 09:38:41 PM
@ arkanoidblue and Rex Zac....

Right after you install the Mod you need to refresh your screen for the scroll bar and member font colors to show up.

If you have done that make sure that the edit for the style.css was done as well.


@ hdhoran

What version of SMF are you using?

Please post a link to the theme you are using.

Attatch your index.template.php
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 22, 2009, 09:40:22 PM
@ Cobra please read this..

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration
Post by: hdhoran on March 22, 2009, 09:50:38 PM
Thanks Mrtrc but after 30 hours of messing with it...I decided to jump ship and say forget it....



Title: Re: AjaxChat Integration
Post by: Cobra97 on March 22, 2009, 09:55:01 PM
Quote from: mrtrc266 on March 22, 2009, 09:40:22 PM
@ Cobra please read this..

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

Thank you....I just found it myself just playing around.  Aren't test forums great!  :)

Thanks anyway....And great mod, I love it!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 22, 2009, 09:59:13 PM
Glad you got it sorted  :D
Title: Re: AjaxChat Integration
Post by: WindsorLive! on March 22, 2009, 10:24:04 PM
Quote from: hdhoran on March 22, 2009, 09:50:38 PM
Thanks Mrtrc but after 30 hours of messing with it...I decided to jump ship and say forget it....

hd I can feel your pain, I had a theme with some mods that I loved and once I started adding more goodies it all went to hell in a handbasket. I should have paid better attention to the warnings. So what I did was return to the default theme and did a complete clean up in the background, then started over. Unfortunately my visitors had to adjust to a new look because I forced a theme change upon them. Now all of the goodies seem to be in place and now I can get back to business. The mods I installed were clashing and now everything works better so the theme can be updated when there is a chance.


Title: Re: AjaxChat Integration
Post by: WindsorLive! on March 23, 2009, 12:06:18 AM
Thanks mrtrc226,

Can I ask if the chat can be loaded inside the forum? I have a friend that uses phbb and the chat room loads within the forum window and not a new  window. Know what I mean?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 23, 2009, 12:50:38 AM
@ xxxwindsor  If I understand you correctly I believe that if you don't check the option to "open chat in pop up" that it will not open in a new window.
Title: Re: AjaxChat Integration
Post by: WindsorLive! on March 23, 2009, 01:38:08 AM
Quote from: mrtrc266 on March 23, 2009, 12:50:38 AM
@ xxxwindsor  If I understand you correctly I believe that if you don't check the option to "open chat in pop up" that it will not open in a new window.
That's what I though and I have double checked to make sure it is not checked. Still launches new window though.
Title: Re: AjaxChat Integration
Post by: arkanoidblue on March 23, 2009, 04:14:24 AM
Quote from: mrtrc266 on March 22, 2009, 09:38:41 PM
@ arkanoidblue and Rex Zac....

Right after you install the Mod you need to refresh your screen for the scroll bar and member font colors to show up.

If you have done that make sure that the edit for the style.css was done as well.


@ hdhoran

What version of SMF are you using?

What please post a link to the theme you are using.

Attatch your index.template.php

and attatch your in

Thank you very much, but I solve this problem.

If it will be of interest for somebody

Open the style.css of your theme forum.

Search for:

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

@import url(../../chat/css/shoutbox.css);


Insert below

/* scrollbox. */
.scrollbox {
      height:150px;
      width:890px;
      overflow:auto;
}



after this, ftp mode  go to : yoursite/forumdir/shoutBox/lib/template/


Open shoutbox.html , and serach for:

<div class="tborder" style="margin: 1px 0 0 0;">
<div id="ajaxChatContent">
<script src="[AJAX_CHAT_URL/]js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/custom.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/shoutbox.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/config.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/FABridge.js" type="text/javascript" charset="UTF-8"></script>
<div id="ajaxChatChatList"></div>
</div>
</div>


Replace this content for this:


<div class="tborder" style="margin: 1px 0 0 0;">
                    <div class="scrollbox">
<div id="ajaxChatContent">
<script src="[AJAX_CHAT_URL/]js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/custom.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/shoutbox.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/config.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/FABridge.js" type="text/javascript" charset="UTF-8"></script>
<div id="ajaxChatChatList"></div>
</div>
</div>
          </div>


Almost equal to from above one, but inserted a
<div class="scrollbox">and </div>

is it.

:D Now another question.  :D 

Why after insert a text or smilie, don´t have auto refresh?

In chat the subject brings up to date automatically ,whereas in shoutbox not. In shoutbox it is scrollbar that dumb of size.

Any solutions?

Regards
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 23, 2009, 10:02:25 AM
@ arkanoidblue I see your using a custom theme, did you add this to your forum/Themes/yourtheme/style.css ?

Find
/* Normal, standard links. */

Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Normal, standard links. */


The reason I ask is because you shouldn't have had to do all those edits to get your shoutbox to scoll. This code in your shoutbox.css handles this.
#ajaxChatContent #ajaxChatChatList {
height:163px;
overflow:auto;


Also in your picture I don't see the "delete" image next to your posts which should also be available with the @import url function ???
Title: Re: AjaxChat Integration
Post by: tfs on March 23, 2009, 10:18:59 AM
Quote from: xxxwindsor on March 23, 2009, 01:38:08 AM
Quote from: mrtrc266 on March 23, 2009, 12:50:38 AM
@ xxxwindsor  If I understand you correctly I believe that if you don't check the option to "open chat in pop up" that it will not open in a new window.
That's what I though and I have double checked to make sure it is not checked. Still launches new window though.

The chat window will always be in a new browser windw, but when you select the checkbox to open in a "pop up" it will look nicer because the browser controls will not be visible.  It makes it look like an application window rather than a browser window.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 23, 2009, 10:43:07 AM
Quote from: xxxwindsor on March 23, 2009, 01:38:08 AM
Quote from: mrtrc266 on March 23, 2009, 12:50:38 AM
@ xxxwindsor  If I understand you correctly I believe that if you don't check the option to "open chat in pop up" that it will not open in a new window.
That's what I though and I have double checked to make sure it is not checked. Still launches new window though.

You can change this in your index.template.php

Find
empty($modSettings['chatPopUp']) ? 'target="_blank"' : '
Replace with
empty($modSettings['chatPopUp']) ? '"' : '

This will make the chat NOT open in a new window regardless of your settings.

I would recommend that you also do the Redirect the Logout edit otherwise when your users log out of the chat they will be taken to the chat loggin screen. You can follow the instructions HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Hope that's what you lookin for.

Title: Re: AjaxChat Integration
Post by: okchunter on March 23, 2009, 05:07:32 PM
Quote from: okchunter on March 22, 2009, 06:38:17 PM
Quick question is there a way to set it up so that when someone logs out it closes the pop up window?

Anyone have any idea on this? I know you can set it up so it goes back to the forum on the config file but is there a setting that will close the window all together when they click logout?
Title: Re: AjaxChat Integration
Post by: Mr_Lon on March 23, 2009, 09:21:43 PM
Is there a way to change the size of the PopUp window? I would like to make it a little larger.
Lon
Title: Error after installing AjaxChat Integration
Post by: llinocoe on March 23, 2009, 09:47:41 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2F2yo4x2r.jpg&hash=91e28a09960d3d23aff68b262e0a24ee7e3dd9fa)
Title: Re: AjaxChat Integration
Post by: jiminoregon on March 24, 2009, 01:53:07 AM
Quote from: mrtrc266 on March 23, 2009, 10:43:07 AM
Quote from: xxxwindsor on March 23, 2009, 01:38:08 AM
Quote from: mrtrc266 on March 23, 2009, 12:50:38 AM
@ xxxwindsor  If I understand you correctly I believe that if you don't check the option to "open chat in pop up" that it will not open in a new window.
That's what I though and I have double checked to make sure it is not checked. Still launches new window though.

You can change this in your index.template.php

Find
empty($modSettings['chatPopUp']) ? 'target="_blank"' : '
Replace with
empty($modSettings['chatPopUp']) ? '"' : '

This will make the chat NOT open in a new window regardless of your settings.

I would recommend that you also do the Redirect the Logout edit otherwise when your users log out of the chat they will be taken to the chat loggin screen. You can follow the instructions HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Hope that's what you lookin for.



mrtrc266,

I must be missing something...in smf 2.0 I can't find empty($modSettings['chatPopUp']) ? 'target="_blank"' : '
Quote from: mrtrc266 on March 23, 2009, 10:43:07 AM
Quote from: xxxwindsor on March 23, 2009, 01:38:08 AM
Quote from: mrtrc266 on March 23, 2009, 12:50:38 AM
@ xxxwindsor  If I understand you correctly I believe that if you don't check the option to "open chat in pop up" that it will not open in a new window.
That's what I though and I have double checked to make sure it is not checked. Still launches new window though.

You can change this in your index.template.php

Find
empty($modSettings['chatPopUp']) ? 'target="_blank"' : '
Replace with
empty($modSettings['chatPopUp']) ? '"' : '

This will make the chat NOT open in a new window regardless of your settings.

I would recommend that you also do the Redirect the Logout edit otherwise when your users log out of the chat they will be taken to the chat loggin screen. You can follow the instructions HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Hope that's what you lookin for.


Quote from: mrtrc266 on March 23, 2009, 10:43:07 AM
Quote from: xxxwindsor on March 23, 2009, 01:38:08 AM
Quote from: mrtrc266 on March 23, 2009, 12:50:38 AM
@ xxxwindsor  If I understand you correctly I believe that if you don't check the option to "open chat in pop up" that it will not open in a new window.
That's what I though and I have double checked to make sure it is not checked. Still launches new window though.

You can change this in your index.template.php

Find
empty($modSettings['chatPopUp']) ? 'target="_blank"' : '
Replace with
empty($modSettings['chatPopUp']) ? '"' : '

This will make the chat NOT open in a new window regardless of your settings.

I would recommend that you also do the Redirect the Logout edit otherwise when your users log out of the chat they will be taken to the chat loggin screen. You can follow the instructions HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Hope that's what you lookin for.



mrtrc266,

I must be missing something...in smf 2.0 I can't find "empty($modSettings['chatPopUp']) ? 'target="_blank"' : '"

The closest code is:

if ($modSettings['chatPopUp']){
         $context['menu_buttons']['chat']['href'] .= '" onclick="openWindow(this.href);this.blur();return false;';
         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
              )

Any ideas how to have this open in a seperate popup?

Thanks...Jim
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 24, 2009, 02:04:13 AM
@ jiminoregon 

That was actually from a user the DID NOT want the chat to open in a new window.

Your request is
QuoteAny ideas how to have this open in a seperate popup?

To have it open in a Pop Up window for RC1 go to Admin/Configuration/Modifications/Chat and check "chat in popup page?"
Title: Re: AjaxChat Integration
Post by: jiminoregon on March 24, 2009, 02:08:18 AM
Quote from: mrtrc266 on March 24, 2009, 02:04:13 AM
@ jiminoregon 

That was actually from a user the DID NOT want the chat to open in a new window.

Your request is
QuoteAny ideas how to have this open in a seperate popup?

To have it open in a Pop Up window for RC1 go to Admin/Configuration/Modifications/Chat and check "chat in popup page?"


I did that...but if that setting is checked or unchecked it opens in a new window...hmmm something odd..Any ideas?

Thanks...BTW I saw your site...very nice...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 24, 2009, 02:27:37 AM
Ohhh so you DO NOT want it to open in a new window? Sorry bout that I got confused when you said "Any ideas how to have this open in a seperate popup?"

I have dug around on how to do that for RC1 but can't figure it out at the moment. I will keep trying but hopefully Hunter will have a solution when he gets back on.

Thanks for the comliment on the site :)
Title: Re: AjaxChat Integration
Post by: jiminoregon on March 24, 2009, 02:32:27 AM
Quote from: mrtrc266 on March 24, 2009, 02:27:37 AM
Ohhh so you DO NOT want it to open in a new window? Sorry bout that I got confused when you said "Any ideas how to have this open in a seperate popup?"

I have dug around on how to do that for RC1 but can't figure it out at the moment. I will keep trying but hopefully Hunter will have a solution when he gets back on.

Thanks for the comliment on the site :)


I want it to work just like your site...when you hit chat...a popup opens.  No matter if i check or uncheck "open in popup" it works the same...

Maybe I could use a monster mask...and scare the heck outta my installation...lol...

Jim
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 24, 2009, 02:35:39 AM
LOL, what's the URL to your site? PM me if you don't want it public
Title: Re: AjaxChat Integration
Post by: Danpotter on March 24, 2009, 03:27:53 AM
please i want this in my urban theme

im usng smf 1.1.8 pls provide me the changes to be made in all theme modifyng stuff and all, other ways pls....
Title: Re: AjaxChat Integration
Post by: herohenson on March 24, 2009, 04:31:30 AM
mr mrtrc here's my site www.pinoygroundz.comuf.com my chat is not working., ill pm u a dummy account so you check whats wrong with my site., the chat and shoutbox is not working, sorry for my late reply.. im glad for your response about my problem..
Title: Re: AjaxChat Integration
Post by: reeldragon on March 24, 2009, 04:41:16 AM
Hello it works now but cam somebody say how to change de background color in the shoutbox? i want to make it black.

greetz bazzie
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 24, 2009, 11:13:51 AM
Quote from: Danpotter on March 24, 2009, 03:27:53 AM
please i want this in my urban theme

im usng smf 1.1.8 pls provide me the changes to be made in all theme modifyng stuff and all, other ways pls....

@ Danpotter please read this, it will explain how to get this going on your theme.
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

@herohenson
PM Sent

@ reeldragon
you can play with colors of the shoutbox in yourforum/chat/css/shoutbox.css
Find for the shoutbox background colors. Also there are many other settings as well, alternating posts background etc.
#ajaxChatContent {
Title: Re: Error after installing AjaxChat Integration
Post by: mrtrc266 on March 24, 2009, 11:53:03 AM
Quote from: llinocoe on March 23, 2009, 09:47:41 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2F2yo4x2r.jpg&hash=91e28a09960d3d23aff68b262e0a24ee7e3dd9fa)

@ llinocoe
Try this....

Find yourforum/chat/lib/config.php
$config['contentType'] = null;
Replace with
$config['contentType'] = 'text/html';

Title: Re: AjaxChat Integration
Post by: jiminoregon on March 24, 2009, 12:15:22 PM
Quote from: mrtrc266 on March 24, 2009, 02:27:37 AM
Ohhh so you DO NOT want it to open in a new window? Sorry bout that I got confused when you said "Any ideas how to have this open in a seperate popup?"

I have dug around on how to do that for RC1 but can't figure it out at the moment. I will keep trying but hopefully Hunter will have a solution when he gets back on.

Thanks for the comliment on the site :)


No problem...I like the way yours works.  Push chat...and a popup window opens.  It's odd because checking the open in popup box doesn't seem to have an effect on my forum.  Hmmm...

One more question, if you don't mind.  Is there a way to change the location and size of the shoutbox?

Thx...Jim
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 24, 2009, 12:29:47 PM
@ jiminoregon

To change the size of the shoutbox open yourforum/chat/css/shoutbox.css and find then change to what you'd like. Leave the overflow to auto or else it won't scroll. You will have to refresh or clean your cache for the change to take effect.
#ajaxChatContent #ajaxChatChatList {
height:163px;
overflow:auto;
}



To change the location of the shoutbox open /yourforum/Themes/yourtheme/index.template.php and play around with the positioning of the code below. Of course make a backup before you begin.
//shoutBox
if (!empty($modSettings['enableShoutBox'])){
if (allowedTo('shout_access')){
// We'll have to use the cookie to remember the shoutBox header...
if ($context['user']['is_guest'])
$options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);

echo '
<script language="JavaScript" type="text/javascript">
var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

function ajax_shoutBox_collapse(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>';

if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
</div>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
', getShoutBoxContent() ,'
</div>
</div>';
}
}
}
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 24, 2009, 01:35:24 PM
Quote from: Mr_Lon on March 23, 2009, 09:21:43 PM
Is there a way to change the size of the PopUp window? I would like to make it a little larger.
Lon

Try playing with this....

For SMF 1.1.8 and RC1
Find yourforum/Themes/yourtheme/index.template.php and change width and height to whatever you like

            function openWindow(url,width,height,options,name) {
                width = width ? width : 800;
                height = height ? height : 600;
                options = options ? options : \'resizable=yes\';

Title: Re: AjaxChat Integration
Post by: jiminoregon on March 24, 2009, 02:14:22 PM
Thanks for all the help...everything works fine except the chat won't open in a popout like on your site.  I see you use SMF1.1.8 and I'm using SMF 2 RC1.  Maybe there is something buggy about SMF 2 that isn't accepting that popout code.

If anyone's using SMF 2, and getting the popout chat window to work...let us know...

Jim
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 24, 2009, 02:21:41 PM
NP, glad you got everthing sorted except the popup.

It does popup in RC1 for me on my test site
http://monsters-mansion.com/testrc1/index.php

Are you using a custom theme? If so post a link to it here.

Either way attatch your index.template.php and I'll take a look when I get back.
I'm off to work for now, be back in about 9hrs :(
Title: Re: AjaxChat Integration
Post by: jiminoregon on March 24, 2009, 03:43:53 PM
Quote from: mrtrc266 on March 24, 2009, 02:21:41 PM
NP, glad you got everthing sorted except the popup.

It does popup in RC1 for me on my test site
http://monsters-mansion.com/testrc1/index.php

Are you using a custom theme? If so post a link to it here.

Either way attatch your index.template.php and I'll take a look when I get back.
I'm off to work for now, be back in about 9hrs :(

Great minds think alike...I tried the default theme and it worked perfectly.  Was coming here to tell you...but you already figured it out...

Works perfect now...

Thanks,

Jim
Title: Re: AjaxChat Integration
Post by: cko on March 24, 2009, 10:23:41 PM
Sorry for my English, is horrible.

I tried in Spanish forum but nobody respond to me.

I added to my forum Ajax Chat Integration 3.0

1) I edit all files
2) I moved all folders (Installation instructions)

I added all (example) :
Quote
Code
Tables_1.1.X.php
This file should not be able to execute standalone. You may have to run the following queries manually.

Query: [Select]

DROP TABLE IF EXISTS ajax_chat_online

Query: [Select]

DROP TABLE IF EXISTS ajax_chat_messages

Query: [Select]

DROP TABLE IF EXISTS ajax_chat_bans

Query: [Select]

DROP TABLE IF EXISTS ajax_chat_invitations

AND MORE ..................



I have "chat"  in my forum menu, but when I to do click in "chat"  I have error 404 (before 500)
I dont know I have to do.

Maybe I have to do any in DB ?

Again, sorry for my English , but really Im lost.






Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 25, 2009, 12:49:07 AM
@ cko

1) I edit all files
Do you mean you did all the edits for your custom theme?

2) I moved all folders (Installation instructions)
What do you mean you moved all the folders?

If you installed the mod via the package manager it should have done everything for you.
Title: Re: AjaxChat Integration
Post by: cko on March 25, 2009, 01:46:18 AM
@ mrtrc266

Thanks for respond to me.

1) I have default theme

2) File Operations

Move the included directory "chat" to "the root directory".
Move the included directory "chat/css" to "./shoutBox".
Move the included directory "chat/flash" to "./shoutBox".
Move the included directory "chat/img" to "./shoutBox".
Move the included directory "chat/js" to "./shoutBox".
Move the included directory "chat/lib" to "./shoutBox".
Move the included directory "chat/socket" to "./shoutBox".
Move the included directory "chat/sounds" to "./shoutBox".
Move the included directory "chat/src" to "./shoutBox".
Move the included directory "shoutBox" to "the root directory".

Please look this (maybe that is wrong) :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv234%2FCKO%2Fchat.jpg&hash=7840c0e586274167f808ebfc7387825560b66b96)





Quote from: mrtrc266 on March 25, 2009, 12:49:07 AM
@ cko

1) I edit all files
Do you mean you did all the edits for your custom theme?

2) I moved all folders (Installation instructions)
What do you mean you moved all the folders?

If you installed the mod via the package manager it should have done everything for you.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 25, 2009, 01:58:23 AM
Sorry but I can barely see your pics and I can't read Spanish?

Did you do all that manually or let the package manager do it?

If you did all that manually, try to undo it then let the package manager do it for you
Title: Re: AjaxChat Integration
Post by: ricorico on March 25, 2009, 06:58:46 AM
had a couple of questions regarding this again (sorry guys!)

1. Is their an admin section for this or no? because if so its not showing up on mine. if not then no problem hehe.

2. can anyone help me code this out. for the dice roller on the shoutbox/chat whatever for the 6 dice how can i get it to put an image instead of the #? like if i got a picture of a die

/roll 1d6 =
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 25, 2009, 09:57:15 AM
Hi ricorico

1. I'm sure what you mean by "Admin for this" are you talkin about Admin inside the chat room? Then no you just have your settings (the little pic of the wrench and screwdriver) on the bottom right corner. And anyone with admin or moderator right has access to a few more features.

2. I think I remember seeing a request for this @ Sourceforge but I can't find it. Also, that would be tons of images to do. What is a member rolled 100 / 100 sided dice? 
Title: Re: AjaxChat Integration
Post by: Danpotter on March 25, 2009, 10:23:49 AM
hey i tried usng pakage parser to my urban theme..,but no use no code it showd available in my index.template.php :(
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 25, 2009, 10:34:18 AM
@ Danpotter

What version of SMF are you running

Post a link to the theme you're using

Attatch these files from your custom theme
index.template.php
style.css
BoardIndex.template.php (if you have one).
Title: Re: AjaxChat Integration
Post by: ricorico on March 25, 2009, 10:56:29 AM
Quote from: mrtrc266 on March 25, 2009, 09:57:15 AM
Hi ricorico

1. I'm sure what you mean by "Admin for this" are you talkin about Admin inside the chat room? Then no you just have your settings (the little pic of the wrench and screwdriver) on the bottom right corner. And anyone with admin or moderator right has access to a few more features.

2. I think I remember seeing a request for this @ Sourceforge but I can't find it. Also, that would be tons of images to do. What is a member rolled 100 / 100 sided dice?

1. okie i just didnt know if i was suppose to see seomething in the admin panel for it :P

2. actually i just need for 1 - 6. hardly anyone uses the die roller to roll high stuff so its not that big of a deal there. i just basically need for 6 sided die rolls.

basically instead of 1 it will put img1 , 2 img2, 3 img3 instead of the #'s the pic. :) which i have the pics already just have to fix the coding.


ps - i THINK the code to do it is in AJAXChat.php, i just dont know php or wha to change ;/
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 25, 2009, 11:45:15 AM
1. Here are the only options in the Admin Panel....

For SMF 1.1.X Admin/Configuration/Features and Options/

For SMF 2 RC1  Admin/Configuration/Modifications/Chat/

Enable the ShoutBox?   
Check for ShoutBox on any page or uncheck for only in index page:   
Integrate shout box and chat room?   
Chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section? 


2. I have searched everywhere @ sourceforge and can't find anything on how to replace the text with images for the roll dice
Title: Re: AjaxChat Integration
Post by: ricorico on March 25, 2009, 12:18:11 PM
yeah mrt ive seen those in the option thing, just some mods i have like casino. tiny portal have their own section in the admin panel so i wasnt sure if the mod installed wrong *had trouble with it* and thats why. :)

2. anyone else have any idea how to do the die rolles 1 - 6 to = images instead?
Title: Re: AjaxChat Integration
Post by: Cheese Head on March 25, 2009, 09:29:08 PM
Quote from: mrtrc266 on March 21, 2009, 10:01:35 AM
@ Cheese Head  Delete the package from you server then upload it again.

Thanks for idea, just checked my server's forum/packages folder, nothing labelled AjaxChat.
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 25, 2009, 09:40:06 PM
Any progress on my issues?  :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 25, 2009, 09:47:56 PM
@ Cheese Head

And when you try to upload it via the package manager you get the same error?

If so try uploading AjaxChat Integration_3.0..zip via FTP to yourforum/packages and then check your Admin/Packages it should be in there ready to install.
Title: Re: AjaxChat Integration
Post by: Cheese Head on March 25, 2009, 09:55:38 PM
Quote from: SunKing on March 20, 2009, 11:32:19 PM
Quote from: Cheese Head on March 20, 2009, 08:38:08 PM
Hi All, would love to use this Mod on my SMF Version 2 RC1 forum.

I'm not that IT literate, I've tried doing the auto install from Menu's Admin > Main > Download Packages > Browse > New Feature > Download, but get error message "An Error Has Occurred!" "Although the package was downloaded to the server it appears to be empty . . .".

Is something wrong or can you only do a manual install?

Thanks for support/advice . . . John.

I had this same issue. Unzip the package to any spot on your computer. Then simply "rezip" it into a new zip file, upload the new one, and try again from the package manager (that worked for me).

Now if I could just get the chat working....... :P

Thanks just did that, installed fine with my Admin Account. Enabled ShoutBox, and could see it. But got message "(20:42:34) ChatBot: Error: Connection status: 500" several times. Tried switching to my Member Account, can't see the ShoutBox, clicked on Chat on Menu, got error mesaage "Internal Server Error". Switched back to my Admin Account, can now see the ShoutBox again, but with same error message "(20:48:22) ChatBot: Error: Connection status: 500".

@ mrtrc266, thanks but I'm not quite sure where you are talking about, I uploaded to  /public_html/forum/Packages and then installed from my forum's software OK except for the problems detailed above.

Any advice appreciated . . . John.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 25, 2009, 10:02:59 PM
Regarding the 500 error, there have been many users that have experienced the same prob but they have solved it by doing the following in the post....

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

@ Sunking, have no idea yet have you tried changing the file permissions as well?
Title: Re: AjaxChat Integration
Post by: Cheese Head on March 25, 2009, 10:08:02 PM
@ mrtmc266, thanks I had also searched and found that post, appreciate.

That post says:
QuoteIf you get a 500 Connection error you might have to set your file permissions as well. There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" are set @ 755 and all "Files" are set @ 666.
You might have to change the index.php to 755.

I've looked in both those two new folders and both have a file named index.php. I've opened both in edit code mode but cannot see any Files setting to edit from 666 to 755. Sorry for being a newb.

Thanks for your support and patience, John.
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 25, 2009, 10:17:13 PM
Quote from: mrtrc266 on March 25, 2009, 10:02:59 PM
@ Sunking, have no idea yet have you tried changing the file permissions as well?

Yes I have. Everything seems to be set up correctly.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 25, 2009, 10:30:00 PM
Quote from: SunKing on March 25, 2009, 10:17:13 PM
Quote from: mrtrc266 on March 25, 2009, 10:02:59 PM
@ Sunking, have no idea yet have you tried changing the file permissions as well?

Yes I have. Everything seems to be set up correctly.

I would contact your host, it makes no sense on why you're having this problem.

mrtrc266=banging head on this one
Title: Re: AjaxChat Integration
Post by: Cheese Head on March 25, 2009, 10:33:01 PM
@ mrtrc266

Update, just figured out and changed both index.php files' Permissions to 755, saved both files, success I think.

From my Admin user ID, error message is now gone and ShoutBox seems to work fine :D. But when I switch to my normal Members user ID, and I can no longer see the ShoutBox when logged out or with that normal User ID!? I clicked on Menu > Chat which then asked me for Usename & Password but that User ID and Password don't work.

Sorry for the 40 questions . . .
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 25, 2009, 10:41:54 PM
No worries about the questions, that's what the support board is for ;)

Make sure you have set the permissions to allow your users or whoever you want to have access to the Chat Room and Shoutbox.

Admin/Permissions/ and check the access to chat and shout.
Title: Re: AjaxChat Integration
Post by: Cheese Head on March 25, 2009, 10:52:53 PM
@ mrtrc266, thanks!

Perfect, those two tick buttons are new, just checked them both for members, not guests, works great!

Is the ShoutBox the smaller system on the forum and the Chat Room a more dedicated and powerful version accessible only via the Menu > Chat button?

Also, I've read earlier in this topic that you can change the max number of messages, how do I do that or any other settings and does it impact the size of the ShoutBox at top of my forum?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 25, 2009, 11:07:14 PM
@ Cheese Head Glad you got it sorted..disregard the PM that I sent :D

QuoteIs the ShoutBox the smaller system on the forum and the Chat Room a more dedicated and powerful version accessible only via the Menu > Chat button?

Kind of, the shoutboz is so that members dont miss any chat while they are cruising through your forum ( as long as you check the option to "Intergrate chat and shout"). You won't see as many options in the shout box but if you know the command code you can just type them in the shoutbox and get the same features. The Chat Room is a fully featured Chat Room where the feature are more easily accessible by just clickin on them.

QuoteAlso, I've read earlier in this topic that you can change the max number of messages, how do I do that or any other settings and does it impact the size of the ShoutBox at top of my forum?

Yes there are a lot of different settings in the yourforum//chat/lib/config.php file, take a look at the link I posted above to do some of he most requested edits. Nothing will affect the size of the shoutbox at the top of your forum.
Title: Re: AjaxChat Integration
Post by: Cheese Head on March 25, 2009, 11:14:05 PM
@ mrtrc266, thanks, will explore more tomorrow, bed time now, thx for all help, just need to get my members used to using it ;D. See ya, and thx again!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 25, 2009, 11:19:12 PM
NP enjoy the best Mod you'll ever have on your SMF Forum :D Have a great night.
Title: Re: AjaxChat Integration
Post by: ricorico on March 25, 2009, 11:32:47 PM
any other insight on my question from anyone ? resulting in d6 rolls to display images for dice rolls 1 - 6 instead?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 25, 2009, 11:43:57 PM
Quote from: ricorico on March 25, 2009, 11:32:47 PM
any other insight on my question from anyone ? resulting in d6 rolls to display images for dice rolls 1 - 6 instead?

You might wanna try posting that question here. The creators and co authors of the AJAX Chat will have a pretty good idea on how to do that.

https://sourceforge.net/forum/forum.php?forum_id=774131
Title: Re: AjaxChat Integration
Post by: Lady Godiva on March 25, 2009, 11:45:22 PM
This mod has given us many errors on our forum and created numerous instances of functionality problems. We decided to uninstall it, but it is stating an error and indicates it will harm our forum to do the uninstall. I am attaching a saved webpage and would appreciate assistance as soon as feasably possible.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 26, 2009, 12:06:40 AM
Quote from: Souls In Serenity on March 25, 2009, 11:45:22 PM
This mod has given us many errors on our forum and created numerous instances of functionality problems. We decided to uninstall it, but it is stating an error and indicates it will harm our forum to do the uninstall. I am attaching a saved webpage and would appreciate assistance as soon as feasably possible.
A lot of mods create a lot of errors in the error log but they are usually harmless. And as far as "creating numerous instances of functionality problems," the errors that users get on this Mod only create functionality problems with the mod itself, NOT any functionality problems with your forum.

Did you get any errors during the install?

If you did not get any errors during the install then you should not get any errors during the uninstall unless you installed more mods after this one.

If that's the case then uninstall the mods that you installed after this one in the reverse order that you installed them. Then uninstall this Mod and it should uninstall clean.

Title: Re: AjaxChat Integration
Post by: ricorico on March 26, 2009, 12:24:35 AM
thanks mrt ill try that. i just considered another option since its irc -ish, but not sure if you can create alias' hmm but ill check there.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 26, 2009, 12:31:36 AM
Quote from: ricorico on March 26, 2009, 12:24:35 AM
thanks mrt ill try that. i just considered another option since its irc -ish, but not sure if you can create alias' hmm but ill check there.

Np I coulda swore I saw a post somewhere that someone had asked the requested the same feature but I can't find it anywhere. That would be pretty cool ;) There is a client side and user side that will have to be edited and I'm sure you will have to create a lot of custom functions on both side to get it to work. If you get it post it back here ;)
Title: Re: AjaxChat Integration
Post by: Lady Godiva on March 26, 2009, 01:06:47 AM
Quote from: mrtrc266 on March 26, 2009, 12:06:40 AM
Quote from: Souls In Serenity on March 25, 2009, 11:45:22 PM
This mod has given us many errors on our forum and created numerous instances of functionality problems. We decided to uninstall it, but it is stating an error and indicates it will harm our forum to do the uninstall. I am attaching a saved webpage and would appreciate assistance as soon as feasibly possible.
A lot of mods create a lot of errors in the error log but they are usually harmless. And as far as "creating numerous instances of functionality problems," the errors that users get on this Mod only create functionality problems with the mos itself, NOT any functionality problems with your forum.

Did you get any errors during the install?

If you did not get any errors during the install then you should not get any errors during the uninstall unless you installed more mods after this one.

If that's the case then uninstall the mods that you installed after this one in the reverse order that you installed them. Then uninstall this Mod and it should uninstall clean.



There were functionality problems with opening the pages or making administrative actions while simultaneously having errors logging for chat pm pop up, etc. These were not requested but the chat must have been trying to initiate it. These errors are being logged several hundred times while I am working in the forum for 2 or 3 hours. I clear them when I leave, but the moment I log back it begins again in a rapid cycle. These errors (according to the logs) are interfering with the forum functionality when it is occurring an error at the same time I am trying to do any action. Examples are adding membergroups, clicking to a different page, or anything that requires the browser to refresh by completing the action or directing to a new page I have clicked for.

There were not errors when I installed the mod, but if you view the attachment you will see the errors which are presently there. I have no idea which mods were installed after this installation, so this is not a viable option.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 26, 2009, 01:16:58 AM
@ Souls In Serenity

To stop the errors from running rampant you can go to...
Admin/Configuration/Modifications/Chat/

And uncheck all the options below

Enable the ShoutBox?   
Check for ShoutBox on any page or uncheck for only in index page:   
Integrate shout box and chat room?   
Chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?   

In the file that you attatched that was just a test failed notification, meaning that the uninstall package in this Mod cannot do the edits because the other Mod you installed have moved the code to a different location than it was originally installed to. If you don't know what order the other mods were installed in then you can use the method below to uninstall the Mod.

You can use a Package Parser (http://resourcez.biz/PackageParser/) and manually do the edits for the files that are not passing the test.

Title: Re: AjaxChat Integration
Post by: Danpotter on March 26, 2009, 01:37:23 AM
Hey im using SMF 1.1.8

Im using "Urban Theme designed by Dznier studio"

Here I Attached files
Title: Re: AjaxChat Integration
Post by: Lady Godiva on March 26, 2009, 02:01:43 AM
Quote from: mrtrc266 on March 26, 2009, 01:16:58 AM
@ Souls In Serenity

To stop the errors from running rampant you can go to...
Admin/Configuration/Modifications/Chat/

And uncheck all the options below

Enable the ShoutBox?  
Check for ShoutBox on any page or uncheck for only in index page:  
Integrate shout box and chat room?  
Chat in popup page?  
Enable online chat users numbering on chat button?  
Show online users below total logged in time section?   

In the file that you attatched that was just a test failed notification, meaning that the uninstall package in this Mod cannot do the edits because the other Mod you installed have moved the code to a different location than it was originally installed to. If you don't know what order the other mods were installed in then you can use the method below to uninstall the Mod.

You can use a Package Parser (http://resourcez.biz/PackageParser/) and manually do the edits for the files that are not passing the test.



Thank you for your assistance. I have double checked the section to 'uncheck', and as I thought it was already unchecked. I was confused by this earlier as well, and had then decided to uninstall the mod. Honestly, our staff is not experienced enough to understand or use the parser. We may have to remove the entire board and consider begining from scratch again.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 26, 2009, 02:15:31 AM
Souls In Serenity please attatch the files that failed the test
Title: Re: AjaxChat Integration
Post by: Lady Godiva on March 26, 2009, 02:29:19 AM
Quote from: mrtrc266 on March 26, 2009, 02:15:31 AM
Souls In Serenity please attatch the files that failed the test

Thank you, I am unable to do this tonight but we will make certain to attach them in the morning.
Title: Re: AjaxChat Integration
Post by: Cobra97 on March 26, 2009, 08:38:25 AM
This Mod will make "Auto-Embed Video & Audio (Aeva) v6.1.72" not work.

To get it to work you must uninstall this mod and (Aeva) , then reinstall (Aeva) first then this mod second......Then it will all work together.
Title: Re: AjaxChat Integration
Post by: nytshade on March 26, 2009, 10:03:13 AM
Ok, I have an odd problem.  I installed Ajax 3.0 on SMF 1.1.8 and everything is working fine.  I'm using the default theme.  I had to change from English utf8 to regular English. 

The problem is that everyonce in a while, the chat button will dissapear, though if someone is signed into chat, it will show the number of people in chat.  Just not the word chat.  In order to fix this, I just go to the Server Settings in the Admin Panel and just click save.  I don't make any changes what so ever. 

My only guess is that I'm making the server "reset" back to English, even though I never changed it to anything else.

Anyone know why this is happening and what I can do about it?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 26, 2009, 10:32:03 AM
@ nytshade

Make sure that you put the language strings in your language file /default/languages/Modifications.english.php

Copy the entire contents of you Modifications.english-utf8.php into your Modifications.english.php
Title: Re: AjaxChat Integration
Post by: heinandar on March 26, 2009, 11:44:58 AM
Hi.. I want to remove sound function in ajax chat. How can i do that. Everytime refresh the chat page, it need to download again sounds. For slow connection that is very disappointed for members. Need to wait 20 seconds.
Title: Re: AjaxChat Integration
Post by: nytshade on March 26, 2009, 11:59:09 AM
Update:  Thanks for the suggestion mrtrc.  I actually had an idea that was so simple that it actually worked lol.  I noticed that the chat was going to http://bncentertainment.com/forum/chat/index.php  There was no www. before bncentertainment.com and if I look in the server settings in SMF, it's listed as http://www.bncentertainment.com  So I edited the url in my server settings to remove the www. and now it seems to be working without any problems! 
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 26, 2009, 12:29:55 PM
Quote from: heinandar on March 26, 2009, 11:44:58 AM
Hi.. I want to remove sound function in ajax chat. How can i do that. Everytime refresh the chat page, it need to download again sounds. For slow connection that is very disappointed for members. Need to wait 20 seconds.

Try this

Find and change to false.../chat/js/config.js
// Defines if sounds are played:
audio: true,

Title: Re: AjaxChat Integration
Post by: heinandar on March 26, 2009, 12:39:40 PM
Quote from: mrtrc266 on March 26, 2009, 12:29:55 PM
Quote from: heinandar on March 26, 2009, 11:44:58 AM
Hi.. I want to remove sound function in ajax chat. How can i do that. Everytime refresh the chat page, it need to download again sounds. For slow connection that is very disappointed for members. Need to wait 20 seconds.

Try this

Find and change to false.../chat/js/config.js
// Defines if sounds are played:
audio: true,


Didn't work for me. Still need to download sound.  :-[

Edit.. I got it . Thanks mrtrc
change also
// Defines the available sounds loaded on chat start:
soundFiles: {
sound_1: 'sound_1.mp3',
sound_2: 'sound_2.mp3',
sound_3: 'sound_3.mp3',
sound_4: 'sound_4.mp3',
sound_5: 'sound_5.mp3',
sound_6: 'sound_6.mp3'
},

simply disabled it.


Edit
But.......... still need to wait to chat 20 or 25 seconds.  :-X
Title: Re: AjaxChat Integration
Post by: ricorico on March 27, 2009, 01:08:31 AM
im looking on soundforge boards for my question previously, but i thought of another alternative if anyone knows.

perhaps a seperate /roll code? for 1-6 to display images.

like

/groll x (x = # of dice rolled) , and id also like to add a 'p' for a power roll, which would display a different color 6 sided die.

output would be like soandso rolls = img5 (for a 5 and power rolled a : img3( for 3 different collor maybe pimage) or something? would somethig like that be scriptable?
Title: Re: AjaxChat Integration
Post by: ricorico on March 27, 2009, 02:07:41 AM
Also a side note, been meanin to ask this, when i do my chat popup (hitting chat on my menu to load the irc/style instead of the shoutbox) it loads fine, however my host puts this square banner at the bottom of every page i make, but on this its right there at the top?

here is my index for the chat page


<?php
/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 */

// Show all errors:
error_reporting(E_ALL);

// Path to the chat directory:
define('AJAX_CHAT_PATH'dirname($_SERVER['SCRIPT_FILENAME']).'/');

// Include custom libraries and initialization code:
require(AJAX_CHAT_PATH.'lib/custom.php');

// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the chat:
$ajaxChat = new CustomAJAXChat();
?>



what do i need to add or change so that stupid thing isnt int he middle of the chat application? like a head and body or something?
Title: Re: AjaxChat Integration
Post by: EclecticHoobajoo on March 28, 2009, 12:16:25 AM
In all these pages I still haven't found a way to install this.  I'm trying on Step 1 - installing the Ajax Chat program itself.  I upload all the files to my smf/chat folder, and make sure all folders are set as 755 and files 666 for permissions.  Then I run chat/install.php and get this error:

Query: CREATE TABLE ajax_chat_online ( userID INT(11) NOT NULL, userName VARCHAR(64) NOT NULL, userRole INT(1) NOT NULL, channel INT(11) NOT NULL, dateTime DATETIME NOT NULL, ip VARBINARY(16) NOT NULL ) DEFAULT CHARSET=utf8 COLLATE=utf8_bin; Error-Report: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8 Error-Code: 1064

Someone had a similar problem earlier, but I never saw a fix for it posted.  :(
My default language is just English, not English-utf8, so I also tried to put English in the chat.sql file and run install again, but got the same error with English in place of utf8.


I'm running SMF 1.1.8, classic theme.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 28, 2009, 12:32:54 AM
@ EclecticHoobajoo

All you have to do is install the AJAX Chat Intergration Mod itself. It now installs the chat as well.
Title: Re: AjaxChat Integration
Post by: ricorico on March 28, 2009, 01:52:22 AM
24 hr bump on my 2 questions?
Title: Re: AjaxChat Integration
Post by: ampedm on March 28, 2009, 03:03:31 AM
Hello,

i am getting the following when deleting messages (they do get deleted however, the person deleting them sometimes gets this:

Error: Connection status: 0

What does that mean?

Thanks!

EDIT: Smf 2.0 RC1 with Simple Portal
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 28, 2009, 09:40:20 AM
@ ricorico

I not sure is I understand you correctly, are you asked how to remove or reposition an add that your host puts on your page?

I'm not 100% but don't think there is a away to rearrange the adds from any files in AJAX Chat. Your host might have a better idea.
Title: Re: AjaxChat Integration
Post by: Filipina on March 28, 2009, 03:39:56 PM
Quote// Defines if sounds are played:
   audio: true,

Changed to false and I have confirmed this does not shut off the sound. I tried to turn it off as well but it keeps on making noises :)
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 28, 2009, 03:47:53 PM
I'm going through the file edits and I got hung up on the first edit within ./Themes/default/BoardIndex.template.php

The error is attached in a screen shot.  I'm guessing that it has something to do with the googlebot/spider mod.

Here's a link to my forum http://coastercommunity.com/smf_forum/index.php

Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 28, 2009, 04:24:15 PM
This part is confusing.  Do I keep both folders in the root directory and should they both have the same files?  I'm not sure if I copy everything from chat to shoutbox or if I clean out chat and only have these in shoutbox.

Move the included directory "chat" to "the root directory".
Move the included directory "chat/css" to "./shoutBox".
Move the included directory "chat/flash" to "./shoutBox".
Move the included directory "chat/img" to "./shoutBox".
Move the included directory "chat/js" to "./shoutBox".
Move the included directory "chat/lib" to "./shoutBox".
Move the included directory "chat/socket" to "./shoutBox".
Move the included directory "chat/sounds" to "./shoutBox".
Move the included directory "chat/src" to "./shoutBox".
Move the included directory "shoutBox" to "the root directory".
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 28, 2009, 09:59:13 PM
Quote from: Jiveturkey on March 28, 2009, 03:47:53 PM
I'm going through the file edits and I got hung up on the first edit within ./Themes/default/BoardIndex.template.php

The error is attached in a screen shot.  I'm guessing that it has something to do with the googlebot/spider mod.

Here's a link to my forum http://coastercommunity.com/smf_forum/index.php


It looks like I got this issue taken care of.  I got rid of the Google Bot/Spider Mod and then code change for the Chat Mod went through without error.

So all of the code changes are now in place but the chat doesn't work.  When I click on the button it takes me to an error page from my main website.  Here's the link again http://coastercommunity.com/smf_forum/index.php  It's a 404 error.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 28, 2009, 10:58:39 PM
@ Jiveturkey

QuoteThis part is confusing.  Do I keep both folders in the root directory and should they both have the same files?  I'm not sure if I copy everything from chat to shoutbox or if I clean out chat and only have these in shoutbox.

Yes keep both folder where they are, if you decide to tweak it a little some edits will require to do it in the chat folder other will require the edits in the shoutbox folder. I'm still trying to figure exectly what does what, but leave them both there.

QuoteSo all of the code changes are now in place but the chat doesn't work.  When I click on the button it takes me to an error page from my main website.  Here's the link again http://coastercommunity.com/smf_forum/index.php  It's a 404 error.

I can't get to your site, keeps giving me a dead page

Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 28, 2009, 11:07:00 PM
That's strange.  I'm in there along with some others.

Here's the main page http://www.coastercommunity.com/  See if you can click on the forum button from there.

Here's a different link for the forum http://coastercommunity.com/smf_forum/
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 28, 2009, 11:09:57 PM
Your error in that pic was caused by the <br /> not having '; behind it.

It should have looked like this:

echo '
                                       <br />';
if (!empty($context['spiders']))
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 28, 2009, 11:14:30 PM
Quote from: Filipina on March 28, 2009, 03:39:56 PM
Quote// Defines if sounds are played:
   audio: true,

Changed to false and I have confirmed this does not shut off the sound. I tried to turn it off as well but it keeps on making noises :)

Users have to option to turn off the sound in the Chat Room by toggling the "Sound on/off" icon in the bottom right hand side of the Chat Room.

To disable the sound from coming into the Shoutbox try this.

Open yourforum/shoutBox/lib/template/shoutbox.html

Find
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

Replace with
ajaxChatConfig.settings.audio = false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','autoScroll','wordWrap','maxWordLength','blink','audio');


If that doesn't work try doing the same edit in your yourforum/chat/lib/template/shoutbox.html file as well
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 28, 2009, 11:23:21 PM
Quote from: Jiveturkey on March 28, 2009, 11:07:00 PM
That's strange.  I'm in there along with some others.

Here's the main page http://www.coastercommunity.com/  See if you can click on the forum button from there.

Here's a different link for the forum http://coastercommunity.com/smf_forum/

Using Firefox I was able to get to your site, just not in IE....weird.

Anyway when I clicked on your chat button this is the error I got...

"Link Error
Sorry, but the content you requested could not be found.  Recent site upgrades have broken a lot of our external links.  Below are some popular areas that should get you closer to what you were looking for.

Home Page CLICK HERE

Construction Photos CLICK HERE

Park Photos CLICK HERE

Forums CLICK HERE"


The AJAX Chat intergration files are in your /coastercommunity.com/smf_forum/  directory?
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 29, 2009, 12:49:51 AM
I'm not sure what you mean???  I installed it just like any other mod through the package install.  I then made the necessary changes to the code that's listed on the manual install page.

Should I unpack the AjaxChat Integration zip that I downloaded from the modifications page into a new folder in my SMF directory?  Would I put it in the new Chat or Shoutbox folder or make a new folder for it?
Title: Re: AjaxChat Integration
Post by: ricorico on March 29, 2009, 01:46:11 AM
@MRTC

yeah my host puts an ad on every page, but its usually at the bottom of every page, however since the chat.php has no like head or anything and just java or whatever it is its showing up right on top of everything instead of at the bottom. i mean its liternalyl in the center of the chatroom.
Title: Re: AjaxChat Integration
Post by: Killer-B on March 29, 2009, 08:45:28 AM
Wow soooo many posts, I can't keep up...

I've asked this once before - and not sure if I got a straight answer - so will kindly ask again -

My Chat works FINE! :-)

But......

Can someone tell me (or lead me / show me) how I can get it to show across the TOP of my PORTAL page all the time?

I've posted about it on my portal site several times, and get no response... But would really like to have that avaible for the next race -

www.f-1chat.com (feel free to make a dummy account) but the "Chat tab shows in the portal just fine... and works fine... Just need a way to display it on the main portal page - Any ideas?

Thanks so much!!

KB
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 29, 2009, 10:32:57 AM
@ Killer, you're right there are TONS of posts and it's hard to keep up on this end too, sorry if your issue got buried.

I just created an account at your site and I don't the shoutbox at all. Either you don't have it enabled or it's not installed on your custom theme, or i don't have permission LOL. It will have to be across the top of ALL pages, at this time the only options are to have it on the Board Index Page or ALL pages.

To enable it and or add it to your cusom theme, follow the instructions here...
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

I'm running SMF RC1 and Simple Portal 2.1.1 just like you and it works great.

Hope that helps.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 29, 2009, 10:45:39 AM
@ ricorico Sorry but I'm clueless ???
Title: Re: AjaxChat Integration
Post by: Killer-B on March 29, 2009, 11:14:52 AM
Thanks MM -

Will check out that other post... and actually, I just tried logging in as a moderator - and it wouldnt allow me access to chat... soooooo - back the drawing board :-(

FWIW - *I* see "Chat" across all tabs on all pages as ADMIN and can get into Ajax with no problem...

but as Moderator (account) I can't... I have all the Chat boxes checked "on"... so - like I just said, I need to read that other thread and maybe that'll solve the problem -

Thanks for the response...

KB
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 29, 2009, 12:08:55 PM
Check your permissions ;)
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 29, 2009, 12:32:58 PM
Quote from: Jiveturkey on March 29, 2009, 12:49:51 AM
I'm not sure what you mean???  I installed it just like any other mod through the package install.  I then made the necessary changes to the code that's listed on the manual install page.

Should I unpack the AjaxChat Integration zip that I downloaded from the modifications page into a new folder in my SMF directory?  Would I put it in the new Chat or Shoutbox folder or make a new folder for it?
I've tried looking around for a solution to this but I'm still stuck. 
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 29, 2009, 12:40:54 PM
Quote from: Jiveturkey on March 29, 2009, 12:32:58 PM
Quote from: Jiveturkey on March 29, 2009, 12:49:51 AM
I'm not sure what you mean???  I installed it just like any other mod through the package install.  I then made the necessary changes to the code that's listed on the manual install page.

Should I unpack the AjaxChat Integration zip that I downloaded from the modifications page into a new folder in my SMF directory?  Would I put it in the new Chat or Shoutbox folder or make a new folder for it?
I've tried looking around for a solution to this but I'm still stuck.

Try switching to your default theme and see if it works there. If not I would uninstall and then reinstall via your package manager and then once again try it in your default theme, if it works after that do the edits for your custom theme.
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 29, 2009, 12:48:17 PM
I'm using the default theme.
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 29, 2009, 12:50:41 PM
I get these errors when I go to uninstall it.

1.     Execute Modification     ./Sources/BoardIndex.php     Test failed
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
6.    Execute Modification    ./Themes/default/index.template.php    Test failed
7.    Execute Modification    ./Themes/default/style.css    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.persian.php    Skipping file
12.    Delete Tree    ./chat    
13.    Delete Tree    ./shoutBox    
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 29, 2009, 12:53:51 PM
I did notice that the MySQL tables are empty for all of the chat and shoutbox.

Is that involved?
Title: Re: AjaxChat Integration
Post by: geminiguy on March 29, 2009, 12:54:15 PM
Quote from: .HuNTeR. on March 14, 2009, 08:49:05 AM
@Killer-B
supporting simple Portal and tiny Portal will add but i need some time

@discjocke
in new version package manager will do all the things
the only thing you should do is manually add some code in BoardIndex.template.php
and
index.template.php
only in third party themes
no upload/download or file running only upload in package manager and smf package manager
will do the rest ;)

@SmokyBlue
I've seen this problem before on 3rd party themes
you should go to
chat/lib/config.php
and
shoutBox/lib/config.php

and change:
$config['contentType'] = null;
to
$config['contentType'] = "text/html";
in both files
i think this will fix XML Parsing Error

and for what Killer-B said
((all of previous version's of this mod has a manual installation part
but in new version i changed it and now the package manager do all the needed parts))

@filipes
did you gave them chat access permission?
This part I put in placed in parenthasis should be stickied, it is a lot to go through all these posts to find this part out. (I should also learn how to spell parenthesis, haha)
Anyway, I installed this mod via the manager on my smf. 1.1.8 forum and get no option for chat in my configuration/features & options page?
I get no chat button in the header tabs
I have the box at the top of the forums main page, but get the error "(12:51:30) ChatBot: Error: Connection status: 500" ?
Can I get some help with these issues? the url is www.linuxgraphicsusers.com I am going to go back and set permissions now (if the chat option is there I don;t know if it is or not yet)
I love this mod and would really love to get it up n runnin for my wonderful members who have been waiting so patiently.. And also.. Thank you so much for updating this mod... it is great and I am sure it works fine.. I just have to know the steps to get it 100%
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 29, 2009, 12:57:44 PM
@ geminiguy This should answere a lot of your questions.

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration
Post by: geminiguy on March 29, 2009, 01:14:59 PM
OK, I'm sorry but, I'm not very technically skilled.. :P
I looked in both the chat and shoutbox /index.php files via the list files in admin.. I do not see where the 755 comes in?
Is this something I need to look at through my cpanel for the hosting service? :) getting into my ftp?
sorry for being a pain in the butt
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 29, 2009, 01:39:29 PM
That is exaclty correct, you can do it through a FTP app or through your cpanel, you should see the options for "file permissions" or CHMOD.
Title: Re: AjaxChat Integration
Post by: geminiguy on March 29, 2009, 01:39:39 PM
OK... yeehaa.. I figured it out... went to my cpanel, got into the ftp and edited the chat and shoutbox index.php permissions That was easy enough :P

Now I will get to figuring out all the other stuff.

Thanks for pointing me to that post mrtrc266... I will come back if I have anymore questions... Thanks. ;)
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on March 29, 2009, 02:11:08 PM
@Killer-B
in next version compatibility with simpleportal and tinyportal will add to the mod ;)
just wait until next release
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 29, 2009, 02:14:51 PM
@ Jiveturkey 

Use a Package Parser  (http://resourcez.biz/PackageParser/)to manually remove the edits in the files that fail the test
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 29, 2009, 03:46:50 PM
I uninstalled the package and manually removed all of the code in the files that failed.  I reinstalled the mod and these are the errors that I got now.  Should I manually add the code for the files that failed?

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/BoardIndex.php    Test failed
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
6.    Execute Modification    ./Themes/default/index.template.php    Test failed
7.    Execute Modification    ./Themes/default/style.css    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.persian.php    Skipping file
12.    Extract Tree    ./chat    
13.    Extract Tree    ./shoutBox/css    
14.    Extract Tree    ./shoutBox/flash    
15.    Extract Tree    ./shoutBox/img    
16.    Extract Tree    ./shoutBox/js    
17.    Extract Tree    ./shoutBox/lib    
18.    Extract Tree    ./shoutBox/socket    
19.    Extract Tree    ./shoutBox/sounds    
20.    Extract Tree    ./shoutBox/src    
21.    Extract Tree    ./shoutBox    
22.    Execute Code    Tables_1.1.X.php
Title: Re: AjaxChat Integration
Post by: Killer-B on March 29, 2009, 04:19:50 PM
Quote from: .HuNTeR. on March 29, 2009, 02:11:08 PM
@Killer-B
in next version compatibility with simpleportal and tinyportal will add to the mod ;)
just wait until next release

Thanks ... but which product are we talking about for support in the next release? Ajax Chat, SimplePortal, or your Mod? :-) And if yours... when is it (kind of) due out? I know SimplePortal has a new release here soon - In fact, aren't you running it mrtrc?
Title: Re: AjaxChat Integration
Post by: geminiguy on March 29, 2009, 07:25:16 PM
OK, my only problems remain, that I do not have a "chat" tab in my menubar.
I have no chat option in Config/features & options (I have the select boxes, but no info?) I attch. images to show

If someone could tell me the exact files (and in which folders) I need to change to apply these features I would be grateful.
Thanks
Title: Re: AjaxChat Integration
Post by: ricorico on March 29, 2009, 09:10:32 PM
@MRTC & anyone else who has the problem:

I had a banner ad in the center of my chat when it popped up, due to my host. I couldnt figure out how to get it at the bottom like it is on every other page, so i installed Firefox's ABP Ad blocker and right clicked and added them to the filter and its gone :P

@Gemeni

I had the same problem man, check here they gave me help how to add it :OP - http://www.simplemachines.org/community/index.php?topic=300648.0
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 29, 2009, 10:52:37 PM
So I successfully uninstalled and then reinstalled the mod.  I still get the 404 link error when I got to the chat.index.php page.

I'm running in the default theme.

Would the pretty URL mod have any affect on this?
Title: Re: AjaxChat Integration
Post by: geminiguy on March 29, 2009, 11:27:49 PM
Quote from: ricorico on March 29, 2009, 09:10:32 PM
@MRTC & anyone else who has the problem:

I had a banner ad in the center of my chat when it popped up, due to my host. I couldnt figure out how to get it at the bottom like it is on every other page, so i installed Firefox's ABP Ad blocker and right clicked and added them to the filter and its gone :P

@Gemeni

I had the same problem man, check here they gave me help how to add it :OP - http://www.simplemachines.org/community/index.php?topic=300648.0


Thanks... only thing that bugs me is... I am using the default theme but no chat button, or the options in config/features &options appear? I had thought these were supposed to be automatically there after the install?
I will go through the ftp to hack the style.css but.. did not think it was needed?

and, even if I get the menu button on.. what about seeing the "chat" options in config/features & options? Like I say and show.. the boxes are there.. but no info or anything? (using default smf core theme, with smf 1.1.8)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 30, 2009, 12:10:42 AM
Quote from: geminiguy on March 29, 2009, 07:25:16 PM
OK, my only problems remain, that I do not have a "chat" tab in my menubar.
I have no chat option in Config/features & options (I have the select boxes, but no info?) I attch. images to show

If someone could tell me the exact files (and in which folders) I need to change to apply these features I would be grateful.
Thanks

That looks like you're missing the language strings, are you using UTF-8?

If so copy the entire content of /public_html/Themes/default/languages/Modifications.english.php file to your Modifications.english-utf8.php file.

See if that helps
Title: Re: AjaxChat Integration
Post by: geminiguy on March 30, 2009, 12:29:17 AM
 Thanks very much. I will look at that tomorrow and report back ;)
Title: Re: AjaxChat Integration
Post by: geminiguy on March 30, 2009, 12:58:47 AM
Actually.. figured I would copy the files over before going to bed... Done, but... no difference.
I will come back tomorrow to see about getting this cleared up.
Thank you very much so far for the help and your patience  :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 30, 2009, 01:10:49 AM
@ geminiguy 

We'll get this sorted for you.
Title: AjaxChat Integration--Shoutbox not getting displayed...
Post by: getandshare on March 30, 2009, 06:48:50 AM
Hi all,
I have installed this mod and chat is working great...
My forum is new one, n i dont have much members in it yet..

My problem is the shoutbox feature...

Shoutbox is not getting displayed even after i have enabled it from the admin menu....

Once it has appeared... but it stoped getting displayed on its own (i didn't installed or uninstalled anything)..

My smf version is 2.0 RC1....
Theme is :- airy_midnight20rc

mods installed:-
       Separate Sticky and Normal Topic
       Thank-O-Matic
        More Spiders
        Ad Managment
        Aligned and Bilateral Child Boards
        EmailValidator
        PDF Tag
        Advanced Reputation System
        Favicon
        AJAX Instant Quick Reply
        SMF Canonical Tag
        Top Stats**
         nCode Image Resizer
        AjaxChat Integration)**********
        member link colored

i have got problem with mod Top stats too.. its not displaying latest posts... section just remains empty... but i guess that question is for other section...
In case you guys need to see ... site is www.getandshare.co.nr

Someone please help asap...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 30, 2009, 09:15:28 AM
@ getandshare  did you do the manual edits for you custom theme?

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 30, 2009, 09:58:54 AM
I thought of a possible reason for the link error that I'm getting.  I recently had X7 chat installed and it was using a chat button.  I thought that I had gotten rid of any left over code though. 

Could this contribute to the problem I'm having?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 30, 2009, 10:05:31 AM
Quote from: Jiveturkey on March 30, 2009, 09:58:54 AM
I thought of a possible reason for the link error that I'm getting.  I recently had X7 chat installed and it was using a chat button.  I thought that I had gotten rid of any left over code though. 

Could this contribute to the problem I'm having?

That's very possible, good thinking ;D

BTW I always have problems getting anywhere on your site ??? I get there but then sometimes when I click on a navigation button it doesn't do anything. If I try to open in a new window it just hangs on a blank page. Just an FYI other users might be having that same prob??? Seems to work ok in FF though, except that chat button.
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 30, 2009, 10:32:07 AM
I double checked the uninstall procedures for X7 and I had everything covered.  This just doesn't make sense.  Why would it take me to an error page on my main page and not an SMF error page?

I appreciate the heads up on the nav issues.  I'll check it out and ask my members what they're seeing.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 30, 2009, 10:45:53 AM
Are you using the default theme with edited css or is that a custom theme? Please post a link to the theme if it's a custom theme and attatch the following files...

Themes/[your theme]/BoardIndex.template.php
Themes/[your theme]/index.template.php
Themes/[your theme]/style.css


Title: Re: AjaxChat Integration
Post by: geminiguy on March 30, 2009, 10:50:54 AM
My problem is only with items related to the info for each option box in configuration/features & options
and nothing shows related to chat in any of the permissions setting for any members.
I know it is something I have not edited the permissions for via ftp so I am not worried, just need to know "what" files specifically.
When a member is in chat, the number appears in the menu-bar, and I have it set for pop-up so when you click on the # the chat window pops up (I have to set a chat nav button in the menu bar) I will have to go through ftp to check the default theme style.css to see why it's not there)
For now, I made a post with the link to the chat/index and one of my global mods clicked it, got login for chat but was told he had no access.. but that is only due to the fact I cannot set permissions yet

Had I know better before.. (my own fault) I prob should have extracted the tar.gz and gone through all this stuff, then re-compressed, prior to using the smf manager to install it ;)
But, it is all easy enough to fix from this point... Ijust don;t know which files to edit and with my lack of knowledge I could be quick to make some big messes  :P
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 30, 2009, 10:52:19 AM
It's the default theme with some css edits.  The requested files are attached.

I really appreciate your assistance on this.  :D
Title: Re: AjaxChat Integration
Post by: geminiguy on March 30, 2009, 10:53:58 AM
Ooh... one more thing I forgot which might be related... (sorry)
I had installed ez-portal a few days ago, but had disabled it prior to installing this chat mod.. But, I did not uninstall ez-portal. COuld this be causing any of my issues?
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 30, 2009, 10:59:39 AM
What were your thoughts on the Pretty URL/htaccess idea? 
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 30, 2009, 11:03:58 AM
@ Jive, everything seems to be in place this is very odd. I can't remember from previous posts but does your shoutbox work?



@ geminiguy
Attatch these files as well...

Themes/default/BoardIndex.template.php
Themes/default/index.template.php
Themes/default/style.css

Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 30, 2009, 11:06:02 AM
Quote from: Jiveturkey on March 30, 2009, 10:59:39 AM
What were your thoughts on the Pretty URL/htaccess idea?

I'm not sure I'm not too familiar with that, but from my limited understanding of Pretty URLs yes that could be a possiblity.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 30, 2009, 11:11:06 AM
@ Jive it could possibly have something to do with htaccess

Here is a post of another person getting a 404 error
http://sourceforge.net/forum/forum.php?thread_id=3034295&forum_id=774132

Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 30, 2009, 11:14:38 AM
I can get the box to show up by enabling it under features and options.  I can not however get messages to appear in it.

An error briefly popped up in the shoutbox but it went away rather quickly.

I tried disabling Pretty URL's but that didn't help.
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 30, 2009, 11:20:15 AM
I think that you're on to something with regards to the htaccess file.  I'm just not sure how to add index.php correctly.

Any thoughts on that?
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 30, 2009, 11:28:35 AM
After disabling Pretty URL I got the shoutbox error to stick around.  Pretty much the same thing.

(10:24:03) ChatBot: Error: Connection status: 404
Title: Re: AjaxChat Integration
Post by: clockwork_dandy on March 30, 2009, 11:31:09 AM
I installed the application successfully, and the admin account can access the chat with no issues, but when I try to log in as another user, I get the error:
"You can't access the chat."

Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 30, 2009, 11:33:04 AM
Quote from: Jiveturkey on March 30, 2009, 11:28:35 AM
After disabling Pretty URL I got the shoutbox error to stick around.  Pretty much the same thing.

(10:24:03) ChatBot: Error: Connection status: 404

Definately getting close, here is another thread from a user with a similar prob, you can try to play with the solution here or you can probably contact your host and have them do it if your uncomfortable messing with it.
http://sourceforge.net/forum/forum.php?thread_id=2811928&forum_id=774132

I gotta run off to work, gl and I'll check back in later.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 30, 2009, 11:33:56 AM
Quote from: clockwork_dandy on March 30, 2009, 11:31:09 AM
I installed the application successfully, and the admin account can access the chat with no issues, but when I try to log in as another user, I get the error:
"You can't access the chat."

Set the permissions ;)
Title: Re: AjaxChat Integration
Post by: geminiguy on March 30, 2009, 11:36:58 AM
Here ya go mrtrc266

sorry bout all the copies... posting got messed up, I edited it down
Title: Re: AjaxChat Integration
Post by: clockwork_dandy on March 30, 2009, 12:48:01 PM
Quote from: mrtrc266 on March 30, 2009, 11:33:56 AM
Quote from: clockwork_dandy on March 30, 2009, 11:31:09 AM
I installed the application successfully, and the admin account can access the chat with no issues, but when I try to log in as another user, I get the error:
"You can't access the chat."

Set the permissions ;)

Is that something that has to be done manually, or is it done through the admin panel. I used SMF's package installer to install Ajaxchat. Thanks for your help.
Title: Re: AjaxChat Integration
Post by: iamme on March 30, 2009, 01:05:15 PM
copy the file folder CHAT it will be in the AJAX folder, paste it into the directory that your forum is in. that's why the 404 is happening, it's directing to the chat file folder being in the main forum directory.
Title: Re: AjaxChat Integration
Post by: iamme on March 30, 2009, 01:06:03 PM
you have to set permissions in the admin section, it doesn't do it automatically.
Title: Re: AjaxChat Integration
Post by: clockwork_dandy on March 30, 2009, 01:13:21 PM
Quote from: iamme on March 30, 2009, 01:06:03 PM
you have to set permissions in the admin section, it doesn't do it automatically.

Duh! Thanks for the help.
Title: Re: AjaxChat Integration
Post by: clockwork_dandy on March 30, 2009, 01:39:17 PM
It's working great now, except that ' and " show up as \' and \". Any way to fix that issue?
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 30, 2009, 02:29:00 PM
Quote from: iamme on March 30, 2009, 01:05:15 PM
copy the file folder CHAT it will be in the AJAX folder, paste it into the directory that your forum is in. that's why the 404 is happening, it's directing to the chat file folder being in the main forum directory.
I have the Chat folder and all of it's contents in the SMF directory already.
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 30, 2009, 05:58:12 PM
No solution for ChatBot: Error: Connection status: 0 error yet? I would really like to try this chat/shoutbox out but I am losing hope...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 31, 2009, 01:12:52 AM
Quote from: SunKing on March 30, 2009, 05:58:12 PM
No solution for ChatBot: Error: Connection status: 0 error yet? I would really like to try this chat/shoutbox out but I am losing hope...

Ok after some more digging around I found a couple users who were getting the same error and this seemed to work for them so it won't hurt to try it....fingers crossed.....

Open chat/js/chat.js

Find
            this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
Replace with
            if (this.getHttpRequest(identifier).status != 0) {
               this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
            }
Title: Re: AjaxChat Integration
Post by: geminiguy on March 31, 2009, 02:35:08 AM
mrtrc266, here are those scripts
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 31, 2009, 02:49:24 AM
Gemini, your Modifications.english file looks good. Try this config file though
Title: Re: AjaxChat Integration
Post by: ricorico on March 31, 2009, 03:25:00 AM
Quote from: mrtrc266 on March 31, 2009, 01:12:52 AM
Quote from: SunKing on March 30, 2009, 05:58:12 PM
No solution for ChatBot: Error: Connection status: 0 error yet? I would really like to try this chat/shoutbox out but I am losing hope...

Ok after some more digging around I found a couple users who were getting the same error and this seemed to work for them so it won't hurt to try it....fingers crossed.....

Open chat/js/chat.js

Find
            this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
Replace with
            if (this.getHttpRequest(identifier).status != 0) {
               this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
            }


thanks for that :D mine kept doing it, im trying it. hopefully it wont do that error anymore :)
Title: Re: AjaxChat Integration
Post by: getandshare on March 31, 2009, 05:04:00 AM
@mrtrc

You mean ill have to edit code manually?  But package manager hasnt given any error during installation...
And if ill edit and insert mod manually will i have option about it in my admin panel?
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 31, 2009, 09:18:46 AM
You should have a file manager option in your C-Panel (hosting side).  You'll eventually get good at modifying code. :)
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 31, 2009, 09:45:07 AM
I've made some progress.  I deleted the index.php file and the installed it.  Now the chat pops up. 

Once in the chat it doesn't show my as being logged in.  I'm not in the user window and messages don't get posted.  I logged out of SMF and then clicked on the chat button.  It popped up and asked me for me login info.  After I typed that in it just opened my forum in the chat window.

I got the ChatBot: Error: Connection status: 0 error and changed the code that was just mentioned but that didn't help.  The error doesn't pop up anymore but all of the other problems persist.
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 31, 2009, 09:48:46 AM
I also noticed that the little green light in the upper righthand corner constantly blinks green and orange.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 31, 2009, 10:23:46 AM
Quote from: getandshare on March 31, 2009, 05:04:00 AM
@mrtrc

You mean ill have to edit code manually?  But package manager hasnt given any error during installation...
And if ill edit and insert mod manually will i have option about it in my admin panel?

Yes you'll have to edit the files manually in yourforum/Themes/airy_midnight20rc .You didn't get any errors cuz it ALL Mods only install on the default theme, if you switch to the default theme it should be working.

Thats also the same reason you don't see all the Top Stats.

Attatch your yourforumsmf2/Themes/airy_midnight20rc/index.template.php and style.css files if you can't get it going.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 31, 2009, 11:06:11 AM
@ jive, I just all your posts over at Sourceforge and it seems like your getting good responses. Those are definately the guys to ask regarding your issue. They know that AJAX Chat like the back of their hand. Post back any progress.
Title: Re: AjaxChat Integration
Post by: DutchLunatic on March 31, 2009, 11:21:08 AM
Hi all
I was looking into the \chat\lib\class\AJAXChat.php file and was wondering if there is something not right
under // Get the online users for the given channels:

function getLogoutXMLMessage() {
$xml = '<?xml version="1.0" encoding="UTF-8"?>';


everything underneath it is in a black color in my php program. there are 4 similar codes in this file
If I take out the last ? or > than it's ok but of course the chat won't work.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 31, 2009, 11:50:30 AM
@ DutchLunatic you mean it doesn't look like this?

See Attatched...
Title: Re: AjaxChat Integration
Post by: DutchLunatic on March 31, 2009, 12:25:02 PM
@mrtrc266  yes yours look the same.

In my php program everything after // is in a green color
$xml is in red but after the last line what i posted before it tuns into black which does it when there is something wrong.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 31, 2009, 12:48:00 PM
Sorry I guess I'm not following you. Are you trying to edit that file? When I look at it in notepad++ it looks fine and it works fine as well ???
Title: Re: AjaxChat Integration
Post by: DutchLunatic on March 31, 2009, 01:04:03 PM
No I don't want to edit it.  I was looking into it and I just noticed.
My php program just says there is something wrong with that line but it's working, maybe it's that program that I use (EngInSite for PHP)

Was finding out why my global moderators don't have a moderator role in chat and was looking why all members can display IP's.
Title: Re: AjaxChat Integration
Post by: dextrous on March 31, 2009, 01:17:26 PM
hmm, installed it...now...Warning: require(.../cricketforum2/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in ..../cricketforum2/chat/index.php on line 17

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

running SMF 2.0 RC1
Title: Re: AjaxChat Integration
Post by: mrtrc266 on March 31, 2009, 01:37:30 PM
@DutchLunatic

There was a post about that a few pages back, I think there was a fix for it. I know there's a ton of posts here but see if you can find it, I gotta run to work.

@dextrous

You installed this via the package manager?
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 31, 2009, 02:51:59 PM
I figured it out.  I turned off Pretty URL's again and it works.  Hooray!

Now how can I configure Pretty/URL's to allow an exception for AjaxChat?
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 31, 2009, 03:03:54 PM
I added this piece of code to the SMF htaccess file

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

I added under the actions set of rules.  Everything works perfectly now.  If anyone else has a problem like mine feel free to shoot me a note and I'll help out.
Title: Re: AjaxChat Integration
Post by: dextrous on March 31, 2009, 03:46:41 PM
Quote from: mrtrc266 on March 31, 2009, 01:37:30 PM


@dextrous

You installed this via the package manager?
Yes, found it under SMF mods! I did something wrong, I'm guessing :P
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 31, 2009, 03:47:53 PM
How do I keep regular members from being able to see other member's IP's?  I don't need to see them as an Admin either so I'm fine with killing the entire option.
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 31, 2009, 08:22:32 PM
Well...that got rid of the error. But that's all it did. I still cannot post. It is still not drawing user information from the forum. Nothing works.

It looks good.  :P
Title: Re: AjaxChat Integration
Post by: Jiveturkey on March 31, 2009, 08:23:30 PM
Do you have Pretty URL's installed?
Title: Re: AjaxChat Integration
Post by: Nemesis_D on March 31, 2009, 10:52:23 PM
i have tried over and over to install this mod via the package manager but it just doesn't work
after i clicked it to install all it does is refresh the page

this is using smf 1.1.8 and the mod is the 3.0

i would really like to use this mod so is there any thing i can do?
Title: Re: AjaxChat Integration
Post by: EclecticHoobajoo on April 01, 2009, 02:34:09 AM
Quote from: eclectichoobajooIn all these pages I still haven't found a way to install this.  I'm trying on Step 1 - installing the Ajax Chat program itself.  I upload all the files to my smf/chat folder, and make sure all folders are set as 755 and files 666 for permissions.  Then I run chat/install.php and get this error:

Query: CREATE TABLE ajax_chat_online ( userID INT(11) NOT NULL, userName VARCHAR(64) NOT NULL, userRole INT(1) NOT NULL, channel INT(11) NOT NULL, dateTime DATETIME NOT NULL, ip VARBINARY(16) NOT NULL ) DEFAULT CHARSET=utf8 COLLATE=utf8_bin; Error-Report: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8 Error-Code: 1064

Someone had a similar problem earlier, but I never saw a fix for it posted.  :(
My default language is just English, not English-utf8, so I also tried to put English in the chat.sql file and run install again, but got the same error with English in place of utf8.


I'm running SMF 1.1.8, classic theme.


Quote from: mrtrc266 on March 28, 2009, 12:32:54 AM
@ EclecticHoobajoo

All you have to do is install the AJAX Chat Intergration Mod itself. It now installs the chat as well.


I don't know what's what any more for this.  :(  Is someone going to post new install instructions?
I downloaded the new version of the chat integration from the smf site (version 3).  I uploaded the zip file and tried to "Apply Mod" in the package manager, and all it did was take me back to the package manager screen, no messages or anything. 
So I tried uploading the chat folder to smf/chat and shoutbox to smf/shoutbox, and root files in the zip to smf/.  The Readme in the zip file (in the chat folder) said to run install.php, but that file does not exist in the new zip file!  So I tried to create the tables by running smf/Tables_1.1.X.php, but it said "Hacking attempt".  So I went into smf/chat just to see if anything at all showed up, and I got this error:

Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM `user_525799`.ajax_chat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE) ORDER BY userName; Error-Report: Table 'user_525799.ajax_chat_online' doesn't exist Error-Code: 1146

So I still can't get tables created.  And  I looked into that tables file and saw that DEFAULT CHARSET=utf8 is in there, and I'm afraid I'll just end up with my original problem if by some miracle I can get the tables created.  My default forum language is English, not English utf8.


Is this chat program even worth bothering with?  56 pages of support and no updated install instructions are making me think not.
Are there any better chat programs out there, besides FlashChat, I've never liked that one.

Title: Re: AjaxChat Integration
Post by: Gul Ducat on April 01, 2009, 02:44:13 AM
I have also given up on this.  It's garbage.

While I do not want to sound unappreciative, it fries me when I DL a mod that is posted as recently updated, yet it has ZERO details on what to do with it, or how to make it work.  Granted, they are free, then again, so is Herpes and I don't really want it.

I would conservatively estimate that over 60% of the downloadable mods listed are in the Garbage category either due to being grossly outdated, useless, buggy, undocumented, wrong language, or all of the above.

Sorry to rant, but it was a piece of $$IT mod that I blew up my 1.18 installation and had to resort to RC1.  Then of course there's the infamous shameless plugs and copyright notices that get placed at the bottom of your SMF index page by crappy mod writers who leave the notices installed even after removal of the offending non-working mod.
Title: Re: AjaxChat Integration
Post by: getandshare on April 01, 2009, 07:21:37 AM
Quote
mrtrc266
Yes you'll have to edit the files manually in yourforum/Themes/airy_midnight20rc .You didn't get any errors cuz it ALL Mods only install on the default theme, if you switch to the default theme it should be working.

Thats also the same reason you don't see all the Top Stats.

Attatch your yourforumsmf2/Themes/airy_midnight20rc/index.template.php and style.css files if you can't get it going.

Here are they...
I checked the default theme btw, shoutbox seems working ok in it....
But Top Stats is not displaying latest post in the default theme as well....
(you can take a look at www.getandshare.co.nr    username:-demo , password:-demo)

I have one more problem... chatbox is always saying error in connection in ajax chat.. also... i want to increase the inactivity time after which chat room kicks anyone out...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 10:45:24 AM
Quote from: bigloutx on April 01, 2009, 02:44:13 AM
I have also given up on this.  It's garbage.

While I do not want to sound unappreciative, it fries me when I DL a mod that is posted as recently updated, yet it has ZERO details on what to do with it, or how to make it work.  Granted, they are free, then again, so is Herpes and I don't really want it.

I would conservatively estimate that over 60% of the downloadable mods listed are in the Garbage category either due to being grossly outdated, useless, buggy, undocumented, wrong language, or all of the above.

Sorry to rant, but it was a piece of $$IT mod that I blew up my 1.18 installation and had to resort to RC1.  Then of course there's the infamous shameless plugs and copyright notices that get placed at the bottom of your SMF index page by crappy mod writers who leave the notices installed even after removal of the offending non-working mod.

Dang you give up so easily ??? Instead of bashing a Mod that's working great for thousands of people why not try posting a comment explaining what the problem is on the support thread?

Also how can any Mod blow up your forum if you backed up, you did back up didn't you?  ;)

Anyway if you want help getting this going try posting a comment with what the problem/error is and we will do our best help you get it going.
Title: Re: AjaxChat Integration
Post by: Jiveturkey on April 01, 2009, 10:52:59 AM
mrtc226,

Any thoughts on my IP issue?  I don't like that regular members can see it on another members profile.  I don't even need to see it as the admin.  I'd really like to have it removed from member list options.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 10:57:27 AM
Quote from: EclecticHoobajoo on April 01, 2009, 02:34:09 AM
Quote from: eclectichoobajooIn all these pages I still haven't found a way to install this.  I'm trying on Step 1 - installing the Ajax Chat program itself.  I upload all the files to my smf/chat folder, and make sure all folders are set as 755 and files 666 for permissions.  Then I run chat/install.php and get this error:

Query: CREATE TABLE ajax_chat_online ( userID INT(11) NOT NULL, userName VARCHAR(64) NOT NULL, userRole INT(1) NOT NULL, channel INT(11) NOT NULL, dateTime DATETIME NOT NULL, ip VARBINARY(16) NOT NULL ) DEFAULT CHARSET=utf8 COLLATE=utf8_bin; Error-Report: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8 Error-Code: 1064

Someone had a similar problem earlier, but I never saw a fix for it posted.  :(
My default language is just English, not English-utf8, so I also tried to put English in the chat.sql file and run install again, but got the same error with English in place of utf8.

I'm running SMF 1.1.8, classic theme.

I don't know what's what any more for this.  :(  Is someone going to post new install instructions?
I downloaded the new version of the chat integration from the smf site (version 3).  I uploaded the zip file and tried to "Apply Mod" in the package manager, and all it did was take me back to the package manager screen, no messages or anything. 
So I tried uploading the chat folder to smf/chat and shoutbox to smf/shoutbox, and root files in the zip to smf/.  The Readme in the zip file (in the chat folder) said to run install.php, but that file does not exist in the new zip file!  So I tried to create the tables by running smf/Tables_1.1.X.php, but it said "Hacking attempt".  So I went into smf/chat just to see if anything at all showed up, and I got this error:

Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM `user_525799`.ajax_chat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE) ORDER BY userName; Error-Report: Table 'user_525799.ajax_chat_online' doesn't exist Error-Code: 1146

So I still can't get tables created.  And  I looked into that tables file and saw that DEFAULT CHARSET=utf8 is in there, and I'm afraid I'll just end up with my original problem if by some miracle I can get the tables created.  My default forum language is English, not English utf8.


Is this chat program even worth bothering with?  56 pages of support and no updated install instructions are making me think not.
Are there any better chat programs out there, besides FlashChat, I've never liked that one.

The Install is usually as easy as uploading it via your package manager and clicking install. The install instructions that you see in the readme file is the readme file that comes with AJAX Chat if you want to install it stand alone, but then it has to be intergrated which is what this Mod does....and it does it well for thousands of people.

Undo everything you did and upload the package, if you can't upload it via the package manager for some reason upload it to your packages directory via FTP. Then hit "Install" and then hit "Apply Mod"

It should be that easy.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 11:07:23 AM
Quote from: Jiveturkey on April 01, 2009, 10:52:59 AM
mrtc226,

Any thoughts on my IP issue?  I don't like that regular members can see it on another members profile.  I don't even need to see it as the admin.  I'd really like to have it removed from member list options.

It seem that this happens if you allow your users to add events to your calendar, that's kinda a small moderator right so it thinks they are mods LOL.

Try this though....
http://www.simplemachines.org/community/index.php?topic=257973.msg1979606#msg1979606
Title: Re: AjaxChat Integration
Post by: Jiveturkey on April 01, 2009, 11:25:00 AM
Problem solved.  I'm lovin' this mod.

Thanks for all of your help.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 11:26:17 AM
Quote from: Nemesis_D on March 31, 2009, 10:52:23 PM
i have tried over and over to install this mod via the package manager but it just doesn't work
after i clicked it to install all it does is refresh the page

this is using smf 1.1.8 and the mod is the 3.0

i would really like to use this mod so is there any thing i can do?

Try uploading it to your packages directory via FTP
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 11:31:37 AM
Quote from: Jiveturkey on April 01, 2009, 11:25:00 AM
Problem solved.  I'm lovin' this mod.

Thanks for all of your help.

NP glad you got it sorted out and thanks for the find and fix for Pretty URLs. Enjoy ;)
Title: Re: AjaxChat Integration
Post by: Josh555 on April 01, 2009, 11:35:43 AM
I'm having problems installing this on endless_mc by crip, ill attach the files here maybe someone can help.

SMF 1.1.8
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 11:54:59 AM
@ getandshare 

Here you go...

For the Top Stats Mod make sure you go to Admin/Current Theme and set "Number of recent posts to display on board index:" to 23
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 12:59:53 PM
Quote from: Josh555 on April 01, 2009, 11:35:43 AM
I'm having problems installing this on endless_mc by crip, ill attach the files here maybe someone can help.

SMF 1.1.8

Give this a shot Josh

Title: Re: AjaxChat Integration
Post by: dextrous on April 01, 2009, 01:09:34 PM
Quote from: dextrous on March 31, 2009, 03:46:41 PM
Quote from: mrtrc266 on March 31, 2009, 01:37:30 PM


@dextrous

You installed this via the package manager?
Yes, found it under SMF mods! I did something wrong, I'm guessing :P

any help? i can't find a useful readme in the package...and cannot possibly read through 56 pages to get the answer!
Title: Re: AjaxChat Integration
Post by: Josh555 on April 01, 2009, 01:40:38 PM
EDIT: Nvm.
Title: Re: AjaxChat Integration
Post by: getandshare on April 01, 2009, 01:54:52 PM
Quote from: mrtrc266 on April 01, 2009, 11:54:59 AM
@ getandshare 

Here you go...

For the Top Stats Mod make sure you go to Admin/Current Theme and set "Number of recent posts to display on board index:" to 23

Top stats is okay now...
But there is a problem with my display am attaching the thumbnails..

After_before_logout.JPG  shows the view of login screen...ie... starting screen.... Mark the top right corner...

After_1_login.JPG  shows the view of screen after user has loged in...(it is still showing the login window + the ad,  top right corner).....(this view is after modification...)....(ad is needed only for first page and since my forum is loged it was getting displayed only on first page)

Before_1_login.JPG  shows the view of screen after user has loged in....( it is not showing the ad)..... (this view is before modification)...

can you fix it please
Title: Re: AjaxChat Integration
Post by: EZ1 on April 01, 2009, 01:56:56 PM
help please i was uploading this mod then got this --


The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.

my link is --
http://frc4u.org/phpbb/


got it fixed just made the mirror the primary forums
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 02:04:37 PM
Quote from: Josh555 on April 01, 2009, 01:40:38 PM
EDIT: Nvm.

Did that work for you? Not sure was Nvm is LOL
Title: Re: AjaxChat Integration
Post by: EclecticHoobajoo on April 01, 2009, 02:10:28 PM
Quote from: mrtrc266 on April 01, 2009, 10:57:27 AM

The Install is usually as easy as uploading it via your package manager and clicking install. The install instructions that you see in the readme file is the readme file that comes with AJAX Chat if you want to install it stand alone, but then it has to be intergrated which is what this Mod does....and it does it well for thousands of people.

Undo everything you did and upload the package, if you can't upload it via the package manager for some reason upload it to your packages directory via FTP. Then hit "Install" and then hit "Apply Mod"

It should be that easy.

Same as Nemesis_D.  I try the package manager and it doesn't work.  I've uploaded it via FTP.  There's no "Install" option in the package manager for it, just "Apply Mod", which does nothing. 

And if there's extra, unexpected, crap that goes along with it like bigloutx says, then I'm done trying.  I've seen others posting about ads being on there too. 

I really appreciate your fast responses, mrtrc, and all your support help, but this just isn't working for me.   I know it should be easy, but the more I look into this topic, the more it looks like I'll have nothing buy problems every step of the way, like a lot of other people here.   Seems like every other post is "It works, BUT now I have this problem..."   :(
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 02:32:09 PM
QuoteAnd if there's extra, unexpected, crap that goes along with it like bigloutx says

All that crap he was talking about he was NOT referring to this Mod. It looked like he was on a rant about mods in general. No Mod can blow up your forum if you back up like you're supposed to and it doesn't even put copy right links at the bottom of your forum. Unforunately that was bigloux first post ever on this thread, he never once even asked for help.

QuoteI've seen others posting about ads being on there too

LOL...I've never seen any posts about ads being in this Mod, I can assure you there are no ads.

Quotethe more it looks like I'll have nothing buy problems every step of the way, like a lot of other people here.   Seems like every other post is "It works, BUT now I have this problem..."

This has 11649 downloads and on these 56 pages there are only about 50 people who have had a real problem and about 98% fixed, all the other posts are mostly doing the edits to get it working on custom themes and figuring out some custom tweaks here and there.

I do understand your frustration though, if this just isn't working for you then there are a lot of other Chat Rooms out there.  GL in whatever you decide.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 02:35:03 PM
@ getandshare 

try this one, I just took out the code that shows the number of users on chat under your user info. Don't enable it in the admin section so you don't get any errors.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 02:44:43 PM
Quote from: dextrous on April 01, 2009, 01:09:34 PM
Quote from: dextrous on March 31, 2009, 03:46:41 PM
Quote from: mrtrc266 on March 31, 2009, 01:37:30 PM
@dextrous
You installed this via the package manager?
Yes, found it under SMF mods! I did something wrong, I'm guessing :P
any help? i can't find a useful readme in the package...and cannot possibly read through 56 pages to get the answer!

Looks like your site is bridged with another CMS this might take some digging around. I'm pretty sure you'll have to edit your .htaccess file. If you look a few posts back I think jive got it going
Title: Re: AjaxChat Integration
Post by: getandshare on April 01, 2009, 03:23:20 PM
Quote from: mrtrc266 on April 01, 2009, 02:35:03 PM
@ getandshare 

try this one, I just took out the code that shows the number of users on chat under your user info. Don't enable it in the admin section so you don't get any errors.

Not working dude...

Graphics got distorted and shoutbox's size is reduced to one row...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 03:34:31 PM
enable your shoutbox for guests for a minute
Title: Re: AjaxChat Integration
Post by: duder673 on April 01, 2009, 04:34:02 PM
Is there an option for users to mute the shoutbox if they want to ?
Title: Re: AjaxChat Integration
Post by: heinandar on April 01, 2009, 04:51:28 PM
Quote from: duder673 on April 01, 2009, 04:34:02 PM
Is there an option for users to mute the shoutbox if they want to ?
just collapse it.
!Cool!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 04:53:15 PM
Quote from: heinandar on April 01, 2009, 04:51:28 PM
Quote from: duder673 on April 01, 2009, 04:34:02 PM
Is there an option for users to mute the shoutbox if they want to ?
just collapse it.
!Cool!

LOL that's one way ;)
Title: Re: AjaxChat Integration
Post by: [unplugged] on April 01, 2009, 08:27:57 PM
Quote from: mrtrc266 on April 01, 2009, 02:32:09 PM
This has 11649 downloads and on these 56 pages there are only about 50 people who have had a real problem and about 98% fixed, all the other posts are mostly doing the edits to get it working on custom themes and figuring out some custom tweaks here and there.

I am having issues and been requesting help with them for a while....with no solution yet.

But, I also know that any major mod (not just some cheesy mod that changes green text to blue or some crap like that) cannot possibly take into consideration every possible configuration from host to server settings to PHP to MySQL to internet connection to personal computer to users themselves. Ask questions. You'll get answers. Sometimes a dash of patience is required too. Oh yeah....and make backups before installing mods...just in case.....(you did make backups, right?)

</myrant>

Oh...btw.... any progress with a solution for my problem?  :P
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 08:59:22 PM
Sunking do you have Pretty URL installed? Even if you don't follow Jives posts and try this..
http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536
Title: Re: AjaxChat Integration
Post by: [unplugged] on April 01, 2009, 09:08:38 PM
I do not have Pretty URLs installed. I am trying to install this mod on a clean install test site, but I will certainly give that a try and post the results back here. Thank you for your time.
Title: Re: AjaxChat Integration
Post by: JBlaze on April 01, 2009, 09:21:02 PM
Hey yall,

I just upgraded to 3.0 and now, when I try to access chat, I get a 500 Internal Server Error.

I manually added all code and even did a fresh install on a vanilla version of 1.1.8 and still get the same error.

Any ideas?

I'll attach any files needed.

Thanks
Title: Re: AjaxChat Integration
Post by: Nemesis_D on April 01, 2009, 09:22:59 PM
Quote from: mrtrc266 on April 01, 2009, 11:26:17 AM
Quote from: Nemesis_D on March 31, 2009, 10:52:23 PM
i have tried over and over to install this mod via the package manager but it just doesn't work
after i clicked it to install all it does is refresh the page

this is using smf 1.1.8 and the mod is the 3.0

i would really like to use this mod so is there any thing i can do?


Try uploading it to your packages directory via FTP

still doesn't work same problem
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 09:23:59 PM
Quote from: JBlaze™ on April 01, 2009, 09:21:02 PM
Hey yall,

I just upgraded to 3.0 and now, when I try to access chat, I get a 500 Internal Server Error.

I manually added all code and even did a fresh install on a vanilla version of 1.1.8 and still get the same error.

Any ideas?

I'll attach any files needed.

Thanks

Check this out, it seems to be a common issue...
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration
Post by: JBlaze on April 01, 2009, 09:28:43 PM
Quote from: mrtrc266 on April 01, 2009, 09:23:59 PM
Quote from: JBlaze™ on April 01, 2009, 09:21:02 PM
Hey yall,

I just upgraded to 3.0 and now, when I try to access chat, I get a 500 Internal Server Error.

I manually added all code and even did a fresh install on a vanilla version of 1.1.8 and still get the same error.

Any ideas?

I'll attach any files needed.

Thanks

Check this out, it seems to be a common issue...
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

Thank you. I didn't even think of that HAHA

Appreciate the help, worked on both versions of my site. :P
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 09:29:02 PM
@ Nemesis_D what the URL to your site?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 09:29:49 PM
Glad you got it goin JB :)
Title: Re: AjaxChat Integration
Post by: [unplugged] on April 01, 2009, 09:31:01 PM
No luck. Same exact results as before. It never saves anything to the database. Here's a screenshot of what I see to maybe (re)shed some light on the issue.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg5.imageshack.us%2Fimg5%2F3933%2Fgreenshot20090401202311.png&hash=53ebe04a6eb6dce72f00be4e67560bd2ac2c6d9d) (http://img5.imageshack.us/my.php?image=greenshot20090401202311.png)

Nice and nothing.  ;D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 09:46:59 PM
And you set all your file permissions and tried Jives solution regarding the .htaccess file?

EDIT: Also how about any errors from your host/server?
Title: Re: AjaxChat Integration
Post by: [unplugged] on April 01, 2009, 09:55:23 PM
Yes and yes.

EDIT: I'll sift through them again now.

EDIT2: Now my host is just toying with me.... :'(

Quote from: my hostManage Error Log
We have recently updated our Error Log feature. Once enabled, error logs will be available in your error log directory.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 01, 2009, 10:35:36 PM
Have you ever contacted your host to see if they have any suggestions?
Title: Re: AjaxChat Integration
Post by: EclecticHoobajoo on April 02, 2009, 04:55:14 AM
After pulling all my hair out trying to get this working for a bunch of my members who wanted a chat room, I'm giving up on this ajax pile of crap.  No one here seems to know why I keep getting the utf8 errors or what to do about them. 

I somehow got the package manager to try to install it, but ;) got the following error:

Database Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8
File: /html/smf/Packages/temp/Tables_1.1.X.php
Line: 20

Then I tried to go into the smf/chat to see if there was anything, and got an error about tables not being there.

Then I went back to my smf index page, and my smf was "blown up",  ((nods to bigloutx)).  this is the error that showed up on my index page:

Database Error: Table 'user_525799.ajax_chat_online' doesn't exist
File: /html/smf/Sources/Load.php
Line: 2251


Luckily, I had backed up, everything is restored back to before the ajax install.  And I'm done playing with it.
I've never had so many problems just getting a mod installed.  Maybe if this is ever re-released by a different author I'll give it another shot.  The other chat programs look pretty messed up too by peeking at their support pages, this was supposedly the "best" one, so I guess my users will not be chatting.  Or I'll have to go to something other than SMF to get one to work.   lol


Title: Re: AjaxChat Integration
Post by: bogzy83 on April 02, 2009, 05:39:14 AM
hello all!
this mod works great for me.
thank you
Title: Re: AjaxChat Integration
Post by: getandshare on April 02, 2009, 05:52:40 AM
Quote from: mrtrc266 on April 01, 2009, 03:34:31 PM
enable your shoutbox for guests for a minute

I wasn't actually enabling and disabling shoutbox... i was just switching back to the index.template.php file i kept as backup....:D

Bro... i got a thought....
What if the shoutbox will be just above my Top Stats mod.... i mean where top stats mod displays it self on index...
That way shoutbox wont be interfering with the login box...:)
What you say to that?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 02, 2009, 11:17:54 AM
@ Geminiguy, you should be all set! Looks like it going pretty good  :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 02, 2009, 05:07:00 PM
Quote from: getandshare on April 02, 2009, 05:52:40 AM
Quote from: mrtrc266 on April 01, 2009, 03:34:31 PM
enable your shoutbox for guests for a minute

I wasn't actually enabling and disabling shoutbox... i was just switching back to the index.template.php file i kept as backup....:D

Bro... i got a thought....
What if the shoutbox will be just above my Top Stats mod.... i mean where top stats mod displays it self on index...
That way shoutbox wont be interfering with the login box...:)
What you say to that?

I was asking you to enable the shoutbox for guests for a minute so I could take a look.

Yes you could place th shoutbox where ever you like, but isn't that towards the bottom of your page?
Title: Re: AjaxChat Integration
Post by: MaryLouW on April 02, 2009, 07:27:48 PM
I tried to install this module on my forum but got error messages.  I am running version 1.1.8.  Is there a way around these problems? I really want a nice integrated chat room.  Any help is appreciated. Here is what I get:
Title: Re: AjaxChat Integration
Post by: mike s on April 02, 2009, 07:35:49 PM
I need some help with this mod please..

I've installed it onto a smf2.0rc1 system. The installation went clean, no errors listed, and it does work. However the configuration settings don't seem to make any difference, in my installation. I've set permissions for my users to use it, I've configured the settings as I would like in the admin/modification/chat section. Ideally, I'd like no shoutbox options, I would like it to pop up in a separate window, and I would like the enable chat users numbering on chat button, and show online users  (the last 3 configuation items selected). When I do these or alter them, it seems to make no difference.

Help please?
regards, Mike.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 02, 2009, 07:38:33 PM
Quote from: MaryLouW on April 02, 2009, 07:27:48 PM
I tried to install this module on my forum but got error messages.  I am running version 1.1.8.  Is there a way around these problems? I really want a nice integrated chat room.  Any help is appreciated. Here is what I get:

You can use a Package Parser (http://resourcez.biz/PackageParser/) to manually do the edits.

If you can't get it attatch those to files here please and I'll take a look.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 02, 2009, 07:40:37 PM
@gofishont If you are using a custom theme please follow this

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration
Post by: MaryLouW on April 02, 2009, 07:47:08 PM
Quotemrtrc266 said:
You can use a Package Parser to manually do the edits.

If you can't get it attatch those to files here please and I'll take a look.

I have never used the Package Parser and am not quite sure what it does but I will at least look at it. Thanks!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 02, 2009, 07:58:55 PM
Quote from: MaryLouW on April 02, 2009, 07:47:08 PM
Quotemrtrc266 said:
You can use a Package Parser to manually do the edits.

If you can't get it attatch those to files here please and I'll take a look.

I have never used the Package Parser and am not quite sure what it does but I will at least look at it. Thanks!

Uploade the Mod in the Package Parser and look for the edits in the files that failed the pass test. This is definately a handy tool.

Once again if you can't get it or are uncomfortable messin with it attatch those 2 files and I'll take a look for ya.
Title: Re: AjaxChat Integration
Post by: mike s on April 02, 2009, 09:16:17 PM
Quote from: mrtrc266 on April 02, 2009, 07:40:37 PM
@gofishont If you are using a custom theme please follow this

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

thanks very much.. i will try that.
Title: Re: AjaxChat Integration
Post by: geminiguy on April 02, 2009, 10:35:00 PM
Quote from: mrtrc266 on April 02, 2009, 11:17:54 AM
@ Geminiguy, you should be all set! Looks like it going pretty good  :D
Yes, it is awesome!!
Thank you mrtrc266... from myself, and my entire community... as well as on behalf of everyone else here you have devoted your time so selflessly to help. You are without a doubt one top-notch support guru.
And, thanks to HuNTeR and anyone else involved with the creation & update of this mod... it's a keeper ;)
Title: Re: AjaxChat Integration
Post by: MaryLouW on April 02, 2009, 11:55:49 PM
Quote from: mrtrc266 on April 02, 2009, 07:58:55 PM
Quote from: MaryLouW on April 02, 2009, 07:47:08 PM
Quotemrtrc266 said:
You can use a Package Parser to manually do the edits.

If you can't get it attatch those to files here please and I'll take a look.

I have never used the Package Parser and am not quite sure what it does but I will at least look at it. Thanks!

I did the thing with the Package Parser and it generated code to look for and code to replace but when I looked in those files, that code was not there.  I opened the files in my text editor and did a search for the text and it was not found.   Could it be that another mod has changed it?  I have around 20 mods installed.

Uploade the Mod in the Package Parser and look for the edits in the files that failed the pass test. This is definately a handy tool.

Once again if you can't get it or are uncomfortable messin with it attatch those 2 files and I'll take a look for ya.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 03, 2009, 12:25:15 AM
@ MaryLouW yes it could be that other Mod have moved the code around. Attatch those files that failed.

Also, are you using a custom theme? If so please post a link to it as well.
Title: Re: AjaxChat Integration
Post by: jaybest on April 03, 2009, 01:16:22 AM
Hey there,

Just installed this module, but getting the following error
I am hosting on godaddy with PHP 4 and Apache 1.3 keen to hear feedback on this.

Cheers,
------------

This page contains the following errors:

error on line 6 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 03, 2009, 01:31:55 AM
@ jaybest, have no idea about that error and I'm a newb at this but isn't PHP 4 a little out dated, especially with a host like Go Daddy? Will do some diggin around to see if I can find anything.

I did see your post about the best themes and I have to say that it's Extreme6 ;) Here it is live with a few little tweaks to the css and image menus
http://monsters-mansion.com/index.php
Title: Re: AjaxChat Integration
Post by: Gul Ducat on April 03, 2009, 03:31:00 AM
Quote from: mrtrc266 on April 01, 2009, 02:32:09 PM
QuoteAnd if there's extra, unexpected, crap that goes along with it like bigloutx says

All that crap he was talking about he was NOT referring to this Mod. It looked like he was on a rant about mods in general. No Mod can blow up your forum if you back up like you're supposed to and it doesn't even put copy right links at the bottom of your forum. Unforunately that was bigloux first post ever on this thread, he never once even asked for help.

QuoteI've seen others posting about ads being on there too

LOL...I've never seen any posts about ads being in this Mod, I can assure you there are no ads.

Quotethe more it looks like I'll have nothing buy problems every step of the way, like a lot of other people here.   Seems like every other post is "It works, BUT now I have this problem..."

This has 11649 downloads and on these 56 pages there are only about 50 people who have had a real problem and about 98% fixed, all the other posts are mostly doing the edits to get it working on custom themes and figuring out some custom tweaks here and there.

I do understand your frustration though, if this just isn't working for you then there are a lot of other Chat Rooms out there.  GL in whatever you decide.

Instead of defending mods ad nauseum or bashing my posts without merit, why not try and READ my post in its entirety?  There ARE mods that place garbage ads at the footer of the index page where smf copyrights are located.  One of them advertises 2by2host.com.  I have NEVER stated that AJAX Chat did any of this, so please READ before flaming.

A mod author should NEVER assume that the end user is willing to advertise for them.  As stated before, I appreciate the hard work by most mod creators.  Unfortunately, the mod section is replete with mods that have ZERO documentation, instructions, or even a modicum of a description as to what it does other than a mod title.

Flame on all you want, but please don't insult our intelligence with sweeping statements that there's no mods that can damage a forum or place ads in them.  They exist, and they can be downloaded right here.

Just because you allege there are "11649 thousand downloads" followed by some mysteriously derived percentages of successes vs problems.  When a user complains of a problem it is very insulting to hear the proverbial "no one else has that problem" commentary.  The fact remains that there's one that does!

My original observation was on the AJAX Chat mod and some others (unspecified) that place ads on the forum.  My comments stand.  It is NOT my responsibility to weed out the offending mods, one by one, create percentage statistics, and force changes here.  This is NOT my forum and I have no control over posts.

I would suggest that the administrators consider a mod submittal policy which requires a submitted mod to meet certain criteria like:

Detailed Descriptions
Installation Instructions
Screen Shots
Mod Testing and SMF Version Compatibility


Anything less than the above only invites chaos and a swamp of potentially unreliable mods that may or may not work.  I also believe that it would greatly curtail the need for so many support questions and problems.

My two cents worth!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 03, 2009, 03:41:43 AM
@ bigloutx  Isn't that exactly what I said, that you were NOT talkin about this Mod?

QuoteAll that crap he was talking about he was NOT referring to this Mod. It looked like he was on a rant about mods in general.

I understood exaclty what you were saying but I just wanted to make it clear to everyone else that you weren't talkin about this Mod in particular, especially since you never once hit this board for support. I was actually one your side.

Your 2 cents was valid, I hope you find something that works for you.


@ bigloutx and EclecticHoobajoo

If you want to see how well this Mod works on SMF 1.1.8 and SMF 2RC1 you can check it out here SMF 118 (http://monsters-mansion.com/test118/index.php) and here SMF2 RC1 (http://www.monsters-mansion.com/smf2/index.php?action=forum)


Title: Re: AjaxChat Integration
Post by: Gul Ducat on April 03, 2009, 04:18:00 AM
You also stated that there were no mods that placed ads.

From my perspective, the only logical solution which could reduce the sometimes seemingly unrecognized efforts of people like you, is to better moderate the posting of SMF mods.  Members like you devote alot of time to helping others with mod issues which could be avoided if well intentioned mod authors just took the time to post mods in a more organized fashion.

A good start would be to redesign the present mod submission form located at http://custom.simplemachines.org/mods/index.php?action=postmod;sa=new (http://custom.simplemachines.org/mods/index.php?action=postmod;sa=new) to include more details about the mod.  Especially details on installation and configuration instructions, user editable features/variables, and any other feature that may cause installation issues.

I guess the best way to describe the desired result would be to have mod authors assume that the end user is NOT a coder and to write descriptions and instructions as if they were the users and not the knowledgeable code writers.

In my business life I have always tried to view things from the clients uninformed perspective.  Yes, free mods are just that, free.  But, if a mod writer is truly proud of their craft and they are genuinely writing free code, why not go the extra mile and do it right?  I know I would appreciate it even more and the support staff here could spend more time catching up on Twinkies, diet cokes, and sleep.  ;)
Title: Re: AjaxChat Integration
Post by: Gul Ducat on April 03, 2009, 04:25:55 AM
I am curious, what exact procedure did you use for the RC1 installation : http://www.monsters-mansion.com/smf2/index.php?action=forum (http://www.monsters-mansion.com/smf2/index.php?action=forum)

I tried yours and it seems to work fine as it should.  All I've ever done is install the package via smf's package installer and it installs OK but when it comes to using it, it does not properly list users in chat (inside chat or on the tab or in the footer of the index page).

Unlike yours, in my installation, the chat window opens but users never appear in the right pane.  It almost seems like no one is present, not even the single user.  Your installation shows a right pane with the following info:

# Logout
# List online users
# List ignored users
# List available channels
# Describe action
# Roll dice
# Change username

Mine is blank and only has the title: Online Users.  Chat button or online user area does not show users in chat.

When sending a chat message in the chat box, after hitting "submit", it never appears in the larger box where the username/message gets posted.

On the main forum page, the shoutbox is reduced to a non usable small box on the main forum page.

Any thoughts?
Title: Re: AjaxChat Integration
Post by: djrem on April 03, 2009, 04:52:51 AM
Can someone please confirm that this is compatible with FlashChat still installed?

My reason is, i have a working version of FlashChat working perfectly fine but i would like to test AJAX chat just to work on a shoutbox system for TinyPortal.

I'm not an expert coder so dont want to jump in and install it knowing that it is already using the same "chat" folder that flashchat utilises.

If the folder conflicts then are there more? Database etc.

Could we branch the mod so it does use the vague "chat" tag but a specific "ajaxchat" or similar?

Sorry to be a bother but this is really cutting out potential users in its current state.
Title: Re: AjaxChat Integration
Post by: getandshare on April 03, 2009, 05:38:22 AM
Quote from: mrtrc266 on April 02, 2009, 05:07:00 PM
Quote from: getandshare on April 02, 2009, 05:52:40 AM
Quote from: mrtrc266 on April 01, 2009, 03:34:31 PM
enable your shoutbox for guests for a minute

I wasn't actually enabling and disabling shoutbox... i was just switching back to the index.template.php file i kept as backup....:D

Bro... i got a thought....
What if the shoutbox will be just above my Top Stats mod.... i mean where top stats mod displays it self on index...
That way shoutbox wont be interfering with the login box...:)
What you say to that?

I was asking you to enable the shoutbox for guests for a minute so I could take a look.

Yes you could place th shoutbox where ever you like, but isn't that towards the bottom of your page?

Yes that way it will be below all forum's list and above top stats mod...
But that would be fine... because people already scroll down alot to see what are the latest posts....

I was having trouble finding which mod is this forum using to display staff groups in users online like...

[Beta Tester]  [Charter Member]  [Customizer]  [Developer]  [Doc Writer]  [Language Moderator]  [Marketing]  [Project Manager]  [Site Team]  [SMF Friend]  [Support Specialist]

any idea to that?


Regarding shoutbox activation... bro... i don't know what time you will be online so that i activate it...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 03, 2009, 11:22:47 AM
Quote from: bigloutx on April 03, 2009, 04:18:00 AM
You also stated that there were no mods that placed ads.

This is what I said (key words "this Mod")  "LOL...I've never seen any posts about ads being in this Mod, I can assure you there are no ads."

QuoteFrom my perspective, the only logical solution which could reduce the sometimes seemingly unrecognized efforts of people like you, is to better moderate the posting of SMF mods.  Members like you devote alot of time to helping others with mod issues which could be avoided if well intentioned mod authors just took the time to post mods in a more organized fashion.

It is unavoidable to not have issues and Sunking said it exactly  right and his patience is greatly appreciated.
Quote from: SunKing on April 01, 2009, 08:27:57 PM
I am having issues and been requesting help with them for a while....with no solution yet.

But, I also know that any major mod (not just some cheesy mod that changes green text to blue or some crap like that) cannot possibly take into consideration every possible configuration from host to server settings to PHP to MySQL to internet connection to personal computer to users themselves. Ask questions. You'll get answers. Sometimes a dash of patience is required too. Oh yeah....and make backups before installing mods...just in case.....(you did make backups, right?)

</myrant>

Oh...btw.... any progress with a solution for my problem?  :P

QuoteA good start would be to redesign the present mod submission form located at http://custom.simplemachines.org/mods/index.php?action=postmod;sa=new (http://custom.simplemachines.org/mods/index.php?action=postmod;sa=new) to include more details about the mod.  Especially details on installation and configuration instructions, user editable features/variables, and any other feature that may cause installation issues.

I agree 100% I have seen many Mods with zero details but this Mod does give a good description of what to expect on the dl page. http://custom.simplemachines.org/mods/index.php?mod=1319 and if you click on the big Purple FAQ link on that page it will take you to a posts that will help most users fix their problems and or customize the chat to suit their needs.

QuoteI guess the best way to describe the desired result would be to have mod authors assume that the end user is NOT a coder and to write descriptions and instructions as if they were the users and not the knowledgeable code writers. In my business life I have always tried to view things from the clients uninformed perspective.  Yes, free mods are just that, free.  But, if a mod writer is truly proud of their craft and they are genuinely writing free code, why not go the extra mile and do it right?  I know I would appreciate it even more and the support staff here could spend more time catching up on Twinkies, diet cokes, and sleep.  ;)

Once again I agree but you can only make VERY complex so simple, why do you think that the boards with the most support/problems are chat and or shout boards? I'm not a coder by any means but it's obvious these are the most complex Mods for any forum platform not just SMF.




Ok now on to your issue

Quote from: bigloutx on April 03, 2009, 04:25:55 AM
I am curious, what exact procedure did you use for the RC1 installation : http://www.monsters-mansion.com/smf2/index.php?action=forum (http://www.monsters-mansion.com/smf2/index.php?action=forum)

I tried yours and it seems to work fine as it should.  All I've ever done is install the package via smf's package installer and it installs OK but when it comes to using it, it does not properly list users in chat (inside chat or on the tab or in the footer of the index page).

Unlike yours, in my installation, the chat window opens but users never appear in the right pane.  It almost seems like no one is present, not even the single user.  Your installation shows a right pane with the following info:

# Logout
# List online users
# List ignored users
# List available channels
# Describe action
# Roll dice
# Change username

Mine is blank and only has the title: Online Users.  Chat button or online user area does not show users in chat.

When sending a chat message in the chat box, after hitting "submit", it never appears in the larger box where the username/message gets posted.

On the main forum page, the shoutbox is reduced to a non usable small box on the main forum page.

Any thoughts?

You're gonna get a kick out of this one, it looks like you have the same problem that Sunking has which there hasn't been a solution for YET. Please be patient where there is a will there is a way, it's only a matter of time before this issue is nailed down.

Do you have any other Mod installed, it was just recently discovered that Pretty URLs interferes with this and will not let it work, there may be other Mods as well.
Title: Re: AjaxChat Integration
Post by: Gul Ducat on April 03, 2009, 11:29:26 AM
Based on what I've seen so far, I can only assume that the problems are either server/file permission issues or as you pointed out, a conflicting mod.

Here's what I have installed, no pretty url's:

1.    Moderators Receive To Right    1.0    [ Uninstall ]
2.    Pm Number in All Pages    1.0    [ Uninstall ]
3.    MessagePreviewOnHover    1.7    [ Uninstall ]
4.    RSS Feed Icon    1.1    [ Uninstall ]
5.    Hide Info Center From Guests    1.0    [ Uninstall ]
6.    BK-SMF Sub-Board    1.5    [ Uninstall ]
7.    The Rules    1.2    [ Uninstall ]
8.    Custom Tab    1.2    [ Uninstall ]
9.    Custom Copyright    1.1    [ Uninstall ]
10.    Add IP2Location to Track IP    1.2    [ Uninstall ]
11.    Skype Profile Field    1.1    [ Uninstall ]
12.    Redirect on Login and/or Logout mod    0.3    [ Uninstall ]
13.    Share this topic - SMF Mod    1.3    [ Uninstall ]
14.    Time Logged-In    3.3    [ Uninstall ]
15.    PM Readed    1.0    [ Uninstall ]
16.    New Topic Button    1.0    [ Uninstall ]
17.    PM to New Members    1.0    [ Uninstall ]
18.    Stop Spammer    2.2    [ Uninstall ]
19.    Quick PM    1.0    [ Uninstall ]
20.    PDF Tag    1.1    [ Uninstall ]
21.    Internal_Links_Use_Same_Window    1.2    [ Uninstall ]
22.    reCAPTCHA for SMF    0.9.5.4a    [ Uninstall ]
23.    Images On Board    2.0    [ Uninstall ]
24.    Floating Bar Mod    1.1    [ Uninstall ]
25.    Justify BBCode    2.1    [ Uninstall ]
26.    Enhanced PM Warning Message    1.0    [ Uninstall ]
27.    Date_Registerd on post    1.0    [ Uninstall ]
28.    Global Headers Footers    2.0    [ Uninstall ]
29.    Custom Fields On Memberlist    1.0    [ Uninstall ]
30.    Avatar On Board RC1    2.1    [ Uninstall ]
31.    Custom Form Mod    1.3    [ Uninstall ]
32.    Hack's Park Color Picker    1.0.1    [ Uninstall ]
33.    Hide SMF Version    1.0.3b    [ Uninstall ]
34.    AllCaps Notifier    1.0    [ Uninstall ]
35.    eFloating Bar for Guest & Members    0.1
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on April 03, 2009, 11:41:19 AM
@Sunking can you post your installed mod too?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 03, 2009, 12:16:01 PM
Quote from: getandshare on April 03, 2009, 05:38:22 AM

Yes that way it will be below all forum's list and above top stats mod...
But that would be fine... because people already scroll down alot to see what are the latest posts....

Come to think of if the shoutbox is in your index template so it goes across all the pages, it would have to be added to the boardindex.template to place it there. I played with it but couldn't get it going, will mess with it some more.

QuoteI was having trouble finding which mod is this forum using to display staff groups in users online like...

[Beta Tester]  [Charter Member]  [Customizer]  [Developer]  [Doc Writer]  [Language Moderator]  [Marketing]  [Project Manager]  [Site Team]  [SMF Friend]  [Support Specialist]

any idea to that?

It's actually in your theme setttings go to Admin/Current Theme/ and check "Show group key on board index"

Title: Re: AjaxChat Integration
Post by: getandshare on April 03, 2009, 01:27:50 PM
thanks for the second part....:D

I had come across that setting so many times but always overlooked it... lolllllzzz
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 03, 2009, 01:35:15 PM
Quote from: EclecticHoobajoo on April 02, 2009, 04:55:14 AM
I somehow got the package manager to try to install it, but ;) got the following error:

Database Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8
File: /html/smf/Packages/temp/Tables_1.1.X.php
Line: 20

Hey EclecticHoobajoo, sorry about your frustration on getting this going, I think the problem might be where you installed the chat first and then this intergration Mod which also installs the chat for you as it clearly states on the Download page.

Quote from: .HuNTeR. on August 27, 2008, 12:59:06 AM
note if you already have previous version of this mod after uninstalling the previous version delete the entire chat folder too. new version install the chat by self.
It seems as though you have installed AJAX Chat twice which could lead to serious problems on getting this to work.

If you would like to try it again I would drop all the Ajax Chat tables in your database from MyphpAdmin. Delete the chat and shoutbox folders and then upload this Mod via your package manager and install again.

Or like you said, wait for the next release to see if that helps. It should be coming soon ;)

As you can see from the 59 pages of the support board ALMOST everyone has got this to work. As SunKing has stated the Mod Author cannot take into account every possible configuration, PHP version, Mysql version/setttings, server settings/restrictions and ALL other installed Mods that might interfere with this Mod. On another note some servers even restrict chat programs and you might have to get their permission to allow you to use one. There are a number of variables that could cause this to give some people problems.

It's not the Mod it's self nor is it the author of the Mod. I have it going on 3 sites and 3 different versions on SMF and have never had any problems with it. Also I have assisted at least 100 people on getting it going on their site and it's working perfectly for them now too. The only problem I had was when I was using it on a free hosting site and I requested support from the host, they did something and then it worked fine.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 03, 2009, 02:05:25 PM
@ djrem
I haven't heard of anyone using this along side Flash Chat. I wouldn't try it if Flash Chat already occupies a /chat folder. That might take some serious recoding (or not) I'm not sure.
Title: Re: AjaxChat Integration
Post by: Astro RTM on April 03, 2009, 04:22:02 PM
I got a small problem
Title: Re: AjaxChat Integration
Post by: [unplugged] on April 03, 2009, 05:13:59 PM
Quote from: .HuNTeR. on April 03, 2009, 11:41:19 AM
@Sunking can you post your installed mod too?

Here is my list of installed mods:

   Mod Name     Version     
1.    AjaxChat Integration    3.0    [ Uninstall ] [ List Files ] [ Delete ]

;D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 03, 2009, 05:19:39 PM
Quote from: Astro RTM on April 03, 2009, 04:22:02 PM
I got a small problem

Looks like the code is misplaced, did you get any errors during the install?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 03, 2009, 05:20:31 PM
Quote from: SunKing on April 03, 2009, 05:13:59 PM
Quote from: .HuNTeR. on April 03, 2009, 11:41:19 AM
@Sunking can you post your installed mod too?

Here is my list of installed mods:

   Mod Name     Version     
1.    AjaxChat Integration    3.0    [ Uninstall ] [ List Files ] [ Delete ]

;D

LMAO! We're workin on it, thanks again for your patience.
Title: Re: AjaxChat Integration
Post by: [unplugged] on April 03, 2009, 05:32:19 PM
Quote from: Astro RTM on April 03, 2009, 04:22:02 PM
I got a small problem

Something else that has been happening with several mods is that the code gets copied all onto a single line. Then the first comment of the code block comments out most or all of the added code. I have seen it result in the same error seen there, with the code simply showing up at the top of the page. Looking at what is up there, it appears to me that it might in fact all be on a single line (although if text-wrap is on, it may appear to be more than 1 line).
Title: Re: AjaxChat Integration
Post by: ricorico on April 03, 2009, 08:22:05 PM
im baack :D im still looking for answers on the dice/images thing, i may be getting some support on the soundforge place tho (thanks mrt)

but as a request anyone know what kinda code id have to add to the chat.php to have like a text box for a # and a [roll] button?

we're using the /roll xd6 a lot and its just kinda annoying typing it out all the time, even copying and pasting. users thought it would be much easier if they just had to put in a # in a small input box and click roll instead (standard d6).

Title: Re: AjaxChat Integration
Post by: madfiddler on April 04, 2009, 08:06:45 PM
Hey,

I've got an install failure on this with BoardIndex.php. These are the mods I have installed...


1.  Paid Subscriptions  0.18    [ Uninstall ]  [ List Files ]  [ Delete ]
2. Ad Managment 2.3 [ Uninstall ] [ List Files ] [ Delete ]
3. Users Online Today Mod 1.4.0 [ Uninstall ] [ List Files ] [ Delete ]
5. reCAPTCHA for SMF 0.9.5.3 [ Uninstall ] [ List Files ] [ Delete ]
7. SMF 1.0.16 / 1.1.8 Update 1.0 [ Uninstall ] [ List Files ] [ Delete ]


Any thoughts?

Thanks,

m

Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 05, 2009, 12:37:29 AM
Quote from: madfiddler on April 04, 2009, 08:06:45 PM
Hey,

I've got an install failure on this with BoardIndex.php. These are the mods I have installed...


1.  Paid Subscriptions  0.18    [ Uninstall ]  [ List Files ]  [ Delete ]
2. Ad Managment 2.3 [ Uninstall ] [ List Files ] [ Delete ]
3. Users Online Today Mod 1.4.0 [ Uninstall ] [ List Files ] [ Delete ]
5. reCAPTCHA for SMF 0.9.5.3 [ Uninstall ] [ List Files ] [ Delete ]
7. SMF 1.0.16 / 1.1.8 Update 1.0 [ Uninstall ] [ List Files ] [ Delete ]


Any thoughts?

Thanks,

m

Attatch your BoardIndex.php file please
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 05, 2009, 01:38:19 AM
Hey great mod dude, well appreciated :)

i have one problem though, sometimes when i click the shoutbox area i will get bombarded with download file screens then i get this message  "Error: Failed to load sound file (Flash IO Error). " about 5 times in shoutbox..

any ideas?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 05, 2009, 01:46:51 AM
Quote from: johncccccc on April 05, 2009, 01:38:19 AM
Hey great mod dude, well appreciated :)

i have one problem though, sometimes when i click the shoutbox area i will get bombarded with download file screens then i get this message  "Error: Failed to load sound file (Flash IO Error). " about 5 times in shoutbox..

any ideas?

Yes that is a known issue that occurs with FireFox only, don't worry about about it. It's harmless and the sound will kick in shortly.
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 05, 2009, 02:13:14 AM
Quote from: mrtrc266 on April 05, 2009, 01:46:51 AM
Quote from: johncccccc on April 05, 2009, 01:38:19 AM
Hey great mod dude, well appreciated :)

i have one problem though, sometimes when i click the shoutbox area i will get bombarded with download file screens then i get this message  "Error: Failed to load sound file (Flash IO Error). " about 5 times in shoutbox..

any ideas?

Yes that is a known issue that occurs with FireFox only, don't worry about about it. It's harmless and the sound will kick in shortly.

ok thanks, but is there any way around this, no quick fixes :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 05, 2009, 02:33:28 AM
Not that I'm aware of but it only happens the first time you log into the Chat Room or type in the shoutbox, then it won't appear again until the next time your log into your forum and once again it only happens if you're using FF

I keep checkin @ https://sourceforge.net/forum/?group_id=214758 but haven't found a quick fix yet.
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 05, 2009, 02:41:43 AM
Quote from: mrtrc266 on April 05, 2009, 02:33:28 AM
Not that I'm aware of but it only happens the first time you log into the Chat Room or type in the shoutbox, then it won't appear again until the next time your log into your forum and once again it only happens if you're using FF

I keep checkin @ https://sourceforge.net/forum/?group_id=214758 but haven't found a quick fix yet.

yea i noticed the pattern eventually, but since the smf software logs you out after 15 minutes it happens quiet frequently, well anyways I hope you find a fix soon, thanks anyway, i will be checking, make sure to post if you find a fix :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 05, 2009, 02:42:24 AM
Quote from: dextrous on March 31, 2009, 01:17:26 PM
hmm, installed it...now...Warning: require(.../cricketforum2/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in ..../cricketforum2/chat/index.php on line 17

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

running SMF 2.0 RC1

I think this is a similar error to the one your getting, couldn't hurt to give this a shot.....
http://www.phpbb.com/community/viewtopic.php?p=7457175#p7418625
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 05, 2009, 02:45:26 AM
Quote from: johncccccc on April 05, 2009, 02:41:43 AM
Quote from: mrtrc266 on April 05, 2009, 02:33:28 AM
Not that I'm aware of but it only happens the first time you log into the Chat Room or type in the shoutbox, then it won't appear again until the next time your log into your forum and once again it only happens if you're using FF

I keep checkin @ https://sourceforge.net/forum/?group_id=214758 but haven't found a quick fix yet.

yea i noticed the pattern eventually, but since the smf software logs you out after 15 minutes it happens quiet frequently, well anyways I hope you find a fix soon, thanks anyway, i will be checking, make sure to post if you find a fix :)

You can change the amount of time your users are inactive before they are timed out, just foloow the instructions here along with many more tweaks.

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration
Post by: madfiddler on April 05, 2009, 07:22:07 AM
Quote from: mrtrc266 on April 05, 2009, 12:37:29 AM
Quote from: madfiddler on April 04, 2009, 08:06:45 PM
Hey,

I've got an install failure on this with BoardIndex.php. These are the mods I have installed...


1.  Paid Subscriptions  0.18   [ Uninstall ]  [ List Files ]  [ Delete ]
2. Ad Managment 2.3 [ Uninstall ] [ List Files ] [ Delete ]
3. Users Online Today Mod 1.4.0 [ Uninstall ] [ List Files ] [ Delete ]
5. reCAPTCHA for SMF 0.9.5.3 [ Uninstall ] [ List Files ] [ Delete ]
7. SMF 1.0.16 / 1.1.8 Update 1.0 [ Uninstall ] [ List Files ] [ Delete ]


Any thoughts?

Thanks,

m

Attatch your BoardIndex.php file please

Hey, Sorry I didn't do this. I uninstalled the "users online today" mod, and it worked. I guess that makes sense if a mod alters a line another mod installer is looking for?

Cheers,

m
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 05, 2009, 11:26:57 AM
@ Sunking

Try this, open yourforum/chat/index.php

Find
// Path to the chat directory:
define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');


Replace with
// Path to the chat directory:
$script_path = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_URL'];
define('AJAX_CHAT_PATH', realpath(dirname($script_path)).'/');


If that doesn't work try replacing it with this
// Path to the chat directory:
$script_path = $_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_URL'];
define('AJAX_CHAT_PATH', realpath(dirname(__FILE__)).'/');


It's a couple fixes I found @ Sourceforge for users with similar issues.

Cross you fingers :D


Title: Re: AjaxChat Integration
Post by: jhd_20 on April 05, 2009, 03:36:28 PM
I'm trying to download the modz for quite a few try now but I think the link is DL broken..?

Can someone check it out or is it in my browser?

TIA

jhd_20
Title: Re: AjaxChat Integration
Post by: [unplugged] on April 05, 2009, 04:34:05 PM
Neither one worked.  ;D I am trying your idea in the PM. We'll see how that goes.

EDIT: Apparently, it's a hosting/server issue. I set up another vanilla, and installed the 8.1.2 version to see if I could get the chat part working. No such luck.
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 05, 2009, 07:26:46 PM
Thanks again for the mod, I have another problem, well the shoutbox is too high and the tab buttons go over it slightly, look at image

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2F2iqzpz7.jpg&hash=d23a4e634b48199f889c7394755a4d5e49edea46)

on install all tests passed except board index template, which I edited myself.

any ideas?
Title: Re: AjaxChat Integration
Post by: ricorico on April 05, 2009, 08:47:32 PM
mrt - any suggestions on my question about a  input box and roll button  embedded in the chat page?
Title: Re: AjaxChat Integration
Post by: Gul Ducat on April 05, 2009, 10:52:16 PM
Well folks, at least the mystery of my server errors is now solved and Chat seems to be working for now.

I am co-located on an Apache based server and the errors created are usually reported in GeekSpeak v2.0  >:(  Which normal folks with a life outside of the binary world (like me) cannot understand.

My problem was resolved by changing via ftp the chmod properties of all five files in the \chat directory from a 666 to a 644.  Wala! It works.

Simply put, instead of the Apache errors simply stating: Hey... Dummy... these five files have the wrong permissions!  (which I would understand), It instead comes up with file not found errors which are very difficult to troubleshoot, especially when you know the files are indeed where they're supposed to be.

I hope this helps.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 05, 2009, 11:05:55 PM
@ bigloutx Damn I was close


http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

Glad to see hat you got it sorted and might possibly retract your statement...

Quote from: bigloutx on April 01, 2009, 02:44:13 AM
Sorry to rant, but it was a piece of $$IT mod that I blew up my 1.18 installation and had to resort to RC1.

I hope you and your members enjoy the Mod.
Title: Re: AjaxChat Integration
Post by: Gul Ducat on April 05, 2009, 11:20:30 PM
Is there a way to auto-logout an inactive chat session that is online inactive for more than 15 or 30 minutes?  I guess it could be done by the smf login time restrictions but some users like to stay logged in to smf but forget to log out of chat.

Users that are actually not active in the forum still show up as being in chat long after there gone.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 05, 2009, 11:27:02 PM
@ bigloutx

Not sure if this is exactly what you're lookin for but read the FAQ's (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) and you can set how long you want the users to be inactive before they are logged/timed out.
Title: Re: AjaxChat Integration
Post by: EclecticHoobajoo on April 05, 2009, 11:43:17 PM
Quote from: mrtrc266 on April 03, 2009, 01:35:15 PM
Hey EclecticHoobajoo, sorry about your frustration on getting this going, I think the problem might be where you installed the chat first and then this intergration Mod which also installs the chat for you as it clearly states on the Download page.

It didn't clearly state any of the like when I first downloaded it, who knows how many versions ago.  There is also no changelog that I can see, so I can know which versions have what on them and what was done/added and why.

Quote from: .HuNTeR. on August 27, 2008, 12:59:06 AM
note if you already have previous version of this mod after uninstalling the previous version delete the entire chat folder too. new version install the chat by self.
I already tried that.

Quote from: mrtrc266 on April 03, 2009, 01:35:15 PM
It seems as though you have installed AJAX Chat twice which could lead to serious problems on getting this to work.

If you would like to try it again I would drop all the Ajax Chat tables in your database from MyphpAdmin. Delete the chat and shoutbox folders and then upload this Mod via your package manager and install again.

Or like you said, wait for the next release to see if that helps. It should be coming soon ;)

If I have to do any database editing, then I am totally screwed on this.  My host has lost my control panel for some reason, and I can't get into phpmyadmin.  After I upgraded to SMF 1.1.7, my host's control panel for SMF disappeared.  I'm currently on 1.1.8, and still nothing.  They have acknowledged that it has indeed disappeared for me, but have done nothing to get it back for me.  They say that uninstalling and reinstalling SMF "may" get it to show up again, but I'm not going through all that unless I know for sure that it will work.

I'll try to install this on a test server and if it works, I'll probably just switch to a different host.  However, another reason I don't want this installed is because I haven't seen the answer to the question posted on page one or two of this:  what kind of a load does this add to your server?  How much slowness can I expect if I put this on a shared server?  I'm already getting some bad slowness and connections timing out, possibly from the arcade mod I have installed, possibly from a craptacular host, or most likely a combination of the two.

Quote from: mrtrc266 on April 03, 2009, 01:35:15 PMAs you can see from the 59 pages of the support board ALMOST everyone has got this to work. .....

It's not the Mod it's self nor is it the author of the Mod. I have it going on 3 sites and 3 different versions on SMF and have never had any problems with it. Also I have assisted at least 100 people on getting it going on their site and it's working perfectly for them now too. The only problem I had was when I was using it on a free hosting site and I requested support from the host, they did something and then it worked fine.

Don't be so modest.  I see you had a whole lot of problems when you first installed this as well. 
And just because there are thousands of downloads and "only" 59 pages of support questions, that doesn't mean most have it working.  I'd imagine most people try to install it, can't, and simply give up without asking for support help.  There needs to be a rating system on here so we can know just how good the mod is.  A thousand people's votes would mean more to me than a few people's posts on the support thread.  It would be nice to see the rating for the three or four chat mods out there to try to find the best one.  I just picked this one because it looked like a fairly easy one to install. 

Like I said before, I appreciate seeing all your support help on this, mrtrc.  It gives me at least a glimmer of hope that some day, maybe I'll get this installed.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 06, 2009, 12:37:06 AM
@ EclecticHoobajoo

Sorry to hear about the loss of your control panel, that must really suck (acutally unthinkable) if you want to run a forum. Sounds like it's about time to switch host...and fast!

Yes I did have "A" problem (not a whole lot of problems) in the beginning when I was on a free host but then I forked out the $36 a yr for a domain and services and got the issue resolved (actually they fixed it before I forked out the $36 while it was still free). No problems since. (it was a hosting issue, it had nothing to do with the mod. I didn't start callin it a piece of crap before giving it a chance.) Please show me ALL the problems I had? As I recall it was one "real" problem when I first installed it.

Yes you may have downloaded it many versions ago but you never expressed any concerns about it until http://www.simplemachines.org/community/index.php?topic=257973.msg1993863#msg1993863 (just a about a week ago) at which time the front page clearly stated "new version install the chat by self"

I'm not being modest at all, I was just pointing out that for most of the people who have asked for support have got this going on their site, so to come out and say "this is a piece of crap" before asking for help or expecting it to be resolved in a day or 2 not being very understanding of what it takes to make a mod of this nature.

As you can see the AJAX Chat Intergration Mod is ranked #2 out of  ALL Mods as the "Most Popular Mods" and then search for "Chat" on the Mod site and see that it has the least amount of downloads compared to the other chat Mods. I'm not sure exaclty how they rank it but that seems pretty good to me.

Common sense says that if you download a Mod and have a problem that you should go ahead and post the error on the support thread (that's what they are for). So I doubt that many people have installed it, couldn't get it working and just moved on without asking for support. If that's the case then a lot of people have missed out on a great Mod, but once again I doubt that's the case.

To answer your question, it takes a small hit on your server (or atleast mine) it's barley noticable.

There is hope in everything that I have found on SMF just please be patient and the issue will be tackled and resolved by someone eventually, thank you for your understanding.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 06, 2009, 01:16:01 AM
Quote from: jhd_20 on April 05, 2009, 03:36:28 PM
I'm trying to download the modz for quite a few try now but I think the link is DL broken..?
Can someone check it out or is it in my browser?
TIA
jhd_20

Seems to work fine for me...
http://custom.simplemachines.org/mods/index.php?mod=1319
Title: Re: AjaxChat Integration
Post by: Gul Ducat on April 06, 2009, 01:17:29 AM
Yup! That's exactly what I need, the FAQ's have it.

On a related subject, I feel the pain EclecticHoobajoo is expressing.  Unfortunately, emails don't convey the facial and body language that is usually present in a face to face conversation.

I think we can all agree that no mod is perfectly written, nor should we expect them to be.  However, EclecticHoobajoo's issues as well as mine and many others could be greatly reduced if the SMF Forum Management implemented some of my previously posted suggestions with regard to criteria needed prior to posting a mod.

At the very least, it is probably time for a select committee of Moderators and Tech Support Staff to wade through the mods download area and weed out the mods which are undocumented, buggy, duplicates, outdated, or do not meet the same quality standards that SMF Coders have on their own works like SMF.  Not trying to suck up but even in beta or RC1, SMF is a very stable and well documented masterpiece.

Again, just my 2 cents worth.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 06, 2009, 01:23:19 AM
Quote from: johncccccc on April 05, 2009, 07:26:46 PM
Thanks again for the mod, I have another problem, well the shoutbox is too high and the tab buttons go over it slightly, look at image

on install all tests passed except board index template, which I edited myself.

any ideas?

Looks like you just have to relocate your shoutbox code in your /yourforum/Themes/[your theme]/index.template.php file just try playing with the location of...
//shoutBox
if (!empty($modSettings['enableShoutBox'])){
if (allowedTo('shout_access')){
// We'll have to use the cookie to remember the shoutBox header...
if ($context['user']['is_guest'])
$options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);

echo '
<script language="JavaScript" type="text/javascript">
var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

function ajax_shoutBox_collapse(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>';

if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
</div>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
', getShoutBoxContent() ,'
</div>
</div>';
}
}
}


If you can't get it post a link to your theme please
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 06, 2009, 01:34:00 AM
Quote from: ricorico on April 05, 2009, 08:47:32 PM
mrt - any suggestions on my question about a  input box and roll button  embedded in the chat page?

Re: your input box, sorry I'm not sure
Re: your button here would be where you would make the button, of course you would have to create the function that you desire

Re: your button you can open public_html/chat/lib/template/loggedIn.html and find one of the button codes EXAMPLE: <input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>

I would have no idea how to make the function that you are requesting but I hope this might get you started. Once again I'm sure that the "open discussion" board @ sourceforge will be able to help you on this.  I remember seeing a post about a very complex dice roll code over there.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 06, 2009, 01:52:13 AM
Quote from: bigloutx on April 06, 2009, 01:17:29 AM
Yup! That's exactly what I need, the FAQ's have it.

Glad that was helpful

QuoteI feel the pain EclecticHoobajoo is expressing

So do I, but all we ask is for a little courtesy and patience before bashing the Mod.

QuoteI think we can all agree that no mod is perfectly written, nor should we expect them to be. At the very least, it is probably time for a select committee of Moderators and Tech Support Staff to wade through the mods download area and weed out the mods which are undocumented, buggy, duplicates, outdated, or do not meet the same quality standards that SMF Coders have on their own works like SMF

Here are the some more FAQ's regarding Guidelines for creating Mods which seems to be pretty thorough and extensive.
http://docs.simplemachines.org/index.php?topic=217
http://docs.simplemachines.org/index.php?topic=218
http://docs.simplemachines.org/index.php?topic=506

Mods are submitted and then released (sometimes a month or 2 later) to the SMF Mod Site after they are tested and examined (to make sure they meet the requirement put in place by SMF) by members of SMF Staff, is that kinda what you were talking about?
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 06, 2009, 02:25:12 AM
Quote from: mrtrc266 on April 06, 2009, 01:23:19 AM
Quote from: johncccccc on April 05, 2009, 07:26:46 PM
Thanks again for the mod, I have another problem, well the shoutbox is too high and the tab buttons go over it slightly, look at image

on install all tests passed except board index template, which I edited myself.

any ideas?

Looks like you just have to relocate your shoutbox code in your /yourforum/Themes/[your theme]/index.template.php file just try playing with the location of...
   //shoutBox
   if (!empty($modSettings['enableShoutBox'])){
      if (allowedTo('shout_access')){
         // We'll have to use the cookie to remember the shoutBox header...
         if ($context['user']['is_guest'])
            $options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);
           
         echo '
      <script language="JavaScript" type="text/javascript">
         var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

         function ajax_shoutBox_collapse(mode)
         {';

         if ($context['user']['is_guest'])
            echo '
            document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
         else
            echo '
            smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

         echo '
            document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("ShoutBox").style.display = mode ? "none" : "";

            sb_current_header = mode;
            }
      </script>';

         if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
            echo'
      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
         ', getShoutBoxContent() ,'
         </div>
      </div>';
         }
      }
   }


If you can't get it post a link to your theme please


Solution by Tyrsson:
Quote
//shoutBox
   if (!empty($modSettings['enableShoutBox'])){
      if (allowedTo('shout_access')){
         // We'll have to use the cookie to remember the shoutBox header...
         if ($context['user']['is_guest'])
            $options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);
           
         echo '
         <br /><br />
      <script language="JavaScript" type="text/javascript">
         var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

         function ajax_shoutBox_collapse(mode)
         {';
Title: Re: AjaxChat Integration
Post by: Gul Ducat on April 06, 2009, 02:45:12 AM
While the guidelines appear to be in place based on your quoted links, I'm not sure they are being adhered to, certainly if the SMF staff evaluates the mods.

I would suggest that perhaps a reverse look at the mods that generate the most support issues be taken.  As in Ajax Chat, are the support issues generated due to a non-compliant requirement in the mod submittal criteria?  If not, then are the support issues generated due to some unforseen code problems which should be addressed as a NEW submittal requirement.  This is like reverse engineering the problem, find the solution, and post the prevention as a part of the mod submittal criteria.

Some of it is pretty basic like not submitting mods unless they are documented with simple things like "what it does", "how it does it", and "how to configure/modify the new features".  Most posted mods fail this area quite often.  Why?  I think the answer is simple, most mod writers do a great job at writing the code but some fall short in documenting the mod.  Mostly, due to the subconscious fact that they understand the mod and don't remember that they wrote it but the user is clueless as to the mod's functionality.

I always assume when dealing with clients that they speak a different language, therefore I go the extra mile to try and explain things as if I was clueless too.  Sounds condescending but it leaves little opportunity for misunderstandings or unforseens.  Even so, I still find an occasion or two where even my methods fail.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 06, 2009, 09:41:25 AM
Glad you got it sorted johncccccc. enjoy the mod
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 06, 2009, 10:02:19 AM
@ bigloutx

Your concerns would be better expressed here in the comments and suggestions topic http://docs.simplemachines.org/index.php#c1

Glad you got the Mod going, I hope you and your members enjoy.
Title: Re: AjaxChat Integration
Post by: Informatics on April 06, 2009, 09:51:09 PM
Hi every1, nice to meet all of you here :)

Btw, i just install SMF 2.0 RC1, using default theme.

I have tese mods until now:

Quote
1.Global Headers Footers                         2.0                                               

                     
2.Advanced Reputation System                         1.7.4                                               
                                                                           
                     
3.Advanced Reputation System                         1.7.3                     
                                                 
                     
4.AjaxChat Integration                         3.0                                               
                                                                           
                     
5.Ad Managment                         2.3.4                     
                                                 
                         

I got errors like:

Quote
8: Undefined index:  chatPopUp                                                                                                                                                                                     File: /home2/abcd/MYSITE/Themes/default/GenericList.template.php (body_above sub template - eval?)
                               Line: 268

8: Undefined index:  chatPopUp                                                                                                                                                                                     File: /home2/abcd/MYSITE/Themes/default/BoardIndex.template.php (body_above sub template - eval?)
                               Line: 268

8: Undefined index:  chatPopUp                                                                                                                                                                                     File: /home2/abcd/MYSITE/Themes/default/Packages.template.php (body_above sub template - eval?)
                               Line: 268                           



What's on my mind is, each time i open a page, it will generate a unique error...

Its just different page or file, but with same errors...

Thanx.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 07, 2009, 01:02:45 AM
@ cyclon

Enable the PopUp Feature and see if it goes away, go to...

Admin/Configuration/Modifications/Chat/

and check "Chat in popup page?"
Title: Re: AjaxChat Integration
Post by: Sabbir on April 07, 2009, 12:00:47 PM
Are there plans to have voice support? We really need this for some online classes where an instructor is giving a lecture.. It would be greatly appreciated.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 07, 2009, 12:11:13 PM
Quote from: Sabbir on April 07, 2009, 12:00:47 PM
Are there plans to have voice support? We really need this for some online classes where an instructor is giving a lecture.. It would be greatly appreciated.

That has been discussed @ Sourceforge and from what the developers say, probably not :(
Title: Re: AjaxChat Integration
Post by: jase7 on April 07, 2009, 12:14:59 PM
If you get a 500 Connection error you might have to set your file permissions as well. There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" are set @ 755 and all "Files" are set @ 666.
You might have to change the index.php to 755.  

Ok, I have installed this mod using 1.1.8, but am still getting the 500 Connection error. I have changed file permissions as above but no luck?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 07, 2009, 12:19:41 PM
@ jase7

Try this, it seemed to work for bigloutx

http://www.simplemachines.org/community/index.php?topic=257973.msg2005222#msg2005222
Title: Re: AjaxChat Integration
Post by: jase7 on April 07, 2009, 12:54:44 PM
All sorted now.

I didn't realise that you had to change the index.php file to 755 in both the chat and shoutbox files. I was only changing the main index.php file.

Doh.....
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 07, 2009, 01:07:02 PM
Glad you go it sorted :D
Title: Re: AjaxChat Integration
Post by: jase7 on April 07, 2009, 01:11:08 PM
Ok, now I have it running.

What are the best settings i.e:-

1) I want guests to view the shout box, but not able to amend/delete/add to it

(EDIT: NO GUESTS CAN'T VIEW IT AT ALL REQUIRED)

2) I want members to view shout box  and then when logged in can add to it (but not amend or delete posts)
3) Only me ad administrator can amend/delete posts in the shout box

Do I need the chat intergated with the soundbox? - bit confussed

Some settings I have tried, when a member logs in, it takes him straight to the chat box and not the forum?

Sorry again, just trying to get it correct.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 07, 2009, 01:22:10 PM
Quote from: jase7 on April 07, 2009, 01:11:08 PM
Ok, now I have it running.

What are the best settings i.e:-

1) I want guests to view the shout box, but not able to amend/delete/add to it

(EDIT: NO GUESTS CAN'T VIEW IT AT ALL REQUIRED)

2) I want members to view shout box  and then when logged in can add to it (but not amend or delete posts)
3) Only me ad administrator can amend/delete posts in the shout box

All of the feature above you can set in your permissions, you can set each member group including guests and allow them access to shoutbox and or chat room.

Nobody (including Admin) can amend posts.

By default members can delete their own posts, Admin and Moderators can delete any posts.

(There is a bug though if you allow members to post events in your calendar it allows them to delete any post in the chat) I guess it considers them to have some Moderators rights. A fix for it can be found HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1979606#msg1979606)

Regarding the redirect to the chatrrom on login, it does that sometimes, not all the time, should be fixed in next release.
Title: Re: AjaxChat Integration
Post by: elgrand on April 07, 2009, 04:59:11 PM
hi i am trying to install on smf 2.0rc1
i am getting the error during install
./Themes/default/index.template.php Test failed

Find [Select]
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;
Replace [Select]
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;
cant see what is wrong apart for the added bit of txt ($modSettings;)
Title: Re: AjaxChat Integration
Post by: dharma77 on April 07, 2009, 07:00:56 PM
Hi, I install this mod, but i have some problems, first, the cookies the shoutbox show me a conexion error 500 or 0 if for example if i access to my forum from www.myforum.com and then i access from myforum.com, the shoutbox show me that error, but the chat not show that error only the shoutbox there are some config to evite this problem.

other cuestion, my default language is set to ES but the chat or shoutbox show the language depend the browser configuration not respet the file configuration how i can solve this problem ?

Thanks for the help ?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 08, 2009, 12:45:29 AM
@ elgrand  attatch your index.template.php file please
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 08, 2009, 12:49:41 AM
@ dharma77

See the FAQ's HERE  (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) and follow the instructions regarding your connection error.

See if that helps.
Title: Re: AjaxChat Integration
Post by: dharma77 on April 08, 2009, 01:03:35 AM
Quote from: mrtrc266 on April 08, 2009, 12:49:41 AM
@ dharma77

See the FAQ's HERE  (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) and follow the instructions regarding your connection error.

See if that helps.

Thanks for respond, I will try to see what happend, sorry my second cuestion, about the custom language you know how I can change for the chat no set the language browser and use only the language from the config file ?, thanks for your help, and sorry for my english, but is not my first language.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 08, 2009, 01:29:19 AM
@ dharma77

To remove the available languages from the drop down list open the file below and find this code, then remove all the languages you don't want to appear.

open yourforum/chat/lib/config.php and find...
// Available languages:
$config['langAvailable'] = array('ar','bg','bp','ca','cz','de','el','en','es','fi','fr','he','hr','in','it','kr','ja','nl','no','pl','ro','ru','sk','sl','sr','sv','tr','uk','zh','zh-tw');


EXAMPLE: If your just want es to appear replace with...
// Available languages:
$config['langAvailable'] = array('es');


To set the default language open yourforum/chat/lib/config.php and find...
// Default language:
$config['langDefault'] = 'en';


Replace with what you want your default language to be
EXAMPLE...
// Default language:
$config['langDefault'] = 'es';

Title: Re: AjaxChat Integration
Post by: elgrand on April 08, 2009, 08:01:49 AM
index template added
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 08, 2009, 10:34:35 AM
Quote from: elgrand on April 08, 2009, 08:01:49 AM
index template added

Here you go elgrand, proceed with the install and then upload this index.template.
Title: Re: AjaxChat Integration
Post by: elgrand on April 08, 2009, 04:14:13 PM
Thanks for that mrtrc266  you are a top bloke
is it install the mod then upload the revised index file
many thank
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 08, 2009, 04:50:06 PM
Quote from: elgrand on April 08, 2009, 04:14:13 PM
Thanks for that mrtrc266  you are a top bloke
is it install the mod then upload the revised index file
many thank

No problem, enjoy the chat ;)
Title: Re: AjaxChat Integration
Post by: [unplugged] on April 08, 2009, 07:17:46 PM
Any word on the server script requirements?
Title: Re: AjaxChat Integration
Post by: daveaite on April 08, 2009, 10:45:37 PM
I'm getting a

"XML Parsing Error: not well-formed
Location: http://buypoe.com/chat/index.php
Line Number 14, Column 71:

attached are my parsed theme files. please help!!!! asap

-daveaite

(a pop up does come up for chat so it's almost functional)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 08, 2009, 10:55:10 PM
@ daveaite 

What Version of SMF do you have?

What Theme are you using?
Nevermind I see it's the same theme I'm using :D
Title: Re: AjaxChat Integration
Post by: daveaite on April 08, 2009, 11:01:08 PM
Yep :) I tried making an account on yours to see how the chat was working, but it requires permisssion. lol

Anyways, (on a side note) you should add text below each image on the main menu like mine so people know what each menu button it is. It's a simple graphic fix, but very effective  :)


-Also, I'm having that same signature displacement problem like you where the signature goes to the top right of each post...:/  Must be a theme issue.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 08, 2009, 11:48:24 PM
No text below the pics for me, that's the purpose (the surprise element) after a cpl times the users know that the pics are, just like the theme was designed to do as long as the pics are kinda representative of what the action is.

What browser (and screen resolution) are your using regarding the signature issue cuz I don't see it in FF or IE on my laptop. I did at one time but not anymore ???


It seem that you have done all the edits and the only thing I can see wrong is this part of the code in your index.template.php

(undo the edit you did)

Instead of find...
// Show the menu here, according to the menu sub template.
template_menu();


Find this instead.....
<div id="ustsol">';
And add after....

//shoutBox
if (!empty($modSettings['enableShoutBox'])){
if (allowedTo('shout_access')){
// We'll have to use the cookie to remember the shoutBox header...
if ($context['user']['is_guest'])
$options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);

echo '
<script language="JavaScript" type="text/javascript">
var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

function ajax_shoutBox_collapse(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>';

if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
</div>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
', getShoutBoxContent() ,'
</div>
</div>';
}
}
}
Title: Re: AjaxChat Integration
Post by: daveaite on April 08, 2009, 11:59:03 PM
Thanks, that did fix the shoutbox issue I was having. Still the same issue though with the chat. Maybe a permissions issue?

-Edit

Ok so i did a re-install, deleting the database entries before hand. then plugging in my edits

-same error...i thought it could be a database error.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 09, 2009, 12:14:22 AM
Open yourforum/chat/lib/config.php

Find
// The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null):
$config['contentType'] = null;


Replace with
// The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null):
$config['contentType'] = 'text/html';
Title: Re: AjaxChat Integration
Post by: daveaite on April 09, 2009, 12:22:43 AM
whoaaa.! it Works! I just need to figure out why chat doesn't work. Typing something into it doesn't imput anything. :) :)


Thanks a ton mate :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 09, 2009, 12:27:02 AM
No problem, try setting the file permissions laid out here

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration
Post by: donatas on April 09, 2009, 06:48:09 AM
i cba to look through 60 pages.
I was wandering how to add the shoutbox to show on index page on custom theme, not default theme

as well only the admin can see the shoutbox lol
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 09, 2009, 10:49:49 AM
@ donatas

Look at the FAQ's HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: muris on April 09, 2009, 11:19:07 AM
Terribly sorry about this perhaps simple question;

where are these folders located? I can't seem to see then....

QuoteIf you get a 500 Connection error you might have to set your file permissions as well. There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" are set @ 755 and all "Files" are set @ 666.
You might have to change the index.php to 755

Thanks in advance,

muris
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 09, 2009, 11:36:39 AM
Quote from: muris on April 09, 2009, 11:19:07 AM
Terribly sorry about this perhaps simple question;

where are these folders located? I can't seem to see then....
Thanks in advance,

muris

In the same place that your forum is at, it should look something like this in your cPanel file manager or FTP file manager (whichever you use)

public_html/chat/ & public_html/shoutbox/

or

httdocs/chat/ & httdocs/shoutbox
Title: Re: AjaxChat Integration
Post by: jase7 on April 09, 2009, 11:44:48 AM
I am I correct in thinking that the chat boards history disappears over night, or when you log off?

I am sure when I installed it it kept the history, now a few days later it doesn't?

Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 09, 2009, 12:03:12 PM
@ jase7

open yourforum/chat/lib/config.php and you will see a plethora of settings that can be customized to your preferences.

The one your looking for is....
// Max time difference in hours for messages to display on each request:

Then you can also set how many messages you want to be retrieved here...
// Max number of messages to display on each request:

Hope that helps.
Title: Re: AjaxChat Integration
Post by: Danpotter on April 09, 2009, 12:09:39 PM
some one pls provide me in URBAN theme
Title: Re: AjaxChat Integration
Post by: muris on April 09, 2009, 12:15:47 PM
Quote from: mrtrc266 on April 09, 2009, 11:36:39 AM
Quote from: muris on April 09, 2009, 11:19:07 AM
Terribly sorry about this perhaps simple question;

where are these folders located? I can't seem to see then....
Thanks in advance,

muris

In the same place that your forum is at, it should look something like this in your cPanel file manager or FTP file manager (whichever you use)

public_html/chat/ & public_html/shoutbox/

or

httdocs/chat/ & httdocs/shoutbox

Bloody hell..... I tried refresh and didn't see it, and only now it worked....

Thanks for the help though!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 09, 2009, 01:18:27 PM
Glad you got it sorted muris :)
Title: Re: AjaxChat Integration
Post by: daveaite on April 09, 2009, 02:39:53 PM
Ok! We fixed the problem.

-If anyone has a problem where no text appears in your chatrooms when typing in text, it may be affected by the tinyurls mod conflicting Ajax Chat Integration

-Simply, add go to the filters php file of tiny url's and make a quick fix.

-Also, one of my admins has figured out a way to create a script that makes the logs of the chartrooms post into a board at 10:30pm every night. :) It's pretty cool for keeping records and adding more information to your site.

Here's the first post of chat logs : http://buypoe.com/general-discussion/chat-logs/msg4317/?topicseen

Thanks for the help. Hope this helps anyone.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 09, 2009, 02:50:27 PM
Glad you got it sorted...Looks good.

BTW you pics are different sized which causes a gap when the menu buttons slide over, some are at 152x70 and some are at 162x70. If you make them all the same size you won't have that gap.

If you change them all to 152 also be sure to change the settings in your imagemenu.js files and stlye.css file.

Have fun with the chat ;)
Title: Re: AjaxChat Integration
Post by: Mraza on April 09, 2009, 07:13:59 PM
hello hunter .... i have posted before few months in your topic when i was working with older version. now i have installed a new version with smf 1.1.8 and its working just fine. now in fact i was wondering 4 things which i describe below:

1. if there is any way that i can remove the channels in chat which it create by itself on board names. and

2. is it possible if somebody click on chat button it pop-up in new windows. and

3.can i change chat name AJAX CHAT to my forum name?

thanks for any help
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 09, 2009, 07:20:18 PM
@ mraza

Look at the FAQ's HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: Informatics on April 10, 2009, 09:53:30 AM
Quote from: mrtrc266 on April 07, 2009, 01:02:45 AM
@ cyclon

Enable the PopUp Feature and see if it goes away, go to...

Admin/Configuration/Modifications/Chat/

and check "Chat in popup page?"

Done! I got no error until now ...

Thanx for tips :)
Title: Re: AjaxChat Integration
Post by: b0dyr0ck2006 on April 10, 2009, 11:01:34 AM
I getting this error. Was working OK before although I kept getting a connection error. Now nothing.
Title: Re: AjaxChat Integration
Post by: jase7 on April 10, 2009, 01:31:36 PM
Quote from: mrtrc266 on April 09, 2009, 12:03:12 PM
@ jase7

open yourforum/chat/lib/config.php and you will see a plethora of settings that can be customized to your preferences.

The one your looking for is....
// Max time difference in hours for messages to display on each request:

Then you can also set how many messages you want to be retrieved here...
// Max number of messages to display on each request:

Hope that helps.

Many thanks for that...but sorry not really sure what I am doing  :-[

I can find the file on my FTP site, then what do I do?  :-\

Sorry but I don't understand your post.....sorry  :-[
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 11, 2009, 12:47:35 AM
Quote from: b0dyr0ck2006 on April 10, 2009, 11:01:34 AM
I getting this error. Was working OK before although I kept getting a connection error. Now nothing.

Follow the instructions on this post, that should fix you problem...
http://www.simplemachines.org/community/index.php?topic=257973.msg2009010#msg2009010 (http://www.simplemachines.org/community/index.php?topic=257973.msg2009010#msg2009010)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 11, 2009, 12:54:00 AM
Quote from: jase7 on April 10, 2009, 01:31:36 PM
Quote from: mrtrc266 on April 09, 2009, 12:03:12 PM
@ jase7

open yourforum/chat/lib/config.php and you will see a plethora of settings that can be customized to your preferences.

The one your looking for is....
// Max time difference in hours for messages to display on each request:

Then you can also set how many messages you want to be retrieved here...
// Max number of messages to display on each request:

Hope that helps.

Many thanks for that...but sorry not really sure what I am doing  :-[

I can find the file on my FTP site, then what do I do?  :-\

Sorry but I don't understand your post.....sorry  :-[

Simply download that file via your FTP and open it with a text editor like Notepad++ (http://superb-west.dl.sourceforge.net/sourceforge/notepad-plus/npp.5.3.1.Installer.exe).

Make the edits that I posted, save your changes and then upload it back to your server via FTP.

Of courese make make a backup first.
Title: Re: AjaxChat Integration
Post by: JornB on April 11, 2009, 09:20:55 AM
I have a minor question on how to add more sounds to the chat.

I've downloaded the sounds to the sounds folder

I've edited config.js with the name of the sounds, just after sound_6: 'sound_6.mp3':
// Defines the available sounds loaded on chat start:
soundFiles: {
sound_1: 'sound_1.mp3',
sound_2: 'sound_2.mp3',
sound_3: 'sound_3.mp3',
sound_4: 'sound_4.mp3',
sound_5: 'sound_5.mp3',
sound_6: 'sound_6.mp3'


Can't seem to get the sounds files to load... them don't show in the drop-down list under settings. What have I missed? Any help would be appreciated!

note: the sounds are mp3 and follows the 8.3 naming rule.

-~ Edit: Awesome mod by the way! ~-
Title: Re: AjaxChat Integration
Post by: tfs on April 11, 2009, 01:43:42 PM
Activating Shoutbox upon login...

Sometimes when I login to the forum, the shoutbox immediately populates with content, and other times it doesn't.  When it doesn't populate, clicking in the field where you type your text immediately causes the shoutbox to populate with all of the entries that people have been making.  Clicking elsewhere on the shoutbox does not.

When the shoutbox is in an unpopulated state, you don't see anything that people are typing.  Once it becomes populated it will work fine as you navigate the forum.  I have family members who have logged in and I type hello to them, but there's no response.  I call them and find out that they don't see the content in the shoutbox, but as soon as they click into that field it comes alive.

So what I have been tempted to do is to remove the "AJAX Chat © blueimp.net | Integrated with SMF" line and replace it with something along the lines of "Click on this field to activate the ShoutBox", though I hesitate to remove the author's blurb.

Any suggestions?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 12, 2009, 12:50:51 AM
@ JornB I'm not sure exaclty how to add more sounds but I will pla with it over the next few days and see what I can find. Will post back with results, if any.

Yes you are right, it is a great Mod ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 12, 2009, 02:06:15 AM
Quote from: mrtrc266 on April 09, 2009, 12:03:12 PM

open yourforum/chat/lib/config.php and you will see a plethora of settings that can be customized to your preferences.

The one your looking for is....
// Max time difference in hours for messages to display on each request:

Then you can also set how many messages you want to be retrieved here...
// Max number of messages to display on each request:

Hope that helps.

@ tfs

To have you shout/chat remain visible for a longer period of time please follow the post in quotes above.

You are correct, the shoutbox/chat sometims will not refresh until you put you cusror in the input field.

Please DO NOT remove the copyright and/or credits portion of the AJAX Chat and/or AJAX Chat Intergration. Instead you can add a Custom Message to notify your members of what to do by just adding a some text here...

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

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

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

Title: Re: AjaxChat Integration
Post by: 4T3IG0 on April 12, 2009, 02:20:20 AM
Hi, fantastic Mod.

Just one problem, when I Apply Mod nothing happen. Any idea?


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs3.subirimagenes.com%2Fprivadas%2Fprevio%2Fthump_426914ajaxchatintegration3.jpg&hash=9e63a6363f09ca36f5d2abad2f76f51803368369)

SMF 1.1.8

Permissions: .  Only the standard files are writable.

Title: Re: AjaxChat Integration
Post by: JornB on April 12, 2009, 05:35:41 AM
Quote from: 4T3IG0 on April 12, 2009, 02:20:20 AM
Hi, fantastic Mod.

Just one problem, when I Apply Mod nothing happen. Any idea?


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs3.subirimagenes.com%2Fprivadas%2Fprevio%2Fthump_426914ajaxchatintegration3.jpg&hash=9e63a6363f09ca36f5d2abad2f76f51803368369)

SMF 1.1.8

Permissions: .  Only the standard files are writable.
I've noticed that installing it manually is the best solution. Gives you a better understanding on how the mod function and also gives you a better chance in modifying it as well.
Title: Re: AjaxChat Integration
Post by: donjoe on April 12, 2009, 07:36:01 AM
Dude, I just used [Uninstall] on the integration mod, it didn't give any errors, but now my forum is broken - it doesn't display any content below the header where my name and the welcome message are.

I've rewritten all the .php files from \Source and \Themes and I've restored the database from before the [Uninstall], but still nothing.

WTF?
Title: Re: AjaxChat Integration
Post by: JornB on April 12, 2009, 08:33:12 AM
Quote from: mrtrc266 on April 12, 2009, 12:50:51 AM
@ JornB I'm not sure exaclty how to add more sounds but I will pla with it over the next few days and see what I can find. Will post back with results, if any.

Yes you are right, it is a great Mod ;)

Seems I got it to work! Guess I just needed to "un-cache" the mod (turn firefox off and then start it again) since I got the sounds to work this morning.

If anyone is wondering how I got it to work it's rather simple:

1. Edit config.js (found in the chat/js folder) with the name of the new sounds:

Look for:
// Defines the available sounds loaded on chat start:
   soundFiles: {
      sound_1: 'sound_1.mp3',
      sound_2: 'sound_2.mp3',
      sound_3: 'sound_3.mp3',
      sound_4: 'sound_4.mp3',
      sound_5: 'sound_5.mp3',
      sound_6: 'sound_6.mp3'


Add the name of the sounds you want to added with the following string: (sound_name): '(name_of_sound).mp3'
           example: diceroll: 'diceroll.mp3'

remember to add the , after each new sound you add except for the last one

example of adding the diceroll sound:
// Defines the available sounds loaded on chat start:
   soundFiles: {
      sound_1: 'sound_1.mp3',
      sound_2: 'sound_2.mp3',
      sound_3: 'sound_3.mp3',
      sound_4: 'sound_4.mp3',
      sound_5: 'sound_5.mp3',
      sound_6: 'sound_6.mp3',
      diceroll: 'diceroll.mp3'


2. Now upload the actual sound to the chat/sounds folder.

You're good to go (found out that you need to "un-cache" the mod and have it reload to get the sounds to work).
Title: Re: AjaxChat Integration
Post by: donjoe on April 12, 2009, 08:57:18 AM
Quote from: donjoe on April 12, 2009, 07:36:01 AMDude, I just used [Uninstall] on the integration mod, it didn't give any errors, but now my forum is broken - it doesn't display any content below the header where my name and the welcome message are.
Oops, that was a theme problem: the uninstaller doesn't modify my custom themes, only the default. The forum's main theme was non-default and I had modified its files manually when integrating AjaxChat. Now with the chat gone and that theme still active for most users, the forum wasn't redering properly.

Fixed manually.
Title: Re: AjaxChat Integration
Post by: Darkness7148 on April 12, 2009, 02:27:28 PM
I tried installing this but I got this error in the package manager:

Database Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8
File: forum/Packages/temp/Tables_1.1.X.php
Line: 20


So I removed all the 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' references in Tables_1.1.X.php but when I went to the chat page, it gave me a page full of this errors:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in  forum/chat/lib/class/CustomAJAXChat.php on line 156

What's causing it?
Title: Re: AjaxChat Integration
Post by: Walgermo on April 13, 2009, 07:59:27 AM
Hi

i have a problem, only admin can access the chat!

when members or guest try to login to the chat  they get the message: "You can't access the chat."

some options i overseen or something else casuing this error?

Please help  :)

SMF 2.0rc1
AjaxC 3.0

Edit: when the language is set to norwegian it says: "Ugyldig brukernavn." --> "Invalid username." but the username is correct..
Title: Re: AjaxChat Integration
Post by: JornB on April 13, 2009, 09:47:00 AM
Quote from: Walgermo on April 13, 2009, 07:59:27 AM
Hi

i have a problem, only admin can access the chat!

when members or guest try to login to the chat  they get the message: "You can't access the chat."

some options i overseen or something else casuing this error?

Please help  :)

SMF 2.0rc1
AjaxC 3.0

Edit: when the language is set to norwegian it says: "Ugyldig brukernavn." --> "Invalid username." but the username is correct..

Have you set the permission to the chat for the different membergroups?
- Administration/ under Members choose Permission, click modify for a membergroup and make sure you've marked "Access to chat" for membergroups that are allowed to use it.
Title: Re: AjaxChat Integration
Post by: ward_k on April 13, 2009, 10:22:09 AM
hii , first thanks alot for the ajax chat its agreat work .
ihave installed it and its work perfectly unless the users who have "arabic names " dont appear on the chat room , they can right but it like writing from no name all the arabic users writing without aname
can u slove this ?

ahh another thing , when i instal the E ARCADE the chat stop to work and i have errors . delete it and every thing is fine , what i should do ?
Title: Re: AjaxChat Integration
Post by: pongsak on April 13, 2009, 02:06:52 PM
Hello,
I've used 0.82 ajax chat and smf 1.1.4
It works great except one thing, sound.

I integrated into smf in shout mode.
If i use chat mode sound ok.
But if i use shout mode , it's no sound.

After modify shout.html in chat/lib/template dir.
I found Chrome & IE have sound
but not FF 3.0.8

Has this problem an answer?

Thank you
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 13, 2009, 02:53:30 PM
Quote from: ward_k on April 13, 2009, 10:22:09 AM
hii , first thanks alot for the ajax chat its agreat work .
ihave installed it and its work perfectly unless the users who have "arabic names " dont appear on the chat room , they can right but it like writing from no name all the arabic users writing without aname
can u slove this ?

ahh another thing , when i instal the E ARCADE the chat stop to work and i have errors . delete it and every thing is fine , what i should do ?

Will to look into the no names for your Arabic users.

Uninstall both mods, then reinstall the arcade first and then this mod.
Title: Re: AjaxChat Integration
Post by: Walgermo on April 13, 2009, 03:12:48 PM
Quote from: JornB on April 13, 2009, 09:47:00 AM
Quote from: Walgermo on April 13, 2009, 07:59:27 AM
Hi

i have a problem, only admin can access the chat!

when members or guest try to login to the chat  they get the message: "You can't access the chat."

some options i overseen or something else casuing this error?

Please help  :)

SMF 2.0rc1
AjaxC 3.0

Edit: when the language is set to norwegian it says: "Ugyldig brukernavn." --> "Invalid username." but the username is correct..

Have you set the permission to the chat for the different membergroups?
- Administration/ under Members choose Permission, click modify for a membergroup and make sure you've marked "Access to chat" for membergroups that are allowed to use it.

Yes, i tried that right after i wrote her.. works fine now ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 13, 2009, 03:34:42 PM
@ pongsak (http://www.simplemachines.org/community/index.php?action=profile;u=92626)  yes that is a known issue with FF, the sound will come on in a few minutes though
Title: Re: AjaxChat Integration
Post by: joshlitt on April 13, 2009, 04:35:55 PM
I have intstalled this module, changed my Modifications.english.php and now getting the following error.

Anybody got a fix for this, I saw Permissions, but every group has rights.  Is it rights on the server?

(15:28:20) ChatBot: Error: Connection status: 404
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 13, 2009, 05:15:39 PM
Quote from: joshlitt on April 13, 2009, 04:35:55 PM
I have intstalled this module, changed my Modifications.english.php and now getting the following error.

Anybody got a fix for this, I saw Permissions, but every group has rights.  Is it rights on the server?

(15:28:20) ChatBot: Error: Connection status: 404

Did you have it workin before?
What version of SMF do you have?
Do you have Pretty URLs installed?
Title: Re: AjaxChat Integration
Post by: joshlitt on April 13, 2009, 05:22:52 PM
Brand new install, never had it working.
1.1.8 version of SMF using drupal Intergration (version 6.4)
Not using Friendly URL's

Quote from: mrtrc266 on April 13, 2009, 05:15:39 PM
Quote from: joshlitt on April 13, 2009, 04:35:55 PM
I have intstalled this module, changed my Modifications.english.php and now getting the following error.

Anybody got a fix for this, I saw Permissions, but every group has rights.  Is it rights on the server?

(15:28:20) ChatBot: Error: Connection status: 404

Did you have it workin before?
What version of SMF do you have?
Do you have Pretty URLs installed?

Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 13, 2009, 05:31:23 PM
Ahhh drupal intergration might be causing the prob, think you might have to add a little something to your .htaccess file.

Check out the posts here
https://sourceforge.net/forum/forum.php?thread_id=2811928&forum_id=774132 (https://sourceforge.net/forum/forum.php?thread_id=2811928&forum_id=774132)

Also here is another one in German first goto http://translate.google.com/ (http://translate.google.com/)

Select German to English and put this in the " Translate text or webpage" input box http://www.net4seven.de/phpbb3/forum/viewtopic.php?f=10&t=276 (http://www.net4seven.de/phpbb3/forum/viewtopic.php?f=10&t=276)
Title: Re: AjaxChat Integration
Post by: joshlitt on April 13, 2009, 05:35:31 PM
Let me pour over these and I'll let you know what I find.

Thanks!
Title: Re: AjaxChat Integration
Post by: joshlitt on April 13, 2009, 05:43:07 PM
Actually that was phpBB, but I looked at my .htaccess file and it's good:

# Set the default handler.
DirectoryIndex index.php

I'll have to try and do the German from another machine as it was flagging as Malware.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 13, 2009, 05:53:23 PM
Yeah that was for phpBB but it works the same way.

Try adding this to your .htaccess file as the shoutbox and chat tempaltes are .html. Not sure if that will work but won't hurt to try.

DirectoryIndex index.php index.html index.htm

BTW are you using a custom theme?
Title: Re: AjaxChat Integration
Post by: pongsak on April 13, 2009, 08:06:29 PM
Quote from: mrtrc266 on April 13, 2009, 03:34:42 PM
@ pongsak (http://www.simplemachines.org/community/index.php?action=profile;u=92626)  yes that is a known issue with FF, the sound will come on in a few minutes though

The problem is why in the same FF,
Chat mode has sound
but not in shout mode.

If the FF has this issue it should no sound
in both mode, may be something wrong in shoutbox.html code?

Would U mind to see my version?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 13, 2009, 08:32:36 PM
Do you get a Flash IO error?
Title: Re: AjaxChat Integration
Post by: pongsak on April 13, 2009, 09:11:50 PM
no anything wrong, just no sound.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 13, 2009, 09:26:53 PM
Im not sure if you meant that you edited the shoutbox.html file
QuoteAfter modify shout.html in chat/lib/template dir.
I found Chrome & IE have sound
but not FF 3.0.8

If you did just upload the original shoutbox.html file and see if the error goes away.
Title: Re: AjaxChat Integration
Post by: pongsak on April 13, 2009, 09:40:23 PM
The origin shoutbox.html version
has no sound, then i seach the answer and
found no right answer for me.

Then I think if the chat version have sound
why don't look the source code , so i modified it.

็However i do as your recommend and outcome still the same.

Note: the origin version has sound in chat mode in IE and chrome except FF
Title: Re: AjaxChat Integration
Post by: cko on April 13, 2009, 10:14:49 PM
I dont know what I ave to do

I tried to install 2 times , with (SMF parser) and I couldn´t

I tried to install manually and :  (any idea)


function getShoutBoxContent(){ global $scripturl, $modSettings; // Get the URL to the chat directory: if (!defined('AJAX_CHAT_URL')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_URL', str_replace("index.php", "shoutBox/", $scripturl)); else define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl)); } // Get the real path to the chat directory: if (!defined('AJAX_CHAT_PATH')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/shoutBox/'); else define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/chat/'); } // Validate the path to the chat: if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php')){ // Include Class libraries: require_once(AJAX_CHAT_PATH.'lib/classes.php'); // Initialize the shoutbox: $ajaxChat = new CustomAJAXChatShoutBox(); // Parse and return the shoutbox template content: return $ajaxChat->getShoutBoxContent(); } return null; } function chatOnlineUsers(){ $userIDs = array(); $result = db_query("SELECT userID FROM ajax_chat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE) ", __FILE__, __LINE__); while($row = mysql_fetch_assoc($result)) { array_push($userIDs, $row['userID']); } mysql_free_result($result); return array_unique($userIDs); } //Begin AjaxChat Integration $txt['chat'] = 'Chat'; $txt['shoutBox'] = 'ShoutBox'; $txt['chat_aUser'] = ' user is in chat'; $txt['chat_users'] = ' users are in chat:'; $txt['chat_no_user'] = 'No user is in chat.'; $txt['enableShoutBox'] = 'Enable the ShoutBox?'; $txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?'; $txt['enableChatBelowPM'] = 'Show online users below total logged in time section?'; $txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:'; $txt['chatPopUp'] = 'Chat in popup page?'; $txt['miniChat'] = 'Integrate shout box and chat room?'; $txt['permissionname_chat_access'] = 'Access to chat'; $txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.'; $txt['permissionname_shout_access'] = 'Use shoutBox'; $txt['permissionhelp_shout_access'] = 'Give access to use the shoutBox'; $txt['permissiongroup_chat'] = 'Chat'; //End AjaxChat Integration

Fatal error: Call to undefined function chatonlineusers() in /home/elnoc/public_html/foro/Sources/BoardIndex.php on line 347

Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 13, 2009, 10:31:14 PM
WHOA! What the heck was that? Please explain the error a little better.

What version of SMF do you have?
Are you using a custom theme?
If so what them is it?
Did it install on the default theme?
Whats the URL to your site?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 13, 2009, 10:34:35 PM
Quote from: pongsak on April 13, 2009, 09:40:23 PM
The origin shoutbox.html version
has no sound, then i seach the answer and
found no right answer for me.

Then I think if the chat version have sound
why don't look the source code , so i modified it.

็However i do as your recommend and outcome still the same.

Note: the origin version has sound in chat mode in IE and chrome except FF

Im not sure, but like I said it is a known issue for the sounds to fail in FF. As far as I know there is no quick fix for it. I think you will be fine as long as it works in the chat room. Most of my members find the sounds to be annoying anyway so it might be better that it doesn't work LOL
Title: Re: AjaxChat Integration
Post by: pongsak on April 13, 2009, 10:36:39 PM
Thanks, by the way i've send bug issue to ajax chat team already.
If i 've any progress , i'll post here again.
Title: Re: AjaxChat Integration
Post by: [unplugged] on April 13, 2009, 10:45:12 PM
@cko
It looks like that entire block of code has been put into a single wrapped line meaning, basically, all but the function name has been commented out.

@mrtrc266
Apparently, my host needs more info than that. Any reply from Hunter yet?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 13, 2009, 10:56:17 PM
Sorry Sun, no reply yet  :(  I feel a release coming out soon though :)  Hopefully!
Title: Re: AjaxChat Integration
Post by: cko on April 13, 2009, 11:01:11 PM
Hi, thanks for respond (sry for my english)

SMF 1.1.8
default theme
www.elnocturno.com/foro (not chat now)



Quote from: mrtrc266 on April 13, 2009, 10:31:14 PM
WHOA! What the heck was that? Please explain the error a little better.

What version of SMF do you have?
Are you using a custom theme?
If so what them is it?
Did it install on the default theme?
Whats the URL to your site?
Title: Re: AjaxChat Integration
Post by: cko on April 13, 2009, 11:11:23 PM
@SunKing

Any solution for this? really Im lost

Quote
@cko
It looks like that entire block of code has been put into a single wrapped line meaning, basically, all but the function name has been commented out.
Title: Re: AjaxChat Integration
Post by: [unplugged] on April 13, 2009, 11:19:15 PM
That block of code should look like this:

function getShoutBoxContent(){
global $scripturl, $modSettings;

// Get the URL to the chat directory:
if (!defined('AJAX_CHAT_URL')){
if (empty($modSettings['miniChat']))
define('AJAX_CHAT_URL', str_replace("index.php", "shoutBox/", $scripturl));
else
define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));
}
   
// Get the real path to the chat directory:
if (!defined('AJAX_CHAT_PATH')){
if (empty($modSettings['miniChat']))
define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/shoutBox/');
else
define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/chat/');
}
   
  // Validate the path to the chat:
  if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php')){
// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the shoutbox:
$ajaxChat = new CustomAJAXChatShoutBox();

// Parse and return the shoutbox template content:
return $ajaxChat->getShoutBoxContent(); 
  }
return null;
}

function chatOnlineUsers(){
global $smcFunc;

$userIDs = array();
$result = $smcFunc['db_query']('', '
SELECT userID
FROM ajax_chat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)' ,
  array()
);
while($row = $smcFunc['db_fetch_assoc']($result)) {
array_push($userIDs, $row['userID']);
}
$smcFunc['db_free_result']($result);
return array_unique($userIDs);
}


See how everything is nicely separated onto individual lines.  ;D I have seen "copy and paste" do that sometimes where it all goes onto 1 line. Copy the code above and give that a try.
Title: Re: AjaxChat Integration
Post by: cko on April 13, 2009, 11:57:19 PM
@SunKing

In which file do I have to add this ?


Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 12:04:37 AM
@ cko that edit is In the Sources/Load.php file

That edit should be at the end of the file

Also make sure that this ?> is at the very end of the file.
Title: Re: AjaxChat Integration
Post by: [unplugged] on April 14, 2009, 12:06:18 AM
In Load.php. Sorry for forgetting that part.

{Ignorar el flako narizon}  see......you're english isn't so bad. :P
Title: Re: AjaxChat Integration
Post by: cko on April 14, 2009, 12:41:46 AM
@SunKing
lol , jajajaja narizon <--- narigon

@ Sunking - mrtrc

I have a new problem


Table '******.ajax_chat_online' doesn't exist
Archivo: /home/*****/public_html/foro/Sources/Load.php
Línea: 2236

***** = db name
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 01:04:05 AM
Did you get any errors (failed tests) during the install?
Title: Re: AjaxChat Integration
Post by: cko on April 14, 2009, 01:12:13 AM
@mrtrc266

Im installing manually.

Also said :

Note: It appears that your database may need an update. The version of the files on your forum is version SMF 1.1.8, while your database is at version SMF 1.1.4. We recommend running the latest version of upgrade.php


I have tu put www.xxxxxxxxx.com/foro/upgrade.php  ? because I tried it and nothing happened
Title: Re: AjaxChat Integration
Post by: joshlitt on April 14, 2009, 08:53:13 AM
Ok, I added the two other entries to the htaccess file and no such luck.  When I go to the link mywebsite.com/forum/chat/index.php I can see my Drupal Page Not Found info, however if I browse to /public_html/forum/chat all the files are there including the index.php.  It's just like it's not recognizing that file in there.  That's even the case when you drill down into like src, flash and sounds on those index.html pages... but I was able to play the sounds (sound_1.mp3, 2, 3, 4...) from the directory so I know the files are there it's just not reading the index pages????

Ooops, theme is Garland (default), I believe it came with.

Quote from: mrtrc266 on April 13, 2009, 05:53:23 PM
Yeah that was for phpBB but it works the same way.

Try adding this to your .htaccess file as the shoutbox and chat tempaltes are .html. Not sure if that will work but won't hurt to try.

DirectoryIndex index.php index.html index.htm

BTW are you using a custom theme?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 12:07:48 PM
Here's another shot in the dark. Have you tried setting your file permissions in both the Chat and ShoutBox folders?

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Ok here is another fix from Jiveturkey (http://www.simplemachines.org/community/index.php?action=profile;u=43217) that was having the same problem as you, he was getting the 404 error and had a Joomla Intergration.

This was his problem http://www.simplemachines.org/community/index.php?topic=257973.msg1996992#msg1996992 (http://www.simplemachines.org/community/index.php?topic=257973.msg1996992#msg1996992)

This was his fix http://www.simplemachines.org/community/index.php?topic=257973.msg1998551#msg1998551 (http://www.simplemachines.org/community/index.php?topic=257973.msg1998551#msg1998551)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 03:31:59 PM
@ elgrand (http://www.simplemachines.org/community/index.php?action=profile;u=201614) use this one, I just tried it on my test site and it works fine.
Title: Re: AjaxChat Integration
Post by: elgrand on April 14, 2009, 03:46:01 PM
@mrtrc266 upload the index file still no change do i have to clear a cache?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 03:51:54 PM
Possible but I doubt it. It has to be something else cuz that file works fine.

Does your original file work?

You only got the install error on that one file?
Title: Re: AjaxChat Integration
Post by: elgrand on April 14, 2009, 04:01:28 PM
only the index i will try the original and let you know
Title: Re: AjaxChat Integration
Post by: elgrand on April 14, 2009, 04:14:50 PM
@mrtrc266 no still not working
the error is
500 Internal Server Error
The page cannot be displayed.

i have looked in the in the index .php file not alot there
Title: Re: AjaxChat Integration
Post by: elgrand on April 14, 2009, 04:20:58 PM
the index file attached
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 04:23:46 PM
Wrong file it's the yourforum/Themes/default/index.template.php
Title: Re: AjaxChat Integration
Post by: elgrand on April 14, 2009, 04:27:23 PM
@mrtrc266 what do you mean edit the Themes/default/index.template.php?

edit
when i click chat i get www.*****smf/chat/index.php
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 04:45:33 PM
Quote from: elgrand on April 07, 2009, 04:59:11 PM
hi i am trying to install on smf 2.0rc1
i am getting the error during install
./Themes/default/index.template.php Test failed
Find [Select]
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;
Replace [Select]
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;
cant see what is wrong apart for the added bit of txt ($modSettings;)
This was your orginal post so this is the file I asked you to upload so I could edit it. index.template.php

I edited it and it works fine. All you should have done was proceed with the install and then upload this file back to the directory that you got it from which is the yourforum/Themes/default/ folder

LOL I'm getting confused, what it the URL to your site.
Title: Re: AjaxChat Integration
Post by: elgrand on April 14, 2009, 05:05:12 PM
www.elgrand-oc.org.uk/smf
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 05:30:41 PM
Change your file permissions on the index.php in your chat and shoutbox folder to 755.
Title: Re: AjaxChat Integration
Post by: elgrand on April 14, 2009, 05:37:32 PM
@mrtrc266 YOU ARE A TRUE GOD Thanks all working
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 05:55:50 PM
Quote from: elgrand on April 14, 2009, 05:37:32 PM
@mrtrc266 YOU ARE A TRUE GOD Thanks all working

LOL, glad you got it sorted. Sorry about the confusion ;)
Title: Re: AjaxChat Integration
Post by: cko on April 14, 2009, 09:45:42 PM
Hi again :(

anyone know about this ?

Note: It appears that your database may need an update. The version of the files on your forum is version SMF 1.1.8, while your database is at version SMF 1.1.4. We recommend running the latest version of upgrade.php


Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 10:01:11 PM
Quote from: cko on April 14, 2009, 09:45:42 PM
Hi again :(

anyone know about this ?

Note: It appears that your database may need an update. The version of the files on your forum is version SMF 1.1.8, while your database is at version SMF 1.1.4. We recommend running the latest version of upgrade.php


Not sure about that one, try posting on the 1.x.x Support Board as it seem this is unrelated to the AJAX Chat Intergration Mod
http://www.simplemachines.org/community/index.php?board=9.0 (http://www.simplemachines.org/community/index.php?board=9.0)
Title: Re: AjaxChat Integration
Post by: cko on April 14, 2009, 10:19:30 PM
Ok.
Then .... about this ? jajajaja


Table '******.ajax_chat_online' doesn't exist
Archivo: /home/*****/public_html/foro/Sources/Load.php
Línea: 2236


***** = db name
Title: Re: AjaxChat Integration
Post by: Hardcase on April 14, 2009, 11:02:49 PM
Good mod but i have a problem, initially i installed the mod as stand alone, now i have installed it as the mod following the parser method for our custom theme, but i get an error from index.template.php when i try to run it with this file edited, the error comes back as syntax error, unexpected '<' the custom theme is "black-rain v.2" in that theme this line of code does not appear

</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


When i add that line in i get the above error and when i remove it i get another error.

Therefore the main thing i wanted was the stats at the footer of the page for those in chat and the nav button for number in chat, this does not happen without that line i assume as the rest of the mod appears ok and the chat room works as before.

I'm a n00b at php and scrutinising the code without actually knowing what i'm looking for is a little mind boggling!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 11:06:50 PM
Quote from: cko on April 14, 2009, 10:19:30 PM
Ok.
Then .... about this ? jajajaja


Table '******.ajax_chat_online' doesn't exist
Archivo: /home/*****/public_html/foro/Sources/Load.php
Línea: 2236


***** = db name

Probably the best thing to do is start from scratch...

Uninstall the AJAX Chat Intergration Mod

Goto phpMyAdmin and drop all the ajax chat tables

ajax_chat_bans
ajax_chat_invitations
ajax_chat_messages
ajax_chat_online
ajax_shout_bans
ajax_shout_messages
ajax_shout_online

Via your package manager reinstall the AJAX Chat Intergration Mod

See what happens.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 11:07:39 PM
@ Hardcase (http://www.simplemachines.org/community/index.php?action=profile;u=198900) what version of SMF do you have?
Title: Re: AjaxChat Integration
Post by: [unplugged] on April 14, 2009, 11:08:56 PM
@Hardcase

That error could be as simple as a missing echo' just before the < it is referring too.  :P
Title: Re: AjaxChat Integration
Post by: Hardcase on April 14, 2009, 11:13:40 PM
I have installed 1.1.8 and it maybe a missing echo to you but its "lost in space" to me  ;) :D

Oh and the logged in users do show up at the footer... my mistake but not on the nav link :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 14, 2009, 11:33:04 PM
hardcore

Attatch the following files

yourforum/Themes/BlackRainV2118/

BoardIndex.template.php
index.template.php
style.css
Title: Re: AjaxChat Integration
Post by: Hardcase on April 14, 2009, 11:47:09 PM
Attached as requested Sir :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 15, 2009, 12:08:50 AM
Here you go Hardcase everything looked ok except index.template, tested on 118 with BlackRain V2 Theme and seems to work ok.

The shoutbox will probably be white but you can mess with the /shoutBox/css/shoutbox.css file to get the colors you want
Title: Re: AjaxChat Integration
Post by: Hardcase on April 15, 2009, 12:13:36 AM
Thank you sir, very much appreciated :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 15, 2009, 12:17:24 AM
You're very welcome. You need to add one thing though so your button looks the same as all the others. I forgot to close this

Find
<span>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>

Replace with
<span>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</span></a>
Title: Re: AjaxChat Integration
Post by: Hardcase on April 15, 2009, 12:24:00 AM
I was coming back for that and you beat me too it... thanks  8)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 15, 2009, 12:26:36 AM
np  ;)
Title: Re: AjaxChat Integration
Post by: CerebralJam on April 15, 2009, 10:33:12 PM
Hi there, I have 2 RC1 and my theme is Anecdota...

I got this message and have no idea as I'm a real n00b what it means and what to do!

I have uninstalled in the meantime:

Warning: require(/home/cjsphp/public_html/singshare/SMF/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/cjsphp/public_html/singshare/SMF/chat/index.php on line 17

Fatal error: require() [function.require]: Failed opening required '/home/cjsphp/public_html/singshare/SMF/chat/lib/custom.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cjsphp/public_html/singshare/SMF/chat/index.php on line 17

It's probably telling me up there ^^^ exactly what to do but I'm afraid I am clueless, would you mind helping me?  You have a huge amount of pages here and whilst I did go back a few I have to apologize if this error has already occurred.

Many thanks in the meantime.
Title: Re: AjaxChat Integration
Post by: sammywantsya on April 17, 2009, 02:06:06 AM
XML Parsing Error: junk after document element

Location: http://global-referrals.netii.net/chat/index.php

Line Number 101, Column 1:<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
^



(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg7.imageshack.us%2Fimg7%2F68%2Fchaterror2c.jpg&hash=d5f1e49f2980e80b19a903f4d10f54791f9aa2e9) (http://img7.imageshack.us/my.php?image=chaterror2c.jpg)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg7.imageshack.us%2Fimg7%2Fchaterror2c.jpg%2F1%2Fw1280.png&hash=90b47b2945cf4ea722cced899a7c05966a340f31) (http://g.imageshack.us/img7/chaterror2c.jpg/1/)






i installed it successfully but this came up when i tried to hit chat

and the button for shout i cant see it can anyone walk me through the steps i need to fix this trial and error? thanks

the pics i hope you can fix it thank you


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg27.imageshack.us%2Fimg27%2F540%2Fchatkgd.jpg&hash=18f4d609e8542bb9b9c7b2a92923d23cd433bb85) (http://img27.imageshack.us/my.php?image=chatkgd.jpg)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg27.imageshack.us%2Fimg27%2Fchatkgd.jpg%2F1%2Fw1280.png&hash=3f502bfd0f88018c05ca1dc2f4f707716ec22274) (http://g.imageshack.us/img27/chatkgd.jpg/1/)
Title: Re: AjaxChat Integration
Post by: Mack450 on April 17, 2009, 08:34:11 AM
I cant seem to get this bad boy to show up....

Can someone do the edits in index.template.php for me? Thanks a ton



Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 17, 2009, 09:59:32 AM
@ sammywantsya

Please see this post.

http://www.simplemachines.org/community/index.php?topic=257973.msg2009010#msg2009010 (http://www.simplemachines.org/community/index.php?topic=257973.msg2009010#msg2009010)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 17, 2009, 10:00:39 AM
@ CerebralJam (http://www.simplemachines.org/community/index.php?action=profile;u=193654)  did you get any errors during the install?

Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 17, 2009, 10:12:48 AM
@ mack what's the link to your theme?
Title: Re: AjaxChat Integration
Post by: Mack450 on April 17, 2009, 10:22:13 AM
www.setonmafia.co.cc
Title: Re: AjaxChat Integration
Post by: sammywantsya on April 17, 2009, 02:15:05 PM
Quote from: mrtrc266 on April 17, 2009, 09:59:32 AM
@ sammywantsya

Please see this post.

http://www.simplemachines.org/community/index.php?topic=257973.msg2009010#msg2009010 (http://www.simplemachines.org/community/index.php?topic=257973.msg2009010#msg2009010)

thank you but it won't work
Title: Re: AjaxChat Integration
Post by: Hardcase on April 17, 2009, 03:19:54 PM
I have another annoying problem too, the program seems to run fine not a problem, i can have quite a few in chat and it runs nicely except i get this all the time:

(20:09:13) chatbot: Yogi logs into the Chat.
(20:09:20) chatbot: Yogi has been logged out (Timeout).
(20:09:20) chatbot: Yogi logs into the Chat.
(20:09:22) chatbot: Yogi has been logged out (Timeout).

Now this is a full member, its not just his account that it happens on, it happens on alot of others accounts too, but strangely not mine :)

The timeout is set to 15 minutes so its not that, but as you can see they logout and in within 2 seconds of each other so its sort of an out and in again.

Any ideas?
Title: Re: AjaxChat Integration
Post by: Mraza on April 17, 2009, 06:11:36 PM
Quote from: mrtrc266 on April 09, 2009, 07:20:18 PM
@ mraza

Look at the FAQ's HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

thanks for you early help mrtrc266. now my everything is working fine except shoutbox because i was not able to edit theme index.template.php. i am attaching my file i hope you can help me to edit. .....thanks for your co-operation
Title: Re: AjaxChat Integration
Post by: n3ith on April 17, 2009, 06:44:56 PM
I just need a button for the chat to work off of.

I created a button, but it just linked itself to the forum. I used Monster Mansions button, but it did not show up on my theme. I used one more button posted here on this thread and it did not work either.

Here's my forum
http://www.noxxious.com

If anyone can help with the button creation that would be awesome of you.

Everything else is great. Thanks..
Title: Re: AjaxChat Integration
Post by: NooNYUki on April 17, 2009, 11:35:57 PM
Hi all..
I installed this mod and ajax chat 0.8.2_smf. and installed mod via package manager from admin panel. There was no error but I can't see any chat tab showing up on menu or the chat stats. i'm using smf 1.1.8. (utf-8)
i've attached the screen shots and index.template.php.
As you can see, the features and options page, the checkboxes don't have labels.
also in the permissions, i can see only [] and there are two lines under there and when i select one and click add permission. the chatbox shows up ..then there is 500 connection status error.
there is one more question. If you install mod via package, how do you set the file permission in hosting's control panel file manager? thanks in advance.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 18, 2009, 12:20:59 AM
@   
  NooNYUki (http://www.simplemachines.org/community/index.php?action=profile;u=203472)

DO NOT install the chat and then the intergration Mod!

The intergration Mod installs the chat as well just like it explains on the mod download page.

Try uninstalling everything you did and then just install the Intergration Mod.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 18, 2009, 12:27:50 AM
@

Mack450 (http://www.simplemachines.org/community/index.php?action=profile;u=157730)
sammywantsya (http://www.simplemachines.org/community/index.php?action=profile;u=203697)
Hardcase (http://www.simplemachines.org/community/index.php?action=profile;u=198900)
mraza (http://www.simplemachines.org/community/index.php?action=profile;u=187493)
n3ith (http://www.simplemachines.org/community/index.php?action=profile;u=203317)

Sorry but I am only able to check in for the next few days but will try to tackle you issues on my next days off
Title: Re: AjaxChat Integration
Post by: NooNYUki on April 18, 2009, 12:44:27 AM
Hi mrtrc266
thankx for ur prompt reply. I followed your instruction and do it all over again. but still i cant c the tab and the checkbox labels as well as the list name in dropdown box of permissions, it s still blank. and i ve new error in chatbox. Connection error 0? what does this error refer to?
anyone who had similar problem, plz tell me your fix. thanks again.. =)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 18, 2009, 12:56:40 AM
@ you will have to edit the following yourforum/Themes/yourtheme/Modifications.english.utf8.php and add the following to the end of the file

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can't.';
$txt['permissionname_shout_access'] = 'Use shoutBox';
$txt['permissionhelp_shout_access'] = 'Give access to use the shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration

Title: Re: AjaxChat Integration
Post by: NooNYUki on April 18, 2009, 01:12:16 AM
omg.. it s working!! thanks a lot.. now i m gonna try modifying for another theme. =D have a nice day!
Title: Re: AjaxChat Integration
Post by: DilSe on April 18, 2009, 06:41:15 AM
hello sir
I have install this mod ...but it's working in defulat them only
but wain I change them nothing .......
how I can do it


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg245.imageshack.us%2Fimg245%2F2264%2F22221395.jpg&hash=d09003c3bba938e146c7219df1a9a891d1e4f8ad) (http://img245.imageshack.us/my.php?image=22221395.jpg)
Title: Re: AjaxChat Integration
Post by: andy40 on April 18, 2009, 09:07:00 AM
hi i just installed this but cant see the button to click on for chat?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 18, 2009, 09:24:44 AM
@ andy40 and Hanzalah if you are using a custom theme please follow the instrcutions here


http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: CerebralJam on April 18, 2009, 10:32:39 AM
Quote from: mrtrc266 on April 17, 2009, 10:00:39 AM
@ CerebralJam (http://www.simplemachines.org/community/index.php?action=profile;u=193654)  did you get any errors during the install?

Hello there!  Not as far as I know, it just said successful and it will function or not function! 

I tried again yesterday and it did install but when I went to change theme or other things the whole browser hung and crashed... I tried it on two computers to make sure as I know my laptop is stuffed to full capacity.  Both computers crashed so I disabled it again.

I was using Firefox 3.  And Windows XP
Title: Re: AjaxChat Integration
Post by: Mraza on April 18, 2009, 02:09:18 PM
@mrtrc266... ok i was able to install shoutbox on my custom theme now i have 3 problems.

1. when i will enter in in forum there i see some sound errors i think this problem is not fixed yet by ajaxchat.
(21:33:12) ChatBot: Error: Failed to load sound file (Flash IO Error).
(21:33:12) ChatBot: Error: Failed to load sound file (Flash IO Error).
(21:33:12) ChatBot: Error: Failed to load sound file (Flash IO Error).
(21:33:12) ChatBot: Error: Failed to load sound file (Flash IO Error).

2. if i will enter a message it is not stopping, the shoutbox window is collapsing and collapsing on every message.it must stop after 10 messages and start scrolling.

3. is it possible to show the user name in color by catagory as in chatroom. in shoutbox. its only showing one color for all member.
any help pleaese
Title: Re: AjaxChat Integration
Post by: DilSe on April 18, 2009, 04:18:46 PM
yes Thanks for help...but i get it one ...

ChatBot: Error: Connection status: 408

Plz help me

just admin put message ..member's just see and when he write any think nothing happend...Plz help ..
Title: Re: AjaxChat Integration
Post by: Buwan on April 18, 2009, 07:49:32 PM
This may be addressed here already, but I didn't see it.  On my board, I can't see any of the labels for the checkboxes in the admin panel.  Through trial and error, and the images attached to the mod download page, I was able to get it working as a shoutbox, which is what I wanted.  Here's what I see in my admin panel:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F2iqi9dz.jpg&hash=b4c793296db401d6540f5d0ce1773bbd993018f8)


I tried the solution posted upthread, but it didn't work.

I'm using smf 1.1.8 with the default theme.  nstallation of the mod was fine with no errors.
Title: Re: AjaxChat Integration
Post by: Enders on April 19, 2009, 12:35:50 AM
Is there a way to edit the channels? Also, how do you set the default theme?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 19, 2009, 12:56:28 AM
Quote from: Hanzalah on April 18, 2009, 04:18:46 PM
yes Thanks for help...but i get it one ...

ChatBot: Error: Connection status: 408

Plz help me

just admin put message ..member's just see and when he write any think nothing happend...Plz help ..

Did you enable the permissions for your other member groups?
Title: Re: AjaxChat Integration
Post by: DilSe on April 19, 2009, 12:57:39 AM
Quote from: Hanzalah on April 18, 2009, 04:18:46 PM
yes Thanks for help...but i get it one ...

ChatBot: Error: Connection status: 408

Plz help me

just admin put message ..member's just see and when he write any think nothing happend...Plz help ..


plz help!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 19, 2009, 01:03:31 AM
Quote from: Enders on April 19, 2009, 12:35:50 AM
Is there a way to edit the channels? Also, how do you set the default theme?

Please read the FAQ's (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766), this should help you.
Title: Re: AjaxChat Integration
Post by: DilSe on April 19, 2009, 01:07:10 AM
Quote from: mrtrc266 on April 19, 2009, 12:56:28 AM
Quote from: Hanzalah on April 18, 2009, 04:18:46 PM
yes Thanks for help...but i get it one ...

ChatBot: Error: Connection status: 408

Plz help me

just admin put message ..member's just see and when he write any think nothing happend...Plz help ..

Did you enable the permissions for your other member groups?


yes sir permissions is on...butt now another place is not working shoutbox
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 19, 2009, 01:15:49 AM
@ Hanzalah (http://www.simplemachines.org/community/index.php?action=profile;u=202429)  enable chat for guests and what's the URL to your site?
Title: Re: AjaxChat Integration
Post by: DilSe on April 19, 2009, 01:27:14 AM
Quote from: mrtrc266 on April 19, 2009, 01:15:49 AM
@ Hanzalah (http://www.simplemachines.org/community/index.php?action=profile;u=202429)  enable chat for guests and what's the URL to your site?


ok sir this link
www.pakiht.com
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 19, 2009, 01:32:44 AM
Hmmm...I see you, myself and other members chating ???  It seems to be working ok.
Title: Re: AjaxChat Integration
Post by: DilSe on April 19, 2009, 02:03:14 AM
Quote from: mrtrc266 on April 19, 2009, 01:32:44 AM
Hmmm...I see you, myself and other members chating ???  It seems to be working ok.

Thanks sir it's working i don't no about bef..


end sir butt it's erorr is still chat bot.408
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 19, 2009, 02:05:36 AM
Quote from: Hanzalah on April 19, 2009, 02:03:14 AM
Quote from: mrtrc266 on April 19, 2009, 01:32:44 AM
Hmmm...I see you, myself and other members chating ???  It seems to be working ok.

Thanks sir it's working i don't no about bef..

Glad it's sorted for you...enjoy the Mod ;)
Title: Re: AjaxChat Integration
Post by: foempspeedy on April 19, 2009, 01:59:15 PM
Shows the number of chating users in:
    1. Online Users section.
    2. Beside of chat button.
    3. Below of total time logged in.

None of those 3 i see . I enabled it . And when i click chat button it opens in same page, so if i want to get back to forum members must go a page back...i enabled pop up page though..
Plz help  thanks
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 19, 2009, 04:47:45 PM
i have a custom theme and after reading i have to edit some files. to be clear do i only edit the style.css, borad.index.template, and the index.template in my custom theme? Or do i have to edit all the files that are displayed in the package parser if i installed correctly?
Title: Re: AjaxChat Integration
Post by: frantic on April 19, 2009, 07:00:12 PM
I do have a question, is their any type of admin feature besides the simple settings thats in the chat room. Like make a style or color manditory for all members as the defualt really clashes with my site.

Also i'd like to get the shoutbox feature in simpleportal.  But i don't know the php code to put in my block, can anybody help out?
Title: Re: AjaxChat Integration
Post by: sammywantsya on April 19, 2009, 07:10:39 PM
hey guys sorry to bother you like this

but when i log in to my administrating i enabled shoutbox and it comes through same with ajaxx chatt

but when i do reg members i cant see it why and i cant log in to my chat room?

can someone help me out ? just bought a new domain and new webhost hostgator

Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 19, 2009, 11:56:56 PM
@ foempspeedy, bluesinjid and  frantic this should answer most of your questions


http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

@ sammywantsya look at that link as well, sounds like you have to set you user permissions.
Title: Re: AjaxChat Integration
Post by: Kat-2 on April 20, 2009, 12:01:31 AM
Quote from: Buwan on April 18, 2009, 07:49:32 PM
This may be addressed here already, but I didn't see it.  On my board, I can't see any of the labels for the checkboxes in the admin panel.  Through trial and error, and the images attached to the mod download page, I was able to get it working as a shoutbox, which is what I wanted.  Here's what I see in my admin panel:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F2iqi9dz.jpg&hash=b4c793296db401d6540f5d0ce1773bbd993018f8)






I tried the solution posted upthread, but it didn't work.

I'm using smf 1.1.8 with the default theme.  nstallation of the mod was fine with no errors.





I am having the same issue. Maybe some kind person here can tell us how the heck to get the text in. Kind of hard to set up when you have blanks.

I also need help in trying to get it to show in the Dilber theme.


Anyone, please?? :)
Title: Re: AjaxChat Integration
Post by: Godsongz on April 20, 2009, 12:39:28 AM
Kat-2 & Buwan, can you confirm that this code is in your modifications.english.php file?

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Use shoutBox';
$txt['permissionhelp_shout_access'] = 'Give access to use the shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 12:40:34 AM
Hi Kat, it looks like you're missing you're language strings. Make sure you have this added to yourforum/Themes/default/languages/Modifications.english.php or Modifications.english-utf8.php if you're using utf8

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Use shoutBox';
$txt['permissionhelp_shout_access'] = 'Give access to use the shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration


Sorry for the previous missed post
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 12:41:09 AM
LMAO!!!
Title: Re: AjaxChat Integration
Post by: Mraza on April 20, 2009, 01:20:46 AM
Quote from: mraza on April 18, 2009, 02:09:18 PM
@mrtrc266...
2. if i will enter a message it is not stopping, the shoutbox window is collapsing and collapsing on every message.it must stop after 10 messages and start scrolling.
please @mrtrc266 help me to solve this issue... i just want the shoutbox windows to stay there after 10 messages...its going all over the page...any help pleaseee
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 01:37:35 AM
Quote from: mraza on April 20, 2009, 01:20:46 AM
Quote from: mraza on April 18, 2009, 02:09:18 PM
@mrtrc266...
2. if i will enter a message it is not stopping, the shoutbox window is collapsing and collapsing on every message.it must stop after 10 messages and start scrolling.
please @mrtrc266 help me to solve this issue... i just want the shoutbox windows to stay there after 10 messages...its going all over the page...any help pleaseee

Whatever theme you're using add this to the yourforum/Themes/yourtheme/style.css file

Find
/* Normal, standard links. */

Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Normal, standard links. */


You will need to refresh after the edit to notice the change

Title: Re: AjaxChat Integration
Post by: foempspeedy on April 20, 2009, 01:47:50 AM
Quote from: mrtrc266 on April 19, 2009, 11:56:56 PM
@ foempspeedy, bluesinjid and  frantic this should answer most of your questions

Got that fixed, did edit my theme.
But an hour ago i tried to enter chat and i got this :
XML-parsefout: troep na documentelement
Locatie: http://www.traderzone.org/chat/index.php
Regelnummer 2, kolom 1:<b>Notice</b>:  Undefined index:  minWordLen in <b>/home/traderzo/public_html/Sources/Load.php(2177) : eval()'d code</b> on line <b>946</b><br />

you can check with tester /tester (http://www.traderzone.org/)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 01:52:24 AM
@ looks like a template edit was done improperly, I will have to take a look in the morning I have to get to bed. Looks like you're making progress though  :)
Title: Re: AjaxChat Integration
Post by: Kat-2 on April 20, 2009, 02:25:25 AM
Quote from: Godsongz on April 20, 2009, 12:39:28 AM
Kat-2 & Buwan, can you confirm that this code is in your modifications.english.php file?

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Use shoutBox';
$txt['permissionhelp_shout_access'] = 'Give access to use the shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration





Oh my gosh  Godsongz  and mrtrc266 ! That was it! Thank you! Thank you!!

Now the language string was in the Modifications.english.php, but there was also a Modifications.english-utf8.php file in there, and the language string was not there.
I installed, and wah-la! I can see! No more blank!

Are both those files supposed to be there?



Lastly...can either of you help me to get the chat to show in other themes?? First off..Dilber...


Again...thank you so much!
Title: Re: AjaxChat Integration
Post by: Mraza on April 20, 2009, 05:39:24 AM
Quote from: mrtrc266 on April 20, 2009, 01:37:35 AM
Whatever theme you're using add this to the yourforum/Themes/yourtheme/style.css file

Find
/* Normal, standard links. */

Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Normal, standard links. */


You will need to refresh after the edit to notice the change

thank you very much...its working now....you are special ...  8)... one more thing is it possible to not to load the sound files so the error:
Quote(12:38:36) ChatBot: Error: Failed to load sound file (Flash IO Error).
will not show anymore.. i don't want to use the sound in shoutbox....thank you very much
Title: Re: AjaxChat Integration
Post by: Buwan on April 20, 2009, 06:36:08 AM
Quote from: mrtrc266 on April 20, 2009, 12:41:09 AM
LMAO!!!

Oh, sure!  Jump in and help when the member with the smokin' hot avatar asks!!!

;D


That worked!!  Thank you, guys!!
Title: Re: AjaxChat Integration
Post by: tfs on April 20, 2009, 01:11:30 PM
Quote from: mrtrc266 on April 12, 2009, 02:06:15 AM
You are correct, the shoutbox/chat sometims will not refresh until you put you cusror in the input field.

Please DO NOT remove the copyright and/or credits portion of the AJAX Chat and/or AJAX Chat Intergration. Instead you can add a Custom Message to notify your members of what to do by just adding a some text here...

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

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

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

Thanks, I finally got around to doing this, and it looks much better.  I used the following text...

"Global Chat - Click in the entry field (lower left) to activate this ShoutBox"
Title: Re: AjaxChat Integration
Post by: foempspeedy on April 20, 2009, 02:26:43 PM
Quote from: mrtrc266 on April 20, 2009, 01:52:24 AM
@ looks like a template edit was done improperly, I will have to take a look in the morning I have to get to bed. Looks like you're making progress though  :)
i was making progress...its bad now :(
Title: Re: AjaxChat Integration
Post by: Kat-2 on April 20, 2009, 03:03:59 PM
Quote from: Kat-2 on April 20, 2009, 02:25:25 AM
Quote from: Godsongz on April 20, 2009, 12:39:28 AM
Kat-2 & Buwan, can you confirm that this code is in your modifications.english.php file?

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Use shoutBox';
$txt['permissionhelp_shout_access'] = 'Give access to use the shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration





Oh my gosh  Godsongz  and mrtrc266 ! That was it! Thank you! Thank you!!

Now the language string was in the Modifications.english.php, but there was also a Modifications.english-utf8.php file in there, and the language string was not there.
I installed, and wah-la! I can see! No more blank!

Are both those files supposed to be there?



Lastly...can either of you help me to get the chat to show in other themes?? First off..Dilber...


Again...thank you so much!





I used the parser to try and edit the Dilber theme. Some of the lines that I am supposed to replace are not in there.
I don't know where to put them.


// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}


Supposed to be replaced with

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
if (!empty($modSettings['enableChatBelowPM'])){
$count = count(chatOnlineUsers());
if ($count == 0 )
echo '<br />' . $txt['chat_no_user'];
elseif ($count == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' . $count . $txt['chat_users']. '<br />';
}
echo ' </span>';
}


It isn't there. Where do I put it?


And

</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


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



Is supposed to be replaced with..


</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


// 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'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';
// Otherwise, they might want to [logout]...


Not there..where do I put it?


ETA: oops..that is in the index.template.php
Title: Re: AjaxChat Integration
Post by: Kat-2 on April 20, 2009, 04:13:50 PM
Also..how do you get rid of the sound? (yes I have searched).

I have too many people that post from work..need that gone!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 06:26:20 PM
Quote from: foempspeedy on April 20, 2009, 02:26:43 PM
Quote from: mrtrc266 on April 20, 2009, 01:52:24 AM
@ looks like a template edit was done improperly, I will have to take a look in the morning I have to get to bed. Looks like you're making progress though  :)
i was making progress...its bad now :(

Yikes, undo whatever you did
Title: Re: AjaxChat Integration
Post by: frantic on April 20, 2009, 07:02:29 PM
wow that guide is fantasic thank you.  Only one thing left.  What is the php code to enter into a portal block to get the normaly shoutbox to appear in, in say simple portals custom php block?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 07:07:39 PM
QuoteOh my gosh  Godsongz  and mrtrc266 ! That was it! Thank you! Thank you!!

Now the language string was in the Modifications.english.php, but there was also a Modifications.english-utf8.php file in there, and the language string was not there.
I installed, and wah-la! I can see! No more blank!

Are both those files supposed to be there?
It looks like you have your forum set to utf8 so for every mod that you install that requires modifying your Modification.english.php you will more than likely have to manually add the same code to your Modifications.english-utf8.php. It will not hurt to open both files and copy the entire contents of your Modification.english.php to your Modifications.english-utf8.php.

QuoteLastly...can either of you help me to get the chat to show in other themes?? First off..Dilber...

Find
   <div align="center" style="width: 90%; margin-left: auto; margin-right: auto; margin-top:10px; border: 0px solid;" class="middletext">
    ', $settings['custom_global_html'], '
   </div>';

Add After

//shoutBox
if (!empty($modSettings['enableShoutBox'])){
  if (allowedTo('shout_access')){
   // We'll have to use the cookie to remember the shoutBox header...
   if ($context['user']['is_guest'])
    $options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);
   
   echo '
  <script language="JavaScript" type="text/javascript">
   var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

   function ajax_shoutBox_collapse(mode)
   {';

   if ($context['user']['is_guest'])
    echo '
    document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
   else
    echo '
    smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
    document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

    document.getElementById("ShoutBox").style.display = mode ? "none" : "";

    sb_current_header = mode;
    }
  </script>';

   if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
    echo'
  <div class="tborder" style="margin: 10px 0 10px 0;">
   <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
    <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
   </div>
   <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
   ', getShoutBoxContent() ,'
   </div>
  </div>';
   }
  }
}

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

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

Find
       // But, let's always show minutes - Time wasted here: 0 minutes.
       echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }

Replace with
       // But, let's always show minutes - Time wasted here: 0 minutes.
       echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      if (!empty($modSettings['enableChatBelowPM'])){
   $count = count(chatOnlineUsers());
   if ($count == 0 )
    echo '<br />' . $txt['chat_no_user'];
   elseif ($count == 1 )
     echo '<br />  1' . $txt['chat_aUser']. '.<br />';
   else
     echo '<br /> ' . $count . $txt['chat_users']. '<br />';
  }
  echo '    </span>';

Find
// Otherwise, they might want to [logout]...
Replace with

// 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'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
  <td align="center" class="menubg">
   <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
  </td>';
// Otherwise, they might want to [logout]...


In your style sheets find....You will have to do this for each color style.css, style_lightblue.css, style_lightbrown.css, etc.
/* Normal, standard links. */
Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Normal, standard links. */


If I screwed that up too bad attach your index.template.php file here and I'll get it for ya.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 07:11:46 PM
Quote from: frantic on April 20, 2009, 07:02:29 PM
wow that guide is fantasic thank you.  Only one thing left.  What is the php code to enter into a portal block to get the normaly shoutbox to appear in, in say simple portals custom php block?

At the moment there isn't one that I'm aware of. You could enable the shoutbox on all pages and it will sit on the top of the portal page.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 07:13:53 PM
Quote from: Buwan on April 20, 2009, 06:36:08 AM
Quote from: mrtrc266 on April 20, 2009, 12:41:09 AM
LMAO!!!

Oh, sure!  Jump in and help when the member with the smokin' hot avatar asks!!!

;D


That worked!!  Thank you, guys!!

LOL Glad you got it sorted
Title: Re: AjaxChat Integration
Post by: frantic on April 20, 2009, 07:27:16 PM
Quote from: mrtrc266 on April 20, 2009, 07:11:46 PM
Quote from: frantic on April 20, 2009, 07:02:29 PM
wow that guide is fantasic thank you.  Only one thing left.  What is the php code to enter into a portal block to get the normaly shoutbox to appear in, in say simple portals custom php block?

At the moment there isn't one that I'm aware of. You could enable the shoutbox on all pages and it will sit on the top of the portal page.

THanks for trying to help, i personally never really like the shout boxes at the top of pages, however the irc like chat is more than fantasic, maybe i'll go get the neo shout box and run both on my forum, your chat and that neo shout in a portal.  but  Really, thank you.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 07:31:11 PM
Quote from: frantic on April 20, 2009, 07:27:16 PM
Quote from: mrtrc266 on April 20, 2009, 07:11:46 PM
Quote from: frantic on April 20, 2009, 07:02:29 PM
wow that guide is fantasic thank you.  Only one thing left.  What is the php code to enter into a portal block to get the normaly shoutbox to appear in, in say simple portals custom php block?

At the moment there isn't one that I'm aware of. You could enable the shoutbox on all pages and it will sit on the top of the portal page.

THanks for trying to help, i personally never really like the shout boxes at the top of pages, however the irc like chat is more than fantasic, maybe i'll go get the neo shout box and run both on my forum, your chat and that neo shout in a portal.  but  Really, thank you.

That should work, it shouldn't conflict. Not "my" Mod I just love it and would like to see everyone have on their site ;)
Title: Re: AjaxChat Integration
Post by: Gitominoti on April 20, 2009, 07:55:34 PM
Is there a way to get rid of some of the smileys? There is too many for the width of my forum  :-\
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 20, 2009, 08:03:54 PM
hi im getting this error ChatBot: Error: Connection status: 0

*EDIT* I do not know if i editted it right ,if someone could tell me step by step what i need to modify for my THEME MEGAPOLIS. I cannot find

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
Title: Re: AjaxChat Integration
Post by: Kat-2 on April 20, 2009, 08:09:00 PM
Quote from: mrtrc266 on April 20, 2009, 07:07:39 PM
QuoteOh my gosh  Godsongz  and mrtrc266 ! That was it! Thank you! Thank you!!

Now the language string was in the Modifications.english.php, but there was also a Modifications.english-utf8.php file in there, and the language string was not there.
I installed, and wah-la! I can see! No more blank!

Are both those files supposed to be there?
It looks like you have your forum set to utf8 so for every mod that you install that requires modifying your Modification.english.php you will more than likely have to manually add the same code to your Modifications.english-utf8.php. It will not hurt to open both files and copy the entire contents of your Modification.english.php to your Modifications.english-utf8.php.

QuoteLastly...can either of you help me to get the chat to show in other themes?? First off..Dilber...

Find
   <div align="center" style="width: 90%; margin-left: auto; margin-right: auto; margin-top:10px; border: 0px solid;" class="middletext">
    ', $settings['custom_global_html'], '
   </div>';

Add After

//shoutBox
if (!empty($modSettings['enableShoutBox'])){
  if (allowedTo('shout_access')){
   // We'll have to use the cookie to remember the shoutBox header...
   if ($context['user']['is_guest'])
    $options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);
   
   echo '
  <script language="JavaScript" type="text/javascript">
   var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

   function ajax_shoutBox_collapse(mode)
   {';

   if ($context['user']['is_guest'])
    echo '
    document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
   else
    echo '
    smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
    document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

    document.getElementById("ShoutBox").style.display = mode ? "none" : "";

    sb_current_header = mode;
    }
  </script>';

   if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
    echo'
  <div class="tborder" style="margin: 10px 0 10px 0;">
   <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
    <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
   </div>
   <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
   ', getShoutBoxContent() ,'
   </div>
  </div>';
   }
  }
}

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

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

Find
       // But, let's always show minutes - Time wasted here: 0 minutes.
       echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }

Replace with
       // But, let's always show minutes - Time wasted here: 0 minutes.
       echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      if (!empty($modSettings['enableChatBelowPM'])){
   $count = count(chatOnlineUsers());
   if ($count == 0 )
    echo '<br />' . $txt['chat_no_user'];
   elseif ($count == 1 )
     echo '<br />  1' . $txt['chat_aUser']. '.<br />';
   else
     echo '<br /> ' . $count . $txt['chat_users']. '<br />';
  }
  echo '    </span>';

Find
// Otherwise, they might want to [logout]...
Replace with

// 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'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
  <td align="center" class="menubg">
   <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
  </td>';
// Otherwise, they might want to [logout]...


In your style sheets find....You will have to do this for each color style.css, style_lightblue.css, style_lightbrown.css, etc.
/* Normal, standard links. */
Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Normal, standard links. */


If I screwed that up too bad attach your index.template.php file here and I'll get it for ya.
Quote from: mrtrc266 on April 20, 2009, 07:07:39 PM
QuoteOh my gosh  Godsongz  and mrtrc266 ! That was it! Thank you! Thank you!!

Now the language string was in the Modifications.english.php, but there was also a Modifications.english-utf8.php file in there, and the language string was not there.
I installed, and wah-la! I can see! No more blank!

Are both those files supposed to be there?
It looks like you have your forum set to utf8 so for every mod that you install that requires modifying your Modification.english.php you will more than likely have to manually add the same code to your Modifications.english-utf8.php. It will not hurt to open both files and copy the entire contents of your Modification.english.php to your Modifications.english-utf8.php.

QuoteLastly...can either of you help me to get the chat to show in other themes?? First off..Dilber...

Find
   <div align="center" style="width: 90%; margin-left: auto; margin-right: auto; margin-top:10px; border: 0px solid;" class="middletext">
    ', $settings['custom_global_html'], '
   </div>';

Add After

//shoutBox
if (!empty($modSettings['enableShoutBox'])){
  if (allowedTo('shout_access')){
   // We'll have to use the cookie to remember the shoutBox header...
   if ($context['user']['is_guest'])
    $options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);
   
   echo '
  <script language="JavaScript" type="text/javascript">
   var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

   function ajax_shoutBox_collapse(mode)
   {';

   if ($context['user']['is_guest'])
    echo '
    document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
   else
    echo '
    smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

   echo '
    document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

    document.getElementById("ShoutBox").style.display = mode ? "none" : "";

    sb_current_header = mode;
    }
  </script>';

   if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
    echo'
  <div class="tborder" style="margin: 10px 0 10px 0;">
   <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
    <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
   </div>
   <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
   ', getShoutBoxContent() ,'
   </div>
  </div>';
   }
  }
}

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

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

Find
       // But, let's always show minutes - Time wasted here: 0 minutes.
       echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }

Replace with
       // But, let's always show minutes - Time wasted here: 0 minutes.
       echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      if (!empty($modSettings['enableChatBelowPM'])){
   $count = count(chatOnlineUsers());
   if ($count == 0 )
    echo '<br />' . $txt['chat_no_user'];
   elseif ($count == 1 )
     echo '<br />  1' . $txt['chat_aUser']. '.<br />';
   else
     echo '<br /> ' . $count . $txt['chat_users']. '<br />';
  }
  echo '    </span>';

Find
// Otherwise, they might want to [logout]...
Replace with

// 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'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
  <td align="center" class="menubg">
   <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
  </td>';
// Otherwise, they might want to [logout]...


In your style sheets find....You will have to do this for each color style.css, style_lightblue.css, style_lightbrown.css, etc.
/* Normal, standard links. */
Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Normal, standard links. */


If I screwed that up too bad attach your index.template.php file here and I'll get it for ya.



I don't think you screwed up anything, but just as it was when I tried this before..I can't find everything in the file. No clue why.. :-[

I have it attached..
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 08:32:53 PM
Kat, this is weird you're missing all kinds of code. What's the link to your site. PM me if you don't want it public.

Ok I think I got it...try this one
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 08:49:53 PM
Quote from: bluesinjid on April 20, 2009, 08:03:54 PM
hi im getting this error ChatBot: Error: Connection status: 0

*EDIT* I do not know if i editted it right ,if someone could tell me step by step what i need to modify for my THEME MEGAPOLIS. I cannot find

// But, let's always show minutes - Time wasted here: 0 minutes.
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }


You might not need that depending on how your theme is laid out, it just shows # of users under the user info. What's the url to your site?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 08:56:01 PM
Quote from: Gitominoti on April 20, 2009, 07:55:34 PM
Is there a way to get rid of some of the smileys? There is too many for the width of my forum  :-\

Open chat/js/config.js
Find and remove the emotes you don't want

// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
';)',
':P',
':D',
':|',
':O',
':?',
'8)',
'8o',
'B)',
':-)',
':-(',
':-*',
'O:-D',
'>:-D',
':o)',
':idea:',
':important:',
':help:',
':error:',
':warning:',
':favorite:'
  ),


Also find and remove the associations with the emotes you remove from the above...EXAMPLE if your remove the last 5 line from the above also remove the last 5 lines from below. If you remove line 7 from above also remove line 7 from below...etc.

// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'wink.png',
'razz.png',
'grin.png',
'plain.png',
'surprise.png',
'confused.png',
'glasses.png',
'eek.png',
'cool.png',
'smile-big.png',
'crying.png',
'kiss.png',
'angel.png',
'devilish.png',
'monkey.png',
'idea.png',
'important.png',
'help.png',
'error.png',
'warning.png',
'favorite.png'
),
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 20, 2009, 09:15:20 PM
oh sorry,forgot the url, its   http://www.modernopolis.co.nr (http://www.modernopolis.co.nr)
Title: Re: AjaxChat Integration
Post by: Gitominoti on April 20, 2009, 09:25:00 PM
Quote from: mrtrc266 on April 20, 2009, 08:56:01 PM
Quote from: Gitominoti on April 20, 2009, 07:55:34 PM
Is there a way to get rid of some of the smileys? There is too many for the width of my forum  :-\

Open chat/js/config.js
Find and remove the emotes you don't want

// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
';)',
':P',
':D',
':|',
':O',
':?',
'8)',
'8o',
'B)',
':-)',
':-(',
':-*',
'O:-D',
'>:-D',
':o)',
':idea:',
':important:',
':help:',
':error:',
':warning:',
':favorite:'
  ),


Also find and remove the associations with the emotes you remove from the above...EXAMPLE if your remove the last 5 line from the above also remove the last 5 lines from below. If you remove line 7 from above also remove line 7 from below...etc.

// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'wink.png',
'razz.png',
'grin.png',
'plain.png',
'surprise.png',
'confused.png',
'glasses.png',
'eek.png',
'cool.png',
'smile-big.png',
'crying.png',
'kiss.png',
'angel.png',
'devilish.png',
'monkey.png',
'idea.png',
'important.png',
'help.png',
'error.png',
'warning.png',
'favorite.png'
),

Thanks :)

Another question, how do I make it look like the way it looks on the default skin? The default one has the name bold and red, the text is spaced from the edge. Also, I'm missing the "X" so I can delete posts. Is there any way to add those things?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 09:32:49 PM
Quote from: bluesinjid on April 20, 2009, 09:15:20 PM
oh sorry,forgot the url, its   http://www.modernopolis.co.nr (http://www.modernopolis.co.nr/)

With your theme I wouldnt worry about the edit you can't find.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 09:36:01 PM
Quote from: Gitominoti on April 20, 2009, 09:25:00 PM
Quote from: mrtrc266 on April 20, 2009, 08:56:01 PM
Thanks :)

Another question, how do I make it look like the way it looks on the default skin? The default one has the name bold and red, the text is spaced from the edge. Also, I'm missing the "X" so I can delete posts. Is there any way to add those things?

As Admin you're name should be in red and you should see a red x next to every post. Try clearing your cache if you just got it going.
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 20, 2009, 09:36:08 PM
ok but it doesnt work, iget some connection problem if you can check my chat box
Title: Re: AjaxChat Integration
Post by: Gitominoti on April 20, 2009, 09:38:04 PM
Quote from: mrtrc266 on April 20, 2009, 09:36:01 PM
Quote from: Gitominoti on April 20, 2009, 09:25:00 PM
Quote from: mrtrc266 on April 20, 2009, 08:56:01 PM
Thanks :)

Another question, how do I make it look like the way it looks on the default skin? The default one has the name bold and red, the text is spaced from the edge. Also, I'm missing the "X" so I can delete posts. Is there any way to add those things?

As Admin you're name should be in red and you should see a red x next to every post. Try clearing your cache if you just got it going.
Hmmm, I cleared my cache, and it's still not showing up.

Also, I changed the smileys and uploaded them, however they still have not changed :/
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 20, 2009, 11:49:44 PM
Quote from: bluesinjid on April 20, 2009, 09:36:08 PM
ok but it doesnt work, iget some connection problem if you can check my chat box

Did you try setting your file permissions (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)?
Title: Re: AjaxChat Integration
Post by: p3rlphr33k on April 21, 2009, 01:23:50 AM
I keep getting --- as default channel and "Error: Invalid channel name: " anyone run into this?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 21, 2009, 09:46:34 AM
Quote from: p3rlphr33k on April 21, 2009, 01:23:50 AM
I keep getting --- as default channel and "Error: Invalid channel name: " anyone run into this?

Never ran into that but try setting up your channels, instructions are here FAQ's (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: foempspeedy on April 21, 2009, 01:24:03 PM
Warning: require(/home/traderzo/public_html/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/traderzo/public_html/chat/index.php on line 17

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

can someone help me, its the first mod i installed..ty
Title: Re: AjaxChat Integration
Post by: Kat-2 on April 21, 2009, 01:38:59 PM
Quote from: mrtrc266 on April 20, 2009, 08:32:53 PM
Kat, this is weird you're missing all kinds of code. What's the link to your site. PM me if you don't want it public.

Ok I think I got it...try this one


That did put the chat in Dilber!
But there are some differences from Default Core, that make me hesitate to put on my main site. (this was on my test site). For one thing, it seems I have no way to delete a message.

Plus, it isn't scrolling. I could have sworn there was a check for scrolling, but can't find it now..??

Also, as Admin, my name is not in red, on the shout area, though it is in the chatbox. I will be using the shout most.


Thank you so much for the work you have put in to this! :-*
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 21, 2009, 04:28:13 PM
Quote from: Kat-2 on April 21, 2009, 01:38:59 PM
Quote from: mrtrc266 on April 20, 2009, 08:32:53 PM
Kat, this is weird you're missing all kinds of code. What's the link to your site. PM me if you don't want it public.

Ok I think I got it...try this one


That did put the chat in Dilber!
But there are some differences from Default Core, that make me hesitate to put on my main site. (this was on my test site). For one thing, it seems I have no way to delete a message.

Plus, it isn't scrolling. I could have sworn there was a check for scrolling, but can't find it now..??

Also, as Admin, my name is not in red, on the shout area, though it is in the chatbox. I will be using the shout most.


Thank you so much for the work you have put in to this! :-*

To make it scroll, delete messages and turn you admin red you will have to do this for each color style.css, style_lightblue.css, style_lightbrown.css, etc.

Find
/* Normal, standard links. */

Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Normal, standard links. */


Type in more than 10 messages and then refresh and that should do it  :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 21, 2009, 04:53:27 PM
Quote from: foempspeedy on April 21, 2009, 01:24:03 PM
Warning: require(/home/traderzo/public_html/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/traderzo/public_html/chat/index.php on line 17

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

can someone help me, its the first mod i installed..ty

Did you try setting your file permissions (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)?
Title: Re: AjaxChat Integration
Post by: Senkusha on April 21, 2009, 05:48:38 PM
I think I've found a bug.

The chat room lists my boards just fine as rooms, however, it will not allow me to enter any that have an 's ....

For example, if I try to go into "Kiyone's Bug Report" in chat, I get an error:  "Error:  Invalid channel name: Kiyone\'s Bug Report

I'm thinking it may have something to do with escaping the ' in the name.
Title: Re: AjaxChat Integration
Post by: foempspeedy on April 21, 2009, 05:55:18 PM
Quote from: mrtrc266 on April 21, 2009, 04:53:27 PM
Quote from: foempspeedy on April 21, 2009, 01:24:03 PM
Warning: require(/home/traderzo/public_html/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/traderzo/public_html/chat/index.php on line 17

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

can someone help me, its the first mod i installed..ty

Did you try setting your file permissions (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)?

I did. i got error on all files for chat and shoutbox..
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 21, 2009, 05:55:25 PM
Quote from: Senkusha on April 21, 2009, 05:48:38 PM
I think I've found a bug.

The chat room lists my boards just fine as rooms, however, it will not allow me to enter any that have an 's ....

For example, if I try to go into "Kiyone's Bug Report" in chat, I get an error:  "Error:  Invalid channel name: Kiyone's Bug Report

I'm thinking it may have something to do with escaping the ' in the name.

Yes I bet that is it. Not sure of a fix but you can edit your channel list HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) if you wanna get rid of the ones that have the '.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 21, 2009, 05:56:30 PM
@ foempspeedy (http://www.simplemachines.org/community/index.php?action=profile;u=186418)  What do you mean error? You are trying to CHMOD those files and get an error?
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 21, 2009, 06:23:26 PM
For AJAX Chat Intergration Version 3 "Folders" are set @ 755 and all "Files" are set @ 666.
You might have to change the index.php to 755.


What does that mean? Do i do this in my admin panel or in my file edit? I do not understand
Title: Re: AjaxChat Integration
Post by: Kat-2 on April 21, 2009, 06:26:41 PM
Quote from: mrtrc266 on April 21, 2009, 04:28:13 PM
Quote from: Kat-2 on April 21, 2009, 01:38:59 PM
Quote from: mrtrc266 on April 20, 2009, 08:32:53 PM
Kat, this is weird you're missing all kinds of code. What's the link to your site. PM me if you don't want it public.

Ok I think I got it...try this one


That did put the chat in Dilber!
But there are some differences from Default Core, that make me hesitate to put on my main site. (this was on my test site). For one thing, it seems I have no way to delete a message.

Plus, it isn't scrolling. I could have sworn there was a check for scrolling, but can't find it now..??

Also, as Admin, my name is not in red, on the shout area, though it is in the chatbox. I will be using the shout most.


Thank you so much for the work you have put in to this! :-*

To make it scroll, delete messages and turn you admin red you will have to do this for each color style.css, style_lightblue.css, style_lightbrown.css, etc.

Find
/* Normal, standard links. */

Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Normal, standard links. */


Type in more than 10 messages and then refresh and that should do it  :)



(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi19.photobucket.com%2Falbums%2Fb186%2FBFB%2Fsmile%2F46w3e.gif&hash=09188351ea52beacb32ab422c79bfdd8a8a50484)That didn't do it..
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 21, 2009, 06:59:54 PM
Ok Kat please don't kill me  :P  but this will work 99.9% sure ;)

Find

/* Dilber Theme*/

Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Dilber Theme*/


You can see it working here and this is your index template also.

My Test Site (http://monsters-mansion.com/test118/index.php)

Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 21, 2009, 07:07:50 PM
Quote from: bluesinjid on April 21, 2009, 06:23:26 PM
For AJAX Chat Intergration Version 3 "Folders" are set @ 755 and all "Files" are set @ 666.
You might have to change the index.php to 755.


What does that mean? Do i do this in my admin panel or in my file edit? I do not understand

You have to do it via an FTP program like FileZilla, just right click on the files and folder and hit properties or via your cPanel, you should see something like "file permissions" or CHMOD
Title: Re: AjaxChat Integration
Post by: 4T3IG0 on April 21, 2009, 08:23:15 PM
Quote from: JornB on April 12, 2009, 05:35:41 AM
Quote from: 4T3IG0 on April 12, 2009, 02:20:20 AM
Hi, fantastic Mod.

Just one problem, when I Apply Mod nothing happen. Any idea?


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs3.subirimagenes.com%2Fprivadas%2Fprevio%2Fthump_426914ajaxchatintegration3.jpg&hash=9e63a6363f09ca36f5d2abad2f76f51803368369)

SMF 1.1.8

Permissions: .  Only the standard files are writable.
I've noticed that installing it manually is the best solution. Gives you a better understanding on how the mod function and also gives you a better chance in modifying it as well.

Tnks JornB, manually was the solution, it just works fine  ;)

However now I have two more questions:

1 - I try hard, but can't make the popup button work on my custom theme (PDX-DK). It only works directly on the same web page. I'm not a coder so I let here my working code and if anyone can help me making it popup, it will be great.

Code:  // the [chat] button
      echo ($current_action == 'chat' || $context['browser']['is_ie4']) ? '' : '' , '
            <div class="maintab_' , $current_action == 'chat' ? 'active_back' : 'back' , '">
               <a href="',  'chat/index.php">' , Chat , '</a>
            </div>' , $current_action == 'chat' ? '<div class="seperator"><!--no content--></div>' : '<div class="seperator"><!--no content--></div>';

2 - I saw in this thread that it's not easy to integrate default smileys. I like a lot Pongsak smileys bar, it laods the smileys and the the slide effect just work fine, but I can´t integrate it with this shout. You can test it here:  http://cyberamigos.org

user: testajax

pass: testeuser

Abir smiley = Open smiley    /  Fechar  =  close

If someone could integrate it, I guess that should be a major upgrade.  Can you Pongsak? .HuNTeR.  ?  Mrtrc266?? Anyone??

Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 21, 2009, 10:01:37 PM
ok i see my file manager thing and there is the chmod option! Which exact folders do i chmod? the ''/chat'' folder or any other ones?

*EDIT* I do not get the 400 error i get  this  Error: Connection status: 0
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 21, 2009, 10:07:11 PM
Quote from: bluesinjid on April 21, 2009, 10:01:37 PM
ok i see my file manager thing and there is the chmod option! Which exact folders do i chmod? the ''/chat'' folder or any other ones?

*EDIT* I do not get the 400 error i get  this  Error: Connection status: 0

For AJAX Chat Intergration Version 3 "Folders" for /Chatand  and /Shoutbox are set @ 755 and all "Files" are set @ 666.
You might have to change the index.php to 755.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 21, 2009, 10:10:16 PM
@ 4T3IG0 looks like you are missing the script for the popup feature

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


And then in your button code you also need add the scriptrul to call it..EXAMPLE For the default theme

   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <td valign="top" class="maintab_back">
         <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
      </td>';
Title: Re: AjaxChat Integration
Post by: Kat-2 on April 21, 2009, 11:52:10 PM
Quote from: mrtrc266 on April 21, 2009, 06:59:54 PM
Ok Kat please don't kill me  :P  but this will work 99.9% sure ;)

Find

/* Dilber Theme*/

Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Dilber Theme*/


You can see it working here and this is your index template also.

My Test Site (http://monsters-mansion.com/test118/index.php)





:-[  I am not sure where you mean for me to find/put this???

(I do see it on your test site)


If you mean the index.template.php  I can't find it in there...
Title: Re: AjaxChat Integration
Post by: 4T3IG0 on April 22, 2009, 05:59:31 AM
Quote from: mrtrc266 on April 21, 2009, 10:10:16 PM
@ 4T3IG0 looks like you are missing the script for the popup feature

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


And then in your button code you also need add the scriptrul to call it..EXAMPLE For the default theme

   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <td valign="top" class="maintab_back">
         <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
      </td>';


@ Mrtrc266 Tnks for your reply. Guess I miss some information, in my default theme the popup works just fine, but in my custom theme I can't use the same code because the button don´t fit in the up button ruler  configuration. If I use the same code, it's there and the popup works, but it stays very ugly.  :(
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 22, 2009, 08:57:06 AM
Quote from: Kat-2 on April 21, 2009, 11:52:10 PM
Quote from: mrtrc266 on April 21, 2009, 06:59:54 PM
Ok Kat please don't kill me  :P  but this will work 99.9% sure ;)

Find

/* Dilber Theme*/

Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Dilber Theme*/


You can see it working here and this is your index template also.

My Test Site (http://monsters-mansion.com/test118/index.php)





:-[  I am not sure where you mean for me to find/put this???

(I do see it on your test site)


If you mean the index.template.php  I can't find it in there...

You'll find that in yourforum/Themes/dilbermc/style.css
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 22, 2009, 09:59:39 AM
Quote from: 4T3IG0 on April 22, 2009, 05:59:31 AM
Quote from: mrtrc266 on April 21, 2009, 10:10:16 PM
@ Mrtrc266 Tnks for your reply. Guess I miss some information, in my default theme the popup works just fine, but in my custom theme I can't use the same code because the button don´t fit in the up button ruler  configuration. If I use the same code, it's there and the popup works, but it stays very ugly.  :(

Replace the whole chat bottun code with this
// 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'] ? '<div class="maintab_active_' . $first . '">&nbsp;</div>' : '', '
  <div class="maintab_back">
   <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
  </div>';

Title: Re: AjaxChat Integration
Post by: 4T3IG0 on April 22, 2009, 12:46:30 PM
Quote from: mrtrc266 on April 22, 2009, 09:59:39 AM
Quote from: 4T3IG0 on April 22, 2009, 05:59:31 AM
Quote from: mrtrc266 on April 21, 2009, 10:10:16 PM
@ Mrtrc266 Tnks for your reply. Guess I miss some information, in my default theme the popup works just fine, but in my custom theme I can't use the same code because the button don´t fit in the up button ruler  configuration. If I use the same code, it's there and the popup works, but it stays very ugly.  :(

Replace the whole chat bottun code with this
// 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'] ? '<div class="maintab_active_' . $first . '">&nbsp;</div>' : '', '
  <div class="maintab_back">
   <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
  </div>';


Tnks a lot Mrtrc266 almost perfect, you only miss the separate line between the two buttons  ;D

Here's the complete code in case anyone else need it:

// 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'] ? '<div class="maintab_active_' . $first . '">&nbsp;</div>' : '', '
  <div class="maintab_back">
   <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</div>' , $current_action == 'chat' ? '<div class="seperator"><!--no content--></div>' : '<div class="seperator"><!--no content--></div>';


What about Smileys??  More dificult, isn't it??

Title: Re: AjaxChat Integration
Post by: Kat-2 on April 22, 2009, 03:15:54 PM
Quote from: mrtrc266 on April 22, 2009, 08:57:06 AM
Quote from: Kat-2 on April 21, 2009, 11:52:10 PM
Quote from: mrtrc266 on April 21, 2009, 06:59:54 PM
Ok Kat please don't kill me  :P  but this will work 99.9% sure ;)

Find

/* Dilber Theme*/

Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Dilber Theme*/


You can see it working here and this is your index template also.

My Test Site (http://monsters-mansion.com/test118/index.php)





:-[  I am not sure where you mean for me to find/put this???

(I do see it on your test site)


If you mean the index.template.php  I can't find it in there...

You'll find that in yourforum/Themes/dilbermc/style.css


That did the trick!  :D :D  :-* :-*

Now are you going to kill me if I can't get it right on my main site??  :P
Title: Re: AjaxChat Integration
Post by: 4T3IG0 on April 22, 2009, 03:45:25 PM
Quote from: Kat-2 on April 22, 2009, 03:15:54 PM
Quote from: mrtrc266 on April 22, 2009, 08:57:06 AM
Quote from: Kat-2 on April 21, 2009, 11:52:10 PM
Quote from: mrtrc266 on April 21, 2009, 06:59:54 PM
Ok Kat please don't kill me  :P  but this will work 99.9% sure ;)

Find

/* Dilber Theme*/

Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Dilber Theme*/


You can see it working here and this is your index template also.

My Test Site (http://monsters-mansion.com/test118/index.php)





:-[  I am not sure where you mean for me to find/put this???

(I do see it on your test site)


If you mean the index.template.php  I can't find it in there...

You'll find that in yourforum/Themes/dilbermc/style.css


That did the trick!  :D :D  :-* :-*

Now are you going to kill me if I can't get it right on my main site??  :P

Hi...  If he doesn't...  I will   :D 

Title: Re: AjaxChat Integration
Post by: Kat-2 on April 22, 2009, 03:48:55 PM
Quote from: 4T3IG0 on April 22, 2009, 03:45:25 PM
Quote from: Kat-2 on April 22, 2009, 03:15:54 PM
Quote from: mrtrc266 on April 22, 2009, 08:57:06 AM
Quote from: Kat-2 on April 21, 2009, 11:52:10 PM
Quote from: mrtrc266 on April 21, 2009, 06:59:54 PM
Ok Kat please don't kill me  :P  but this will work 99.9% sure ;)

Find

/* Dilber Theme*/

Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Dilber Theme*/


You can see it working here and this is your index template also.

My Test Site (http://monsters-mansion.com/test118/index.php)





:-[  I am not sure where you mean for me to find/put this???

(I do see it on your test site)


If you mean the index.template.php  I can't find it in there...

You'll find that in yourforum/Themes/dilbermc/style.css


That did the trick!  :D :D  :-* :-*

Now are you going to kill me if I can't get it right on my main site??  :P

Hi...  If he doesn't...  I will   :D 





LOL! Hey now..be nice. ;D

And..yup..it is on my main site..and working great.

I do need to fix those sounds though....and I also have other themes..

*runs*
Title: Re: AjaxChat Integration
Post by: p3rlphr33k on April 22, 2009, 04:32:27 PM
ok, so i did a clean install of SMF 2.0 and immediately applied the AJAXChat Integration Mod. Everything seems flawless, then I uploaded a theme and apply, no avail. I went through and applied all the theme modifications and the --- channel came back. It does not happen on the defailt SMF theme only with a third pary theme. Is this somthing you could look into if i posted the theme files?
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 22, 2009, 06:22:18 PM
omg still not working can you please help? I chmoded all my files to 755. But i still get the '''CONNECTION STATUS 0'' not connection status 500! Ill include my 3 files that i had to edit and hope you can tell me what i did wrong!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 12:46:28 AM
@ 4T3IG0 (http://www.simplemachines.org/community/index.php?action=profile;u=121498)  Glad you got it sorted, enjoy the Mod I'm sure you and your members will love it!

Yes adding the Smileys a little more difficult. I did a tutorial on adding some Smileys with a small Pop Up feature and adds all the BBC Buttons. Here is the Post (http://www.simplemachines.org/community/index.php?topic=257973.msg1930049#msg1930049)

BUT....This was for the AJAX Chat Intergration 2.5 NOT 3.0

I do have it working for 3.0 but I just haven't had the time to post it. There are some differences but if you want to take a look and play around with it, it might get you started in the right direction.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 12:58:36 AM
QuoteLOL! Hey now..be nice. ;D

And..yup..it is on my main site..and working great.

I do need to fix those sounds though....and I also have other themes..

*runs*


And you better run fast!!! LOL Just kidding :P  I'm glad you got it going Kat.

There was a post about 50 pages back about getting rid of the sounds. I will track it down and get it figure it out.

Just post the link to whatever other themes you have and we'll get those sorted too. Enjoy the Mod.  :-* :-*  back at ya ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 01:03:04 AM
Quote from: bluesinjid on April 22, 2009, 06:22:18 PM
omg still not working can you please help? I chmoded all my files to 755. But i still get the '''CONNECTION STATUS 0'' not connection status 500! Ill include my 3 files that i had to edit and hope you can tell me what i did wrong!

This might be a server issue, there have been a slight few with the same probs but it didn't hurt to go through all the motions first just incase. Hopefully this will be fixed in the next version
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 01:08:36 AM
Quote from: p3rlphr33k on April 22, 2009, 04:32:27 PM
ok, so i did a clean install of SMF 2.0 and immediately applied the AJAXChat Integration Mod. Everything seems flawless, then I uploaded a theme and apply, no avail. I went through and applied all the theme modifications and the --- channel came back. It does not happen on the defailt SMF theme only with a third pary theme. Is this somthing you could look into if i posted the theme files?

A couple posts ago someone pointed out that if your board has a 's in it then it will through the invalid channel error. EXAMPLE General Board's will throw the error.

If you're saying that you did edit the channels and then installed a theme and the channels came back then that is odd as the channel edits will have nothing to do with the theme.

If you want create a dummy account and post the username and PW I will take a look.
Title: Re: AjaxChat Integration
Post by: Kat-2 on April 23, 2009, 02:06:14 AM
Quote from: mrtrc266 on April 23, 2009, 12:58:36 AM
QuoteLOL! Hey now..be nice. ;D

And..yup..it is on my main site..and working great.

I do need to fix those sounds though....and I also have other themes..

*runs*


And you better run fast!!! LOL Just kidding :P  I'm glad you got it going Kat.

There was a post about 50 pages back about getting rid of the sounds. I will track it down and get it figure it out.

Just post the link to whatever other themes you have and we'll get those sorted too. Enjoy the Mod.  :-* :-*  back at ya ;)


Ahh..I have done a little searching to find out how to get rid of the sound, but everything I have tried so far, has not worked.
I don't care about the sound in the chatroom/box, those I can turn off. It is the shout box I am concerned about.

As for other themes, I have about decided to leave it as it is..2 themes, default, and Dilber.
That is enough for now.


I checked your test site for the smiley and BBC. I like! Am interested in doing that as soon as you are able to put out the hack.

You're a sweetie..  ;D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 03:14:11 AM
@ Kat, according to a post @ Sourceforge I think this will solve your sound issues, this should disable the sound for the shoutbox only and the users will control the sound in the chatroom...

In /yourforum/chat/lib/template/shoutbox.html

Find
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

Replace with
ajaxChatConfig.settings.audio = false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink','audio');


Cross fingers ;)
Title: Re: AjaxChat Integration
Post by: UkGangsta on April 23, 2009, 06:15:54 AM
okay works fine on my forum awsome mod.

but chat button is fine.

when chat is on forum index the forum is black hence the chat font is black and u carnt see what any one is typing but smileys etc show fine.

what file is it to change font colour for chat to say white or red, im guessing its style.css but what exact file is it i need to alter and.................... were what file please.

thankyou lookiing forward to your replys
Title: Re: AjaxChat Integration
Post by: anshar on April 23, 2009, 09:48:48 AM
ShoutBox is not properly auto-refreshing itselfs. Sometimes it does, but usualy I have to refresh the page manualy. My users have same issue. What went wrong?

SMF 2.0 RC1 on default theme and the latest script version.
Title: Re: AjaxChat Integration
Post by: Praatwurst on April 23, 2009, 09:56:00 AM
Is it possible to let the ChatBot talk back, if you say something?   :D

it would be very nice  ;D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 11:08:12 AM
@ UKGangsta the css file is yourforum/chat/css/shoutbox.css

@ anshar you just have to put you cursor in the input box to make it an active window.

@ Praatwurst you can make it look like the ChatBot talks back to your members with the /takeover command that is explained HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: UkGangsta on April 23, 2009, 11:21:06 AM
i have done that but its still not showing..... let me exsplain if i can...........i type test in shout box on forum index and it types it i no this cause i hear sound .........when i highlight the chat its there but its invisiable.............the names are not showing time of shout or the text what exactly do i need to do in the shoutbox.css as ive tried and tried with no look attached, is the shoutbox.css

i should of said im using smf 2.0rc1 and the black silk theme im really stuck on this, i love the ajax chat just wish i could get it work any help be much appreciated. could u do the neccasary file edits to that theme for me i may have did them wrong also  if i attach the files here, what files would u need also ty.

attached shoutbox.css i have tried changing colours here 10 times still wont show any help be greatly appreciated thankyou.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 11:24:16 AM
@ UK try putting it in the shoutbox folder if you haven't already /shoutBox/css/shoutbox.css
Title: Re: AjaxChat Integration
Post by: UkGangsta on April 23, 2009, 11:26:37 AM
thats were i got it from m8 that exact place .........trouble is my themes black and the font, names poster and time of shout are been shouted in a black font...........hence with a black background no 1 can see it.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 11:39:02 AM
UK, I understand what you're saying I have a black theme too and the shoutbox.css file should fix it.

This is the shoubox.css from my site, try it out and make sure to upload it to both folders chat/css and shoutbox/css

Title: Re: AjaxChat Integration
Post by: 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 :(
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 11:53:37 AM
It looks like you've only typed in a cpl lines and don't have it scrolling yet either. type in about 12 lines and then refresh.

EDIT: Also make sure you add this to your custom themes style.css

Find
/* Normal, standard links. */
Replace with
@import url(../../shoutBox/css/shoutbox.css);
/* Normal, standard links. */
Title: Re: AjaxChat Integration
Post by: djstew on April 23, 2009, 11:57:54 AM
this was asked earlier in this thread but never answered. i have this up and running well. i mainly wanted this mod to show users in chat and it shows at the bottom with no problem.

is there a block code that can be used for tiny portal to show users in chat? or alteration that can be done to the TP statsbox?
Title: Re: AjaxChat Integration
Post by: UkGangsta on April 23, 2009, 11:59:05 AM
its till the same do u think u could have a look at the edits i did on my files what files would u need cause ive looked now for 2 days and i carnt see any errors in my edits maybe u will.

attached again i have to higlight them.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 12:04:10 PM
Can you enable shout for guests and send me the link to your site? PM if you don't wan't it public please.
Title: Re: AjaxChat Integration
Post by: UkGangsta on April 23, 2009, 12:10:31 PM
pm sent and url ty for all your help on this really do appreciate it.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 12:14:59 PM
Quote from: djstew on April 23, 2009, 11:57:54 AM
this was asked earlier in this thread but never answered. i have this up and running well. i mainly wanted this mod to show users in chat and it shows at the bottom with no problem.

is there a block code that can be used for tiny portal to show users in chat? or alteration that can be done to the TP statsbox?

Not at the moment that I'm aware of.
Title: Re: AjaxChat Integration
Post by: UkGangsta on April 23, 2009, 12:19:05 PM
sent u another pm and url message hope u got them this time
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 12:28:10 PM
Quote from: UkGangsta on April 23, 2009, 12:19:05 PM
sent u another pm and url message hope u got them this time

Got it, looks like you might be missing some edits for your custom theme. Please attatch

yourforum/Themes/yourtheme/BoardIndex.template.php
yourforum/Themes/yourtheme/index.template.php
yourforum/Themes/yourtheme/style.css
Title: Re: AjaxChat Integration
Post by: UkGangsta on April 23, 2009, 12:32:24 PM
here u go bro and ty for all your help on this very kind of you

files attached.
Title: Re: AjaxChat Integration
Post by: Ncen on April 23, 2009, 12:46:19 PM
I wonder if it's possible to add the Users in Chat-names on top of every page (in index.template)? :O if so; how?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 12:56:55 PM
Quote from: UkGangsta on April 23, 2009, 12:32:24 PM
here u go bro and ty for all your help on this very kind of you

files attached.


No problem at all, glad I could help.

Ok here we go, I tried all these files on my test site and it works fine. I'm also attatching my shoutbox.css file that will look pretty good on your site or you can tweak it to your liking. Upload it to yourforum/chat/css/

Also be sure to type in about 12 messages or so to get it past the height and then refresh for the scroll to kick in.



Title: Re: AjaxChat Integration
Post by: UkGangsta on April 23, 2009, 01:06:14 PM
mrTrc u are now my hero i think i loveeeeeeeeeee you

thankyou for all your help thatw as very kind and im so grateful

thankyou so muchhhhhhhh.
Title: Re: AjaxChat Integration
Post by: Kat-2 on April 23, 2009, 01:08:11 PM
Quote from: mrtrc266 on April 23, 2009, 03:14:11 AM
@ Kat, according to a post @ Sourceforge I think this will solve your sound issues, this should disable the sound for the shoutbox only and the users will control the sound in the chatroom...

In /yourforum/chat/lib/template/shoutbox.html

Find
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

Replace with
ajaxChatConfig.settings.audio = false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink','audio');


Cross fingers ;)

:(
I tried it. Sorry, but it didn't work. If I could at least turn the volume down on it that would help. I have tried to do that too, to no avail.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 01:11:38 PM
Kat go to my test site ad see if it's workin like you want on there

http://monsters-mansion.com/test118 (http://monsters-mansion.com/test118)
Title: Re: AjaxChat Integration
Post by: Ncen on April 23, 2009, 01:13:27 PM
Quote from: Innocenzia on April 23, 2009, 12:46:19 PM
I wonder if it's possible to add the Users in Chat-names on top of every page (in index.template)? :O if so; how?

Any help for me? *puppy eyes*
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 01:40:02 PM
Quote from: UkGangsta on April 23, 2009, 01:06:14 PM
mrTrc u are now my hero i think i loveeeeeeeeeee you

thankyou for all your help thatw as very kind and im so grateful

thankyou so muchhhhhhhh.

Glad I could help Gangsta, enjoy the Mod :)
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 23, 2009, 05:01:35 PM
hey so are you saying i have to wait till the next version? I really want the chat in my forums! :o
Can you please check my files to see if  i editted it correctly?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 23, 2009, 05:04:38 PM
@ Blue does it work in your default theme?
Title: Re: AjaxChat Integration
Post by: Kat-2 on April 23, 2009, 10:45:43 PM
Quote from: mrtrc266 on April 23, 2009, 01:11:38 PM
Kat go to my test site ad see if it's workin like you want on there

http://monsters-mansion.com/test118 (http://monsters-mansion.com/test118)


Okay. As you know, figured out the best way for me to go with sounds. Either delete the sound files, or merely replace them.

I did put in one I can tolerate..you can go hear if you want to.

Thank you again for the help! :-*
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 24, 2009, 12:21:54 AM
WoooooHoooooo! Glad you got it sorted Kat! Enjoy the Mod :-* :-* :P
Title: Re: AjaxChat Integration
Post by: n3ith on April 24, 2009, 12:44:22 AM
Okay, tried this junk and I never did figure it out or get an answer. :D Done messing with it. I have tried like 20 different codes to get the stupid button working and showing the chat. done, uninstall. :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 24, 2009, 01:09:40 AM
Quote from: n3ith on April 24, 2009, 12:44:22 AM
Okay, tried this junk and I never did figure it out or get an answer. :D Done messing with it. I have tried like 20 different codes to get the stupid button working and showing the chat. done, uninstall. :D

Unfortunately you will have the same problem with most Mods that add a button to your forum, you will have to use a Package Parser and do the edits Manually.

Did you post what version of SMF you have and what Theme you're using?
Title: Re: AjaxChat Integration
Post by: mforum on April 24, 2009, 05:07:17 AM
smf 2 rc1

i have a lot of errors loged in different template files (8: Undefined variable: modSettings)  so i think its something wrong with the following code in index.template.php

$num = ($modSettings['enableChatButtonNo']) ? $count : 0;
$context['menu_buttons']['chat']['title'] .= ($num > 0) ?  ('('.$num.')') : '';
if ($modSettings['chatPopUp']){
$context['menu_buttons']['chat']['href'] .= '" onclick="openWindow(this.href);this.blur();return false;';
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>';
}


also, open chat in pop up never worked for me although is checked in admin-chat options
actually i would be happy if it opened in a new window
Title: Re: AjaxChat Integration
Post by: purper on April 24, 2009, 09:08:00 AM
Can you tell me if the behaviour on my site (2.0RC1, default theme, Dutch language) is normal?


Thanks for you're time and answer(s)

Richard.

Logmessages (admin only one using english language):

   
Guest

Type of error: Undefined
http://www.?????????/forum/index.php?action=printpage;topic=45.0
8: Undefined index: chat
File: ?????????/forum/Sources/Subs.php
Line: 3842
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 24, 2009, 10:21:29 AM
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 24, 2009, 10:25:51 AM
@ mforum, did the popup ever work for you in the default theme?

Also does it not work in any browser?
Title: Re: AjaxChat Integration
Post by: mforum on April 24, 2009, 10:51:33 AM
pop up works in default theme
i have made all necessary edits in prof them i use and don`t work in any browser, just opens in same window.
Also, the error i posted previously began just after i installed  ajaxchat integration 3
Title: Re: AjaxChat Integration
Post by: djstew on April 24, 2009, 11:03:10 AM
i figured out how to place the users in chat into a TP block. using the code from the boardindex.template
:D  :D  :D  yay for me! lol
place this code into a php block.

if (isset($context['chat_links'])){
if (count($context['chat_links']) == 0 )
  echo '<br />' . $txt['chat_no_user'];
elseif (count($context['chat_links']) == 1 )
  echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
else
  echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }
Title: Re: AjaxChat Integration
Post by: anshar on April 24, 2009, 11:58:17 AM
My logs are being spamed with:

8: Undefined index: chat
Plik: /Sources/Subs.php
Linie: 3849 

Any fix to that?
Title: Re: AjaxChat Integration
Post by: Killer-B on April 24, 2009, 02:47:02 PM
Hey all -

This works for me in my default theme - but am now trying to make it work on my portal page and deziner theme with no luck...

I'm really pressed for time these days and am willing to pay $omeone to $et the up for me....

Send me a PM email if interested - and what you'd charge to do the compete job...

The site is www.f-1chat.com and we want it under the "video" screen so people can watch live, and chat at the same time...  in a block in other words...

Thanks!!!

KB

Whoops! No PM here aye?? OK, if you can help... write on admin(@)f-1chat.com - Thank you!!
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 24, 2009, 04:51:29 PM
ok ive doen the chmodded all myh index .php and i get the connection 500 error instead of the ''0'' error! Can you please help? I do not want to switch to default thmer
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 24, 2009, 09:26:00 PM
Quote from: mforum on April 24, 2009, 10:51:33 AM
pop up works in default theme
i have made all necessary edits in prof them i use and don`t work in any browser, just opens in same window.
Also, the error i posted previously began just after i installed  ajaxchat integration 3

Attatch your index.template.php file plz
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 24, 2009, 09:31:28 PM
Quote from: bluesinjid on April 24, 2009, 04:51:29 PM
ok ive doen the chmodded all myh index .php and i get the connection 500 error instead of the ''0'' error! Can you please help? I do not want to switch to default thmer

Are you saying this works in the default theme?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 24, 2009, 09:41:50 PM
@ Killer-B I as well as many other people would love to get a shoutbox block for this for SP and TP. I will post a few places to see if we could get one made.

If you need this by a certain date for an event or something you could enable on all pages and it will sit right above the videos on your page. I actually prefer it on all pages and if a user doesn't want it on all then they can just collapse it.

Hopefully in time we will have the block code.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 24, 2009, 09:42:54 PM
Quote from: anshar on April 24, 2009, 11:58:17 AM
My logs are being spamed with:

8: Undefined index: chat
Plik: /Sources/Subs.php
Linie: 3849 

Any fix to that?

Are you using the default theme?
Title: Re: AjaxChat Integration
Post by: Killer-B on April 24, 2009, 09:56:46 PM
Quote from: mrtrc266 on April 24, 2009, 09:41:50 PM
@ Killer-B I as well as many other people would love to get a shoutbox block for this for SP and TP. I will post a few places to see if we could get one made.

If you need this by a certain date for an event or something you could enable on all pages and it will sit right above the videos on your page. I actually prefer it on all pages and if a user doesn't want it on all then they can just collapse it.

Hopefully in time we will have the block code.

Thanks for the reply MM - I didn't see it till just now...

I actually did do that - in the default theme - and it worked in the forum, but I don't think it showed on the main page (may be wrong but will try again when less people are online...)

If we can't get it done by Sunday - then we have 2 weeks till the next race... so - I guess we'll get by :)

Just FYI - a friend of mine set his up this way.... with Justin.tv and "some" kinda chat.... He just changed from uStream, so haven't had a chance to discuss it... I don't want to type the full URL here - but Google or visit "Hak House" (one word, no "c" in hak) and look at their setup... He has 2 screens going - and I only need one ... but would be nice. Or even uStream - but the pix are too small -

Cheers for the help!

KB
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 25, 2009, 12:45:31 AM
QuoteI actually did do that - in the default theme - and it worked in the forum, but I don't think it showed on the main page (may be wrong but will try again when less people are online...)

If you have the shoutbox working on you custom theme then it should show in the portal page as well. I have it running on 1.1.8 and RC1 with Simple Portal 2.2 and it does work.

Very nice site you have BTW
Title: Re: AjaxChat Integration
Post by: Killer-B on April 25, 2009, 01:10:36 AM
Quote from: mrtrc266 on April 25, 2009, 12:45:31 AM
QuoteI actually did do that - in the default theme - and it worked in the forum, but I don't think it showed on the main page (may be wrong but will try again when less people are on-line...)

If you have the shoutbox working on you custom theme then it should show in the portal page as well. I have it running on 1.1.8 and RC1 with Simple Portal 2.2 and it does work.

Very nice site you have BTW

thanks... It's a work in progress... but we're moving along... slowly -

FWIW I did not get it to work with the custom theme.. just the default.... hence the $$ request... so sorry if I wasn't clear.

Thanks,

KB
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 25, 2009, 01:21:58 AM
@ Killer

Attatch yourforum/Themes/ds-natural_20rc1/index.template.php and style.css files please
Title: Re: AjaxChat Integration
Post by: foempspeedy on April 25, 2009, 02:11:46 AM
I got it all working..thanks

Just one question, i got so many channels in chat because he makes each board one..Cant i remove them all and some channels unaccesable for members
Title: Re: AjaxChat Integration
Post by: mforum on April 25, 2009, 04:37:44 AM
Quote from: mrtrc266 on April 24, 2009, 09:26:00 PM
Quote from: mforum on April 24, 2009, 10:51:33 AM
pop up works in default theme
i have made all necessary edits in prof them i use and don`t work in any browser, just opens in same window.
Also, the error i posted previously began just after i installed  ajaxchat integration 3

Attatch your index.template.php file plz

here you are  :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 25, 2009, 08:23:26 AM
Quote from: foempspeedy on April 25, 2009, 02:11:46 AM
I got it all working..thanks

Just one question, i got so many channels in chat because he makes each board one..Cant i remove them all and some channels unaccesable for members

Glad you got it sorted :)

How to set and or make your channels and make private channels is outlined HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 25, 2009, 08:54:19 AM
Quote from: mforum on April 25, 2009, 04:37:44 AM
Quote from: mrtrc266 on April 24, 2009, 09:26:00 PM
Quote from: mforum on April 24, 2009, 10:51:33 AM
pop up works in default theme
i have made all necessary edits in prof them i use and don`t work in any browser, just opens in same window.
Also, the error i posted previously began just after i installed  ajaxchat integration 3

Attatch your index.template.php file plz

here you are  :)

Here you go I think the problem was the script for the popup was outside of the </body>

Title: Re: AjaxChat Integration
Post by: Killer-B on April 25, 2009, 10:26:10 AM
Quote from: mrtrc266 on April 25, 2009, 01:21:58 AM
@ Killer

Attach yourforum/Themes/ds-natural_20rc1/index.template.php and style.css files please

Hey TRC, I did turn on the default template last night and found something really interesting - the shoutbox showed up at the top of the forum no problem - but the portal page remained the same (custom theme) - I think with the latest version of SP - it is now "stand alone" so I need to look at those toggles again... but point is, it did not change colours (to the default blue) it remained the same custom theme!?  ???

Either way, here are the 2 files you asked about .. I did notice there are 2 "back up" versions with "~" in front of them... will assume that is part of the install process...

Anyway - I really appreciate the help mate..

Cheers,

KB
Title: Re: AjaxChat Integration
Post by: Killer-B on April 25, 2009, 10:30:16 AM
PS:

Just looked at your ARCADE page on MM - that's Awesome!! And you're running it on 2.0RC1?!? - May give it a try!!
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 25, 2009, 10:32:54 AM
ok nvm got it to work on  a fesh install of the cutsom theme! :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 25, 2009, 10:46:59 AM
Glad you got it sorted bluesinjid :)



@ Killer try this, your style.css looks good so just upload the index.template.

In the Admin/Modifications/Chat be sure to enable on all pages if you want it on your portal.

Yes the ~ is a backup made by SMF whenever you install a Mod via the package manager that edits that file.

Thanks....Yeah the Arcade on my live site is running on SMF 2 RC1 and the Arcade itself is E-Arcade Beta3 for SMF2 (http://www.ericsworld.eu/f2/index.php)

You should also check out Sleepy Arcade  (http://sleepy-arcade.ath.cx/index.php) for some great SMF Mods and Arcade Hacks and awesome SMF Support

Title: Re: AjaxChat Integration
Post by: Killer-B on April 25, 2009, 10:52:44 AM
Quote from: mrtrc266 on April 25, 2009, 10:46:59 AM
Glad you got it sorted bluesinjid :)



@ Killer try this, your style.css looks good so just upload the index.template.

In the Admin/Modifications/Chat be sure to enable on all pages if you want it on your portal.

Yes the ~ is a backup made by SMF whenever you install a Mod via the package manager that edits that file.

Thanks....Yeah the Arcade on my live site is running on SMF 2 RC1 and the Arcade is E-Arcade Beta3 for SMF2 (http://www.ericsworld.eu/f2/index.php)

You should also check out Sleepy Arcade  (http://sleepy-arcade.ath.cx/index.php) for some great SMF Mods and Arcade Hacks and awesome SMF Support



Wow - great!! thanks - will give it a try!! Thanks for the Sleepy link too... will check it out!

Have a great weekend -

Cheers,

KB

PS: If this works, send me the bill aye? :)
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 25, 2009, 10:54:35 AM
lol i got some problems modding it :P

// The userName used for ChatBot messages
$config['chatBotName'] = 'ChatBot';


Any idea where this can be found soi i can edit it?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 25, 2009, 10:57:40 AM
Quote from: bluesinjid on April 25, 2009, 10:54:35 AM
lol i got some problems modding it :P

// The userName used for ChatBot messages
$config['chatBotName'] = 'ChatBot';


Any idea where this can be found soi i can edit it?

That edit as well as a  lot of the customizing can be found HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 25, 2009, 10:59:58 AM
Change the name of your Chatbot
Find and change Chatbot to whatever you'd like.
Code: [Select]
// The userName used for ChatBot messages
$config['chatBotName'] = 'ChatBot';


Yes this is what it says in the FAQ but it doesnt say the file directory to edit it...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 25, 2009, 11:02:26 AM
@ Killer, that was a freebie :P

That should work for you, you can ceck it out here on my Test Site (http://www.monsters-mansion.com/smf2/index.php) that's using your index.template.

If for whatever reason it doesn't work I will check it out when I get back from work.

Have a good one.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 25, 2009, 11:06:28 AM
[quote]Add a Welcome Message when you users enter the Chat
Open.....yourforum/chat/js/custom.js

Find
Code: [Select]
// Overriding client side functionality: Add After (of course change Welcome to the Monsters Chat Room! to whatever you like.)

Code: [Select]

ajaxChat.customInitialize = function() {
   ajaxChat.addChatBotMessageToChatList('Welcome to the Monsters Chat Room!');
}
--------------------------------------------------------------------------------
Change the name of your Chatbot
Find and change Chatbot to whatever you'd like.

Code: [Select]
// The userName used for ChatBot messages
$config['chatBotName'] = 'ChatBot';[/quote]

Notice the big bold red letters :P

EDIT: disregard the big bold red letters LOL

Find /chat/lib/config.php
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 25, 2009, 11:09:47 AM
where do you exactly add this code?  ::)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 25, 2009, 11:21:02 AM
DISREGARD THE BIG BOLD RED LETTERS....LMAO! Sorry :P

Open.....yourforum/chat/lib/config.php
Find
// The userName used for ChatBot messages
$config['chatBotName'] = 'ChatBot';


And change the name ChatBot to whatever you want.
Title: Re: AjaxChat Integration
Post by: Killer-B on April 25, 2009, 11:25:01 AM
Quote from: mrtrc266 on April 25, 2009, 11:02:26 AM
@ Killer, that was a freebie :P

That should work for you, you can ceck it out here on my Test Site (http://www.monsters-mansion.com/smf2/index.php) that's using your index.template.

If for whatever reason it doesn't work I will check it out when I get back from work.

Have a good one.

WORKS PERFECT!!!!!!! THANK YOU THANK YOU THANK YOU!!! If you were a female, I'd kiss ya!!

MANY THANKS! www.f-1chat.com  WONDERFUL!!

Made my day mate!

Cheers,

KB
Title: Re: AjaxChat Integration
Post by: mforum on April 25, 2009, 11:31:04 AM
Quote from: mrtrc266 on April 25, 2009, 08:54:19 AM
Quote from: mforum on April 25, 2009, 04:37:44 AM
Quote from: mrtrc266 on April 24, 2009, 09:26:00 PM
Quote from: mforum on April 24, 2009, 10:51:33 AM
pop up works in default theme
i have made all necessary edits in prof them i use and don`t work in any browser, just opens in same window.
Also, the error i posted previously began just after i installed  ajaxchat integration 3

Attatch your index.template.php file plz

here you are  :)

Here you go I think the problem was the script for the popup was outside of the </body>

It opens in pop up now and i got rid of modSettings errors .. thanks a lot !!!!
but i have another error now in log:
8: Undefined index: enableChatButtonNo

the line that gives error is:
$num = ($modSettings['enableChatButtonNo']) ? $count : 0;
Title: Re: AjaxChat Integration
Post by: Killer-B on April 25, 2009, 11:32:11 AM
Just as a PS: It gives an error when in CHAT when Admin tries to delete a post... I normally wouldn't care, but need to watch it in case it gets spammed... and can't delete links/comments....

I have to run too - but will try to debug that one later... as well as add the arcade bits :)

Thanks again

PS:

[later]


(got it to delete with my global mod account on the main page.... just not in "chat" proper) so - at least I can still remove any junk .... so that's great! Cheers
Title: Re: AjaxChat Integration
Post by: foempspeedy on April 25, 2009, 02:22:55 PM
Quote from: mrtrc266 on April 25, 2009, 08:23:26 AM
Quote from: foempspeedy on April 25, 2009, 02:11:46 AM
I got it all working..thanks

Just one question, i got so many channels in chat because he makes each board one..Cant i remove them all and some channels unaccesable for members

Glad you got it sorted :)

How to set and or make your channels and make private channels is outlined HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

I checked the link, did edits for timer on inactive, array0 for only public channel, disallow people to change names and changed name to lounge . When i log on later, nothing changed...dont understand :(

Foemp
Title: Re: AjaxChat Integration
Post by: Montysnakes on April 25, 2009, 04:53:37 PM
I installed the chat on smf 2.0 and it installed fully.
But there are no buttons and in admin/modifications theres nothing, only Miscellaneous....

What did i do wrong?
Its an fresh install and i had the same thing on 1.1.8
Title: Re: AjaxChat Integration
Post by: 4T3IG0 on April 25, 2009, 04:59:14 PM
Some ideas to New Features:

1 - Integrate default Smileys.

2 - Group colors.

3 - More Moderate permissions.

Guess there's  lots of work for now...   ;)
Title: Re: AjaxChat Integration
Post by: munty on April 25, 2009, 05:14:37 PM
Is there anyway to force people to stay in the shoutbox side of things, and not the external chatroom itself?
Title: Re: AjaxChat Integration
Post by: Godsongz on April 26, 2009, 12:44:48 AM
Can AjaxChat's ShoutBox be used in a TinyPortal block?
Title: Re: AjaxChat Integration
Post by: candidosa2 on April 26, 2009, 02:55:15 AM
when done
when update dont forget portuguese and brazilian

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//Begin AjaxChat Integration Suporte smfpt.net translate candidosa2
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' utilizador est&aacute; no chat';
$txt['chat_users'] = ' utilizadores est&atilde;o no chat:';
$txt['chat_no_user'] = 'Nenhum utilizador est&aacute; no chat.';
$txt['enableShoutBox'] = 'Activar o ShoutBox?';
$txt['enableChatButtonNo'] = 'Activar numera&ccedil;&atilde;o utilizadores no chat online em chat bot&atilde;o?';
$txt['enableChatBelowPM'] = 'Mostrar utilizadores online abaixo total registado no tempo sec&ccedil;&atilde;o?';
$txt['anyPageShoutBox'] = 'Verifique para Shoutbox em qualquer p&aacute;gina ou desmarque para apenas na p&aacute;gina index:';
$txt['chatPopUp'] = 'O Chat na p&aacute;gina popup?';
$txt['miniChat'] = 'Integrar shout box e a Sala do chat?';
$txt['permissionname_chat_access'] = 'Acesso ao Chat';
$txt['permissionhelp_chat_access'] = 'Os utilizadores podem usar o chat, ou n&atilde;o podem.';
$txt['permissionname_shout_access'] = 'Usar shoutBox';
$txt['permissionhelp_shout_access'] = 'D&aacute; acesso ao utilizar o shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//Begin AjaxChat Integration Suporte smfpt.net translate candidosa2
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' utilizador est&aacute; no chat';
$txt['chat_users'] = ' utilizadores est&atilde;o no chat:';
$txt['chat_no_user'] = 'Nenhum utilizador est&aacute; no chat.';
$txt['enableShoutBox'] = 'Activar o ShoutBox?';
$txt['enableChatButtonNo'] = 'Activar numera&ccedil;&atilde;o utilizadores no chat online em chat bot&atilde;o?';
$txt['enableChatBelowPM'] = 'Mostrar utilizadores online abaixo total registado no tempo sec&ccedil;&atilde;o?';
$txt['anyPageShoutBox'] = 'Verifique para Shoutbox em qualquer p&aacute;gina ou desmarque para apenas na p&aacute;gina index:';
$txt['chatPopUp'] = 'O Chat na p&aacute;gina popup?';
$txt['miniChat'] = 'Integrar shout box e a Sala do chat?';
$txt['permissionname_chat_access'] = 'Acesso ao Chat';
$txt['permissionhelp_chat_access'] = 'Os utilizadores podem usar o chat, ou n&atilde;o podem.';
$txt['permissionname_shout_access'] = 'Usar shoutBox';
$txt['permissionhelp_shout_access'] = 'D&aacute; acesso ao utilizar o shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//Begin AjaxChat Integration Suporte smfpt.net translate candidosa2
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' utilizador est&aacute; no chat';
$txt['chat_users'] = ' utilizadores est&atilde;o no chat:';
$txt['chat_no_user'] = 'Nenhum utilizador est&aacute; no chat.';
$txt['enableShoutBox'] = 'Activar o ShoutBox?';
$txt['enableChatButtonNo'] = 'Activar numera&ccedil;&atilde;o utilizadores no chat online em chat bot&atilde;o?';
$txt['enableChatBelowPM'] = 'Mostrar utilizadores online abaixo total registado no tempo sec&ccedil;&atilde;o?';
$txt['anyPageShoutBox'] = 'Verifique para Shoutbox em qualquer p&aacute;gina ou desmarque para apenas na p&aacute;gina index:';
$txt['chatPopUp'] = 'O Chat na p&aacute;gina popup?';
$txt['miniChat'] = 'Integrar shout box e a Sala do chat?';
$txt['permissionname_chat_access'] = 'Acesso ao Chat';
$txt['permissionhelp_chat_access'] = 'Os utilizadores podem usar o chat, ou n&atilde;o podem.';
$txt['permissionname_shout_access'] = 'Usar shoutBox';
$txt['permissionhelp_shout_access'] = 'D&aacute; acesso ao utilizar o shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//Begin AjaxChat Integration Suporte smfpt.net translate candidosa2
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' utilizador est&aacute; no chat';
$txt['chat_users'] = ' utilizadores est&atilde;o no chat:';
$txt['chat_no_user'] = 'Nenhum utilizador est&aacute; no chat.';
$txt['enableShoutBox'] = 'Activar o ShoutBox?';
$txt['enableChatButtonNo'] = 'Activar numera&ccedil;&atilde;o utilizadores no chat online em chat bot&atilde;o?';
$txt['enableChatBelowPM'] = 'Mostrar utilizadores online abaixo total registado no tempo sec&ccedil;&atilde;o?';
$txt['anyPageShoutBox'] = 'Verifique para Shoutbox em qualquer p&aacute;gina ou desmarque para apenas na p&aacute;gina index:';
$txt['chatPopUp'] = 'O Chat na p&aacute;gina popup?';
$txt['miniChat'] = 'Integrar shout box e a Sala do chat?';
$txt['permissionname_chat_access'] = 'Acesso ao Chat';
$txt['permissionhelp_chat_access'] = 'Os utilizadores podem usar o chat, ou n&atilde;o podem.';
$txt['permissionname_shout_access'] = 'Usar shoutBox';
$txt['permissionhelp_shout_access'] = 'D&aacute; acesso ao utilizar o shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration
]]></add>
</operation>
</file>





<file name="$languagedir/Help.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//Begin AjaxChat Integration translate By Candidosa2 Suporte smfpt.net
$helptxt['enableShoutBox'] = 'Isto permite que o ajaxchat Shoutbox na sua p&aacute;gina index.';
$helptxt['enableChatButtonNo'] = 'Isto mostra o n&uacute;mero de utilizadores no chat chating bot&atilde;o.';
$helptxt['enableChatBelowPM'] = 'Esta mostra o chat online utilizadores abaixo tempo total registrado na sec&ccedil;&atilde;o.';
$helptxt['anyPageShoutBox'] = 'Se voc&ecirc; activar este Shoutbox ser&aacute; mostrado em todas as p&aacute;ginas, mas se o seu f&oacute;rum deficientes Shoutbox ser&aacute; mostrado apenas na p&aacute;gina index.';
$helptxt['chatPopUp'] = 'Se activar quando se clica no bot&atilde;o chat ir&aacute; carregar uma nova p&aacute;gina popup.';
$helptxt['miniChat'] = 'Se activado Shoutbox e chat tornou mesma coisa e os utilizadores podem conversar em cada p&aacute;gina';
//End AjaxChat Integration
]]></add>
</operation>
</file>
<file name="$languagedir/Help.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//Begin AjaxChat Integration translate By Candidosa2 Suporte smfpt.net
$helptxt['enableShoutBox'] = 'Isto permite que o ajaxchat Shoutbox na sua p&aacute;gina index.';
$helptxt['enableChatButtonNo'] = 'Isto mostra o n&uacute;mero de utilizadores no chat chating bot&atilde;o.';
$helptxt['enableChatBelowPM'] = 'Esta mostra o chat online utilizadores abaixo tempo total registrado na sec&ccedil;&atilde;o.';
$helptxt['anyPageShoutBox'] = 'Se voc&ecirc; activar este Shoutbox ser&aacute; mostrado em todas as p&aacute;ginas, mas se o seu f&oacute;rum deficientes Shoutbox ser&aacute; mostrado apenas na p&aacute;gina index.';
$helptxt['chatPopUp'] = 'Se activar quando se clica no bot&atilde;o chat ir&aacute; carregar uma nova p&aacute;gina popup.';
$helptxt['miniChat'] = 'Se activado Shoutbox e chat tornou mesma coisa e os utilizadores podem conversar em cada p&aacute;gina';
//End AjaxChat Integration
]]></add>
</operation>
</file>
<file name="$languagedir/Help.portuguese_brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//Begin AjaxChat Integration translate By Candidosa2 Suporte smfpt.net
$helptxt['enableShoutBox'] = 'Isto permite que o ajaxchat Shoutbox na sua página index.';
$helptxt['enableChatButtonNo'] = 'Isto mostra o número de utilizadores no chat chating botão.';
$helptxt['enableChatBelowPM'] = 'Esta mostra de bate-papo online utilizadores abaixo tempo total registrado na seccao.';
$helptxt['anyPageShoutBox'] = 'Se você activar esta Shoutbox ser&aacute; mostrado em todas as páginas, mas se o seu fórum deficientes Shoutbox será mostrado apenas na página index.';
$helptxt['chatPopUp'] = 'Se ativar quando se clica no botão chat ir&aacute; carregar uma nova página popup.';
$helptxt['miniChat'] = 'Se ativado Shoutbox e chat tornou mesma coisa e os utilizadores podem conversar em cada p&aacute;gina';
//End AjaxChat Integration
]]></add>
</operation>
</file>
<file name="$languagedir/Help.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//Begin AjaxChat Integration translate By Candidosa2 Suporte smfpt.net
$helptxt['enableShoutBox'] = 'Isto permite que o ajaxchat Shoutbox na sua p&aacute;gina index.';
$helptxt['enableChatButtonNo'] = 'Isto mostra o n&uacute;mero de utilizadores no chat chating bot&atilde;o.';
$helptxt['enableChatBelowPM'] = 'Esta mostra o chat online utilizadores abaixo tempo total registrado na sec&ccedil;&atilde;o.';
$helptxt['anyPageShoutBox'] = 'Se voc&ecirc; activar este Shoutbox ser&aacute; mostrado em todas as p&aacute;ginas, mas se o seu f&oacute;rum deficientes Shoutbox ser&aacute; mostrado apenas na p&aacute;gina index.';
$helptxt['chatPopUp'] = 'Se activar quando se clica no bot&atilde;o chat ir&aacute; carregar uma nova p&aacute;gina popup.';
$helptxt['miniChat'] = 'Se activado Shoutbox e chat tornou mesma coisa e os utilizadores podem conversar em cada p&aacute;gina';
//End AjaxChat Integration
]]></add>
</operation>
</file>
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 26, 2009, 10:12:22 AM
@ Killer, glad you got it sorted and we met the deadline ;) Did you get your admin account sorted?

@ foempspeedy if you don't have this sorted yet attatch your chat/lib/config.php file please.

@ Montysnakes are you using a custom theme? If so please read THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

@ munty you could remove the chat button

@Godsongz
http://www.simplemachines.org/community/index.php?topic=257973.msg2030315#msg2030315
Title: Re: AjaxChat Integration
Post by: foempspeedy on April 26, 2009, 10:34:11 AM
Quote from: mrtrc266 on April 26, 2009, 10:12:22 AM


@ foempspeedy if you don't have this sorted yet attatch your chat/lib/config.php file please.

Here it is.. Basicly i just want only public forum up, named Lounge 1 ( and the 2customs..no others like all boards i got now), disabling members to change name (very important), and timer on inactive to 5mins..
If you can help with that, thats great. I checked chmod and its on 666

If  its possible, i needed 2custom channels also : "Lounge 2" and  "Support Zone"

Thanks alot allready for support and help !
Title: Re: AjaxChat Integration
Post by: Praatwurst on April 26, 2009, 11:05:46 AM
Quote from: mrtrc266 on April 23, 2009, 11:08:12 AM
@ Praatwurst you can make it look like the ChatBot talks back to your members with the /takeover command that is explained HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Thanks, this is a really cool function!

But is it also possible to let the bot talk when some says something like 'Bot, how are you today?' and that the bot will answer something like 'fine, thank you!', like an automatic script or something?

Is that possible?  :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 26, 2009, 11:37:56 AM
@ foempspeedy

Default Public Channel renamed to Lounge_1

Custom Channels Lounge_2 and Support_Zone are made

Timeout for inactive users set to 5 minutes, and checks every 5 minutes

Changing username is disabled

Tested on my test site and everything seems to be working fine....if not I will check it when I get off work.

Enjoy ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 26, 2009, 11:39:53 AM
Quote from: Praatwurst on April 26, 2009, 11:05:46 AM
Quote from: mrtrc266 on April 23, 2009, 11:08:12 AM
@ Praatwurst you can make it look like the ChatBot talks back to your members with the /takeover command that is explained HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Thanks, this is a really cool function!

But is it also possible to let the bot talk when some says something like 'Bot, how are you today?' and that the bot will answer something like 'fine, thank you!', like an automatic script or something?

Is that possible?  :D

LOL That would be pretty cool but I don't think anything like that is available. I'm sure it's possible but sound like it would take some serious coding. You would probably get a better answere HERE (https://sourceforge.net/forum/?group_id=214758)
Title: Re: AjaxChat Integration
Post by: foempspeedy on April 26, 2009, 11:52:10 AM
Quote from: mrtrc266 on April 26, 2009, 11:37:56 AM
@ foempspeedy

Default Public Channel renamed to Lounge_1

Custom Channels Lounge_2 and Support_Zone are made

Timeout for inactive users set to 5 minutes, and checks every 5 minutes

Changing username is disabled

Tested on my test site and everything seems to be working fine....if not I will check it when I get off work.

Enjoy ;)

when i go to Ftp and try to change the file with yours it fails to upload.

53 Rename/move failure: Permission denied 
config.php - 0 bytes transferred 
Transfer time: 00:00:06 
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 26, 2009, 11:57:51 AM
Are you using a FTP Program like FileZilla (http://filezilla-project.org/download.php) or just your cPanel?

That sounds like a server issue.

I'm off to work for now...will check back later.
Title: Re: AjaxChat Integration
Post by: foempspeedy on April 26, 2009, 12:00:45 PM
Quote from: mrtrc266 on April 26, 2009, 11:57:51 AM
Are you using a FTP Program like FileZilla (http://filezilla-project.org/download.php) or just your cPanel?

That sounds like a server issue.

I'm off to work for now...will check back later.
Core ftp..other edits work,  doesnt even allow me to change 666..I have to ask my host then ?
Title: Re: AjaxChat Integration
Post by: Killer-B on April 26, 2009, 12:14:29 PM
Quote from: mrtrc266 on April 26, 2009, 10:12:22 AM
@ Killer, glad you got it sorted and we met the deadline ;) Did you get your admin account sorted?


Ya - it's all good man - Thanks to you! :)

I added a PS: on my note, but think I did get it sorted... but I think there's a "hiccup" between chat and shout - but we're mainly using SB - so - for now it's all good...

2 things I did notice - Never realized what a "drag" it was on pageloads... Really slows things down... so for non-race days, will toggle it off for now (until we figure out how to speed things up) -

Also, we IDEALLY would want it just on the portal page... but right now (via check boxes) it's an "all or nothing or index only" proposition... so maybe something to think about for futire releases.... as if we were able to just keep it on the portal page (not index page only option) that would offload the usage on the forum pageturns and let peeps roam the site faster... (makes sense?) sorry, am half asleep... LOL

Thanks again for all your help!

KB :)
Title: Re: AjaxChat Integration
Post by: OntarioAquariaClub on April 26, 2009, 12:17:03 PM
I got the chat to open. My only problem is that I cannot see anybody in it, nor can they see me. I also cannot see any chat messages, sent or recieved. Any ideas?
Title: Re: AjaxChat Integration
Post by: foempspeedy on April 26, 2009, 12:58:59 PM
Quote from: foempspeedy on April 26, 2009, 12:00:45 PM
Quote from: mrtrc266 on April 26, 2009, 11:57:51 AM
Are you using a FTP Program like FileZilla (http://filezilla-project.org/download.php) or just your cPanel?

That sounds like a server issue.

I'm off to work for now...will check back later.
Core ftp..other edits work,  doesnt even allow me to change 666..I have to ask my host then ?

Ok host changed the files acces, works now perfect

its normal that when people try to change nickname it shows error now ?

Error: Command not allowed: /nick

Thanks
Title: Re: AjaxChat Integration
Post by: Godsongz on April 26, 2009, 01:32:33 PM
When a users connects to the chatroom, the last 10 lines of chat (prior to their entering) are displayed.  Is there a way to have a user start with a "clean slate" when they open the chatroom?

EDIT:
Actually, I think I figured this one out...  in chat/lib/config.php I changed...
$config['requestMessagesLimit'] = 10;
to...
$config['requestMessagesLimit'] = 1;

Seems to work.
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 26, 2009, 08:32:46 PM
hm ive got some problems or more specifically bug? Remember i said i got the chat to work? Well after installing some more mods, i get the dang connection error again! Any idea if maybe a mod will interfere with this mod? I think it could be my tinyportal mod? :-\
Title: Re: AjaxChat Integration
Post by: 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
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 26, 2009, 09:48:01 PM
Hey I have a minor problem with the shoutbox, its functioning 100% but it does obied by the word censor, is there any way to make it use the word censor?

thanks in advanced :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 26, 2009, 09:50:58 PM
Quote from: foempspeedy on April 26, 2009, 12:58:59 PM
Quote from: foempspeedy on April 26, 2009, 12:00:45 PM
Quote from: mrtrc266 on April 26, 2009, 11:57:51 AM
Are you using a FTP Program like FileZilla (http://filezilla-project.org/download.php) or just your cPanel?

That sounds like a server issue.

I'm off to work for now...will check back later.
Core ftp..other edits work,  doesnt even allow me to change 666..I have to ask my host then ?

Ok host changed the files acces, works now perfect

its normal that when people try to change nickname it shows error now ?

Error: Command not allowed: /nick

Thanks

Glad you got it sorted, yes that is the error that you recieve if nicks are disabled.

Enjoy the Mod
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 26, 2009, 10:24:07 PM
Quote from: bluesinjid on April 26, 2009, 08:32:46 PM
hm ive got some problems or more specifically bug? Remember i said i got the chat to work? Well after installing some more mods, i get the dang connection error again! Any idea if maybe a mod will interfere with this mod? I think it could be my tinyportal mod? :-\

What was the last Mod you installed before it stopped working?
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 26, 2009, 10:43:19 PM
well it never worked, this was the 1st mod i installed it didnt work then either ???
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 26, 2009, 10:57:15 PM
Quote from: johncccccc on April 26, 2009, 09:48:01 PM
Hey I have a minor problem with the shoutbox, its functioning 100% but it does obied by the word censor, is there any way to make it use the word censor?

thanks in advanced :)

Quote from: johncccccc on April 26, 2009, 10:43:19 PM
well it never worked, this was the 1st mod i installed it didnt work then either ???

I'm confused, does it work or does it not work? LOL

Im not sure about the word censor
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 26, 2009, 11:01:17 PM
well what i mean, is when someone flames in the shoutbox the word censor is ineffective, it does not block them out likw it does on the forum

any ideas how to make it work?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 26, 2009, 11:09:28 PM
The Database for the forum and the Database for the Chat are totally seperate. You might be able to get a better answer HERE (https://sourceforge.net/forum/?group_id=214758) at the actaul AJAX Chat Site.
Title: Re: AjaxChat Integration
Post by: areza on April 27, 2009, 05:33:25 AM
i newbie for using smf...but seem i like it..

i have try to using ajaxchat 3.0 but there's a problem :

========================
FTP Information Required
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.
FTP Server:    localhost
Port: 21
Username:    
Password:    
Local path to SMF:    /home/sloki/user/[user]/sites/[sites]/www

what should i have to do with this problem?

thanks.

Title: Re: AjaxChat Integration
Post by: 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.
Title: Re: AjaxChat Integration
Post by: phoenixjay on April 27, 2009, 10:13:53 AM
http://community.carpetempus.com/index.php

I am using SMF 1.1.8

I am using the SMF Default Theme - Core

I have no other mods installed

I have installed this package and everything seemed to go ok but there is no chat button visible, in features and options there are some new check boxes but no text beside them to explain what they are actually for - same within the permissions section, there are two new boxes but no text beside them to explain their purpose.

I am simply looking to use this as a seperate chat room, and not as the shoutbox.

Thanks in advance if you can help.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 10:22:42 AM
You are missing the language strings, do you have your forum set to UTF-8?

If so add this to your Modifications.english-utf8.php file


//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Use shoutBox';
$txt['permissionhelp_shout_access'] = 'Give access to use the shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
$txt['chat_settings_desc'] = 'AjaxChat Settings';
//End AjaxChat Integration
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 10:27:14 AM
@ you can goto you cPanel and change the file permissions (CHMOD them) or your can use an FTP program like FileZilla and do it from there (recommended)

See here for what they should be
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: 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 ?
Title: Re: AjaxChat Integration
Post by: 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"
Title: Re: AjaxChat Integration
Post by: 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
Title: Re: AjaxChat Integration
Post by: 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)',
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 12:02:03 PM
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 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)?
Title: Re: AjaxChat Integration
Post by: phoenixjay on April 27, 2009, 12:04:12 PM
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?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 12:07:40 PM
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 (https://sourceforge.net/forum/message.php?msg_id=4860651)
Title: Re: AjaxChat Integration
Post by: OntarioAquariaClub on April 27, 2009, 12:09:15 PM
Just made sure all permissions were set properly and they are.
Title: Re: AjaxChat Integration
Post by: 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

Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 12:23:34 PM
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 (http://oac.comoj.com/)

I get a blank page?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 12:24:14 PM
@ phoenixjay (http://www.simplemachines.org/community/index.php?action=profile;u=195835)  did you do all the edits for your custom theme outline HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) ?

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>';
Title: Re: AjaxChat Integration
Post by: OntarioAquariaClub on April 27, 2009, 12:26:47 PM
you shouldnt get a blank page.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 12:48:48 PM
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
Title: Re: AjaxChat Integration
Post by: OntarioAquariaClub on April 27, 2009, 12:56:13 PM
from admin panel i enabled to guests. use username guest with no password.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 01:08:37 PM
@ OntarioAquariaClub

you have changed the file permissions (CHMOD) for yourforum/chat/index.php and yourforum/shoutbox/index.php to 755 ?
Title: Re: AjaxChat Integration
Post by: 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
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 27, 2009, 01:26:46 PM
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.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 01:42:48 PM
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.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 01:47:35 PM
@ johncccc try enabling "Enable online chat users numbering on chat button?"
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 27, 2009, 02:12:30 PM
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.
Title: Re: AjaxChat Integration
Post by: bullbreedluverz on April 27, 2009, 02:22:41 PM
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           */
/* ************************************* */

Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 02:38:40 PM
Thanks stikkki, yes that is true the @import url(../../chat/css/shoutbox.css); should always be at the top of the style.css
Title: Re: AjaxChat Integration
Post by: blanix on April 27, 2009, 02:43:01 PM
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
Title: Re: AjaxChat Integration
Post by: excaliburj on April 27, 2009, 02:57:35 PM
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.
Title: Re: AjaxChat Integration
Post by: blanix on April 27, 2009, 03:01:35 PM
Quote from: excaliburj on April 27, 2009, 02:57:35 PM
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.

aye captain ^^

i will wait and test again


thx for reply
Title: Re: AjaxChat Integration
Post by: excaliburj on April 27, 2009, 03:09:15 PM
It's either wait -OR- empty out your browser cache to clear the old copy of the file -OR- track down where that file is specified in a .php file and change the part of the line that has "config.js" to be "config.js?2" (or something, anything, after a '?'). That unused parameter would make the browser think it's a different file and cause a new download into your cache.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 03:27:28 PM
Thanks excaliburj but it seems there were a few more edits required then just the config.js file

Ok blanix here we go :D

open /chat/lib/template/loggedIn.html

Find

   ajaxChatConfig.socketServerChatID = parseInt('[SOCKET_SERVER_CHAT_ID/]');

Replace with

   ajaxChatConfig.socketServerChatID = parseInt('[SOCKET_SERVER_CHAT_ID/]');
   ajaxChatConfig.settings.dateFormat = '(%Y.%m.%d - %H:%i:%s)';
   ajaxChatConfig.nonPersistentSettings.push('dateFormat');



To get it to behave the same in the ShoutBox open /chat/lib/template/shoutbox.html

Find

         ajaxChatConfig.settings.blink = false;


Replace with

         ajaxChatConfig.settings.blink = false;
         ajaxChatConfig.settings.dateFormat = '(%Y.%m.%d - %H:%i:%s)';



Find

         ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');


Replace with

         ajaxChatConfig.nonPersistentSettings.push('dateFormat','autoFocus','wordWrap','maxWordLength','blink');

Title: Re: AjaxChat Integration
Post by: blanix on April 27, 2009, 03:39:00 PM
@mrtrc266

you are great, big thx  :D

yiha and it works  :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 03:41:31 PM
Quote from: blanix on April 27, 2009, 03:39:00 PM
@mrtrc266

you are great, big thx  :D

oh and it works  :D

WoooHooo! Glad I could help. Enjoy :D
Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 03:52:13 PM
I downloaded the it in the package thing, but it doesn't show...

????
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 04:45:21 PM
Quote from: Moneymaker13 on April 27, 2009, 03:52:13 PM
I downloaded the it in the package thing, but it doesn't show...

??? ?

What exactly do you mean?
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 27, 2009, 06:20:20 PM
ok I finally repaired my forum, ive installed this mod and only this mod and im still receiving this these errors in the error log, and for some reason the shoutbox has "ChatBot: Error: Connection status: 500" all the time and the chat room throws me a internal server error (500)

it does this on the default theme and custom one

any ideas?
Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 06:42:31 PM
Quote from: mrtrc266 on April 27, 2009, 04:45:21 PM
Quote from: Moneymaker13 on April 27, 2009, 03:52:13 PM
I downloaded the it in the package thing, but it doesn't show...

??? ?

What exactly do you mean?

I downloaded the mod, installed, and applied it. But its not working!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 06:54:23 PM
@ John now try this regarding the 500 error
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 06:56:26 PM
Quote from: Moneymaker13 on April 27, 2009, 06:42:31 PM
Quote from: mrtrc266 on April 27, 2009, 04:45:21 PM
Quote from: Moneymaker13 on April 27, 2009, 03:52:13 PM
I downloaded the it in the package thing, but it doesn't show...

??? ?



What exactly do you mean?

I downloaded the mod, installed, and applied it. But its not working!

What version of SMF do you have?
Are you using a custom theme, if so which one?
Any visible errors?
Any errors in the error log?
Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 06:58:17 PM
Quote from: mrtrc266 on April 27, 2009, 06:56:26 PM
Quote from: Moneymaker13 on April 27, 2009, 06:42:31 PM
Quote from: mrtrc266 on April 27, 2009, 04:45:21 PM
Quote from: Moneymaker13 on April 27, 2009, 03:52:13 PM
I downloaded the it in the package thing, but it doesn't show...

??? ?



What exactly do you mean?

I downloaded the mod, installed, and applied it. But its not working!

What version of SMF do you have?
Are you using a custom theme, if so which one?
Any visible errors?
Any errors in the error log?

1.1.8
Nope, I'm using Mavi Dus.
I don't see the shoutbox/chat anywhere other than the packages.
Title: Re: AjaxChat Integration
Post by: break4g.com on April 27, 2009, 07:09:31 PM
Quote from: Moneymaker13 on April 27, 2009, 06:58:17 PM
Quote from: mrtrc266 on April 27, 2009, 06:56:26 PM
Quote from: Moneymaker13 on April 27, 2009, 06:42:31 PM
Quote from: mrtrc266 on April 27, 2009, 04:45:21 PM
Quote from: Moneymaker13 on April 27, 2009, 03:52:13 PM
I downloaded the it in the package thing, but it doesn't show...

??? ?



What exactly do you mean?

I downloaded the mod, installed, and applied it. But its not working!

What version of SMF do you have?
Are you using a custom theme, if so which one?
Any visible errors?
Any errors in the error log?

1.1.8
Nope, I'm using Mavi Dus.
I don't see the shoutbox/chat anywhere other than the packages.


i have the same prob .

QuoteWhat version of SMF do you have?  ==> 1.1.8
Are you using a custom theme, if so which one? ==> Alienation design by Bloc ( free theme )
Any visible errors? ==>  nothing ( all msg show that the installation is successful )
Any errors in the error log? ==> no
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 27, 2009, 07:11:01 PM
lol... i thought it was my database or something, i dropped all the tables and re-installed to find the error still there, but yes, changing the permissions for those folders to "775" did the trick.

Thanks :)

However, I'm still getting the error in the error log with that setting checked and with no other mods installed

any more idea's?

EDIT: more info:


8: Undefined index: enableChatBelowPM

File: /****/****/*********/Themes/default/Display.template.php (eval?)
Line: 221
Title: Re: AjaxChat Integration
Post by: dragtuners on April 27, 2009, 07:13:25 PM
i just install it in my and don't see nothing what i have to do after i install it this is my site www.dragunters.com

lol btw dose any know how i add the forum buttom to the main page

thanks
Title: Re: AjaxChat Integration
Post by: break4g.com on April 27, 2009, 07:16:42 PM
Quote from: dragtuners on April 27, 2009, 07:13:25 PM
i just install it in my and don't see nothing what i have to do after i install it this is my site www.dragunters.com

lol btw dose any know how i add the forum buttom to the main page

thanks

Adresse introuvable

Firefox ne peut trouver le serveur à l'adresse www.dragunters.com.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 07:17:47 PM
@ Money and break and dragtuners

if you're using custom themes you have to do all the manual edits for your theme explained HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

@ john I'm not sure, what language are you using? UTF-8 by any chance?
Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 07:20:28 PM
Quote from: mrtrc266 on April 27, 2009, 07:17:47 PM
@ Money and break and dragtuners

if you're using custom themes you have to do all the manual edits for your theme explained HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

@ john I'm not sure, what language are you using? UTF-8 by any chance?

But I'l not using a custom theme.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 07:27:56 PM
Quote from: Moneymaker13 on April 27, 2009, 03:52:13 PM
1.1.8
Nope, I'm using Mavi Dus.
I don't see the shoutbox/chat anywhere other than the packages.

I though that meant you're using the Mavi Dus theme ???

What's the URL to your site?
Title: Re: AjaxChat Integration
Post by: break4g.com on April 27, 2009, 07:28:56 PM
Quote from: mrtrc266 on April 27, 2009, 07:17:47 PM
@ Money and break and dragtuners

if you're using custom themes you have to do all the manual edits for your theme explained HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

@ john I'm not sure, what language are you using? UTF-8 by any chance?

thank you so much ...i'll star now and reply on u with the ruslta when i finish :)
Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 07:29:46 PM
Quote from: mrtrc266 on April 27, 2009, 07:27:56 PM
Quote from: Moneymaker13 on April 27, 2009, 03:52:13 PM
1.1.8
Nope, I'm using Mavi Dus.
I don't see the shoutbox/chat anywhere other than the packages.

I though that meant you're using the Mavi Dus theme ???

What's the URL to your site?

Yeah, I am, thats not custom is it?

http://teensreallymatter.com/forums
Title: Re: AjaxChat Integration
Post by: blanix on April 27, 2009, 07:40:52 PM
hm, i have a problem with the membercolors on shoutbox oO

normal members are black, ok

real admin are red, ok

but ..

second admingroup with all permissions are green, ?!
(overall on my board its red, but not in shoutbox)

global mods are green, ?!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 07:43:28 PM
@ Money, yes that is custom (meaing not the default theme provided my SMF)

Please attatch these files...

/yourforum/Themes/mavidus/BoardIndex.template.php
/yourforum/Themes/mavidus/index.template.php
/yourforum/Themes/mavidus/style.css


Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 07:46:08 PM
@ Blanix, the chat/shout does not pull you membergroup colors from SMF you can change the colors in chat/css/shoutbox.css for Users, Admin and Moderators.
Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 07:46:44 PM
Quote from: mrtrc266 on April 27, 2009, 07:43:28 PM
@ Money, yes that is custom (meaing not the default theme provided my SMF)

Please attatch these files...

/yourforum/Themes/mavidus/BoardIndex.template.php
/yourforum/Themes/mavidus/index.template.php
/yourforum/Themes/mavidus/style.css

Oh I see now, sorry!

Where to I attach  them to? The package? Which file then?
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 27, 2009, 08:08:16 PM
here are the mods im using.

1.     Aeva ~ Auto-Embed Video & Audio      6.2.76       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    Global Headers Footers    1.4.1    [ Uninstall ] [ List Files ] [ Delete ]
3.    Favicon    1.2    [ Apply Mod ] [ List Files ] [ Delete ]
4.    AjaxChat Integration    3.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Pretty URLs    0.9    [ Uninstall ] [ List Files ] [ Delete ]
6.    SMF Gallery Lite    2.0.5    [ Apply Mod ] [ List Files ] [ Delete ]
7.    SMF Staff Page    1.6    [ Uninstall ] [ List Files ] [ Delete ]
8.    Treasury    2.34    [ Uninstall ] [ List Files ] [ Delete ]
9.    Memberlist_Xrevolution    1.2    [ Uninstall ] [ List Files ] [ Delete ]
10.    TinyPortal    1.075    [ Uninstall ] [ List Files ] [ Delete ]
11.    Ad Managment    2.3    [ Uninstall ] [ List Files ] [ Delete ]
Installed mods: current version older version
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 08:08:41 PM
You need to download them from your server

The best and easiest way to do this is download and install an FTP Program like FileZilla (http://filezilla-project.org/download.php?type=client) and use your username and password for your FTP access provided by your host.

Then you will be able to download those files to your PC and then you can attach them here. (if you look right below where you are typing you see "Additional Options" and then "Attach")
Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 08:11:01 PM
Quote from: mrtrc266 on April 27, 2009, 08:08:41 PM
You need to download them from your server

The best and easiest way to do this is download and install an FTP Program like FileZilla (http://filezilla-project.org/download.php?type=client) and use your username and password for your FTP access provided by your host.

Then you will be able to download those files to your PC and then you can attach them here. (if you look right below where you are typing you see "Additional Options" and then "Attach")

Was that to me?

I have file zilla. 
Title: Re: AjaxChat Integration
Post by: blanix on April 27, 2009, 08:14:10 PM
Quote from: mrtrc266 on April 27, 2009, 07:46:08 PM
@ Blanix, the chat/shout does not pull you membergroup colors from SMF you can change the colors in chat/css/shoutbox.css for Users, Admin and Moderators.

hm ok, a bug ?

.. the second admingroup isn't a moderator and shows green

or an unready future feature for this mod ?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 08:14:22 PM
LOL Sorry, yes that was to you.....download those files that I posted above to your PC and then upload them to here so I can edit them for you.
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 27, 2009, 08:15:52 PM
so do you know if any ofd them are known for conflicting with this mod?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 08:16:11 PM
Quote from: blanix on April 27, 2009, 08:14:10 PM
Quote from: mrtrc266 on April 27, 2009, 07:46:08 PM
@ Blanix, the chat/shout does not pull you membergroup colors from SMF you can change the colors in chat/css/shoutbox.css for Users, Admin and Moderators.

hm ok, a bug ?

.. the second admingroup isn't a moderator and shows green

or an unready future feature for this mod ?

I believe it only regognizes Admin as the #1 Admin everyone else with admin or moderator rights are recognized as Moderators....only as far as the chat is concerned.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 08:17:30 PM
Quote from: bluesinjid on April 27, 2009, 08:15:52 PM
so do you know if any ofd them are known for conflicting with this mod?

Pretty URL's!!! LOL about 50 pages back there was a ix for it...I'll try to find it.
Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 08:19:47 PM
Quote from: mrtrc266 on April 27, 2009, 08:14:22 PM
LOL Sorry, yes that was to you.....download those files that I posted above to your PC and then upload them to here so I can edit them for you.

LOL thats okay. Thanks for all your help btw, so far lol..

Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 27, 2009, 08:30:07 PM
Quote from: mrtrc266 on April 27, 2009, 08:17:30 PM
Quote from: bluesinjid on April 27, 2009, 08:15:52 PM
so do you know if any ofd them are known for conflicting with this mod?

Pretty URL's!!! LOL about 50 pages back there was a ix for it...I'll try to find it.

AH!!!! I HAVE THAT MOD! Ok thanks for pointing that out!  8)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 08:31:48 PM
Quote from: bluesinjid on April 27, 2009, 08:30:07 PM
Quote from: mrtrc266 on April 27, 2009, 08:17:30 PM
Quote from: bluesinjid on April 27, 2009, 08:15:52 PM
so do you know if any ofd them are known for conflicting with this mod?

Pretty URL's!!! LOL about 50 pages back there was a ix for it...I'll try to find it.

Here you go....read and try this....
http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536 (http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536)

AH!!!! I HAVE THAT MOD! Ok thanks for pointing that out!  8)
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 27, 2009, 08:34:59 PM
aha! Many thanks  :D Youve always give great instant support :)
Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 08:36:00 PM
Quote from: mrtrc266 on April 27, 2009, 08:31:48 PM
Quote from: bluesinjid on April 27, 2009, 08:30:07 PM
Quote from: mrtrc266 on April 27, 2009, 08:17:30 PM
Quote from: bluesinjid on April 27, 2009, 08:15:52 PM
so do you know if any ofd them are known for conflicting with this mod?

Pretty URL's!!! LOL about 50 pages back there was a ix for it...I'll try to find it.

Here you go....read and try this....
http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536 (http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536)

AH!!!! I HAVE THAT MOD! Ok thanks for pointing that out!  8)

Did you see my post? With the attachments?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 08:49:14 PM
Quote from: bluesinjid on April 27, 2009, 08:34:59 PM
aha! Many thanks  :D Youve always give great instant support :)

I hope that works for you ;)  Enjoy the Mod :D

Yes I got your files Money...workin on them.
Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 08:50:49 PM
Quote from: mrtrc266 on April 27, 2009, 08:49:14 PM
Quote from: bluesinjid on April 27, 2009, 08:34:59 PM
aha! Many thanks  :D Youve always give great instant support :)

I hope that works for you ;)  Enjoy the Mod :D

Yes I got your files Money...workin on them.

Okay, cool, thanks!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 08:59:57 PM
Ok here ya go Money just upload all 3 of these to yourforum/Themes/mavidus/



Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 09:06:28 PM
Quote from: mrtrc266 on April 27, 2009, 08:59:57 PM
Ok here ya go Money just upload all 3 of these to yourforum/Themes/mavidus/

Just upload? Don't delete?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 09:10:20 PM
Quote from: Moneymaker13 on April 27, 2009, 09:06:28 PM
Quote from: mrtrc266 on April 27, 2009, 08:59:57 PM
Ok here ya go Money just upload all 3 of these to yourforum/Themes/mavidus/

Just upload? Don't delete?

you can rename the existing files (for backup) and then just upload the files.
Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 09:14:17 PM
OH MY GOSH! I think I messed everything up!  :'(
Title: Re: AjaxChat Integration
Post by: dzinerfusion on April 27, 2009, 10:17:17 PM
Woops  i cannot find it from here,but can you tell me waht to and where to edit so every time i log in its a clean slate,so there are no logged chat from previous times?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 10:19:59 PM
Quote from: Moneymaker13 on April 27, 2009, 09:14:17 PM
OH MY GOSH! I think I messed everything up!  :'(

Looks like everything is working fine to me  ;)
Title: Re: AjaxChat Integration
Post by: Moneymaker13 on April 27, 2009, 10:42:53 PM
Quote from: mrtrc266 on April 27, 2009, 10:19:59 PM
Quote from: Moneymaker13 on April 27, 2009, 09:14:17 PM
OH MY GOSH! I think I messed everything up!  :'(

Looks like everything is working fine to me  ;)

Me too, hmm  :P
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 10:44:14 PM
Quote from: bluesinjid on April 27, 2009, 10:17:17 PM
Woops  i cannot find it from here,but can you tell me waht to and where to edit so every time i log in its a clean slate,so there are no logged chat from previous times?

Is this kinda what you want?
http://www.simplemachines.org/community/index.php?topic=257973.msg2032729#msg2032729 (http://www.simplemachines.org/community/index.php?topic=257973.msg2032729#msg2032729)
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 27, 2009, 10:54:41 PM
Quote from: mrtrc266 on April 27, 2009, 07:17:47 PM
@ Money and break and dragtuners

if you're using custom themes you have to do all the manual edits for your theme explained HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)



@ john I'm not sure, what language are you using? UTF-8 by any chance?

Well actually I'm unsure, how can I check?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 27, 2009, 11:03:38 PM
Do you have a file in /yourforum/Themes/default/languages/Modifications.english-utf8.php ?

If so open /yourforum/Themes/default/languages/Modifications.english.php and copy the entire contents of it to Modifications.english-utf8.php (make them identical)
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 27, 2009, 11:06:30 PM
I have Themes/default/languages/Modifications.english.php only not utf8
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 28, 2009, 12:21:32 PM
Quote from: johncccccc on April 27, 2009, 11:06:30 PM
I have Themes/default/languages/Modifications.english.php only not utf8

What theme are you using?
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 28, 2009, 12:24:03 PM
this one, very similar coding to default, hardly have any problem installing mods
http://custom.simplemachines.org/themes/index.php?lemma=1226
Title: Re: AjaxChat Integration
Post by: genusis on April 28, 2009, 02:00:25 PM
XML Parsing Error: junk after document element
Location: http://spirea.kozlowski.ws/forum/chat/index.php
Line Number 2, Column 1:<b>Strict Standards</b>:  strftime() [<a href='function.strftime'>function.strftime</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in <b>/home/genusis/spirea.flphost.com/forum/Sources/Subs.php</b> on line <b>787</b><br />
^

Any ideas how to fix this?

my shoutbox is not working and my chat rooms are not working...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 28, 2009, 02:25:23 PM
@ john, I will try to replicate the error and get a fix




@ genusis

Open yourforum/chat/lib/config.php

Find
// The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null):
$config['contentType'] = null;


Replace with
// The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null):
$config['contentType'] = 'text/html';
Title: Re: AjaxChat Integration
Post by: genusis on April 28, 2009, 02:33:33 PM
Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/genusis/spirea.flphost.com/forum/Sources/Subs.php on line 787

Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/genusis/spirea.flphost.com/forum/Sources/Subs.php on line 800

Now im gettign these errors at the top but the chat thign shows below but i can not Send or recive anything<same with shoutbox>
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 28, 2009, 02:42:58 PM
What's the URL to your site?
Title: Re: AjaxChat Integration
Post by: genusis on April 28, 2009, 02:44:19 PM
http://spirea.kozlowski.ws

hopefully we can get this fixed today =[.

it was working early this morning then it stopped and was doing this i tried uninstalling it and reinstalling it and got the same thing. i have not added any new mods this morning...
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 28, 2009, 11:03:40 PM
Quote from: mrtrc266 on April 28, 2009, 02:25:23 PM
@ john, I will try to replicate the error and get a fix





ok thanks, I got this error with other mods installed and with no other mods installed (this mod is the only mod installed)

EXACT ERROR:
8: Undefined index: enableChatBelowPM
File: /home/reque4/public_html/Themes/default/Login.template.php (eval?)
Line: 221

also in files
File: /home/reque4/public_html/Themes/default/Display.template.php (eval?)
Line: 221

File: /home/reque4/public_html/Themes/default/MessageIndex.template.php (eval?)
Line: 221

There are probably more files, it always seems to be line 221 on all the files, strange, but a good place to start looking lol..

ok, thanks again :)
Title: Re: AjaxChat Integration
Post by: genusis on April 29, 2009, 07:39:12 AM
egghhhh I still can not get this to work anymore TT>TT it was working fine yesterday morning then it stopped working so i uninstalled it and reinstalled it and now its not working at all... maybe there's doubles in the code let me check .....


I will try installing this by hand...


@john

Does your Site have the requirements needed to run the php and or the chat itself?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 29, 2009, 09:41:02 AM
Quote from: johncccccc on April 28, 2009, 11:03:40 PM
Quote from: mrtrc266 on April 28, 2009, 02:25:23 PM
@ john, I will try to replicate the error and get a fix
 


 

ok thanks, I got this error with other mods installed and with no other mods installed (this mod is the only mod installed)

EXACT ERROR:
8: Undefined index: enableChatBelowPM
File: /home/reque4/public_html/Themes/default/Login.template.php (eval?)
Line: 221

also in files
File: /home/reque4/public_html/Themes/default/Display.template.php (eval?)
Line: 221

File: /home/reque4/public_html/Themes/default/MessageIndex.template.php (eval?)
Line: 221

There are probably more files, it always seems to be line 221 on all the files, strange, but a good place to start looking lol..

ok, thanks again :)

This Mod doesn't edit any of those files.

Those (eval?) errors are generally errors with the template. Try disabling your eval and see if you can get the correct error.

http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981 (http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981)

Be sure to change you prefix if it's not smf_
Title: Re: AjaxChat Integration
Post by: genusis on April 29, 2009, 10:58:29 AM
I think i figured my error out< in php.ini the time zone needs to be set before the chat and stuff can find the time it need until my host sets it my chat will not work..... =.= They need to change that in smf so you can choose your forums own time zone..
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 29, 2009, 11:54:28 AM
Quote from: mrtrc266 on April 29, 2009, 09:41:02 AM


This Mod doesn't edit any of those files.

Those (eval?) errors are generally errors with the template. Try disabling your eval and see if you can get the correct error.

http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981 (http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981)

Be sure to change you prefix if it's not smf_

ok I ran the query whihc disabled the (eval) but the errors still occur, but without the (eval) now


This time the error:

8: Undefined index: enableChatBelowPM
File: Themes/SteelV/index.template.php
Line: 221
Title: Re: AjaxChat Integration
Post by: genusis on April 29, 2009, 12:12:27 PM
Quote from: johncccccc on April 29, 2009, 11:54:28 AM
Quote from: mrtrc266 on April 29, 2009, 09:41:02 AM


This Mod doesn't edit any of those files.

Those (eval?) errors are generally errors with the template. Try disabling your eval and see if you can get the correct error.

http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981 (http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981)

Be sure to change you prefix if it's not smf_

ok I ran the query whihc disabled the (eval) but the errors still occur, but without the (eval) now


This time the error:

8: Undefined index: enableChatBelowPM
File: /home/reque4/public_html/Themes/SteelV/index.template.php
Line: 221


are you trying this on a fresh installation of SMF or an old one where you removed all the mods? because if you removed mods and there where errors then it will cause problems.
other that that you migth want to reinstall SMF then try to reintegrate the ajaxchat.
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on April 29, 2009, 01:04:06 PM
I re- installed the whole forum, erased everything (except database, of course) and reinstalled freshm then installed that mod only, errors still exist.
Title: Re: AjaxChat Integration
Post by: astarmathsandphysics on April 29, 2009, 06:07:31 PM
I moved server recently and now the chat mod doesnt work. I get this error message


Warning: AJAXChat::require(/home/studentf/public_html/chat/lib/config.php) [ajaxchat.require]: failed to open stream: No such file or directory in /home/studentf/public_html/chat/lib/class/AJAXChat.php on line 50

Fatal error: AJAXChat::require() [function.require]: Failed opening required '/home/studentf/public_html/chat/lib/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/studentf/public_html/chat/lib/class/AJAXChat.php on line 50

Any ideas? Am using 1.1.7 and must choose a suitable time to upgrade with lots of testing because I have some essential mods.
Title: Re: AjaxChat Integration
Post by: OntarioAquariaClub on April 29, 2009, 11:41:25 PM
Can someone post attachments for all files that needed editing. I have tried and tried and cannot get to work. Thanks in advance.
Title: Re: AjaxChat Integration
Post by: Picard1595 on April 30, 2009, 01:51:36 AM
Hmm, I can't get the css the put the chat box at the bottom near the stats instead of the top. Anyone want to help?
Title: Re: AjaxChat Integration
Post by: Pitbull_NL on April 30, 2009, 09:05:32 AM
I get a connection error 500 in the chat

its maybe a litle thing but what must i do to get it working ?

Thanks Pit
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 30, 2009, 10:47:50 AM
Quote from: OntarioAquariaClub on April 29, 2009, 11:41:25 PM
Can someone post attachments for all files that needed editing. I have tried and tried and cannot get to work. Thanks in advance.

Throw the Mod in a Package Parser (http://resourcez.biz/PackageParser/), that will show you all the edits
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 30, 2009, 10:48:50 AM
Quote from: Pitbull_NL on April 30, 2009, 09:05:32 AM
I get a connection error 500 in the chat

its maybe a litle thing but what must i do to get it working ?

Thanks Pit

Please read THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 30, 2009, 10:50:34 AM
Quote from: astarmathsandphysics on April 29, 2009, 06:07:31 PM
I moved server recently and now the chat mod doesnt work. I get this error message

Am using 1.1.7 and must choose a suitable time to upgrade with lots of testing because I have some essential mods.

Should atlease upgrade to 1.1.8 all Mods that you currently have will not be effected. It was released do to security issues.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 30, 2009, 10:52:57 AM
Quote from: Picard1595 on April 30, 2009, 01:51:36 AM
Hmm, I can't get the css the put the chat box at the bottom near the stats instead of the top. Anyone want to help?

The location of the Chat will be this bit of code in your index.template.php file


//shoutBox
if (!empty($modSettings['enableShoutBox'])){
if (allowedTo('shout_access')){
// We'll have to use the cookie to remember the shoutBox header...
if ($context['user']['is_guest'])
$options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);

echo '
<script language="JavaScript" type="text/javascript">
var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

function ajax_shoutBox_collapse(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>';

if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
</div>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
', getShoutBoxContent() ,'
</div>
</div>';
}
}
}
Title: Re: AjaxChat Integration
Post by: Pitbull_NL on April 30, 2009, 11:48:55 AM
Quote from: mrtrc266 on April 30, 2009, 10:48:50 AM
Quote from: Pitbull_NL on April 30, 2009, 09:05:32 AM
I get a connection error 500 in the chat

its maybe a litle thing but what must i do to get it working ?

Thanks Pit

Please read THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Thank you mate it works now
all files where ok but the index.php i had to change to cmod 755 it whas 666
so thanks again for your fast replay on this

Pittbull
Title: Re: AjaxChat Integration
Post by: Praatwurst on April 30, 2009, 12:00:56 PM
I installed the chat+shout succesfully. The chat works really good, but when I enable the shoutbox function, it appears, but it doesn't work at all. I don't get any errors.

Could somebody help me with it?


And is it possible to have the shoutbox in a Simple Portal block?
Title: Re: AjaxChat Integration
Post by: Picard1595 on April 30, 2009, 12:12:52 PM
Quote from: mrtrc266 on April 30, 2009, 10:52:57 AM
Quote from: Picard1595 on April 30, 2009, 01:51:36 AM
Hmm, I can't get the css the put the chat box at the bottom near the stats instead of the top. Anyone want to help?

The location of the Chat will be this bit of code in your index.template.php file


//shoutBox
if (!empty($modSettings['enableShoutBox'])){
if (allowedTo('shout_access')){
// We'll have to use the cookie to remember the shoutBox header...
if ($context['user']['is_guest'])
$options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);

echo '
<script language="JavaScript" type="text/javascript">
var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

function ajax_shoutBox_collapse(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>';

if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
</div>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
', getShoutBoxContent() ,'
</div>
</div>';
}
}
}


Is there a way to make it go on the right hand side of the theme instead of near the bottom or top.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 30, 2009, 12:17:49 PM
Quote from: Praatwurst on April 30, 2009, 12:00:56 PM
I installed the chat+shout succesfully. The chat works really good, but when I enable the shoutbox function, it appears, but it doesn't work at all. I don't get any errors.

Could somebody help me with it?


And is it possible to have the shoutbox in a Simple Portal block?

Try to CHMOD yourforum/shoutbox/index.php to 775

Read the last few pages of this thread to find alternatives to the shoutbox on your portal page.

Also I found something about your last request which looks pretty cool Make You're Chat Bot Smarter (http://sourceforge.net/docman/display_doc.php?docid=139663&group_id=214758)  :D 
Title: Re: AjaxChat Integration
Post by: mrtrc266 on April 30, 2009, 12:20:33 PM
Quote from: Picard1595 on April 30, 2009, 12:12:52 PM
Quote from: mrtrc266 on April 30, 2009, 10:52:57 AM
Quote from: Picard1595 on April 30, 2009, 01:51:36 AM

Is there a way to make it go on the right hand side of the theme instead of near the bottom or top.

Top or bottom would be the best bet, you might have to tweak the shoutbox.css, shoutbox.html and index.template.php quite a bit to have it on the side somewhere.
Title: Re: AjaxChat Integration
Post by: Picard1595 on April 30, 2009, 12:28:07 PM
Thanks for all the help guys :)
Title: Re: AjaxChat Integration
Post by: Praatwurst on April 30, 2009, 02:33:39 PM
Quote from: mrtrc266 on April 30, 2009, 12:17:49 PM
Quote from: Praatwurst on April 30, 2009, 12:00:56 PM
I installed the chat+shout succesfully. The chat works really good, but when I enable the shoutbox function, it appears, but it doesn't work at all. I don't get any errors.

Could somebody help me with it?


And is it possible to have the shoutbox in a Simple Portal block?

Try to CHMOD yourforum/shoutbox/index.php to 775

Read the last few pages of this thread to find alternatives to the shoutbox on your portal page.

Also I found something about your last request which looks pretty cool Make You're Chat Bot Smarter (http://sourceforge.net/docman/display_doc.php?docid=139663&group_id=214758)  :D 
The CHMOD doesn't work, I still get this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg162.imageshack.us%2Fimg162%2F1261%2F54239093.jpg&hash=f70f77a9e17d80a19ee7aa9c13895e56172ac257)

Thanks for the smart-bot thing, trying to get it working now  :D
Title: Re: AjaxChat Integration
Post by: KrzysztofKamil on April 30, 2009, 03:21:39 PM
I've this "bug"
QuoteNotice: Undefined index: mgallery_gallery in /home/bonsai1/ftp/forum/Sources/Subs.php on line 3822

Notice: Undefined index: downloads_menu in /home/bonsai1/ftp/forum/Sources/Subs.php on line 3852

Notice: Undefined index: bookmarks in /home/bonsai1/ftp/forum/Sources/Subs.php on line 3866

Anyone knows what to do?
Title: Re: AjaxChat Integration
Post by: OntarioAquariaClub on April 30, 2009, 10:32:00 PM
Chat and shoutbox open fine, but you cannot see users who are in it with you while in chat, nor can you see what anyone is typing. Has anyone else had this problem?


My site is: http://oac.comoj.com

Username: Guest

Password: Leave blank
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 01, 2009, 09:11:47 AM
Does the s,f prefix need to be "smf_", mine is just "smf"

if so, how would I go by changing all the tables names with the "smf_" instead of "smf".
I would imagine just changing the forum prefix to "smf_" would cause tables not to be found byt the forum
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 01, 2009, 10:09:09 AM
@ Praatwurst (http://www.simplemachines.org/community/index.php?action=profile;u=127084) make sure you did all the edits correctly for your custom theme.

@ OntarioAquariaClub yes that has happened to a cpl people....possibly server related..not sure of a fix yet.

@ johncccccc have no idea, I believe you have some sort of prefix like whatever_ or else I don't think  your forum would be running. No it doesn't have to be smf_.
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 01, 2009, 12:24:44 PM
Quote from: mrtrc266 on May 01, 2009, 10:09:09 AM

@ johncccccc have no idea, I believe you have some sort of prefix like whatever_ or else I don't think  your forum would be running. No it doesn't have to be smf_.

I guess the investigation continues then
Title: Re: AjaxChat Integration
Post by: primetime on May 02, 2009, 01:26:09 AM
I am very new to SMF. I am a recent PHPBB3 convert. ;)
I just installed this MOD using the package installer. I do not see where the chat is located. AM I missing something?
Title: Re: AjaxChat Integration
Post by: fastbyte on May 02, 2009, 02:33:59 AM
After a year i have decided to make a little bit of upgrade to our community site. So i have now an v2 RC1. As we have looking for chat mod i have seen the AAjaxChat Integration. But the problem is that after installation it doesnt create any new folder (chat or shoutbox). I have checked permissions on files and folders, i have checked to whole installation but now i think its broken as package for v2 RC1.
Have someone installed it on v2 RC1 as package?
Title: Re: AjaxChat Integration
Post by: Hiver101 on May 02, 2009, 02:52:03 AM
Hello!

Thanks for a great mod,

What i want to modify is the format of the posted shout text, and i want it horizontally listed and not vertically. let me know if this can be done....
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 02, 2009, 10:06:27 AM
Quote from: primetime on May 02, 2009, 01:26:09 AM
I am very new to SMF. I am a recent PHPBB3 convert. ;)
I just installed this MOD using the package installer. I do not see where the chat is located. AM I missing something?

Do you have  a custom theme? If so please read THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) and try to do the manual edits for you theme.

To see if it's installed properly point your browser to www.yoursite.com/chat/index.php (http://www.yoursite.com/chat/index.php)
Title: Re: AjaxChat Integration
Post by: Aleksi "Lex" Kilpinen on May 02, 2009, 10:06:29 AM
Quote from: mrtrc266 on May 01, 2009, 10:09:09 AM
@ johncccccc have no idea, I believe you have some sort of prefix like whatever_ or else I don't think  your forum would be running. No it doesn't have to be smf_.
Like you said - no it doesn't have to be smf_.
It doesn't actually have to have _ in there either.
Actually, there is no forcing need to have a prefix at all.

The prefix is there for multiple reasons though, one being that in a database where you have data for multiple different scripts, or multiple SMF installs, the prefix allows to separate them from eachother and so protecting the data of one install from the other ;)

The prefix can be changed if you want to -  I believe you can rename all your tables to use any prefix you want,
and then in your settings (with repair_settings.php)change the prefix to what you are using after the change.

I do not  suggest removing the prefix completely though ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 02, 2009, 10:26:26 AM
Quote from: fastbyte on May 02, 2009, 02:33:59 AM
After a year i have decided to make a little bit of upgrade to our community site. So i have now an v2 RC1. As we have looking for chat mod i have seen the AAjaxChat Integration. But the problem is that after installation it doesnt create any new folder (chat or shoutbox). I have checked permissions on files and folders, i have checked to whole installation but now i think its broken as package for v2 RC1.
Have someone installed it on v2 RC1 as package?

Many people have it installed on RC1, are you saying that it installed through the Package Manager but then doesn't show the chat or shoutbox folders?
Title: Re: AjaxChat Integration
Post by: fastbyte on May 02, 2009, 10:38:32 AM
So, Package manager recognize the package, does the install, and for packet manager it looks ok from the install side of view. After install the button is visible but it give 404 (chat folder non existent) and in configuration is present. But as i say there are folders missing i think not even unpacked.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 02, 2009, 10:46:49 AM
@ fastbyte

Hmmm, that's odd. Try uninstalling and reinstalling and see what happens.
Title: Re: AjaxChat Integration
Post by: fastbyte on May 02, 2009, 10:49:04 AM
Already tried couple of times but no effects also i have rechecked the permission but no way....
Very strange..
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 02, 2009, 10:52:55 AM
Quote from: fastbyte on May 02, 2009, 10:49:04 AM
Already tried couple of times but no effects also i have rechecked the permission but no way....
Very strange..

Look in your database to see if the AJAX_CHAT_ tables are there..should be 8 of the I think. If they are try to upload the chat and shoutbox folders to your root directory manually via FTP.

Off to work for now...will check back later.
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 02, 2009, 11:08:05 AM
Quote from: LexArma on May 02, 2009, 10:06:29 AM
Quote from: mrtrc266 on May 01, 2009, 10:09:09 AM
@ johncccccc have no idea, I believe you have some sort of prefix like whatever_ or else I don't think  your forum would be running. No it doesn't have to be smf_.
Like you said - no it doesn't have to be smf_.
It doesn't actually have to have _ in there either.
Actually, there is no forcing need to have a prefix at all.

The prefix is there for multiple reasons though, one being that in a database where you have data for multiple different scripts, or multiple SMF installs, the prefix allows to separate them from eachother and so protecting the data of one install from the other ;)

The prefix can be changed if you want to -  I believe you can rename all your tables to use any prefix you want,
and then in your settings (with repair_settings.php)change the prefix to what you are using after the change.

I do not  suggest removing the prefix completely though ;)


my prefix is "smf" with no "_", but the point here is maybe the chat application is programmed to assume the prefix is "smf_" as apposed to checking what the prefix actually is.

I would rather not rename all my 120+ tables if it wont change anything, if you/anybody think this will help i will give it a shot, but a quicker rename process would be nice though  :D
Title: Re: AjaxChat Integration
Post by: primetime on May 02, 2009, 11:38:47 AM
I have tried to install this MOD on my board via the package installer. It says that it was successfully installed. But I do not see it on my board at all. I see a ton of errors in the error log. Does this MOD not install properly via the package installer?

Thank you,
Prime
Title: Re: AjaxChat Integration
Post by: primetime on May 02, 2009, 02:58:43 PM
Quote from: mrtrc266 on May 02, 2009, 10:06:27 AM
Quote from: primetime on May 02, 2009, 01:26:09 AM
I am very new to SMF. I am a recent PHPBB3 convert. ;)
I just installed this MOD using the package installer. I do not see where the chat is located. AM I missing something?

Do you have  a custom theme? If so please read THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) and try to do the manual edits for you theme.

To see if it's installed properly point your browser to www.yoursite.com/chat/index.php (http://www.yoursite.com/chat/index.php)

It is not installed on a custom theme. It is installed to the default them. I only have the themes installed that came with SMF. This is a fresh install except upfgrading to 1.1.8.

I browsed like you suggested and got this error..

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: AjaxChat Integration
Post by: primetime on May 02, 2009, 11:10:15 PM
I had a friend come by and we upgraded to 2.0 RC1 and the chat installed with no problems!!! I love this MOD.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 02, 2009, 11:12:57 PM
Quote from: primetime on May 02, 2009, 11:10:15 PM
I had a friend come by and we upgraded to 2.0 RC1 and the chat installed with no problems!!! I love this MOD.

LOL...Glad you got it sorted  ;D
Title: Re: AjaxChat Integration
Post by: Enders on May 03, 2009, 01:28:12 AM
Is there a way to put this shoutbox in a block? I've tried searching, but failed :(
Title: Re: AjaxChat Integration
Post by: HoTmetal on May 03, 2009, 05:22:09 AM
Quote from: mrtrc266 on May 02, 2009, 11:12:57 PM
Quote from: primetime on May 02, 2009, 11:10:15 PM
I had a friend come by and we upgraded to 2.0 RC1 and the chat installed with no problems!!! I love this MOD.

LOL...Glad you got it sorted  ;D

Heheh... Yeah, now that I've been away from SMF I have time for hobbies. woot.. ;D

I've recently setup a 115G reef tank. I came across Primetime's site, and he's been helping me with my tank, I thought I could return the favor.... (& help him with SMF)

@ OntarioAquariaClub
I've signed up for your site, and I see the problem you talked about.
Can you provide more information? Is there anything is the error log?
Did it (fully) install ok, without errors?
Have you gone into the Admin>Configuration>Modifications>Chatand enabled your settings?

Also, please re-read through this post,
I think mrtrc266 post on pretty url's may solve your issue.
Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM

If you have problems and you also have Pretty URL's installed please READ THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536)

 

Hope that helps, if not post here and give up and update :D


***ADDED... also, real quick, has anyone added Lightbox into the chat?
I think it would be a nice add, as it really really sux to see a HUGE img break up the chat room...

I haven't looked too far into the, other than to install into a non-default theme.
If nobody has tried, I guess I can dig in... thought I'd check 1st
Title: Re: AjaxChat Integration
Post by: robone on May 03, 2009, 11:19:14 AM
Hi..just tried to install AjaxChat on my forum and when running the test it came up with an error in the Boardindex.php file.

I checked what the parse should be replacing and mine does not look anything like that.

my code is:

$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

   // Load the users online today.

And the code that it is looking for is:

$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

   // Track most online statistics?

Anyway, obviously I never continued. Any help.

Using 1.1.8, but the boardindex file says the Software Version is          SMF 1.1 

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 03, 2009, 12:12:16 PM
@ robone proceed with the install then via FTP download yourforum/Sources/BoardIndex.php file, edit it and upoad it back to your server. Of course make backup first.

Find
  $context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

Replace with
   $context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

   //users in chat
   if (!WIRELESS){
      $userIDs = chatOnlineUsers();
      $context['chat_links'] = array();
      if (count($userIDs) > 0){
         $query = "SELECT mem.ID_MEMBER, mem.realName, mem.ID_GROUP, mg.onlineColor, mg.ID_GROUP
          FROM   {$db_prefix}members AS mem
          LEFT JOIN {$db_prefix}membergroups AS mg ON
          (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))WHERE ";
         foreach ($userIDs as $ID)
            $query .= 'ID_MEMBER = '. $ID . ' OR ';
         //remove the last OR
         $query = substr($query, 0, strlen($query)-3);

         $result = db_query($query, __FILE__, __LINE__);
         while ($row = mysql_fetch_assoc($result))
            {
            $link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
            if($row['onlineColor'] != ""){
               $link.= '" style="color: ' . $row['onlineColor'];
            }
            $link.= '">' . $row['realName'] . '</a>';
            array_push($context['chat_links'], $link);
            }
         mysql_free_result($result);
         }
      //set the flag true for home page
      $context['chat_isHome'] = true;
      }
Title: Re: AjaxChat Integration
Post by: robone on May 03, 2009, 12:19:44 PM
Okay...thanks. I was going to do that, but just to make sure...thought I would come here.
Title: Re: AjaxChat Integration
Post by: primetime on May 03, 2009, 12:54:07 PM
Thanks RickC!! You are DA MAN!!!!!!
Yes, that Lightbox feature would be great in the chat. It works well on our other board.

Also, I need to figure out why regular members are able to delete  shouts.  ::)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 03, 2009, 01:18:51 PM
@ rickC

Ontario and Sunking as well as a cpl others have the same problem where the install goes fine but they can't type anything in the chat or shoutbox. I just posted on Sourceforge which has a better desrciption and a few links to this problem. I'm not good at coding and don't even really understand how all this works. If you have any ideas or suggestions to get this going for these users that would be greatly appreciated.

https://sourceforge.net/forum/message.php?msg_id=7352186 (https://sourceforge.net/forum/message.php?msg_id=7352186)

Thanks in advance for you help.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 03, 2009, 01:21:25 PM
Quote from: primetime on May 03, 2009, 12:54:07 PM
Also, I need to figure out why regular members are able to delete  shouts.  ::)

This happens when you allow users to Post Events in you Calendar, the fix for it is HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1979606#msg1979606)
Title: Re: AjaxChat Integration
Post by: primetime on May 03, 2009, 03:00:52 PM
Quote from: mrtrc266 on May 03, 2009, 01:21:25 PM
Quote from: primetime on May 03, 2009, 12:54:07 PM
Also, I need to figure out why regular members are able to delete  shouts.  ::)

This happens when you allow users to Post Events in you Calendar, the fix for it is HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg1979606#msg1979606)

Thank you for the answer sir. I cant find the file "customajaxchat.php" file. Would you be so kind to point me in the right direction?

nm.. I found it. :)

Thank you,
Prime
Title: Re: AjaxChat Integration
Post by: primetime on May 03, 2009, 03:12:26 PM
 I tried the fix and no luck yet. Here is my customajaxchat.php.

<?php
/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 * 
 * SMF integration:
 * http://www.simplemachines.org/
 */

class CustomAJAXChat extends AJAXChat {

// Initialize custom configuration settings
function initCustomConfig() {
global $db_name,$db_connection;

// Use the existing SMF database connection:
$this->setConfig('dbConnection''link'$db_connection);
}

// Override the database connection method to make sure the SMF database is selected:
function initDataBaseConnection() {
global $db_name;

// Call the parent method to initialize the database connection:
parent::initDataBaseConnection();

// Select the SMF database:
$this->db->select($db_name);
if($this->db->error()) {
echo $this->db->getError();
die();
}
}

// Initialize custom request variables:
function initCustomRequestVars() {
global $context;

// Auto-login phpBB users:
if(!$this->getRequestVar('logout') && !$context['user']['is_guest']) {
$this->setRequestVar('login'true);
}
}

// Replace custom template tags:
function replaceCustomTemplateTags($tag$tagContent) {
global $context,$boardurl;

switch($tag) {

case 'FORUM_LOGIN_URL':
if(!$context['user']['is_guest']) {
return ($this->getRequestVar('view') == 'logs') ? './?view=logs' './';
} else {
return $this->htmlEncode($boardurl).'/index.php?action=login2';
}


case 'REDIRECT_URL':
if(!$context['user']['is_guest']) {
return '';
} else {
$redirectURL $this->getRequestVar('view') == 'logs' $this->getChatURL().'?view=logs' $this->getChatURL();
if(!$this->getRequestVar('logout')) {
// Set the redirect URL after login to the chat:
ssi_login($redirectURLfalse);
} else {
// Reset the redirect URL on logout:
ssi_login($boardurl.'/index.php'false);
}
return $redirectURL;
}

default:
return null;
}
}

// Returns true if the userID of the logged in user is identical to the userID of the authentication system
// or the user is authenticated as guest in the chat and the authentication system
function revalidateUserID() {
global $context;

if($this->getUserRole() === AJAX_CHAT_GUEST && $context['user']['is_guest'] || ($this->getUserID() === $context['user']['id'])) {
return true;
}
return false;
}

// Returns an associative array containing userName, userID and userRole
// Returns null if login is invalid
function getValidLoginUserData() {
global $context,$user_info;

// Check if we have a valid registered user:
if(allowedTo('chat_access')){
if(!$context['user']['is_guest']) {
$userData = array();
$userData['userID'] = $context['user']['id'];

$userData['userName'] = $this->trimUserName($context['user']['name']);

                         if(
$context['user']['is_admin'])
            
$userData['userRole'] = AJAX_CHAT_ADMIN;
         else
            
$userData['userRole'] = AJAX_CHAT_USER;

return $userData;

} else {
// Guest users:
return $this->getGuestUser();
}
}else{
return null;
}
}

// Store the channels the current user has access to
// Make sure channel names don't contain any whitespace
function &getChannels() {
if($this->_channels === null) {
global $db_prefix,$user_info;

$this->_channels = array();

$sql 'SELECT
ID_BOARD,
name
FROM
'
.$db_prefix.'boards AS b
WHERE
'
.$user_info['query_see_board'].';';

// Create a new SQL query:
$result $this->db->sqlQuery($sql);

// Stop if an error occurs:
if($result->error()) {
    echo $result->getError();
    die();
}

$defaultChannelFound false;

while($row $result->fetch()) {
// Check if we have to limit the available channels:
if($this->getConfig('limitChannelList') && !in_array($row['ID_BOARD'], $this->getConfig('limitChannelList'))) {
continue;
}

$forumName $this->trimChannelName($row['name']);

$this->_channels[$forumName] = $row['ID_BOARD'];

if(!$defaultChannelFound && $row['ID_BOARD'] == $this->getConfig('defaultChannelID')) {
$defaultChannelFound true;
}
}
$result->free();

if(!$defaultChannelFound) {
// Add the default channel as first array element to the channel list:
$this->_channels array_merge(
array(
$this->trimChannelName($this->getConfig('defaultChannelName'))=>$this->getConfig('defaultChannelID')
),
$this->_channels
);
}
}
return $this->_channels;
}

// Store all existing channels
// Make sure channel names don't contain any whitespace
function &getAllChannels() {
if($this->_allChannels === null) {
global $db_prefix,$user_info;

$this->_allChannels = array();

$sql 'SELECT
ID_BOARD,
name
FROM
'
.$db_prefix.'boards;';

// Create a new SQL query:
$result $this->db->sqlQuery($sql);

// Stop if an error occurs:
if($result->error()) {
    echo $result->getError();
    die();
}

$defaultChannelFound false;

while($row $result->fetch()) {
$forumName $this->trimChannelName($row['name']);

$this->_allChannels[$forumName] = $row['ID_BOARD'];

if(!$defaultChannelFound && $row['ID_BOARD'] == $this->getConfig('defaultChannelID')) {
$defaultChannelFound true;
}
}
$result->free();

if(!$defaultChannelFound) {
// Add the default channel as first array element to the channel list:
$this->_allChannels array_merge(
array(
$this->trimChannelName($this->getConfig('defaultChannelName'))=>$this->getConfig('defaultChannelID')
),
$this->_allChannels
);
}
}
return $this->_allChannels;
}

// Method to set the style cookie depending on the SMF user style:
function setStyle() {
global $db_prefix,$settings;

if(isset($_COOKIE[$this->getConfig('sessionName').'_style']) && in_array($_COOKIE[$this->getConfig('sessionName').'_style'], $this->getConfig('styleAvailable')))
return;

$sql 'SELECT
value
FROM
'
.$db_prefix.'themes
WHERE
ID_THEME = '
.$this->db->makeSafe($settings['theme_id']).'
AND
variable = \'name\';'
;

// Create a new SQL query:
$result $this->db->sqlQuery($sql);

// Stop if an error occurs:
if($result->error()) {
    echo $result->getError();
    die();
}

$row $result->fetch();
$styleName $row['value'];

$result->free();

if(!in_array($styleName$this->getConfig('styleAvailable'))) {
$styleName $this->getConfig('styleDefault');
}

setcookie(
$this->getConfig('sessionName').'_style',
$styleName,
time()+60*60*24*$this->getConfig('sessionCookieLifeTime'),
$this->getConfig('sessionCookiePath'),
$this->getConfig('sessionCookieDomain'),
$this->getConfig('sessionCookieSecure')
);
return;
}

}
?>

Title: Re: AjaxChat Integration
Post by: Raoden on May 03, 2009, 05:55:43 PM
I have my forum in a free server (www.zymic.com), and the .mp3 files are disallowed...

Gonna work without uploading the sounds?

Also, I cannot upload he file "./chat/socket/server.rb"

(sorry for bad english xD I'm Argentinian xP)
Title: Re: AjaxChat Integration
Post by: andy40 on May 03, 2009, 08:08:05 PM
hi got this mod installed and works great but can someone tell me if i can allow members i want to use chat and disalow others please
Title: Re: AjaxChat Integration
Post by: primetime on May 03, 2009, 09:54:51 PM
Quote from: andy40 on May 03, 2009, 08:08:05 PM
hi got this mod installed and works great but can someone tell me if i can allow members i want to use chat and disalow others please

In your admin area, goto:

Members-->General Permissions-->Click "modify" of that group--> Then first section on left is allow access to chat option.

HTH,
Prime
Title: Re: AjaxChat Integration
Post by: Hiver101 on May 03, 2009, 11:14:42 PM
Hello!

Thanks for a great mod,

What i want to modify is the format of the posted shout text, and i want it horizontally listed and not vertically. let me know if this can be done....
Title: Re: AjaxChat Integration
Post by: wiki on May 04, 2009, 01:23:45 AM
Hi I finally make the mod work and thx "mrtrc266" for helping me and others.

I have silly Q as follow: I got white box background i tried to figure out where i should change style color but no luck.

Can you help pls.


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg162.imageshack.us%2Fimg162%2F7931%2Ftestzxa.png&hash=d1f7e3d8723a5a95f144a955c8e9ef7081cca367)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 01:30:37 AM
You need to change the colors in yourforum/chat/css/shoutbox.css file

I have a Dark Theme so you can use mine if you like...it's attatched if you wanna try it.
Title: Re: AjaxChat Integration
Post by: wiki on May 04, 2009, 01:33:17 AM
Quote from: mrtrc266 on May 04, 2009, 01:30:37 AM
You need to change the colors in yourforum/chat/css/shoutbox.css file

I have a Dark Theme so you can use mine if you like...it's attatched if you wanna try it.


Thx yes i can see the css file but which part i should change i have tried most of them but the result still white.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 01:36:42 AM
Quote from: resti on May 03, 2009, 11:14:42 PM
Hello!

Thanks for a great mod,

What i want to modify is the format of the posted shout text, and i want it horizontally listed and not vertically. let me know if this can be done....

Not sure exaclty what you mean by horizontally, that would be from side to side ???  Do you mean just changing the direction of the scroll?
Title: Re: AjaxChat Integration
Post by: wiki on May 04, 2009, 01:38:39 AM
Quote from: mrtrc266 on May 04, 2009, 01:30:37 AM
You need to change the colors in yourforum/chat/css/shoutbox.css file

I have a Dark Theme so you can use mine if you like...it's attatched if you wanna try it.

Ok i upload your css but still it's white background :(
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 01:44:40 AM
Wiki....Sorry, that one had a lot of edits....try this one also try uploading it to yourforum/shoutbox/css/ and yourforum/chat/css/

Be sure to refresh you screen when you're done.
Title: Re: AjaxChat Integration
Post by: wiki on May 04, 2009, 01:52:21 AM
Quote from: mrtrc266 on May 04, 2009, 01:44:40 AM
Wiki....Sorry, that one had a lot of edits....try this one also try uploading it to yourforum/shoutbox/css/ and yourforum/chat/css/

Be sure to refresh you screen when you're done.

Still white i dunno did i miss something?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 01:55:31 AM
Please attatch yourforum/chat/css/shoutbox.css file I'll take a look
Title: Re: AjaxChat Integration
Post by: wiki on May 04, 2009, 02:12:37 AM
Quote from: mrtrc266 on May 04, 2009, 01:55:31 AM
Please attatch yourforum/chat/css/shoutbox.css file I'll take a look

Yes it's work now :)

My fault i should uploaded to /shoutBox/css instead of /chat/css so it's uploaded in both folder is it make any prob. in future.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 02:17:12 AM
Quote from: wiki on May 04, 2009, 02:12:37 AM
Quote from: mrtrc266 on May 04, 2009, 01:55:31 AM
Please attatch yourforum/chat/css/shoutbox.css file I'll take a look

Yes it's work now :)

My fault i should uploaded to /shoutBox/css instead of /chat/css so it's uploaded in both folder is it make any prob. in future.

Glad you got it sorted...if you want to change it anymore just play with the color codes below the //colors// comment.

Enjoy the mod
Title: Re: AjaxChat Integration
Post by: Hiver101 on May 04, 2009, 02:44:45 AM
Quote from: mrtrc266 on May 04, 2009, 01:36:42 AM
Quote from: resti on May 03, 2009, 11:14:42 PM
Hello!

Thanks for a great mod,

What i want to modify is the format of the posted shout text, and i want it horizontally listed and not vertically. let me know if this can be done....

Not sure exaclty what you mean by horizontally, that would be from side to side ???  Do you mean just changing the direction of the scroll?

Yes exactly. so what will happen is intead of adding rows i will add columns
Title: Re: AjaxChat Integration
Post by: dharma77 on May 04, 2009, 02:53:59 AM
Hi, I like to add, a perfil funcion on a shoutbox user list, but i can't get the userID, only the encodedUserName, someone can help me with that, I just need the UserID from the user, I add a <li> with the link to the perfil  on the chat.js file.


Thanks..
Title: Re: AjaxChat Integration
Post by: wiki on May 04, 2009, 02:56:12 AM
Quote from: mrtrc266 on May 04, 2009, 02:17:12 AM
Quote from: wiki on May 04, 2009, 02:12:37 AM
Quote from: mrtrc266 on May 04, 2009, 01:55:31 AM
Please attatch yourforum/chat/css/shoutbox.css file I'll take a look

Yes it's work now :)

My fault i should uploaded to /shoutBox/css instead of /chat/css so it's uploaded in both folder is it make any prob. in future.

Glad you got it sorted...if you want to change it anymore just play with the color codes below the //colors// comment.

Enjoy the mod


Thx man it WORKS!!!!!!!!  lol

Guys I can't believe it he help me even chat with me through my site until i feel OK really we have to thank him.

I appreciate your help.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 03:32:44 AM

Quote from: mrtrc266 on May 04, 2009, 01:55:31 AM
Thx man it WORKS!!!!!!!!  lol

Guys I can't believe it he help me even chat with me through my site until i feel OK really we have to thank him.

I appreciate your help.


No problem at all...glad I could help
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 03:42:21 AM
Quote from: resti on May 04, 2009, 02:44:45 AM
Quote from: mrtrc266 on May 04, 2009, 01:36:42 AM
Quote from: resti on May 03, 2009, 11:14:42 PM
Hello!

Thanks for a great mod,

What i want to modify is the format of the posted shout text, and i want it horizontally listed and not vertically. let me know if this can be done....

Not sure exaclty what you mean by horizontally, that would be from side to side ???  Do you mean just changing the direction of the scroll?

Yes exactly. so what will happen is intead of adding rows i will add columns

Sorry but I'm still trying to visualize how that would look ???  Can you make a pic to give an example of what you're after?
Title: Re: AjaxChat Integration
Post by: Hiver101 on May 04, 2009, 04:08:08 AM
Quote from: mrtrc266 on May 04, 2009, 03:42:21 AM
Quote from: resti on May 04, 2009, 02:44:45 AM
Quote from: mrtrc266 on May 04, 2009, 01:36:42 AM
Quote from: resti on May 03, 2009, 11:14:42 PM
Hello!

Thanks for a great mod,

What i want to modify is the format of the posted shout text, and i want it horizontally listed and not vertically. let me know if this can be done....

Not sure exaclty what you mean by horizontally, that would be from side to side ???  Do you mean just changing the direction of the scroll?

Yes exactly. so what will happen is intead of adding rows i will add columns

Sorry but I'm still trying to visualize how that would look ???  Can you make a pic to give an example of what you're after?

instead of this
___________________________________________________________________________
shout 1 -------------------------
shout 2 -------------------------
shout 3 -------------------------
shout 4 -------------------------
shout 5 -------------------------
shout 6-------------------------
___________________________________________________________________________

i want it to look like this
___________________________________________________________________________
              ___________________                            ___________________
shout 1 |___________________|             shout 3|___________________|
                           ___________________
              shout 2|___________________|
                                     ___________________
                        shout 3|___________________|

___________________________________________________________________________
Title: Re: AjaxChat Integration
Post by: supermach on May 04, 2009, 04:32:44 AM
Hi guys, I have a problem, this mod only works in default theme and I use another theme in my forum. I tried to substitute the files for install the ajaxchat in my theme and well... the problem is that: the mod don't finds the sentences for install the mod in index.template. I tried to install manually but I can't. Could you help me, please?

I only need that someone includes the sentences in the index.template.php

Here you have the theme that I use.

http://custom.simplemachines.org/themes/index.php?lemma=1245

Exuse me if i don't speak english very well, i am from spain and well... ñ_n

Thank you all u_u
Title: Re: AjaxChat Integration
Post by: MatrixIS on May 04, 2009, 09:07:41 AM
Quote from: supermach on May 04, 2009, 04:32:44 AM
Hi guys, I have a problem, this mod only works in default theme and I use another theme in my forum. I tried to substitute the files for install the ajaxchat in my theme and well... the problem is that: the mod don't finds the sentences for install the mod in index.template. I tried to install manually but I can't. Could you help me, please?

I only need that someone includes the sentences in the index.template.php

Here you have the theme that I use.

http://custom.simplemachines.org/themes/index.php?lemma=1245

Exuse me if i don't speak english very well, i am from spain and well... ñ_n

Thank you all u_u

also having the same problem , i use the extreame 6 theme , currently the most popular theme on the smf site
Title: Re: AjaxChat Integration
Post by: Enders on May 04, 2009, 10:07:11 AM
Same here.. how would I go about putting the shoutbox on a block?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 10:30:07 AM
@ supermach, Enders and MatrixIS

Please click the link in my signature to get some guidance on how to install this on your custom themes

@ MatrixIS I used the Extreme 6 theme as well..and Dark F (http://custom.simplemachines.org/themes/index.php?lemma=1579) and which should quickly become the most popular theme soon  ;)
Title: Re: AjaxChat Integration
Post by: dharma77 on May 04, 2009, 10:45:27 AM
Quote from: dharma77 on May 04, 2009, 02:53:59 AM
Hi, I like to add, a perfil funcion on a shoutbox user list, but i can't get the userID, only the encodedUserName, someone can help me with that, I just need the UserID from the user, I add a <li> with the link to the perfil  on the chat.js file.


Thanks..

Hi, Someone can help me please ?

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 11:06:55 AM
Sorry dharma77, not sure exaclty how to do that ???
Title: Re: AjaxChat Integration
Post by: dharma77 on May 04, 2009, 11:52:50 AM
Quote from: mrtrc266 on May 04, 2009, 11:06:55 AM
Sorry dharma77, not sure exaclty how to do that ???

Hi mrtrc266, Thanks for reply.

Look I have done this, I added a <li> in this function


chat.js
getUserNodeStringItems: function(encodedUserName, userID) {
var menu;
if(encodedUserName != this.encodedUserName) {
.................................
...........
.....................
+ '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/ignore '
+ encodedUserName
+ '\');">'
+ this.lang['userMenuIgnore']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/whereis '
+ encodedUserName
+ '\');">'
+ this.lang['userMenuWhereis']
+ '</a></li>'
+ '<li><a href="http://foro/index.php?action=profile;u='
+ userID
+ '">Profile</a></li>';
                                     
      


to make link user's profile, now

but the userID display null,
so I search in other function to get the user id and i found this

handleOnlineUsers:

The handleOnlineUsers: funtion have the userNodes var that contain all the users ids

so, i try to get this var into the getUserNodeStringItems with userNodes[0].getAttribute('userID');
but not  work, maybe you have some ideas or other var I can use.


Thanks man, and sorry for my english .

Title: Re: AjaxChat Integration
Post by: Hiver101 on May 04, 2009, 11:56:32 AM
I want to use the feature of Internal Links Use Same Window Mod on my shoutbox, Please let me know how will i'm going to do this.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 12:06:05 PM
@ dharma77

This is for phpBB3 but take a look at it, it might get you started in the right direction

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 12:08:28 PM
@ resti sorry but once again, I have no idea how to get your chat to go horizontally.

You want the links in your shoutbox to open in the same window?
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 04, 2009, 12:18:07 PM
Quote from: resti on May 04, 2009, 11:56:32 AM
I want to use the feature of Internal Links Use Same Window Mod on my shoutbox, Please let me know how will i'm going to do this.


You would normally make links open in the same window by using internal url bb code
[iurl]your url link here[/iurl]

that bbc dont work in the shoutbox though

======================================================

mrtrc266, Is there any progress on my error log problem?
Title: Re: AjaxChat Integration
Post by: Hiver101 on May 04, 2009, 12:25:33 PM
Quote from: mrtrc266 on May 04, 2009, 12:08:28 PM
@ resti sorry but once again, I have no idea how to get your chat to go horizontally.

You want the links in your shoutbox to open in the same window?

never mind the horizotal options. what i need to know is where i can locate the fuction who returns the listed shoutbox list maybe from that function i can do some modifications

for another request. Yes i want the link to be open in the same window


thanks in advance
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 01:55:35 PM
@ johncccccc I installed your theme and tried to replicate the error but no luck.

Can you attatch your BoardIndex.template.php and index.template.php files please?
Title: Re: AjaxChat Integration
Post by: fastbyte on May 04, 2009, 02:38:33 PM
Funny thing happened today i have uploaded package and installation was as it should be thru package manager.
It works very well now. In between there was no modification to the file or the server. Its very strange...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 02:41:15 PM
Quote from: fastbyte on May 04, 2009, 02:38:33 PM
Funny thing happened today i have uploaded package and installation was as it should be thru package manager.
It works very well now. In between there was no modification to the file or the server. Its very strange...


WOOOOHOOOOOO!!!! Glad you got it sorted! :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 02:42:51 PM
Quote from: IvoLeite on May 04, 2009, 02:25:54 PM
Hello.

I've a problem with the chat: ChatBot: Error: Connection status: 0


How can I fix this?
Tks in advanced.

SMF 1.1.6

First upgrade to 1.1.8...1.1.7 and 1.1.8 were released due to some security issues.

Title: Re: AjaxChat Integration
Post by: MatrixIS on May 04, 2009, 03:24:07 PM
Hi thanks for the reply but most places where it says find 'xxxxx' and add 'xxxx' i cant do because the theme doesnt have that code
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 04:03:48 PM
@ MatrixIS attatch your BoardIndex.template.php index.template.php and style.css from your yourforum/Themes/Extreme6/ directory
Title: Re: AjaxChat Integration
Post by: MatrixIS on May 04, 2009, 06:59:28 PM
Quote from: mrtrc266 on May 04, 2009, 04:03:48 PM
@ MatrixIS attatch your BoardIndex.template.php index.template.php and style.css from your yourforum/Themes/Extreme6/ directory

here it is :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 07:46:45 PM
Here you go Matrix, you will have to make a Chat Button.

Use the provided .psd file to help you out in making you button, it will come in handy as you install other Mods that add buttons to your theme.

EDIT: You can also use this shoutbox.css so your shoutbox won't be white. Just upload it to yourforum/chat/css/ and yourforum/shoutbox/css/ folders overwriting what is there
http://www.simplemachines.org/community/index.php?topic=257973.msg2043205#msg2043205 (http://www.simplemachines.org/community/index.php?topic=257973.msg2043205#msg2043205)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 08:11:31 PM
@ Matrix...ooops LOL

Find
<li><a href=http://monsters-mansion.com/chat/index.php

And change the URL to your site
Title: Re: AjaxChat Integration
Post by: MatrixIS on May 04, 2009, 08:22:54 PM
Quote from: mrtrc266 on May 04, 2009, 07:46:45 PM
Here you go Matrix, you will have to make a Chat Button.

Use the provided .psd file to help you out in making you button, it will come in handy as you install other Mods that add buttons to your theme.

EDIT: You can also use this shoutbox.css so your shoutbox won't be white. Just upload it to yourforum/chat/css/ and yourforum/shoutbox/css/ folders overwriting what is there
http://www.simplemachines.org/community/index.php?topic=257973.msg2043205#msg2043205 (http://www.simplemachines.org/community/index.php?topic=257973.msg2043205#msg2043205)

thanks :) working great :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 04, 2009, 08:27:40 PM
No problem at all...one more thing though, I'm sure you are getting "Use of undefined constant Chat" error in your error log.

in the index.template.php
Find
$txt[chat]
Replace with
$txt['chat']
Title: Re: AjaxChat Integration
Post by: reeltime on May 05, 2009, 01:37:14 AM
I recently installed SMF 2.0 rc1, Dark-F theme and Ajax chat 3.0. I now have a link/tab that says chat, but when I click on it I get

QuoteInternal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I need someone who can fix the error message and put whatever code in I will need to add a button like the Dark-F theme buttons for my chat tab. I will make my own tab, I just need the coding done so that I can just ftp a new *.png file to the correct folder. I am willing to pay if needed. Thank you!!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 05, 2009, 01:49:54 AM
@reeltime

Try switching to the default theme and see if it works there, if not try please click the link in my signature and try seting your file permissions laid out in the FAQ's
Title: Re: AjaxChat Integration
Post by: Paracelsus on May 05, 2009, 05:02:21 AM
Sorry if this has been asked before...

Is it possible to have the ShoutBox visible to everybody but still only allow certain membergroups to actually write on it?
Title: Re: AjaxChat Integration
Post by: ai_yazawa on May 05, 2009, 10:05:49 AM
hi..

i tried to install this but test failed on these 2 files:

ModSettings.php
index.template.php

i've attached the files here. can someone help me?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 05, 2009, 10:37:46 AM
Quote from: Paracelsus on May 05, 2009, 05:02:21 AM
Sorry if this has been asked before...

Is it possible to have the ShoutBox visible to everybody but still only allow certain membergroups to actually write on it?

I don't think so, there is only the option to give them access to it which will give them access to chat.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 05, 2009, 10:45:52 AM
Quote from: ai_yazawa on May 05, 2009, 10:05:49 AM
hi..

i tried to install this but test failed on these 2 files:

ModSettings.php
index.template.php

i've attached the files here. can someone help me?

Proceed with the install, and then upload these

Back up of course
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 05, 2009, 10:47:36 AM
Quote from: mrtrc266 on May 04, 2009, 01:55:35 PM
@ johncccccc I installed your theme and tried to replicate the error but no luck.

Can you attatch your BoardIndex.template.php and index.template.php files please?
Yea, I can attach them, Im probably gonna install a test forum and do some testing myself too lol..
Title: Re: AjaxChat Integration
Post by: ai_yazawa on May 05, 2009, 11:20:03 AM
Quote from: mrtrc266 on May 05, 2009, 10:45:52 AM
Quote from: ai_yazawa on May 05, 2009, 10:05:49 AM
hi..

i tried to install this but test failed on these 2 files:

ModSettings.php
index.template.php

i've attached the files here. can someone help me?

Proceed with the install, and then upload these

Back up of course

thanx! i got it installed perfectly but then i got this error:

ChatBot: Error: Connection status: 0

a friend who's also an admin tested it and got this:

ChatBot: Error: Connection status: 12029

and

ChatBot: Error: Connection status: 12031

i'm using SMF 1.1.8
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 05, 2009, 11:54:52 AM
@ John

Sorrry but I used your files on my site and tried every possible combinations of setting and can't replicate your error.

Is your tempeval still turned off?
http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981 (http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981)

Also does this happen if you change it to the default theme?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 05, 2009, 12:00:12 PM
Please try setting your file permissions explained here, event though your not getting the 500 error make sure your chat/index.php and shoutbox.index.php are set to 755.

~~~AJAX Chat Intergration FAQ's & Tips-N-Tricks~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)


12029 - A connection with the server could not be established
12031 - The connection with the server was reset

Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 05, 2009, 12:10:44 PM
Quote from: mrtrc266 on May 05, 2009, 11:54:52 AM
@ John

Sorrry but I used your files on my site and tried every possible combinations of setting and can't replicate your error.

Is your tempeval still turned off?
http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981 (http://sleepy-arcade.ath.cx/sleepy/index.php?topic=612.msg2981#msg2981)

Also does this happen if you change it to the default theme?

the eval is off.
I just changed to default theme, getting the same error.

8: Undefined index: enableChatBelowPM

can you explain this error in abit moredetail for me, whats happening, whats the forum trying to do to cause this error?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 05, 2009, 12:43:55 PM
When you you go to Admin/Modifications/Chat and check "Show online users below total logged in time section?" it shows # of online chat users below total time logged in section.

That's the function of the chatbelowPM, I'm scouring through all the files to see if I can see what the heck is causing it.
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 05, 2009, 12:55:05 PM
whoa..

I just enabled the " Show online users below total logged in time section?" option

there errors have stopped, what the ****

hove u been testing with the option on or off?

well it dont really matter no more, as long as there are no errors, im good :)

thanks :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 05, 2009, 01:07:02 PM
Quote from: johncccccc on May 05, 2009, 12:55:05 PM
whoa..

I just enabled the " Show online users below total logged in time section?" option

there errors have stopped, what the ****

hove u been testing with the option on or off?

well it dont really matter no more, as long as there are no errors, im good :)

thanks :)

LOL I told you to enable the wrong thing 10 pages ago HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg2034010#msg2034010), I copied the wrong line ROTF!!!

Glad you got it sorted...it's been fun :P

Enjoy the Mod!
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 05, 2009, 01:13:47 PM
I tried it before though, It did not work, unless maybe, I forgot to clear the error log lmao lol..
Title: Re: AjaxChat Integration
Post by: Paracelsus on May 05, 2009, 03:26:15 PM
Quote from: mrtrc266 on May 05, 2009, 10:37:46 AM
Quote from: Paracelsus on May 05, 2009, 05:02:21 AM
Sorry if this has been asked before...

Is it possible to have the ShoutBox visible to everybody but still only allow certain membergroups to actually write on it?

I don't think so, there is only the option to give them access to it which will give them access to chat.

Tkx. My problem now is around customizing the shoutbox itself... The shoutbox seems to acquire the default style.css and doesn't really gets affected by changes is with shoutbox.css. Any ideas?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 05, 2009, 03:41:50 PM
@ Paracelsus

edit your chat/css/shoutbox.css file
Title: Re: AjaxChat Integration
Post by: Raoden on May 05, 2009, 06:34:15 PM
Can I put a max limit, or a scroll on this?
I installed the mod and works, but if i write (or others) the chat keep getting longer and longer...

How I can fix this?
Title: Re: AjaxChat Integration
Post by: blanix on May 05, 2009, 06:47:17 PM
Quote from: mrtrc266 on May 05, 2009, 03:41:50 PM
@ Paracelsus

edit your chat/css/shoutbox.css file

ähm or "shoutbox/css/shoutbox.css file"
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 05, 2009, 07:38:15 PM
Quote from: Raoden on May 05, 2009, 06:34:15 PM
Can I put a max limit, or a scroll on this?
I installed the mod and works, but if i write (or others) the chat keep getting longer and longer...

How I can fix this?

If you're on the default theme just type in about 12 messages then refresh your screen.

If you have custom theme please see the link on my signature and do the edits for your theme.
Title: Re: AjaxChat Integration
Post by: Paracelsus on May 06, 2009, 03:40:23 AM
Quote from: blanix on May 05, 2009, 06:47:17 PM
Quote from: mrtrc266 on May 05, 2009, 03:41:50 PM
@ Paracelsus

edit your chat/css/shoutbox.css file

ähm or "shoutbox/css/shoutbox.css file"

That's what I've done but no effect at all... and for example I can't shut down the sound when sending a shout... it's always on, even when putting "false" in config.js both in chat and shoutbox directory.
Title: Re: AjaxChat Integration
Post by: MUSTAfaINE on May 06, 2009, 04:14:34 AM
can anyone send me the tables of this mod, i couldnt work the Tables_1.1.X.php..

or can anyone write the sql for me ?
Title: Re: AjaxChat Integration
Post by: primetime on May 06, 2009, 09:44:35 PM
LEt me try this question here...

I have  silentwave theme installed. the shoutbox works fine the chat works fine. The problem I have is that the chatbox does not popup in a new window like it does in the default theme. Can anyone point me in the right direction. I have made the edits per the instructions but have not had any luck.

Silentwave theme does not have boardindex,template.php. It does have index.template.php.

Here is that file..
<?php
// Version: 2.0 RC1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0 RC1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;

/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;

/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = false;

/* Set the following variable to true if this theme requires the optional theme strings file to be loaded. */
$settings['require_theme_strings'] = false;
}

// The main sub template above the content.
function template_html_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title_html_safe'], '" />
<meta name="keywords" content="'
$context['meta_keywords'], '" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/script.js?rc1"></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/theme.js?rc1"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_default_theme_url = "'
$settings['default_theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";'$context['show_pm_popup'] ? '
if (confirm("' 
$txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");' 
'''
var ajax_notification_text = "'
$txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "'
$txt['modify_cancel'], '";
// ]]></script>
<title>'
$context['page_title_html_safe'], '</title>';

// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />'
;

// The ?rc1 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style'$context['theme_variant'], '.css?rc1" />';

echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/print.css?rc1" media="print" />';

// IE7 needs some fixes for styles.
if ($context['browser']['is_ie7'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/ie7.css" />';
// ..and IE6!
elseif ($context['browser']['is_ie6'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/ie6.css" />';
// Firefox - all versions - too!
elseif ($context['browser']['is_firefox'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/ff.css" />';

// RTL languages require an additional stylesheet.
if ($context['right_to_left'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/rtl.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name_html_safe'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="'
$scripturl'?board='$context['current_board'], '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
{
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// Create the main header object.
var mainHeader = new smfToggle("upshrink", '
, empty($options['collapse_header']) ? 'false' 'true'');
mainHeader.useCookie('
$context['user']['is_guest'] ? 0');
mainHeader.setOptions("collapse_header", "'
$context['session_id'], '");
mainHeader.addToggleImage("upshrink", "/upshrink.gif", "/upshrink2.gif");
mainHeader.addTogglePanel("user_section");
mainHeader.addTogglePanel("news_section");
// ]]></script>'
;

echo '
</head>
<body>'
;
}

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

echo 
'
<div id="wrapper">
<div id="header">
<div id="welcome">'
;
if ($context['user']['is_logged'])
{
echo '
<b>'
$txt['hello_member_ndt'], ' '$context['user']['name'], '</b><br />';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo $txt['msg_alert_you_have'], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt['msg_alert_messages'] : $txt['message_lowercase'], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';

echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';
}

// Otherwise they're a guest - so politely ask them to register or login.
else
{
echo sprintf($txt['welcome_guest'], $txt['guest_title']);

echo '
<br />'
$context['current_time'],'<br />';
}

echo '
</div>
<!--a href="'
.$scripturl.'" title=""><span id="logo"> </span></a-->';
echo '
</div>
<div id="toolbar">
<div id="nav">
'
,template_menu(),'
</div>
</div>
<div id="mainarea">'
;
//added by rickC for theme fix
//shoutBox
if (!empty($modSettings['enableShoutBox'])){
if (allowedTo('shout_access')){
// We'll have to use the cookie to remember the shoutBox header...
if ($context['user']['is_guest'])
$options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);

echo '
<script language="JavaScript" type="text/javascript">
var sb_current_header = '
, empty($options['sb_collapsed']) ? 'false' 'true'';

function ajax_shoutBox_collapse(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "sb_collapsed=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>'
;

if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="'
$settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>'$txt['shoutBox'], '
</div>
<div id="ShoutBox"'
, empty($options['sb_collapsed']) ? '' ' style="display: none;"''>
'
getShoutBoxContent() ,'
</div>
</div>'
;
}
}
}
//end of rickC add
// Show the navigation tree.
theme_linktree();

}

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

echo '
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer">
<span class="smalltext">'
theme_copyright(), '
<br />Theme by <a href="http://www.dzinerstudio.com" target="_blank">DzinerStudio</a>'
;

// Show the load time?
if ($context['show_load_time'])
echo '<br />'$txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</span>';

echo '
</div>
</div>'
;
}

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

echo 
'
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show false)
{
global $context$settings$options$shown_linktree;

// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;

//!!! Temporarily don't do it twice.
if (!empty($shown_linktree))
return;
$shown_linktree true;

echo '
<ul id="linktree">'
;

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li'
, ($link_num == count($context['linktree']) - 1) ? ' class="last"' '''>';
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' 
$tree['url'] . '"><span>' $tree['name'] . '</span></a>' '<span>' $tree['name'] .'</span>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo ' >';

echo '
</li>'
;
}
echo '
</ul>'
;
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

echo '
<ul>'
;
foreach ($context['menu_buttons'] as $act => $button)
echo '<li><a '$button['active_button'] ? ' class="current"' '' ' href="'$button['href'], '"><span>'$button['title'], '</span></a></li>';
// Added by rickC for the chat
if ($modSettings['enableChatBelowPM']){
$count count(chatOnlineUsers());
if ($count == )
echo '<br />' $txt['chat_no_user'];
elseif ($count == )
  echo '<br />  1' $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' $count$txt['chat_users']. '<br />';
}
$num = ($modSettings['enableChatButtonNo']) ? $count 0;
$context['menu_buttons']['chat']['title'] .= ($num 0) ?  ('('.$num.')') : '';
if ($modSettings['chatPopUp']){
$context['menu_buttons']['chat']['href'] .= '" onclick="openWindow(this.href);this.blur();return false;';
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>'
;
}
 
// end of add by rickC




echo '
</ul>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$context$txt$scripturl;

// Create the buttons...
$buttons = array();
foreach ($button_strip as $key => $value)
{
if (!isset($value['test']) || !empty($context[$value['test']]))
$buttons[] = '<a href="' $value['url'] . '" ' . (isset($value['custom']) ? $value['custom'] : '') . '><span>' $txt[$value['text']] . '</span></a>';
}

if (empty($buttons))
return '';

// Make the last one, as easy as possible.
$buttons[count($buttons) - 1] = str_replace('<span>''<span class="last">'$buttons[count($buttons) - 1]);

echo '
<div class="buttonlist'
$direction != 'top' '_bottom' '''">
<ul class="clearfix">
<li>'
implode('</li><li>'$buttons), '</li>
</ul>
</div>'
;

}

?>
Title: Re: AjaxChat Integration
Post by: MUSTAfaINE on May 07, 2009, 04:12:52 AM
thanks primetime but i cant working the setting database files.. when i open it i see a white page i think i ve a problem but i dont know why, if you send me the tables from phpmyadmin i can set the mod, thanks
Title: Re: AjaxChat Integration
Post by: Atheo on May 07, 2009, 07:12:52 AM
Hello,

I have changed the file permissions and done everything suggested (I think) but I am still getting an "Internal Server Error" when clicking the chat button. The shoutbox works fine.
Title: Re: AjaxChat Integration
Post by: primetime on May 07, 2009, 08:46:09 AM
Quote from: MUSTAfaINE on May 07, 2009, 04:12:52 AM
thanks primetime but i cant working the setting database files.. when i open it i see a white page i think i ve a problem but i dont know why, if you send me the tables from phpmyadmin i can set the mod, thanks

Im not sure what you are asking here. Can you explain it to a newb please?
Title: Re: AjaxChat Integration
Post by: MUSTAfaINE on May 07, 2009, 11:17:35 AM
i`am  wanting to sqls in php my admin about this chat mod because the install.php file is not working in my site..

if anybody download it who has the mod i can upload the tables in my php admin
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 07, 2009, 11:27:59 AM
Quote from: Atheo on May 07, 2009, 07:12:52 AM
Hello,

I have changed the file permissions and done everything suggested (I think) but I am still getting an "Internal Server Error" when clicking the chat button. The shoutbox works fine.

your /chat/index.php is set to 755?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 07, 2009, 11:35:28 AM
Quote from: MUSTAfaINE on May 07, 2009, 11:17:35 AM
i`am  wanting to sqls in php my admin about this chat mod because the install.php file is not working in my site..

if anybody download it who has the mod i can upload the tables in my php admin

install.php doesn't work?

You shouldn't have to run the install.php Just upload the AJAX Chat Intergration 3.0 Mod to your site via the Package Manager and Apply the Mod. It will install everything for you, the tables, the chat, shoutbox and then intergrate it all with SMF.
Title: Re: AjaxChat Integration
Post by: ThePriest on May 07, 2009, 12:23:38 PM
I need to intergrate this brilliant mod into my custom theme but I cannot do it.  Can you help please.

Forum: http://www.landrover6pot.org/sixpotforum/index.php?action=forum

As you see it uses custom buttons.  Your mod works with all other themes on my forum.

I have managed a work around but it is not very good.

I have attached the index.template.php that it is using presently.

Help please
Title: Re: AjaxChat Integration
Post by: Cixi on May 07, 2009, 06:10:44 PM
Hello.
I have just installed your very nice and helpful MOD but it only work with default theme.
I installed the PROF ( http://custom.simplemachines.org/themes/index.php?lemma=1508 ) but it does not work with it.
Is there anything I can do to let it work with this Theme?
Thank You in advance. ;)
Title: Re: AjaxChat Integration
Post by: dzinerfusion on May 07, 2009, 10:21:51 PM
Hi me again  :D (if you remember me) I switched to try 2.0 RC1 and donea ll the edits and permissons and lall the bits needed and it will not open in a pop up. What di  u have to add to the codeso it will pop up in 2.0 RC1
Title: Re: AjaxChat Integration
Post by: tfs on May 07, 2009, 11:15:26 PM
Everyone,

Here's a link to a nice Simple Portal block that now allows AJAX shoutbox to work in a top or a side block!  Just came out today.

http://simpleportal.net/index.php?topic=2233

Title: Re: AjaxChat Integration
Post by: Enders on May 08, 2009, 12:34:53 AM
Quote from: primetime on May 06, 2009, 09:44:35 PM
LEt me try this question here...

I have  silentwave theme installed. the shoutbox works fine the chat works fine. The problem I have is that the chatbox does not popup in a new window like it does in the default theme. Can anyone point me in the right direction. I have made the edits per the instructions but have not had any luck.

I got the same issue o.o
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 12:48:56 AM
Quote from: Enders on May 08, 2009, 12:34:53 AM
Quote from: primetime on May 06, 2009, 09:44:35 PM
LEt me try this question here...

I have  silentwave theme installed. the shoutbox works fine the chat works fine. The problem I have is that the chatbox does not popup in a new window like it does in the default theme. Can anyone point me in the right direction. I have made the edits per the instructions but have not had any luck.

Quote from: bluesinjid on May 07, 2009, 10:21:51 PM
Hi me again  :D (if you remember me) I switched to try 2.0 RC1 and donea ll the edits and permissons and lall the bits needed and it will not open in a pop up. What di  u have to add to the codeso it will pop up in 2.0 RC1

I got the same issue o.o



Make sure that this part of the edit for your index.template.php file is before the </body> tag

if ($modSettings['enableChatBelowPM']){
$count = count(chatOnlineUsers());
if ($count == 0 )
echo '<br />' . $txt['chat_no_user'];
elseif ($count == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' . $count. $txt['chat_users']. '<br />';
}
$num = ($modSettings['enableChatButtonNo']) ? $count : 0;
$context['menu_buttons']['chat']['title'] .= ($num > 0) ?  ('('.$num.')') : '';
if ($modSettings['chatPopUp']){
$context['menu_buttons']['chat']['href'] .= '" onclick="openWindow(this.href);this.blur();return false;';
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>';
}
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 12:52:52 AM
Quote from: tfs on May 07, 2009, 11:15:26 PM
Everyone,

Here's a link to a nice Simple Portal block that now allows AJAX shoutbox to work in a top or a side block!  Just came out today.

http://simpleportal.net/index.php?topic=2233 (http://simpleportal.net/index.php?topic=2233)

WOOOOHOOOO!!! Thanks for letting us know about this as there have been a lot of requests. That's awesome!

Added this post to the FAQ's
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 12:58:23 AM
@ Cixi you have to do all the edits to your custom theme.

~~~AJAX Chat Intergration FAQ's & Tips-N-Tricks~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 12:59:37 AM
@ The Priest, what exaclty is the problem, the button looks good on your site and it directs it to the Chat ???

Title: Re: AjaxChat Integration
Post by: Enders on May 08, 2009, 01:15:11 AM
syntax error, unexpected T_STRING, expecting ',' or ';'

^^ when i tried the theme edit to fix the "chat button" issue


Quote

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

echo '


    if ($modSettings['enableChatBelowPM']){
         $count = count(chatOnlineUsers());
         if ($count == 0 )
            echo '<br />' . $txt['chat_no_user'];
         elseif ($count == 1 )
           echo '<br />  1' . $txt['chat_aUser']. '.<br />';
         else
           echo '<br /> ' . $count. $txt['chat_users']. '<br />';
      }
      $num = ($modSettings['enableChatButtonNo']) ? $count : 0;
      $context['menu_buttons']['chat']['title'] .= ($num > 0) ?  ('('.$num.')') : '';
      if ($modSettings['chatPopUp']){
         $context['menu_buttons']['chat']['href'] .= '" onclick="openWindow(this.href);this.blur();return false;';
         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>';
      }


</body></html>';
}

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 01:26:45 AM
@ Enders attatch your index.template.php file please
Title: Re: AjaxChat Integration
Post by: Enders on May 08, 2009, 01:47:55 AM
HEre you go :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 02:05:19 AM
Quote from: Enders on May 08, 2009, 01:47:55 AM
HEre you go :)

Try this one, if there are any probs I will take a look in the morn...have to get to bed
Title: Re: AjaxChat Integration
Post by: Enders on May 08, 2009, 02:12:12 AM
Mm no errors, just that nothing happened except # of users appeared on the header.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 02:18:31 AM
Quote from: Enders on May 08, 2009, 02:12:12 AM
Mm no errors, just that nothing happened except # of users appeared on the header.

Post a link to the theme you're using and the URL to your site. I'll take a look in the morning

PM me the link to your site if your don't want it public.
Title: Re: AjaxChat Integration
Post by: MUSTAfaINE on May 08, 2009, 02:22:31 AM
Quote from: mrtrc266 on May 07, 2009, 11:35:28 AM
Quote from: MUSTAfaINE on May 07, 2009, 11:17:35 AM
i`am  wanting to sqls in php my admin about this chat mod because the install.php file is not working in my site..

if anybody download it who has the mod i can upload the tables in my php admin

i want to said i couldnt work this file Tables_1.1.X.php you know i want to tables only

install.php doesn't work?

You shouldn't have to run the install.php Just upload the AJAX Chat Intergration 3.0 Mod to your site via the Package Manager and Apply the Mod. It will install everything for you, the tables, the chat, shoutbox and then intergrate it all with SMF.
Title: Re: AjaxChat Integration
Post by: ThePriest on May 08, 2009, 03:54:43 AM
Quote from: mrtrc266 on May 08, 2009, 12:59:37 AM
@ The Priest, what exaclty is the problem, the button looks good on your site and it directs it to the Chat ???



Yes it does pop up but in a full size window with scroll/toolbars

If you have a read of the index.template.php you will see I have had to bodge the href= call to get it to do this.   Also very often it foes not parse accross the username like this so a log in screen appears insead untill you refresh and then it goes in.


Thanks
Title: Re: AjaxChat Integration
Post by: Atheo on May 08, 2009, 09:20:37 AM
Quote from: mrtrc266 on May 07, 2009, 11:27:59 AM
Quote from: Atheo on May 07, 2009, 07:12:52 AM
Hello,

I have changed the file permissions and done everything suggested (I think) but I am still getting an "Internal Server Error" when clicking the chat button. The shoutbox works fine.

your /chat/index.php is set to 755?


mrtrc266: yes I have changed everything and still same error
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 10:28:43 AM
@ The Priest did you put all these in here or did your theme come like this? That's kinda what it would look like for 1.1.8

    <li><a href="', $scripturl, '" class="kwick opt1">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" /><span>' : $txt[103]), '</span></a></li>
    <li><a href="', $scripturl, '?action=help" class="kwick opt3">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" /><span>' : $txt[119]), '</span></a></li>
    <li><a href="', $scripturl, '?action=gallery" class="kwick opt3">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/gallery.gif" alt="' . $txt[182] . '" /><span>' : $txt[182]), '</span></a></li>
   
    <li><a href="http://www.landrover6pot.org/sixpotforum/chat" class="kwick opt4" target="_blank">', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['calendar24'] . '" /><span>' : $txt['calendar24']), '</span></a></li>';

    if ($context['allow_memberlist'])
    echo '<li><a href="', $scripturl, '?action=mlist" class="kwick opt5">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/memberlist.gif" alt="' . $txt[331] .'" /><span>' : $txt[member_list]), '</span></a></li>';
   if ($context['allow_admin'])
    echo '<li><a href="', $scripturl, '?action=admin" class="kwick opt5">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] .'" /><span>' : $txt[2]), '</span></a></li>';   
   
    if ($context['user']['is_logged'])
    echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '" class="kwick opt6">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" /><span>' : $txt[108]), '</span></a></li>';
    if ($context['user']['is_guest'])   
    echo '<li><a href="', $scripturl, '?action=login" class="kwick opt8">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[34]), '</span></a></li>';
    if ($context['user']['is_guest'])
    echo '<li><a href="', $scripturl, '?action=register" class="kwick opt7">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 0px 0;" border="0" /><span>' : $txt[97]), '</span></a></li>';
echo '</ul>


For RC1 all the code for the buttons are in your sub.php file and look more like this now.
   //[Chat] button
    'chat' => array(
    'title' => $txt['chat'],
    'href' => str_replace("index.php", "chat/index.php", $scripturl),
    'show' => true,
    'sub_buttons' => array(
    ),
   ),
Title: Re: AjaxChat Integration
Post by: ThePriest on May 08, 2009, 10:43:43 AM
Hi. No it came that way except my bodge to get the chat working.

I replaced line 341 which had originally pointed to the calendar.

<li><a href="', $scripturl, '?action=calendar" class="kwick opt4">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" /><span>' : $txt['calendar24']), '</span></a></li>';


With

<li><a href="http://www.landrover6pot.org/sixpotforum/chat" class="kwick opt4" target="_blank">', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['calendar24'] . '" /><span>' : $txt['calendar24']), '</span></a></li>';
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 10:56:56 AM
Very odd that the author put the button code in the index.template file I thought they go in the subs now ???  Anyway try this

<li><a href="http://www.landrover6pot.org/sixpotforum/chat/index.php" class="kwick opt4"   onclick="openWindow(this.href);this.blur();return false;"', '>', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['chat'] . '" style="margin: 0px 0;" border="0" /><span>' : $txt['chat']), '</span></a></li>';
Title: Re: AjaxChat Integration
Post by: ThePriest on May 08, 2009, 11:02:16 AM
Hi getting there although a little back step I'm afraid.

It does now link to the chat but not in a popup 'chat size' window without the scroll and toolbars.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 11:11:43 AM
Ok, one more time...I just installed your theme and used your original code and just added chat/index.php and changed the laguage strings to 'chat' and it opened in a new window and went straight into chat.

<li><a href="http://www.landrover6pot.org/sixpotforum/chat/index.php" class="kwick opt4" target="_blank">', (!empty($modSettings['fc_newWindow']) ? ' target="_blank"' : ''), ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['chat'] . '" /><span>' : $txt['chat']), '</span></a></li>

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 11:21:17 AM
Ooops, add ';
to the end of the line

Sorry guess it didn't copy the end of it
Title: Re: AjaxChat Integration
Post by: ThePriest on May 08, 2009, 11:26:09 AM
Thanks again but that just takes me back where I started. I still have the full size window and still have the toolbars.  I am very gratefull for you trying to help me with this though.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 11:28:39 AM
NP, we'll get this sorted. I have to run off to work but will check in when I get back. It just worked on my test site with the same theme, so it's gotta be something simple. Have a g1
Title: Re: AjaxChat Integration
Post by: kolt on May 08, 2009, 12:03:46 PM
Hello, I tryed to install it but doen't work for me!


Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test failed  
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/ManagePermissions.php Test failed  
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
6. Execute Modification ./Themes/default/index.template.php Test successful
7. Execute Modification ./Themes/default/style.css Test successful
8. Execute Modification ./Themes/default/languages/Help.english.php Test successful
9. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
10. Execute Modification ./Themes/default/languages/Help.persian.php Skipping file
11. Execute Modification ./Themes/default/languages/Modifications.persian.php Skipping file
12. Delete Tree ./chat 
13. Delete Tree ./shoutBox
I

I have the last version of smf forum 1.1.8.
I'm attaching the two files that doen't work, please help because I like this mod.
Title: Re: AjaxChat Integration
Post by: ThePriest on May 08, 2009, 03:05:46 PM
I stripped back and installed a fresh copy of SMF2 RC1 on my test server then installed the theme I modded this one from to see if I could isolate another error I have been getting

8: Undefined offset: 108
File: /home/fhlinux184/l/landrover6pot.org/user/htdocs/sixpotforum2/Themes/WBlog20rc1/index.template.php
Line: 348 

Looking at the log it seems the errors all appear to come from the section of the theme we have been looking at. The buttons.

I think this whole section needs re-writting but I do not have the knowledge to do this.

If you want to look at the test forum it is at

http://www.landrover6pot.org/sixpotforum2/index.php?

Username and password have been PM'd to you mrtrc266
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 08, 2009, 10:56:01 PM
@ Kolt

Please read ~~~AJAX Chat Intergration FAQ's & Tips-N-Tricks~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

@ ThePriest
Responded
Title: Re: AjaxChat Integration
Post by: TheListener on May 09, 2009, 12:41:55 AM
can someone help fix the 500 error which we get when testing the shoutbox please.

I found a site shows what to do to get the mod colours to work in chat ( we have other staff too) but don't have a clue how to do it.

Also are there any animated smileys available?
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 09, 2009, 12:52:57 AM
change the CHMOD/Permissions on the  directories to 755

your server/Shoutbox
your server/Chat
Title: Re: AjaxChat Integration
Post by: TheListener on May 09, 2009, 12:55:50 AM
Do you know where to look for the problem?

I haven't a clue.
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 09, 2009, 12:58:24 AM
Quote from: TheListener on May 09, 2009, 12:55:50 AM
Do you know where to look for the problem?

I haven't a clue.
Go to the file manager on your hosts website and look for the permission settings for those folders, if you cant find it, contact support for your hosting and ask them how to change permissions.

If your using a FTP client, you can locate the folder and right click and select permission settings (clients vary)
Title: Re: AjaxChat Integration
Post by: TheListener on May 09, 2009, 01:01:36 AM
We looked at our ftp for a manual install and still didn't have a clue what to do nor where to look.
Title: Re: AjaxChat Integration
Post by: amlucent on May 09, 2009, 01:11:14 AM
chmod your "/Chat/index.php" to 755.. that got rid of my 500 error
Title: Re: AjaxChat Integration
Post by: TheListener on May 09, 2009, 01:13:54 AM
1. How?

2. Where?


We are using black rain v2 on 1.1.8
Title: Re: AjaxChat Integration
Post by: JBlaze on May 09, 2009, 01:15:08 AM
Quote from: TheListener on May 09, 2009, 01:13:54 AM
1. How?

2. Where?


http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

Also, see How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480) and How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477)
Title: Re: AjaxChat Integration
Post by: TheListener on May 09, 2009, 01:17:47 AM
Jblaze we have filezilla but thats as far as we go.

Title: Re: AjaxChat Integration
Post by: amlucent on May 09, 2009, 01:26:08 AM
I will send you a step by step instructions in a PM.. gimme 10 mins
Title: Re: AjaxChat Integration
Post by: TheListener on May 09, 2009, 01:29:17 AM
That would be a big help (nervously twitches)

As I am also on aim is it possible for me to ask if you could be in the background as a just in case?
Title: Re: AjaxChat Integration
Post by: amlucent on May 09, 2009, 01:33:28 AM
oh.. that would be even better
Title: Re: AjaxChat Integration
Post by: billy2 on May 09, 2009, 06:54:11 AM
Hi,  :)

Using 2.0RC1 with Core default theme

Keep getting the following errors in the 'forum error log' running to lots of errors.
Sorry if there has been an answer to this in the previous 90 pages - but I have become 'post blind' and probably missed it


8: Undefined index: enableChatBelowPM
File: ......./Themes/default/Themes.template.php (body_above sub template - eval?)
Line: 252
   


8: Undefined index: enableChatBelowPM
File: ............./Themes/default/GenericMenu.template.php (body_above sub template - eval?)
Line: 252
   

8: Undefined variable: count
File: ................../Themes/default/GenericMenu.template.php (body_above sub template - eval?)
Line: 261
      

8: Undefined index: enableChatBelowPM
File: ....../Themes/default/GenericList.template.php (body_above sub template - eval?)
Line: 252

Cheers for any help
Billy
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 09, 2009, 10:06:45 AM
@ Billy
Go to Admin/Modification/Chat/ and check all these options

EnabletheShoutBox?
check for ShoutBox on any page or uncheck for only in index page:   
Integrate shout box and chat room?   
chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 09, 2009, 11:04:25 AM
Quote from: Enders on May 08, 2009, 02:12:12 AM
Mm no errors, just that nothing happened except # of users appeared on the header.

Enders I just installed the Chat on my test site HERE (http://monsters-mansion.com/testsmf2/index.php) with the Silent Wave Theme and it's working flawlessly
  Attatched are the MY index.template.php and style.css files.

If you DO NOT have any other Mods installed just use these, if you do have other Mods installed then try the following.

Put the AJAX Chat Intergration Mod in a Package Parser (http://resourcez.biz/PackageParser/index.php) select SMF 2 RC1 / Install / Only Theme edits (editing a theme to support a mod)

Look for the edits that are required on the index.template (don't pay attention to the "Find") just look for the "Add Afters" "Add befores" and "Replaces" then find where I put them in the files I attatched

Compare the edits with your files and place the code in the same spot

I would say just attatch your files again but I have to get to work.

Hope all that makes sense LOL  ;)

Title: Re: AjaxChat Integration
Post by: farzad on May 09, 2009, 11:10:07 AM
i found my connection issues were related to my .htaccess file which was performing a variety of rewrites.  you can test if this is your problem by renaming your .htaccess file to see if this fixes any functional problems.

Title: Re: AjaxChat Integration
Post by: billy2 on May 09, 2009, 11:11:43 AM
Quote from: mrtrc266 on May 09, 2009, 10:06:45 AM
@ Billy
Go to Admin/Modification/Chat/ and check all these options

EnabletheShoutBox?
check for ShoutBox on any page or uncheck for only in index page:   
Integrate shout box and chat room?   
chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?

mrtrc266
I have now checked all and  errors seem to have stopped.
but i dont want some of the features that i have now checked.
whats the next step?

****I have now unchecked the ones I really dont want and it seems to be causing no more errors - so far.
****Now back to where I wanted and all seems fine - thanks.

cheers
billy

Title: Re: AjaxChat Integration
Post by: MisterK on May 09, 2009, 11:40:42 AM
i succesfully instaleed ajax chat but 1 problem after instalation i click on chat but what apeir is just 1 clear page http://www.hun-surprise.com/forum/chat/index.php nothing why ? and what can i do ?
Title: Re: AjaxChat Integration
Post by: kolt on May 09, 2009, 12:23:34 PM
I uninstalled all the mod and when I installed ajaxchat has no errors any more for the installation, but doen's work again,

I use mkportal, do you think this is the problem here????
Title: Re: AjaxChat Integration
Post by: TheListener on May 09, 2009, 06:01:56 PM
Are there any animated smileys available for use in the chat and shoutbox?
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 09, 2009, 06:13:01 PM
I would imagine you can overwrite the other smileys on the shoutbox, right click the smiley and find the location, once done, you can upload another smiley to the smiley location with the same filename.
Title: Re: AjaxChat Integration with lightbox
Post by: primetime on May 09, 2009, 07:33:24 PM
I am a recent convert from PHPbb3. One feature that I had in my Ajax chat was a MOD that allowed me to use Lightbox in the chat. I renamed the BBCode to Niceimg as the tag. I believe it required something called imagick. I had this so my members would not post large pics in the chat but use the bbcode to post smaller pics and when the pic was clicked, it would show the larger pic in a popup.

Does anyone have any code that would allow this in Ajax Chat with SMF 2.0RC1?

Here are the codes that I added in the PHPBB3 admin area to allow this feature..

[NiceImg={URL}]{TEXT}[/NiceImg]

Replacement text..
<a href="{URL}" title="{TEXT}" rel="lightbox[page]">
<center><img src="{URL}" alt="{TEXT}" height="100" width="140" /></a></center>
<p>{TEXT}</p>

Helpline text
[NiceImg=http://Link to the Image.jpg]Title - Dscription[/NiceImg]

Thank you,
Prime
Title: Re: AjaxChat Integration
Post by: JBlaze on May 09, 2009, 07:36:42 PM
You can edit the /chat/lib files, I think in the AJAXChat.php file, to find where BBC is defined and add it from there.

You can also see the official documentation for Ajax Chat at https://blueimp.net/ajax/#documentation
Title: Re: AjaxChat Integration
Post by: Enders on May 09, 2009, 09:19:25 PM
Mm it still doesn't work o.o. Right now I'm using the shoutbox in a block and my navigation is a drop down. I'll attach my index.template.php o.o.
Title: Re: AjaxChat Integration
Post by: primetime on May 10, 2009, 12:06:32 AM
Quote from: JBlaze™ on May 09, 2009, 07:36:42 PM
You can edit the /chat/lib files, I think in the AJAXChat.php file, to find where BBC is defined and add it from there.

You can also see the official documentation for Ajax Chat at https://blueimp.net/ajax/#documentation

Thank you for the reply. Unfortunately I am not proficient in coding and dont see the bbcode info in the above mentioned file.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 10, 2009, 01:00:10 AM
Quote from: MisterK on May 09, 2009, 11:40:42 AM
i succesfully instaleed ajax chat but 1 problem after instalation i click on chat but what apeir is just 1 clear page http://www.hun-surprise.com/forum/chat/index.php (http://www.hun-surprise.com/forum/chat/index.php) nothing why ? and what can i do ?

Quote from: kolt on May 09, 2009, 12:23:34 PM
I uninstalled all the mod and when I installed ajaxchat has no errors any more for the installation, but doen's work again,

I use mkportal, do you think this is the problem here? ???

CHMOD your chat/index.php and shoutbox/index.php to 755

Please see this for more help and customizations as well
~~~AJAX Chat Intergration FAQ's & Tips-N-Tricks~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 10, 2009, 01:13:28 AM
Quote from: Enders on May 09, 2009, 09:19:25 PM
Mm it still doesn't work o.o. Right now I'm using the shoutbox in a block and my navigation is a drop down. I'll attach my index.template.php o.o.

Try this one Enders, once again I just tried it on my test site and it does popup in a new window.

Title: Re: AjaxChat Integration
Post by: Enders on May 10, 2009, 02:10:52 AM
Thanks mt! It finally worked!
Title: Re: AjaxChat Integration
Post by: amlucent on May 10, 2009, 02:25:49 AM
I am working on porting a phpbb mod called gwbbcode (http://gwshack.us) to SMF and it works so far, but unfortunately my list of bugs is long.   One on my top priority is a bug that it seems to completely bork the Ajax Chat mod.  I will be greatful for any assistance from anyone knowledgeable about ajax chat figuring out what code in ether mod is causing the error.

Thanks.

Download development version of GWBBCODE for SMF (http://gwgoodolddays.net/forums/index.php?action=downloads;sa=view;down=1)
Title: Re: AjaxChat Integration
Post by: societyofrobots on May 10, 2009, 03:38:33 AM
First, I really like the chat room. But I've run into little issues here and there, some solved:

1)
It refused to install until I changed the filename from:

AjaxChat Integration_3.0..zip
to
AjaxChat_Integration_3.0.zip

2)
I occasionally (but not always) get this error when deleting messages, ChatBot: Error: Connection status: 0

3)
I see options for viewing saved log files, but can't figure out how to view them

4)
Whats the likelihood of it being hacked? (an open ended question)

5)
I'm trying to add Adsense:
http://keystonewebsites.com/articles/adsense.php

But I can't figure out in what file and where that code should be added. Putting it into loggedIn.html doesn't seem to be doing anything . . . Ideas?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 10, 2009, 10:17:22 AM
Quote from: Enders on May 10, 2009, 02:10:52 AM
Thanks mt! It finally worked!

Phew LOL.... Glad you got it sorted!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 10, 2009, 10:22:14 AM
@ amlucnet

What exactly seems to be the problem?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 10, 2009, 10:32:57 AM
@ society

1. Glad you got it to upload
2. Connection Status 0 is an undefined error thrown back from your server, should happen rarely
3. Point your browser to yourforum/chat/?view=logs
4. Have never heard or had and issues regarding it being hacked
5. Not sure about the add sense, but you're on the right track it should go in the LoggeIn.html file if you want the add to be placed inside the chatroom
Title: Re: AjaxChat Integration
Post by: amlucent on May 10, 2009, 01:08:08 PM
Quote from: mrtrc266 on May 10, 2009, 10:22:14 AM
@ amlucnet

What exactly seems to be the problem?

When installed together with gwbbcode,  the ajax chat shoutbox simply does not function and the chat room gives this error

Warning: require_once(./gwbbcode/gwbbcode.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/gwplaye/public_html/smf2/gwbbcode/gwbbcode.php on line 23

Fatal error: require_once() [function.require]: Failed opening required './gwbbcode/gwbbcode.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gwplaye/public_html/smf2/gwbbcode/gwbbcode.php on line 23


I wish I was a stronger coder...
Title: Re: AjaxChat Integration
Post by: OntarioAquariaClub on May 10, 2009, 01:09:27 PM
@rickC

Thanks for joining:)

Yes when I installed there were no errors, and no error logs.
Title: Re: AjaxChat Integration
Post by: TheListener on May 10, 2009, 01:32:20 PM
Are we able to replace some of the smileys?
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 10, 2009, 03:14:58 PM
yes you can.

go to
/chat/img/emoticons

overwrite any files you wish to replace, make a note of all the file names and make a backup :)
Title: Re: AjaxChat Integration
Post by: MisterK on May 10, 2009, 04:55:30 PM
Quote from: mrtrc266 on May 10, 2009, 01:00:10 AM
Quote from: MisterK on May 09, 2009, 11:40:42 AM
i succesfully instaleed ajax chat but 1 problem after instalation i click on chat but what apeir is just 1 clear page http://www.hun-surprise.com/forum/chat/index.php (http://www.hun-surprise.com/forum/chat/index.php) nothing why ? and what can i do ?

CHMOD your chat/index.php and shoutbox/index.php to 755

Please see this for more help and customizations as well
~~~AJAX Chat Intergration FAQ's & Tips-N-Tricks~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

i did all that things but no changes i still dont see nothing
Title: Re: AjaxChat Integration
Post by: 1adam12 on May 10, 2009, 05:33:51 PM
After my chat was intalled my members are unable to log in.Am I missing something?
Title: Re: AjaxChat Integration
Post by: 1adam12 on May 10, 2009, 06:12:57 PM
Nevermind... Duh.. lol
Title: Re: AjaxChat Integration
Post by: TheListener on May 10, 2009, 06:57:55 PM
Quote from: johncccccc on May 10, 2009, 03:14:58 PM
yes you can.

go to
/chat/img/emoticons

overwrite any files you wish to replace, make a note of all the file names and make a backup :)

The smileys I want are currently all in a folder of their own. Do I ftp the whole folder first?
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 10, 2009, 07:07:51 PM
Quote from: TheListener on May 10, 2009, 06:57:55 PM
Quote from: johncccccc on May 10, 2009, 03:14:58 PM
yes you can.

go to
/chat/img/emoticons

overwrite any files you wish to replace, make a note of all the file names and make a backup :)

The smileys I want are currently all in a folder of their own. Do I ftp the whole folder first?

What I would do is use FTP to download the entire folder as backup, then download your smileys folder, then start renaming your smileys to the same names as the default ones, then simply drag and drop them into the FTP folder where the chat emotions currently are :)
Title: Re: AjaxChat Integration
Post by: TheListener on May 10, 2009, 07:10:34 PM
So keep the smileys already there as they are but add the new ones?

Sorry John have only done this once before and that was with another smf member via aim.
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 10, 2009, 07:26:05 PM
ok lol..

download the emotions folder as backup to temp place on ur PC.

open up FTP and open the folder with the smileys in it like this

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2F24wc2fo.jpg&hash=f88e6568255c4868632b93173938050e0f7d6c35)

now, get your smileys and overwrite those ones, you must use the same file name as those ones that are already there
Title: Re: AjaxChat Integration
Post by: andy40 on May 10, 2009, 08:10:14 PM
hi i have been using this for  a while now and it worked great but today i installed Dark theme - red and now the shout box shows but i have no scroll bar in there so when people chat it ends up taking the hole page up until you do a refresh is there anything i can do to fix this please?
Title: Re: AjaxChat Integration
Post by: TheListener on May 10, 2009, 08:23:09 PM
John does it matter if the emoticons are gifs in my folder?
Title: Re: AjaxChat Integration
Post by: Enders on May 10, 2009, 08:56:37 PM
1) How do I make a link to all the chat histories?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 10, 2009, 09:31:08 PM
Quote from: andy40 on May 10, 2009, 08:10:14 PM
hi i have been using this for  a while now and it worked great but today i installed Dark theme - red and now the shout box shows but i have no scroll bar in there so when people chat it ends up taking the hole page up until you do a refresh is there anything i can do to fix this please?

Add this to the very first line in the style.css for your theme...
@import url(../../chat/css/shoutbox.css);
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 10, 2009, 09:38:43 PM
Quote from: TheListener on May 10, 2009, 08:23:09 PM
John does it matter if the emoticons are gifs in my folder?

It does not matter what file extentions you use. As John has said you can just upload smileys and name them the same as what's in default emoticon folder.

To actually add more smileys upload to your emoticon folder, then find and edit the following codes in......chat/js/config.js

Find.....These are the commands that will be used to input the smiley, add more as you like, just be sure the last one DOES NOT have the , (comma) at the end.

// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
  '',
  '',
  '',
  '',
  '',
  ':|',
  ':O',
  ':?',
  '',
  '8o',
  'B)',
  ':-)',
  ':-(',
  '',
  'O:-D',
  '>:-D',
  ')',
  ':idea:',
  ':important:',
  ':help:',
  ':error:',
  ':warning:',
  ':favorite:' 
  ),


Find.......These are the actual smiley files that will be displayed according to the command. Make sure that they are in the same order. Once again watch out for the comma at the end.
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'wink.png',
'razz.png',
'grin.png',
'plain.png',
'surprise.png',
'confused.png',
'glasses.png',
'eek.png',
'cool.png',
'smile-big.png',
'crying.png',
'kiss.png',
'angel.png',
'devilish.png',
'monkey.png',
'idea.png',
'important.png',
'help.png',
'error.png',
'warning.png',
'favorite.png'
),

Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 10, 2009, 10:04:21 PM
woot, thanks for the js info, I will use it to add more smileys :D

Thanks.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 10, 2009, 10:11:08 PM
Quote from: johncccccc on May 10, 2009, 10:04:21 PM
woot, thanks for the js info, I will use it to add more smileys :D

Thanks.

I'm currently workin on some edits that will add all the BBC Buttons on the Shoutbox, make your smileys popup in the chat room and shoutbox and add the font color palette to the shoutbox as well.

Should be done in an hour or so, will post back when I'm done.
Title: Re: AjaxChat Integration
Post by: TheListener on May 10, 2009, 10:13:26 PM
Would the editing have to be done using notepad?
Title: Re: AjaxChat Integration
Post by: TheListener on May 10, 2009, 10:44:37 PM
tried to add the smileys but they dont appear in the chat

What am I doing wrong?
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 10, 2009, 10:50:45 PM
You've been busy, mrtrc266!  :P

Any word yet on my Error: Connection status: 0 issue? Give me some good news. ;)


EDIT:
HOLY!!!!!!!!! I have my own good news!!! I finally got it working on my test site! I figured I would start from the very beginning and work my way through each step again. When I got to the PrettyUrls Tip posted by Jiveturkey (I am adding this mod to a clean install), I decided to just give it a try anyway....which I had done previously as well. However, on this particular try, I noticed another .htaccess file and figured I'd try adding RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to this overlooked .htaccess and TADA!!! It works! Time to enjoy (finally)!!!




EDIT:
Quote from: SunKing on May 11, 2009, 12:12:37 AM
I wanted to point out that the PrettyUrls mod had nothing to do with Jiveturkey's fix. The only mod installed on my test site is AjaxChat 3.0. So anyone else experiencing the Error: Connection status: 0, even if not using PrettyUrls, give this fix a try. Put it in the .htaccess file inside the same folder as the SSI.php is in (the forum root, not necessarily the site root).

The fix above fix requires placing a line in an .htaccess file located in the same folder as SSI.php. If this fix still does not resolve your issues, there are a few other things you can try. I will explain them here.


If one of the procedures above fixes your blank chat, please list it so we can see which are the most common configurations.

A big thanks goes to mrtrc266 (again) for helping get these issues sorted.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 10, 2009, 11:25:12 PM
Quote from: SunKing on May 10, 2009, 10:50:45 PM
You've been busy, mrtrc266!  :P

Any word yet on my Error: Connection status: 0 issue? Give me some good news. ;)


EDIT:
HOLY!!!!!!!!! I have my own good news!!! I finally got it working on my test site! I figured I would start from the very beginning and work my way through each step again. When I got to the PrettyUrls Tip posted by Jiveturkey (I am adding this mod to a clean install), I decided to just give it a try anyway....which I had done previously as well. However, on this particular try, I noticed another .htaccess file and figured I'd try adding RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to this overlooked .htaccess and TADA!!! It works! Time to enjoy (finally)!!!

WOOOOHOOOOO!!!!! Sooo Happy you got it sorted SunKing! That's awesome, I finally did get in touch with Hunter but he wasn't sure and has been extremely busy. So, I posted HERE (https://sourceforge.net/forum/message.php?msg_id=7352186) with the issues and they weren't sure either. I didn't forget about ya and have been trying to find some anweres.

Thank you very much for your patience and once again, very glad to see you got it going. Great Job!!!
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 11, 2009, 12:12:37 AM
I wanted to point out that the PrettyUrls mod had nothing to do with Jiveturkey's fix. The only mod installed on my test site is AjaxChat 3.0. So anyone else experiencing the Error: Connection status: 0, even if not using PrettyUrls, give this fix a try. Put it in the .htaccess file inside the same folder as the SSI.php is in (the forum root, not necessarily the site root).

I really like the mod so far, but I do see some areas where I may try my hand at adding/tweaking features. ;) I will certainly post any worthy edits back here in this thread. A belated thanks to Jiveturkey for a solution that I just fumbled....hehehe...and a HUGE thank you to mrtrc266 for going above and beyond to try to find some answers. These are the things that make SMF so great. Thanks again.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 11, 2009, 12:24:51 AM
Finally Adding the BBC Buttons, adding Custom Smileys and MAKING SMILEYS POPUP in your Chat Room and ShoutBox for AJAX Chat Intergration 3.0 is here(https://www.simplemachines.org/community/Smileys/simple/cheesy.gif)

The edits below will add the following to your AJAX Chat Room & Shoutbox.
       Here we go.....First just do a couple edits to these files.

yourforum/Themes/yourtheme/index.tempalte.php
Find
      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


Replace with

      <div class="tborder" style="margin: 10px 0 10px 0;">
         <table width="100%" class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <tr>
            <td width="50%">
                  <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
         </div>
      </td>
         <td width="50%" align="right">
      <div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">
          <font size="1">AJAX Chat</font></a><font size="1"> &copy; <a href="https://blueimp.net">blueimp.net</a> |
          </font> <a href="http://4tmu.ir/forum/index.php"><font size="1">Integrated with SMF</font></a></div>
               </td>
            </tr>
         </table>
      <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


yourforum/chat/js/config.js (You can just use the attatched file if you have not made any previous edits to the config.js file)

Find
   // Defines the list of allowed emoticon codes:
   emoticonCodes: new Array(
      '',
      '',
      '',
      '',
      '',
      ':|',
      ':O',
      ':?',
      '',
      '8o',
      'B)',
      ':-)',
      ':-(',
      '',
      'O:-D',
      '>:-D',
      ')',
      ':idea:',
      ':important:',
      ':help:',
      ':error:',
      ':warning:',
      ':favorite:'     
    ),
   

Replace with
   // Defines the list of allowed emoticon codes:
   emoticonCodes: new Array(
      '',
      '',
      ':cc',
      '',
      ':winktongue:',
      '',
      '',
      ':wave:',
      ':sleeping:',
      ':whistle:',
      ':idea:',
      ':|',
      ':resigned:',
      ':O',
      ':err',
      ':grr',
      '8o',
      'B)',
      ':headphones:',
      ':onthephone:',
      ':applause:',
      ':money:',
      ':thumbsup:',
      ':thumbsdown:',
      ':undecided:',
      ':nervous:',
      ':worried:',
      ':scaredblue:',
      ':stop:',
      ':despair:',
      ':angel:',
      'devilish',
      ':vampire:',
      ':blushing:',
      ':lustful:',
      ':inlove:',
      ':kiss:',
      ':flower:',
      ':radioactive:',
      ':ill:',
      ':tongue:',
      ':mean:',
      ':lipsrsealed:',
      ':bequiet:',
      ':pirate:',
      ':clown:',
      ':mouse:',
      ':bull:',
      ':cow:',
      ':pig:',
      ':bandaged:',
      ':dead:',
      ':biohazard:',
      ':creeper:',
      ':grab:',
      ':banghead:',
      ':lmaoslap:',
      ':spitcoffe:',
      ':lols:',
      ':rofl:'
    ),

Find
   // Defines the list of emoticon files associated with the emoticon codes:
   emoticonFiles: new Array(
      'smile.png',
      'sad.png',
      'wink.png',
      'razz.png',
      'grin.png',
      'plain.png',
      'surprise.png',
      'confused.png',
      'glasses.png',
      'eek.png',
      'cool.png',
      'smile-big.png',
      'crying.png',
      'kiss.png',
      'angel.png',
      'devilish.png',
      'monkey.png',
      'idea.png',
      'important.png',
      'help.png',
      'error.png',
      'warning.png',
      'favorite.png'
   ),

Replace with
   // Defines the list of emoticon files associated with the emoticon codes:
   emoticonFiles: new Array(
      'smile.gif',
      'sad.gif',
      'cry.gif',
      'wink.gif',
      'winktongue.gif',
      'grin.gif',
      'cheesy.gif',
      'wave.gif',
      'sleeping.gif',
      'whistle.gif',
      'idea.gif',
      'unhappy.gif',
      'resigned.gif',
      'surprised.gif',
      'angry.gif',
      'angry2.gif',
      'eek.gif',
      'cool.gif',
      'headphones.gif',
      'onthephone.gif',
      'applause.gif',
      'money.gif',
      'thumbsup.gif',
      'thumbsdown.gif',
      'undecided.gif',
      'nervous.gif',
      'worried.gif',
      'scaredblue.gif',
      'stop.gif',
      'despair.gif',
      'angel.gif',
      'devilish.gif',
      'vampire.gif',
      'blushing.gif',
      'lustful.gif',
      'inlove.gif',
      'kiss.gif',
      'flower.gif',
      'radioactive.gif',
      'ill.gif',
      'tongue.gif',
      'mean.gif',
      'lipsrsealed.gif',
      'bequiet.gif',
      'pirate.gif',
      'clown.gif',
      'mouse.gif',
      'bull.gif',
      'cow.gif',
      'pig.gif',
      'bandaged.gif',
      'dead.gif',
      'biohazard.gif',
      'creeper.gif',
      'grab.gif',
      'banghead.gif',
      'lmaoslap.gif',
      'spitcoffe.gif',
      'lols.gif',
      'rofl.gif'
   ),


   
Upload positions.css to yourforum/chat/css/
Upload shoutbox.css to yourforum/chat/css/
Upload loggedIn.html to yourforum/chat/lib/template/
Upload shoutbox.html to yourforum/chat/lib/template/
Upload config.js to yourforum/chat/js/ (only if you have not made any previous edit, otherwise to the edits above).

PLEASE NOTE: If you DO NOT have your Shoutbox and ChatRoom Intergrated then you must also
Upload shoutbox.css to yourforum/shoutbox/css/
Upload shoutbox.html to yourforum/shoutbox/lib/template/
Upload config.js to yourforum/shoutbox/js/ (only if you have not made any previous edit, otherwise to the edits above).
Unzip and upload the smileys to yourforum/shoutbox/img/emoticons/


The attatched zip file has over 60 Smileys. Unzip the file and upload them to chat/img/emoticons. Some will overwrite what is already there but these are better anyway :-)
You can add or change Smileys by uploading your own Smileys and making the edits to chat/js/config.js. It's important make sure the the input code is in the same order as the image file. Also make sure that the last array DOES NOT have a comma.

Have fun. ;)
Title: Re: AjaxChat Integration
Post by: TheListener on May 11, 2009, 12:27:33 AM
How?

I have never used notepad and have only recently used the ftp ( had help via aim)

Am still stuck on how to add my own smileys to chat.

Also how do I add the mods so they can kick/ban people?

With our shoutbox we have no scrollbar nor admin facilities
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 11, 2009, 12:38:17 AM
10 minutes ago. Couldn't you have posted that 10 minutes ago??  :P Now I'll be up all night adding even more great features....lol

I have been using nneonneo's shoutbox for quite some time ( as i think you may already know) and have become used to, almost dependent on, some added features to that mod. The one feature that I would miss the most by switching over to this awesome mod, is the notification in the shoutbox when someone posts or replies to a post. If this is already a feature of AjaxChat, how would I turn it on? I made both a test reply as well as a test post to see if either were notified, but neither were. Please keep in mind I have only briefly skimmed through the configurations. If this is not yet a feature, how would one go about adding it?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 11, 2009, 02:12:59 AM
LOL @ SunKing I knew you were comin so I was trying to hurry :P

ATM that is not a feature available for AJAX Chat. That would be a great feature though, will have to do a lot of asking and digging to see how to go about getting that to work in here.

Would love to see any other edits/tweaks you can find.
Title: Re: AjaxChat Integration
Post by: andy40 on May 11, 2009, 04:37:39 AM
Quote from: mrtrc266 on May 10, 2009, 09:31:08 PM
Quote from: andy40 on May 10, 2009, 08:10:14 PM
hi i have been using this for  a while now and it worked great but today i installed Dark theme - red and now the shout box shows but i have no scroll bar in there so when people chat it ends up taking the hole page up until you do a refresh is there anything i can do to fix this please?

Add this to the very first line in the style.css for your theme...
@import url(../../chat/css/shoutbox.css);




hi thanks that worked great  :)
Title: Re: AjaxChat Integration
Post by: wiki on May 11, 2009, 09:07:34 AM
sometime during chat i got this error:

Error: Connection status: 408
Title: Re: AjaxChat Integration
Post by: kolt on May 11, 2009, 12:27:41 PM
Help Please, I installed the chat succesfully but does't work, I have 1.1.8 smf forum, I have disinstalled all the modules only for trying to install the chat, please help me

The chat and the shoutbox it shows in the forum but I can't write nothing and in the chat doens't show me inside.

Thanks in advance
Title: Re: AjaxChat Integration
Post by: bullbreedluverz on May 11, 2009, 12:52:49 PM
Quote from: mrtrc266 on May 11, 2009, 12:24:51 AM


  • Adds all of the BBC Buttons to your Shoutbox.
  • Adds the Font Color Palette to your Shoutbox.
  • Adds custom Smileys to your Chat Room and Shoutbox.
  • Makes the Font Color Palette PopUp in the Shoutbox.
  • Makes the Smileys PopUp in your Chat Room & Shoutbox.
  • Adds 60 Custom Smileys to your Chat Room & Shoutbox.



right am i being blind or completely stupid but i dont see no "popup" for colours/smileys or all the BBC buttons on my shoutbox

done the index.template.php edit, edited chat/js/config.js, uploaded the attatched files, added smileys and...... well all looks the same lol

http://www.bullbreedluverz.com/smf/index.php
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 11, 2009, 01:10:53 PM
@ Stikki

Looks like you didn't upload and overwrite the  ???

Upload positions.css to yourforum/chat/css/
Upload shoutbox.css to yourforum/chat/css/
Upload loggedIn.html to yourforum/chat/lib/template/
Upload shoutbox.html to yourforum/chat/lib/template/
Title: Re: AjaxChat Integration
Post by: kolt on May 11, 2009, 01:36:47 PM
Hello mrtrc266 can you help me please to resolve the problem?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 11, 2009, 01:41:25 PM
Quote from: kolt on May 11, 2009, 01:36:47 PM
Hello mrtrc266 can you help me please to resolve the problem?

What's the problem?
Title: Re: AjaxChat Integration
Post by: bullbreedluverz on May 11, 2009, 01:43:30 PM
it turns out it was the later of my statements and im stupid - its my server, i uploaded the files but the server is denying permission to over write the files
Title: Re: AjaxChat Integration
Post by: kolt on May 11, 2009, 01:47:40 PM
Quote from: kolt on May 11, 2009, 12:27:41 PM
Help Please, I installed the chat succesfully but does't work, I have 1.1.8 smf forum, I have disinstalled all the modules only for trying to install the chat, please help me

The chat and the shoutbox it shows in the forum but I can't write nothing and in the chat doens't show me inside.

Thanks in advance


I installed the chat but doen't work. Tell me please what to do?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 11, 2009, 01:50:33 PM
Quote from: kolt on May 11, 2009, 01:47:40 PM
Quote from: kolt on May 11, 2009, 12:27:41 PM
Help Please, I installed the chat succesfully but does't work, I have 1.1.8 smf forum, I have disinstalled all the modules only for trying to install the chat, please help me

The chat and the shoutbox it shows in the forum but I can't write nothing and in the chat doens't show me inside.

Thanks in advance


I installed the chat but doen't work. Tell me please what to do?

Ohhh....lol sorry I totally missed your post try setting the file permissions to 755 for chat/index.php and shoutbox/index.php
Title: Re: AjaxChat Integration
Post by: Tochotitlan on May 11, 2009, 03:30:22 PM
Hi everyone im using SMF Version 1.1.8 and i already install AjaxChat Integration 3.0 but only shows up with a default theme, im using the Package Parser to modify the files but the package parser returns this error

Quote
parseArchive(): No package-info.xml in this mod! Is it corrupted?

Im doing something wrong?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 11, 2009, 03:36:33 PM
Quote from: Tochotitlan on May 11, 2009, 03:30:22 PM
Hi everyone im using SMF Version 1.1.8 and i already install AjaxChat Integration 3.0 but only shows up with a default theme, im using the Package Parser to modify the files but the package parser returns this error

Quote
parseArchive(): No package-info.xml in this mod! Is it corrupted?

Im doing something wrong?

Put the AjaxChat+Integration_3.0.zip file in the Package Parser (http://resourcez.biz/PackageParser/)
Title: Re: AjaxChat Integration
Post by: Tochotitlan on May 11, 2009, 03:44:28 PM
Quote from: mrtrc266 on May 11, 2009, 03:36:33 PM
Quote from: Tochotitlan on May 11, 2009, 03:30:22 PM
Hi everyone im using SMF Version 1.1.8 and i already install AjaxChat Integration 3.0 but only shows up with a default theme, im using the Package Parser to modify the files but the package parser returns this error

Quote
parseArchive(): No package-info.xml in this mod! Is it corrupted?

Im doing something wrong?

Put the AjaxChat+Integration_3.0.zip file in the Package Parser (http://resourcez.biz/PackageParser/)

thanks for your help :D
Title: Re: AjaxChat Integration
Post by: Tochotitlan on May 11, 2009, 04:11:14 PM
hi again, i have only one more problem, i can't find in the file index.template.php this lines

Quote
// Show the menu here, according to the menu sub template.
   template_menu();


Quote
// But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }


Title: Re: AjaxChat Integration
Post by: kolt on May 11, 2009, 05:19:52 PM
Quote from: mrtrc266 on May 11, 2009, 01:50:33 PM
Quote from: kolt on May 11, 2009, 01:47:40 PM
Quote from: kolt on May 11, 2009, 12:27:41 PM
Help Please, I installed the chat succesfully but does't work, I have 1.1.8 smf forum, I have disinstalled all the modules only for trying to install the chat, please help me

The chat and the shoutbox it shows in the forum but I can't write nothing and in the chat doens't show me inside.

Thanks in advance


I installed the chat but doen't work. Tell me please what to do?

Ohhh....lol sorry I totally missed your post try setting the file permissions to 755 for chat/index.php and shoutbox/index.php

I have done it, but I don't know why doens't work, I installed a "new smf forum test" and it works perfectly.

I updade everything in my forum the database also, I unistalled all the packages modules for the ajaxchat but doen't work.

any idea???
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 11, 2009, 05:23:47 PM
@ Kolt, try this he was having the same problem

http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529
Title: Re: AjaxChat Integration
Post by: kolt on May 11, 2009, 05:40:17 PM
Exactly mrtrc266, I have the same problem like him

Quote from: SunKing on April 01, 2009, 09:31:01 PM
No luck. Same exact results as before. It never saves anything to the database. Here's a screenshot of what I see to maybe (re)shed some light on the issue.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg5.imageshack.us%2Fimg5%2F3933%2Fgreenshot20090401202311.png&hash=53ebe04a6eb6dce72f00be4e67560bd2ac2c6d9d) (http://img5.imageshack.us/my.php?image=greenshot20090401202311.png)

Nice and nothing.  ;D

But you think there is nothing to do for this chat for some users like me????

Title: Re: AjaxChat Integration
Post by: kolt on May 11, 2009, 06:03:48 PM
I got ittttttttttttttttttttttttttt!!!!

Thank you very much for this beautiful mod mrtrc266, and a special thanks to SunKing that has found this problem,

I delate the HTACCESS, and it work perfectly..

thanks again
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 11, 2009, 06:23:26 PM
Quote from: kolt on May 11, 2009, 06:03:48 PM
I got ittttttttttttttttttttttttttt!!!!

Thank you very much for this beautiful mod mrtrc266, and a special thanks to SunKing that has found this problem,

I delate the HTACCESS, and it work perfectly..

thanks again

Thank Hunter for the Mod, glad you got it sorted. Enjoy
Title: Re: AjaxChat Integration
Post by: wiki on May 11, 2009, 07:55:09 PM
Quote from: wiki on May 11, 2009, 09:07:34 AM
sometime during chat i got this error:

Error: Connection status: 408

Thank you in advance martrc266
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 11, 2009, 08:26:09 PM
Quote from: wiki on May 11, 2009, 07:55:09 PM
Quote from: wiki on May 11, 2009, 09:07:34 AM
sometime during chat i got this error:

Error: Connection status: 408

Thank you in advance martrc266

Hey wiki, I've never seen that and can't even find any info on it @ Sourceforge. When it happens does it last very long? Does it happen in IE and FF?
Title: Re: AjaxChat Integration
Post by: MisterK on May 11, 2009, 11:44:48 PM
Quote from: MisterK on May 10, 2009, 04:55:30 PM
Quote from: mrtrc266 on May 10, 2009, 01:00:10 AM
Quote from: MisterK on May 09, 2009, 11:40:42 AM
i succesfully instaleed ajax chat but 1 problem after instalation i click on chat but what apeir is just 1 clear page http://www.hun-surprise.com/forum/chat/index.php (http://www.hun-surprise.com/forum/chat/index.php) nothing why ? and what can i do ?

CHMOD your chat/index.php and shoutbox/index.php to 755

Please see this for more help and customizations as well
~~~AJAX Chat Intergration FAQ's & Tips-N-Tricks~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

i did all that things but no changes i still dont see nothing
so ????? i wait for some help
Title: Re: AjaxChat Integration
Post by: Enders on May 12, 2009, 02:40:31 AM
It would be nice if you can see the whole chat history and search by username or search by text.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 12:13:43 PM
Quote from: Enders on May 12, 2009, 02:40:31 AM
It would be nice if you can see the whole chat history and search by username or search by text.

http://yoursite.com/chat/?view=logs
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 12:14:31 PM
@ Tochotitlan

Attatch you index.template.php file please
Title: Re: AjaxChat Integration
Post by: Geargarious on May 12, 2009, 04:09:45 PM
I have the chat/Sb installed and want to make some changes from the suggestions on this thread but when I go into admin section and then the lsit file of the chat I can't chnge anything. Am i looking in the wrong spot? I am using SMF 1.1.8 default core theme.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 04:13:03 PM
Click the link in my signature, that should get your started ;)
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 12, 2009, 06:14:22 PM
Quote from: mrtrc266 on May 12, 2009, 12:13:43 PM
Quote from: Enders on May 12, 2009, 02:40:31 AM
It would be nice if you can see the whole chat history and search by username or search by text.

http://yoursite.com/chat/?view=logs

I never knew that, thanks, is there away to restrict normal users using the logs feature?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 06:20:30 PM
Quote from: johncccccc on May 12, 2009, 06:14:22 PM
Quote from: mrtrc266 on May 12, 2009, 12:13:43 PM
Quote from: Enders on May 12, 2009, 02:40:31 AM
It would be nice if you can see the whole chat history and search by username or search by text.

http://yoursite.com/chat/?view=logs (http://yoursite.com/chat/?view=logs)

I never knew that, thanks, is there away to restrict normal users using the logs feature?

I don't think non-admins should be able to view it. Just tried it on my site and it woudn't let me as a regualr user.
Title: Re: AjaxChat Integration
Post by: Geargarious on May 12, 2009, 06:46:37 PM
Quote from: mrtrc266 on May 12, 2009, 04:13:03 PM
Click the link in my signature, that should get your started ;)

This was where I got the tips from, LOL. It says to go to youforum/...I guess I don't understand what that is. I am pretty new at this so big learning curve here. I follow the steps in the admin section but there is no option to change anything. Thanks for the help.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 06:57:50 PM
@ Geargarious

Most of the edits need to be made be editing the actual file. You need to download it via an FTP Program like FileZilla (http://filezilla-project.org/download.php?type=client) then edit the file as described with a program like Notepad++ npp.5.3.1.Installer.exe (http://sourceforge.net/project/showfiles.php?group_id=95717&package_id=102072)   (NOT Notepad)

What exactly are you wanting to do?
Title: Re: AjaxChat Integration
Post by: Enders on May 12, 2009, 07:13:12 PM
Quote from: mrtrc266 on May 12, 2009, 06:20:30 PM
Quote from: johncccccc on May 12, 2009, 06:14:22 PM
Quote from: mrtrc266 on May 12, 2009, 12:13:43 PM
Quote from: Enders on May 12, 2009, 02:40:31 AM
It would be nice if you can see the whole chat history and search by username or search by text.

http://yoursite.com/chat/?view=logs (http://yoursite.com/chat/?view=logs)

I never knew that, thanks, is there away to restrict normal users using the logs feature?

I don't think non-admins should be able to view it. Just tried it on my site and it woudn't let me as a regualr user.

How would I allow only members to view it o.o?
Title: Re: AjaxChat Integration
Post by: Geargarious on May 12, 2009, 07:31:08 PM
Quote from: mrtrc266 on May 12, 2009, 06:57:50 PM
@ Geargarious

Most of the edits need to be made be editing the actual file. You need to download it via an FTP Program like FileZilla (http://filezilla-project.org/download.php?type=client) then edit the file as described with a program like Notepad++ npp.5.3.1.Installer.exe (http://sourceforge.net/project/showfiles.php?group_id=95717&package_id=102072)   (NOT Notepad)

What exactly are you wanting to do?

Trying to extend the time on timed out from 2 minutes to 5 and see if I can get rid of the 500 error.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 07:42:20 PM
Using the FTP Program find chat/index.php and shoutbox/index.php right click on the file and click "File Permissions" and set it to 755.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 07:43:19 PM
Enders, I believe you would have to make them mods or admins for them to have access to the chat log.
Title: Re: AjaxChat Integration
Post by: Enders on May 12, 2009, 08:44:22 PM
Nvm, I found it on the bottom of the configuration file... chat > lib > config.php

Quote// Defines if registered users (including moderators) have access to the logs (admins are always granted access):
$config['logsUserAccess'] = false;
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 08:54:10 PM
Quote from: Enders on May 12, 2009, 08:44:22 PM
Nvm, I found it on the bottom of the configuration file... chat > lib > config.php

Quote// Defines if registered users (including moderators) have access to the logs (admins are always granted access):
$config['logsUserAccess'] = false;

Cool, I never looked for such an option...usually only for admin or mods.
Title: Re: AjaxChat Integration
Post by: dzinerfusion on May 12, 2009, 09:38:13 PM
Ok ive made sure that the edit was before the </body> in the index.template and Ive enabled ''chat in popup for my 2.0 rc1 it still doesnt work! Can you help! ;D
Title: Re: AjaxChat Integration
Post by: 4T3IG0 on May 12, 2009, 09:38:38 PM
Quote from: mrtrc266 on May 11, 2009, 12:24:51 AM
Finally Adding the BBC Buttons, adding Custom Smileys and MAKING SMILEYS POPUP in your Chat Room and ShoutBox for AJAX Chat Intergration 3.0 is here(https://www.simplemachines.org/community/Smileys/simple/cheesy.gif)

  • Makes the Smileys PopUp in your Chat Room & Shoutbox.
  • Adds 60 Custom Smileys to your Chat Room & Shoutbox.

Have fun. ;)

Hi.
Fantastic work!  Mrtrc266

For me the popup and 60 Custom Smileys are just fine in SMF 1.1.8...   only problem, no ruler on the 60 Custom Smileys Shoutbox. Can you please tell me what did I miss?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 09:42:11 PM
@ 4T3IG0

Not sure what you mean
Quoteonly problem, no ruler on the 60 Custom Smileys Shoutbox. Can you please tell me what did I miss?

Can you send a screen shot or a URL to your site?
Title: Re: AjaxChat Integration
Post by: 4T3IG0 on May 12, 2009, 09:43:35 PM
Yes of course, no problem.   http://cyberamigos.org/index.php?action=forum

user:   testeajax

Pass:  teste
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 09:46:24 PM
Quote from: 4T3IG0 on May 12, 2009, 09:43:35 PM
Yes of course, no problem.   http://cyberamigos.org/index.php?action=forum (http://cyberamigos.org/index.php?action=forum)

Please enable the shoutbox for guests for a few minutes so I  can take a look.
Title: Re: AjaxChat Integration
Post by: 4T3IG0 on May 12, 2009, 09:56:18 PM
Quote from: mrtrc266 on May 12, 2009, 09:46:24 PM

Please enable the shoutbox for guests for a few minutes so I  can take a look.

It's enabled.   :)

Upss   now I see other error,  Font colour doesn't work.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 10:08:37 PM
Looks like the shoutbox.html didn't get uploaded also upload it to shoutbox/lib/templates/ if you don't have the shout/chat intergrated
Title: Re: AjaxChat Integration
Post by: pendusingh on May 12, 2009, 10:20:51 PM

Friends i m using 1.1.8 SMF,  i installed Ajax chat 3.0 version. all installation was gud. everything was installed fine, when i hit chat key, it take me in chat room. But dont show any of us username there, also it dont let us submit msg.  I hope you guys get it what i mean here.... 

for more info i m posting this screenshot. you can see the problem.


Thanks in advance.

here is screen shot will explain what i m talking about Screen shot of Ajex Chat (http://www.simplemachines.org/community/index.php?action=dlattach;topic=310083.0;attach=98242;image)
Title: Re: AjaxChat Integration
Post by: 4T3IG0 on May 12, 2009, 10:21:52 PM
Quote from: mrtrc266 on May 12, 2009, 10:08:37 PM
Looks like the shoutbox.html didn't get uploaded also upload it to shoutbox/lib/templates/ if you don't have the shout/chat intergrated

Tnks for your help. Tried that but nothing...  I will need to do so with more time. Here's to late now, so I'll do that tomorrow.  ;)

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 10:29:25 PM
@4T3IG0 also try the following as well

PLEASE NOTE: If you DO NOT have your Shoutbox and ChatRoom Intergrated then you must also
Upload shoutbox.css to yourforum/shoutbox/css/
Upload shoutbox.html to yourforum/shoutbox/lib/template/
Upload config.js to yourforum/shoutbox/js/ (only if you have not made any previous edit, otherwise to the edits above).
Unzip and upload the smileys to yourforum/shoutbox/img/emoticons/
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 10:31:07 PM
Quote from: pendusingh on May 12, 2009, 10:20:51 PM

Friends i m using 1.1.8 SMF,  i installed Ajax chat 3.0 version. all installation was gud. everything was installed fine, when i hit chat key, it take me in chat room. But dont show any of us username there, also it dont let us submit msg.  I hope you guys get it what i mean here.... 

for more info i m posting this screenshot. you can see the problem.


Thanks in advance.

here is screen shot will explain what i m talking about Screen shot of Ajex Chat (http://www.simplemachines.org/community/index.php?action=dlattach;topic=310083.0;attach=98242;image)


If you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please read HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)
Title: Re: AjaxChat Integration
Post by: 4T3IG0 on May 12, 2009, 10:36:07 PM
Yes that did it. I thought that my Shoutbox and ChatRoom were Intergrated, but it seams they don't. Now it's working well.

Tnks.   :D

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 12, 2009, 10:53:49 PM
Quote from: 4T3IG0 on May 12, 2009, 10:36:07 PM
Yes that did it. I thought that my Shoutbox and ChatRoom were Intergrated, but it seams they don't. Now it's working well.

Tnks.   :D

Glad you got it sorted :-)...Enjoy
Title: Re: AjaxChat Integration
Post by: Paracelsus on May 13, 2009, 04:46:45 AM
mrtrc266,

I found out why I couldn't customize my shoutbox... the @ import command in style.css doesn't work at all with me, so instead I had to put the stylesheet directly in index.template.php.
Title: Re: AjaxChat Integration
Post by: vozman on May 13, 2009, 09:59:04 AM
please help...

i've installed Ajax Chat
just like it's shown for 1.1.7

but it still doesn't work...

1. i can't find "chat" link in my forum
2. there're new menu apprear in "features and options" but there're no text on it...just the check boxes
*same thing happen in the permission setup

the one that i wanna ask...
Move the included directory "chat" to "the root directory".
Move the included directory "chat/css" to "./shoutBox".
Move the included directory "chat/flash" to "./shoutBox".
Move the included directory "chat/img" to "./shoutBox".
Move the included directory "chat/js" to "./shoutBox".
Move the included directory "chat/lib" to "./shoutBox".
Move the included directory "chat/socket" to "./shoutBox".
Move the included directory "chat/sounds" to "./shoutBox".
Move the included directory "chat/src" to "./shoutBox".
Move the included directory "shoutBox" to "the root directory".

1.what does it mean by root directory?
is it the same directory i put "forum" folder?
so it's gonna be... www.mysite.com/forum and www.mysite.com/chat

2.do i need to move chat folder INTO shoutbox folder? or just the css, flash, images, etc" folders into shoutbox folder? and looks like it replace some existing files...do i replace it?

3.i've added some change into default themes, in this case i don't use default themes, so what should i do?

Thanks a lot
i'm using 1.1.7
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 13, 2009, 10:30:17 AM
Quote from: Paracelsus on May 13, 2009, 04:46:45 AM
mrtrc266,

I found out why I couldn't customize my shoutbox... the @ import command in style.css doesn't work at all with me, so instead I had to put the stylesheet directly in index.template.php.

One thing to note when edit the shoutbox.css is that if you do not have your chat/shout intergrated then you have to edit the shoutbox/css/shoutbox.css file as well.

Sounds like you got it sorted though, nice work around  :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 13, 2009, 10:31:56 AM
@ vozman

You should install the Mod via the Package Manager, then if your using a custom theme you have to do all the edits manually to that theme.

~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: wildcat180 on May 13, 2009, 12:50:11 PM
I apologize if this has been covered...with 95 pages...whew!

I tried to install this mod using the package manager and after selecting "apply mod", the testing phase comes back with tested fails, one on ./Sources/BoardIndex.php and the other is  ./Themes/default/index.template.php and says in a bright red box above, "Error in package installation".

I'm using SMF 1.1.8 with the default template.  Any idea what could be wrong?
Title: Re: AjaxChat Integration
Post by: ɔɔɔɔɔɔuɥoɾ on May 13, 2009, 03:16:55 PM
Quote from: wildcat180 on May 13, 2009, 12:50:11 PM
I apologize if this has been covered...with 95 pages...whew!

I tried to install this mod using the package manager and after selecting "apply mod", the testing phase comes back with tested fails, one on ./Sources/BoardIndex.php and the other is  ./Themes/default/index.template.php and says in a bright red box above, "Error in package installation".

I'm using SMF 1.1.8 with the default template.  Any idea what could be wrong?

You will have to manually edit that file your self, many custom themes or default with other mods make changes to the code, and it can no longer find what code its looking for to replace or add by, use the package parser to help find what to add and where to add it to the failed files
Title: Re: AjaxChat Integration
Post by: wildcat180 on May 13, 2009, 04:54:23 PM
So, I go ahead with the installation through the package manager, then manually edit the two sections that are failing?  (That code is in the manual install section, right?  It's not something special?)  I just want to be clear on how to handle this...

Thanks!
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 13, 2009, 05:43:59 PM
Yes wildcat, you only need to manually edit the failing blocks of code. That's what I had to do also. Be sure to make backups of those files just in case. ;)
Title: Re: AjaxChat Integration
Post by: dzinerfusion on May 13, 2009, 05:52:20 PM
Quote from: mrtrc266 on May 11, 2009, 12:24:51 AM
Finally Adding the BBC Buttons, adding Custom Smileys and MAKING SMILEYS POPUP in your Chat Room and ShoutBox for AJAX Chat Intergration 3.0 is here(https://www.simplemachines.org/community/Smileys/simple/cheesy.gif)

The edits below will add the following to your AJAX Chat Room & Shoutbox.
     

  • Adds all of the BBC Buttons to your Shoutbox.
  • Adds the Font Color Palette to your Shoutbox.
  • Adds custom Smileys to your Chat Room and Shoutbox.
  • Makes the Font Color Palette PopUp in the Shoutbox.
  • Makes the Smileys PopUp in your Chat Room & Shoutbox.
  • Adds 60 Custom Smileys to your Chat Room & Shoutbox.
  • DEMO HERE (http://monsters-mansion.com/testsmf2/index.php)   
Here we go.....First just do a couple edits to these files.

yourforum/Themes/yourtheme/index.tempalte.php
Find
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
</div>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


Replace with

<div class="tborder" style="margin: 10px 0 10px 0;">
<table width="100%" class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<tr>
<td width="50%">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
</div>
</td>
<td width="50%" align="right">
<div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">
          <font size="1">AJAX Chat</font></a><font size="1"> &copy; <a href="https://blueimp.net">blueimp.net</a> |
          </font> <a href="http://4tmu.ir/forum/index.php"><font size="1">Integrated with SMF</font></a></div>
</td>
</tr>
</table>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


yourforum/chat/js/config.js (You can just use the attatched file if you have not made any previous edits to the config.js file)

Find
// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
';)',
':P',
':D',
':|',
':O',
':?',
'8)',
'8o',
'B)',
':-)',
':-(',
':-*',
'O:-D',
'>:-D',
':o)',
':idea:',
':important:',
':help:',
':error:',
':warning:',
':favorite:'
),

Replace with
// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
':cc',
';)',
':winktongue:',
':P',
':D',
':wave:',
':sleeping:',
':whistle:',
':idea:',
':|',
':resigned:',
':O',
':err',
':grr',
'8o',
'B)',
':headphones:',
':onthephone:',
':applause:',
':money:',
':thumbsup:',
':thumbsdown:',
':undecided:',
':nervous:',
':worried:',
':scaredblue:',
':stop:',
':despair:',
':angel:',
'devilish',
':vampire:',
':blushing:',
':lustful:',
':inlove:',
':kiss:',
':flower:',
':radioactive:',
':ill:',
':tongue:',
':mean:',
':lipsrsealed:',
':bequiet:',
':pirate:',
':clown:',
':mouse:',
':bull:',
':cow:',
':pig:',
':bandaged:',
':dead:',
':biohazard:',
':creeper:',
':grab:',
':banghead:',
':lmaoslap:',
':spitcoffe:',
':lols:',
':rofl:'
),

Find
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'wink.png',
'razz.png',
'grin.png',
'plain.png',
'surprise.png',
'confused.png',
'glasses.png',
'eek.png',
'cool.png',
'smile-big.png',
'crying.png',
'kiss.png',
'angel.png',
'devilish.png',
'monkey.png',
'idea.png',
'important.png',
'help.png',
'error.png',
'warning.png',
'favorite.png'
),

Replace with
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.gif',
'sad.gif',
'cry.gif',
'wink.gif',
'winktongue.gif',
'grin.gif',
'cheesy.gif',
'wave.gif',
'sleeping.gif',
'whistle.gif',
'idea.gif',
'unhappy.gif',
'resigned.gif',
'surprised.gif',
'angry.gif',
'angry2.gif',
'eek.gif',
'cool.gif',
'headphones.gif',
'onthephone.gif',
'applause.gif',
'money.gif',
'thumbsup.gif',
'thumbsdown.gif',
'undecided.gif',
'nervous.gif',
'worried.gif',
'scaredblue.gif',
'stop.gif',
'despair.gif',
'angel.gif',
'devilish.gif',
'vampire.gif',
'blushing.gif',
'lustful.gif',
'inlove.gif',
'kiss.gif',
'flower.gif',
'radioactive.gif',
'ill.gif',
'tongue.gif',
'mean.gif',
'lipsrsealed.gif',
'bequiet.gif',
'pirate.gif',
'clown.gif',
'mouse.gif',
'bull.gif',
'cow.gif',
'pig.gif',
'bandaged.gif',
'dead.gif',
'biohazard.gif',
'creeper.gif',
'grab.gif',
'banghead.gif',
'lmaoslap.gif',
'spitcoffe.gif',
'lols.gif',
'rofl.gif'
),


   
Upload positions.css to yourforum/chat/css/
Upload shoutbox.css to yourforum/chat/css/
Upload loggedIn.html to yourforum/chat/lib/template/
Upload shoutbox.html to yourforum/chat/lib/template/
Upload config.js to yourforum/chat/js/ (only if you have not made any previous edit, otherwise to the edits above).

PLEASE NOTE: If you DO NOT have your Shoutbox and ChatRoom Intergrated then you must also
Upload shoutbox.css to yourforum/shoutbox/css/
Upload shoutbox.html to yourforum/shoutbox/lib/template/
Upload config.js to yourforum/shoutbox/js/ (only if you have not made any previous edit, otherwise to the edits above).
Unzip and upload the smileys to yourforum/shoutbox/img/emoticons/


The attatched zip file has over 60 Smileys. Unzip the file and upload them to chat/img/emoticons. Some will overwrite what is already there but these are better anyway :-)
You can add or change Smileys by uploading your own Smileys and making the edits to chat/js/config.js. It's important make sure the the input code is in the same order as the image file. Also make sure that the last array DOES NOT have a comma.

Have fun. ;)

is this what you do exactly toa 2.0RC1 FORUM? plus if you could help me why my chat wont pop up ??? Ill include the url and the index.template

www.modernopolis.byethost32.com
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 14, 2009, 01:44:29 AM
@ bluesinjid

Yes those are exaclty the instructions for SMF 2.

I have taken a look @ you index.template file but can't figure it out, will have to take a look in the morning.
Title: Re: AjaxChat Integration
Post by: tfs on May 14, 2009, 02:10:12 AM
Reference note:

For anyone getting the error "8: Undefined variable: count" in their log, see this linked thread.  Issue is AJAX Chat v3.0 setting "Show online users below total logged in time section?"

How do I debug this? (http://www.simplemachines.org/community/index.php?topic=309999.0)
Title: Re: AjaxChat Integration
Post by: tfs on May 14, 2009, 03:03:05 AM
I have one user who can use the SHOUTBOX fine when using IE7, but when she comes in through her AOL browser nobody can see the entries that she's typing (including her).  She can however see what other people are typing.

If I go into the CHAT window I see a whole bunch of the following...

(21:27:12) ChatBot: Peggy has been logged out (Invalid IP address).

This has been going on for her for a long time, and at two forums that I run.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 14, 2009, 03:17:57 AM
Quote from: tfs on May 14, 2009, 02:10:12 AM
Reference note:

For anyone getting the error "8: Undefined variable: count" in their log, see this linked thread.  Issue is AJAX Chat v3.0 setting "Show online users below total logged in time section?"

How do I debug this? (http://www.simplemachines.org/community/index.php?topic=309999.0)

I think that goes away if you check the "Show online users below total logged in time section?". Can't remember but I used to get that. Now I just check everything and don't get any erros about anything.

Haven't had time to fool  with the degbug post  but will check it out soon.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 14, 2009, 03:20:35 AM
Quote from: tfs on May 14, 2009, 03:03:05 AM
I have one user who can use the SHOUTBOX fine when using IE7, but when she comes in through her AOL browser nobody can see the entries that she's typing (including her).  She can however see what other people are typing.

If I go into the CHAT window I see a whole bunch of the following...

(21:27:12) ChatBot: Peggy has been logged out (Invalid IP address).

This has been going on for her for a long time, and at two forums that I run.

I have one user that uses AOL as well and she can only type one message and then it stops for her. She gets very frusterated. I have been looking all over for a fix. If and when I find something I will post it here.

Sorry I don't have a better answer :(
Title: Re: AjaxChat Integration
Post by: Rodeni on May 14, 2009, 08:24:43 AM
hy
I have installed Ajax Chat and I could enter it normally as admin but members told me that they cant enter chat becouse it said to the that their username is incorrect. Please help fast.
Title: Re: AjaxChat Integration
Post by: wildcat180 on May 14, 2009, 10:04:50 AM
I tried manually editing the code in the two sections that failed.  I ran into trouble and wasn't able to finish because I wasn't finding the sections of code I was supposed to find to replace or add to.  Any suggestions on how to proceed?
Title: Re: AjaxChat Integration
Post by: wildcat180 on May 14, 2009, 10:23:56 AM
I think I've figured it out.  In case anyone else runs into the same problems, I'll explain what I did.

Since my board index and index template were the two that were failing, I uninstalled any package that did something to my index.  (Who's online, hide who's online from guests, etc)  I then installed the chat and found everything passed and it installed just fine.

Now, I have to check all the features and make sure it works. :D
Title: Re: AjaxChat Integration
Post by: tfs on May 14, 2009, 11:05:34 AM
Quote from: mrtrc266 on May 14, 2009, 03:17:57 AM
I think that goes away if you check the "Show online users below total logged in time section?". Can't remember but I used to get that. Now I just check everything and don't get any erros about anything.

Haven't had time to fool  with the degbug post  but will check it out soon.

That's exactly what makes it go away.  I started getting the error after I switched AJAX chat into a Simple Portal block, which is when I turned off the option in AJAX Chat.

It was frustrating because the actual error message points to a file other than the file in which the error lies, and I had to use a sql query (to turn off "eval" - provided by Sarge) that changes the way that SMF logs errors for the purpose of debugging.

So I made a detailed post about it so that others won't have to pull out as many hairs as I have over this.  :)
Title: Re: AjaxChat Integration
Post by: TashaElizabeth on May 14, 2009, 11:15:20 AM
Quote from: mrtrc266 on May 10, 2009, 09:38:43 PM
Quote from: TheListener on May 10, 2009, 08:23:09 PM
John does it matter if the emoticons are gifs in my folder?

It does not matter what file extentions you use. As John has said you can just upload smileys and name them the same as what's in default emoticon folder.

To actually add more smileys upload to your emoticon folder, then find and edit the following codes in......chat/js/config.js

Find.....These are the commands that will be used to input the smiley, add more as you like, just be sure the last one DOES NOT have the , (comma) at the end.

// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
  '',
  '',
  '',
  '',
  '',
  ':|',
  ':O',
  ':?',
  '',
  '8o',
  'B)',
  ':-)',
  ':-(',
  '',
  'O:-D',
  '>:-D',
  ')',
  ':idea:',
  ':important:',
  ':help:',
  ':error:',
  ':warning:',
  ':favorite:' 
  ),


Find.......These are the actual smiley files that will be displayed according to the command. Make sure that they are in the same order. Once again watch out for the comma at the end.
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'wink.png',
'razz.png',
'grin.png',
'plain.png',
'surprise.png',
'confused.png',
'glasses.png',
'eek.png',
'cool.png',
'smile-big.png',
'crying.png',
'kiss.png',
'angel.png',
'devilish.png',
'monkey.png',
'idea.png',
'important.png',
'help.png',
'error.png',
'warning.png',
'favorite.png'
),





i added new ones like this, do not have a comma, and all that shows up is what i named it...ie; :hrt: -- and that is what shows up in my smilie bar at the bottom.  it doesnt want to link to the image.

i made sure all file permissions were the same.  do i HAVE to name a new smilie with an existing smilie name to add it?

thanks!
Title: Re: AjaxChat Integration
Post by: TashaElizabeth on May 14, 2009, 11:20:51 AM
@mrtrc266:

will your custom code still work even if i dont use the shoutbox?  its loaded but disabled.

tia
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 14, 2009, 11:26:14 AM
Quote from: Rodeni on May 14, 2009, 08:24:43 AM
hy
I have installed Ajax Chat and I could enter it normally as admin but members told me that they cant enter chat becouse it said to the that their username is incorrect. Please help fast.

If you installed the Mod via the Package Manager then they shouldn't have to be log in, it will just log them in automatically
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 14, 2009, 11:29:20 AM
Quote from: TashaElizabeth on May 14, 2009, 11:20:51 AM
@mrtrc266:

will your custom code still work even if i dont use the shoutbox?  its loaded but disabled.

tia

Yes it will, in your case all it will do is add some smilies to the chatroom and make them pop up.

If you don't plan on using the shoutbox then you bypass the following.

Don't do the index.template edit
Don't upload the shoutbox.html
Dont' upload the shoutbox.css

Enjoy ;)
Title: Re: AjaxChat Integration
Post by: dzinerfusion on May 14, 2009, 06:16:18 PM
Oh i think i know what to do, do i have to make the edit in subs.php for the ''chat'' button of target -blank to make it pop up in a pop up? And if thats is what would i have to do with the chat code to make it popup 800 by 600

'chat' => array(
'title' => $txt['chat'],
'href' => str_replace("index.php", "chat/index.php", $scripturl),
'show' => true,
'sub_buttons' => array(
),
),
Title: Re: AjaxChat Integration
Post by: TashaElizabeth on May 14, 2009, 08:32:01 PM
Quote from: mrtrc266 on May 14, 2009, 11:29:20 AM
Quote from: TashaElizabeth on May 14, 2009, 11:20:51 AM
@mrtrc266:

will your custom code still work even if i dont use the shoutbox?  its loaded but disabled.

tia

Yes it will, in your case all it will do is add some smilies to the chatroom and make them pop up.

If you don't plan on using the shoutbox then you bypass the following.

Don't do the index.template edit
Don't upload the shoutbox.html
Dont' upload the shoutbox.css

Enjoy ;)




ok, my chat is now completely DOWN.

i cant see anything but a blank chatroom now.....


ok, what code changes was in the positions.css and loggedin.html

which i foolishly overwrote and didnt backup

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 15, 2009, 01:10:57 AM
Try setting the file permissions to those files to 755.

If that doesn't work can get the original files from the package itself that you downloaded when you got the Mod.

Not sure why it didn't work for you, I have tested it many times on SMF 1.1.8 and RC1 and have done the edits for a few SMF members sites and it has never failed.

Let me know how it goes. If need be I can get it going for you,  PM if you need help.
Title: Re: AjaxChat Integration
Post by: soulofevil on May 15, 2009, 05:08:27 AM
Okay, I've tried to install this on a freshly new smf everything pretty much worked however the chat doesn't server is orange.

I'm using wamp to use my own connection/computer as a host. Is there something I need to turn on to make work correctly?
Title: Re: AjaxChat Integration
Post by: TashaElizabeth on May 15, 2009, 04:04:01 PM
Quote from: mrtrc266 on May 15, 2009, 01:10:57 AM
Try setting the file permissions to those files to 755.

If that doesn't work can get the original files from the package itself that you downloaded when you got the Mod.

Not sure why it didn't work for you, I have tested it many times on SMF 1.1.8 and RC1 and have done the edits for a few SMF members sites and it has never failed.

Let me know how it goes. If need be I can get it going for you,  PM if you need help.


i had to delete chat and totally reinstall, and make all the changes i had done before. 

nobody could log on, and it was like it went just so far and stopped.  i could see the popup box, but couldnt see the smilies
Title: Re: AjaxChat Integration
Post by: biohazardjoker on May 15, 2009, 07:22:09 PM
man i do this and my members can erase they messages i really need help in this man becuse i dont know which other chat i can use for smf

Quote from: deZio on March 17, 2009, 01:55:03 PM
Quote from: Lotti on March 16, 2009, 07:42:14 PM
Quote from: deZio on March 16, 2009, 03:47:32 PM
Quote from: fotografo74 on March 10, 2009, 01:49:39 PM
Quote from: mrtrc266 on March 10, 2009, 11:45:16 AM
Not sure if I understood the problem 100% but...

The permission settings should be in Admin/Members/Permissions/ select the group you want to have permissions and check "Access to chat" in the General Category.

Anyone who has Admin or Moderator rights on your forum should automatically have Moderator rights in the Chat.

If you're saying that you don't have the "Access to chat" checkbox in your permission settings then, hmmmm, are you using a custom theme?
Thanks for your support and sorry for my poor english :-(
I have selected right permission, sure, and regular members, admin and moderators have access to chat, it's ok.
But regular members can delete post of other regular members...it's ok this ?
I.e: i'm regular member and i access to chat...i write message...you are regular member and you can delete my message!!!

Thanks!
Antonio
Any solution for this? I have same problem on my forum(2.0 RC1)
Same here, on 1.1.8
I find out a solution!  :D
Open CustomAJAXChat.php and make this changes:
Find:
if($context['user']['is_admin'])
$userData['userRole'] = AJAX_CHAT_ADMIN;
// $context['user']['is_mod'] is always false if no board is loaded.
// As a workaround we check the permission 'calendar_post'.
// This is only set to true for global moderators by default:
elseif(in_array('calendar_post', $user_info['permissions']))
$userData['userRole'] = AJAX_CHAT_MODERATOR;
else
$userData['userRole'] = AJAX_CHAT_USER;


Replace with:
if($context['user']['is_admin'])
$userData['userRole'] = AJAX_CHAT_ADMIN;
else
$userData['userRole'] = AJAX_CHAT_USER;

Title: Re: AjaxChat Integration
Post by: captphilspeople on May 15, 2009, 11:04:26 PM
Is there a limitation to the number of people in the chat room? It looks like mine is locking up at about 50 people. Not sure what the problem is. Is this a program limitation, or is it a bandwidth thing?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 16, 2009, 12:14:58 AM
@ biohazardjoker, yes that was explained here in the FAQ's

~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

"If your regular members can delete posts in the Chat and Shout it's because you allow them to post Event in your Calendar, the fix for it is HERE"
(http://www.simplemachines.org/community/index.php?topic=257973.msg1979606#msg1979606)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 16, 2009, 12:17:09 AM
@ TashaElizabeth

If you would like some help PM me and I will get it going for you. I have some long hrs then next cpl days but will be willing to help on next days off
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 16, 2009, 12:24:43 AM
Quote from: captphilspeople on May 15, 2009, 11:04:26 PM
Is there a limitation to the number of people in the chat room? It looks like mine is locking up at about 50 people. Not sure what the problem is. Is this a program limitation, or is it a bandwidth thing?

If you look @ Sourcforge it is suggested that the max users is no more than 100....but that will also depend on your host as well.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 16, 2009, 12:26:13 AM
Quote from: soulofevil on May 15, 2009, 05:08:27 AM
Okay, I've tried to install this on a freshly new smf everything pretty much worked however the chat doesn't server is orange.

I'm using wamp to use my own connection/computer as a host. Is there something I need to turn on to make work correctly?

Is it workin at all? If not have your tried some of the fixes for the known issues here......?
~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: captphilspeople on May 16, 2009, 01:20:38 AM
Quote from: mrtrc266 on May 16, 2009, 12:24:43 AM
Quote from: captphilspeople on May 15, 2009, 11:04:26 PM
Is there a limitation to the number of people in the chat room? It looks like mine is locking up at about 50 people. Not sure what the problem is. Is this a program limitation, or is it a bandwidth thing?

If you look @ Sourcforge it is suggested that the max users is no more than 100....but that will also depend on your host as well.

OK...so it's "suggested"...what does that mean really? Is there a limit or isnt there? Yes or no is really a black and white thing.

Also I dont have 100...I have 50. So whats the problem?
Title: Re: AjaxChat Integration
Post by: dzinerfusion on May 16, 2009, 09:55:13 AM
hi i still have trouble with making the chat button popup, when i tried to edit the subs.php and added a target blank to the chat , it made it go into another tab in firefox , i was wondering what i have to do to make it pop up as i said before i have made all the edits and enabled persmissions chat in popup
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 16, 2009, 10:12:50 AM
Quote from: captphilspeople on May 15, 2009, 11:04:26 PM

OK...so it's "suggested"...what does that mean really? Is there a limit or isnt there? Yes or no is really a black and white thing.

Also I dont have 100...I have 50. So whats the problem?

Here's the problem, you really excpet an answer when you talk like that? My repsonse was primarily to make sure you got a reply and it was what came to the top of my head after being @ work for 14hrs.

As you can see I don't mind helping people out the best I can but unfortunately it appears that if I did all the digging around to find the answer for you and gave you an snswer you didn't like then I might get a smart @%$ reply again.

I gave you the site where can read through the documentation to get info on the capabilities of the Chat. You can take it from there.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 16, 2009, 10:19:04 AM
Hey bluesinjid post up your index.template file again

I'll play around with again when I get a few minutes, I'm off to work soon so will probably be in the morn.
Title: Re: AjaxChat Integration
Post by: dzinerfusion on May 16, 2009, 12:55:02 PM
ok here it is and why not include my subs.php :)
Title: Re: AjaxChat Integration
Post by: captphilspeople on May 16, 2009, 02:50:01 PM
Quote from: mrtrc266 on May 16, 2009, 10:12:50 AM
Quote from: captphilspeople on May 15, 2009, 11:04:26 PM

OK...so it's "suggested"...what does that mean really? Is there a limit or isnt there? Yes or no is really a black and white thing.

Also I dont have 100...I have 50. So whats the problem?

Here's the problem, you really excpet an answer when you talk like that? My repsonse was primarily to make sure you got a reply and it was what came to the top of my head after being @ work for 14hrs.

As you can see I don't mind helping people out the best I can but unfortunately it appears that if I did all the digging around to find the answer for you and gave you an snswer you didn't like then I might get a smart @%$ reply again.

I gave you the site where can read through the documentation to get info on the capabilities of the Chat. You can take it from there.

yeah...well I thought your reply was smart ass. Why bother replying, and then not answering the question? You were ambiguous in your answer and really didnt tell me anything. If the documentation gave a clear answer...I wouldnt be here looking for help...would I? If you dont really know, then you could just say that you dont really know... And like I said...I didnt have 100, I had 50. Later, we had 13 and the same thing was happening and never happened before.

So yeah, I was irritated. Why reply and not answer the question. I see this so often in tehc support in the retail software world too. Its a plague. How hard is it to listen or read a question and anser it clearly? You told me nothing definitive or useful at all.

So if you took your car to a machanic and asked him what was wrong, nad he said...uhm..it might be something under the hood. How would you feel?
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 16, 2009, 10:27:48 PM
First, mrtrc266 was simply letting you know that he had seen your question, and responded by guiding you to the documentation for the Chat mod. I didn't even know there was documentation on SourceForge and appreciated him directing me to that site.

Second, he is not even the author of this mod. He at one time had questions as well, and eventually took it upon himself to provide that same help to others.

Third, I would imagine (I may be going out on a limb here  ;D) that if he had an answer to your question, he would have provided the solution in his post.

Pipe down and be patient. At least he is trying.


That aside, has anyone come up with a solution to the notification edit? Also, I cannot connect to my Chat/ShoutBox via WAP. It just comes up as a blank page. Any ideas what may be causing this?
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 16, 2009, 10:28:15 PM
Quote from: bluesinjid on May 14, 2009, 06:16:18 PM
Oh i think i know what to do, do i have to make the edit in subs.php for the ''chat'' button of target -blank to make it pop up in a pop up? And if thats is what would i have to do with the chat code to make it popup 800 by 600

'chat' => array(
'title' => $txt['chat'],
'href' => str_replace("index.php", "chat/index.php", $scripturl),
'show' => true,
'sub_buttons' => array(
),
),


I have my chat come up in a popup of any size I designate. My "button", however, is not really a button, but a small link in the ShoutBox titlebar. You may be able to manipulate this to your liking, so I have provided the code that I am using. Hope it is of some use to you.

<a href="javascript:window.open(\''.$boardurl.'chat/index.php\',\'Shoutbox\',\'width=600,height=400\');void(0);">View in Popup</a>
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 17, 2009, 12:27:29 AM
@ captphilspeople (http://www.simplemachines.org/community/index.php?action=profile;u=178053)

You're kidding me right? Thank you for the very kind words. Like I said I was just trying to atleast respond to your post giving you place to get started.

I left the house @ 8AM, got home @ 10PM and replied @ 11PM, so yeah it was a quick resopnse cuz I had to get up @ 6AM. Please forgive me for my ambiguous comment. Just trying to give you a place to look at incase you hadn't been there.

It was obvious that I didn't have the answer otherwise I would've given it to you.

Sorry for trying to help in the few moments that I had.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 17, 2009, 01:04:55 AM
Quote from: SunKing on May 16, 2009, 10:27:48 PM
First, mrtrc266 was simply letting you know that he had seen your question, and responded by guiding you to the documentation for the Chat mod. I didn't even know there was documentation on SourceForge and appreciated him directing me to that site.

Second, he is not even the author of this mod. He at one time had questions as well, and eventually took it upon himself to provide that same help to others.

Third, I would imagine (I may be going out on a limb here  ;D ) that if he had an answer to your question, he would have provided the solution in his post.

Pipe down and be patient. At least he is trying.

TYVM for summing it up SK, yes in a nutshell I was just making sure everyone got replied to and was trying to help.

Quote




That aside, has anyone come up with a solution to the notification edit? Also, I cannot connect to my Chat/ShoutBox via WAP. It just comes up as a blank page. Any ideas what may be causing this?

RE: the notification edit, that might me a tough one. I will post a cpl places and see if we can get someone to code it.

RE: WAP, not familiar with it at all and have no idea how it works.
I have a portable device and will play with it to see if it works for me
Title: Re: AjaxChat Integration
Post by: tfs on May 17, 2009, 01:57:23 AM
Quote from: captphilspeople on May 16, 2009, 02:50:01 PMSo yeah, I was irritated. Why reply and not answer the question. I see this so often in tehc support in the retail software world too. Its a plague. How hard is it to listen or read a question and anser it clearly? You told me nothing definitive or useful at all.

Dang, that's a rude post!  I see it so often in tech support when people call in and treat you like dirt and expect you to take the abuse and.....

In case you haven't noticed, mrtrc266 busts his tail around here.  In fact, there's this little tidbit I just noticed on his sig...

mrtrc266
Support Helper of the Month

Congrats mrtrc266!
Title: Re: AjaxChat Integration
Post by: andy40 on May 17, 2009, 08:59:28 AM
hi does anyone know what makes the shout box slow sometimes members are waiting 5 mins for a reply then they get about 10 messages is there  a fix for this ?
Title: Re: AjaxChat Integration
Post by: TashaElizabeth on May 17, 2009, 03:27:39 PM
Quote from: SunKing on May 11, 2009, 12:12:37 AM
I wanted to point out that the PrettyUrls mod had nothing to do with Jiveturkey's fix. The only mod installed on my test site is AjaxChat 3.0. So anyone else experiencing the Error: Connection status: 0, even if not using PrettyUrls, give this fix a try. Put it in the .htaccess file inside the same folder as the SSI.php is in (the forum root, not necessarily the site root).

I really like the mod so far, but I do see some areas where I may try my hand at adding/tweaking features. ;) I will certainly post any worthy edits back here in this thread. A belated thanks to Jiveturkey for a solution that I just fumbled....hehehe...and a HUGE thank you to mrtrc266 for going above and beyond to try to find some answers. These are the things that make SMF so great. Thanks again.




i dont have an ssi.php file...i am running 1.1.8 of smf; but i do have the Error: Connection status: 0 problem.  not all the time, but occasionally....
Title: Re: AjaxChat Integration
Post by: Lode on May 17, 2009, 04:56:50 PM
Quote from: andy40 on May 17, 2009, 08:59:28 AM
hi does anyone know what makes the shout box slow sometimes members are waiting 5 mins for a reply then they get about 10 messages is there  a fix for this ?

The problem I experience might be related to it. I use the shoutbox integrated in 1.1.8. After loading a page, the shoutbox is most of the time nicely showing all messages, but they are not updated.

Looking into the issue using Firebug, I noticed that after initialization, the shoutbox is not sending any AJAX requests to the server, until the input field gets the focus (e.g. by clicking the mouse in it).  From that point on, that instance of the shoutbox gets updated nicely (and an AJAX request is being send every 2 seconds).
A reload of the page (e.g. after posting in a topic,etc...) puts it back in the non-responsive state, needing the 'focus' trick to have it working well again.

I looked into some parts of the code to fix it, without success though (I am fairly new to PHP and SMF).
Title: Re: AjaxChat Integration
Post by: andy40 on May 17, 2009, 05:12:19 PM
hi yes thats the same as mine but there must be someway to fix it as other forum i use theres work fine
Title: Re: AjaxChat Integration
Post by: dzinerfusion on May 17, 2009, 08:03:15 PM
Quote from: SunKing on May 16, 2009, 10:28:15 PM
Quote from: bluesinjid on May 14, 2009, 06:16:18 PM
Oh i think i know what to do, do i have to make the edit in subs.php for the ''chat'' button of target -blank to make it pop up in a pop up? And if thats is what would i have to do with the chat code to make it popup 800 by 600

'chat' => array(
'title' => $txt['chat'],
'href' => str_replace("index.php", "chat/index.php", $scripturl),
'show' => true,
'sub_buttons' => array(
),
),


I have my chat come up in a popup of any size I designate. My "button", however, is not really a button, but a small link in the ShoutBox titlebar. You may be able to manipulate this to your liking, so I have provided the code that I am using. Hope it is of some use to you.

<a href="javascript:window.open(\''.$boardurl.'chat/index.php\',\'Shoutbox\',\'width=600,height=400\');void(0);">View in Popup</a>

hm...tried that but doesnt work, too bad because i need a php coed ;( not a html code ???
Title: Re: AjaxChat Integration
Post by: MaXiMiUS on May 17, 2009, 10:15:41 PM
How can I make it so that only certain membergroups can use the shoutbox? I want ALL membergroups to be able to VIEW the shoutbox, but only certain groups to be able to, you know, SHOUT ;)
Title: Re: AjaxChat Integration
Post by: Electro-X- on May 18, 2009, 02:40:40 AM
I got 5 test failed while installing this on babylon theme. How to fix it?
Title: Re: AjaxChat Integration
Post by: primetime on May 18, 2009, 08:23:40 AM
I tried doing a search but maybe I did not put the proper search keyword. Is there a way to have the shouts scroll from bottom to top so that thelast shout is at the top of the messages?


Thank you,
Prime
Title: Re: AjaxChat Integration
Post by: primetime on May 18, 2009, 12:56:24 PM
Does this MOD have the capability to archive chats?
Title: Re: AjaxChat Integration
Post by: biohazardjoker on May 18, 2009, 02:31:13 PM
i edit that code in my both files in  the chat folder and the shoutbox folder but the people still can erase the messages, please if you can help me i really apreciate becuse i think this is the better chat mod around and belive me i want this mod in my forum.

i do this: but the problem still happend

I find out a solution! 
Open CustomAJAXChat.php and make this changes:
Find:

Código: [Seleccionar]
         if($context['user']['is_admin'])
            $userData['userRole'] = AJAX_CHAT_ADMIN;
         // $context['user']['is_mod'] is always false if no board is loaded.
         // As a workaround we check the permission 'calendar_post'.
         // This is only set to true for global moderators by default:
         elseif(in_array('calendar_post', $user_info['permissions']))
            $userData['userRole'] = AJAX_CHAT_MODERATOR;
         else
            $userData['userRole'] = AJAX_CHAT_USER;
Replace with:

Código: [Seleccionar]
         if($context['user']['is_admin'])
            $userData['userRole'] = AJAX_CHAT_ADMIN;
         else
            $userData['userRole'] = AJAX_CHAT_USER;


Quote from: mrtrc266 on May 16, 2009, 12:14:58 AM
@ biohazardjoker, yes that was explained here in the FAQ's

~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

"If your regular members can delete posts in the Chat and Shout it's because you allow them to post Event in your Calendar, the fix for it is HERE"
(http://www.simplemachines.org/community/index.php?topic=257973.msg1979606#msg1979606)
Title: Re: AjaxChat Integration
Post by: snazster on May 18, 2009, 03:57:15 PM
Hi,

I can't update to version 3 as I'm heavily modified.  I currently running ajaxchat 0.8.1.2 SMF which is fine and I'm happy.  However, I installed it and amended it over a year ago, and can't remember how I did things.  I can't find the instructions anywhere. 

I want to add different channels - any guidance much appreciated. 

Thanks
Title: Re: AjaxChat Integration
Post by: TheListener on May 18, 2009, 03:59:32 PM
How many mods do ya have?

I have almost 60 and ajac chat works fine.
Title: Re: AjaxChat Integration
Post by: snazster on May 18, 2009, 04:03:20 PM
I have about 30, but I've edited templates and other bits too, such as Sources/Load.php. 

This has thrown up some problems.  How do I add a new channel in 0.8.1.2 SMF?  - any advice?
Title: Re: AjaxChat Integration
Post by: TheListener on May 18, 2009, 04:04:54 PM
Sorry bud no idea. I get nervous enough when in the server via ftp.
Title: Re: AjaxChat Integration
Post by: Electro-X- on May 18, 2009, 07:16:37 PM
Quote from: Electro-X- on May 18, 2009, 02:40:40 AM
I got 5 test failed while installing this on babylon theme. How to fix it?

Any clue guys?
Title: Re: AjaxChat Integration
Post by: TashaElizabeth on May 18, 2009, 09:12:32 PM
Quote from: mrtrc266 on March 07, 2009, 10:25:22 AM


For 1, 2 and 3 it looks like you just need to do the manual edits for your theme using a Package Parser (http://resourcez.biz/PackageParser/index.php)




this worked great, thanks!!!
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 19, 2009, 11:58:17 AM
Quote from: bluesinjid on May 17, 2009, 08:03:15 PM
hm...tried that but doesnt work, too bad because i need a php coed ;( not a html code ???

OK....the php code for that would be:

echo'<a href="javascript:window.open(\''.$boardurl.'chat/index.php\',\'Shoutbox\',\'width=600,height=400\');void(0);">View in Popup</a>';
;)
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 19, 2009, 12:23:29 PM
Alright. Here is the first (of many, I hope) tweak for the AjaxChat mod.
Here's what I did:

Post Notification

The first step is to change a value for one of the database entries, so make backups! I think this could be made a permanent change without ill consequences maybe in future releases. ;)

The dateTime field of ajax_chat_messages needs the type changed to timestamp.

Next, open Sources/Post.php and search for
notifyMembersBoard($notifyData);
add after it:
// Ajax Chat New Topic Notification
global $user_info, $board, $scripturl, $boardName, $topic;
    $smcFunc['db_insert']('',
      'ajax_chat_messages',
      array(
         'userID' => 'int', 'userName' => 'string-255', 'userRole' => 'int', 'channel'=> 'int', 'ip' => 'string-255', 'text' => 'string-255',
         ),
      array(
         $posterOptions['id'], $user_info['name'], 1, 0, $posterOptions['ip'], '[color=red][b]New Topic: [url='.$scripturl . '?topic=' . $topic . '.new#new'.']'.html_entity_decode($_POST['subject']).'[/url][/b][/color]'
         ),
      array('autopost')
   );
    // End Ajax Chat New Topic Notification


search for
sendNotifications($topic, 'reply');

replace it with:

     {
sendNotifications($topic, 'reply');

// Ajax Chat New Reply Notification
global $user_info, $board, $scripturl, $boardName, $topic;
    $smcFunc['db_insert']('',
      'ajax_chat_messages',
      array(
         'userID' => 'int', 'userName' => 'string-255', 'userRole' => 'int', 'channel'=> 'int', 'ip' => 'string-255', 'text' => 'string-255',
         ),
      array(
         $posterOptions['id'], $user_info['name'], 1, 0, $posterOptions['ip'], '[color=red][b]New Reply: [url='.$scripturl . '?topic=' . $topic . '.new;topicseen#new'.']'.html_entity_decode($_POST['subject']).'[/url][/b][/color]'
         ),
      array('autopost')
   );
    // End Ajax Chat New Reply Notification
     }


That's it. Now, every time someone posts, a nice notification will popup in the chat/shoutbox displaying a link to the new post/reply.

This is by no means my creation, but rather a reworking of a tweak for nneonneo's shoutbox that I could not live without. ;)

Many thanks to hiver101 for pointing me in the right direction.

Enjoy!

EDIT: As pointed out by hcfwesker, the names of the tables may need to be changed from ajax_chat_messages to smf_chat_messages for this edit to work under SMF 2.0 Final.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 19, 2009, 11:26:34 PM
OMG What a 2 days off, didn't even have a chance to log in. TYVM SK for your help here. I must say also WOW that is a great tweak for the Chat, I will add it to the FAQ's Tips N Trick right away....that's awesome!!!! :)

I will try to go through the posts that have not been addressed and reply in the morns and eves of the next few days as I have to get back to work  :(
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 19, 2009, 11:43:20 PM
Hope you enjoy! There is more to follow. I am really liking the mod so far too.  :P

Title: Re: AjaxChat Integration
Post by: TheListener on May 19, 2009, 11:46:07 PM
Its thanks to mrtrc266 that our members have a chatroom and games arcade.

Also saves us having to pay for a seperate chat too.

Now wheres the next job ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 19, 2009, 11:47:40 PM
SK...Lookin forward to them, your tweak has been added  ;)
~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

I will do the notification edit in the Morn.

TYVM Listenerm glad I could help. The least I can to is payback what has been so freely given to me.

Have a great night all.
Title: Re: AjaxChat Integration
Post by: njdevils28 on May 20, 2009, 08:02:48 AM
Hi all,

I had istalled this Mod a week ago and it worked great.

I installed a Gallery Mod yesterday and now I'm getting the following error for chat.......


Warning: require_once(./gwbbcode/gwbbcode.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/c/i/t/cityofgamers/html/smf/gwbbcode/gwbbcode.php on line 23

Fatal error: require_once() [function.require]: Failed opening required './gwbbcode/gwbbcode.inc.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/c/i/t/cityofgamers/html/smf/gwbbcode/gwbbcode.php on line 23

Any clue what went wrong other than the new Mod screwing up Chat?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 20, 2009, 10:37:26 AM
@ njdevils28 try uninstalling the gallery and then the chat.

Then install the Gallery first and then the chat. I had a similar prob with another Mod and that seemed to work for me.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 20, 2009, 11:05:38 AM
@ SK, I tried the edit for the notification...

editing the table seems to be no problem    ALTER TABLE `ajax_shout_messages` CHANGE `dateTime` `dateTime` TIMESTAMP NOT NULL     After I do the second edit add after "sendNotifications($topic, 'reply'); I can't reply to or create new topics. Takes me to a 500 error page.

Any ideas?

File attatched if that's helpful
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 20, 2009, 12:05:04 PM
I am at work currently, but will be happy to take a look at it when I get home in about 5 hours. :D
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 20, 2009, 05:58:38 PM
I'm home. ;)

On the second block of code, it needs to be wrapped in { } like this:

if ($topic_info['approved'])
{


sendNotifications($topic, 'reply');

   // Ajax Chat New Reply Notification
global $user_info, $board, $scripturl, $boardName, $topic;
    $smcFunc['db_insert']('',
      'ajax_chat_messages',
      array(
         'userID' => 'int', 'userName' => 'string-255', 'userRole' => 'int', 'channel'=> 'int', 'ip' => 'string-255', 'text' => 'string-255',
         ),
      array(
         $posterOptions['id'], $user_info['name'], 1, 0, $posterOptions['ip'], '[color=red][b]New Reply: [url='.$scripturl . '?topic=' . $topic . '.new;topicseen#new'.']'.html_entity_decode($_POST['subject']).'[/url][/b][/color]'
         ),
      array('autopost')
   );
    // End Ajax Chat New Reply Notification
}
else


so that the sendNotifications($topic, 'reply'); and the AjaxChat code block are both inside the brackets. I will go and change my original post to reflect this as well. The reason for the oversight is I have mine inside an array of boards to skip notification. ;) The first block of code should work as is.

I used your posted Post.php (modded and attached) on my test site and it worked fine for posting.
Title: Re: AjaxChat Integration
Post by: Hiver101 on May 21, 2009, 11:13:57 AM
Hello,
Is there any of you guys know how to tweak this mod in such a way that when we post an internal forum link to it, it won't open another window. I think Sunking also love this idea. Thanks in advance.
Title: Re: AjaxChat Integration
Post by: primetime on May 21, 2009, 01:03:46 PM
Quote from: primetime on May 18, 2009, 12:56:24 PM
Does this MOD have the capability to archive chats?

I guess the answer is a resounding no ? :) Maybe? not yet?  :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 21, 2009, 02:12:00 PM
Quote from: primetime on May 21, 2009, 01:03:46 PM
Quote from: primetime on May 18, 2009, 12:56:24 PM
Does this MOD have the capability to archive chats?

I guess the answer is a resounding no ? :) Maybe? not yet?  :)

Sorry, missed this one. It does archive chat logs. To view them simply goto http://yoursite.com/chat/?view=logs (http://yoursite.com/chat/?view=logs)

SK, still havin probs with the notification edit, will post in more detail when I get home.
Title: Re: AjaxChat Integration
Post by: clashbot on May 21, 2009, 02:49:51 PM
hello, I installed the chat, no errors in the log, button where it should be, etc. When I click on chat, the window pops up like it should, but for some reason it is not passing the user information to the chat. I repeatedly show no one online, logout does nothing, etc. Any ideas where to start to find the issue?
Title: Re: AjaxChat Integration
Post by: dzinerfusion on May 21, 2009, 06:30:09 PM
Hm my chat still never opens in a popup!!! When i use the default all is good but in the ''prof'' theme, it opens in the same window!! What did i do wrong???

Ok heres my index.template...

I put it the code

if ($modSettings['enableChatBelowPM']){
$count = count(chatOnlineUsers());
if ($count == 0 )
echo '<br />' . $txt['chat_no_user'];
elseif ($count == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' . $count. $txt['chat_users']. '<br />';
}
$num = ($modSettings['enableChatButtonNo']) ? $count : 0;
$context['menu_buttons']['chat']['title'] .= ($num > 0) ?  ('('.$num.')') : '';
if ($modSettings['chatPopUp']){
$context['menu_buttons']['chat']['href'] .= '" onclick="openWindow(this.href);this.blur();return false;';
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>';
}



But not sure if this code points to the wrong place of my forum buttons :(

THe html code for the page source would be this

<div id="main_menu">
<ul class="clearfix">
<li id="button_home" class="active">
<a title="home" href="http://modernopolis.byethost32.com/forum/index.php">
<span>Home</span>

</a>
</li>
<li id="button_Forum">
<a title="Forum" href="http://modernopolis.byethost32.com/forum/index.php?action=forum">
<span>Forum</span>
</a>
</li>
<li id="button_help">

<a title="help" href="http://modernopolis.byethost32.com/forum/index.php?action=help">
<span>Help</span>
</a>
</li>
<li id="button_search">
<a title="search" href="http://modernopolis.byethost32.com/forum/index.php?action=search">
<span>Search</span>
</a>

</li>
<li id="button_admin">
<a title="admin" href="http://modernopolis.byethost32.com/forum/index.php?action=admin">
<span>Admin</span>
</a>
</li>
<li id="button_profile">
<a title="profile" href="http://modernopolis.byethost32.com/forum/index.php?action=profile">

<span>Profile</span>
</a>
</li>
<li id="button_pm">
<a title="pm" href="http://modernopolis.byethost32.com/forum/index.php?action=pm">
<span>My Messages</span>
</a>
</li>

<li id="button_calendar">
<a title="calendar" href="http://modernopolis.byethost32.com/forum/index.php?action=calendar">
<span>Calendar</span>
</a>
</li>
<li id="button_affiliates">
<a title="affiliates" href="http://modernopolis.byethost32.com/forum/index.php?action=affiliates">
<span>Affiliates</span>

</a>
</li>
<li id="button_mlist">
<a title="mlist" href="http://modernopolis.byethost32.com/forum/index.php?action=mlist">
<span>Members</span>
</a>
</li>
<li id="button_downloads">

<a title="downloads" href="http://modernopolis.byethost32.com/forum/index.php?action=downloads">
<span>Downloads</span>
</a>
</li>
<li id="button_chat">
<a title="chat" href="http://modernopolis.byethost32.com/forum/chat/index.php">
<span>Chat</span>
</a>

</li>
<li id="button_logout" class="last">
<a title="logout" href="http://modernopolis.byethost32.com/forum/index.php?action=logout;dda542f15ae0=c9997b349c3498c9fabea356076525ef">
<span>Logout</span>
</a>
</li>
</ul>
</div>


Ok i got this code from the modsettings of ajax chat.

'" onclick="openWindow(this.href);this.blur();return false;';
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>';


How would i add it so it WILL popup not ''if $modsettings allow it''?
Title: Re: AjaxChat Integration
Post by: windrider on May 21, 2009, 10:14:42 PM
I don't know...I keep getting a Connection Status: 404 error no matter what I try to do with the mod, I have every file at 777 and it still doesn't work.
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 21, 2009, 10:19:46 PM
404 means something cannot be found.


Did you try all of the suggestions post here (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)?
Title: Re: AjaxChat Integration
Post by: njdevils28 on May 22, 2009, 07:24:15 AM
Quote from: mrtrc266 on May 20, 2009, 10:37:26 AM
@ njdevils28 try uninstalling the gallery and then the chat.

Then install the Gallery first and then the chat. I had a similar prob with another Mod and that seemed to work for me.

@mrtrc266....

Thanks for the tip.  I ended up hosing my whole site.  I had to re-install a full package Thank God the DB was not corrupted.

Would you happen to know if this mod works for 2.0 RC1-1?

Also, does this mod handle the logs efficiently?  What I mean is, does it perform it's on maintenance to avoid logs becoming to large and slowing down the chat?  If not, is there a tool to handle the chat logs to avoid them becoming to large?  Is there a way to automate a rename of the current log to a log with a time stamp and then have the mod create a new log?  Is this even an issue or am I worrying about nothing?

Where would I find the logs so I can do it myself?
Title: Re: AjaxChat Integration
Post by: DilSe on May 22, 2009, 07:33:50 AM
i need help

"AjaxChat Integration_3.0..zip" i use this mod with smf 1.1.8 i update with smf 1.1.9 but this mod .not workin now with any them...plz help
Title: Re: AjaxChat Integration
Post by: njdevils28 on May 22, 2009, 08:58:27 AM
Anyone know if this mod works for 2.0 RC1-1?
Title: Re: AjaxChat Integration
Post by: primetime on May 22, 2009, 10:16:23 AM
Quote from: mrtrc266 on May 21, 2009, 02:12:00 PM
Quote from: primetime on May 21, 2009, 01:03:46 PM
Quote from: primetime on May 18, 2009, 12:56:24 PM
Does this MOD have the capability to archive chats?

I guess the answer is a resounding no ? :) Maybe? not yet?  :)

Sorry, missed this one. It does archive chat logs. To view them simply goto http://yoursite.com/chat/?view=logs (http://yoursite.com/chat/?view=logs)

SK, still havin probs with the notification edit, will post in more detail when I get home.


Beautiful...
Works perfectly!!!
Thanks a million,
Prime
Title: Re: AjaxChat Integration
Post by: Caelum on May 22, 2009, 10:23:50 AM
Yes, it works with 2.0 RC1-1.
Title: Re: AjaxChat Integration
Post by: njdevils28 on May 22, 2009, 10:40:25 AM
Thanks!
Title: Re: AjaxChat Integration
Post by: njdevils28 on May 22, 2009, 10:43:43 AM
Quote from: Caelum on May 22, 2009, 10:23:50 AM
Yes, it works with 2.0 RC1-1.

I'm getting this error when Itry to install the mod.....


"The package you are trying to download or install is either corrupt or not compatible with this version of SMF. "

I'm using V03.00 on SMF V2.0 RC1-1
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 22, 2009, 11:10:46 AM
@ njdevils28, 

Here you go,

Unzip AjaxChat Intergration 3.0..zip, open the package-info.xml

Find
<install for="2.0 RC1">
Replace with
<install for="2.0 - 2.99.99">

Rezip it and try to install.
Title: Re: AjaxChat Integration
Post by: clashbot on May 22, 2009, 01:15:05 PM
still not getting the chat to parse the user list. Chat pops up like it is supposed to but the online list is empty. Do I need to manually kill the tables, uninstall and reinstall?

Update: I've followed the tips as well, as I did have pretty urls installed. I've removed pretty urls, reloaded this mod (after modifying it to recognize 1.1.9)

Just not getting anything in the users online in the chat pop-up, and of course, the chat is non-functional.
Title: Re: AjaxChat Integration
Post by: njdevils28 on May 22, 2009, 01:23:36 PM
Quote from: mrtrc266 on May 22, 2009, 11:10:46 AM
@ njdevils28,  I think i remember someone haveing the same prob and they removed one of the . (periods) in the zip name. Not 100% but I believe that worked.

AjaxChat Integration_3.0..zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=90015)  change to AjaxChat Integration_3.0.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=90015)

Here you go,

Unzip AjaxChat Intergration 3.0..zip, open the package-info.xml

Find
<install for="2.0 RC1">
Replace with
<install for="2.0 - 2.99.99">

Rezip it and try to install.

That worked - Thanks.

Only problem now is that it failed for every theme on my forum.

Does that mean I have to install manualy?
Title: Re: AjaxChat Integration
Post by: TashaElizabeth on May 22, 2009, 06:36:18 PM
Quote from: njdevils28 on May 22, 2009, 07:24:15 AM
Quote from: mrtrc266 on May 20, 2009, 10:37:26 AM
@ njdevils28 try uninstalling the gallery and then the chat.

Then install the Gallery first and then the chat. I had a similar prob with another Mod and that seemed to work for me.

@mrtrc266....

Thanks for the tip.  I ended up hosing my whole site.  I had to re-install a full package Thank God the DB was not corrupted.

Would you happen to know if this mod works for 2.0 RC1-1?

Also, does this mod handle the logs efficiently?  What I mean is, does it perform it's on maintenance to avoid logs becoming to large and slowing down the chat?  If not, is there a tool to handle the chat logs to avoid them becoming to large?  Is there a way to automate a rename of the current log to a log with a time stamp and then have the mod create a new log?  Is this even an issue or am I worrying about nothing?

Where would I find the logs so I can do it myself?


i didnt want the logs, so i went to /chat/lib/config.php and changed the default of this line from whatever it was to 0:

// Max time difference in days for old messages before they are purged from the database:
$config['logsPurgeTimeDiff'] = 0;

just watching them populate in mysql they seem to empty out roughly every 8-10 minutes when the room is full, and sometimes a couple of hours when it is not.

hope that helps.
Title: Re: AjaxChat Integration
Post by: njdevils28 on May 22, 2009, 07:52:05 PM
Quote from: TashaElizabeth on May 22, 2009, 06:36:18 PM
Quote from: njdevils28 on May 22, 2009, 07:24:15 AM
Quote from: mrtrc266 on May 20, 2009, 10:37:26 AM
@ njdevils28 try uninstalling the gallery and then the chat.

Then install the Gallery first and then the chat. I had a similar prob with another Mod and that seemed to work for me.

@mrtrc266....

Thanks for the tip.  I ended up hosing my whole site.  I had to re-install a full package Thank God the DB was not corrupted.

Would you happen to know if this mod works for 2.0 RC1-1?

Also, does this mod handle the logs efficiently?  What I mean is, does it perform it's on maintenance to avoid logs becoming to large and slowing down the chat?  If not, is there a tool to handle the chat logs to avoid them becoming to large?  Is there a way to automate a rename of the current log to a log with a time stamp and then have the mod create a new log?  Is this even an issue or am I worrying about nothing?

Where would I find the logs so I can do it myself?


i didnt want the logs, so i went to /chat/lib/config.php and changed the default of this line from whatever it was to 0:

// Max time difference in days for old messages before they are purged from the database:
$config['logsPurgeTimeDiff'] = 0;

just watching them populate in mysql they seem to empty out roughly every 8-10 minutes when the room is full, and sometimes a couple of hours when it is not.

hope that helps.

Heh - That would if I could install the Mod.  Any idea why it could be failing in every theme?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 22, 2009, 09:32:47 PM
Quote from: clashbot on May 22, 2009, 01:15:05 PM
still not getting the chat to parse the user list. Chat pops up like it is supposed to but the online list is empty. Do I need to manually kill the tables, uninstall and reinstall?

Update: I've followed the tips as well, as I did have pretty urls installed. I've removed pretty urls, reloaded this mod (after modifying it to recognize 1.1.9)

Just not getting anything in the users online in the chat pop-up, and of course, the chat is non-functional.

Follow the tips posted in this, SunKing had the same prob for ever until he found a solution for it below
 
If you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please read HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 22, 2009, 09:42:29 PM
@ njdevils28 (http://www.simplemachines.org/community/index.php?action=profile;u=97497) if you are using a custom theme then yes you will have to manually do the edits for that theme.

If you get tests failed on the install with the default theme then it seems that other Mods have moved you code around and you will have to manually edit just those files that failed.

Make a Package Parser  (http://resourcez.biz/PackageParser/)your best friend  ;)
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 22, 2009, 10:02:29 PM
Still no luck with the Post Notification mrtrc266?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 22, 2009, 10:12:45 PM
Quote from: SunKing on May 22, 2009, 10:02:29 PM
Still no luck with the Post Notification mrtrc266?

Just got it sorted bout 5 minutes again, works like a charm. After I unidid everything and then redid your edit I forgot to change the datetime to timestamp.

This is AWESOME! Thank you very much for the tip :)
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 22, 2009, 11:04:11 PM
Oh great! Glad you got it sorted. Enjoy.
Title: Re: AjaxChat Integration
Post by: clashbot on May 22, 2009, 11:05:22 PM
ok, I've done both items, the rewrite line in the htaccess file, as well as making sure the two index.php files are chmod 755. The chat window still comes with no one showing in the online list. the logout button not working, or anything. About the only thing it did pull from my forums was the room lists.
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 22, 2009, 11:10:42 PM
@clashbot, you made the edits to the .htaccess that resides in the same folder as your SSI.php?
Title: Re: AjaxChat Integration
Post by: clashbot on May 22, 2009, 11:58:05 PM
yes, .htaccess in forum root.
Title: Re: AjaxChat Integration
Post by: clashbot on May 23, 2009, 12:09:19 AM
think I found my problem, it wasn't just adding that line to htaccess, it was also placement of that line in htaccess. Making it the first rewrite rule fixed the issue. sorry for the headache. :/
Title: Re: AjaxChat Integration
Post by: DilSe on May 23, 2009, 09:41:31 AM

i need help

"AjaxChat Integration_3.0..zip" i use this mod with smf 1.1.8 i update with smf 1.1.9 but this mod .not workin now with any them...plz help
Title: Re: AjaxChat Integration
Post by: redsc on May 23, 2009, 05:29:56 PM
Hey.

I have Advanced AJAX Shoutbox installed in my forum.

there is a tab that you can click on to see all shouts ( admin can see / mods )

how do i go about clearing that list as the shout box is used a lot. and it goes back from when the forum first opened nearly a month ago. so as you can imagine its pretty full

Thanks.
Title: Re: AjaxChat Integration
Post by: fdLP. on May 23, 2009, 05:35:00 PM
not working in 1.1.9
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 23, 2009, 06:18:29 PM
@redsc
That's a different shoutbox mod which can be found here (http://custom.simplemachines.org/mods/index.php?mod=585).

As far as clearing the history, just type /clr where you normally type your shouts. ;)
Title: Re: AjaxChat Integration
Post by: redsc on May 23, 2009, 06:28:27 PM
Quote from: SunKing on May 23, 2009, 06:18:29 PM
@redsc
That's a different shoutbox mod which can be found here (http://custom.simplemachines.org/mods/index.php?mod=585).

As far as clearing the history, just type /clr where you normally type your shouts. ;)

sorry i am a numpty lol.

I mean the log :P

cheers sunking
Title: Re: AjaxChat Integration
Post by: njdevils28 on May 23, 2009, 08:12:44 PM
Quote from: mrtrc266 on May 22, 2009, 09:42:29 PM
@ njdevils28 (http://www.simplemachines.org/community/index.php?action=profile;u=97497) if you are using a custom theme then yes you will have to manually do the edits for that theme.

If you get tests failed on the install with the default theme then it seems that other Mods have moved you code around and you will have to manually just those files that failed.

Make a Package Parser  (http://resourcez.biz/PackageParser/)your best friend  ;)

Thanks!
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 23, 2009, 09:37:35 PM
The /takeover thing doesn't work. :(

I am currently working on the wapshout for this, maybe about 30% done. Keeps your eyes peeled.  :P
Title: Re: AjaxChat Integration
Post by: zorro18 on May 24, 2009, 03:57:18 AM
Will this work with smf 1.1.9 too?? ???
Title: Re: AjaxChat Integration
Post by: TheListener on May 24, 2009, 03:59:48 AM
yes
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 24, 2009, 12:02:03 PM
Sunking there was 1 too many } in the CustomAJAXChat file.

The edit has been updated on the FAQs page and just has been tested. Enjoy, it's a fun one :P
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 24, 2009, 12:14:01 PM
Anyone else running SMF 1.1.9 or RC1-1 until this Mod is updated you can use the attatched .zip

You can use the attatched .zip I just tested it on SMF 1.1.9 and it installed ok
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 24, 2009, 01:27:06 PM
Thank you mrtrc266. That worked perfectly.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 24, 2009, 03:41:07 PM
Is there a way to add the date to the shoutbox and chat? Right now it just shows the time. Is the time shown the time the forum is set to?
Title: Re: AjaxChat Integration
Post by: CoastalWriters on May 24, 2009, 04:39:38 PM
Quote from: mrtrc266 on May 24, 2009, 12:14:01 PM
Quote from: Hanzalah on May 23, 2009, 09:41:31 AM

i need help

"AjaxChat Integration_3.0..zip" i use this mod with smf 1.1.8 i update with smf 1.1.9 but this mod .not workin now with any them...plz help

Quote from: fdLP. on May 23, 2009, 05:35:00 PM
not working in 1.1.9
Quote from: pnreddy on May 24, 2009, 03:57:18 AM
Will this work with smf 1.1.9 too?? ???

And anyone else running SMF 1.1.X until this Mod is updated you will need to do the following

Unzip AjaxChat Intergration 3.0..zip, open the package-info.xml

Find
<install for="1.1.6-1.1.8">
Replace with
<install for="1.1.6-1.99.99">

For SMF 2 users you can do the edit posted HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg2072504#msg2072504)

Rezip it and install.

I must be having difficulty understanding what you want us to do to make this work with 1.1.9 because I tried unzipping it and editing the package-info.xml but it keeps giving me an error message.

The package you tried to upload either is not a valid package or has become corrupted.
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 25, 2009, 01:16:13 AM
I have a working WAP "bridge" for AjaxChat. It is far from done in that I have to do all of the addslashes() and parse_bbc() type stuff yet. It currently posts to the shoutbox/chat from my Blackberry. We can call it 99% done.  :P
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 25, 2009, 01:18:18 AM
Nice any idea how to add the date to the shoutbox and chat (not only show time)?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 25, 2009, 01:26:43 AM
Quote from: Chit-Chat ChatterBox Boss on May 25, 2009, 01:18:18 AM
Nice any idea how to add the date to the shoutbox and chat (not only show time)?

http://www.simplemachines.org/community/index.php?topic=257973.msg2034172#msg2034172 (http://www.simplemachines.org/community/index.php?topic=257973.msg2034172#msg2034172)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 25, 2009, 01:48:25 AM
Quote from: SunKing on May 25, 2009, 01:16:13 AM
I have a working WAP "bridge" for AjaxChat. It is far from done in that I have to do all of the addslashes() and parse_bbc() type stuff yet. It currently posts to the shoutbox/chat from my Blackberry. We can call it 99% done.  :P

Awesome job SK I'm sure many people will love this, can't wait to add it to the collection :D
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 25, 2009, 02:02:19 AM
I just tested your edits and for the chat it worked but for the shotubox it is still the same way  :-\
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 25, 2009, 02:33:50 AM
@ CoastalWriters (http://www.simplemachines.org/community/index.php?action=profile;u=209143)  see my previous post, I included a .zip that should work
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 25, 2009, 02:36:49 AM
Quote from: Chit-Chat ChatterBox Boss on May 25, 2009, 02:02:19 AM
I just tested your edits and for the chat it worked but for the shotubox it is still the same way  :-\

Try doing the same edit that you did to /chat/lib/template/shoutbox.html to the /shoutbox/lib/template/shoutbox.html as well. They work seperately if you don't have the Intergrate Chat & Shout  option selected.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 25, 2009, 02:39:43 AM
ah that would be why cause yes I don't have them integrated. Thanks bro!

~Any idea if thinking about trying to make a word censor for this? If so I would open for guest use (cause if not guests could spam bad language and such). If not it is no big deal  ;D ~
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 25, 2009, 02:45:33 AM
Quote from: Chit-Chat ChatterBox Boss on May 25, 2009, 02:39:43 AM
ah that would be why cause yes I don't have them integrated. Thanks bro!

~Any idea if thinking about trying to make a word censor for this? If so I would open for guest use (cause if not guests could spam bad language and such). If not it is no big deal  ;D ~

NP....I haven't messed with it but you can try playing with this
http://sourceforge.net/docman/display_doc.php?docid=128642&group_id=214758 (http://sourceforge.net/docman/display_doc.php?docid=128642&group_id=214758)
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 25, 2009, 02:52:33 AM
Sounds great I will just have to think of words to add
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 25, 2009, 03:28:56 AM
Hmm it didn't seem to work (or at least still showed the word to me I wonder if it shows the edit to others. Like if i said "******" its supposed to put "****" but I wonder even though it showed "******" to me I wonder if it showed "****" to others

Nevermind the forum word censor is on lol  but you get the point
Title: Re: AjaxChat Integration
Post by: Bobn on May 25, 2009, 10:42:34 AM
Hello,

Is there a way to include the buttons like image buttons and all in a SMF integration?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 25, 2009, 11:19:30 AM
Quote from: Bobn on May 25, 2009, 10:42:34 AM
Hello,

Is there a way to include the buttons like image buttons and all in a SMF integration?

I don't understand exaclty what you mean? Are you talking about an image button for a custom theme?
Title: Re: AjaxChat Integration
Post by: Bobn on May 25, 2009, 11:26:17 AM
Quote from: mrtrc266 on May 25, 2009, 11:19:30 AM
Quote from: Bobn on May 25, 2009, 10:42:34 AM
Hello,

Is there a way to include the buttons like image buttons and all in a SMF integration?

I don't understand exaclty what you mean? Are you talking about an image button for a custom theme?

Hi,

If I log into the chat directly mydomain.com/forum/chat/index.php  I have options and settings at the bottom of the screen. Is there a way to include these options/buttons on the shoutbox that is embedded into my SMF forum?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 25, 2009, 11:41:26 AM
@ Bobn it would take a lot of work to get all the settings buttons to work properly on the shuotbox as well. you can add all the BBC buttons and some smileys though by clicking the link in my sig.
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 25, 2009, 12:33:54 PM
Quote from: Chit-Chat ChatterBox Boss on May 25, 2009, 03:28:56 AM
Hmm it didn't seem to work (or at least still showed the word to me I wonder if it shows the edit to others. Like if i said "******" its supposed to put "****" but I wonder even though it showed "******" to me I wonder if it showed "****" to others

Nevermind the forum word censor is on lol  but you get the point

The instructions on SourceForge did not work for me. After examining the code, however, I managed to get the word censor working.

Straight from SourceForge:
QuoteThis modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
return text;
}


This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}


Adds a replacement for the word "foo".

But it should look like:
QuoteThis modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace('frug', 'Fruggles');
return text;
}


This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace('frug', 'Fruggles');
text=text.replace('foo', 'Donkey Foo');
return text;
}


Adds a replacement for the word "foo".

The changes are marked in red.

This would change every instance of frug to Fruggle and every instance of foo to Donkey Foo. Hope this helps.

Title: Re: AjaxChat Integration
Post by: fotografo74 on May 25, 2009, 02:41:50 PM
Quote from: SunKing on May 19, 2009, 12:23:29 PM
Alright. Here is the first (of many, I hope) tweak for the AjaxChat mod.
Here's what I did:

Post Notification

The first step is to change a value for one of the database entries, so make backups! I think this could be made a permanent change without ill consequences maybe in future releases. ;)

The dateTime field of ajax_chat_messages needs the type changed to timestamp.

Next, open Sources/Post.php and search for
notifyMembersBoard($notifyData);
add after it:
// Ajax Chat New Topic Notification
global $user_info, $board, $scripturl, $boardName, $topic;
    $smcFunc['db_insert']('',
      'ajax_chat_messages',
      array(
         'userID' => 'int', 'userName' => 'string-255', 'userRole' => 'int', 'channel'=> 'int', 'ip' => 'string-255', 'text' => 'string-255',
         ),
      array(
         $posterOptions['id'], $user_info['name'], 1, 0, $posterOptions['ip'], '[color=red][b]New Topic: [url='.$scripturl . '?topic=' . $topic . '.new#new'.']'.html_entity_decode($_POST['subject']).'[/url][/b][/color]'
         ),
      array('autopost')
   );
    // End Ajax Chat New Topic Notification


search for
sendNotifications($topic, 'reply');

replace it with:

     {
sendNotifications($topic, 'reply');

// Ajax Chat New Reply Notification
global $user_info, $board, $scripturl, $boardName, $topic;
    $smcFunc['db_insert']('',
      'ajax_chat_messages',
      array(
         'userID' => 'int', 'userName' => 'string-255', 'userRole' => 'int', 'channel'=> 'int', 'ip' => 'string-255', 'text' => 'string-255',
         ),
      array(
         $posterOptions['id'], $user_info['name'], 1, 0, $posterOptions['ip'], '[color=red][b]New Reply: [url='.$scripturl . '?topic=' . $topic . '.new;topicseen#new'.']'.html_entity_decode($_POST['subject']).'[/url][/b][/color]'
         ),
      array('autopost')
   );
    // End Ajax Chat New Reply Notification
     }


That's it. Now, every time someone posts, a nice notification will popup in the chat/shoutbox displaying a link to the new post/reply.

This is by no means my creation, but rather a reworking of a tweak for nneonneo's shoutbox that I could not live without. ;)

Many thanks to hiver101 for pointing me in the right direction.

DEMO (http://www.empireofthesun.net)        Enjoy!
Thanks for this !
A question ( sorry for my english): how can i exclude some boards?
Thanks!
Antonio
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 25, 2009, 02:51:38 PM
Quote from: SunKing on May 25, 2009, 12:33:54 PM
Quote from: Chit-Chat ChatterBox Boss on May 25, 2009, 03:28:56 AM
Hmm it didn't seem to work (or at least still showed the word to me I wonder if it shows the edit to others. Like if i said "******" its supposed to put "****" but I wonder even though it showed "******" to me I wonder if it showed "****" to others

Nevermind the forum word censor is on lol  but you get the point

The instructions on SourceForge did not work for me. After examining the code, however, I managed to get the word censor working.

Straight from SourceForge:
QuoteThis modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
return text;
}


This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}


Adds a replacement for the word "foo".

But it should look like:
QuoteThis modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace('frug', 'Fruggles');
return text;
}


This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace('frug', 'Fruggles');
text=text.replace('foo', 'Donkey Foo');
return text;
}


Adds a replacement for the word "foo".

The changes are marked in red.

This would change every instance of frug to Fruggle and every instance of foo to Donkey Foo. Hope this helps.

Thank you I will give it a test drive now!
Title: Re: AjaxChat Integration
Post by: everwake on May 25, 2009, 03:16:33 PM
helllo!

i want to make the ajax chat button to open in new window! help me plz! my smf version is 2.0RC1

in the default theme working fine! the popup option from admin panel is active but working only in the default theme!

the html code in the subs.php is this.

'chat' => array(
            'title' => $txt['chat'],
            'href' => str_replace("index.php", "chat/index.php", $scripturl),
            'show' => true,
            'sub_buttons' => array(
            ),


plz help!
Title: Re: AjaxChat Integration
Post by: rad1701 on May 25, 2009, 03:38:26 PM
Tried to install the modified file (from mrtrc266) on my 1.1.9 and got these errors.  I am running Bloc's Enterprise theme and tiny Portal.  Any idea why I'm getting these errors or how to fix them?

1.     Execute Modification     ./Sources/BoardIndex.php     Test failed
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
6.    Execute Modification    ./Themes/default/index.template.php    Test failed
7.    Execute Modification    ./Themes/default/style.css    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.persian.php    Skipping file
12.    Extract Tree    ./chat    
13.    Extract Tree    ./shoutBox/css    
14.    Extract Tree    ./shoutBox/flash    
15.    Extract Tree    ./shoutBox/img    
16.    Extract Tree    ./shoutBox/js    
17.    Extract Tree    ./shoutBox/lib    
18.    Extract Tree    ./shoutBox/socket    
19.    Extract Tree    ./shoutBox/sounds    
20.    Extract Tree    ./shoutBox/src    
21.    Extract Tree    ./shoutBox    
22.    Execute Code    Tables_1.1.X.php
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 25, 2009, 03:39:00 PM
Quote from: SunKing on May 25, 2009, 12:33:54 PM
Quote from: Chit-Chat ChatterBox Boss on May 25, 2009, 03:28:56 AM
Hmm it didn't seem to work (or at least still showed the word to me I wonder if it shows the edit to others. Like if i said "******" its supposed to put "****" but I wonder even though it showed "******" to me I wonder if it showed "****" to others

Nevermind the forum word censor is on lol  but you get the point

The instructions on SourceForge did not work for me. After examining the code, however, I managed to get the word censor working.

Straight from SourceForge:
QuoteThis modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
return text;
}


This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}


Adds a replacement for the word "foo".

But it should look like:
QuoteThis modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace('frug', 'Fruggles');
return text;
}


This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace('frug', 'Fruggles');
text=text.replace('foo', 'Donkey Foo');
return text;
}


Adds a replacement for the word "foo".

The changes are marked in red.

This would change every instance of frug to Fruggle and every instance of foo to Donkey Foo. Hope this helps.

WHen I do this i edit both the chat and shoutbox custom.js and it only seems to be working in the shoutbox the chat doesnt seem to work for this. Any ideas why?
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 25, 2009, 03:39:45 PM
Quote from: rad1701 on May 25, 2009, 03:38:26 PM
Tried to install the modified file (from mrtrc266) on my 1.1.9 and got these errors.  I am running Bloc's Enterprise theme and tiny Portal.  Any idea why I'm getting these errors or how to fix them?

1.     Execute Modification     ./Sources/BoardIndex.php     Test failed
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
6.    Execute Modification    ./Themes/default/index.template.php    Test failed
7.    Execute Modification    ./Themes/default/style.css    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.persian.php    Skipping file
12.    Extract Tree    ./chat    
13.    Extract Tree    ./shoutBox/css    
14.    Extract Tree    ./shoutBox/flash    
15.    Extract Tree    ./shoutBox/img    
16.    Extract Tree    ./shoutBox/js    
17.    Extract Tree    ./shoutBox/lib    
18.    Extract Tree    ./shoutBox/socket    
19.    Extract Tree    ./shoutBox/sounds    
20.    Extract Tree    ./shoutBox/src    
21.    Extract Tree    ./shoutBox    
22.    Execute Code    Tables_1.1.X.php

You have to manually install this due to the fact you are running a custom theme.
Title: Re: AjaxChat Integration
Post by: rad1701 on May 25, 2009, 03:44:45 PM
Quote from: Chit-Chat ChatterBox Boss on May 25, 2009, 03:39:45 PM
Quote from: rad1701 on May 25, 2009, 03:38:26 PM
Tried to install the modified file (from mrtrc266) on my 1.1.9 and got these errors.  I am running Bloc's Enterprise theme and tiny Portal.  Any idea why I'm getting these errors or how to fix them?

1.     Execute Modification     ./Sources/BoardIndex.php     Test failed
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
6.    Execute Modification    ./Themes/default/index.template.php    Test failed
7.    Execute Modification    ./Themes/default/style.css    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.persian.php    Skipping file
12.    Extract Tree    ./chat    
13.    Extract Tree    ./shoutBox/css    
14.    Extract Tree    ./shoutBox/flash    
15.    Extract Tree    ./shoutBox/img    
16.    Extract Tree    ./shoutBox/js    
17.    Extract Tree    ./shoutBox/lib    
18.    Extract Tree    ./shoutBox/socket    
19.    Extract Tree    ./shoutBox/sounds    
20.    Extract Tree    ./shoutBox/src    
21.    Extract Tree    ./shoutBox    
22.    Execute Code    Tables_1.1.X.php

You have to manually install this due to the fact you are running a custom theme.

Yeah - I figured as much.  Any link to what to what code I need to change and where?
Title: Re: AjaxChat Integration
Post by: cponygo on May 25, 2009, 04:10:21 PM
Package Parser
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 25, 2009, 04:42:42 PM
The word censor worked in both my shoutbox and my chat, but I have them integrated. You may need to make the edits to the corresponding files in both the chat folder and the shoutbox folder.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 25, 2009, 04:59:50 PM
Yes i edited the custom.js in the chat folder and the shoutbox folder and only the shoutbox one works
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 25, 2009, 06:20:33 PM
Can someone make a /ban command. So it perm bans until you /unban them? with /kick it just bans until the time that is set runs out (which is fine) but we need a perm ban way.
Title: Re: AjaxChat Integration
Post by: cponygo on May 25, 2009, 10:25:29 PM
quick question plz.....using 1.1.9. I have it installed-changed my permissions and in default everything works beautiful. So I have the ability to add a link and a menu tab named chat in my custom theme until I figure out the edits to integrate it.

Now my question is- I have run it through the parser and got the changes needed  to alter the theme directory. I went to my file manager- pulled up the proper file and for the absolute life of me I cannot find the required code that would need to be changed. I have read and reread looking for the code needed to be changed..

Any ideas-Not an exact noob at reading the code to find it but does it have to be exactly what I am looking for something close or or...

TIA for an awesome chat
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 26, 2009, 11:53:09 AM
@ everwake (http://www.simplemachines.org/community/index.php?action=profile;u=204919)

Make sure that this code is before the </body> in the index.template.php file for your custom theme


if ($modSettings['enableChatBelowPM']){
$count = count(chatOnlineUsers());
if ($count == 0 )
echo '<br />' . $txt['chat_no_user'];
elseif ($count == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' . $count. $txt['chat_users']. '<br />';
}
$num = ($modSettings['enableChatButtonNo']) ? $count : 0;
$context['menu_buttons']['chat']['title'] .= ($num > 0) ?  ('('.$num.')') : '';
if ($modSettings['chatPopUp']){
$context['menu_buttons']['chat']['href'] .= '" onclick="openWindow(this.href);this.blur();return false;';
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>';
}
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 26, 2009, 02:08:14 PM
@ cponygo (http://www.simplemachines.org/community/index.php?action=profile;u=17651)

For you're custom theme the code will not be exaclty like it is in the default theme which is what the code will be searching for.

One way to trouble shoot is to open the default theme file along side your custom theme file and find the proximity of where to code goes and just play around with it.

If you have troubles, post the theme you are using and the files that need editing.
Title: Re: AjaxChat Integration
Post by: everwake on May 26, 2009, 02:44:17 PM
help me plz decause i cant fix this alone  :-\

my current theme is the Mystic Jade from Dziner Studio!

take the index.template.php from the 2 themes!
Title: Re: AjaxChat Integration
Post by: wiki on May 26, 2009, 04:03:38 PM

Can I add more history for surrent session? I need to keep more because i would like to read conversation but only a few lines is there at that session.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 26, 2009, 04:26:25 PM
Quote from: everwake on May 26, 2009, 02:44:17 PM
help me plz decause i cant fix this alone  :-\
my current theme is the Mystic Jade from Dziner Studio!
take the index.template.php from the 2 themes!

Try this one, of course make a backup of your working one. I just tested and it opens in new window.

Attatched is the one for your custom theme.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 26, 2009, 04:28:10 PM
Quote from: wiki on May 26, 2009, 04:03:38 PM

Can I add more history for surrent session? I need to keep more because i would like to read conversation but only a few lines is there at that session.

You can view the logs http://yoursite.com/chat/?view=logs (http://yoursite.com/chat/?view=logs)
Title: Re: AjaxChat Integration
Post by: everwake on May 26, 2009, 04:53:48 PM
1000 thanks!!!! <3 :)

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 26, 2009, 05:08:10 PM
Quote from: everwake on May 26, 2009, 04:53:48 PM
1000 thanks!!!! <3 :)

You're welcome, enjoy :)
Title: Re: AjaxChat Integration
Post by: everwake on May 26, 2009, 06:17:53 PM
ahhhhhh!!

with the new template.php i can't see the group colors (admin , mod etc) inside the forum! :S

Title: Re: AjaxChat Integration
Post by: cponygo on May 26, 2009, 06:39:25 PM
will try that - thanks-

just have this thing to try and get it myself...lol
Title: Re: AjaxChat Integration
Post by: cponygo on May 26, 2009, 07:58:31 PM
index.template.php (https://helios.lunarpages.com:2083/frontend/lp/files/select.html?dir=%2fhome%2fcponygo2%2fpublic_html%2fsbgjuggernauts%2fThemes%2fdefault&file=index.template.php)

index.template.php theme (https://helios.lunarpages.com:2083/frontend/lp/files/select.html?dir=%2fhome%2fcponygo2%2fpublic_html%2fsbgjuggernauts%2fThemes%2finvazion114&file=index.template.php)

Okay I did the side by side but this one gave me some probs if you can help me out-cool..many thanks Andy
Title: Re: AjaxChat Integration
Post by: cponygo on May 26, 2009, 08:17:03 PM
sorry for the above-if you could help w/these- I believe the top one should be default and then Invasion114
Title: Re: AjaxChat Integration
Post by: Krandall on May 26, 2009, 10:21:34 PM
Not sure if there's an "official" spot to put requests for new features... BUT.. I'm a nneonneo's ajax shoutbox convertor. One thing they had that I like that this doesn't is a history button for normal users. :)
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 26, 2009, 10:30:44 PM
It's already in the works with a setting to display X number of shouts (I, too, was a big nneonneo SB fan   :P ). In fact, I am working on several little tweaks for the AjaxChat and will post them here as they are finished. So far, I have managed to port over the Post Notification tweak. Enjoy this mod, it's great!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 26, 2009, 11:08:04 PM
Quote from: everwake on May 26, 2009, 06:17:53 PM
ahhhhhh!!

with the new template.php i can't see the group colors (admin , mod etc) inside the forum! :S

Are you talkin about showing the Group Colors in the bottom of the board? If so be sure and go to Admin/Themes and Layout/Themes Settings/ [Select Theme] and check check "Show group key on board index"
Title: Re: AjaxChat Integration
Post by: Krandall on May 26, 2009, 11:13:51 PM
Quote from: SunKing on May 26, 2009, 10:30:44 PM
It's already in the works with a setting to display X number of shouts (I, too, was a big nneonneo SB fan   :P ). In fact, I am working on several little tweaks for the AjaxChat and will post them here as they are finished. So far, I have managed to port over the Post Notification tweak. Enjoy this mod, it's great!
Sweet!!

Yeah, I've been using nneonneo's for quite some time, but ran into some issues w/ it where no one was able to help me. getting some weird mysql errors. nothing showing up in my server logs even.... was a head scratcher, this layout is a bit more "user friendly" keep up the great work guys!!!!
Title: Re: AjaxChat Integration
Post by: victoryrock on May 26, 2009, 11:33:59 PM
I am getting an Error when installing.  It is for my file:

/Sources/BoardIndex

Attached is my file.

Can someone please take a quick peek and tell me what is wrong with it?

I am really looking for a good chat feature with the option to enable sound when a new chat happens.

Is there something like MSN where a window pops up?

Thanks,
victoryrock
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 26, 2009, 11:37:02 PM
What theme and other mods do you have installed?
Title: Re: AjaxChat Integration
Post by: mashby on May 26, 2009, 11:40:22 PM
Users Online Today mod was interfering with the installation to that file. If that is the only error, install it (say OK to the warning)...then FTP the attached file to overwrite what you had. Should do the trick.
Title: Re: AjaxChat Integration
Post by: victoryrock on May 26, 2009, 11:42:21 PM
VERY MANY...

1. SMF 1.0.15 / 1.1.7 Update 1.0 [ Uninstall ]
2. Last Topics of Person 1.0 [ Uninstall ]
3. Edit_Display_Name_Permission 1.0 [ Uninstall ]
4. Generic Avatars 1.1 [ Uninstall ]
5. Images On Board 1.1 [ Uninstall ]
6. Links Managment 1.0 [ Uninstall ]
7. MessagePreviewOnHover 1.7 [ Uninstall ]
8. User Email System 1.3 [ Uninstall ]
9. Skype Integration 1.0 [ Uninstall ]
10. TextSizer 1.0 [ Uninstall ]
11. Change_All_Subjects 1.0 [ Uninstall ]
12. Colorize Boards 3.0 [ Uninstall ]
13. Contact Page 1.1 [ Uninstall ]
14. Time Logged-In 3.2 [ Uninstall ]
15. Clickable Avatars 1.1.0 [ Uninstall ]
16. Copy Topics 1.4 [ Uninstall ]
17. Allow TAB in Postbox 1.1 [ Uninstall ]
18. Custom_Greeting_Depending_on_Time 0.9 [ Uninstall ]
19. Member List Position Filter 1.1.0 [ Uninstall ]
20. New In Topic View 1.1 [ Uninstall ]
21. Prettier_Quotes 1.12 [ Uninstall ]
22. Separated Birthdays from Events 1.0 [ Uninstall ]
23. The Rules 1.2 [ Uninstall ]
24. Todays Birthday 1.2 [ Uninstall ]
25. Attachment Icon File 1.0 [ Uninstall ]
26. Reflection Avatar 1.1 [ Uninstall ]
27. Aeva ~ Auto-Embed Video & Audio 5.1.32 [ Uninstall ]
28. Age on post 1.0 [ Uninstall ]
29. Avatars at Index Mod 1.5 [ Uninstall ]
30. Global Headers Footers 1.4.1 [ Uninstall ]
31. Highlight Message Backgrounds 1.11 [ Uninstall ]
32. Highslide Image Viewer 1.0 [ Uninstall ]
33. TopicLog 1.0 [ Uninstall ]
34. Member Notepad 1.0 [ Uninstall ]
35. last login in post 1.0 [ Uninstall ]
36. Topic Title In The Center Under Linktree 1.5 [ Uninstall ]
37. Users Online Today Mod 1.4.0 [ Uninstall ]
38. Notify of posts and replys by default 1.0 [ Uninstall ]
39. Who_Xrevolution 1.1 [ Uninstall ]
40. MiniClip Game Embed BBC Tag 0.1 [ Uninstall ]
41. Board Message Icon 1.0 [ Uninstall ]
42. Board Viewers Mod 1.2 [ Uninstall ]
43. Date_Registerd on post 1.0 [ Uninstall ]
44. Monthly Statistics on Profile 1.0 [ Uninstall ]
45. FontandSizeDropdown_1.2 1.3 [ Uninstall ]
46. Profile User Action 1.1 [ Uninstall ]
47. Signature Dropdown Choices 1.0 [ Uninstall ]
48. Word Description 1.0 [ Uninstall ]
49. Enhanced PM Warning Message 1.0 [ Uninstall ]
50. Add PM Info To Header (v1.1) 1.0 [ Uninstall ]
51. Enhanced Calendar 1.1 [ Uninstall ]
52. autoTooltips autoLinktips for SMF 0.9 [ Uninstall ]
53. Drafts (for 1.1.x) 1.08 [ Uninstall ]
54. New Topic Button 1.0 [ Uninstall ]
55. Count unread topics on index 1.1 [ Uninstall ]
56. Image Thumbnail BBCode 1.0 [ Uninstall ]
57. Random_Quote 1.1 [ Uninstall ]
58. Additional Polls 1.0.2 [ Uninstall ]
59. OnOffAvatar 1.0 [ Uninstall ]
60. SMF 1.0.16 / 1.1.8 Update 1.0 [ Uninstall ]
61. Permissions_Info 1.2 [ Uninstall ]
62. Topic Member Post Count 1.1.5 [ Uninstall ]
63. Recycle Bin Cleaner 1.0 [ Uninstall ]
64. Line Numbers Mod 1.01 [ Uninstall ]
65. Enhance Recent Post 1.0 [ Uninstall ]
66. Hide Info Center From Guests 1.0 [ Uninstall ]
67. Enhanced Dropdown 1.1 [ Uninstall ]
68. PDF Tag 1.1 [ Uninstall ]
69. NHL Team Logos 1.0 [ Uninstall ]
70. Redirect on Login and/or Logout mod 0.3 [ Uninstall ]
71. PM Readed 1.0 [ Uninstall ]
72. Advanced Login Form 1.1 [ Uninstall ]
73. EmailFlash 2.0 [ Uninstall ]
74. New Style Message Icon 1.1 [ Uninstall ]
75. Reason For Editing Mod 1.14 [ Uninstall ]
76. Show all edits in messages 1.0 [ Uninstall ]
77. Notify Modification Last Post 1.1 [ Uninstall ]
78. NextPostLevel 1.0 [ Uninstall ]
79. Force Topic Read On Login Mod 1.0 [ Uninstall ]
80. AvatarSelect 1.1.2 [ Uninstall ]
81. Manage Members Membergroups 1.0.0 [ Uninstall ]
82. Additional Membergroups on Profile 1.0 [ Uninstall ]
83. Profil Moderator Managment 1.0.0 [ Uninstall ]
84. EzPortal 0.2.7 [ Uninstall ]
85. Page_Reload_Mod 1.0 [ Uninstall ]
86. Reply Button in All Posts 1.0 [ Uninstall ]
87. Admin Notepad 1.0 [ Uninstall ]
88. Custom Profile Field Mod 3.20 [ Uninstall ]
89. Anonymous Posting Mod 1.01 [ Uninstall ]
90. mp3 Flash Player BBC Tag (XHTML Compliant) 1.0 [ Uninstall ]
91. RateThatTopic 1.0


Quote from: Chit-Chat ChatterBox Boss on May 26, 2009, 11:37:02 PM
What theme and other mods do you have installed?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 26, 2009, 11:45:34 PM
LOL damn that was some quick responses...WTG!

Yes it was only the Users Online Today Mod that was interfering. Proceed with install as Mashby said and enjoy the Mod

Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 26, 2009, 11:48:39 PM
You don't think he will lose any mod edits in that file if he does that? Not questioning your work cause i think your wrong but cause I am curious. Nevermind I see you DLed it and checked  O:)

*I have this topic notify marked so I get a notice to my blackberry when a reply is given (have that for a few topics  ;D)
Title: Re: AjaxChat Integration
Post by: victoryrock on May 26, 2009, 11:51:20 PM
When I overwrite, I get this...

Fatal error: Call to undefined function chatonlineusers() in /home/.sites/143/site2/web/forum/Sources/BoardIndex.php on line 450

Quote from: mrtrc266 on May 26, 2009, 11:45:34 PM
LOL damn that was some quick responses...WTG!

Yes it was only the Users Online Today Mod that was interfering. Proceed with install as Mashby said and enjoy the Mod
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 26, 2009, 11:55:07 PM
Quote from: victoryrock on May 26, 2009, 11:51:20 PM
When I overwrite, I get this...

Fatal error: Call to undefined function chatonlineusers() in /home/.sites/143/site2/web/forum/Sources/BoardIndex.php on line 450

Quote from: mrtrc266 on May 26, 2009, 11:45:34 PM
LOL damn that was some quick responses...WTG!

Yes it was only the Users Online Today Mod that was interfering. Proceed with install as Mashby said and enjoy the Mod

Try this one
Title: Re: AjaxChat Integration
Post by: victoryrock on May 26, 2009, 11:59:34 PM
Ooooh... another one.  You know what, please don't try anymore.  I really don't want you to waste your time on this.  But really, THANKS for your help!

Fatal error: Call to undefined function chatonlineusers() in /home/.sites/143/site2/web/forum/Sources/BoardIndex.php on line 522

victoryrock

Quote from: mrtrc266 on May 26, 2009, 11:55:07 PM
Quote from: victoryrock on May 26, 2009, 11:51:20 PM
When I overwrite, I get this...

Fatal error: Call to undefined function chatonlineusers() in /home/.sites/143/site2/web/forum/Sources/BoardIndex.php on line 450

Quote from: mrtrc266 on May 26, 2009, 11:45:34 PM
LOL damn that was some quick responses...WTG!

Yes it was only the Users Online Today Mod that was interfering. Proceed with install as Mashby said and enjoy the Mod

Try this one
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 12:06:17 AM
I'm running 1.1.9 and it does not work. I have default theme. Just out of curosity, I linked back to the mod and click on the manual instructions for 1.1.9 and then clicked PARSE and it came up and said that it was not compatible with this version.

Is there a updated version coming out to work with 1.1.9?
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 27, 2009, 12:09:42 AM
Have a look here:

http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 12:54:12 AM
Quote from: victoryrock on May 26, 2009, 11:59:34 PM
Ooooh... another one.  You know what, please don't try anymore.  I really don't want you to waste your time on this.  But really, THANKS for your help!

Fatal error: Call to undefined function chatonlineusers() in /home/.sites/143/site2/web/forum/Sources/BoardIndex.php on line 522

victoryrock

It woulda been an easy fix, hope ya find what you're lookin for.
Title: Re: AjaxChat Integration
Post by: everwake on May 27, 2009, 03:18:50 AM

[/quote]
Are you talkin about showing the Group Colors in the bottom of the board? If so be sure and go to Admin/Themes and Layout/Themes Settings/ [Select Theme] and check check "Show group key on board index"
[/quote]

no no im talking about the color of the admin ,,and gmoderator name inside the forum! above the avatar!
Title: Re: AjaxChat Integration
Post by: excon on May 27, 2009, 03:51:39 AM
Hi guys,
is there any way i can clear the error log for this mod?
Thanks..
Title: Re: AjaxChat Integration
Post by: RiverWoman on May 27, 2009, 10:39:17 AM
I downloaded and tried to install this mod (ajax chat int. 3.0), but it doesn't work with the newly installed/updated version 1.1.9.  Is there a chat mod that will work with SMF 1.1.9?

Much obliged for your help
RiverWoman
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 10:58:16 AM
Quote from: RiverWoman on May 27, 2009, 10:39:17 AM
I downloaded and tried to install this mod (ajax chat int. 3.0), but it doesn't work with the newly installed/updated version 1.1.9.  Is there a chat mod that will work with SMF 1.1.9?

Much obliged for your help
RiverWoman

Use this
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610 (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 11:00:49 AM
@ everwake

what't the link to your site? PM me if you don't want it public
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 12:46:53 PM
I've already checked that file and it has in there 1.1.99.99 in there which is what the instructions say to add.
Title: Re: AjaxChat Integration
Post by: MiNiBuDa on May 27, 2009, 01:26:27 PM
aaaaaaaaaaaaaaaaaaaaaaaaaaaa

My forum was crashed when I install this mod (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610) (with Error 500 Internal Server)

Any solutions ????

I have uploaded a backup of files from the server and does not work.

It change any existing table in the database?

Help me, please !!!.

Thanks.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 02:59:11 PM
@ vicoryrock

I tested it on my test site and it worked fine

Of course back up first....

Install Ajax Chat Intergration Mod
Ignore the "test failed" (only if it's just the BoardIndex.php file)
Apply Mod
Upload edited BoardIndex.php

This should work for you
Title: Re: AjaxChat Integration
Post by: victoryrock on May 27, 2009, 03:01:09 PM
Thanks, but I can you please re-attach the file?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 03:04:01 PM
LOL...oops :P  There ya go
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 03:05:27 PM
Quote from: JCox on May 27, 2009, 12:46:53 PM
I've already checked that file and it has in there 1.1.99.99 in there which is what the instructions say to add.

What exactly is the problem? Won't install, errors on install? Please post some details or errors.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 03:07:13 PM
Quote from: MiNiBuDa on May 27, 2009, 01:26:27 PM
aaaaaaaaaaaaaaaaaaaaaaaaaaaa

My forum was crashed when I install this mod (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610) (with Error 500 Internal Server)

Any solutions ??? ?

I have uploaded a backup of files from the server and does not work.

It change any existing table in the database?

Help me, please !!!.

Thanks.

The only thing that changed in that was the info file to allow 1.1.9 and RC1-1 to recognize it.

It does not change any existing database tables, only creates new ones.
Title: Re: AjaxChat Integration
Post by: victoryrock on May 27, 2009, 03:10:21 PM
I got this:

Fatal error: Call to undefined function chatonlineusers() in /home/.sites/143/site2/web/forum/Sources/BoardIndex.php on line 521

I didn't uninstall from last night, and so I tried to uninstall to re-install hoping that would change it, but then ALL but 2 were TEST FAILED.

I messed something up somewhere and now I really don't know where to begin.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 03:11:38 PM
Sending PM
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 03:16:20 PM
Quote from: mrtrc266 on May 27, 2009, 03:05:27 PM
Quote from: JCox on May 27, 2009, 12:46:53 PM
I've already checked that file and it has in there 1.1.99.99 in there which is what the instructions say to add.

What exactly is the problem? Won't install, errors on install? Please post some details or errors.

I download the file to my computer and then using the Package Manager, it uploads and I then click "APPLY MOD". I then get the message below.

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 27, 2009, 04:02:39 PM
Quote from: JCox on May 27, 2009, 03:16:20 PM
Quote from: mrtrc266 on May 27, 2009, 03:05:27 PM
Quote from: JCox on May 27, 2009, 12:46:53 PM
I've already checked that file and it has in there 1.1.99.99 in there which is what the instructions say to add.

What exactly is the problem? Won't install, errors on install? Please post some details or errors.

I download the file to my computer and then using the Package Manager, it uploads and I then click "APPLY MOD". I then get the message below.

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Go here:
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 27, 2009, 04:05:57 PM
Hey to limit the shoutbox messages doesn't seem to work in the shoutbox>lib>config.php I put it for 1 message per each minute but would love it 1 message per each 5 minutes. I don't have my shoutbox and chat integrated together. I want the chat normal but the shoutbox limited.
Title: Re: AjaxChat Integration
Post by: cponygo on May 27, 2009, 04:32:31 PM
mrtrc266- I tried the side by side comparo of the index file with defaultvrs theme....still was throwing me a bit..I found the changes needed for the style and board files and saved those..in a post on page 102 Ibelieve I inc'd both default and my theme and was wondering if you could help me with that index temp php file for my theme-

tia Andy
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 04:52:18 PM
Chatterbox,

I keep being referred to that same message. As I stated, when I open that file up, it ALREADY has the 1.1.6- 1.1.99.99. It does not have the 1.1.8 even in there.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 05:01:12 PM
Quote from: JCox on May 27, 2009, 04:52:18 PM
Chatterbox,

I keep being referred to that same message. As I stated, when I open that file up, it ALREADY has the 1.1.6- 1.1.99.99. It does not have the 1.1.8 even in there.

Don't open it....just install it...the edit is already done.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 05:16:47 PM
Quote from: victoryrock on May 27, 2009, 03:10:21 PM
I got this:

Fatal error: Call to undefined function chatonlineusers() in /home/.sites/143/site2/web/forum/Sources/BoardIndex.php on line 521

I didn't uninstall from last night, and so I tried to uninstall to re-install hoping that would change it, but then ALL but 2 were TEST FAILED.

I messed something up somewhere and now I really don't know where to begin.
Quote from: mrtrc266 on May 27, 2009, 03:11:38 PM
Sending PM

You are all set Victory.....ENJOY!  ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 05:19:43 PM
@ cpony..takin a look now...sry I missed you other post.
Title: Re: AjaxChat Integration
Post by: victoryrock on May 27, 2009, 05:29:39 PM
AWESOME!!!! Can't wait to get home and try it!
Many thanks and blessings!
V
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 06:21:44 PM
Okay, it seemed to have installed without the error but now, I don't see the CHAT at the top. Also, where do you go to change what groups have access to chat/ index board or all boards? Is this somethign that has to be turned on or should it be visible under Admin log in the menu board?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 06:33:42 PM
Quote from: cponygo on May 27, 2009, 04:32:31 PM
mrtrc266- I tried the side by side comparo of the index file with defaultvrs theme....still was throwing me a bit..I found the changes needed for the style and board files and saved those..in a post on page 102 Ibelieve I inc'd both default and my theme and was wondering if you could help me with that index temp php file for my theme-

tia Andy

I can't find the theme Invasion so I'm winging it, try this one ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 06:37:39 PM
@ JCox

Yes you have to enable the ShoutBox

Admin/Features and Options/Basic Features/ and check...

Check for ShoutBox on any page or uncheck for only in index page
Integrate shout box and chat room?
Chat in popup page?
Enable online chat users numbering on chat button?
Show online users below total logged in time section?

Then yes, you will have to goto Admin/Permissions/[Select Membergroup] and check...

Access to chat
Use shoutBox
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 06:42:53 PM
Okay, I have 6 check boxes after "Maximum number of characters allowed" but there is no text giving a description. I guess I'll just check all of them and figure it out from there.
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 06:47:55 PM
After checking all the boxes. The chat box comes up but I automatically get this error when the page loads and when I try to type something and ENTER.

(18:46:18) ChatBot: Error: Connection status: 500
(18:46:37) ChatBot: Error: Connection status: 500
(18:46:39) ChatBot: Error: Connection status: 500
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 27, 2009, 06:48:54 PM
Quote from: Chit-Chat ChatterBox Boss on May 27, 2009, 04:05:57 PM
Hey to limit the shoutbox messages doesn't seem to work in the shoutbox>lib>config.php I put it for 1 message per each minute but would love it 1 message per each 5 minutes. I don't have my shoutbox and chat integrated together. I want the chat normal but the shoutbox limited.

Any ideas on this one mrtrc266?
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 07:03:12 PM
I know I'm becoming a pain if I'm not already but I have also gone to Permissions>Membergroups>Modify and again, I have some check boxes but no text describing what they are for.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 07:06:48 PM
Be right with ya Chatter Box

JCox

If the text isn't showing next to the options it seems you're missing language strings, your theme has it's own languages folder or you're using UTF-8

If your missing strings of your theme has it's own language folder

Open
yourforum/Themes/yourtheme/languages/Modifications.english.php
Add to the bottom of the file

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can't.';
$txt['permissionname_shout_access'] = 'Use shoutBox';
$txt['permissionhelp_shout_access'] = 'Give access to use the shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration


If you're using  UTF-8

Open and add the same code to
yourforum/Themes/yourtheme/languages/Modifications.english.utf8.php

For your 500 Error via FTP CHMOD the yourforum/chat/index.php to 755 and to the same for yourforum/shoutbox/index.php
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 07:16:03 PM
Quote from: Chit-Chat ChatterBox Boss on May 27, 2009, 06:48:54 PM
Quote from: Chit-Chat ChatterBox Boss on May 27, 2009, 04:05:57 PM
Hey to limit the shoutbox messages doesn't seem to work in the shoutbox>lib>config.php I put it for 1 message per each minute but would love it 1 message per each 5 minutes. I don't have my shoutbox and chat integrated together. I want the chat normal but the shoutbox limited.

Any ideas on this one mrtrc266?

You mean you only want to allow 1 message every 5 minutes?
Title: Re: AjaxChat Integration
Post by: victoryrock on May 27, 2009, 07:30:32 PM
This is great! 

My only question is the channels...how or where do you change that sort of thing?  I have like a million channels and would like to bring that down to a couple.

And why have the channels anyways when you just shows up on the shoutbox in the forum?

Maybe I don't fully understand it all?  Can I disable the shoutbox and only have the pop up room?

Thanks again!

Quote from: mrtrc266 on May 27, 2009, 05:16:47 PM

You are all set Victory.....ENJOY!  ;)
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 27, 2009, 07:43:25 PM
Quote from: mrtrc266 on May 27, 2009, 07:16:03 PM
Quote from: Chit-Chat ChatterBox Boss on May 27, 2009, 06:48:54 PM
Quote from: Chit-Chat ChatterBox Boss on May 27, 2009, 04:05:57 PM
Hey to limit the shoutbox messages doesn't seem to work in the shoutbox>lib>config.php I put it for 1 message per each minute but would love it 1 message per each 5 minutes. I don't have my shoutbox and chat integrated together. I want the chat normal but the shoutbox limited.

Any ideas on this one mrtrc266?

You mean you only want to allow 1 message every 5 minutes?

Yes but the word limiter doesn't seem to work at all. the line in config.php

// Defines the max number of messages a user may send per minute:
$config['maxMessageRate'] = 1;

Even with the above code set like that in both the chat and shoutbox people can post as much as they want. (I want chat left alone but the shoutbox to be limited to 1 message max every 5 minutes)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 07:44:09 PM
@victoryrock

No problem....glad you're liking it.

Yes you can remove the Channels

Open.....yourforum/chat/lib/config.php
Find

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;


And replace with the code below and just change the numbers to the number of the boards for the boards you want to have as channels

EXAMPLE: If "General Discussion" was board #1 This would make it so ONLY General Discussion would appear in the channel list. (to check the board # click on the board and look at the # at the end of the URL)


// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(1);


To disable the ShoutBox go to Admin/Features and Options/Basic Setting and uncheck "Enable Shoutbox"
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 07:53:01 PM
Chatterbox, I'm messing with it now and I can't get it to work either...are your members able to type as much as they want? You might be able to type as much as you want cuz your admin.

Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 08:09:51 PM
Okay, I fixed the 500 error code. When I changed the Modifications.english.php it die not do anything. When I changed the UTF-8, I got an error when I went to my page. I'll mess with it later. I didn't do the change using FTP, I used a text editor. I'll go back in and use FTP. How do I know when file I'm using UTF or Regular?
Title: Re: AjaxChat Integration
Post by: victoryrock on May 27, 2009, 08:13:47 PM
@ mrtc266

Everythings working just great! 

Last thing though...is it easy to modify the template so that it lists who is in the Chat also in the top header?  You know where it says "1 User in Chat"?

If not, no big deal.  It just bypasses always scrolling down to the bottom of the screen.

v
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 08:34:22 PM
Victory I've tried that before but failed LOL. The members will just have to jump into chat to see who's in there  :P  Or like you said scroll down to the bottom.

I play around with it some more and see if we can get it to show the names of the users in chat on the top.

Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 27, 2009, 08:36:19 PM
Quote from: mrtrc266 on May 27, 2009, 07:53:01 PM
Chatterbox, I'm messing with it now and I can't get it to work either...are your members able to type as much as they want? You might be able to type as much as you want cuz your admin.

I will test it now
Title: Re: AjaxChat Integration
Post by: victoryrock on May 27, 2009, 08:39:28 PM
No big deal, I just thought you might have done it before.

And what's with the Roll Dice thingy...?

Quote from: mrtrc266 on May 27, 2009, 08:34:22 PM
Victory I've tried that before but failed LOL. The members will just have to jump into chat to see who's in there  :P  Or like you said scroll down to the bottom.

I play around with it some more and see if we can get it to show the names of the users in chat on the top.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 27, 2009, 08:47:57 PM
@ mrtrc266
Nope normal members can still post more then 1 a min

@ Victory
You can remove it in the codes. either fully delete the roll dice lines or put "//" infront of the lines that contain that stuff
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 08:48:02 PM
@JCox
You fixed the 500 error, so now the shoutbox and chat are working?

Editing the Modifications.english-utf8.php shouldn't make your forum not work...put the code from above right above....

?>

@ Victory, the dice roll is just for fun or for people who use RPG Games

@ Chatter Box...not sure...will have to play with it later.
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 08:50:59 PM
Not exactly sure what the shout box is unless that's the box at the top of the forum. If so, yes. It's working. Let me go back and play with the english.php in the FTP.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 08:52:14 PM
Yes the shoutbox is what's on the top of your forum...vs. the actual chat room.
Title: Re: AjaxChat Integration
Post by: TheListener on May 27, 2009, 08:52:41 PM
Quote from: JCox on May 27, 2009, 08:50:59 PM
Not exactly sure what the shout box is unless that's the box at the top of the forum. If so, yes. It's working. Let me go back and play with the english.php in the FTP.

Don't forget to SHOUT
Title: Re: AjaxChat Integration
Post by: excon on May 27, 2009, 08:53:43 PM
Quote from: excon on May 27, 2009, 03:51:39 AM
Hi guys,
is there any way i can clear the error log for this mod?
Thanks..

please help me on this.. my error log is about 87MB and it is eating a lot of space..

thanks in advance.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 27, 2009, 08:55:57 PM
@ mrtrc266
Ok sounds good I will wait for you to figure it out later ...

SunKing and I had a question as far as the censor goes. His chat is integrated while mine is not. With the censor setup in both shoutbox and chat files his works in the chat but not in the shoutbox(with integrated chat/shoutbox). While mine works in the shoutbox but not in the chat (with non-integrated shoutbox/chat). Didn't know if you could play with this also and see where the problem was.

@JCox
Yes the shoutbox is the Chat area at the top of the forum (not the one you have to click on the tab to open, thats the chat)

@ excon
Do you mean the error log on the forum. If so you can hit remove all but first post here what the errors are.
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 09:12:04 PM
I just need to confirm. I need to add that code to BOTH UTF-8 and the Modifications.english.php. They way you have it above is a little confusing.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 09:13:53 PM
Quote from: JCox on May 27, 2009, 09:12:04 PM
I just need to confirm. I need to add that code to BOTH UTF-8 and the Modifications.english.php. They way you have it above is a little confusing.

Yes go ahead and add it to both
Title: Re: AjaxChat Integration
Post by: MCK on May 27, 2009, 09:17:09 PM
Hi. Is it possible to run this mod on SMF 1.1.9? Thanks for your input.
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 09:18:43 PM
Okay, I am almost there. Now, when I added it to the UTF folder, the script above is text on the very top of my site. It's like I'm missing a "code"? Look at it right quick. http://forum.eastcoastshooters.com

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 09:34:16 PM
Quote from: JCox on May 27, 2009, 09:18:43 PM
Okay, I am almost there. Now, when I added it to the UTF folder, the script above is text on the very top of my site. It's like I'm missing a "code"? Look at it right quick. http://forum.eastcoastshooters.com (http://forum.eastcoastshooters.com/)

You have it below the ?>

move ?> and make it the very last line in the file.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 09:38:15 PM
Quote from: MCK on May 27, 2009, 09:17:09 PM
Hi. Is it possible to run this mod on SMF 1.1.9? Thanks for your input.

Yes use this
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610 (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610)
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 09:40:08 PM
mrtc

I've done that and then I get some error about "something on the forum has gone sour....."

Let me try it again.

okay, on the UTF-8, I have put it ABOVE the ?> and I'm getting a parse error. you can go to my site now and see it http://forum.eastcoastshooters.com

I guess it needs to be the same way on both language mods? modifications.english.php and modifications.english.utf8
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 09:48:15 PM
Quote from: JCox on May 27, 2009, 09:40:08 PM
mrtc

I've done that and then I get some error about "something on the forum has gone sour....."

Let me try it again.

okay, on the UTF-8, I have put it ABOVE the ?> and I'm getting a parse error. you can go to my site now and see it http://forum.eastcoastshooters.com (http://forum.eastcoastshooters.com/)

I guess it needs to be the same way on both language mods? modifications.english.php and modifications.english.utf8

Yes by default most Mods will install into the modifications.english.php so you just need to make the modifications.english.utf8 exactly the same
Title: Re: AjaxChat Integration
Post by: MCK on May 27, 2009, 09:48:34 PM
Quote from: mrtrc266 on May 27, 2009, 09:38:15 PM
Quote from: MCK on May 27, 2009, 09:17:09 PM
Hi. Is it possible to run this mod on SMF 1.1.9? Thanks for your input.

Yes use this
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610 (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610)

Thanks. Trying now.
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 09:49:11 PM
okay, they are the same on both and i'm still getting the parse error
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 09:52:20 PM
Restore the files to where you're forum was working

Attatch both files here please
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 09:57:37 PM
I have gone back in and changed it back until you look at it.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 10:11:16 PM
Of course keep the ones that are working now and try these...
Title: Re: AjaxChat Integration
Post by: MCK on May 27, 2009, 10:17:34 PM
Getting the following error opening forum after installation of the mod. Any ideas?

Fatal error: Cannot redeclare getshoutboxcontent() (previously declared in /.../forum/Sources/Load.php:2224) in /.../forum/Sources/Load.php on line 2299

Thanks
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 10:20:48 PM
@ MCK

Did you get any errors on install?
What's the URL to your site?
Title: Re: AjaxChat Integration
Post by: JCox on May 27, 2009, 10:21:29 PM
mrtrc,

YOU ARE THE BOMB!!! It's working and even my INVITE mod is now working. Thank you so much. What can I do to repay you?
Title: Re: AjaxChat Integration
Post by: victoryrock on May 27, 2009, 10:24:56 PM
Yes I agree!

mrtrc has got to be the best support EVER!!!

Kudos!

Quote from: JCox on May 27, 2009, 10:21:29 PM
mrtrc,

YOU ARE THE BOMB!!! It's working and even my INVITE mod is now working. Thank you so much. What can I do to repay you?
Title: Re: AjaxChat Integration
Post by: MCK on May 27, 2009, 10:25:35 PM
Quote from: mrtrc266 on May 27, 2009, 10:20:48 PM
@ MCK

Did you get any errors on install?
What's the URL to your site?

Thanks for your help. The URL is http://www.futureguitarnow.com/forum/index.php

No errors what-so-ever during installation. All appeared to be normal.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 10:28:37 PM
Quote from: victoryrock on May 27, 2009, 10:24:56 PM
Yes I agree!

mrtrc has got to be the best support EVER!!!

Kudos!

Quote from: JCox on May 27, 2009, 10:21:29 PM
mrtrc,

YOU ARE THE BOMB!!! It's working and even my INVITE mod is now working. Thank you so much. What can I do to repay you?

TYVM Both for the Kudos, you can repay me by just enjoying the Mod ;) Glad you got it going.

Be sure to check this out for some great customization tweaks and post back if you need any help
~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 10:34:47 PM
Quote from: MCK on May 27, 2009, 10:25:35 PM
Quote from: mrtrc266 on May 27, 2009, 10:20:48 PM
@ MCK

Did you get any errors on install?
What's the URL to your site?

Thanks for your help. The URL is http://www.futureguitarnow.com/forum/index.php (http://www.futureguitarnow.com/forum/index.php)

No errors what-so-ever during installation. All appeared to be normal.

Attatch your /Sources/Load.php file
Title: Re: AjaxChat Integration
Post by: MCK on May 27, 2009, 10:38:02 PM
Here it is. I also noticed a .php~ file there so this is probably the original. Attaching that too.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 10:45:55 PM
Quote from: MCK on May 27, 2009, 10:38:02 PM
Here it is. I also noticed a .php~ file there so this is probably the original. Attaching that too.

The one with the ~ is the backup made when Mods are installed.

The Chat code was in there twice....try this one.
Title: Re: AjaxChat Integration
Post by: MCK on May 27, 2009, 10:49:14 PM
It worked!!! Thank you sooo very much! Amazing response. Most appreciated,
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 10:53:57 PM
WOOOHOOOO! Glad that worked for ya...enjoy the Mod :)
Title: Re: AjaxChat Integration
Post by: Krandall on May 27, 2009, 10:58:17 PM
Question.

Is it possible to make the shoutbox only appear on a certain board vs. being on the index for the entire site?

With the other chat app I had, I had coded before the shout code in the index.template.php this:

global $board;

if(isset($board) && $board==21 || $board==22 || $board==23 || $board==24 || $board==32 || $board==33 || $board==55) {

global $txt,$context,$boarddir;


With the #'s representing which boards I wanted the shout to show on.

-Randy
Title: Re: AjaxChat Integration
Post by: MCK on May 27, 2009, 11:00:16 PM
Most appreciated. Owe you big time.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 11:13:11 PM
@ Krandall

I wish this had that feature like Hack Park but unfortunately it's only on the Board Index or ALL pages
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 27, 2009, 11:49:36 PM
It can be implemented just as you have it as long as you envelope the main ajaxchat function inside that code.

Something like:

global $board;

if(isset($board) && $board==21 || $board==22 || $board==23 || $board==24 || $board==32 || $board==33 || $board==55) {

whatever_the_main_ajax_finction_is();

}


The ajaxchat function resides inside the if (isset($board)) { ... } part. Hope that moves you in the right direction anyway. ;)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 27, 2009, 11:57:58 PM
I totally misunderstood the question....this would be awesome though.

Enable the Shoutbox on certain "Actions"

Hack's Park you could enable the Shoutbx to appear on certain pages...something like forum, arcade, etc.

This would be a great tweak is anyone is interested ;)
Title: Re: AjaxChat Integration
Post by: TheListener on May 27, 2009, 11:59:39 PM
Dont tempt me bud. You and Sun have been busy enough helping this old fusspot as it is.   :D
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 28, 2009, 12:01:01 AM
hehehe No worries....

I have already added the "Show Only On Certain Boards" tweak to my ever-growing todo list.  :P
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 28, 2009, 12:02:43 AM
Quote from: SunKing on May 28, 2009, 12:01:01 AM
hehehe No worries....

I have already added the "Show Only On Certain Boards" tweak to my ever-growing todo list.  :P

LOL Thanks SK I'm glad someone knows what the hell they're doing :P
Title: Re: AjaxChat Integration
Post by: TheListener on May 28, 2009, 12:11:04 AM
me too. specially when it comes to banners and arcades.  ;D
Title: Re: AjaxChat Integration
Post by: rmcworking on May 28, 2009, 02:57:13 AM
Hi all Im new to this but intalled this mod on smf 1.1.8 that was working great, and the mod works for me fine but any users that log on now get logged off if they try to post or click anything and only me as administrator can see the shoutbox or chat even when other users are logged on and ive been through all the permissions options ect... when i remove the mod my smf works fine and ppl dont get logged out and can post ??? whats going on? plzzz help!
Title: Re: AjaxChat Integration
Post by: BinaryNinja on May 28, 2009, 08:01:52 AM
Hi,
running on 1.1.9 and allowed guests is set to true but when you try to log in it says You cant access the chat?

Also, I am the only one who can access the chat.
Other registered users of my board can't even if they are using their forum credentials!

Help!
Title: Re: AjaxChat Integration
Post by: MCK on May 28, 2009, 08:37:48 AM
Hi, I removed the AjaxChat using the Admin console but I still see its setting fields on the configuration area. What can I do to make sure its all removed? Thanks
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 28, 2009, 09:19:05 AM
Quote from: BinaryNinja on May 28, 2009, 08:01:52 AM
Hi,
running on 1.1.9 and allowed guests is set to true but when you try to log in it says You cant access the chat?

Also, I am the only one who can access the chat.
Other registered users of my board can't even if they are using their forum credentials!

Help!

Be sure to set you permissions
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 28, 2009, 09:29:40 AM
Quote from: MCK on May 28, 2009, 08:37:48 AM
Hi, I removed the AjaxChat using the Admin console but I still see its setting fields on the configuration area. What can I do to make sure its all removed? Thanks

Since your Load.php file had the code in there twice it seems that the Mod was installed twice. Use a Package Parser  (http://resourcez.biz/PackageParser/)to manually remove the code. Then reinstall it again and it should be fine.

Of course make backups of the files you edit.
Title: Re: AjaxChat Integration
Post by: MCK on May 28, 2009, 09:42:24 AM
Thanks for that pointer. This is clear and even I should be ok to follow through. Re backups... Lesson learned! Thanks once again for bailing me out!  :)
Title: Re: AjaxChat Integration
Post by: BinaryNinja on May 28, 2009, 10:00:01 AM
Quote from: mrtrc266 on May 28, 2009, 09:19:05 AM
Quote from: BinaryNinja on May 28, 2009, 08:01:52 AM
Hi,
running on 1.1.9 and allowed guests is set to true but when you try to log in it says You cant access the chat?

Also, I am the only one who can access the chat.
Other registered users of my board can't even if they are using their forum credentials!

Help!

Be sure to set you permissions


If you mean for the index.php files, I have set them to 755.
Otherwise, which permissions do you mean?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 28, 2009, 10:07:37 AM
I mean your permissions in your admin panel

Admin/Permissions/[Select Membergroup] and check "Access to Shout" and "Access to Chat"
Title: Re: AjaxChat Integration
Post by: Mack450 on May 28, 2009, 10:18:29 AM
This doesnt work for 1.1.9?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 28, 2009, 10:20:20 AM
Quote from: Mack450 on May 28, 2009, 10:18:29 AM
This doesnt work for 1.1.9?

You can use this http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610 (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610)
Title: Re: AjaxChat Integration
Post by: BinaryNinja on May 28, 2009, 10:40:28 AM
Hey,
I haven't actually added the shoutbox part to my board yet  because I am using a custom theme.
Also I had to change to the default theme in order to apply those settings.

Which files to I need to manually modify for a custom theme? (Including admin cp)

Also, the logout feature doesn't want to work. When I click logout, it just reloads the page..?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 28, 2009, 10:45:49 AM
@ BinaryNinja this should help you get started and get this going on your custom theme.

~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: rmcworking on May 28, 2009, 11:17:24 AM
with this mod installed my site has problems with people logging on and when they post or click they get logged out ??? when the mod is removed smf works fine ???
any help here ??
Title: Re: AjaxChat Integration
Post by: allisondk on May 28, 2009, 05:26:46 PM
nevermind, got it working

AWESOME MOD
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 28, 2009, 05:38:23 PM
Just was wondering how this stuff was coming along?
Quote
Ok sounds good I will wait for you to figure it out later ...

SunKing and I had a question as far as the censor goes. His chat is integrated while mine is not. With the censor setup in both shoutbox and chat files his works in the chat but not in the shoutbox(with integrated chat/shoutbox). While mine works in the shoutbox but not in the chat (with non-integrated shoutbox/chat). Didn't know if you could play with this also and see where the problem was.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 29, 2009, 12:51:51 AM
Quote from: rmcworking on May 28, 2009, 11:17:24 AM
with this mod installed my site has problems with people logging on and when they post or click they get logged out ??? when the mod is removed smf works fine ???
any help here ??

You mean they are getting logged out of the forum or just the chat?
Title: Re: AjaxChat Integration
Post by: BinaryNinja on May 29, 2009, 06:23:46 AM
Is there a way to show users in shoutbox?
Title: Re: AjaxChat Integration
Post by: Paracelsus on May 29, 2009, 08:45:30 AM
Quote from: BinaryNinja on May 29, 2009, 06:23:46 AM
Is there a way to show users in shoutbox?

I second this question and add another: is it possible to have the same "controls" as in chat (like turning on / off the sound and so on)?
Title: Re: AjaxChat Integration
Post by: darth_dionysus on May 29, 2009, 10:49:38 AM
I may have missed this somewhere in the 108 pages of this thread, but I tried to install on RC1-1 and got this error:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I downloaded it from the SMF mod site 3 times.  Is there another place to download it, or am I trying to add it to a version that won't be compatible?

Your assistance is truly appreciated.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 29, 2009, 11:28:27 AM
@ BinaryNinja & Paracelsus
If you have the Shout and Chat Intergrated then when users are even in the shout is will show them in the Chat Users list. As for the sound setting at this time there is not any controls for the sound in the shoutbox. You can disable it though in the config files though.


@ darth_dionysus You can ust this one
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610 (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610)
Title: Re: AjaxChat Integration
Post by: scruffeone on May 29, 2009, 01:06:41 PM
Newbie question that MUST have been answered before.  I installed this mod using the smf package installation feature (I'm on 1.1.8), I've looked at all of the files that were supposed to be modded and they were.  I am using the default theme, but for some reason I don't see any of the features anywhere.  my "features and Options" list has nothing on it re: chat:

Basic Features
Poll mode  Disable polls Enable polls Show existing polls as topics 

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

Allow guests to browse the forum   
Enable user-selectable language support   
Allow users to edit their displayed name?   
Allow non-administrators to hide their online status?   
Allow users to hide their email from everyone except admins?   
Do not reveal contact details of members to guests   
Enable custom titles   
Enable buddy lists   
Default personal text   
Maximum allowed characters in signatures
(0 for no max.)   
 
   
   
   
   
   

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

Default time format   
Default number format  1234.00 1,234.00 1.234,00 1 234,00 1234,00 
Overall time offset
(added to the member specific option.)   
Failed login threshold   
User online time threshold   
Track daily statistics   
Track daily page views (must have stats enabled)   
Enable error logging   
Disable administration security   

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

Require reactivation after email change   
Require admin approval when member deletes account   

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

Allow users to disable announcements   
Don't allow post text in notifications?   
Log moderation actions   
Search engine friendly URLs
Apache only!   

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

Max width of posted pictures (0 = disable)   
Max height of posted pictures (0 = disable)   

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

Enable reporting of personal messages   
Maximum number of recipients allowed in a personal message.
(0 for no limit, admins are exempt)   
Post count under which users must enter code when sending personal messages.
(0 for no limit, admins are exempt)   
Number of personal messages a user may send in an hour.
(0 for no limit, moderators are exempt)   


WHat did I do wrong here?
Title: Re: AjaxChat Integration
Post by: darth_dionysus on May 29, 2009, 01:15:32 PM
Quote from: mrtrc266 on May 29, 2009, 11:28:27 AM


@ darth_dionysus You can ust this one
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610 (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610)


Thanks so much!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 29, 2009, 01:18:04 PM
@ darth....yvw

@ scruffeone
Do you see some check boxes that don't have text next to them?
The Setting are under Admin/Features and Options/Basic
Title: Re: AjaxChat Integration
Post by: victoryrock on May 29, 2009, 01:27:43 PM
Hey mrtc,

Everything is working just great.  I have a few questions that I know you will be able to help me with.

-In the main login screen of the Ajax Chat Room, what file do I change so that I can have it say...."Victory Church on the Rock Chat Room" instead of just "Ajax Chat"
-What is the difference between Inactive and Timed Out?
-Where on the Chat Template can I put somewhere that says, "Please Logout Before Leaving"?  what I am finding is that it says they are online, but they're not, and then I am chatting
with them and then it says "xxxx has been logged out (Timeout)."
-how do you use QUOTE properly?

Yes...that's all.

Thanks,
victoryrock


Quote from: mrtrc266 on May 27, 2009, 10:28:37 PM

Be sure to check this out for some great customization tweaks and post back if you need any help
~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: scruffeone on May 29, 2009, 01:48:03 PM
Quote from: mrtrc266 on May 29, 2009, 01:18:04 PM
@ darth....yvw

@ scruffeone
Do you see some check boxes that don't have text next to them?
The Setting are under Admin/Features and Options/Basic

Yes, there are 6 of them under basic features
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 29, 2009, 01:53:46 PM
@ Victory
To alter the Header look at this http://sourceforge.net/forum/forum.php?thread_id=1982688&forum_id=774132 (http://sourceforge.net/forum/forum.php?thread_id=1982688&forum_id=774132)

Inactive= idle users Timedout= they are kicked from chat after they are idle for so long. By default it's set to 2 minutes. You can change that in the FAQ's link

Also in the FAQ's you can creat a welcome message and just say something like "Welcome to Victory Chat. Enjoy you stay and please log out before leaving." Or you can try messing with this http://sourceforge.net/docman/display_doc.php?docid=136726&group_id=214758 (http://sourceforge.net/docman/display_doc.php?docid=136726&group_id=214758) to deal with members who haven't logged out. I never played with it so not sure exaclty how it works.

The quote as well as all other BBC Codes work the same way as they do on SMF.
EXAMPLE:

[quote]This is a test quote[/quote]


Would result in this
QuoteThis is a test quote

Hope that helps.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 29, 2009, 01:56:54 PM
Quote from: scruffeone on May 29, 2009, 01:48:03 PM
Quote from: mrtrc266 on May 29, 2009, 01:18:04 PM
@ darth....yvw

@ scruffeone
Do you see some check boxes that don't have text next to them?
The Setting are under Admin/Features and Options/Basic

Yes, there are 6 of them under basic features

You're missing the language strings....this should help
http://www.simplemachines.org/community/index.php?topic=257973.msg2081255#msg2081255 (http://www.simplemachines.org/community/index.php?topic=257973.msg2081255#msg2081255)
Title: Re: AjaxChat Integration
Post by: scruffeone on May 29, 2009, 02:42:56 PM
This is the contents of the Modifications.english.php file located at the forums\Themes\default\languages directory:

/ Version: 1.1; Modifications

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Use shoutBox';
$txt['permissionhelp_shout_access'] = 'Give access to use the shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration


Is it just not able to read the file?
Title: Re: AjaxChat Integration
Post by: victoryrock on May 29, 2009, 02:45:35 PM
@ mrtc,

The thing that worked was altering the title, which was more important to me that the welcome message, which did not work.

As for quotes, I tried it, but it doesn't add the persons name, is it supposed to.

Thanks again!

Quote from: mrtrc266 on May 29, 2009, 01:53:46 PM
@ Victory
To alter the Header look at this http://sourceforge.net/forum/forum.php?thread_id=1982688&forum_id=774132 (http://sourceforge.net/forum/forum.php?thread_id=1982688&forum_id=774132)

Inactive= idle users Timedout= they are kicked from chat after they are idle for so long. By default it's set to 2 minutes. You can change that in the FAQ's link

Also in the FAQ's you can creat a welcome message and just say something like "Welcome to Victory Chat. Enjoy you stay and please log out before leaving." Or you can try messing with this http://sourceforge.net/docman/display_doc.php?docid=136726&group_id=214758 (http://sourceforge.net/docman/display_doc.php?docid=136726&group_id=214758) to deal with members who haven't logged out. I never played with it so not sure exaclty how it works.

The quote as well as all other BBC Codes work the same way as they do on SMF.
EXAMPLE:

[quote]This is a test quote[/quote]


Would result in this
QuoteThis is a test quote

Hope that helps.
Title: Re: AjaxChat Integration
Post by: scruffeone on May 29, 2009, 02:48:47 PM
I got it...using utf8.  thanks for your help.  you are a solid CSman!!
Title: Re: AjaxChat Integration
Post by: victoryrock on May 29, 2009, 03:34:19 PM
@ mrtc

I enabled the Shoutbox and all of a sudden I got a funny character at the top. 

See TOP LEFT in Attached Image.

What file would that be in so that I can remove it?
Title: Re: AjaxChat Integration
Post by: Bobn on May 29, 2009, 09:28:39 PM
Hello,

is there a way to have the shoutbox open by default for all users?
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 29, 2009, 09:30:41 PM
If you enable the shoutbox in the admin settings it should be. Also remember to go to your permissions for ALL your groups and set the shoutbox and chat to the way you want it.
Title: Re: AjaxChat Integration
Post by: Bobn on May 29, 2009, 09:38:37 PM
Quote from: Chit-Chat ChatterBox Boss on May 29, 2009, 09:30:41 PM
If you enable the shoutbox in the admin settings it should be. Also remember to go to your permissions for ALL your groups and set the shoutbox and chat to the way you want it.

Thanks!
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 29, 2009, 09:39:26 PM
No problem!
Title: Re: AjaxChat Integration
Post by: dzinerfusion on May 29, 2009, 10:18:11 PM
Quote from: bluesinjid on May 13, 2009, 05:52:20 PM
Quote from: mrtrc266 on May 11, 2009, 12:24:51 AM
Finally Adding the BBC Buttons, adding Custom Smileys and MAKING SMILEYS POPUP in your Chat Room and ShoutBox for AJAX Chat Intergration 3.0 is here(https://www.simplemachines.org/community/Smileys/simple/cheesy.gif)

The edits below will add the following to your AJAX Chat Room & Shoutbox.
     

  • Adds all of the BBC Buttons to your Shoutbox.
  • Adds the Font Color Palette to your Shoutbox.
  • Adds custom Smileys to your Chat Room and Shoutbox.
  • Makes the Font Color Palette PopUp in the Shoutbox.
  • Makes the Smileys PopUp in your Chat Room & Shoutbox.
  • Adds 60 Custom Smileys to your Chat Room & Shoutbox.
  • DEMO HERE (http://monsters-mansion.com/testsmf2/index.php)   
Here we go.....First just do a couple edits to these files.

yourforum/Themes/yourtheme/index.tempalte.php
Find
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
</div>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


Replace with

<div class="tborder" style="margin: 10px 0 10px 0;">
<table width="100%" class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<tr>
<td width="50%">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
</div>
</td>
<td width="50%" align="right">
<div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">
          <font size="1">AJAX Chat</font></a><font size="1"> &copy; <a href="https://blueimp.net">blueimp.net</a> |
          </font> <a href="http://4tmu.ir/forum/index.php"><font size="1">Integrated with SMF</font></a></div>
</td>
</tr>
</table>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


yourforum/chat/js/config.js (You can just use the attatched file if you have not made any previous edits to the config.js file)

Find
// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
';)',
':P',
':D',
':|',
':O',
':?',
'8)',
'8o',
'B)',
':-)',
':-(',
':-*',
'O:-D',
'>:-D',
':o)',
':idea:',
':important:',
':help:',
':error:',
':warning:',
':favorite:'
),

Replace with
// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
':cc',
';)',
':winktongue:',
':P',
':D',
':wave:',
':sleeping:',
':whistle:',
':idea:',
':|',
':resigned:',
':O',
':err',
':grr',
'8o',
'B)',
':headphones:',
':onthephone:',
':applause:',
':money:',
':thumbsup:',
':thumbsdown:',
':undecided:',
':nervous:',
':worried:',
':scaredblue:',
':stop:',
':despair:',
':angel:',
'devilish',
':vampire:',
':blushing:',
':lustful:',
':inlove:',
':kiss:',
':flower:',
':radioactive:',
':ill:',
':tongue:',
':mean:',
':lipsrsealed:',
':bequiet:',
':pirate:',
':clown:',
':mouse:',
':bull:',
':cow:',
':pig:',
':bandaged:',
':dead:',
':biohazard:',
':creeper:',
':grab:',
':banghead:',
':lmaoslap:',
':spitcoffe:',
':lols:',
':rofl:'
),

Find
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'wink.png',
'razz.png',
'grin.png',
'plain.png',
'surprise.png',
'confused.png',
'glasses.png',
'eek.png',
'cool.png',
'smile-big.png',
'crying.png',
'kiss.png',
'angel.png',
'devilish.png',
'monkey.png',
'idea.png',
'important.png',
'help.png',
'error.png',
'warning.png',
'favorite.png'
),

Replace with
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.gif',
'sad.gif',
'cry.gif',
'wink.gif',
'winktongue.gif',
'grin.gif',
'cheesy.gif',
'wave.gif',
'sleeping.gif',
'whistle.gif',
'idea.gif',
'unhappy.gif',
'resigned.gif',
'surprised.gif',
'angry.gif',
'angry2.gif',
'eek.gif',
'cool.gif',
'headphones.gif',
'onthephone.gif',
'applause.gif',
'money.gif',
'thumbsup.gif',
'thumbsdown.gif',
'undecided.gif',
'nervous.gif',
'worried.gif',
'scaredblue.gif',
'stop.gif',
'despair.gif',
'angel.gif',
'devilish.gif',
'vampire.gif',
'blushing.gif',
'lustful.gif',
'inlove.gif',
'kiss.gif',
'flower.gif',
'radioactive.gif',
'ill.gif',
'tongue.gif',
'mean.gif',
'lipsrsealed.gif',
'bequiet.gif',
'pirate.gif',
'clown.gif',
'mouse.gif',
'bull.gif',
'cow.gif',
'pig.gif',
'bandaged.gif',
'dead.gif',
'biohazard.gif',
'creeper.gif',
'grab.gif',
'banghead.gif',
'lmaoslap.gif',
'spitcoffe.gif',
'lols.gif',
'rofl.gif'
),


   
Upload positions.css to yourforum/chat/css/
Upload shoutbox.css to yourforum/chat/css/
Upload loggedIn.html to yourforum/chat/lib/template/
Upload shoutbox.html to yourforum/chat/lib/template/
Upload config.js to yourforum/chat/js/ (only if you have not made any previous edit, otherwise to the edits above).

PLEASE NOTE: If you DO NOT have your Shoutbox and ChatRoom Intergrated then you must also
Upload shoutbox.css to yourforum/shoutbox/css/
Upload shoutbox.html to yourforum/shoutbox/lib/template/
Upload config.js to yourforum/shoutbox/js/ (only if you have not made any previous edit, otherwise to the edits above).
Unzip and upload the smileys to yourforum/shoutbox/img/emoticons/


The attatched zip file has over 60 Smileys. Unzip the file and upload them to chat/img/emoticons. Some will overwrite what is already there but these are better anyway :-)
You can add or change Smileys by uploading your own Smileys and making the edits to chat/js/config.js. It's important make sure the the input code is in the same order as the image file. Also make sure that the last array DOES NOT have a comma.

Have fun. ;)

is this what you do exactly toa 2.0RC1 FORUM? plus if you could help me why my chat wont pop up ??? Ill include the url and the index.template

www.modernopolis.byethost32.com

Did u find out the prob?
Title: Re: AjaxChat Integration
Post by: Kyrislian on May 30, 2009, 06:23:41 AM
I'd just like to know if this mod is available for 2.0 RC1-1? :)
Title: Re: AjaxChat Integration
Post by: Frelo21 on May 30, 2009, 07:51:20 AM
Guys im desperate, I need this installed on my smf site, its version 1.1.9

I dont want the shoutbox on my site however, I just want the chatroom.

Ill pay $10.00 to an Experienced (has to be experienced) person who can install this mod on my board.

please message me if you can help, I need it done a.s.a.p
Title: Re: AjaxChat Integration
Post by: darth_dionysus on May 30, 2009, 08:25:42 AM
Quote from: Kyrislian on May 30, 2009, 06:23:41 AM
I'd just like to know if this mod is available for 2.0 RC1-1? :)

This version does:
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610

The file here works on RC1-1
Title: Re: AjaxChat Integration
Post by: Joe N on May 30, 2009, 08:29:26 AM
Quote from: Frelo21 on May 30, 2009, 07:51:20 AM
Guys im desperate, I need this installed on my smf site, its version 1.1.9

I dont want the shoutbox on my site however, I just want the chatroom.

Ill pay $10.00 to an Experienced (has to be experienced) person who can install this mod on my board.

please message me if you can help, I need it done a.s.a.p

I sent you a pm
Title: Re: AjaxChat Integration
Post by: Frelo21 on May 30, 2009, 09:07:50 AM
Quote from: Joe N on May 30, 2009, 08:29:26 AM
Quote from: Frelo21 on May 30, 2009, 07:51:20 AM
Guys im desperate, I need this installed on my smf site, its version 1.1.9

I dont want the shoutbox on my site however, I just want the chatroom.

Ill pay $10.00 to an Experienced (has to be experienced) person who can install this mod on my board.

please message me if you can help, I need it done a.s.a.p

I sent you a pm

sent you one back.
Guys I need this done a.s.a.p my website is opening in a few days
Title: Re: AjaxChat Integration
Post by: Joe N on May 30, 2009, 09:11:15 AM
Quote from: Frelo21 on May 30, 2009, 09:07:50 AM
Quote from: Joe N on May 30, 2009, 08:29:26 AM
Quote from: Frelo21 on May 30, 2009, 07:51:20 AM
Guys im desperate, I need this installed on my smf site, its version 1.1.9

I dont want the shoutbox on my site however, I just want the chatroom.

Ill pay $10.00 to an Experienced (has to be experienced) person who can install this mod on my board.

please message me if you can help, I need it done a.s.a.p

I sent you a pm

sent you one back.
Guys I need this done a.s.a.p my website is opening in a few days

I am helping you
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 30, 2009, 09:43:36 AM
@ blue, I looked at it but couldn't get it. I will look some more on Mon-Tue

@ Victory maybe a language file try adding to yourforum/Themes/yourtheme/languages/Modifications.english-utf8.phpfile

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Use shoutBox';
$txt['permissionhelp_shout_access'] = 'Give access to use the shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration
Title: Re: AjaxChat Integration
Post by: victoryrock on May 30, 2009, 10:50:48 AM
mrtc,

I tried the file but the characters are still there.

I may just have to live with i, or just keep searching as I go.

Is there a Shoutbox Template file that I may have changed by accident?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 30, 2009, 10:52:59 AM
Victory...no we'll find a fix for it...something simple Im sure. Off to work for now but will look when I get a few minutes.
Title: Re: AjaxChat Integration
Post by: victoryrock on May 30, 2009, 10:57:34 AM
You really do live up to your title "Support Helper of the Month" hey?
I suggest "...of the Year"!

Thanks Man!
Title: Re: AjaxChat Integration
Post by: amlucent on May 30, 2009, 11:02:08 PM
Hi mrtrc266,

At the request of several users, I am trying to get this mod to play nice with my mod gwbbcode.  At best I can only get it going this far and get the following error:

XML Parsing Error: junk after document element
Location: http://gwplayers.com/smf2/chat/index.php
Line Number 1, Column 90:<script language="JavaScript" type="text/javascript" src="gwbbcode/gwbbcode.js"></script><?xml version="1.0" encoding="UTF-8"?>
-----------------------------------------------------------------------------------------^


here is the test forum where I have both mods installed.  Feel free to check it out here http://gwplayers.com/smf2/index.php (http://gwplayers.com/smf2/index.php) . I had to copy my mods "gwbbcode" folder inside the "chat" directory else I got a much more foreboding error  >:(.


Anyway, no hurry whenever you get around to check it out. If you have any ideas or need more info let me know. I am just trying to bug stomp for people and I have little experience with this mod.

Thanks

Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 30, 2009, 11:38:04 PM
@ amlucent

Open yourforum/chat/lib/config.php
Find
// The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null):
$config['contentType'] = null;

Replace with   // The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null):
$config['contentType'] = 'text/html';
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 31, 2009, 04:49:14 AM
What points the chat system to the smileys? Because I copied the site files into a /public_html/testsite and now when I enter the test site the smileys are the tags not the images. So I need to fix that!
Title: Re: AjaxChat Integration
Post by: DareDevil1990 on May 31, 2009, 08:32:07 AM
how much  server usage will it use in comparison to nneonneo's and hackpark shoutbox?
Title: Re: AjaxChat Integration
Post by: MCK on May 31, 2009, 09:09:49 AM
Hi. I am trying to install Ajax Chat now on an upgraded SMF v2 RC1-1 but the installer refuses to kick off. Is there an updated package for RC1-1? Apologies if this has been asked before.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 31, 2009, 09:48:47 AM
Quote from: DareDevil1990 on May 31, 2009, 08:32:07 AM
how much  server usage will it use in comparison to nneonneo's and hackpark shoutbox?

Hard to answer that, all I can say is that I barely notice it and can't remember anyone out of these 110 pages complaining about server lag issues after they installed this.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 31, 2009, 09:49:53 AM
Quote from: MCK on May 31, 2009, 09:09:49 AM
Hi. I am trying to install Ajax Chat now on an upgraded SMF v2 RC1-1 but the installer refuses to kick off. Is there an updated package for RC1-1? Apologies if this has been asked before.

Use this one
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610 (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610)
Title: Re: AjaxChat Integration
Post by: MCK on May 31, 2009, 09:59:03 AM
Thanks. That did the trick. Now getting the (22:57:27) ChatBot: Error: Connection status: 500

error but I recall it was covered somewhere. Let me see if I can find it. Thanks once again
Title: Re: AjaxChat Integration
Post by: mrtrc266 on May 31, 2009, 10:42:57 AM
@ MCK

Set these file permissions (CHMOD) to 755 and you should be all set.

chat/index.php
shoutbox/index.php
Title: Re: AjaxChat Integration
Post by: MCK on May 31, 2009, 11:02:18 AM
Yup. I saw the FAQ page. You're the best! Thanks once again. Please let me know if in future you might implement a way to put the shoutbox at the bottom of the screen.
Title: Re: AjaxChat Integration
Post by: EduardoP737 on May 31, 2009, 12:46:34 PM
Hi, I have upload the MOD File to server, but I dont see the "Install" or "uninstall" button

Mod Name     Version     
1.    AjaxChat Integration    3.0    [ List Files ] [ Delete ]

Can you help me?
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 31, 2009, 12:47:55 PM
Quote from: Chit-Chat ChatterBox Boss on May 31, 2009, 04:49:14 AM
What points the chat system to the smileys? Because I copied the site files into a /public_html/testsite and now when I enter the test site the smileys are the tags not the images. So I need to fix that!
Any idea?
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 31, 2009, 12:49:04 PM
Moving the shoutbox is pretty easy. ;)

I wrapped the code that the mod places in the index.template.php in a function like this:

function shoutbox()
{
global $modSettings, $context, $options, $boardurl, $settings, $txt;

if (!empty($modSettings['enableShoutBox'])){
if (allowedTo('shout_access')){
// We'll have to use the cookie to remember the shoutBox header...
if ($context['user']['is_guest'])
$options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);

echo '
<script language="JavaScript" type="text/javascript">
var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

function ajax_shoutBox_collapse(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>';

if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<div class="tborder">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>Shoutbox<span style="font-size:.65em;">
  <a href="javascript:window.open(\''.$boardurl.'/chat/index.php\',\'Shoutbox\',\'width=880,height=600\');void(0);">View in Popup</a>
</span>
</div>
<div id="ShoutBox" class="windowbg"', empty($options['sb_collapsed']) ? 'style="padding:2px 2px 2px 2px;"' : ' style="display: none;"', '>
', getShoutBoxContent() ,'
</div>
</div>';
}
}
}
}


and moved the entire function to the bottom of my index.template.php (to make it easier to find). Then, you just call the function using shoutbox(); where you want it to show. Make sure it is OUTSIDE of any echo' or ';. The area I put mine was where it normal is displayed but my code right there looks like this:

echo '
</div>';

//shoutBox
      shoutbox();

echo'
</div>';

// Show the menu here, according to the menu sub template.
template_menu();


where shoutbox(); replaced the original code (now located at the bottom of the file). The nice thing about doing it this way is that you don't have to mess with a lot of code. You simply move the shoutbox(); to where you want it displaying. For putting it at the bottom of the site page, you may try something like this:

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

echo '<br />';
        shoutbox();

        echo '<br />
<table width="100%" cellspacing="0px" cellpadding="0px">
<tr>
  <td class="catbg" style="height:32px;padding:5px 0;">';


The first echo '<br />'; adds a space between the bottom of the forum and the top of the shoutbox. The shoutbox(); calls the shoutbox code. Notice that it is OUTSIDE any echo. The second echo '<br />'; begins the rest of the existing code (at least in my theme).

NOTE: Some locations may require putting the shoutbox() function and the call to it into the BoardIndex.template.php. This is typically required when wanting to put the shoutbox in or beneath the news area.

Enjoy.
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 31, 2009, 01:10:22 PM
I just moved the shoutbox on my test site to the bottom using the following code:

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

shoutbox();

echo '
</div>';

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!


for the placement. Use the instruction above on setting up the shoutbox in a function.

You can see a live demo of the new location here (http://www.empireofthesun.net/testsite/index.php).
Title: Re: AjaxChat Integration
Post by: MCK on May 31, 2009, 01:21:24 PM
Thanks so much! Will try this tomorrow after some rest! 1:20AM here and my production site is now live on RC1-1 with chat installed. I think I should quit while I'm still ahead and go to sleep!!!
Title: Re: AjaxChat Integration
Post by: EduardoP737 on May 31, 2009, 01:25:06 PM
Quote from: EduardoF1 on May 31, 2009, 12:46:34 PM
Hi, I have upload the MOD File to server, but I dont see the "Install" or "uninstall" button

Mod Name     Version     
1.    AjaxChat Integration    3.0    [ List Files ] [ Delete ]

Can you help me?

Nobody have the same problem?
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 31, 2009, 01:35:54 PM
Typically, if you do not have [ Apply Mod ] [ List Files ] [ Delete ], then that means the mod was already installed on a previous version of your forum. Just because a mod isn't showing, doesn't mean it isn't working. ;)

Using FTP, check to see if there is a chat folder and shoutbox folder in your forum's root folder. Look for something like /forum/chat/ or smf/chat/. You can also check the database for tables such as ajax_chat_messages or ajax_shoutbox_online.
Title: Re: AjaxChat Integration
Post by: MCK on May 31, 2009, 01:42:33 PM
Last question from me for now. If I click the X to the right of a chat line it disappears but right away the following appears :

(02:40:52) ChatBot: Error: Connection status: 0

What do I need to do to get rid of that message? Thanks once again!
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 31, 2009, 01:50:37 PM
I just ignore it...lol

You can use this workaround to prevent it from being displayed. It doesn't fix anything, it just keeps the Error: Connection status: 0 from displaying.

Open chat/js/chat.js and find:

Code (chat.js) Select
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);

Replace it with this:

Code (chat.js) Select
    if (this.getHttpRequest(identifier).status != 0) {
                   this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
                }


I have not tried his yet myself, but stumbled across it the other day in the support section for the mod at SourceForge.
Title: Re: AjaxChat Integration
Post by: EduardoP737 on May 31, 2009, 01:52:02 PM
Quote from: SunKing on May 31, 2009, 01:35:54 PM
Typically, if you do not have [ Apply Mod ] [ List Files ] [ Delete ], then that means the mod was already installed on a previous version of your forum. Just because a mod isn't showing, doesn't mean it isn't working. ;)

Using FTP, check to see if there is a chat folder and shoutbox folder in your forum's root folder. Look for something like /forum/chat/ or smf/chat/. You can also check the database for tables such as ajax_chat_messages or ajax_shoutbox_online.

I dont think so, I have installed in a New Forum. All new, new server, new root folder, Version 1.1.9, not update.
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 31, 2009, 01:55:30 PM
New database? If you are using the old database, then it will still "think" that it is installed.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 31, 2009, 03:11:47 PM
Quote from: Chit-Chat ChatterBox Boss on May 31, 2009, 04:49:14 AM
What points the chat system to the smileys? Because I copied the site files into a /public_html/testsite and now when I enter the test site the smileys are the tags not the images. So I need to fix that!
I ran repair_settings.php but that didn't work
Title: Re: AjaxChat Integration
Post by: carajo on May 31, 2009, 04:13:14 PM
Quote from: victoryrock on May 29, 2009, 03:34:19 PM
@ mrtc

I enabled the Shoutbox and all of a sudden I got a funny character at the top. 

See TOP LEFT in Attached Image.

What file would that be in so that I can remove it?

http://www.simplemachines.org/community/index.php?topic=257973.msg2084419#msg2084419

I have the same problem ;)  any fix for this?
Title: Re: AjaxChat Integration
Post by: mikungfu on May 31, 2009, 09:03:06 PM
Quote from: SunKing on May 31, 2009, 01:35:54 PM
Typically, if you do not have [ Apply Mod ] [ List Files ] [ Delete ], then that means the mod was already installed on a previous version of your forum. Just because a mod isn't showing, doesn't mean it isn't working. ;)

Using FTP, check to see if there is a chat folder and shoutbox folder in your forum's root folder. Look for something like /forum/chat/ or smf/chat/. You can also check the database for tables such as ajax_chat_messages or ajax_shoutbox_online.

Hey Sunking,

What Eduardo is saying is true and I don't think he means that he had previously had this mod instaled on a previous smf installation.

I for one, have the same problem: I never installed this mod in my life and I get the same result in my packages panel, after uploading this mod: No [apply mod] option!

What I have in common with Eduardo is that I also have 1.1.9 installed. In fact I don't see in this mod's page, that it has been tested on 1.1.9. Only 1.1.8 and 2.0 RC1. Version 1.1.9 is the latest release so, that may be the thing.

Could you please check what's happening?
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on May 31, 2009, 09:10:29 PM
You need to extract the zip and update the package-info where it says install for = and unistall for =
to 1.1.9 or 2.0 RC1-1. And repack the files after editing back into a zip and upload to the package manager. Look a few pages back there is a link to this made by mrtrc266
Title: Re: AjaxChat Integration
Post by: mikungfu on May 31, 2009, 09:29:08 PM
Quote from: Chit-Chat ChatterBox Boss on May 31, 2009, 09:10:29 PM
You need to extract the zip and update the package-info where it says install for = and unistall for =
to 1.1.9 or 2.0 RC1-1. And repack the files after editing back into a zip and upload to the package manager. Look a few pages back there is a link to this made by mrtrc266

Thanks! :) I hope Eduardo reads this too! ;)
Title: Re: AjaxChat Integration
Post by: mikungfu on May 31, 2009, 10:38:25 PM
Second thoughts, I've tried it and now get a different problem: I click on [apply mod] which now shows, but nothing happens!.. It returns me to the same page... It simply recycles the page!

I've even run file_check.php and corrected the settings.english.php which wasn't ending on ?>,

But I keep getting this problem while trying to apply this mod!
Title: Re: AjaxChat Integration
Post by: Krandall on May 31, 2009, 11:33:55 PM
Quote from: SunKing on May 27, 2009, 11:49:36 PM
It can be implemented just as you have it as long as you envelope the main ajaxchat function inside that code.

Something like:

global $board;

if(isset($board) && $board==21 || $board==22 || $board==23 || $board==24 || $board==32 || $board==33 || $board==55) {

whatever_the_main_ajax_finction_is();

}


The ajaxchat function resides inside the if (isset($board)) { ... } part. Hope that moves you in the right direction anyway. ;)

I'm a noob... I tried it. but I can't figure it out.
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 31, 2009, 11:43:26 PM
@Krandall

You could try setting up the shoutbox as a function as I posted a few posts up, then wrap the shoutbox(); inside the if(isset($board) && $board==21 || $board==22 || $board==23 || $board==24 || $board==32 || $board==33 || $board==55) {....}

Would look something like:

if(isset($board) && $board==21 || $board==22 || $board==23 || $board==24 || $board==32 || $board==33 || $board==55) {
shoutbox();
}

Title: Re: AjaxChat Integration
Post by: victoryrock on May 31, 2009, 11:48:28 PM
mrtc,

After all that you have done to install it on my Forum, I need to upgrade to 1.1.9.
Do you think it will mess the things that you have done to it?

victory
Quote from: mrtrc266 on May 27, 2009, 05:16:47 PM

You are all set Victory.....ENJOY!  ;)
Title: Re: AjaxChat Integration
Post by: [unplugged] on May 31, 2009, 11:50:37 PM
@victoryrock

If the upgrade has no parse errors, then it should be fine. I have 119 mods on my site including this chat and did the 2.0 version of the upgrade without a single parse error.  ;D
Title: Re: AjaxChat Integration
Post by: mikungfu on June 01, 2009, 01:05:16 PM
Now, let me see if we can get this right: As far as I understand, one needs to have Ajax Chat installed, before applying this mode. I hadn't understood that at first, and I had never installed Ajax Chat before. Maybe it's because of that that it wasn't working... ::)

But now that I tried to install the Ajax Chat, I get another error. When I point the browser to http://www.mydomain.com/forum/chat/install.php, I get the following:

"Query: CREATE TABLE ajax_chat_online ( userID INT(11) NOT NULL, userName VARCHAR(64) NOT NULL, userRole INT(1) NOT NULL, channel INT(11) NOT NULL, dateTime DATETIME NOT NULL, ip VARBINARY(16) NOT NULL ) DEFAULT CHARSET=utf8 COLLATE=utf8_bin; Error-Report: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8 Error-Code: 1064"

Also, when I point to http://www.mydomain.com/forum/chat/index.php I get:

"Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM thanatos_smf.ajax_chat_online ORDER BY userName; Error-Report: Table 'thanatos_smf.ajax_chat_online' doesn't exist Error-Code: 1146"

I know that I should probably better look for support for this in the Ajax website, but the truth is that I'm only concerned with this in the scope of installing this mod.

Therefore I seriously count on some help here regarding this issue.

Thanks in advance!

Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 01, 2009, 03:54:47 PM
No you dont need the chat before getting this mod. This mod installs the chat and shoutbox.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 01, 2009, 04:22:50 PM
@ mikungfu  this is correct
Quote from: Chit-Chat ChatterBox Boss on June 01, 2009, 03:54:47 PM
No you dont need the chat before getting this mod. This mod installs the chat and shoutbox.

You simply download the .zip file fromt the link below. Upload it via your Package Manager, click install be sure all files pass the test, click apply mod.
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610 (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610)

Thank you SunKing and ChatterBox for you help here.

ChatterBox please forgive but what is the prob you're having with you're smilies?
Title: Re: AjaxChat Integration
Post by: mikungfu on June 01, 2009, 05:16:05 PM
Quote from: Chit-Chat ChatterBox Boss on June 01, 2009, 03:54:47 PM
No you dont need the chat before getting this mod. This mod installs the chat and shoutbox.

Then it's even worse than I thought because somehow, I have tried a dozen times to click on [apply mod] and absolutely nothing happens, I mean, the pages refreshes as if something is going to happen but it brings me back to the same page, with the link [apply mod] still available.

Shall I try the manual install, parsing the files and seeing how it goes?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 01, 2009, 05:41:41 PM
@ mikungfu

You could try that but first I would go make sure that you DO NOT have the /chat folder in your forums root directory. Also go drop the AJAX Chat table from your DB.

Title: Re: AjaxChat Integration
Post by: mikungfu on June 01, 2009, 06:16:55 PM
Quote from: mrtrc266 on June 01, 2009, 05:41:41 PM
@ mikungfu

You could try that but first I would go make sure that you DO NOT have the /chat folder in your forums root directory. Also go drop the AJAX Chat table from your DB.

Ooops, what do you mean?.. NOT having the chat folder in the root directory??.. But I though that that was what I was supposed to do... In the Parsing instructions for the directories it says "chat will be copied to $boarddir "

Where should I have it then?

Also, in the parsing instructions it says "PHP script to execute: Tables_1.1.X.php". I don't understand this instruction... How do I execute it?

I'm sure I must be missing a few things here...

Last but not least: Forgive my ignorance, but how do I look for and drop the table in my DB. Did I create a DB table in my installation attempts or something?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 01, 2009, 06:20:20 PM
@ mikungfu

Sorry was referring to your prevoius post where you had ran the install.php and uploaded the /chat folder. If you were going to do it manually I meant for you to remove the chat folder and drop the tables first before you proceeded, then install manually.

Sending PM
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 01, 2009, 09:03:54 PM
Quote from: mrtrc266 on June 01, 2009, 04:22:50 PM

Thank you SunKing and ChatterBox for you help here.

ChatterBox please forgive but what is the prob you're having with you're smilies?
No Problem. I am always one to support a great mod!

The problem I am having I am noticing is not just with the chat but SP as well. It is with a few things. I made a test site (a second database and a testsite folder inside off public_html so it runs from the same host) and when I copied over the files and made a exact replica database and got it all working I noticed the chat smileys and like the dots and such in the SP are message up. It is using the text code for them but not showing the images. If you want me to make you a admin test account on my test site then PM me so you can see what I mean and I will make you an account on the test site.

Title: Re: AjaxChat Integration
Post by: mikungfu on June 01, 2009, 10:36:32 PM
Quote from: mrtrc266 on June 01, 2009, 06:20:20 PM
@ mikungfu

Sorry was referring to your prevoius post where you had ran the install.php and uploaded the /chat folder. If you were going to do it manually I meant for you to remove the chat folder and drop the tables first before you proceeded, then install manually.

Sending PM

I'd like to take this moment to express my most intense and sincere grattitude to mrtrc266  for his untiring support!! :D :D :D

This wonderful and dedicated smf crusader never gave up his efforts untill he found the problem solution. As I suspected it took quite some time, but thanks to his generous help, it got sorted out!

The main problem apparently was that my PHP at my server was not set to UTF-8 Characters. Solution: At Tables_1.1.X.php, emoving the final lines from each entry that ended with:

"DEFAULT CHARSET=utf8 COLLATE=utf8_bin
", __FILE__, __LINE__);

...did the trick.

I would also like to thank .HuNTeR. for creating this wonderful Mod and also Sunking and Chit-Chat ChatterBox Boss for their intensive support on this issue.

Finally I would like to thank the smf community for all the work and wonderful support provided. :)

Edited: I was crediting authorship of this Mod to Sunking instead of .HuNTeR.. I've corrected it above by editing the post.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 01, 2009, 10:49:38 PM
No Problem! We all try to do our best.

P.S.
Sunking what mod is he talking about?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 01, 2009, 11:31:07 PM
Thanks for the kind words mikungfu.

Damn...That was a tough one LOL. The problem seemed to be PHP version 4.4.4 and not being  set to UTF-8 like had to remove DEFAULT CHARSET=utf8 COLLATE=utf8_bin from the DB query.

Glad it's up and runnin for ya . Now that it's over I can tell you that this was the first time I manually installed DB Tables LMAO! And your site is still running ....PHEW!!!

Quote from: Chit-Chat ChatterBox Boss on June 01, 2009, 10:49:38 PM
Sunking what mod is he talking about?
I think he thinks SK made this Mod  :D  I know he's makin some Mods for the Mod though ;)

Ok, Chatterbox here I come
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 02, 2009, 12:13:32 AM
If you register on my site there is a chat room. I am in the chat room.
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 02, 2009, 12:20:26 AM
Quote from: mikungfu on June 01, 2009, 10:36:32 PM
I would also like to thank Sunking for creating this wonderful Mod and Chit-Chat ChatterBox Boss for his additional support on this issue.

I only wish I could take credit for such a great mod. .HuNTeR. deserves all of that thanks.

All I have done are a few small tweaks to make the mod even better. I hope you enjoy the chat mod as much as I do. ;)
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 02, 2009, 01:30:22 AM
Quote from: SunKing on May 31, 2009, 01:50:37 PM
I just ignore it...lol

You can use this workaround to prevent it from being displayed. It doesn't fix anything, it just keeps the Error: Connection status: 0 from displaying.

Open chat/js/chat.js and find:

Code (chat.js) Select
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);

Replace it with this:

Code (chat.js) Select
    if (this.getHttpRequest(identifier).status != 0) {
                   this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
                }


I have not tried his yet myself, but stumbled across it the other day in the support section for the mod at SourceForge.

It works! just tested it. Nice add!
Title: Re: AjaxChat Integration
Post by: wenfeng on June 02, 2009, 08:51:32 AM
im unsure if anyone posted this before but i will just check and see currently it doesnt show alot of previous msgs in the shoutbox and the chat.
is there anyway i can increase this number say i want to keep conversation for the pass like 5 days or something like that
Title: Re: AjaxChat Integration
Post by: psynx on June 02, 2009, 09:31:20 AM
can u guys please make it compatible with smf 1.1.9 pls?
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 02, 2009, 12:41:51 PM
Quote from: psynx on June 02, 2009, 09:31:20 AM
can u guys please make it compatible with smf 1.1.9 pls?

http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 02, 2009, 12:50:53 PM
Quote from: wenfeng on June 02, 2009, 08:51:32 AM
im unsure if anyone posted this before but i will just check and see currently it doesnt show alot of previous msgs in the shoutbox and the chat.
is there anyway i can increase this number say i want to keep conversation for the pass like 5 days or something like that

Open yourforum/chat/lib/config.php

Find and change yo whatever you like....24=hrs
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;
Title: Re: AjaxChat Integration
Post by: dzinerfusion on June 02, 2009, 04:56:02 PM
O I think I know why my chat wont open up! When I press vaildate I get these errors speciafically about the code I put into the index.template!!!

   1.   Error  Line 159, Column 36: document type does not allow element "script" here; assuming missing "li" start-tag

      <script type="text/javascript">

      ✉
   2. Error Line 172, Column 30: end tag for "li" omitted, but OMITTAG NO was specified

                               </ul>

      ✉

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
   3. Info Line 159, Column 5: start tag was here

      <script type="text/javascript">



Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 02, 2009, 05:30:54 PM
@ bluesinjid post up your index.template again please.
Title: Re: AjaxChat Integration
Post by: mikungfu on June 02, 2009, 06:13:13 PM
Quote from: mrtrc266 on June 01, 2009, 11:31:07 PM
I think he thinks SK made this Mod  :D  I know he's makin some Mods for the Mod though ;)

Gasp... :-[ Sorry about that! It was almost 6 am and I was woken up for some 24 hours... I have already corrected my mistake by editing the post.

.HuNTeR. is indeed the one to credit for this Mod. Congratulations once again .HuNTeR.! ;D
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 02, 2009, 06:18:21 PM
Quote from: Chit-Chat ChatterBox Boss on June 02, 2009, 01:30:22 AM
Quote from: SunKing on May 31, 2009, 01:50:37 PM
I just ignore it...lol

You can use this workaround to prevent it from being displayed. It doesn't fix anything, it just keeps the Error: Connection status: 0 from displaying.

Open chat/js/chat.js and find:

Code (chat.js) Select
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);

Replace it with this:

Code (chat.js) Select
    if (this.getHttpRequest(identifier).status != 0) {
                   this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
                }


I have not tried his yet myself, but stumbled across it the other day in the support section for the mod at SourceForge.

It works! just tested it. Nice add!

You are quite welcome! I have just added it to my own site. ;)
Title: Remove Chatbot
Post by: victoryrock on June 02, 2009, 07:37:22 PM
How do you remove all the Chatbot items?...if there is a way

victoryrock
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 02, 2009, 07:41:14 PM
What do you mean? You want to entirly remove the chatbot?
Title: Re: AjaxChat Integration
Post by: victoryrock on June 02, 2009, 08:09:36 PM
Maybe that sounds a bit too much then?

Well, is there a way to moderate what it says..."XXX has entered, XXX has been timed out...", so that not EVERYTHING is noted?
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 02, 2009, 08:12:19 PM
Oh I wasn't say it was too much. I ws confirming what you wanted to do.

You want to have it display to others who entered (in the chat) and who left & timed out (in the chat ). Correct?
Title: Re: AjaxChat Integration
Post by: victoryrock on June 02, 2009, 08:15:12 PM
Well, I just wanted to have the control of what it says that's all.

and Yes, I also wanted to know if I can shut it off.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 02, 2009, 08:25:03 PM
Sure I just have to remember which file it is in  :P If SK or mrt respond before I get done finding it then sweet. But when it is found all you do is change the text line in the string or if you want to shut it off you put /* */ around the strings(lines) that are for that feature(or just fully delete it but the /* */ are better incase you want to reverse the process later on).
Title: Re: AjaxChat Integration
Post by: victoryrock on June 02, 2009, 08:28:23 PM
Thanks Chit Chat.

I'll keep checking in to see if you or anyone else finds the file.

Thanks for all your help

v
Title: Re: AjaxChat Integration
Post by: dzinerfusion on June 02, 2009, 08:59:03 PM
Alright heres a the most current one.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 02, 2009, 09:06:24 PM
@mrtrc266

A few questions:

Let me know what we can do about these things. I think doing these edits will make the chat room (I know at least my chat) look a little more professional.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 02, 2009, 09:32:06 PM
Quote from: victoryrock on June 02, 2009, 08:15:12 PM
Well, I just wanted to have the control of what it says that's all.

and Yes, I also wanted to know if I can shut it off.

Not sure if you can control what it say but you should be able to turn it off by the following....

Find /chat/lib/config.php
$config['showChannelMessages'] = true;
Replace with
$config['showChannelMessages'] = false;

Find /chat/js/config.js
showChannelMessages: true,
Replace with
showChannelMessages: false,

Haven't tested but it should work
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 02, 2009, 09:37:13 PM
@ Chatterbox

Sorry this isn't going to be very helpful LOL

1. No I haven't figured it out yet
2. Not sure, would have to play with it...wouldn't even know where to start though LOL
3. You should be able to manipulate the placement of your banner in /yourforum/chat/lib/template/loggedIn.html
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 02, 2009, 09:47:57 PM
Quote from: mrtrc266 on June 02, 2009, 09:37:13 PM
@ Chatterbox

Sorry this isn't going to be very helpful LOL

1. No I haven't figured it out yet
2. Not sure, would have to play with it...wouldn't even know where to start though LOL
3. You should be able to manipulate the placement of your banner in /yourforum/chat/lib/template/loggedIn.html

1. Doh
2. I know how to do it for a url. But I didn't even remember what file the channels are in to play with it.
3. I tried and I can move it up and down except I need to find where those lines "'Logout', 'Channel', 'Style', and 'Language' line" and "copyright" are coded in. I think for the "'Logout', 'Channel', 'Style', and 'Language' line" I have to add top margin. Where are these lines coded in? (file)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 02, 2009, 10:13:42 PM
For your banner try this

Upload your banner (chitchatbanner1.jpg) to /yourforum/chat/img/

Open and find /yourforum/chat/lib/template/loggedIn.html
</style>
[STYLE_SHEETS/]

Replace with and of course change the URL to the pic
</style>
<img src="http://yourforum/chat/img/chitchatbanner1.jpg"></p>
[STYLE_SHEETS/]


This should put your banner on the absolute top of your chatroom
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 02, 2009, 10:25:20 PM
Nope the code gives template error with the </P> so i tried making it
<img src="http://www.chitchatchatterbox.com/chat/img/chitchatbanner1.jpg"/> an no pic shows
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 02, 2009, 10:36:42 PM
I just tried it on my test site and it worked fine. Post yourforum/chat/lib/template/loggedIn.html
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 02, 2009, 10:40:39 PM
Here it is.

Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 03, 2009, 01:12:09 AM
Don't know what the prob is but it works in IE but not FF. Im sure it's an easy fix but will have to play around a bit.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 03, 2009, 03:47:54 AM
Sounds great to me. Tomorrow we can play around with it and see what we can get!
Title: Re: AjaxChat Integration
Post by: Redeye on June 03, 2009, 04:00:53 AM
Hi,
Installed the mod without any problems.

When I try to open the chatroom from the menu it kicks me back to the index page of the main site. This happens with pop-up and non-pop-up settings.

Path to chat is MySite.com/forum/chat/index/php
Takes me to MySite/index.php

SMF 2.0.RC1

Tia
Title: Re: AjaxChat Integration
Post by: mikungfu on June 03, 2009, 08:41:03 AM
Hi,

I have some more questions. :)

I have been configuring my chat and shoutbox layouts.

A) For the chat I created my own css, editing subblack2.css and most of it went fine... But I'm having a hard time trying to figure out how to change the big bold title "Ajax Chat". I mean, I don't want to remove the copyright or anything like that... I want to keep the copyright lines in small font, but I want to change the Chat title in the upper left corner. How do I do that?

B) Now, with the shoutbox, I've been having some problems with shoutBox.css: The more I try, I don't succeed in creating a border for the table of the shoutbox. Is it something I need to change outside the  shoutBox.css??

In shoutBox.css, I have tried (in the borders section) to input:

#ajaxChatChatList {
   border-color:#5d0600;
   border-width:1px;
}

Or...

#ajaxChatContent {
   border-color:#5d0600;
   border-width:1px;
}

Or even...

#ajaxChatContent #ajaxChatChatList {
   border-color:#5d0600;
   border-width:1px;
}

And nothing seems to work...

Can anyone help me with these 2 issues?

Thanks!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 03, 2009, 11:01:04 AM
@ Redeye, just went to your site and it seems that the chat is uninstalled, goes to Page Not Found.

@ mikungfu

To change the AJAX Chat
Open yourforum/chat/lib/template/loggedIn.html AND loggedOut.html
Find and change to whatever you like
<h1>[LANG]title[/LANG]</h1>

About the borders not sure off the top of my head. Will have to look when I get home, my .css files are heavily modified.
Title: Re: AjaxChat Integration
Post by: mikungfu on June 03, 2009, 11:24:21 AM
Quote from: mrtrc266 on June 03, 2009, 11:01:04 AM
About the borders not sure off the top of my head. Will have to look when I get home, my .css files are heavily modified.

Thanks for the + help with the first issue. About the second issue, I found the answer... The file where I was doing it was correct: shoutBox.css

What I was missing was the line "border-style:solid". Without defining the Border Style, the browser doesn't understand what I'm saying, so no border was showing up.

btw: Doing it in the table properties at shoutBox.html, also does the trick.
Title: Re: AjaxChat Integration
Post by: Redeye on June 03, 2009, 11:28:37 AM
Quote from: mrtrc266 on June 03, 2009, 11:01:04 AM
@ Redeye, just went to your site and it seems that the chat is uninstalled, goes to Page Not Found.


Not sure how it can be uninstalled? It's showing as installed in the packages page.
Uploaded the mod and everything went smoothly with no errors.
What could be missing?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 03, 2009, 11:38:27 AM
Quote from: Redeye on June 03, 2009, 11:28:37 AM
Quote from: mrtrc266 on June 03, 2009, 11:01:04 AM
@ Redeye, just went to your site and it seems that the chat is uninstalled, goes to Page Not Found.


Not sure how it can be uninstalled? It's showing as installed in the packages page.
Uploaded the mod and everything went smoothly with no errors.
What could be missing?

Oh, maybe I was going to the wrong place http://www.rotherhamadvancedmotorcyclists.com/forum/ (http://www.rotherhamadvancedmotorcyclists.com/forum/) and clicked on the chat button.

Im off to work, but will take a look when I get home. You can PM the URL if it's not the one above
Title: Re: AjaxChat Integration
Post by: victoryrock on June 03, 2009, 12:12:54 PM
How do I delete all the chat history in one shot?

Haveing to "X" each line is quite time consuming.

v
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 03, 2009, 03:22:00 PM
GO Here:
http://www.simplemachines.org/community/index.php?topic=257973.msg2090333#msg2090333

With that you can edit how many messages display. But to actually delete messages that have already been displayed you manually do it. You can set a limit to how many messages can display.

~Edit 1
I was looking into this for you and I found this. If you want to make it so if someone enters the chat and you don't want any messages showing that were sent prior to them entering change this:

chat/lib/config.php

Find
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;

Replace With
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = false;


~Edit 2
I just tried the above change and it seems even for the members logged in ... it doesn't show the messages for them either. Maybe mrtrc266 can look into this.
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 03, 2009, 04:58:25 PM
For clearing the entire ajax_chat_messages table in the database, you could do something like:

    // Clear chat
global $smcFunc;

    // Let's empty the message table
$request = $smcFunc['db_query']('', '
DELETE FROM {db_prefix}ajax_chat_messages',
array(
)
);

    return $request;
   
      $smcFunc['db_free_result']($request);


Maybe put this in its own file then place a link to that file somewhere. Just a thought. ;)
Title: Re: AjaxChat Integration
Post by: Hardcase on June 03, 2009, 07:48:49 PM
Just a quickie i hope.

Just moved hosts and previously had no problems at all with my chatbox, but now when i enter anything with a hyphen it gives me this:

example: there's
output: there/'s

i have no idea why so any enlightenment would be appreciated.
Title: Re: AjaxChat Integration
Post by: mikungfu on June 03, 2009, 11:43:59 PM
Quote from: Hardcase on June 03, 2009, 07:48:49 PM
Just moved hosts and previously had no problems at all with my chatbox, but now when i enter anything with a hyphen it gives me this:

example: there's
output: there/'s


I know this is not the most important issue, but I believe you mean apostrophes ('), not hyphens (-), right?... Maybe it's not important, but just to avoid misconclusions or misunderstandings. ;)
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 04, 2009, 02:29:16 AM
mrtrc266 I have this code here:


<?php

// Chat bot messages 

if(stristr($text'ChatBot Help Me'))
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHow may I help you? Say any of the following lines.
1) ChatBot Commands\n"
);
// KEYWORD TRIGGER END
}

if(
stristr($text'ChatBot Commands'))
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHere are all the commands you can use!:
Command: /kick [name]
Result: This will kick the member out of the chat room.
Command: /kick [name] [number]
Result: This will kick the member out of the chat room for the amount of time(in minutes) that you put for the number.
Command: /whois [name]
Result: This will display the member's IP Address.
Command: /me [your action]
Result: This will display your name in a action form. Example: "
/me fell off his chair" = Bill fell off his chair\n"

);
// KEYWORD TRIGGER END
}

?>



And I want to display only for the user roles (theres 4. 4 = bot, 3  = admin, 2 = mod, 1 = normal user). So this is what I tried to do but it doesn't seem to work.


<?php

// Chat bot messages 
if(stristr($text'ChatBot Help Me'))
{
if($this->getUserRole() == AJAX_CHAT_USER || $this->getUserRole() == AJAX_CHAT_MODERATOR || $this->getUserRole() != AJAX_CHAT_ADMIN)
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHow may I help you? Say any of the following lines.
1) ChatBot Commands\n"
);
// KEYWORD TRIGGER END
}
else
{
return false;
}
}

if(
stristr($text'ChatBot Commands'))
{
if($this->getUserRole() == AJAX_CHAT_MODERATOR || $this->getUserRole() != AJAX_CHAT_ADMIN)
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHere are all the commands you can use!:
Command: /kick [name]
Result: This will kick the member out of the chat room.
Command: /kick [name] [number]
Result: This will kick the member out of the chat room for the amount of time(in minutes) that you put for the number.
Command: /whois [name]
Result: This will display the member's IP Address.
Command: /me [your action]
Result: This will display your name in a action form. Example: "
/me fell off his chair" = Bill fell off his chair\n"
);
// KEYWORD TRIGGER END
}
else
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHere are all the commands you can use!:
Command: /me [your action]
Result: This will display your name in a action form. Example: "
/me fell off his chair" = Bill fell off his chair\n"
);
// KEYWORD TRIGGER END
}
}

?>



How can I set this to work correctly? (You can see what part is for mods and admins and then the other is for normal users). When I do this change nothing displays.
Title: Re: AjaxChat Integration
Post by: Joe N on June 04, 2009, 05:11:18 AM
Hi. I installed the ajax chat.

I have this error on the shoutbox. It says ChatBot: Error: Connection status: 500

How come? FORUM URL: www.3smf.com/thechill

See attachment for more details:
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 04, 2009, 10:41:01 AM
Quote from: Joe N on June 04, 2009, 05:11:18 AM
Hi. I installed the ajax chat.

I have this error on the shoutbox. It says ChatBot: Error: Connection status: 500

How come? FORUM URL: www.3smf.com/thechill (http://www.3smf.com/thechill)

See attachment for more details:

Here you go your fix as well as some other useful info is in the link below.

~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: Joe N on June 04, 2009, 01:10:05 PM
Quote from: mrtrc266 on June 04, 2009, 10:41:01 AM
Quote from: Joe N on June 04, 2009, 05:11:18 AM
Hi. I installed the ajax chat.

I have this error on the shoutbox. It says ChatBot: Error: Connection status: 500

How come? FORUM URL: www.3smf.com/thechill (http://www.3smf.com/thechill)

See attachment for more details:

Here you go your fix as well as some other useful info is in the link below.

~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

I checked my index.php for my Shoutbox and chat.

Shoutbox:

<?php
/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 */

if (!$_GET['shoutbox']){
$host  $_SERVER['HTTP_HOST'];
$uri   rtrim(dirname(dirname($_SERVER['PHP_SELF'])), '/\\');
$extra 'chat/index.php';
header("Location: http://$host$uri/$extra");
}

// Show all errors:
error_reporting(E_ALL);

// Path to the chat directory:
define('AJAX_CHAT_PATH'dirname($_SERVER['SCRIPT_FILENAME']).'/');

// Include custom libraries and initialization code:
require(AJAX_CHAT_PATH.'lib/custom.php');

// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the chat:
$ajaxChat = new CustomAJAXChat();
?>


Chat:

<?php
/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 */

// Show all errors:
error_reporting(E_ALL);

// Path to the chat directory:
define('AJAX_CHAT_PATH'dirname($_SERVER['SCRIPT_FILENAME']).'/');

// Include custom libraries and initialization code:
require(AJAX_CHAT_PATH.'lib/custom.php');

// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the chat:
$ajaxChat = new CustomAJAXChat();
?>


What should it be?

Thanks
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 04, 2009, 01:18:53 PM
For your 500 error all you should have to do is set these file permissions (CHMOD) to 755

yourforum/chat/index.php

and

yourforum/shoutbox/index.php
Title: Re: AjaxChat Integration
Post by: Joe N on June 04, 2009, 01:45:33 PM
I tried it but said:

Change permissions (CHMOD)
The CHMOD command failed. Perhaps your host has disabled this function, or your forum runs on a Windows server.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 04, 2009, 02:09:30 PM
Quote from: Joe N on June 04, 2009, 01:45:33 PM
I tried it but said:

Change permissions (CHMOD)
The CHMOD command failed. Perhaps your host has disabled this function, or your forum runs on a Windows server.

I would definately contact your host about that. You should be able to CHMOD your files as needed.
Title: Re: AjaxChat Integration
Post by: Hardcase on June 04, 2009, 02:34:41 PM
Quote--------------------------------------------------------------------------------
Quote from: Hardcase on Yesterday at 07:48:49 PM
Just moved hosts and previously had no problems at all with my chatbox, but now when i enter anything with a hyphen it gives me this:

example: there's
output: there/'s



I know this is not the most important issue, but I believe you mean apostrophes ('), not hyphens (-), right?... Maybe it's not important, but just to avoid misconclusions or misunderstandings. 

You are right sir, but it does not answer the question, so can someone please help :D
Title: Re: AjaxChat Integration
Post by: philcross on June 04, 2009, 03:53:01 PM

Help required please...

I have 2.0 RC1-1 installed but emulated RC1 to install AjaxChat.

After installation, when I click the button I get a new page open with

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

blah blah blah


Can someone tell me where the problem lies please?

The install went OK so Im not sure where to start looking.

Thanks
Title: Re: AjaxChat Integration
Post by: mikungfu on June 04, 2009, 09:26:32 PM
Hi, one simple question:

What file should I edit in order to define the position of the shoutbox in the page layout. In the main page, it is presently above "News" and it is slightly shorter in length, comparing with the boards categories. I want to correct that, but I don't know which are the apropriate files.

Thanks! :)

Title: Re: AjaxChat Integration
Post by: [unplugged] on June 04, 2009, 09:43:29 PM
@mikungfu

All of the pertinent code should be located in the index.template.php
Title: Re: AjaxChat Integration
Post by: mikungfu on June 04, 2009, 11:21:45 PM
Quote from: SunKing on June 04, 2009, 09:43:29 PM
@mikungfu

All of the pertinent code should be located in the index.template.php

Thanks! It took me a while to figure out how to deal with the code (not much of a php expert: can't write but can read a bit, lol), but in the end I managed to do what I wanted.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 04, 2009, 11:50:04 PM
Quote from: Chit-Chat ChatterBox Boss on June 04, 2009, 02:29:16 AM
mrtrc266 I have this code here:


<?php

// Chat bot messages 

if(stristr($text'ChatBot Help Me'))
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHow may I help you? Say any of the following lines.
1) ChatBot Commands\n"
);
// KEYWORD TRIGGER END
}

if(
stristr($text'ChatBot Commands'))
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHere are all the commands you can use!:
Command: /kick [name]
Result: This will kick the member out of the chat room.
Command: /kick [name] [number]
Result: This will kick the member out of the chat room for the amount of time(in minutes) that you put for the number.
Command: /whois [name]
Result: This will display the member's IP Address.
Command: /me [your action]
Result: This will display your name in a action form. Example: "
/me fell off his chair" = Bill fell off his chair\n"

);
// KEYWORD TRIGGER END
}

?>



And I want to display only for the user roles (theres 4. 4 = bot, 3  = admin, 2 = mod, 1 = normal user). So this is what I tried to do but it doesn't seem to work.


<?php

// Chat bot messages 
if(stristr($text'ChatBot Help Me'))
{
if($this->getUserRole() == AJAX_CHAT_USER || $this->getUserRole() == AJAX_CHAT_MODERATOR || $this->getUserRole() != AJAX_CHAT_ADMIN)
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHow may I help you? Say any of the following lines.
1) ChatBot Commands\n"
);
// KEYWORD TRIGGER END
}
else
{
return false;
}
}

if(
stristr($text'ChatBot Commands'))
{
if($this->getUserRole() == AJAX_CHAT_MODERATOR || $this->getUserRole() != AJAX_CHAT_ADMIN)
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHere are all the commands you can use!:
Command: /kick [name]
Result: This will kick the member out of the chat room.
Command: /kick [name] [number]
Result: This will kick the member out of the chat room for the amount of time(in minutes) that you put for the number.
Command: /whois [name]
Result: This will display the member's IP Address.
Command: /me [your action]
Result: This will display your name in a action form. Example: "
/me fell off his chair" = Bill fell off his chair\n"
);
// KEYWORD TRIGGER END
}
else
{
// KEYWORDS TRIGGER START   
$this->insertChatBotMessage
(
$this->getPrivateMessageID(),
//This is what the chatbot says when the visitor enters help me anywhere in a sentence!
"\nHere are all the commands you can use!:
Command: /me [your action]
Result: This will display your name in a action form. Example: "
/me fell off his chair" = Bill fell off his chair\n"
);
// KEYWORD TRIGGER END
}
}

?>



How can I set this to work correctly? (You can see what part is for mods and admins and then the other is for normal users). When I do this change nothing displays.

Any idea on this. I keep trying but seem to fail. When I do the above edit it also seems to make the chat lag a little when I do the commands. Maybe thats because it is looking in the code but having a brain fart and not working. So maybe someone that knows how to get the commands working above for only the desired ranks would be GREAT!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 05, 2009, 01:17:40 AM
Quote from: philcross on June 04, 2009, 03:53:01 PM
Help required please...
I have 2.0 RC1-1 installed but emulated RC1 to install AjaxChat.
After installation, when I click the button I get a new page open with
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
blah blah blah

Can someone tell me where the problem lies please?
The install went OK so Im not sure where to start looking.
Thanks
For your Internal Server error all you should have to do is set these file permissions (CHMOD) to 755

yourforum/chat/index.php

and

yourforum/shoutbox/index.php
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 05, 2009, 01:24:05 AM
@ Hardcase not sure off the top of my head, out of 114 pages I have never seen that before, what's the url to your site? I will take a look when I get a few moments.

@ Chatterbox, is that the "make you chatbot smarter edit?" If so I have never messed with it, but I've been meaning to and will check it out on my next days off.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 05, 2009, 01:38:32 AM
Quote from: mrtrc266 on June 05, 2009, 01:24:05 AM
@ Chatterbox, is that the "make you chatbot smarter edit?" If so I have never messed with it, but I've been meaning to and will check it out on my next days off.
Sounds great. Yea all I am thinking it is (obviously) is I am not placing the strings correct, or I am missing something for it to look for the user roles. Hope this can be solved cause as you can see in the code I am editing I want it to show commands (based on your user role). In the near future after solving this problem I will add more things that the bot can do through this edit!

Thanks bro!
Title: Re: AjaxChat Integration
Post by: philcross on June 05, 2009, 01:44:11 AM
QuoteFor your Internal Server error all you should have to do is set these file permissions (CHMOD) to 755

yourforum/chat/index.php

and

yourforum/shoutbox/index.php

THANK YOU SO MUCH !!!

Please tell me that wasn't in the instructions - I didnt see it if it was.  :-[



Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 05, 2009, 01:56:26 AM
Quote from: philcross on June 05, 2009, 01:44:11 AM
QuoteFor your Internal Server error all you should have to do is set these file permissions (CHMOD) to 755

yourforum/chat/index.php

and

yourforum/shoutbox/index.php

THANK YOU SO MUCH !!!

Please tell me that wasn't in the instructions - I didnt see it if it was.  :-[

Nope, not in the instructions....only in my signature LOL  ;)
~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 05, 2009, 01:59:51 AM
Quote from: Chit-Chat ChatterBox Boss on June 05, 2009, 01:38:32 AM
Quote from: mrtrc266 on June 05, 2009, 01:24:05 AM
@ Chatterbox, is that the "make you chatbot smarter edit?" If so I have never messed with it, but I've been meaning to and will check it out on my next days off.
Sounds great. Yea all I am thinking it is (obviously) is I am not placing the strings correct, or I am missing something for it to look for the user roles. Hope this can be solved cause as you can see in the code I am editing I want it to show commands (based on your user role). In the near future after solving this problem I will add more things that the bot can do through this edit!

Thanks bro!

This should be a fun one LOL. I am not a coder...more of a tweaker ;)  SK might like to take this challenge, this could be a lot of fun. I've been meaning to play with this and mess with my members LOL. We could have our personal AI Bot:D
Title: Re: AjaxChat Integration
Post by: philcross on June 05, 2009, 02:02:32 AM
Me again

I got Chat working, but have noticed a problem (dont know if its my pc or viewable by everyone).

But, since Chat started working, the menu bar on the forum index page is "flickering"

See http://www.xxxxxxxxx.co.uk/xxxx/index.php (http://www.xxxxxxxx.co.uk/xxxxx/index.php)

Anyone else see it, or just me.

Any ideas ?

Thanks

OOPS user=xxxxxxxxx password=xxxxxxxxx
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 05, 2009, 02:05:53 AM
@ philcross I just went to your site in IE and FF and it looks fine in both browsers. I don't see any flickering at all.
Title: Re: AjaxChat Integration
Post by: philcross on June 05, 2009, 02:14:08 AM
Quote@ philcross I just went to your site in IE and FF and it looks fine in both browsers. I don't see any flickering at all.

Hi

I just tried with my testing account (name and p/word both "testing") and I get the same.

It only seemed to happen AFTER I had clicked on the Chat button.

The avatar flickers on and off and I get vertical line breakup across the menu bar.

Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 05, 2009, 02:16:45 AM
It is your computer or browser. What browser are you using ... FireFox, Internet Explore Version 8 ..... etc
Title: Re: AjaxChat Integration
Post by: philcross on June 05, 2009, 02:28:13 AM

Im using IE7.

Just tried with FF and it seems to be OK with that.

Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 05, 2009, 02:30:55 AM
upgrade to IE8 ... IE7 sucks! ... well IE period sucks but IE8 is better... you should update
Title: Re: AjaxChat Integration
Post by: DilSe on June 05, 2009, 07:30:30 AM
Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM
Here are some the most common questions and answers
to getting your Chat Room and Shoutbox going on your forum
Please be sure to check the following settings in the Admin Panel.

For SMF 1.1.X Admin/Configuration/Features and Options/

For SMF 2 RC1  Admin/Configuration/Modifications/Chat/

Enable the ShoutBox?   
Check for ShoutBox on any page or uncheck for only in index page:   
Integrate shout box and chat room?   
Chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section? 

Also be sure to CHECK PERMISSIONS!  ;) 

If you are using a custom theme you will need to edit the following files in your custom theme using a Package Parser (http://resourcez.biz/PackageParser/)

hello sir
This "packageParser " is not for smf1.1.9 plz any help
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 05, 2009, 09:03:23 AM
Quote from: Hanzalah on June 05, 2009, 07:30:30 AM
Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM
Here are some the most common questions and answers
to getting your Chat Room and Shoutbox going on your forum
Please be sure to check the following settings in the Admin Panel.

For SMF 1.1.X Admin/Configuration/Features and Options/

For SMF 2 RC1  Admin/Configuration/Modifications/Chat/

Enable the ShoutBox?   
Check for ShoutBox on any page or uncheck for only in index page:   
Integrate shout box and chat room?   
Chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section? 

Also be sure to CHECK PERMISSIONS!  ;) 

If you are using a custom theme you will need to edit the following files in your custom theme using a Package Parser (http://resourcez.biz/PackageParser/)

hello sir
This "packageParser " is not for smf1.1.9 plz any help

1.1.8 = same exact thing as 1.1.9 just the only difference is in the package-info.xml its not updated on 1 small line to say to install for 1.1.9 instead of 1.1.8 ... to solve that go here
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610 (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610)
Title: Re: AjaxChat Integration
Post by: Hardcase on June 05, 2009, 01:08:22 PM
mrtrc266 my url is : http://www.hmsresolution.org.uk/forum/index.php

if you need more access give me the heads up :)
Title: Re: AjaxChat Integration
Post by: philcross on June 05, 2009, 02:21:46 PM

OK next problem  ;D

When I click on Chat (pop-up mode) I get a "type error: object doesnt support this property or method" error box.

I can close it and carry on in chat, but would like to remove that initial warning.

Thanks
Title: Re: AjaxChat Integration
Post by: philcross on June 05, 2009, 02:43:36 PM
OMG - big scare story !!!

I decided to go into the php files and make some changes as suggested by the tip&tricks link.

Now I have

Notice: Undefined index: styleAvailable in /home/XXXX/public_html/XXXXXXX/chat/lib/class/AJAXChat.php on line 2900

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/XXXX/public_html/XXXXXXX/chat/lib/class/CustomAJAXChat.php on line 236

Notice: Undefined index: styleAvailable in /home/XXXX/public_html/XXXXXXX/chat/lib/class/AJAXChat.php on line 2900

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/XXXX/public_html/XXXXXXX/chat/lib/class/CustomAJAXChat.php on line 262

Notice: Undefined index: styleAvailable in /home/XXXX/public_html/XXXXXXX/chat/lib/class/AJAXChat.php on line 2900

Warning: Invalid argument supplied for foreach() in /home/XXXX/public_html/XXXXXXX/chat/lib/class/AJAXChatTemplate.php on line 198

HELP

i CHANGED THE WELCOME TO XXX FORUM MESSAGE

i CHANGED TO A SINGLE PUBLIC FORUM

I CHANGED TO A DEFAULT STYLE

Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 05, 2009, 02:50:51 PM
Quote from: philcross on June 05, 2009, 02:43:36 PM

OMG - big scare story !!!

I decided to go into the php files and make some changes as suggested by the tip&tricks link.

Now I have

Notice: Undefined index: styleAvailable in /home/XXXX/public_html/rv_forum/chat/lib/class/AJAXChat.php on line 2900

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/XXXX/public_html/rv_forum/chat/lib/class/CustomAJAXChat.php on line 236

Notice: Undefined index: styleAvailable in /home/XXXX/public_html/rv_forum/chat/lib/class/AJAXChat.php on line 2900

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/XXXX/public_html/rv_forum/chat/lib/class/CustomAJAXChat.php on line 262

Notice: Undefined index: styleAvailable in /home/XXXX/public_html/rv_forum/chat/lib/class/AJAXChat.php on line 2900

Warning: Invalid argument supplied for foreach() in /home/XXXX/public_html/rv_forum/chat/lib/class/AJAXChatTemplate.php on line 198

HELP

i CHANGED THE WELCOME TO XXX FORUM MESSAGE

i CHANGED TO A SINGLE PUBLIC FORUM

I CHANGED TO A DEFAULT STYLE

Attach those 3 files. AJAXChat.php, CustomAJAXChat.php, and AJAXChatTemplate.php
Title: Re: AjaxChat Integration
Post by: philcross on June 05, 2009, 03:07:04 PM

Sorry - I went back into the php files and double-checked some items.

For the board styles, I had deleted the whole text for board style and just left the default line - thats what caused the error.

Ive now changed the board options to include Core and the default as Core and it seems OK.

Welcome to...message works
Chat name works OK too.

HOWEVER, I do still get the object error message.

I would also like to get rid of all these options from right side panel if possible?

•List ignored users
•List available channels
•Describe action
•Roll dice
•Change username
•Enter private room
•List banned users
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 05, 2009, 09:57:07 PM
@ philcross

Your object error is your Browser not the chat, I take it you use IE 6 or 7? Here is some info on it.
https://www.adaptavist.com/pages/viewpage.action?pageId=27723664 (https://www.adaptavist.com/pages/viewpage.action?pageId=27723664)

Never tried removing any commands but here is a little info on that as well.
http://sourceforge.net/forum/message.php?msg_id=4771263 (http://sourceforge.net/forum/message.php?msg_id=4771263)
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 05, 2009, 10:01:29 PM
Quote from: mrtrc266 on June 05, 2009, 09:57:07 PM
@ philcross

Your object error is your Browser not the chat, I take it you use IE 6 or 7? Here is some info on it.
https://www.adaptavist.com/pages/viewpage.action?pageId=27723664 (https://www.adaptavist.com/pages/viewpage.action?pageId=27723664)

Quote
Quote from: philcross on June 05, 2009, 02:28:13 AM

Im using IE7.

Just tried with FF and it seems to be OK with that.

Quote from: Chit-Chat ChatterBox Boss on June 05, 2009, 02:30:55 AM
upgrade to IE8 ... IE7 sucks! ... well IE period sucks but IE8 is better... you should update

Definitely his problem!
Title: Re: AjaxChat Integration
Post by: philcross on June 06, 2009, 02:51:41 AM
Hi Guys

1) I upgraded to IE8 and still have the problem - it only pops up if I try to click on message line before the pop-up window has finished loading icons etc.

2) When I logout of chat it sends me back to the forum (as i changed to mod) BUT in IE8 it sends me to a static page ie there is no scroll bar to view the whole forum page.

3) Is there a way to delete the chat history when the last person leaves the chat room? At present, you can login 3 days later and read all the previous chat between other people.

4) I have changed MOD to just the Public room BUT there is also a room with members name [name] - when clicked it takes you to another room. How do I remove this to only have public.

5) Previously, when you click Chat you were auto-logged-in. Now you have to manually type name and password. Not sure if thats an IE8 issue?

Sorry for all questions.

Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 06, 2009, 04:51:10 AM
Quote from: philcross on June 06, 2009, 02:51:41 AM
Hi Guys


1) I upgraded to IE8 and still have the problem - it only pops up if I try to click on message line before the pop-up window has finished loading icons etc.
I dont know right now have to look into it


2) When I logout of chat it sends me back to the forum (as i changed to mod) BUT in IE8 it sends me to a static page ie there is no scroll bar to view the whole forum page.
I dont know right now have to look into it


3) Is there a way to delete the chat history when the last person leaves the chat room? At present, you can login 3 days later and read all the previous chat between other people.
Go to chat/lib/config.php and play with those settings in there. For this exact question maybe you can play with these settings:

// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;
// Defines an array of channelIDs (e.g. array(0, 1)) for which the previous setting is always true (will be ignored if set to null):
$config['requestMessagesPriorChannelEnterList'] = null;
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;



4) I have changed MOD to just the Public room BUT there is also a room with members name [name] - when clicked it takes you to another room. How do I remove this to only have public.
This is happening because you are allowing members to have private rooms. To have ONLY public room and thats it no private rooms or set your settings like this in chat/lib/config.php:

// Default channelName used together with the defaultChannelID if no channel with this ID exists:
$config['defaultChannelName'] = 'Public';
// ChannelID used when no channel is given:
$config['defaultChannelID'] = 0;
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(0);


// Enable/Disable private Channels:
$config['allowPrivateChannels'] = false;



5) Previously, when you click Chat you were auto-logged-in. Now you have to manually type name and password. Not sure if thats an IE8 issue?
A trick ... at least it works for me either click on chat .... and the login window pops up. Click the X and click chat again may have to do it two or three times then it brings you straight into the chat. Also if you go to the login page for the chat (where you put in name and pass) without putting in anything right away click login ... it should skip the process and login with your forum info. (at least these tricks work for me).

Sorry for all questions.
Title: Re: AjaxChat Integration
Post by: philcross on June 06, 2009, 08:45:27 AM
Quote1) I upgraded to IE8 and still have the problem - it only pops up if I try to click on message line before the pop-up window has finished loading icons etc.
I dont know right now have to look into it

Actually, it just happens when pop-up chat window opens NOT when i click in message area.


Quote2) When I logout of chat it sends me back to the forum (as i changed to mod) BUT in IE8 it sends me to a static page ie there is no scroll bar to view the whole forum page.
I dont know right now have to look into it

Looked again and its sending me to a pop-up page hence no scroll bar etc.

Quote3) Is there a way to delete the chat history when the last person leaves the chat room? At present, you can login 3 days later and read all the previous chat between other people.
Go to chat/lib/config.php and play with those settings in there. For this exact question maybe you can play with these settings:

Code: [Select]

Did the above and no previous posts are showing BUT I cannot make any posts either.

Quote5) Previously, when you click Chat you were auto-logged-in. Now you have to manually type name and password. Not sure if thats an IE8 issue?
A trick ... at least it works for me either click on chat .... and the login window pops up. Click the X and click chat again may have to do it two or three times then it brings you straight into the chat. Also if you go to the login page for the chat (where you put in name and pass) without putting in anything right away click login ... it should skip the process and login with your forum info. (at least these tricks work for me).

Dont ask me how, but I am now being auto-logged in OK

Title: Re: AjaxChat Integration
Post by: BinaryNinja on June 06, 2009, 11:40:45 AM
Hey,
I'm using Fresh Blue Theme by BrKn*.
I'm having trouble manually modifying it.
I can do some of the code but for example...
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}


      

Does not exist whatsover in index.template.php

There's nothing even relating to any of that in index.template.php.

Can you please help me modify this theme for this mod?
Would be appreciated!
Title: Re: AjaxChat Integration
Post by: purper on June 06, 2009, 03:13:35 PM
this might be a strange question, but what do I have to do to delete the chat?
The reason I ask is because I have the impression just deleting it from the forum is not good enough.. directories etc still exist on in the directory of the forum..?
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 06, 2009, 03:16:27 PM
Quote from: philcross on June 06, 2009, 08:45:27 AM
Quote1) I upgraded to IE8 and still have the problem - it only pops up if I try to click on message line before the pop-up window has finished loading icons etc.
I dont know right now have to look into it

Actually, it just happens when pop-up chat window opens NOT when i click in message area.


Quote2) When I logout of chat it sends me back to the forum (as i changed to mod) BUT in IE8 it sends me to a static page ie there is no scroll bar to view the whole forum page.
I dont know right now have to look into it

Looked again and its sending me to a pop-up page hence no scroll bar etc.

Quote3) Is there a way to delete the chat history when the last person leaves the chat room? At present, you can login 3 days later and read all the previous chat between other people.
Go to chat/lib/config.php and play with those settings in there. For this exact question maybe you can play with these settings:

Code: [Select]

Did the above and no previous posts are showing BUT I cannot make any posts either.

Quote5) Previously, when you click Chat you were auto-logged-in. Now you have to manually type name and password. Not sure if thats an IE8 issue?
A trick ... at least it works for me either click on chat .... and the login window pops up. Click the X and click chat again may have to do it two or three times then it brings you straight into the chat. Also if you go to the login page for the chat (where you put in name and pass) without putting in anything right away click login ... it should skip the process and login with your forum info. (at least these tricks work for me).

Dont ask me how, but I am now being auto-logged in OK

For 1 & 2 I still have to look into it (busy with my own site) for 3 you need to play with the settings. I just have mine set like it shows and it works fine (all the above are a copy paste from mine). For 5 if it happens again just do what I said .


Quote from: BinaryNinja on June 06, 2009, 11:40:45 AM
Hey,
I'm using Fresh Blue Theme by BrKn*.
I'm having trouble manually modifying it.
I can do some of the code but for example...
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}


      

Does not exist whatsover in index.template.php

There's nothing even relating to any of that in index.template.php.

Can you please help me modify this theme for this mod?
Would be appreciated!

Let mrtrc266 come back with an idea for this


Quote from: purper on June 06, 2009, 03:13:35 PM
this might be a strange question, but what do I have to do to delete the chat?
The reason I ask is because I have the impression just deleting it from the forum is not good enough.. directories etc still exist on in the directory of the forum..?

Use the uninstall in the package manager. If anything fails in the uninstall or you have it installed on a custom theme then you need to go to the mod and parse it and do a manual install of everything in the files.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 07, 2009, 02:12:59 AM
Quote from: BinaryNinja on June 06, 2009, 11:40:45 AM
Hey,
I'm using Fresh Blue Theme by BrKn*.
I'm having trouble manually modifying it.
I can do some of the code but for example...
// But, let's always show minutes - Time wasted here: 0 minutes.
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }


     

Does not exist whatsover in index.template.php

There's nothing even relating to any of that in index.template.php.

Can you please help me modify this theme for this mod?
Would be appreciated!

This edit will not be exaclty the same in all themes. It shows the number of users in chat in the user info section on the top right or left of your theme, something like this   

June 06, 2009, 09:48:06 PM
Show unread posts since last visit.
Show new replies to your posts.  Logged in: 1 hours and 7 minutes.
2 Users in chat
Attach you index.template file and I'll take a look.

Also what version of SMF do you have?
Title: Re: AjaxChat Integration
Post by: Hardcase on June 07, 2009, 07:01:56 AM
Hi mrtrc266, did you get chance to take a look at my chat problem?

this is where ' is producing the output /' the url you requested was given over the page but alot of traffic has come through since then so here is is again: http://www.hmsresolution.org.uk/forum/chat/
although whether you can work it out from there i dont know, if you need temp access give me a pm.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 07, 2009, 11:57:13 AM
Quote from: Hardcase on June 07, 2009, 07:01:56 AM
Hi mrtrc266, did you get chance to take a look at my chat problem?

this is where ' is producing the output /' the url you requested was given over the page but alot of traffic has come through since then so here is is again: http://www.hmsresolution.org.uk/forum/chat/ (http://www.hmsresolution.org.uk/forum/chat/)
although whether you can work it out from there i dont know, if you need temp access give me a pm.

On a whim here do you have your forum set to UTF-8? If so try adding the language strings to your Themes/default/language/Modifications.english-utf8.php

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Use shoutBox';
$txt['permissionhelp_shout_access'] = 'Give access to use the shoutBox';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration
Title: Re: AjaxChat Integration
Post by: DilSe on June 07, 2009, 04:15:53 PM
hello to all plz help sir

i want install but i get this erorr how do i can
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 07, 2009, 04:21:56 PM
Quote from: Hanzalah on June 07, 2009, 04:15:53 PM
hello to all plz help sir

i want install but i get this erorr how do i can

Until the installer is updated you can use this one
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610 (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610)
Title: Re: AjaxChat Integration
Post by: Hardcase on June 07, 2009, 04:30:52 PM
Hi Mrtrc i have got it set to utf but i dont have the file you mentioned in default theme or any other for that matter, so i dont think it can be that unfortunately.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 07, 2009, 04:50:03 PM
Quote from: Hardcase on June 07, 2009, 04:30:52 PM
Hi Mrtrc i have got it set to utf but i dont have the file you mentioned in default theme or any other for that matter, so i dont think it can be that unfortunately.

You can make it. Go to that same file (that doesn't have uft-8 and copy it) paste it as a copy and rename it to the same name as mrtrc266 said the file name should be. Because they are the same file just with 2 diff names one with uft-8 and one without.
Title: Re: AjaxChat Integration
Post by: Hardcase on June 07, 2009, 05:04:07 PM
Yes i have done that now and its not making any difference at this stage, the parse error (i take it thats what it is (even tho my PHP knowledge is limited to edits)) still occurs, its most strange because before i moved my server (and files) i never had this problem and the forum was set to UTF8 then aswell.
Title: Re: AjaxChat Integration
Post by: fext on June 07, 2009, 05:07:32 PM
Hi,

Does this mod not work with 1.1.9.??

When installing via package manager I get this error:
Install Actions
Installations actions for "AjaxChat Integration":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Any ideas?
Title: Re: AjaxChat Integration
Post by: Hardcase on June 07, 2009, 05:17:59 PM
@Youngiiie

This one has already been answered, short answer yes, information here:

http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610
Title: Re: AjaxChat Integration
Post by: fext on June 07, 2009, 05:22:51 PM
Ok scrap the above post - I found a download by reading a few pages back - cheers 'mrtrc266'.

I have one issue when installing now... (I've bolded the culprit)

1.     Execute Modification     ./Sources/BoardIndex.php     Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/index.template.php    Test successful
7.    Execute Modification    ./Themes/default/style.css    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.persian.php    Skipping file
12.    Extract Tree    ./chat    
13.    Extract Tree    ./shoutBox/css    
14.    Extract Tree    ./shoutBox/flash    
15.    Extract Tree    ./shoutBox/img    
16.    Extract Tree    ./shoutBox/js    
17.    Extract Tree    ./shoutBox/lib    
18.    Extract Tree    ./shoutBox/socket    
19.    Extract Tree    ./shoutBox/sounds    
20.    Extract Tree    ./shoutBox/src    
21.    Extract Tree    ./shoutBox    
22.    Execute Code    Tables_1.1.X.php
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 07, 2009, 05:23:44 PM
Quote from: Hardcase on June 07, 2009, 05:04:07 PM
Yes i have done that now and its not making any difference at this stage, the parse error (i take it thats what it is (even tho my PHP knowledge is limited to edits)) still occurs, its most strange because before i moved my server (and files) i never had this problem and the forum was set to UTF8 then aswell.

oh you moved your site...... yea when i made a replica of my site for a test site weird things happen like images (even tho it points to the new location) act up and dont show at times. Happens when you move the site. It is a bear to get all back to the way it was .... not so much hard but time consuming.

Quote from: Youngiiie on June 07, 2009, 05:22:51 PM
Ok scrap the above post - I found a download by reading a few pages back - cheers 'mrtrc266'.

I have one issue when installing now... (I've bolded the culprit)

1.     Execute Modification     ./Sources/BoardIndex.php     Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
6.    Execute Modification    ./Themes/default/index.template.php    Test successful
7.    Execute Modification    ./Themes/default/style.css    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.persian.php    Skipping file
12.    Extract Tree    ./chat    
13.    Extract Tree    ./shoutBox/css    
14.    Extract Tree    ./shoutBox/flash    
15.    Extract Tree    ./shoutBox/img    
16.    Extract Tree    ./shoutBox/js    
17.    Extract Tree    ./shoutBox/lib    
18.    Extract Tree    ./shoutBox/socket    
19.    Extract Tree    ./shoutBox/sounds    
20.    Extract Tree    ./shoutBox/src    
21.    Extract Tree    ./shoutBox    
22.    Execute Code    Tables_1.1.X.php

Do 1 of 2 things either parse it if you know how and do the manual edits. If you do not know how then install it anyways (even tho that error is there) then use a ftp and download your current /Sources/ManagePermissions.php and attach it here and I will make the needed changes in that file for you.
Title: Re: AjaxChat Integration
Post by: Hardcase on June 07, 2009, 05:29:39 PM
So Chit-Chat any idea's as to what could cause it, i mean i have done everything else but this is starting to bug me now :D
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 07, 2009, 05:32:14 PM
Quote from: Hardcase on June 07, 2009, 05:29:39 PM
So Chit-Chat any idea's as to what could cause it, i mean i have done everything else but this is starting to bug me now :D

Well I can't directly see your problem ... maybe re say in detail what the issue is

.... sorry I am doing 20 things at once  :-[
Title: Re: AjaxChat Integration
Post by: TheListener on June 07, 2009, 05:33:53 PM
Quote from: Chit-Chat ChatterBox Boss

.... sorry I am doing 20 things at once  :-[
/quote]

Ya shouldn't be such a chatterbox

( sorry couldn't resist)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 07, 2009, 05:34:45 PM
Hardcase, PM me Temp Admin access and I will take a look in about 20-30 minutes
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 07, 2009, 05:36:02 PM
Quote from: TheListener on June 07, 2009, 05:33:53 PM
Quote from: Chit-Chat ChatterBox Boss

.... sorry I am doing 20 things at once  :-[

Ya shouldn't be such a chatterbox

( sorry couldn't resist)

Actually I am editing things on my site ... helping people here and also helping people on SMF Helper  :o
Title: Re: AjaxChat Integration
Post by: fext on June 07, 2009, 05:41:09 PM
I got it up and running on the default theme - two problems i have at the moment...

When the SB appears i get this text:
(22:38:44) ChatBot: Error: Connection status: 500

And I hope to run this on my custom theme but its made up with divs not tables... I can see this being a problem with the index template...
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 07, 2009, 05:43:45 PM
Quote from: Youngiiie on June 07, 2009, 05:41:09 PM
I got it up and running on the default theme - two problems i have at the moment...

When the SB appears i get this text:
(22:38:44) ChatBot: Error: Connection status: 500

And I hope to run this on my custom theme but its made up with divs not tables... I can see this being a problem with the index template...

Here ya go, this should answer most of your questions and help get it installed on your custom theme
~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 07, 2009, 05:45:58 PM
Quote from: Youngiiie on June 07, 2009, 05:41:09 PM
I got it up and running on the default theme - two problems i have at the moment...

When the SB appears i get this text:
(22:38:44) ChatBot: Error: Connection status: 500

And I hope to run this on my custom theme but its made up with divs not tables... I can see this being a problem with the index template...

If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" are set @ 755 and all "Files" are set @ 666.
You might have to change the index.php in your chat and shoutbox folder to 755.

As far as your theme you will have to manually edit your themes files and you will need to use the mod parse for that.


~EDIT~

Quote from: mrtrc266 on June 07, 2009, 05:43:45 PM
Quote from: Youngiiie on June 07, 2009, 05:41:09 PM
I got it up and running on the default theme - two problems i have at the moment...

When the SB appears i get this text:
(22:38:44) ChatBot: Error: Connection status: 500

And I hope to run this on my custom theme but its made up with divs not tables... I can see this being a problem with the index template...

Here ya go, this should answer most of your questions and help get it installed on your custom theme
~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Lol we just responded to the same thing .....

Yes the above info I posted for the fix is a copy and paste from mrtrc266 edit ... so thank him for the fix.
Title: Re: AjaxChat Integration
Post by: fext on June 07, 2009, 06:02:31 PM
The Parser never really works for my theme for example in the parser for IndexTemplate it points this out:
// Show the menu here, according to the menu sub template.
template_menu();


But in my theme IndexTemplate it is actually this:
<div id="nav">',template_menu(),'</div>

Now I don't want to go pasting this code


//shoutBox
if (!empty($modSettings['enableShoutBox'])){
if (allowedTo('shout_access')){
// We'll have to use the cookie to remember the shoutBox header...
if ($context['user']['is_guest'])
$options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);

echo '
<script language="JavaScript" type="text/javascript">
var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

function ajax_shoutBox_collapse(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>';

if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
</div>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
', getShoutBoxContent() ,'
</div>
</div>';
}
}
}


Into a place that could screw things up.

Appreciate all the help so far :)
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 07, 2009, 06:06:45 PM
If that is the only issue(clash) you are having with your theme then maybe just make a backup and do what it says. If it says to place that code after the one found then do that. If it causes an error re put your backup (unedited file) back on ur site and it will put it back to the way it was. I personally would have to look at the parse and see what it is telling you to do. But watch once again mrtrc266 will probably rape you before I can ... I mean the answer  O:)
Title: Re: AjaxChat Integration
Post by: fext on June 07, 2009, 06:09:20 PM
I tried but as you will notice in above code samples there are clashes that I don't want to mess about with - I have looked thru the code for the instances referenced in the parser but cannot find exact matches - I had a stab at modifying both IndexTemplate and BardIndex and both screwed up my site... :(

Could I be so rude as to ask you guys to take a look at my files and have a stab at them - I managed to do the Board index one but it messed up my forum - I reverted to original - really want this to work on my forum.

Files are attached :)
Title: Re: AjaxChat Integration
Post by: EduardoP737 on June 08, 2009, 12:09:11 AM
Quote from: mikungfu on May 31, 2009, 09:29:08 PM
Quote from: Chit-Chat ChatterBox Boss on May 31, 2009, 09:10:29 PM
You need to extract the zip and update the package-info where it says install for = and unistall for =
to 1.1.9 or 2.0 RC1-1. And repack the files after editing back into a zip and upload to the package manager. Look a few pages back there is a link to this made by mrtrc266


Thanks! :) I hope Eduardo reads this too! ;)

Yep!!! Thanks a lot
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 08, 2009, 02:01:08 AM
mrtrc266 a member just relized a bug. The 'Logout' button to left of the channel listings area at the top works fine. The logout on the right side under 'Online Users' just flashes the screen and keeps you logged in it says this.
Quote
(06.08.2009 at 01:59) ChatBot: Caleb logs out of the Chat.
(06.08.2009 at 02:00) ChatBot: Caleb logs into the Chat.
(06.08.2009 at 02:00) ChatBot: Caleb logs out of the Chat.
(06.08.2009 at 02:00) ChatBot: Caleb logs into the Chat.
I clicked it 2 times and it logs you out and right back in right away.

Any idea on this? I will try to check it out tomorrow but if you had a clue I was gonna take it and use it
  ;D

~Edit~
I went to AJAXChat main site (sourceforge) and downloaded their newest release '0.8.2'  have been comparing alot of files the config.php ... and such and everything in the template file all seem pretty close to exactly the same except maybe 1 - 5 lines in each a little different. The new release has everything a bit cleaned up. Also I did notice this above problem that I posted is not there now, both logouts work. What I did have a problem with is this one issue.

The shoutbox is too long(where I put the red line is where the chat area that showed the chat messages stopped before. Now it goes all way down to where you can see). I want to remove from that red line and where the X's are how do I do this?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi667.photobucket.com%2Falbums%2Fvv35%2Fcafontaine%2Fshoutboxtoolong.jpg&hash=bbb5e82b85a84a6fde91e3f5df02fb6a4be742c8)
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 08, 2009, 04:14:20 AM
Quote from: philcross on June 06, 2009, 08:45:27 AM
Quote3) Is there a way to delete the chat history when the last person leaves the chat room? At present, you can login 3 days later and read all the previous chat between other people.
Go to chat/lib/config.php and play with those settings in there. For this exact question maybe you can play with these settings:

Code: [Select]

Did the above and no previous posts are showing BUT I cannot make any posts either.

I figured it out .... at least I did this and now I can type and it shows my messages and when I logout and relogin it doesnt show any previous messges.

Set this code section like this in config.php

// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;
// Defines an array of channelIDs (e.g. array(0, 1)) for which the previous setting is always true (will be ignored if set to null):
$config['requestMessagesPriorChannelEnterList'] = null;
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 1;
Title: Re: AjaxChat Integration
Post by: fext on June 08, 2009, 04:45:14 AM
Can anyone help me please? http://www.simplemachines.org/community/index.php?topic=257973.msg2098979#msg2098979
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 08, 2009, 05:28:20 AM
Quote from: Youngiiie on June 08, 2009, 04:45:14 AM
Can anyone help me please? http://www.simplemachines.org/community/index.php?topic=257973.msg2098979#msg2098979

I ran into a issue with my site that I am finishing up as we speak but now its 5:30am ..... mrtrc266 is in bed. I know tomorrow (which is today seeing its 5:30am but i still haven't slept yet so its not today lol) it will be looked at either by me or defiantly mrtrc266 ... I'm not trying to speak for him I just know hes a reliable guy for supporting his mods daily. I am personally sorry that I ran into some personal site issues and I did not get the time to look into it further  :-[ I hope tomorrow (today) we can get this resolved for you.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 08, 2009, 02:06:50 PM
Quote from: Youngiiie on June 08, 2009, 04:45:14 AM
Can anyone help me please? http://www.simplemachines.org/community/index.php?topic=257973.msg2098979#msg2098979 (http://www.simplemachines.org/community/index.php?topic=257973.msg2098979#msg2098979)

Sorry for the delay. Here you go...try these.
Title: Re: AjaxChat Integration
Post by: philcross on June 08, 2009, 02:20:18 PM
Hi Chit-Chat

Thanks for taking the time.

The mod to config.php now allows me to post again - thanks

If I then close the Chat and re-open it, the last line I posted comes up (but not all the rest). I can live with that  ;)

I did notice that I had logged in to the forum using my "testing" account BUT NEVER ENTERED CHAT.

When I logged-in using my std account it showed "testing has been logged out (Timeout)." - even though "testing" had never been in chat.

?





Is there any way to remove these items from std members in Chat - I dont think they need to access or see them.

•List online users
•List ignored users
•List available channels
•Describe action
•Roll dice
•Change username
•Enter private room
•List banned users

The only one they may want is logout





When several people are logged-in chat, you can click the other persons name for the following:-

# Send private message
# Send private action
# Open private channel
# Close private channel
# Invite
# Uninvite
# Ignore/Accept
# Display channel

Any chance of removing all those too?

:D :D :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 08, 2009, 02:29:08 PM
Chatterbox, just went to your site to look at shoutbox but it's not enabled. Let me know when you have it back and I'll take a look.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 08, 2009, 02:31:06 PM
@ Phil did you ever check this out?
http://www.simplemachines.org/community/index.php?topic=257973.msg2095952#msg2095952 (http://www.simplemachines.org/community/index.php?topic=257973.msg2095952#msg2095952)
Title: Re: AjaxChat Integration
Post by: philcross on June 08, 2009, 03:01:32 PM

Quoteyou can override the client-side method getUserNodeStringItems which you'll find in js/chat.js.

I read it but didnt really understand how to do it - I didnt want to mess the whole thing up

Title: Re: AjaxChat Integration
Post by: fext on June 08, 2009, 04:08:08 PM
Quote from: mrtrc266 on June 08, 2009, 02:06:50 PM
Quote from: Youngiiie on June 08, 2009, 04:45:14 AM
Can anyone help me please? http://www.simplemachines.org/community/index.php?topic=257973.msg2098979#msg2098979 (http://www.simplemachines.org/community/index.php?topic=257973.msg2098979#msg2098979)

Sorry for the delay. Here you go...try these.


Cheers bro!

Couple of silly question...

1. Is there an admin side so I can delete messages?
2. Are there any other settings other than in Features & Options
3. Is there a way to view full screen chat?
4. I don't see a menu button to say if there are any messages

Amy I missing something obvious? Are there instructions?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 08, 2009, 04:10:25 PM
Quote from: philcross on June 08, 2009, 03:01:32 PM

Quoteyou can override the client-side method getUserNodeStringItems which you'll find in js/chat.js.

I read it but didnt really understand how to do it - I didnt want to mess the whole thing up

Try this....Open /chat/js/chat.js
Find this portion of the code
getUserNodeStringItems: function(encodedUserName, userID) {
  var menu;
  if(encodedUserName != this.encodedUserName) {
   menu  = '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/msg '
     + encodedUserName
     + ' \');">'
     + this.lang['userMenuSendPrivateMessage']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/describe '
     + encodedUserName
     + ' \');">'
     + this.lang['userMenuDescribe']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/query '
     + encodedUserName
     + '\');">'
     + this.lang['userMenuOpenPrivateChannel']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/query\');">'
     + this.lang['userMenuClosePrivateChannel']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/invite '
     + encodedUserName
     + '\');">'
     + this.lang['userMenuInvite']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/uninvite '
     + encodedUserName
     + '\');">'
     + this.lang['userMenuUninvite']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/ignore '
     + encodedUserName
     + '\');">'
     + this.lang['userMenuIgnore']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/whereis '
     + encodedUserName
     + '\');">'
     + this.lang['userMenuWhereis']
     + '</a></li>';   
   if(this.userRole == 2 || this.userRole == 3) {
    menu += '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/kick '
      + encodedUserName
      + ' \');">'
      + this.lang['userMenuKick']
      + '</a></li>'
      + '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/whois '
      + encodedUserName
      + '\');">'
      + this.lang['userMenuWhois']
      + '</a></li>';
   }
  } else {
   menu  = '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/quit\');">'
     + this.lang['userMenuLogout']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/who\');">'
     + this.lang['userMenuWho']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/ignore\');">'
     + this.lang['userMenuIgnoreList']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/list\');">'
     + this.lang['userMenuList']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/action \');">'
     + this.lang['userMenuAction']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/roll \');">'
     + this.lang['userMenuRoll']
     + '</a></li>'
     + '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/nick \');">'
     + this.lang['userMenuNick']
     + '</a></li>';
   if(this.userRole == 1 || this.userRole == 2 || this.userRole == 3) {
    menu += '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/join\');">'
      + this.lang['userMenuEnterPrivateRoom']
      + '</a></li>';
    if(this.userRole == 2 || this.userRole == 3) {
     menu += '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/bans\');">'
       + this.lang['userMenuBans']
       + '</a></li>';
    }
   }
  }


Then go through and remove what you don't want.
EXAMPLE: to remove Change Username find and delete

     + '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/nick \');">'
     + this.lang['userMenuNick']
     + '</a></li>';


And continue to do that for all the functions you want to remove.

It doesn't diable the command, it just removes it from the list.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 08, 2009, 04:15:40 PM
Quote from: Youngiiie on June 08, 2009, 04:08:08 PM
Cheers bro!

Couple of silly question...

1. Is there an admin side so I can delete messages?
2. Are there any other settings other than in Features & Options
3. Is there a way to view full screen chat?
4. I don't see a menu button to say if there are any messages

Amy I missing something obvious? Are there instructions?

1. As admin you should see a little red X on the right hand side to delete messages
2. Those are pretty much the only setting in SMF. You can customize and configure it by checking this out. ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
3. You can resize the chat window by grabbing the corner and expanding it.
4. Not sure what you mean, you should see messages in the shout and or chat.
Title: Re: AjaxChat Integration
Post by: fext on June 08, 2009, 04:51:27 PM
Quote from: mrtrc266 on June 08, 2009, 04:15:40 PM
Quote from: Youngiiie on June 08, 2009, 04:08:08 PM
Cheers bro!

Couple of silly question...

1. Is there an admin side so I can delete messages?
2. Are there any other settings other than in Features & Options
3. Is there a way to view full screen chat?
4. I don't see a menu button to say if there are any messages

Amy I missing something obvious? Are there instructions?

1. As admin you should see a little red X on the right hand side to delete messages
2. Those are pretty much the only setting in SMF. You can customize and configure it by checking this out. ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
3. You can resize the chat window by grabbing the corner and expanding it.
4. Not sure what you mean, you should see messages in the shout and or chat.

1. Nope I don't - not even in Default theme - Have I misssed anything (unless I cannot delete my own messages?
2. Ok i'll take a look
3. Nope it don't resize?
4. In the screengrabs on the mod there is a menu bar link with a number in brackets like this "Chat (1)"

Also in the forum footer it shows that no users are in chat? Says this "No user is in chat." is this down to permissions? (See picture 2)

Also in the Shoutbox the text edit icons are displaced (See picture 1)

Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 08, 2009, 05:06:16 PM
@ Young

Open Themes/yourtheme/style.css

add this to the very top of the file (very first line). Then refresh
@import url(../../shoutBox/css/shoutbox.css);

And yes be sure to set permissions for the groups you want to have access to chat.
Title: Re: AjaxChat Integration
Post by: fext on June 08, 2009, 05:16:07 PM
Cheers buddy...

What about deleting messages including my own?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 08, 2009, 05:28:40 PM
Not sure why you can't delete your messages....as Admin you should be able to delete any message. What's the URL to your site? PM me if you dont want it public
Title: Re: AjaxChat Integration
Post by: fext on June 08, 2009, 05:33:21 PM
Bro I got confused - I was looking for admin prefs on the shoutbox itself - just noticed that al admin is done via the Chat app which is seperate from the site.

One gripe I have is this... When you go to chat from forum menu you have to login again (or at least press enter - would it be able to login to chat auto?

Cheers for all your help and patience with me and these issues :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 08, 2009, 05:37:26 PM
Quote from: Hardcase on June 07, 2009, 05:29:39 PM
So Chit-Chat any idea's as to what could cause it, i mean i have done everything else but this is starting to bug me now :D

Try this....

open your Modifications.english.php file
Create new file
Copy entire contents (select all) from Modifications.english.php
Paste into new file
Save new file as Modifications.english-utf8.php

Upload Modifications.english-utf8.php to Themes/default/languages/

Dont upload it to your custom themes folder...just the default.

See if that works.
Title: Re: AjaxChat Integration
Post by: zijO on June 08, 2009, 05:37:37 PM
This is great mod.

When shout box is activated it takes longer time for page to show up.

How I can disable shout box to not display on first page but to display on all the other pages?

Also is it possible to delete all chat at once?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 08, 2009, 05:39:28 PM
Quote from: Youngiiie on June 08, 2009, 05:33:21 PM
Bro I got confused - I was looking for admin prefs on the shoutbox itself - just noticed that al admin is done via the Chat app which is seperate from the site.

One gripe I have is this... When you go to chat from forum menu you have to login again (or at least press enter - would it be able to login to chat auto?

Cheers for all your help and patience with me and these issues :)

NP, glad you got it sorted. For some reason it does that when you first log in. I think it just needs to get cached. It doesn't (or shouldn't) do it all the time though.
Title: Re: AjaxChat Integration
Post by: primetime on June 08, 2009, 07:09:28 PM
Is it possible to have the users group online color show up in the online list and shoutbox when they post a shout? example, if my user online group color is Red, my name would be in red each time i posted a shout and in the online users.

Thank you,
Prime
Title: Re: AjaxChat Integration
Post by: TheListener on June 08, 2009, 07:15:12 PM
https://blueimp.net/ajax/#documentation (https://blueimp.net/ajax/#documentation)

Without stepping on any toes with my heavy feet the above link may help
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 08, 2009, 07:32:55 PM
Quote from: mrtrc266 on June 08, 2009, 02:29:08 PM
Chatterbox, just went to your site to look at shoutbox but it's not enabled. Let me know when you have it back and I'll take a look.

I just checked on my test account (normal member) and the shoutbox  is activated and showing. It is not activated for guests.
Title: Re: AjaxChat Integration
Post by: nerotxc on June 08, 2009, 11:10:45 PM
hi,

i am getting the 500 connection error, read the tip n tricks but cant find where to change the numbers.

also when i open features and options the menu names are blank, but the check boxes appear.

one more thing, i do not have a "chat" tab.

i am new to this and am just trying to make this work on the default theme. i have the site setup to use the "redsys" theme, but reverted back to default because im a noob.

my website is www.nerotoxic.com please feel free to stop by, but im lost.

thanks for any/all help. Chris
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 08, 2009, 11:16:26 PM
The missing text (in Features and Options and in the menu) are from missing language strings. Open Help.{your_language}.php and Modifications.{your_language}.php and make sure the language strings for Ajax Chat are all there.
Title: Re: AjaxChat Integration
Post by: nerotxc on June 08, 2009, 11:24:11 PM
do i find those files under the AjaxChat Integration package?

if i understand you i clicked on list files, and i have 189. none of which start with the mod or help.

like i said sorry im a noob and this is my first mod outside of changing my site theme.
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 09, 2009, 12:55:23 AM
The language files will be in www. yoursite. com/forum/Themes/default/languages/ whcih you can access with any FTP.

We all start out as noobs. I've been doing this for years and I'm still a noob. I can't even spell PHP.  :P
Title: Re: AjaxChat Integration
Post by: allumius on June 09, 2009, 07:22:43 AM
Somebody can help me please?
my forum have helios multi and i cant modify index.template.php
please help me
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 09, 2009, 11:44:40 AM
Quote from: allumius on June 09, 2009, 07:22:43 AM
Somebody can help me please?
my forum have helios multi and i cant modify index.template.php
please help me

Are you talkin about this theme?
This theme might give you troubles with a lot of mods it hasn't been updated in quite awhile and stopped at SMF 1.1

http://custom.simplemachines.org/themes/?lemma=1 (http://custom.simplemachines.org/themes/?lemma=1)
Last Modified:  December 13, 2006, 04:09:08 PM 
Compatible With:  1.0.6, 1.0.7, 1.0.8, 1.1 RC2, 1.1 RC3, 1.1
Title: Re: AjaxChat Integration
Post by: philcross on June 09, 2009, 12:02:35 PM
After a lot of trial and error, I now have the Chat sorted.

I only have one room, one theme and one language in the dropdowns (I would still like to remove the reference to them alltogether  ;)).

Once in Chat......

Members can Logout and Ignore/Accept another User - nothing else.

Admin (user groups 2 and 3) can Logout and List Banned Users

Admin (user groups 2 and 3) can also Kick/Ban and Display IP for any User.

It is a much simpler version, which I feel is easier to handle.



Thanks for all the support on this !!!!!!
Title: Re: AjaxChat Integration
Post by: Greymalkin on June 09, 2009, 01:05:28 PM
I'm attempting to install on 1.1.8 and I get the following message
Quote1.     Execute Modification     ./Sources/BoardIndex.php     Test failed

Everything else tests or skips fine. 

I'm not using the default theme, but I don't think that would affect an installation not in the Themes folder, would it?
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 09, 2009, 01:28:00 PM
Quote from: Greymalkin on June 09, 2009, 01:05:28 PM
I'm attempting to install on 1.1.8 and I get the following message
Quote1.     Execute Modification     ./Sources/BoardIndex.php     Test failed

Everything else tests or skips fine. 

I'm not using the default theme, but I don't think that would affect an installation not in the Themes folder, would it?

You will have to go to the mod in the modifications area and parse it to your version. When you parse it, it will show you the manual edits ... you need to do it for the file that had the fail install to it. (Do this after just telling it just install even though it fails on that file).
Title: Re: AjaxChat Integration
Post by: Greymalkin on June 09, 2009, 02:02:36 PM
Okay, solved the install fail problem (removed the mod it was colliding with).  It's installed successfully and I'm now trying to parse it into my theme (Sweet Dream).  Unfortunately, Sweet Dream's index.template doesn't have
// Show the menu here, according to the menu sub template.
template_menu();


so I'm stalled right on square one.  What edits should I make?  (I already have a shoutbox, all I need is the flashchat)

index.template for my theme is attached
Link to board here (http://quantum-sky.org/eclipsingbinary/index.php)
Title: Re: AjaxChat Integration
Post by: philcross on June 09, 2009, 02:33:06 PM
QuoteAfter a lot of trial and error, I now have the Chat sorted.

I only have one room, one theme and one language in the dropdowns (I would still like to remove the reference to them alltogether  ).

Once in Chat......

Members can Logout and Ignore/Accept another User - nothing else.

Admin (user groups 2 and 3) can Logout and List Banned Users

Admin (user groups 2 and 3) can also Kick/Ban and Display IP for any User.

It is a much simpler version, which I feel is easier to handle.



Thanks for all the support on this !!!!!!

I thought it was going well  :)

I have removed the redundant buttons/dropdowns for theme/language/room from the loggedin.html and loggedout.html

But, Im now getting this error message in FF (IE8 seems OK)

XML Parsing Error: XML or text declaration not at start of entity
Location: http://www.xxxx.com/xxxforum/chat/index.php
Line Number 2, Column 1:<?xml version="1.0" encoding="UTF-8"?><?xml version="1.0" encoding="UTF-8"?>
^

Ideas please?

Just found this - solution???

chat/lib/config.php
and
shoutBox/lib/config.php

and change:
$config['contentType'] = null;
to
$config['contentType'] = "text/html";
in both files

YES - it did fix it. LOL
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 09, 2009, 02:47:11 PM
LOL, glad you got it sorted Phil. Good job! :D
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 09, 2009, 02:49:49 PM
Quote from: Greymalkin on June 09, 2009, 02:02:36 PM
Okay, solved the install fail problem (removed the mod it was colliding with).  It's installed successfully and I'm now trying to parse it into my theme (Sweet Dream).  Unfortunately, Sweet Dream's index.template doesn't have
   // Show the menu here, according to the menu sub template.
   template_menu();


so I'm stalled right on square one.  What edits should I make?  (I already have a shoutbox, all I need is the flashchat)

index.template for my theme is attached
Link to board here (http://quantum-sky.org/eclipsingbinary/index.php)

Try adding the code after this
<input type="hidden" name="advanced" value="0" />';
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 09, 2009, 02:50:35 PM
Quote from: zijO on June 08, 2009, 05:37:37 PM
This is great mod.
When shout box is activated it takes longer time for page to show up.
How I can disable shout box to not display on first page but to display on all the other pages?
Also is it possible to delete all chat at once?

Goto your Admin and disable the shoutbox
Title: Re: AjaxChat Integration
Post by: Greymalkin on June 09, 2009, 03:20:02 PM
Okay, it's moving along (albeit slowly). :)  A few steps further on ...

Sweet Dream index.template has no:
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}


(it has no reference to minutes that I can find at all).  So where would

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
if (!empty($modSettings['enableChatBelowPM'])){
$count = count(chatOnlineUsers());
if ($count == 0 )
echo '<br />' . $txt['chat_no_user'];
elseif ($count == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' . $count . $txt['chat_users']. '<br />';
}
echo ' </span>';
}

go?
Title: Re: AjaxChat Integration
Post by: primetime on June 09, 2009, 03:32:47 PM
Quote from: TheListener on June 08, 2009, 07:15:12 PM
https://blueimp.net/ajax/#documentation (https://blueimp.net/ajax/#documentation)

Without stepping on any toes with my heavy feet the above link may help

I will have a look, but I am not sure where to begin :)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 09, 2009, 03:48:55 PM
@ Greymalkin

Find
        <br /><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
        <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';
}

Add After

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


For the button
Find
// Otherwise, they might want to [logout]...
Replace with
// 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'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
  <li><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a></li>';
 
// Otherwise, they might want to [logout]...


And cross fingers LOL :D
Title: Re: AjaxChat Integration
Post by: Greymalkin on June 09, 2009, 04:05:16 PM
Seems to be working splendidly.  Thanks!
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 09, 2009, 04:10:40 PM
Quote from: Greymalkin on June 09, 2009, 04:05:16 PM
Seems to be working splendidly.  Thanks!

NP Glad you got it goin.
Title: Re: AjaxChat Integration
Post by: allumius on June 09, 2009, 04:16:08 PM
Quote from: mrtrc266 on June 09, 2009, 11:44:40 AM
Quote from: allumius on June 09, 2009, 07:22:43 AM
Somebody can help me please?
my forum have helios multi and i cant modify index.template.php
please help me

Are you talkin about this theme?
This theme might give you troubles with a lot of mods it hasn't been updated in quite awhile and stopped at SMF 1.1

http://custom.simplemachines.org/themes/?lemma=1 (http://custom.simplemachines.org/themes/?lemma=1)
Last Modified:  December 13, 2006, 04:09:08 PM 
Compatible With:  1.0.6, 1.0.7, 1.0.8, 1.1 RC2, 1.1 RC3, 1.1


Yes, this is the theme
sorry my english is very bad
i have instaled other mod manually, but with you mod, i cant  :'(
Please you can modify my index.template.php?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 09, 2009, 05:12:29 PM
Quote from: allumius on June 09, 2009, 04:16:08 PM
Quote from: mrtrc266 on June 09, 2009, 11:44:40 AM
Quote from: allumius on June 09, 2009, 07:22:43 AM
Somebody can help me please?
my forum have helios multi and i cant modify index.template.php
please help me

I couldn't download you index.template it came through corrupted.

Here is the original index.template from the helios_multi11final theme, you can see the edits I did and then just copy them to yours.

I'm having trouble with the button though, you'll have to take a look at your buttons and see if you can get it sorted.
Title: Re: AjaxChat Integration
Post by: zijO on June 09, 2009, 06:06:27 PM
Quote from: mrtrc266 on June 09, 2009, 02:50:35 PM
Quote from: zijO on June 08, 2009, 05:37:37 PM
This is great mod.
When shout box is activated it takes longer time for page to show up.
How I can disable shout box to not display on first page but to display on all the other pages?
Also is it possible to delete all chat at once?

That would disable shoutbox  completely.
I need to display it with boards or posts, but not at index template.



Goto your Admin and disable the shoutbox
Title: Re: AjaxChat Integration
Post by: fext on June 09, 2009, 06:30:22 PM
Hey mrtrc266,

How would I go about removing certain items from the member menu list?

I tried to remove the 'Enter private room' but when i do it fails?

EDIT: How do i remove the Chat link when guests view the site?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 09, 2009, 06:32:51 PM
@ zijO

At the moment you can only display the shoutbox on index or all pages.

As we speak the ability to have it show on specific pages and or boards is being worked on.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 09, 2009, 06:36:15 PM
Quote from: Youngiiie on June 09, 2009, 06:30:22 PM
Hey mrtrc266,

How would I go about removing certain items from the member menu list?

I tried to remove the 'Enter private room' but when i do it fails?

Follow the posts from here It's only a cpl pages back.
http://www.simplemachines.org/community/index.php?topic=257973.msg2100280#msg2100280 (http://www.simplemachines.org/community/index.php?topic=257973.msg2100280#msg2100280)

That should get you in the right direction.
Title: Re: AjaxChat Integration
Post by: fext on June 09, 2009, 06:39:06 PM
What about removing the "chat" link when guests view my site?
Title: Re: AjaxChat Integration
Post by: fext on June 09, 2009, 06:46:04 PM
Yeah i saw the but there are bits of code in IF statements that differ?

How would I remove the Enter Private Room?

getUserNodeStringItems: function(encodedUserName, userID) {
var menu;
if(encodedUserName != this.encodedUserName) {
menu = '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/msg '
+ encodedUserName
+ ' \');">'
+ this.lang['userMenuSendPrivateMessage']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/describe '
+ encodedUserName
+ ' \');">'
+ this.lang['userMenuDescribe']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/ignore '
+ encodedUserName
+ '\');">'
+ this.lang['userMenuIgnore']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/whereis '
+ encodedUserName
+ '\');">'
+ this.lang['userMenuWhereis']
+ '</a></li>';
if(this.userRole == 2 || this.userRole == 3) {
menu += '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/kick '
+ encodedUserName
+ ' \');">'
+ this.lang['userMenuKick']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/whois '
+ encodedUserName
+ '\');">'
+ this.lang['userMenuWhois']
+ '</a></li>';
}
} else {
menu = '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/quit\');">'
+ this.lang['userMenuLogout']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/who\');">'
+ this.lang['userMenuWho']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/ignore\');">'
+ this.lang['userMenuIgnoreList']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/list\');">'
+ this.lang['userMenuList']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/action \');">'
+ this.lang['userMenuAction']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/roll \');">'
+ this.lang['userMenuRoll']
+ '</a></li>';
if(this.userRole == 1 || this.userRole == 2 || this.userRole == 3) {
menu += '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/join\');">'
+ this.lang['userMenuEnterPrivateRoom']
+ '</a></li>';
if(this.userRole == 2 || this.userRole == 3) {
menu += '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/bans\');">'
+ this.lang['userMenuBans']
+ '</a></li>';
}
}
}


I tried to remove this section twice and the AjaxChat popup failed

if(this.userRole == 1 || this.userRole == 2 || this.userRole == 3) {
menu += '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/join\');">'
+ this.lang['userMenuEnterPrivateRoom']
+ '</a></li>';


See my problem now?

Also another couple of things:
1. How do I remove the chat link for when guests view my site
2. Is there a way to reverse the chat when in a popup to load back into the website? I have the popup currently loading the site after logout but it loads into the popup - ideally I'd like it to work so when you log out the popup closes and the page you spawned from would refresh?

Any ideas with the latter queires too?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 09, 2009, 07:22:13 PM
@ Young and anyone else wishing to remove features from AJAX Chat.

Most of what you are trying to do would be better found @ SourceForge.
EXAMPLE: How to close the window on logout is here
http://ajax-chat.wiki.sourceforge.net/Close+chat+window+on+logout (http://ajax-chat.wiki.sourceforge.net/Close+chat+window+on+logout)

As well as removing the command/items from the chat window, all that info can be found @ Sourceforge Wiki (http://ajax-chat.wiki.sourceforge.net/). Remember this is NOT AJAX Chat, this Mod just intergrates AJAX Chat into SMF.

There have been a few requests lately to remove some of the main functions from the Chat, keep in mind that this is a FULL ON Chat Room and has many features that you will find in the most popular Chat Rooms so removing them would defeat the purpose of installing this in the first place. If anyone doesn't want all those features then maybe a simple shoutbox with basic feature might be more suited to your needs. Many can be found by searching "Shout" or "Chat" on the Mod site.

Please don't get me wrong we would love for everyone to use the AJAX Chat Intergration Mod but we would rather support it by customizing and adding features not take them away.

Regards
Title: Re: AjaxChat Integration
Post by: fext on June 09, 2009, 07:32:40 PM
thanks bro I'll look at those sites... But one last ask-how do I make the chat link invisible to guests? So when a guest visits my site they don't see the chat link?

Thanks for your patience and help :)
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 09, 2009, 07:33:46 PM
What version of SMF, youngiiie?
Title: Re: AjaxChat Integration
Post by: fext on June 09, 2009, 07:37:25 PM
1.1.9. It's a custom theme to - mostly divs - would you need the index file?
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 09, 2009, 08:25:10 PM
Post the index.template.php from the custom theme and I'll set the "members only" chat button for you.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 09, 2009, 11:10:47 PM
One quick question. I know I edited this before but where do I make shoutbox msg's stay forever but limit say max 30 messages showing?

:-[I think I found it:

shoutbox/lib/config.php 
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 8760;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 30;


8760 hours = 365 days

Also
Quote from: Chit-Chat ChatterBox Boss on June 08, 2009, 02:01:08 AM
mrtrc266 a member just relized a bug. The 'Logout' button to left of the channel listings area at the top works fine. The logout on the right side under 'Online Users' just flashes the screen and keeps you logged in it says this.
Quote
(06.08.2009 at 01:59) ChatBot: Caleb logs out of the Chat.
(06.08.2009 at 02:00) ChatBot: Caleb logs into the Chat.
(06.08.2009 at 02:00) ChatBot: Caleb logs out of the Chat.
(06.08.2009 at 02:00) ChatBot: Caleb logs into the Chat.
I clicked it 2 times and it logs you out and right back in right away.

Any idea on this? I will try to check it out tomorrow but if you had a clue I was gonna take it and use it
  ;D

~Edit~
I went to AJAXChat main site (sourceforge) and downloaded their newest release '0.8.2'  have been comparing alot of files the config.php ... and such and everything in the template file all seem pretty close to exactly the same except maybe 1 - 5 lines in each a little different. The new release has everything a bit cleaned up. Also I did notice this above problem that I posted is not there now, both logouts work. What I did have a problem with is this one issue.

The shoutbox is too long(where I put the red line is where the chat area that showed the chat messages stopped before. Now it goes all way down to where you can see). I want to remove from that red line and where the X's are how do I do this?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi667.photobucket.com%2Falbums%2Fvv35%2Fcafontaine%2Fshoutboxtoolong.jpg&hash=bbb5e82b85a84a6fde91e3f5df02fb6a4be742c8)

I figured out where to make this smaller in chat/css/shoutbox.css
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 09, 2009, 11:53:14 PM
For anyone that might want to make this edit here it is: (I don't know if this has already been mentioned in this topic)

To make your shoutbox smaller (not as long top to bottom) but then if more messages then the size of the shoutbox is entered it gets a scroll bar edit this:
chat/css/shoutbox.css   also edit the same one in shoutbox/css/shoutbox.css

#ajaxChatContent #ajaxChatChatList {

height:300px;

overflow:auto;

}

Edit the "height:300px;" number to your desired height.


To add the words "Shout Message" and a submit button to your shoutbox like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi667.photobucket.com%2Falbums%2Fvv35%2Fcafontaine%2FShoutboxmodifiedandbetter.jpg&hash=26eb7257bd15d583e637d08d3ca2362602784b9d)
Do this:
shoutbox/lib/template/shoutbox.html
Find:

<input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/>


Replace With:

<h3>Shout Message</h3><input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/><input type="button" id="submitButton" value="Submit" onclick="ajaxChat.sendMessage();" />

This is all one line not 2 lines as it is appearing.

All of these changes were made on 2.0 RC1-1. Most likely they will be the same exact for your SMF Version as well.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 09, 2009, 11:58:27 PM
@ Chatterbox...That's exaclty what I was gonna say :D

Yes it will be the same for 1.1.x as well. Glad you got it sorted.
Title: Re: AjaxChat Integration
Post by: Greymalkin on June 10, 2009, 12:08:20 AM
Have a minor glitch and I think it's something in the parsing for this mod that's causing it (since I haven't tweaked anything else lately). 

In my header, under the 'Hello Username' and Show Unread/New Replies lines, the 'Welcome Guest' greeting is appearing even when the user is logged in.  I'm guessing it's being caused by a line somewhere in the parsing inserts, so if someone can tell me what to remove (or how else to fix it), I'd be most appreciative.

EDIT: knew I forgot something -- index.template now attached
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 10, 2009, 12:09:43 AM
@ mrtrc266
To get around that make your chatbot smarter mod for the command situation I just added a new command called '/commands' into AJAXChat.php and if admins & mods do the command it lists all their commands and then for users their commands are listed. Was trying to do this for the smarter chatbot mod but it didn't like the user roles being used so it was easier to make a fresh command in AJAXChat that already used user roles. Now I will just use the smarter chatbot just for things without user role ...... except for the future I would still like to figure out how to get user roles to work in the smarter chatbot setup.

Only thing I am fighting that I want to know if you know how to add is in the Online Users box I want to add a 'commands' button so people can just click it and it runs off my '/commands' command. Do you know how I can add this?
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 10, 2009, 12:24:27 AM
All fixed Greymalkin. It was just a misplaced }.
Title: Re: AjaxChat Integration
Post by: Greymalkin on June 10, 2009, 12:29:31 AM
poof!  Extra greeting gone!

Thanks :)
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 10, 2009, 01:11:31 AM
Very glad I could help. Enjoy!
Title: Re: AjaxChat Integration
Post by: ajes on June 10, 2009, 01:58:05 AM
can some one please help me how to install ajax chat?

i have tried in many ways but not success yet.

i use the SMF 1.1.8 for now, before that i use SMF 1.1.9 the installation is success but the ajax is do not appear to my forum. then i downgrade to 1.1.8 for now. still like before the case.

please somebody help.. thanks before..
Title: Re: AjaxChat Integration
Post by: fext on June 10, 2009, 04:22:28 AM
@ SunKing...

The file is attached bro... Cheers!
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 10, 2009, 09:50:09 AM
I am at work now, but will look at it as soon as I get home...in about 8 hours.
Title: Re: AjaxChat Integration
Post by: fext on June 10, 2009, 10:04:02 AM
Nice one - appreciate it bro :)
Title: Re: AjaxChat Integration
Post by: christianstogether on June 10, 2009, 11:04:36 AM
hiya i'm running smf 1.9 and installed the chat and shout
i'm having a few problems tho that i need help with
it took us 3 attempts to install it and get it workin but its now sorta workin
that chat opens up and is fine but if i enable the shout box it says error connection 500 unless i intregrate it with chat
but then whatever is typed in chat shows in the shout and visa versa

any ideas please
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 10, 2009, 11:30:16 AM
Quote from: christianstogether on June 10, 2009, 11:04:36 AM
hiya i'm running smf 1.9 and installed the chat and shout
i'm having a few problems tho that i need help with
it took us 3 attempts to install it and get it workin but its now sorta workin
that chat opens up and is fine but if i enable the shout box it says error connection 500 unless i intregrate it with chat
but then whatever is typed in chat shows in the shout and visa versa

any ideas please

Set your file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

That should fix it.
Title: Re: AjaxChat Integration
Post by: christianstogether on June 10, 2009, 12:39:06 PM
Quote from: mrtrc266 on June 10, 2009, 11:30:16 AM
Quote from: christianstogether on June 10, 2009, 11:04:36 AM
hiya i'm running smf 1.9 and installed the chat and shout
i'm having a few problems tho that i need help with
it took us 3 attempts to install it and get it workin but its now sorta workin
that chat opens up and is fine but if i enable the shout box it says error connection 500 unless i intregrate it with chat
but then whatever is typed in chat shows in the shout and visa versa

any ideas please

Set your file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

That should fix it.


it has a huge thank you cos we had been trying to figure it out for days

Title: Re: AjaxChat Integration
Post by: ajes on June 10, 2009, 02:22:35 PM
XML Parsing Error: mismatched tag. Expected: </html>.
Location: http://ajezz.ifastnet.com///chat/index.php
Line Number 386, Column 3:</noscript>
--^




can somebody help me please that problem?  :( :(
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 10, 2009, 03:48:34 PM
Quote from: ajes on June 10, 2009, 02:22:35 PM
XML Parsing Error: mismatched tag. Expected: </html>.
Location: http://ajezz.ifastnet.com///chat/index.php
Line Number 386, Column 3:</noscript>
--^




can somebody help me please that problem?  :( :(

Please attach your index.php (the one that says the error is in).
Title: Re: AjaxChat Integration
Post by: ajes on June 10, 2009, 04:13:32 PM
Quote from: Chit-Chat ChatterBox Boss on June 10, 2009, 03:48:34 PM
Quote from: ajes on June 10, 2009, 02:22:35 PM
XML Parsing Error: mismatched tag. Expected: </html>.
Location: http://ajezz.ifastnet.com///chat/index.php
Line Number 386, Column 3:</noscript>
--^

this one?



can somebody help me please that problem?  :( :(

Please attach your index.php (the one that says the error is in).
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 10, 2009, 05:26:56 PM
Quote from: ajes on June 10, 2009, 04:13:32 PM
Quote from: Chit-Chat ChatterBox Boss on June 10, 2009, 03:48:34 PM
Quote from: ajes on June 10, 2009, 02:22:35 PM
XML Parsing Error: mismatched tag. Expected: </html>.
Location: http://ajezz.ifastnet.com///chat/index.php
Line Number 386, Column 3:</noscript>
--^

this one?



can somebody help me please that problem?  :( :(

Please attach your index.php (the one that says the error is in).

you gave me your ./index.php we need your ./chat/index.php
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 10, 2009, 05:29:24 PM
@Youngiiie

Attached is your index.template.php with a bright new shiny members-only chat button.  :P
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 10, 2009, 06:20:38 PM
@mrtrc266 and @ SunKing

I don't know if you two remember maybe about a week ago I talked to both of you (different times) about the shoutbox message limit per minute. mrtrc266 & SunKing you both tried it and said it does not work (same with me). I just wanted to clarify we are all retarded about this LOL because in the script where it is coded into AJAXChat.php it is coded for it not to apply for admins and moderators ;D. So that means all 3 of us trying it on our main account thats why it is not working. I tried it on my sites test account and it worked. Now that has been stated ..... I have a few questions.

Title: Re: AjaxChat Integration
Post by: ajes on June 10, 2009, 10:36:28 PM
Quote from: Chit-Chat ChatterBox Boss on June 10, 2009, 05:26:56 PM
Quote from: ajes on June 10, 2009, 04:13:32 PM
Quote from: Chit-Chat ChatterBox Boss on June 10, 2009, 03:48:34 PM
Quote from: ajes on June 10, 2009, 02:22:35 PM
XML Parsing Error: mismatched tag. Expected: </html>.
Location: http://ajezz.ifastnet.com///chat/index.php
Line Number 386, Column 3:</noscript>
--^

this one?



can somebody help me please that problem?  :( :(

Please attach your index.php (the one that says the error is in).

you gave me your ./index.php we need your ./chat/index.php

sorry for my mistake bro..

maybe this one.
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 10, 2009, 11:16:02 PM
You need to go into the chat folder itself probably located at http://ajezz.ifastnet.com/chat/index.php and attach that index.php to this thread please.

When changing your URL from http://ajezz.ifastnet.com///chat/index.php to a valid URL like http://ajezz.ifastnet.com/chat/index.php the error changes to: Line Number 98, Column 3.

The error itself is just saying that the </noscript> should be a </html>, which is usually caused by open tags or unneeded closing tags.
Title: Re: AjaxChat Integration
Post by: dzinerfusion on June 10, 2009, 11:57:11 PM
hi just want to make sure I get this right. Can anyone tell me where I put this code, cause there are 2 of it in my custom theme!

echo '
</ul>';



Add before:


if ($modSettings['enableChatBelowPM']){
$count = count(chatOnlineUsers());
if ($count == 0 )
echo '<br />' . $txt['chat_no_user'];
elseif ($count == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' . $count. $txt['chat_users']. '<br />';
}
$num = ($modSettings['enableChatButtonNo']) ? $count : 0;
$context['menu_buttons']['chat']['title'] .= ($num > 0) ?  ('('.$num.')') : '';
if ($modSettings['chatPopUp']){
$context['menu_buttons']['chat']['href'] .= '" onclick="openWindow(this.href);this.blur();return false;';
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>';
}
Title: Re: AjaxChat Integration
Post by: ajes on June 11, 2009, 12:10:51 AM
Quote from: SunKing on June 10, 2009, 11:16:02 PM
You need to go into the chat folder itself probably located at http://ajezz.ifastnet.com/chat/index.php and attach that index.php to this thread please.

When changing your URL from http://ajezz.ifastnet.com///chat/index.php to a valid URL like http://ajezz.ifastnet.com/chat/index.php the error changes to: Line Number 98, Column 3.

The error itself is just saying that the </noscript> should be a </html>, which is usually caused by open tags or unneeded closing tags.

the file index that i have attach is from chat directory bro.
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 11, 2009, 12:34:02 AM
If you can link me to your site and set up a temporary admin account, I can see if I can fix it for you that way. I see you use net2ftp, which really sucks in my opinion. I have to do workarounds every single time net2ftp is used. There are plenty of fantastic FREE FTP programs out there. I use FireFTP which is a FireFox plugin. Anyway, the file you have attached, unfortunately, is of no use whatsoever. It's not your fault, bud. It's the software.  :P

EDIT: I guess I could use the link from the error to get to your site. ;)
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 11, 2009, 12:36:52 AM
@blue

Is the Online Users number showing twice? If so, then you can just remove whichever one you don't want. You don't have to have it in there at all. I don't.
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 11, 2009, 01:43:16 AM
ummm...you don't need to post all of that info in here.  :P

You probably want to edit that out.
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 11, 2009, 01:52:29 AM
PLEASE EDIT ALL OF THAT INFO OUT!!

Oh...and your chat works now. ;)
Title: Re: AjaxChat Integration
Post by: ajes on June 11, 2009, 01:59:48 AM
Quote from: SunKing on June 11, 2009, 01:52:29 AM
PLEASE EDIT ALL OF THAT INFO OUT!!

Oh...and your chat works now. ;)

great thanks to you bro..  :D :D

i need one more help please.. could you?

to install ajax chat in this forum : www.forum.wcumum.com
but i've forgot the cpanel for that forum.  :( :(

Title: Re: AjaxChat Integration
Post by: christianstogether on June 11, 2009, 02:00:58 AM
hiya got another question
using standard smf1.9
with ajax chat and shout
as an admin i know i have the option to remove posts
and so do my moderators
but the trouble is every user has this option tooo
is this normal or have i allowed too many permissions when setting it up??

i did have problems and had to change the perm's for 755 in the index.php files as explained earlier

thanks
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 11, 2009, 02:03:51 AM
@ christianstogether

You can find the fix for that in the FAQ's here ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Look for this part

If your regular members can delete posts in the Chat and Shout it's because you allow them to post Event in your Calendar, the fix for it is HERE
(http://www.simplemachines.org/community/index.php?topic=257973.msg1979606#msg1979606)
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 11, 2009, 02:07:46 AM
Quote from: ajes on June 11, 2009, 01:59:48 AM
Quote from: SunKing on June 11, 2009, 01:52:29 AM
PLEASE EDIT ALL OF THAT INFO OUT!!

Oh...and your chat works now. ;)

great thanks to you bro..  :D :D

i need one more help please.. could you?

to install ajax chat in this forum : www.forum.wcumum.com
but i've forgot the cpanel for that forum.  :( :(

YQW and PLEASE, for the love of all things binary, edit that post and make me feel better....:)

I have registered on that site. Make me admin temporarily and I will install the chat mod for you.
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 11, 2009, 02:17:55 AM
Thank you ajes. <wipes sweat from brow> I would also suggest changing your password as soon as possible.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 11, 2009, 02:20:38 AM
LOL....yes....tyvm! Phew!!!

Glad you're getting this Mod Sorted....enjoy  ajes
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 11, 2009, 02:26:44 AM
Quote503 Service Unavailable
The server is temporarily busy, try again later! Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!

I have tried several times to get into the Packages area via admin and keep getting "temporarily busy". Lightspeed it's not. I think maybe they meant light as in barely....

It is 1:30am here right now and I have to be at work in a few hours. I will install it tomorrow for you if the offer is still open. Meanwhile, remove the current shoutbox by going into ADMIN > PACKAGES > then scroll down to that package and click [Uninstall].
Title: Re: AjaxChat Integration
Post by: ajes on June 11, 2009, 02:30:51 AM
Quote from: SunKing on June 11, 2009, 02:26:44 AM
Quote503 Service Unavailable
The server is temporarily busy, try again later! Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!

I have tried several times to get into the Packages area via admin and keep getting "temporarily busy". Lightspeed it's not. I think maybe they meant light as in barely....

It is 1:30am here right now and I have to be at work in a few hours. I will install it tomorrow for you if the offer is still open. Meanwhile, remove the current shoutbox by going into ADMIN > PACKAGES > then scroll down to that package and click [Uninstall].

thats the problem bro. i don't know how it can be the server is temp available.

so i can't uninstall another shoutbox.  :( :(
Title: Re: AjaxChat Integration
Post by: fext on June 11, 2009, 12:35:39 PM
Quote from: SunKing on June 10, 2009, 05:29:24 PM
@Youngiiie

Attached is your index.template.php with a bright new shiny members-only chat button.  :P

Cheers bro - but it never worked...

I had a go and changed this:
// the [chat] button
if ($context['user']['is_guest'])
{


to this:
// the [chat] button
if ($context['user']['is_logged'])
{


Seemed to work...
Title: Re: AjaxChat Integration
Post by: allumius on June 11, 2009, 12:43:36 PM
Well, i'm change my theme. Now i use BlackRainV2118
The chat work fine, but.... is posibble chat show only the last 10 lines? And the other whit scroll
Title: Re: AjaxChat Integration
Post by: fext on June 11, 2009, 01:00:05 PM
@ Greymalkin

Hey dude I have beeen stripping out things I don't want displayed to suit and I found a way to remove the logo div at the top of the chat popup/new window - please be away that removing this will remove some of the logout functionality you can tweak in the settings files.

In chat/lib/template find:
<div id="logoutChannelContainer">
  <input type="button" id="logoutButton" value="[LANG]logout[/LANG]" onclick="ajaxChat.logout();"/>
<label for="channelSelection">[LANG]channel[/LANG]:</label>
<select id="channelSelection" onchange="ajaxChat.switchChannel(this.options[this.selectedIndex].value);">[CHANNEL_OPTIONS/]</select>
<label for="styleSelection">[LANG]style[/LANG]:</label>
<select id="styleSelection" onchange="ajaxChat.setActiveStyleSheet(ajaxChat.getSelectedStyle());">[STYLE_OPTIONS/]</select>
<label for="languageSelection">[LANG]language[/LANG]:</label>
<select id="languageSelection" onchange="ajaxChat.switchLanguage(this.value);">[LANGUAGE_OPTIONS/]</select>
  </div>
<div id="statusIconContainer" class="statusContainerOn" onclick="ajaxChat.updateChat(null);"></div>


And replace with:
<!--<div id="logoutChannelContainer">
  <input type="button" id="logoutButton" value="[LANG]logout[/LANG]" onclick="ajaxChat.logout();"/>
<label for="channelSelection">[LANG]channel[/LANG]:</label>
<select id="channelSelection" onchange="ajaxChat.switchChannel(this.options[this.selectedIndex].value);">[ CHANNEL_OPTIONS/]</select>
<label for="styleSelection">[LANG]style[/LANG]:</label>
<select id="styleSelection" onchange="ajaxChat.setActiveStyleSheet(ajaxChat.getSelectedStyle());">[ STYLE_OPTIONS/]</select>
<label for="languageSelection">[LANG]language[/LANG]:</label>
<select id="languageSelection" onchange="ajaxChat.switchLanguage(this.value);">[ LANGUAGE_OPTIONS/]</select>
  </div>
<div id="statusIconContainer" class="statusContainerOn" onclick="ajaxChat.updateChat(null);"></div>-->


This should remove the logout part of the chat box - I have it this way so once a user logs in they will only be logged out when they clear their cache/cookie or if on another computer.

It is what suits me.

I am also planning to skin the colbat theme to suit the sites overall look - love the mod guys and cheers for all the help!
Title: Re: AjaxChat Integration
Post by: fext on June 11, 2009, 01:04:07 PM
Quote from: allumius on June 11, 2009, 12:43:36 PM
Well, i'm change my theme. Now i use BlackRainV2118
The chat work fine, but.... is posibble chat show only the last 10 lines? And the other whit scroll

I tink you need to find the guide by mrtrc266 - http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

:)

Loads of info in there
Title: Re: AjaxChat Integration
Post by: Joe N on June 11, 2009, 02:47:01 PM
Installed this to smf 2.0 rc1-1. Works fine  ;)
Title: Re: AjaxChat Integration
Post by: allumius on June 11, 2009, 03:45:48 PM
Quote from: Youngiiie on June 11, 2009, 01:04:07 PM
Quote from: allumius on June 11, 2009, 12:43:36 PM
Well, i'm change my theme. Now i use BlackRainV2118
The chat work fine, but.... is posibble chat show only the last 10 lines? And the other whit scroll

I tink you need to find the guide by mrtrc266 - http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

:)

Loads of info in there
i have read this thread, but i dont see the solution, and muy ShoutBox is very big and have now 35 lines!!!!!
Title: Re: AjaxChat Integration
Post by: fext on June 11, 2009, 04:15:13 PM
I presume you are talking about the AjaxChat popup...Try this... Although I am no expert...

in chat/lib/config.php find
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;


And change the numerical value to what you need - you may also need to look at other files - mrtrc266 can help with this more I think :)

If you are talking about the shoutbox then I think you need to either look at other settings files (mrtrc266 can help more) or mess about with the CSS that controls the display of the shoutbox?

Can anyone else help?
Title: Re: AjaxChat Integration
Post by: allumius on June 11, 2009, 04:31:57 PM
i talk about shoutbox
Title: Re: AjaxChat Integration
Post by: fext on June 11, 2009, 04:35:37 PM
Then I am sure mrtrc266 will help :)

But you could try what I mentioned above.. MAKE A BACKUP OF ANY FILE YOU MODIFY

find shoutbox/lib/config.php find:
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;


and edit the number - see if that works :)
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 11, 2009, 04:44:42 PM
Quote from: allumius on June 11, 2009, 12:43:36 PM
Well, i'm change my theme. Now i use BlackRainV2118
The chat work fine, but.... is posibble chat show only the last 10 lines? And the other whit scroll

It is the same exact edit I gave a tut on a few pages back for the shoutbox. Just with this you edit the chat.css .... I can get the exact edit later (about to bring my fiance to work) or you can go here:
http://www.simplemachines.org/community/index.php?topic=257973.msg2102583#msg2102583 (http://www.simplemachines.org/community/index.php?topic=257973.msg2102583#msg2102583)
and see what you edit in the shoutbox.css and do the edits in the same location but in the chat file (not shoutbox.css as that is for the shoutbox).
Title: Re: AjaxChat Integration
Post by: fext on June 11, 2009, 04:47:10 PM
I knew it was CSS :) just thought it might also have a setting for most lines - cheers dude!
Title: Re: AjaxChat Integration
Post by: Lighting_site on June 11, 2009, 04:47:48 PM
this work under 1.1.9?
Title: Re: AjaxChat Integration
Post by: fext on June 11, 2009, 04:59:00 PM
Yeo it works for me wicked
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 11, 2009, 05:11:40 PM
Quote from: Lighting_site on June 11, 2009, 04:47:48 PM
this work under 1.1.9?
Go here:
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 11, 2009, 09:40:53 PM
Quote from: Chit-Chat ChatterBox Boss on June 10, 2009, 12:09:43 AM
@ mrtrc266
To get around that make your chatbot smarter mod for the command situation I just added a new command called '/commands' into AJAXChat.php and if admins & mods do the command it lists all their commands and then for users their commands are listed. Was trying to do this for the smarter chatbot mod but it didn't like the user roles being used so it was easier to make a fresh command in AJAXChat that already used user roles. Now I will just use the smarter chatbot just for things without user role ...... except for the future I would still like to figure out how to get user roles to work in the smarter chatbot setup.

Only thing I am fighting that I want to know if you know how to add is in the Online Users box I want to add a 'commands' button so people can just click it and it runs off my '/commands' command. Do you know how I can add this?

I figured it out after studying the en.js and chat.js ...... I was doing everything correct in the chat.js just forgot to put the string into en.js for the button to show  :-[ But with trial and error I figured it out! :P
Title: Re: AjaxChat Integration
Post by: Krandall on June 11, 2009, 10:33:26 PM
Quote from: SunKing on May 31, 2009, 11:43:26 PM
@Krandall

You could try setting up the shoutbox as a function as I posted a few posts up, then wrap the shoutbox(); inside the if(isset($board) && $board==21 || $board==22 || $board==23 || $board==24 || $board==32 || $board==33 || $board==55) {....}

Would look something like:

if(isset($board) && $board==21 || $board==22 || $board==23 || $board==24 || $board==32 || $board==33 || $board==55) {
shoubox();
}

Here's what I have (Below) when I do it this way, the shout box doesn't show on any pages.  ? Thoughts?


//shoutBox

if(isset($board) && $board==1.0 || $board==33.0) {
shoubox();

if (!empty($modSettings['enableShoutBox'])){
if (allowedTo('shout_access')){
// We'll have to use the cookie to remember the shoutBox header...
if ($context['user']['is_guest'])
$options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);

echo '
<script language="JavaScript" type="text/javascript">
var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

function ajax_shoutBox_collapse(mode)
{';

if ($context['user']['is_guest'])
echo '
document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

echo '
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("ShoutBox").style.display = mode ? "none" : "";

sb_current_header = mode;
}
</script>';

if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<div class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
</div>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
', getShoutBoxContent() ,'
</div>
</div>';
}
}
}
}
Title: Re: AjaxChat Integration
Post by: [unplugged] on June 11, 2009, 10:39:37 PM
This part if(isset($board) && $board==1.0 || $board==33.0) {
shoutbox();
}
needs to go where you want the shoutbox to display (provided it's on the boards you have set up). In other words, if you want the shoutbox to be at the bottom of the page, then you need to put that code in an appropriate location at the bottom of the layout.

Just before the ?> at the very end of the file, you need to have this: function shoutbox()
{
   if (!empty($modSettings['enableShoutBox'])){
      if (allowedTo('shout_access')){
         // We'll have to use the cookie to remember the shoutBox header...
         if ($context['user']['is_guest'])
            $options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);
           
         echo '
      <script language="JavaScript" type="text/javascript">
         var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

         function ajax_shoutBox_collapse(mode)
         {';

         if ($context['user']['is_guest'])
            echo '
            document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
         else
            echo '
            smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

         echo '
            document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("ShoutBox").style.display = mode ? "none" : "";

            sb_current_header = mode;
            }
      </script>';

         if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
            echo'
      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
         ', getShoutBoxContent() ,'
         </div>
      </div>';
         }
      }
   }
   }
which is the function itself.
Title: Re: AjaxChat Integration
Post by: llyon on June 12, 2009, 12:33:34 AM
I've installed AjaxChat (ajax_chat-0.8.2_SMF.zip)

And have then tried to install the integration mod - AjaxChat Integration_3.0..zip

However, the mod immediately responds with "The package you are trying to download or install is either corrupt or not compatible with this version of SMF." -  this is on SMF 2.0 Rc1-1

Anyone have any suggestions ?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 12, 2009, 01:24:57 AM
Quote from: allumius on June 11, 2009, 03:45:48 PM
Quote from: Youngiiie on June 11, 2009, 01:04:07 PM
Quote from: allumius on June 11, 2009, 12:43:36 PM
Well, i'm change my theme. Now i use BlackRainV2118
The chat work fine, but.... is posibble chat show only the last 10 lines? And the other whit scroll

I tink you need to find the guide by mrtrc266 - http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

:)

Loads of info in there
i have read this thread, but i dont see the solution, and muy ShoutBox is very big and have now 35 lines!!!!!

I take it that you mean everytime you type a message the shoutbox just keeps getting bigger and bigger? If that it the case then you need to do this edit

Open yourforum/Themes/yourtheme/style.css

In the very first line of that file put
@import url(../../shoutBox/css/shoutbox.css);
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 12, 2009, 01:28:41 AM
Quote from: llyon on June 12, 2009, 12:33:34 AM
I've installed AjaxChat (ajax_chat-0.8.2_SMF.zip)

And have then tried to install the integration mod - AjaxChat Integration_3.0..zip

However, the mod immediately responds with "The package you are trying to download or install is either corrupt or not compatible with this version of SMF." -  this is on SMF 2.0 Rc1-1

Anyone have any suggestions ?

Completely uninstall the ajax_chat-0.8.2_SMF.zip, remove all files and folders, drop all database tables and simply install this AJAX Chat Intergration Mod.

The Intergration Mod will install the chat for you and this will work for 1.1.9
http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610 (http://www.simplemachines.org/community/index.php?topic=257973.msg2075610#msg2075610)
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 12, 2009, 02:06:59 AM
@ Chatter, glad you got the Smarter Chatbot sorted. I haven't had time to play with it but I plan on implementing on my site.
Title: Re: AjaxChat Integration
Post by: llyon on June 12, 2009, 03:24:49 AM
Well, that worked - I now have the shoutbox, but the chat is asking for username & password - but it will not accept the forum credentials.
Title: Re: AjaxChat Integration
Post by: fext on June 12, 2009, 05:19:11 AM
Hello again!

Does anyone know if there is a command list for the chat?

Things like /help to bring up a list of commands or is there and actual command list?

Also is there a command to load in previous messages? something like /history+10
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 12, 2009, 10:25:03 AM
Quote from: llyon on June 12, 2009, 03:24:49 AM
Well, that worked - I now have the shoutbox, but the chat is asking for username & password - but it will not accept the forum credentials.

Did you drop the tables from your database and remove the /chat folder before installing the AJAX Chat Intergration Mod?
Title: Re: AjaxChat Integration
Post by: fext on June 12, 2009, 11:10:14 AM
Quote from: Youngiiie on June 12, 2009, 05:19:11 AM
Hello again!

Does anyone know if there is a command list for the chat?

Things like /help to bring up a list of commands or is there and actual command list?

Also is there a command to load in previous messages? something like /history+10


Anyone?
Title: Re: AjaxChat Integration
Post by: mrtrc266 on June 12, 2009, 11:29:34 AM
@ Youngiiie I don't believe there is a command for "Help" but on the bottom right of the ChatRoom there is a picture "?" that opens up the help window.

To load a certain amount of previous messages find and change "10" to whatever you prefer

/chat/lib/config.php
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;
Title: Re: AjaxChat Integration
Post by: fext on June 12, 2009, 01:50:16 PM
How would you get them to show? Is there a command to bring up the previous messages?

Is there a way to default number of messages displayed for a user? If I click the settings tab and made mine 50 how would I make that the default for everyone?
Title: Re: AjaxChat Integration
Post by: .HuNTeR. on June 12, 2009, 03:51:38 PM
3.2
June 13 2009:
New features:
+ Chat moderate permission added.
+ Shoutbox view/shout/moderate permission added.
+ Improvements in coding for less manual edits in 3rd party themes.


Bug fixes:
- users in chat become moderator when they have calender post right.
- some minor bug in smf 2 fixed.
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 12, 2009, 04:12:13 PM
Quote from: Youngiiie on June 12, 2009, 05:19:11 AM
Hello again!

Does anyone know if there is a command list for the chat?

Things like /help to bring up a list of commands or is there and actual command list?

Also is there a command to load in previous messages? something like /history+10

I have made a /commands command and also a button in the users online area 'List Commands'. If you want to see it you can go to my site I will be in the chat. Register on the site to view the chat button go in the chat I will be there and you can use the command if that is what you are looking for I will ask you for your files and I will make the edits needed.

(If you do sign up put 'Caleb' as a referral  :P)
Title: Re: AjaxChat Integration
Post by: Chit-Chat ChatterBox Boss on June 12, 2009, 05:47:58 PM
Quote from: Chit-Chat ChatterBox Boss on June 10, 2009, 06:20:38 PM
@mrtrc266 and @ SunKing

I don't know if you two remember maybe about a week ago I talked to both of you (different times) about the shoutbox message limit per minute. mrtrc266 & SunKing you both tried it and said it does not work (same with me). I just wanted to clarify we are all retarded about this LOL because in the script where it is coded into AJAXChat.php it is coded for it not to apply for admins and moderators ;D. So that means all 3 of us trying it on our main account thats why it is not working. I tried it on my sites test account and it worked. Now that has been stated ..... I have a few questions.


  • Where can I change the time for the limit. Right now it is 1 minute = how many messages you set allowed. I want it to be like 5 minutes = how many messages you set allowed.
  • Where can I change the message that pops up (right now its this) "Error: You exceeded the maximum number of messages per minute." to like "Error: You exceeded the maximum number of messages per every 5 minutes. Please submit only 1 message within a 5 minute period." (I want this changed only when I get #1 changed).
  • In the Online Users box I want to add a 'Command List' button so people can just click it and it runs off my '/commands' command. Do you know how I can add this?
I figured out #1
function floodControl() {

// Moderators and Admins need no flood control:

if($this->getUserRole() == AJAX_CHAT_MODERATOR || $this->getUserRole() == AJAX_CHAT_ADMIN) {

return true;

}

$time = time();

// Check the time of the last inserted message:

if($this->getInsertedMessagesRateTimeStamp()+60 < $time) {

$this->setInsertedMessagesRateTimeStamp($time);

$this->setInsertedMessagesRate(1);

} else {

// Increase the inserted messages rate:

$rate = $this->getInsertedMessagesRate()+1;

$this->setInsertedMessagesRate($rate);

// Check if message rate is too high:

if($rate > $this->getConfig('maxMessageRate')) {

$this->insertChatBotMessage(

$this->getPrivateMessageID(),

'/error MaxMessageRate'

);

// Return false so the message is not inserted:

return false;

}

}

return true;

}


I changed
if($this->getInsertedMessagesRateTimeStamp()+60 < $time) {
means 60 seconds so if I set it to 
if($this->getInsertedMessagesRateTimeStamp()+300 < $time) {
then it will be 
$config['maxMessageRate'] = 1;
per every 5 minutes (300 seconds)

I am guessing #2 is in the AJAXChat.php or in the en.php so I will find that

#3 I figured out and mentioned a few posts back.

If anyone needs any help on how to do this stuff just ask ...... I can edit it for you. If you want me to do the edits for you might be faster to contact me on my site.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: llyon on June 12, 2009, 10:20:42 PM
Quote from: mrtrc266 on June 12, 2009, 10:25:03 AM
Quote from: llyon on June 12, 2009, 03:24:49 AM
Well, that worked - I now have the shoutbox, but the chat is asking for username & password - but it will not accept the forum credentials.

Did you drop the tables from your database and remove the /chat folder before installing the AJAX Chat Intergration Mod?

Yeah mate - completely obliterated it.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Zeshin on June 12, 2009, 11:36:27 PM
Hey guys. Just wanted to say that I think this mod is really good and whoever made it did a great job on it. :D

But, I do have one question.. I just installed the 3.2 version on my SMF 2.0 RC1 forum and I want to get the shoutbox to appear right above the footer. I'm having some trouble figuring this out.. can anyone help me with this?

Thanks in advance. :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 12, 2009, 11:53:58 PM
I can. I had it at the bottom of my test site at one time. Attach your index.template.php and your BoardIndex.template.php, as I cannot remember which one I edited to move it.  :P
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Zeshin on June 13, 2009, 12:02:43 AM
Here they are. Thanks. :)

Edit: Actually, I couldn't find any HTML that I could move around in the file. As far as I could tell, the reason why it's in the place that it is currently is because of this code in Load.php:


$context['template_layers'] = array('html', 'body');
array_splice($context['template_layers'], 2, 0, 'shout');


But, that was just from me playing around with it after an hour or so. ;X
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 13, 2009, 12:16:39 AM
I moved it within the index.template.php. This puts it at the bottom of the page. Enjoy.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Zeshin on June 13, 2009, 12:24:10 AM
Actually, now it shows up at the top and the bottom and the bottom doesn't work. :(

http://aedolyn.net/tech/forum/

^ That is my test forum, if you don't mind registering to take a look. :\
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 13, 2009, 12:29:30 AM
I am registering now. ;)

Meanwhile, you can have a look at it in action here:  http://www.empireofthesun.net/testsite/index.php#bottom
Title: Re: AjaxChat Integration (3.2 Released)
Post by: .HuNTeR. on June 13, 2009, 12:56:30 AM
@Zeshin
replace your index.template.php and boardindex.termplate.php with original one
open Sources/Load.php
find:

array_splice($context['template_layers'], 1, 0, 'shout');


replace with

//array_splice($context['template_layers'], 1, 0, 'shout');


open your index.template.php or boardindex.termplate.php and place

template_shout_above();

anywhere you want

@mrtrc266 please add this to the FAQ
Title: Re: AjaxChat Integration
Post by: Krandall on June 13, 2009, 01:30:57 AM
SunKing,

I edited my index.template, got it to how it should look, but for some reason, chat doesn't show up..... here's my index? Can you see what I'm doing wrong?

-Randy
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 13, 2009, 01:33:19 AM
I am off to bed now Krandall (I have a 6 hour canoe trip tomorrow  :P ) but I will take a look at it when I get back. Or maybe somebody else can help you with it before then. Either way, we will get it sorted for you.

EDIT: At quick glance, the code looks fine in the index.template.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Joe N on June 13, 2009, 03:04:09 AM
Glad you updated it!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: drhamza on June 13, 2009, 06:22:11 AM
QuoteFatal error:  Call to undefined function chatOnlineUsers() in /home2/jumssnet/public_html/forum/Sources/Load.php(2012) : eval()'d code on line 426


that's what i got after uninstalling the ajax chat integration mod.....

i opened the load.php, line 426 is empty...... i searched for chat but nothing was there

help me please


www.jumss.net/forum
user: tester    pass: tester
Title: Re: AjaxChat Integration (3.2 Released)
Post by: drhamza on June 13, 2009, 07:03:37 AM
by the way, i uninstalled it to install 3.2.... next time, do i have to uninstall anything or upgrading would be enough?

thank you
Title: Re: AjaxChat Integration (3.2 Released)
Post by: .HuNTeR. on June 13, 2009, 07:50:58 AM
only uninstall the previous version and install new one
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Paracelsus on June 13, 2009, 08:22:10 AM
Quote from: .HuNTeR. on June 13, 2009, 07:50:58 AM
only uninstall the previous version and install new one

If I want to install it manually? Is there a file change log?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: scareshack on June 13, 2009, 08:30:13 AM
Installed it and it works...thanks for the help on that(previous thread)

Have a few questions, please bare with me as all this is new to me.

How do I add the link to chat at the top of forum?

I want to set it at a certain color and not have members have option of changing?

Where do I change the header? like add an image for header?

thankx in advance

yes a few basic questions, I will poke around a bit more, thanks in advance all
Title: Re: AjaxChat Integration (3.2 Released)
Post by: drhamza on June 13, 2009, 08:34:12 AM
Quote from: .HuNTeR. on June 13, 2009, 07:50:58 AM
only uninstall the previous version and install new one
that's the problem my friend, when i installed it, the whole site was ruined (fatal error mentioned above)
anyhow, i used the backup of "before ajax chat un-installation"... the site is back, but in the place where "chat" button in the header is supposed to appear, an empty space appears....

i installed 3.2 hoping that it'll solve the problem but another fatal error showed up... so i'm using the backup again now :(.... would re-intalling 3.0 at least return things to the way they were?

thank you
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 13, 2009, 09:28:37 AM
QuoteFatal error:  Call to undefined function chatOnlineUsers() in /home2/jumssnet/public_html/forum/Sources/Load.php(2012) : eval()'d code on line 426

That error isn't going to be in Load.php. The error is located on line 426 of the file that Load.php is trying to load. Specifically, on line 426, there is a call to chatOnlineUsers();. The function itself however is somehow missing. I am about to be leaving for the day, but I can fix this for you when I get home this evening. Attach your index.template.php and your BoardIndex.template.php.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: drhamza on June 13, 2009, 09:52:00 AM
thank you very much sunKing

let me tell you how much complicated it got, sequence of events:

1. uninstalled ajax 3.0
2. got
Fatal error:  Call to undefined function chatOnlineUsers() in /home2/jumssnet/public_html/forum/Sources/Load.php(2012) : eval()'d code on line 426
3. used the ajaxchat backup
4. everything works, but instead of having chat, a blank space is there (ugly, cutting the theme)
5. installed 3.2
6. another fatal error
7. used back up "before ajax chat"
8. 500 Server Error

my site: www.jumss.net/forum (http://www.jumss.net/forum)    user: tester  pass: tester
though this one works www.jumss.net/testforum (http://www.jumss.net/testforum)
:'( :'( :'(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: primetime on June 13, 2009, 09:55:59 AM
So if I have version 3.0 installed, I have to uninstall it first then install version 3.2? Wouldn't that mess up  some of the themes that I have made it work in .. such as my silent wave theme?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 13, 2009, 10:06:32 AM
Quote from: primetime on June 13, 2009, 09:55:59 AM
So if I have version 3.0 installed, I have to uninstall it first then install version 3.2? Wouldn't that mess up  some of the themes that I have made it work in .. such as my silent wave theme?

Yes you would have to uninstall it on your custom themes, but reinstalling back to custom themes for 3.2 will be a lot easier as there are only a cpl edits.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 13, 2009, 10:08:43 AM
@ drhamza PM me temp FTP access details and I'll clean this up for you.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: drhamza on June 13, 2009, 11:37:32 AM
ok, problem solved :D, thanks to mrtrc266, cheers
Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4b11l on June 13, 2009, 03:17:53 PM
Is it possible to make just one channel. Just the channel called PUBLIC rather than every one of my boards? Or maybe show only particular boards?

Also, can the settings in the chat be applied to everyone, but can only be adjusted by the admin/mods?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Kat-2 on June 13, 2009, 03:23:29 PM
Well, pooh!  But, I had a feeling........

I get these test failed when I go to uninstall..



Quote1. Execute Modification ./Sources/BoardIndex.php Test failed  
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/ManagePermissions.php Test successful
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
6. Execute Modification ./Themes/default/index.template.php Test failed  
7. Execute Modification ./Themes/default/style.css Test successful
8. Execute Modification ./Themes/default/languages/Help.english.php Test successful
9. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
10. Execute Modification ./Themes/default/languages/Help.persian.php Skipping file
11. Execute Modification

Title: Re: AjaxChat Integration (3.2 Released)
Post by: Doyne on June 13, 2009, 03:36:41 PM
OK.  Heres my deal.  I have the Mod up and running on both my default and custom themes.  I can utilize shout box or not in both.  I have the button working on both.  The button is  great in default but .......
The button in the custom is not properly aligned.  I am not a code talker so I need a little help to get the Button aligned with the rest of my buttons.  also I want the chat button to only be visable to loggeb in members. What do I need to add or change?  Please Help.


[quote]// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '<li', $current_action == 'login' ? ' id="active"' : '', '><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';

// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '<li', $current_action == 'register' ? ' id="active"' : '', '><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';

// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';

// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li', $current_action == 'logout' ? ' id="active"' : '', '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';
echo '
  </ul>';
}

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td> </td>';

echo '
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode('  |  ', $button_strip) , '</td>
<td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';
}[/quote]
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 04:20:52 PM
Quote from: 4b11l on June 13, 2009, 03:17:53 PM
Is it possible to make just one channel. Just the channel called PUBLIC rather than every one of my boards? Or maybe show only particular boards?

Also, can the settings in the chat be applied to everyone, but can only be adjusted by the admin/mods?
In chat/lib/config/php
Find

// Default channelName used together with the defaultChannelID if no channel with this ID exists:
$config['defaultChannelName'] = 'Public';
// ChannelID used when no channel is given:
$config['defaultChannelID'] = 0;
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;

Replace With

// Default channelName used together with the defaultChannelID if no channel with this ID exists:
$config['defaultChannelName'] = 'Public';
// ChannelID used when no channel is given:
$config['defaultChannelID'] = 0;
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(0);

This will make only public channel be lsited. To show other channels add their ID to the array
Example
// Default channelName used together with the defaultChannelID if no channel with this ID exists:
$config['defaultChannelName'] = 'Public';
// ChannelID used when no channel is given:
$config['defaultChannelID'] = 0;
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(0, 4, 7, 8);

Now the channels Public = ID 0 and the channels with the ID's 4, 7, and 8 will be listed.

I recommend going through the full config.php in chat/lib and reading it all and seeing the things you can change.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4b11l on June 13, 2009, 04:33:30 PM
Quote from: Chit-Chat ChatterBox Boss on June 13, 2009, 04:20:52 PM
I recommend going through the full config.php in chat/lib and reading it all and seeing the things you can change.

Thanks a lot! I did go through it and tried to do it myself but could not figure it out. I understood the documentation, but was not able to successfully do it the right way. I didn't add the array I just put = 0;

Thanks a lot! Do you know if the settings are configurable as stated above?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 05:13:28 PM
Quote from: 4b11l on June 13, 2009, 04:33:30 PM
Quote from: Chit-Chat ChatterBox Boss on June 13, 2009, 04:20:52 PM
I recommend going through the full config.php in chat/lib and reading it all and seeing the things you can change.

Thanks a lot! I did go through it and tried to do it myself but could not figure it out. I understood the documentation, but was not able to successfully do it the right way. I didn't add the array I just put = 0;

Thanks a lot! Do you know if the settings are configurable as stated above?

The settings as far as the channels? That change I showed you above is for everyone (as far as allowing only those channels to be displayed and used). Only way you can add more or change the displayed channels is through the config.php
If this is not what you were asking Do you know if the settings are configurable as stated above?
Then please re-ask with more detail
Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4b11l on June 13, 2009, 05:34:04 PM
Quote from: Chit-Chat ChatterBox Boss on June 13, 2009, 05:13:28 PM
The settings as far as the channels? That change I showed you above is for everyone (as far as allowing only those channels to be displayed and used). Only way you can add more or change the displayed channels is through the config.php
If this is not what you were asking Do you know if the settings are configurable as stated above?
Then please re-ask with more detail

I'm referring to the settings in the chat. Where you can allow bbcode, images, etc.. is it possible to make these settings configurable only by the admin/mod, yet applied to everyone? As it seems right now, it looks like it's individual settings.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 05:40:00 PM
Quote from: 4b11l on June 13, 2009, 05:34:04 PM
Quote from: Chit-Chat ChatterBox Boss on June 13, 2009, 05:13:28 PM
The settings as far as the channels? That change I showed you above is for everyone (as far as allowing only those channels to be displayed and used). Only way you can add more or change the displayed channels is through the config.php
If this is not what you were asking Do you know if the settings are configurable as stated above?
Then please re-ask with more detail

I'm referring to the settings in the chat. Where you can allow bbcode, images, etc.. is it possible to make these settings configurable only by the admin/mod, yet applied to everyone? As it seems right now, it looks like it's individual settings.

Do you mean that only admin can use them or that in the chat admin can set if they are on and everyone can use them?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4b11l on June 13, 2009, 06:15:18 PM
Quote from: Chit-Chat ChatterBox Boss on June 13, 2009, 05:40:00 PM
Quote from: 4b11l on June 13, 2009, 05:34:04 PM
Quote from: Chit-Chat ChatterBox Boss on June 13, 2009, 05:13:28 PM
The settings as far as the channels? That change I showed you above is for everyone (as far as allowing only those channels to be displayed and used). Only way you can add more or change the displayed channels is through the config.php
If this is not what you were asking Do you know if the settings are configurable as stated above?
Then please re-ask with more detail

I'm referring to the settings in the chat. Where you can allow bbcode, images, etc.. is it possible to make these settings configurable only by the admin/mod, yet applied to everyone? As it seems right now, it looks like it's individual settings.

Do you mean that only admin can use them or that in the chat admin can set if they are on and everyone can use them?

I don't want to allow the changing of the settings by the regular members. The admins are able to set the settings and save it for current and future use?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 06:20:03 PM
Quote from: 4b11l on June 13, 2009, 06:15:18 PM
I don't want to allow the changing of the settings by the regular members. The admins are able to set the settings and save it for current and future use?
What settings can normal members change as of right now that you dont want them to be able to?
Make a list please.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4b11l on June 13, 2009, 07:02:22 PM
font color and image bbcode settings.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 07:13:04 PM
Oh you don't want normal members to be able to use the Bold Underline .... etc font color or put images in or anything just admins?

I will get to posting the change for this here shortly (I am doing 20 things at once)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4b11l on June 13, 2009, 08:02:24 PM
Quote from: Chit-Chat ChatterBox Boss on June 13, 2009, 07:13:04 PM
Oh you don't want normal members to be able to use the Bold Underline .... etc font color or put images in or anything just admins?

I will get to posting the change for this here shortly (I am doing 20 things at once)

Alright, awesome. I don't mind the regular bbcode, but not the color code and picture just because it could get spammed or overused. Thanks for the help. I will keep checking back regularly for it.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: dzinerfusion on June 13, 2009, 09:04:44 PM
Hi sweet new version, how do i get it without changing my files? I don;t wanna unistalled 3.0 is there a way to upgrade to it?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 09:45:59 PM
Quote from: 4b11l on June 13, 2009, 08:02:24 PM
Quote from: Chit-Chat ChatterBox Boss on June 13, 2009, 07:13:04 PM
Oh you don't want normal members to be able to use the Bold Underline .... etc font color or put images in or anything just admins?

I will get to posting the change for this here shortly (I am doing 20 things at once)

Alright, awesome. I don't mind the regular bbcode, but not the color code and picture just because it could get spammed or overused. Thanks for the help. I will keep checking back regularly for it.

Look at these areas (trial and error will be your best friend). To turn "off" a string or code just at /*at the beginning and */ at the end of the code (lines) your turning off.

Look in these areas for the bbcode and everything dealing with that area.

/chat/lib/template/loggedIn.html
function initialize() {
ajaxChat.updateButton('audio', 'audioButton');
ajaxChat.updateButton('autoScroll', 'autoScrollButton');
document.getElementById('bbCodeSetting').checked = ajaxChat.getSetting('bbCode');
document.getElementById('bbCodeImagesSetting').checked = ajaxChat.getSetting('bbCodeImages');
document.getElementById('bbCodeColorsSetting').checked = ajaxChat.getSetting('bbCodeColors');
document.getElementById('hyperLinksSetting').checked = ajaxChat.getSetting('hyperLinks');
document.getElementById('lineBreaksSetting').checked = ajaxChat.getSetting('lineBreaks');
document.getElementById('emoticonsSetting').checked = ajaxChat.getSetting('emoticons');
document.getElementById('autoFocusSetting').checked = ajaxChat.getSetting('autoFocus');
document.getElementById('maxMessagesSetting').value = ajaxChat.getSetting('maxMessages');
document.getElementById('wordWrapSetting').checked = ajaxChat.getSetting('wordWrap');
document.getElementById('maxWordLengthSetting').value = ajaxChat.getSetting('maxWordLength');
document.getElementById('dateFormatSetting').value = ajaxChat.getSetting('dateFormat');
document.getElementById('persistFontColorSetting').checked = ajaxChat.getSetting('persistFontColor');


<div id="bbCodeContainer">
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>
<input type="button" value="[LANG]bbCodeLabelItalic[/LANG]" title="[LANG]bbCodeTitleItalic[/LANG]" onclick="ajaxChat.insertBBCode('i');" style="font-style:italic;"/>
<input type="button" value="[LANG]bbCodeLabelUnderline[/LANG]" title="[LANG]bbCodeTitleUnderline[/LANG]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;"/>
<input type="button" value="[LANG]bbCodeLabelQuote[/LANG]" title="[LANG]bbCodeTitleQuote[/LANG]" onclick="ajaxChat.insertBBCode('quote');"/>
<input type="button" value="[LANG]bbCodeLabelCode[/LANG]" title="[LANG]bbCodeTitleCode[/LANG]" onclick="ajaxChat.insertBBCode('code');"/>
<input type="button" value="[LANG]bbCodeLabelURL[/LANG]" title="[LANG]bbCodeTitleURL[/LANG]" onclick="ajaxChat.insertBBCode('url');"/>
<input type="button" value="[LANG]bbCodeLabelImg[/LANG]" title="[LANG]bbCodeTitleImg[/LANG]" onclick="ajaxChat.insertBBCode('img');"/>
<input type="button" value="[LANG]bbCodeLabelColor[/LANG]" title="[LANG]bbCodeTitleColor[/LANG]" onclick="ajaxChat.showHide('colorCodesContainer', null);"/>
</div>



/chat/js/config.js
Find
// Defines the settings which can be modified by users:
settings: {
// Defines if BBCode tags are replaced with the associated HTML code tags:
bbCode: true,
// Defines if image BBCode is replaced with the associated image HTML code:
bbCodeImages: true,
// Defines if color BBCode is replaced with the associated color HTML code:
bbCodeColors: true,
// Defines if hyperlinks are made clickable:
hyperLinks: true,
// Defines if line breaks are enabled:
lineBreaks: true,
// Defines if emoticon codes are replaced with their associated images:
emoticons: true,

// Defines if the focus is automatically set to the input field on chat load or channel switch:
autoFocus: true,
// Defines if the chat list scrolls automatically to display the latest messages:
autoScroll: true,
// The maximum count of messages displayed in the chat list (will be ignored if set to 0):
maxMessages: 0,

// Defines if long words are wrapped to avoid vertical scrolling:
wordWrap: true,
// Defines the maximum length before a word gets wrapped:
maxWordLength: 32,

// Defines the format of the date and time displayed for each chat message:
dateFormat: '(%H:%i:%s)',

// Defines if font colors persist without the need to assign them to each message:
persistFontColor: false,
// The default font color, uses the page default font color if set to null:
fontColor: null,

// Defines if sounds are played:
audio: true,
// Defines the sound volume (0.0 = mute, 1.0 = max):
audioVolume: 1.0,

// Defines the sound that is played when normal messages are reveived:
soundReceive: 'sound_1',
// Defines the sound that is played on sending normal messages:
soundSend: 'sound_2',
// Defines the sound that is played on channel enter or login:
soundEnter: 'sound_3',
// Defines the sound that is played on channel leave or logout:
soundLeave: 'sound_4',
// Defines the sound that is played on chatBot messages:
soundChatBot: 'sound_5',
// Defines the sound that is played on error messages:
soundError: 'sound_6',

// Defines if the document title blinks on new messages:
blink: true,
// Defines the blink interval in ms:
blinkInterval: 500,
// Defines the number of blink intervals:
blinkIntervalNumber: 10
},




You can change a 'true' to 'false' or turn off a line by placing /* at the start and */ at the end

That is not EVERYTHING to do with bbcode stuff but it will get you in the right place and a average person with the detail above and trial and error can figure it out. If you have more problems past this just shout. REMEMBER to make backups before trying to edit things and using trial and error.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4b11l on June 14, 2009, 12:03:35 AM
Is this just simply making the links invisible/not there?..

I want to know if it's possible to only have the admin/mod be able to configure those settings and apply it to everyone because I think just hiding it wont help. Some of these settings come checked already so hiding it just means they wont be able to check/uncheck it.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 14, 2009, 12:59:37 AM
Right if you want to remove the function completely for everyone so they can't click the button and also making the tags not work example (//) you can kill the line with /* */ around the lines.

To set a certain function like
if($this->getUserRole() == AJAX_CHAT_ADMIN || $this->getUserRole() == AJAX_CHAT_MODERATOR)
That will take a little bit more work. I mean you could set it like

if($this->getUserRole() == AJAX_CHAT_ADMIN || $this->getUserRole() == AJAX_CHAT_MODERATOR)
{
document.getElementById('bbCodeImagesSetting').checked = ajaxChat.getSetting('bbCodeImages');
      }

And like

      if($this->getUserRole() == AJAX_CHAT_ADMIN || $this->getUserRole() == AJAX_CHAT_MODERATOR)
{
bbCodeImages: true,
      }
      else
      {
         bbCodeImages: false,
      }

But both of those were just out of the top of my head. We would have to open all the files that deal with the say bbcode image tags and set it like that or something similar (but there is more to it then just adding that around the line) for say the bbcode image tag to only work for admin and moderators.

Who knows maybe mrtrc266 has already done something like this and he can give you some pointers also. If not when I get some free time I will try to do this modification for you. But honestly with what I have going on in real life (family) and my site and trying to help people on here and SMFH idk might be a few days.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Krandall on June 14, 2009, 01:48:20 AM
Quote from: SunKing on June 13, 2009, 01:33:19 AM
I am off to bed now Krandall (I have a 6 hour canoe trip tomorrow  :P ) but I will take a look at it when I get back. Or maybe somebody else can help you with it before then. Either way, we will get it sorted for you.

EDIT: At quick glance, the code looks fine in the index.template.

Yeah, it doesn't give me any sort of errors, but when I upload it, the shout box doesnt show up anywhere on the forum. :(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 14, 2009, 02:11:39 AM
Quote from: Krandall on June 14, 2009, 01:48:20 AM
Quote from: SunKing on June 13, 2009, 01:33:19 AM
I am off to bed now Krandall (I have a 6 hour canoe trip tomorrow  :P ) but I will take a look at it when I get back. Or maybe somebody else can help you with it before then. Either way, we will get it sorted for you.

EDIT: At quick glance, the code looks fine in the index.template.

Yeah, it doesn't give me any sort of errors, but when I upload it, the shout box doesnt show up anywhere on the forum. :(
You sure you enabled it? In the admin section and in the permissions?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 14, 2009, 02:17:10 AM
@Krandall

Can you post or PM a link to your site? Like chit-chat said, it needs to be enabled in admin section.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4b11l on June 14, 2009, 03:06:39 AM
Thanks a lot.

I have everything setup the way I wanted it now. One last question, how can I bold or make the text a little bigger on the forum info center?

"3 users are in chat::"

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi39.photobucket.com%2Falbums%2Fe158%2Fdcobeo7931%2FUntitled-1.gif&hash=93877affa3dfaa302da3cfce4d2135dae4f6974d)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 14, 2009, 05:11:10 AM
Quote from: 4b11l on June 14, 2009, 03:06:39 AM
Thanks a lot.

I have everything setup the way I wanted it now. One last question, how can I bold or make the text a little bigger on the forum info center?

"3 users are in chat::"

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi39.photobucket.com%2Falbums%2Fe158%2Fdcobeo7931%2FUntitled-1.gif&hash=93877affa3dfaa302da3cfce4d2135dae4f6974d)

Use the parse and see the edits it makes in modifications.english.php
Mine is setup like this to make it bold (I edited my lines of what it says so it wont be same but you will get the idea). Remember to clear your sites cache and your own after doing changes if they dont appear right away.
$txt['chat_aUser'] = ' <b>member is in the chat</b>';
$txt['chat_users'] = ' <b>members are in the chat:</b>';
$txt['chat_no_user'] = '<b>No members are in  the chat.</b>';

Obviously when you do this it only bolds those lines the number is not bold. I will ahve to try to see where that is coded in to tell it to bold it.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: .HuNTeR. on June 14, 2009, 05:37:52 AM
in BoardIndex.template.php
find:

// users in chat
if (isset($context['chat_links'])){
if (count($context['chat_links']) == 0 )
  echo '<br />' . $txt['chat_no_user'];
elseif (count($context['chat_links']) == 1 )
  echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
else
  echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }

and replace with:

// users in chat
if (isset($context['chat_links'])){
if (count($context['chat_links']) == 0 )
  echo '<br /><b>' . $txt['chat_no_user'], '</b>';
elseif (count($context['chat_links']) == 1 )
  echo '<br /> <b> 1' . $txt['chat_aUser']. ':</b><br />', implode($context['chat_links']);
else
  echo '<br /><b> ' . count($context['chat_links']). $txt['chat_users']. ':</b><br />', implode(', ', $context['chat_links']);
  }


and your text will be bold, if you want use any other html tag replace <b> tag with your own
Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4b11l on June 14, 2009, 12:17:21 PM
Thanks guys for the help. Keep up the work.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 14, 2009, 04:06:37 PM
Quote from: .HuNTeR. on June 14, 2009, 05:37:52 AM
in BoardIndex.template.php
find:

// users in chat
if (isset($context['chat_links'])){
if (count($context['chat_links']) == 0 )
  echo '<br />' . $txt['chat_no_user'];
elseif (count($context['chat_links']) == 1 )
  echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
else
  echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }

and replace with:

// users in chat
if (isset($context['chat_links'])){
if (count($context['chat_links']) == 0 )
  echo '<br /><b>' . $txt['chat_no_user'], '</b>';
elseif (count($context['chat_links']) == 1 )
  echo '<br /> <b> 1' . $txt['chat_aUser']. ':</b><br />', implode($context['chat_links']);
else
  echo '<br /><b> ' . count($context['chat_links']). $txt['chat_users']. ':</b><br />', implode(', ', $context['chat_links']);
  }


and your text will be bold, if you want use any other html tag replace <b> tag with your own

THank you hunter for placing the fix for the number area too ...  :-[ Been kinda busy
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Shades. on June 14, 2009, 06:49:01 PM
Just installed this and noticed that "Guests" are able to chat even though I have it disabled in permissions for guests. They are just logged in as 49281 or some othe number and are able to chat. Is there any way to mke them register first and to also not show the "Chat" link to guests?

Thanks
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 14, 2009, 06:50:33 PM
Yes

You do this via the admins permissions.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Shades. on June 14, 2009, 06:59:34 PM
Quote from: TheListener on June 14, 2009, 06:50:33 PM
Yes

You do this via the admins permissions.
What I'm saying is...I did set all this in admin and guests are still able to access it for some reason. Did I miss something maybe? :o

Thanks 8)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 14, 2009, 07:58:43 PM
Quote from: BoZilla on June 14, 2009, 06:49:01 PM
Just installed this and noticed that "Guests" are able to chat even though I have it disabled in permissions for guests. They are just logged in as 49281 or some othe number and are able to chat. Is there any way to mke them register first and to also not show the "Chat" link to guests?

Thanks

Go to/chat/lib/config.php

Find (Mine are already set to 'false' if yours are set to 'true' change them to 'false')
// Enable/Disable guest logins:
$config['allowGuestLogins'] = false;
// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
$config['allowGuestWrite'] = false;
// Allow/Disallow guest users to choose their own userName:
$config['allowGuestUserName'] = false;


Make the needed adjustments there for guests. You can look through the whole config.php you will see many many things that you can change in there easily for many things in the chat.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Shades. on June 14, 2009, 09:11:53 PM
I will check that out...thanks! 8)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Shades. on June 14, 2009, 09:25:06 PM
Quote from: Chit-Chat ChatterBox Boss on June 14, 2009, 07:58:43 PM
Quote from: BoZilla on June 14, 2009, 06:49:01 PM
Just installed this and noticed that "Guests" are able to chat even though I have it disabled in permissions for guests. They are just logged in as 49281 or some othe number and are able to chat. Is there any way to mke them register first and to also not show the "Chat" link to guests?

Thanks

Go to/chat/lib/config.php

Find (Mine are already set to 'false' if yours are set to 'true' change them to 'false')
// Enable/Disable guest logins:
$config['allowGuestLogins'] = false;
// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
$config['allowGuestWrite'] = false;
// Allow/Disallow guest users to choose their own userName:
$config['allowGuestUserName'] = false;


Make the needed adjustments there for guests. You can look through the whole config.php you will see many many things that you can change in there easily for many things in the chat.

That did the trick...thanks lot! :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 15, 2009, 02:13:43 AM
Post Notification

After seeing this on another members forum I am looking at doing the same to my chat.

http://www.empireofthesun.net/forum/index.php?topic=4578.msg6890#msg6890

We use 1.1.9 and chat version 3.0

Can it be done? Or will my techs win me over to 2.0?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 15, 2009, 02:24:47 AM
Quote from: TheListener on June 15, 2009, 02:13:43 AM
Post Notification

After seeing this on another members forum I am looking at doing the same to my chat.

http://www.empireofthesun.net/forum/index.php?topic=4578.msg6890#msg6890 (http://www.empireofthesun.net/forum/index.php?topic=4578.msg6890#msg6890)

We use 1.1.9 and chat version 3.0

Can it be done? Or will my techs win me over to 2.0?

I'm sure it can be done but I'm sure you're tech's will convince you to convert to SMF 2 though....Are you willing to lose most of your 200 Mods?  LOL  ;)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 15, 2009, 02:28:09 AM


[/quote]

I'm sure it can be done but I'm sure you're tech's will convince you to convert to SMF 2 though....Are you willing to loose most of your 200 Mods?  LOL  ;)
[/quote]

Ya mean 82 mods  ;D

Speaking of techs you're one of them and a darn hard worker too.

Are ya blushing yet?  :D  :-[
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DilSe on June 15, 2009, 07:38:38 AM
hello to all

plz dhelp anyboy
error on shout box ...

Error: Connection status: 503

how do I can
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Krandall on June 15, 2009, 02:18:38 PM
Quote from: SunKing on June 14, 2009, 02:17:10 AM
@Krandall

Can you post or PM a link to your site? Like chit-chat said, it needs to be enabled in admin section.

Here's a link, http://bob2bob.com/forum/index.php

Right now it's using the changes you told me to use. But not showing on the board: General Discussion or test1.

-randy
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 15, 2009, 06:08:56 PM
I am going to set it up on my test site and get it fully working. I will post back here when finished.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Zeshin on June 15, 2009, 06:50:39 PM
Hey guys. Thanks for the previous support, I really appreciated it.

One more question though - I can't seem to find this in the config files (and maybe I haven't looked hard enough) but is there a way to set it as default for -no- sounds? Or is there a way I can just turn them off completely for everyone?

Thanks.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 15, 2009, 06:53:29 PM
A quick workaround would be to add a ~ to the end of the sounds folder (forum/chat/sounds~)....then it simply wouldn't find the sounds. This may put errors in your log, but shouldn't break the forum. Then you can look for a better solution.  :P
Title: Re: AjaxChat Integration (3.2 Released)
Post by: drhamza on June 15, 2009, 06:56:27 PM
hello there, my forum is still under construction but this made it alive already, very nice mod

i have a couple of questions:
1. is there a way to limit the channels, for example, i have 5 forums, 2 of which are the only ones that i need them to be channels, and disable the others..... is that possible
2. members using cell phones are complaining about the shoutbox being "mixed up", any ideas about that?

thanks a bunch
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 15, 2009, 07:52:42 PM
@drhamza
Information on limiting the channels can be found here: http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

@Krandall
I think all you may be missing is a simple global statement. Try adding global $board; just above the if(isset($board) like this:

global $board;
if(isset($board) && $board == 1.0 || $board == 33.0)
{
shoutbox_bottom();
    }
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Zeshin on June 15, 2009, 11:58:13 PM
Lol, thanks, yeah, I guess that works.

Sorry, but I have another question.. my members are unable to login under their accounts. They keep getting an error saying "You can't access the chat."

I've set this variable to true:

// Defines if registered users (including moderators) have access to the logs (admins are always granted access):
$config['logsUserAccess'] = true;


But they still can't login. Again, I'm sure I'm missing something... there's just a lot of settings... so I've attached both of my config.php files. Can anyone tell me what I'm missing?

Also, whenever someone times out.. it sometimes shows the message 3 times. Anyone else have this error?


(P.S. ~ I took out my db info in both files for security reasons, obviously.)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 16, 2009, 12:00:59 AM
Quote from: Zeshin on June 15, 2009, 11:58:13 PM
Lol, thanks, yeah, I guess that works.

Sorry, but I have another question.. my members are unable to login under their accounts. They keep getting an error saying "You can't access the chat."

I've set this variable to true:

// Defines if registered users (including moderators) have access to the logs (admins are always granted access):
$config['logsUserAccess'] = true;


But they still can't login. Again, I'm sure I'm missing something... there's just a lot of settings... so I've attached both of my config.php files. Can anyone tell me what I'm missing?

Also, whenever someone times out.. it sometimes shows the message 3 times. Anyone else have this error?


(P.S. ~ I took out my db info in both files for security reasons, obviously.)

Just want to make sure .......
You did go into admin area to permissions and set for each of the type of groups to show and allow the chat .. correct?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Zeshin on June 16, 2009, 12:09:36 AM
Ahh man.. I feel like an idiot. I was scrambling everywhere, lol. No, I didn't. Sorry for the trouble. >.>
Title: Re: AjaxChat Integration (3.2 Released)
Post by: drhamza on June 16, 2009, 03:00:45 AM
Quote from: SunKing on June 15, 2009, 07:52:42 PM
@drhamza
Information on limiting the channels can be found here: http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

thanks
Title: Re: AjaxChat Integration (3.2 Released)
Post by: allumius on June 16, 2009, 03:23:52 AM
Sorry for my english  :'(
After yesterday my chat dont work.
in the ShoutBox i dont have error but when i open de chat window i have this error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/galif2/public_html/motrilfriki/SSI.php on line 1043

But i dont touch nothing!!!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 03:27:16 AM
Quote from: allumius on June 16, 2009, 03:23:52 AM
Sorry for my english  :'(
After yesterday my chat dont work.
in the ShoutBox i dont have error but when i open de chat window i have this error:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/galif2/public_html/motrilfriki/SSI.php on line 1043

But i dont touch nothing!!!

Did you install any Mods recently?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: allumius on June 16, 2009, 03:30:40 AM
No, the last i have install is this mod
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 03:39:38 AM
What version of AJAX Chat Intergration mod you have 3.0 or 3.2?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: allumius on June 16, 2009, 03:44:45 AM
3.0
I have tried also with the version 3.2 but the result is the same mistake
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bajax on June 16, 2009, 03:47:19 AM
Nice Mod !!!

Everything worked great for me,

i have only one question i want to keep the shoutbox but disable the chat, not even give the option of clicking the button how can i remove the button...

i only need the shoutbox  8) thanks in advance
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 03:49:31 AM
Uh oh.....sounds like you might installed one version over another. Nothin touches the SSI until version 3.2.

I gotta get off to bed, you can PM a link you your site and temp admin/ftp access and I can take a look in the morning if ya like
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 03:57:59 AM
Quote from: bajax on June 16, 2009, 03:47:19 AM
Nice Mod !!!

Everything worked great for me,

i have only one question i want to keep the shoutbox but disable the chat, not even give the option of clicking the button how can i remove the button...

i only need the shoutbox  8) thanks in advance

You can still get to the Chat if members know the URL but this will remove the button from your forum.

For SMF 1.1.9 AJAX Chat Intergration 3.0
Find Themes/yourtheme/index.template.php and remove
// 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'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';


For SMF 1.1.9 AJAX Chat Intergration3.2
Find Themes/yourtheme/index.template.php and remove
   // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <td valign="top" class="maintab_back">
         <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
   


For SMF2 AJAX Chat Intergration 3.0 and 3.2
Find /Sources/Subs.php and remove
  'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bajax on June 16, 2009, 04:00:43 AM
Right Oooon !! sorry about the extra work for not mentioning my version

For SMF 1.1.9 AJAX Chat Intergration3.2  :o

it worked great !! i really appreciate it
thanks for your time and quick response
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 04:03:10 AM
Quote from: bajax on June 16, 2009, 04:00:43 AM
Right Oooon !! sorry about the extra work for not mentioning my version

For SMF 1.1.9 AJAX Chat Intergration3.2  :o

it worked great !! i really appreciate it
thanks for your time and quick response

NP...Enjoy the Mod :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Alyen on June 16, 2009, 05:01:22 AM
I did a new installation of the MOD, to be installed fine, but it does not work send a message.

and it also comes in the box shotbox:

ï »¿

I can do?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DilSe on June 16, 2009, 06:08:10 AM
Quote from: Hanzalah on June 15, 2009, 07:38:38 AM
hello to all

plz dhelp anyboy
error on shout box ...

Error: Connection status: 503

how do I can

plz naybody help
Error: Connection status :503 / 404 /     
Title: Re: AjaxChat Integration (3.2 Released)
Post by: .HuNTeR. on June 16, 2009, 06:11:54 AM
@Alyen
can you give me a link to you forum? (here or in PM)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: pequepsp on June 16, 2009, 06:13:25 AM
how can i use it using spanish_es.php language?? i cant do it work in this language only work if i use the english language

and how can i put the chat in the index portal? im using tinyportal

my url http://pequepsp.es/
my url chat http://pequepsp.es/index.php?action=foro

why i see this in my chat ¿""?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Alyen on June 16, 2009, 09:39:40 AM
@.HuNTeR.

this is the link to my site, www.xpzone.net (http://www.xpzone.net) - www.xpzone.net/forum (http://www.xpzone.net/forum)

but I have disabled because the chat does not work.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Doyne on June 16, 2009, 11:28:19 AM
I'll try again.

I have everything working great.  The chat button on my mod is not properly aligned.  How can I fix that?

link to my site = http://www.living-in-the-word.com/forum/index.php (http://www.living-in-the-word.com/forum/index.php)

Any ideas.  I posted earlier but had no response.

Quote// If the user is a guest, show [login] button.
   if ($context['user']['is_guest'])
   echo '<li', $current_action == 'login' ? ' id="active"' : '', '><a href="', $scripturl, '?action=login">' , $txt[34] , '</a></li>';

   // If the user is a guest, also show [register] button.
   if ($context['user']['is_guest'])
   echo '<li', $current_action == 'register' ? ' id="active"' : '', '><a href="', $scripturl, '?action=register">' , $txt[97] , '</a></li>';

   // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <td valign="top" class="maintab_back">
         <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
      </td>';

   // Otherwise, they might want to [logout]...
   if ($context['user']['is_logged'])
   echo '<li', $current_action == 'logout' ? ' id="active"' : '', '><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a></li>';
   echo '
           </ul>';
}

// Generate a strip of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
   global $settings, $buttons, $context, $txt, $scripturl;

   // Create the buttons...
   foreach ($button_strip as $key => $value)
   {
      if (isset($value['test']) && empty($context[$value['test']]))
      {
         unset($button_strip[$key]);
         continue;
      }
      elseif (!isset($buttons[$key]) || $force_reset)
         $buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . $txt[$value['text']] . '</a>';

      $button_strip[$key] = $buttons[$key];
   }

   if (empty($button_strip))
      return '<td> </td>';

   echo '
      <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'last' : 'first' , '"> </td>
      <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_back">', implode('  |  ', $button_strip) , '</td>
      <td class="', $direction == 'top' ? 'main' : 'mirror', 'tab_' , $context['right_to_left'] ? 'first' : 'last' , '"> </td>';
}

Thanks,

Doyne
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 11:46:26 AM
Doyne sry for your missed post. It looks like you got your button aligned?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: primetime on June 16, 2009, 12:09:45 PM
 I would like for my admin users to NOT have a red username in chat. IS this possible?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ɔɔɔɔɔɔuɥoɾ on June 16, 2009, 12:13:56 PM
Hi mrtrc266.
Quote from: primetime on June 16, 2009, 12:09:45 PM
I would like for my admin users to NOT have a red username in chat. IS this possible?

Im sure it is,
**********************************************

I would also like information on changing colors of member groups and adding a new member group and choosing a color for them too I have some extra member groups on my forum which the shoutbox is not recognizing, thanks
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Doyne on June 16, 2009, 12:17:22 PM
Actually not.  When you are logged in it is above the logout button.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 16, 2009, 12:19:06 PM

I would also like information on changing colors of member groups and adding a new member group and choosing a color for them too I have some extra member groups on my forum which the shoutbox is not recognizing, thanks
[/quote]

Like yourself I would like my membergroup colours to show in the chat and shoutbox however I do know that the boys are working on this so it should be a possibility in the near future.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 12:36:25 PM
@ Doyne Find

      <td valign="top" class="maintab_back">
         <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
      </td>';

Replace with
      <li>
        <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
      </li>';
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 12:40:14 PM
Quote from: primetime on June 16, 2009, 12:09:45 PM
I would like for my admin users to NOT have a red username in chat. IS this possible?

Find /chat/css/yourstyle.css and change to whatever you like. You will have to do that to all the styles that you allow members to use.
    #content .guest {
        color:gray;
    }
    #content .user {
        color:#FFF;
    }
    #content .moderator {
        color:#00AA00;
    }
    #content .admin {
        color:red;
    }
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 12:45:43 PM
Quote from: johncccccc on June 16, 2009, 12:13:56 PM
Hi mrtrc266.
Quote from: primetime on June 16, 2009, 12:09:45 PM
I would like for my admin users to NOT have a red username in chat. IS this possible?

Im sure it is,
**********************************************

I would also like information on changing colors of member groups and adding a new member group and choosing a color for them too I have some extra member groups on my forum which the shoutbox is not recognizing, thanks

At the moment your chat only has 4 groups, Guests, Users, Mods and Admins and you can change the color of their links only through the styles.css and shoutbox.css. Hopefully in the future this Mod will pull the member group colors from SMF. I know this is on Hunters list.

For now though here is some info on how to add Member Groups and set colors for each one. I haven't tried this yet.
http://www.net4seven.de/phpbb3/forum/viewtopic.php?f=9&t=277

Have fun with this one.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Krandall on June 16, 2009, 12:50:42 PM
Quote from: SunKing on June 15, 2009, 07:52:42 PM
@drhamza
Information on limiting the channels can be found here: http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

@Krandall
I think all you may be missing is a simple global statement. Try adding global $board; just above the if(isset($board) like this:

global $board;
if(isset($board) && $board == 1.0 || $board == 33.0)
{
shoutbox_bottom();
    }


I'll try tonight and report back, Thanks SK you have been REALLY great!! Most appreciated!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 01:02:43 PM
@ Doyne, looks like that didn't work. Attach your in index.template file here, I'll take a look.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Doyne on June 16, 2009, 01:11:19 PM
Actually that did work.  I was away and just got your fix.

Excellent!  Thank you very much   :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 01:23:48 PM
Quote from: Doyne on June 16, 2009, 01:11:19 PM
Actually that did work.  I was away and just got your fix.

Excellent!  Thank you very much   :D

You're very welcome...enjoy the Mod :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: primetime on June 16, 2009, 01:37:45 PM
Quote from: mrtrc266 on June 16, 2009, 12:45:43 PM
Quote from: johncccccc on June 16, 2009, 12:13:56 PM
Hi mrtrc266.
Quote from: primetime on June 16, 2009, 12:09:45 PM
I would like for my admin users to NOT have a red username in chat. IS this possible?

Im sure it is,
**********************************************

I would also like information on changing colors of member groups and adding a new member group and choosing a color for them too I have some extra member groups on my forum which the shoutbox is not recognizing, thanks

At the moment your chat only has 4 groups, Guests, Users, Mods and Admins and you can change the color of their links only through the styles.css and shoutbox.css. Hopefully in the future this Mod will pull the member group colors from SMF. I know this is on Hunters list.

For now though here is some info on how to add Member Groups and set colors for each one. I haven't tried this yet.
http://www.net4seven.de/phpbb3/forum/viewtopic.php?f=9&t=277

Have fun with this one.

That did the trick... I just changed the shoutbox.css.

Thank you very much,
Prime
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ɔɔɔɔɔɔuɥoɾ on June 16, 2009, 02:23:16 PM
I have successfully changed the colors of the current member groups, as for adding more, well, I guess I will wait on that lol..

thanks for the info! :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: primetime on June 16, 2009, 07:07:30 PM
has anyone noticed that the URL BBCode in chat does not work properly? It prompts you for the url but when placed in chat it displays the whole tag  such as  (http://http://www.yahoo.com).. any ideas how to correct this?

Thank you,
Prime
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 16, 2009, 07:15:51 PM
Check the case. Try lower case BBC tags and see if that works.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: MMcGrad2 on June 16, 2009, 07:18:46 PM
How come when anyone tries to post in the Shoutbox this occurs:

(18:18:15) ChatBot: Error: Connection status: 0
(18:18:24) ChatBot: Error: Connection status: 0

Also, the chat tab doesn't work, it doesn't load.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Krandall on June 16, 2009, 07:32:03 PM
//shoutBox
global $board;
if(isset($board) && $board == 1 || $board == 33)
{
shoutbox();
    }

No dice. Here's what I have. Same thing. Just plain doens't show.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 16, 2009, 07:45:17 PM
Quote from: Krandall on June 16, 2009, 07:32:03 PM
//shoutBox
global $board;
if(isset($board) && $board == 1 || $board == 33)
{
shoutbox();
    }

No dice. Here's what I have. Same thing. Just plain doens't show.
I dont know if you mean for it to be this way but the above code is not the same as he posted.


global $board;
   if(isset($board) && $board == 1.0 || $board == 33.0)
   {
   shoutbox_bottom();
    }

Your numbers are not the same and the shoutbox call is not the same. Did not know if you intended to do that or it was a mistake.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 09:08:37 PM
Quote from: primetime on June 16, 2009, 07:07:30 PM
has anyone noticed that the URL BBCode in chat does not work properly? It prompts you for the url but when placed in chat it displays the whole tag  such as .. any ideas how to correct this?

Thank you,
Prime

Notice that after you enter the URL your cursor lands in between the tags like this
url]monsters-mansion.com/testsmf2/index.php]Your Cursor Lands Here[/url

Be sure to type something there to get it to look like this Your Cursor Lands Here (http://monsters-mansion.com/testsmf2/index.php)

Or simply paste the URL into the shout/chat to give the whole link like this
http://monsters-mansion.com/testsmf2/index.php (http://monsters-mansion.com/testsmf2/index.php)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: souloftruth on June 16, 2009, 10:58:20 PM
I've tried to install this under 2.0rc1-1

However I keep getting this error.

Fatal error: require() [function.require]: Failed opening required '/home/rebelion/public_html/forums/chat/lib/custom.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rebelion/public_html/forums/chat/index.php on line 17
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Krandall on June 16, 2009, 11:34:43 PM
Quote from: Chit-Chat ChatterBox Boss on June 16, 2009, 07:45:17 PM
Quote from: Krandall on June 16, 2009, 07:32:03 PM
//shoutBox
global $board;
if(isset($board) && $board == 1 || $board == 33)
{
shoutbox();
    }

No dice. Here's what I have. Same thing. Just plain doens't show.
I dont know if you mean for it to be this way but the above code is not the same as he posted.


global $board;
   if(isset($board) && $board == 1.0 || $board == 33.0)
   {
   shoutbox_bottom();
    }

Your numbers are not the same and the shoutbox call is not the same. Did not know if you intended to do that or it was a mistake.

'

Yeah, I had tried both ways. in my original code I had just the # no . (like my example above) tried and still nothin :(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 16, 2009, 11:39:44 PM
Quote from: souloftruth on June 16, 2009, 10:58:20 PM
I've tried to install this under 2.0rc1-1

However I keep getting this error.

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

What's the URL to your site?
What Version did you install, 3.0 or 3.2?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4b11l on June 17, 2009, 01:48:12 AM
I've been using this mod for a couple days and would like to request a future feature, or if it's possible now, that would be great!

Maybe have a editable area above the chat room (below the chat title "AJAX CHAT") that can be edited to show a bulletin/text/link/ etc..
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Alyen on June 17, 2009, 05:15:46 AM
Someone knows because no ShoutBox chat and send messages?

if someone wants to see the problem these are the link:


http://www.xpzone.net/forum/ (http://www.xpzone.net/forum/)

http://www.xpzone.net/chat/index.php (http://www.xpzone.net/chat/index.php)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 17, 2009, 11:11:42 AM
Quote from: Alyen on June 17, 2009, 05:15:46 AM
Someone knows because no ShoutBox chat and send messages?
if someone wants to see the problem these are the link:
http://www.xpzone.net/forum/ (http://www.xpzone.net/forum/)

http://www.xpzone.net/chat/index.php (http://www.xpzone.net/chat/index.php)


Set your file permissions (CMHOD) chat/index.php and shoutbox/index.php to 755
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fext on June 17, 2009, 11:45:31 AM
Hi guys...

Is there a way to show bot messages for a limited time then either delete them or fade them out - so make them last 5-10 seconds?

Is there a setting for this?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DilSe on June 17, 2009, 12:07:48 PM
Quote from: Hanzalah on June 16, 2009, 06:08:10 AM
Quote from: Hanzalah on June 15, 2009, 07:38:38 AM
hello to all

plz dhelp anyboy
error on shout box ...

Error: Connection status: 503

how do I can

plz naybody help
Error: Connection status :503 / 404 /   

:-[ :-[
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 17, 2009, 12:19:27 PM
503 is server error
404 is not found error

Check that your URLs are pointing to the right locations.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Pure Anthems on June 17, 2009, 03:34:01 PM
I'm very confused... where do you download the files for the mod? I tried to download from Ajax but it says corrupted/invalid file...

:(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 17, 2009, 03:34:52 PM
Quote from: Youngiiie on June 17, 2009, 11:45:31 AM
Hi guys...

Is there a way to show bot messages for a limited time then either delete them or fade them out - so make them last 5-10 seconds?

Is there a setting for this?
I do not believe atm there is a feature like this. A fading system would have to be scripted in and it might take a little work. Maybe sometime we all can take a crack at something like this. Maybe I would even use that feature myself on some of the messages that are displayed by the bot.


Quote from: Pure Anthems on June 17, 2009, 03:34:01 PM
I'm very confused... where do you download the files for the mod? I tried to download from Ajax but it says corrupted/invalid file...

:(
This link works fine for me:
AjaxChat Integration_3.2.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=102295)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Pure Anthems on June 17, 2009, 04:04:25 PM
Quote from: Chit-Chat ChatterBox Boss on June 17, 2009, 03:34:52 PM
Quote from: Youngiiie on June 17, 2009, 11:45:31 AM
Hi guys...

Is there a way to show bot messages for a limited time then either delete them or fade them out - so make them last 5-10 seconds?

Is there a setting for this?
I do not believe atm there is a feature like this. A fading system would have to be scripted in and it might take a little work. Maybe sometime we all can take a crack at something like this. Maybe I would even use that feature myself on some of the messages that are displayed by the bot.


Quote from: Pure Anthems on June 17, 2009, 03:34:01 PM
I'm very confused... where do you download the files for the mod? I tried to download from Ajax but it says corrupted/invalid file...

:(
This link works fine for me:
AjaxChat Integration_3.2.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=102295)

Thank you! That was exactly what I was looking for!!!

:D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Pure Anthems on June 17, 2009, 05:18:01 PM
Sorry to be a bother again, but I don't understand what the query table thing is or how to do it! Would someone be able to help me?

Thanks!

:D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 17, 2009, 05:23:51 PM
Quote from: Pure Anthems on June 17, 2009, 05:18:01 PM
Sorry to be a bother again, but I don't understand what the query table thing is or how to do it! Would someone be able to help me?

Thanks!

:D

Can you use more detail to point me in the right direction. I guess I am confused myself of what you mean.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Pure Anthems on June 17, 2009, 05:29:35 PM
Sure, sorry. At the end of the tutorial on the mod, it talks about the table_1.1.X.php file, and that you have to manually run the queries. I'm not sure where to put the table file, or how to run the queries.

:D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 17, 2009, 05:33:32 PM
Quote from: Pure Anthems on June 17, 2009, 05:29:35 PM
Sure, sorry. At the end of the tutorial on the mod, it talks about the table_1.1.X.php file, and that you have to manually run the queries. I'm not sure where to put the table file, or how to run the queries.

:D
Well if you use the package installer and it installs with no errors it should do this automatically for you. If you are installing the mod manually then you will have to go into your phpmyadmin and add those all through your SQL.

Which way are you installing this mod?
What SMF Version are you using?
And did you download v3.2 or v3.0 for this mod?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Pure Anthems on June 17, 2009, 06:01:22 PM
I was halfway through manually installing it, but then I uploaded it via package manager when you mentioned it. It doesn't work with my theme though, unfortunately!

:(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 17, 2009, 06:12:28 PM
Can someone remind an old forgetful what an error 500 is please.

Thanks
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 17, 2009, 06:13:40 PM
Quote from: Pure Anthems on June 17, 2009, 06:01:22 PM
I was halfway through manually installing it, but then I uploaded it via package manager when you mentioned it. It doesn't work with my theme though, unfortunately!

:(
You should undo what ever manual installs you did and upload and install via the package installer for the default theme (that way most of the files and also all the database edits are done and setup). Then just go back and parse it and edit only the files that your custom theme is using that does not run off the default ones (IE: template files and such). This way everything gets installed and setup and then it is easier to get it up and running for your custom theme. All mods you install you should do this way it makes life alot easier when it comes to installing mods.

Quote from: TheListener on June 17, 2009, 06:12:28 PM
Can someone remind an old forgetful what an error 500 is please.

Thanks

Its the 755 permissions for the chat file not being set to 755. So you need to go and adjust the files permissions and set to 755. (See the quote below)

Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM
If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" are set @ 755 and all "Files" are set @ 666.
You might have to change the index.php in your chat and shoutbox folder to 755.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Pure Anthems on June 17, 2009, 06:23:59 PM
Quote from: Chit-Chat ChatterBox Boss on June 17, 2009, 06:13:40 PM
Quote from: Pure Anthems on June 17, 2009, 06:01:22 PM
I was halfway through manually installing it, but then I uploaded it via package manager when you mentioned it. It doesn't work with my theme though, unfortunately!

:(
You should undo what ever manual installs you did and upload and install via the package installer for the default theme (that way most of the files and also all the database edits are done and setup). Then just go back and parse it and edit only the files that your custom theme is using that does not run off the default ones (IE: template files and such). This way everything gets installed and setup and then it is easier to get it up and running for your custom theme. All mods you install you should do this way it makes life alot easier when it comes to installing mods.

Sorry to keep sounding so stupid lol... but would that be all the files that say themes/template? What changes would I make? I'm so backwards when it comes to php stuff haha! I've never gone past html!

:lol
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 17, 2009, 06:32:20 PM
Quote from: Pure Anthems on June 17, 2009, 06:23:59 PM
Sorry to keep sounding so stupid lol... but would that be all the files that say themes/template? What changes would I make? I'm so backwards when it comes to php stuff haha! I've never gone past html!

:lol
well your theme (depending on the theme) only runs off different /theme/  files. But not all it shares some. You would have to know which ones it runs off by itself and doesn't share with the default theme and whatever files runs alone (non sharing) and if those are same name files that this mod makes edits to in the default file then those are the files you need to manually edit in your custom theme.

Way to check and see what files is running alone just open that custom theme's folder and look what is in there /theme/customtheme/   and see whats in that location.

As far as uninstalling ... if you got through half way manually installing yes unfortunately I would suggest fully undoing all that and installing the mod through the package installer to the default theme so you and we know it is installed properly. After that we can move onto making the necessary edits to the custom theme for it to work there.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Pure Anthems on June 17, 2009, 06:43:56 PM
Quote from: Chit-Chat ChatterBox Boss on June 17, 2009, 06:32:20 PM
Quote from: Pure Anthems on June 17, 2009, 06:23:59 PM
Sorry to keep sounding so stupid lol... but would that be all the files that say themes/template? What changes would I make? I'm so backwards when it comes to php stuff haha! I've never gone past html!

:lol
well your theme (depending on the theme) only runs off different /theme/  files. But not all it shares some. You would have to know which ones it runs off by itself and doesn't share with the default theme and whatever files runs alone (non sharing) and if those are same name files that this mod makes edits to in the default file then those are the files you need to manually edit in your custom theme.

Way to check and see what files is running alone just open that custom theme's folder and look what is in there /theme/customtheme/   and see whats in that location.

As far as uninstalling ... if you got through half way manually installing yes unfortunately I would suggest fully undoing all that and installing the mod through the package installer to the default theme so you and we know it is installed properly. After that we can move onto making the necessary edits to the custom theme for it to work there.

Thanks, I did all you said - I changed the files back, uploaded it via package manager but there are now two chat buttons on the navbar, it says 1 user online four times at the bottom, and there is no chat on the homepage...

I think I broke it...

:D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 17, 2009, 06:49:19 PM
Quote from: Pure Anthems on June 17, 2009, 06:43:56 PM
Thanks, I did all you said - I changed the files back, uploaded it via package manager but there are now two chat buttons on the navbar, it says 1 user online four times at the bottom, and there is no chat on the homepage...

I think I broke it...

:D
It is because somewhere you did not remove what you installed fully (talking about what you manually installed). What has happened that is causing multiple displays is it installed more then once. Sounds like either you didn't fully remove all the manual install edits you did or you accidentally installed it multiple times with the package installer. You need to use the parse and double check all those files in the areas you edited it and where it is trying to install. Make sure that there is no codes from this mod in there more then once (somewhere it is obviously in there more then once that is how it is causing that). 

Go ahead and complete this step double checking over the files (might be good to check ALL of the files this mod edits and ALL the places) and then report back and we will continue on to get your chat and shoutbox setup as far as being displayed.

Do make sure however you don't remove all the codes :p make sure they are in there only once (not zero or two +)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Pure Anthems on June 17, 2009, 07:00:03 PM
Ok, all uninstalled, checked, reinstalled and it shows up on the main page.

The text isn't showing up in the shoutbox though, and there is no chat button in the navbar!

:)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 17, 2009, 07:04:37 PM
-.- but there was before? Sounds like something got deleted (thats why i wanted it to be 100% fresh (you to make sure you fully removed all the manual installs you did). Now it sounds like you deleted something that needed to be there. You have to be sure that all the files in the parse match to your files for your site and that they are not in there more then once but the edits are for sure done at least once.

Besides that to enable the shoutbox (sounds like you figured it out) you need to go to your chat settings in the admin area and also in permissions and set those.

But yes you HAVE TO make sure that those files are correct sounds like something was deleted during the delete that should have been in there at least once. If you are 100% sure they are in there PERFECT then we will continue on and figure what the problem is past there, maybe post up what ever errors are being put out by the mod.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Pure Anthems on June 17, 2009, 07:09:55 PM
Quote from: Chit-Chat ChatterBox Boss on June 17, 2009, 07:04:37 PM
-.- but there was before? Sounds like something got deleted (thats why i wanted it to be 100% fresh (you to make sure you fully removed all the manual installs you did). Now it sounds like you deleted something that needed to be there. You have to be sure that all the files in the parse match to your files for your site and that they are not in there more then once but the edits are for sure done at least once.

Besides that to enable the shoutbox (sounds like you figured it out) you need to go to your chat settings in the admin area and also in permissions and set those.

But yes you HAVE TO make sure that those files are correct sounds like something was deleted during the delete that should have been in there at least once. If you are 100% sure they are in there PERFECT then we will continue on and figure what the problem is past there, maybe post up what ever errors are being put out by the mod.

I fixed it. The index.php needed chmodding. It's all working now!

:D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 17, 2009, 07:11:42 PM
Quote from: Pure Anthems on June 17, 2009, 07:09:55 PM
Quote from: Chit-Chat ChatterBox Boss on June 17, 2009, 07:04:37 PM
-.- but there was before? Sounds like something got deleted (thats why i wanted it to be 100% fresh (you to make sure you fully removed all the manual installs you did). Now it sounds like you deleted something that needed to be there. You have to be sure that all the files in the parse match to your files for your site and that they are not in there more then once but the edits are for sure done at least once.

Besides that to enable the shoutbox (sounds like you figured it out) you need to go to your chat settings in the admin area and also in permissions and set those.

But yes you HAVE TO make sure that those files are correct sounds like something was deleted during the delete that should have been in there at least once. If you are 100% sure they are in there PERFECT then we will continue on and figure what the problem is past there, maybe post up what ever errors are being put out by the mod.

I fixed it. The index.php needed chmodding. It's all working now!

:D

There you go sweet so it displays for the shoutbox and the chat now? Awesome! Also did you do what I said above for the custom theme of comparing the files and making the manual edits for them yet? If so did it work?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Pure Anthems on June 17, 2009, 07:17:16 PM
Quote from: Chit-Chat ChatterBox Boss on June 17, 2009, 07:11:42 PM
Quote from: Pure Anthems on June 17, 2009, 07:09:55 PM
Quote from: Chit-Chat ChatterBox Boss on June 17, 2009, 07:04:37 PM
-.- but there was before? Sounds like something got deleted (thats why i wanted it to be 100% fresh (you to make sure you fully removed all the manual installs you did). Now it sounds like you deleted something that needed to be there. You have to be sure that all the files in the parse match to your files for your site and that they are not in there more then once but the edits are for sure done at least once.

Besides that to enable the shoutbox (sounds like you figured it out) you need to go to your chat settings in the admin area and also in permissions and set those.

But yes you HAVE TO make sure that those files are correct sounds like something was deleted during the delete that should have been in there at least once. If you are 100% sure they are in there PERFECT then we will continue on and figure what the problem is past there, maybe post up what ever errors are being put out by the mod.

I fixed it. The index.php needed chmodding. It's all working now!

:D

There you go sweet so it displays for the shoutbox and the chat now? Awesome! Also did you do what I said above for the custom theme of comparing the files and making the manual edits for them yet? If so did it work?

I did and it's all working mate! Thanks so much for all your help!!!

:D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 17, 2009, 07:19:10 PM
No problem I am glad we got it all set for you! Just post back if you have questions  ;D I  (and I am sure the rest of the ones that try to help out with this mod) will try to do our best to solve any problem or inquiries about this mod.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Atoa on June 17, 2009, 07:23:15 PM
How can i prevent guests from entering the chat?
I didn't find any option for that =/
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 17, 2009, 07:28:57 PM
Quote from: Atoa on June 17, 2009, 07:23:15 PM
How can i prevent guests from entering the chat?
I didn't find any option for that =/
First go to your Admin > Permissions > Guests
make sure the check boxes for Guests permissions are checked the way you want them for the shoutbox and chat.
Access to chat  (unchecked if you don't want them to use the chat)
Use shoutBox   (unchecked if you don't want them to use the shoutbox)


If that fully doesn't do the trick you can also edit this to be 100% sure they cant get in:

Go to/chat/lib/config.php

Find (Mine are already set to 'false' if yours are set to 'true' change them to 'false')
// Enable/Disable guest logins:
$config['allowGuestLogins'] = false;
// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
$config['allowGuestWrite'] = false;
// Allow/Disallow guest users to choose their own userName:
$config['allowGuestUserName'] = false;


Make the needed adjustments there for guests. You can look through the whole config.php you will see many many things that you can change in there easily for many things in the chat.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Atoa on June 17, 2009, 08:16:02 PM
thanks ^^

Another things i forget to ask.
1 - i need to type two "\" to show a bar. i saw an ajax chat where i could type just one.
Eg.: \\o is show \o on the chat.

2 - the integration chat doesn't work with the pretty urls (http://www.simplemachines.org/community/index.php?topic=146969.0), if you could check that.
I really wanted to use the pretty url, but i would never remove the chat for that. \o
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 17, 2009, 08:21:58 PM
Quote from: Atoa on June 17, 2009, 08:16:02 PM
thanks ^^

Another things i forget to ask.
1 - i need to type two "\" to show a bar. i saw an ajax chat where i could type just one.
Eg.: \\o is show \o on the chat.

2 - the integration chat doesn't work with the pretty urls (http://www.simplemachines.org/community/index.php?topic=146969.0), if you could check that.
I really wanted to use the pretty url, but i would never remove the chat for that. \o

with the '//' or w/e are you talking about the commands like /kick you want //kick ? If not explain more.

As far as working with pretty urls maybe mrtrc266 or hunter or SK can answer that one as I am not as familiar with pretty urls.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: souloftruth on June 18, 2009, 01:32:36 AM
Quote from: souloftruth on June 16, 2009, 10:58:20 PM

    I've tried to install this under 2.0rc1-1

    However I keep getting this error.

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

--------------------------------------------------------------
What's the URL to your site?
What Version did you install, 3.0 or 3.2?

--------------------------------------------------------------
Can't release url right now.

3.2 I tried to install.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 18, 2009, 01:43:44 AM
@ souloftruth can you PM your site so I can take a look? Might also need temp FTP and Admin Access.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bruno36 on June 18, 2009, 05:04:08 AM
Hello!

I have an error message when I click the button cat
http://www.scooter-chinois-4t.com/chat/index.php

QuoteWarning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/data_e3041477173ab29c8eb5e7858dbea1f9-SMF-modSettings.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 2538

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_SPortal_french-utf8_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_SPortal_english_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_Modifications_english_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_Shout_french-utf8_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_index+Modifications_french-utf8_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_SPortal_french-utf8_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

In the administration I do not see option for the configuration of the cat

Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 18, 2009, 10:33:50 AM
I know this has been asked before....and I know I used to have the same problem, but cannot remember what I did to fix it or if it resolved itself....

How do you remove the  from the upper left of the shoutbox (or sometimes the upper left of the whole page).
Title: Re: AjaxChat Integration (3.2 Released)
Post by: drhamza on June 18, 2009, 10:59:12 AM
i'm trying to let the main frame of the pop-up shoutbox with a min width and height
for example:
min-width: 675 px;
min-height: 500 px;

i think that can be added to shoutbox.css, right?

need help in that please, what exactly should i do?
thank you
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 18, 2009, 11:03:49 AM
That will need to be controlled through the use of javascript. Something like:

<a href="javascript:window.open(\''.$boardurl.'/chat/index.php\',\'Shoutbox\',\'width=675,height=500\');void(0);">Chat</a>
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Atoa on June 18, 2009, 11:18:33 AM
Quotewith the '//' or w/e are you talking about the commands like /kick you want //kick ? If not explain more.
No, i mean the other bar (the one on the left of keyboard), the "command" bar (this one "/") works fine.
The one that don't work is this bar "\"
Since this bar is rarelly used, i'm going to use that to the forum emoticons, and i wanted to have the same commands for the chat emoticons.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 18, 2009, 11:30:40 AM
That's because it's an escape character for things such as escaping quotes like you\'ll or isn\'t. You can still use it but you would have to escape the escape... :P...like if you wanted the smiley code to be :-\ you would need to type it like :-\\

Only the second \ would show. Try it in your shoutbox. Type a single \ then hit enter. Nothing. Now type \\ and a single \ will show. Hope that helps you.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Atoa on June 18, 2009, 11:48:58 AM
@SunKing
Exactly that what happens, but i already saw forums with this chat that you dont need to type two "\"
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bruno36 on June 18, 2009, 11:52:28 AM
Quote from: Bruno36 on June 18, 2009, 05:04:08 AM
Hello!

I have an error message when I click the button cat
http://www.scooter-chinois-4t.com/chat/index.php

QuoteWarning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/data_e3041477173ab29c8eb5e7858dbea1f9-SMF-modSettings.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 2538

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_SPortal_french-utf8_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_SPortal_english_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_Modifications_english_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_Shout_french-utf8_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_index+Modifications_french-utf8_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_SPortal_french-utf8_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

In the administration I do not see option for the configuration of the cat



Et mon probleme a moi..
Title: Re: AjaxChat Integration (3.2 Released)
Post by: drhamza on June 18, 2009, 12:42:35 PM
Quote from: SunKing on June 18, 2009, 11:03:49 AM
That will need to be controlled through the use of javascript. Something like:

<a href="javascript:window.open(\''.$boardurl.'/chat/index.php\',\'Shoutbox\',\'width=675,height=500\');void(0);">Chat</a>
where exactly this can be added?
thank you :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 18, 2009, 01:21:59 PM
Anywhere you want it. For the main menu, you may have to modify the code slightly.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: drhamza on June 18, 2009, 03:01:22 PM
can't say i can do it, i'm a noob :(
thanks anyway

there is another important problem, guests can log into chat, though they don't have the permission to do so, they can change their nicknames and chat as any other member, how can i disallow this?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: drhamza on June 18, 2009, 03:21:11 PM
i've just figured this out, if there wasn't anyone in the chat, they can't log, but if there was, they can
help me please
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 18, 2009, 03:27:41 PM
Quote from: drhamza on June 18, 2009, 03:21:11 PM
i've just figured this out, if there wasn't anyone in the chat, they can't log, but if there was, they can
help me please
First go to your Admin > Permissions > Guests
make sure the check boxes for Guests permissions are checked the way you want them for the shoutbox and chat.
Access to chat  (unchecked if you don't want them to use the chat)
Use shoutBox   (unchecked if you don't want them to use the shoutbox)


If that fully doesn't do the trick you can also edit this to be 100% sure they cant get in:

Go to/chat/lib/config.php

Find (Mine are already set to 'false' if yours are set to 'true' change them to 'false')
// Enable/Disable guest logins:
$config['allowGuestLogins'] = false;
// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
$config['allowGuestWrite'] = false;
// Allow/Disallow guest users to choose their own userName:
$config['allowGuestUserName'] = false;


Make the needed adjustments there for guests. You can look through the whole config.php you will see many many things that you can change in there easily for many things in the chat.

Did you try both of these?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: naxter on June 18, 2009, 03:31:15 PM
how i remove that of the shoutbox?    
Title: Re: AjaxChat Integration (3.2 Released)
Post by: drhamza on June 18, 2009, 03:40:48 PM
wow, too much options in config.php, thanks a lot, it works now

by the way, thank you all guys here, you're really doing an awesome job... you response is the fastest among all sections of smf, and you are very helpful, THUMBS UP
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Alyen on June 19, 2009, 03:09:00 AM
Quote from: mrtrc266 on June 17, 2009, 11:11:42 AM
Quote from: Alyen on June 17, 2009, 05:15:46 AM
Someone knows because no ShoutBox chat and send messages?
if someone wants to see the problem these are the link:
http://www.xpzone.net/forum/ (http://www.xpzone.net/forum/)

http://www.xpzone.net/chat/index.php (http://www.xpzone.net/chat/index.php)


Set your file permissions (CMHOD) chat/index.php and shoutbox/index.php to 755

I did that, change it to 755 and then 777 but still the same.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 19, 2009, 04:31:35 AM
Here are some edit tutorials for 'AJAXChat Integration' Mod. I do not take FULL credit in all of these. Some of these I found and tweaked. One I fully made myself ('/commands' command edit) and do take 100% credit for. The mods/edits at this link that deal with 'AJAXChat Intergration' Mod will have 'AJAXChat Intergration' at the beginning of the topic titles. Please take notice at the very top and bottom of the topics where it does state what version it is for. If it says you 'will' have to make changes for version ..... then that means you DO have to make changes. If it says you 'might' have to make changes for version ..... then that means you MIGHT OR MIGHT NOT have to make changes, you will have to check yourself.

To view these mods for 'AJAXChat Integration' Mod please click on the following link. It is a board inside my site.
Click Below To Go To The Mods
Chit-Chat ChatterBox SMF Mods (http://www.chitchatchatterbox.com/index.php?board=257.0)

*Guests can not post outside the guest area on Chit-Chat ChatterBox you will have to register if you want to post. You can however still view the mods and the edits!*
*We will be adding more mods and edits for 'AJAXChat Integration' Mod as time goes on so keep checking for updates and more mods!*
*This is not me taking any credit for 'AJAXChat Integration' Mod this is me helping the mod make add-ons to it. So please give the proper credit for 'AJAXChat Integration' Mod to the proper people(.HuNTeR.)!*
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bruno36 on June 19, 2009, 08:10:22 AM
Quote from: Bruno36 on June 18, 2009, 11:52:28 AM
Quote from: Bruno36 on June 18, 2009, 05:04:08 AM
Hello!

I have an error message when I click the button cat
http://www.scooter-chinois-4t.com/chat/index.php

QuoteWarning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/data_e3041477173ab29c8eb5e7858dbea1f9-SMF-modSettings.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 2538

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_SPortal_french-utf8_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_SPortal_english_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_Modifications_english_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_Shout_french-utf8_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_index+Modifications_french-utf8_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lang_SPortal_french-utf8_default.php) is not within the allowed path(s): (/home/www/tmp/:/usr/local/lib/php:/usr/local/bin:/home/www/sospc) in /home/www/sospc/www/phpbb/Sources/Load.php on line 1877

In the administration I do not see option for the configuration of the cat



Et mon probleme a moi..
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 19, 2009, 08:35:16 AM
@Bruno

What version of SMF?
What version of AjaxChat?
What mods are installed?
What edits have recently been made?

Title: When click chat get internal server error.ver 2.0 rc1-1 fresh install pleasehelp
Post by: darrenb1 on June 19, 2009, 08:37:22 AM
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bruno36 on June 19, 2009, 08:55:05 AM
Quote from: SunKing on June 19, 2009, 08:35:16 AM
@Bruno

What version of SMF?
What version of AjaxChat?
What mods are installed?
What edits have recently been made?




Bonjour!

SMF 2.0 RC1-1
AjaxChat Integration 3.2

Mods:
Images On Board  2.1
Aeva ~ Auto-Embed Video & Audio 6.9.99
Ad Managment 2.3.5
New Topic Button 1.0
SMF Topic Prefix Mod 1.1
SimplePortal 2.2.2
Reply Button in All Posts 1.1
Auto Merge Double Post 1.2
Pretty URLs 0.9.3
Sitemap 2.0.0
SMF Media Gallery 1.5.6
AjaxChat Integration 3.2
Ban Link in Post 1.1
nCode Image Resizer 1.2

AjaxChat Integration 3.2  is the last modification perform
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 19, 2009, 09:26:43 AM
What does line 1877 of your load.php say?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bruno36 on June 19, 2009, 09:32:51 AM
// Is this cached? If not recache!
if (!file_exists($cachedir . '/lang_' . $template_name . '_' . $lang . '_' . $theme_name . '.php'))
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 19, 2009, 09:39:43 AM
That should be enough info to get this fixed. I am at work right now but will be home in about 6 hours. :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bruno36 on June 19, 2009, 09:49:31 AM
Merci pour ton aide SunKing
   
Thank you for your help SunKing
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 19, 2009, 10:04:27 AM
@ Bruno, it could possible be the Pretty URL's Mod, try turning Prett URL's off and see if that lets your chat work. If so this might be the fix.

http://www.simplemachines.org/community/index.php?topic=257973.msg1998551#msg1998551 (http://www.simplemachines.org/community/index.php?topic=257973.msg1998551#msg1998551)




Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bruno36 on June 19, 2009, 10:22:41 AM
chat with RewriteRule ^ /? $. / chat / index.php [L, QSA] this does not
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 19, 2009, 10:27:59 AM
Attath your Load.php and I'll take a look.

If I can't get it I'm sure SK will when he gets home.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bruno36 on June 19, 2009, 10:30:15 AM
Merci
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 19, 2009, 10:54:49 AM
Quote from: Bruno36 on June 19, 2009, 10:30:15 AM
Merci

Sorry, you will have to be at the mercy of SK ;)  All the edits look fine and I tried your load file on my test site but could not duplicate the error.

He'll be here shortly, thank you for your patience.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: musc on June 19, 2009, 10:57:41 AM
Hello.I have problem with the chat.When I write something and put shout i can't see what write because it doesn't refresh.I have to refresh myself to see the content.What is the problem?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 19, 2009, 11:02:01 AM
Quote from: musc on June 19, 2009, 10:57:41 AM
Hello.I have problem with the chat.When I write something and put shout i can't see what write because it doesn't refresh.I have to refresh myself to see the content.What is the problem?

What version of Chat?
What version of SMF?

Also be sure to check out ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) for some settings
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 19, 2009, 11:24:54 AM
@ Bruno one thing I just dicsovered installing this on another site, if you have your forum set to UTF-8 rename your Themes/default/languages/Shout.english.php to Shout.english-utf8.php. It might not fix this problem but will prevent errors in the future.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: tbk22 on June 19, 2009, 01:01:34 PM
I have some questions about his

First of all im using this mod on a SMF 1.1.9 with custom theme and most things seem to be working great


But

Whats the diference between the chat and the shoutbox?

Why I only managed to get the shoutbox to work when integrated wth the chat?

How can i remove the sounds?' I tried to edit the config file but i allways got permission denied =S through the FTP client

Why some of my members appear as unnidentified users with nicknames like 24124 or 453265 oly with number?

How can i change the members display colour?

And Why isnt my chat working? Does it only work when I have the chat button on the menu? cuz i still don thave that
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Atoa on June 19, 2009, 01:08:50 PM
The chat and shout box doesn't work with pretty URL.

I'm having the same problem, i'm trying to get support with daniii from the pretty url for now.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 19, 2009, 02:22:05 PM
mrtrc266 has a link in his signature for FAQ which has a section about pretty URLs. You may find your solution there. Also, just because pretty URLs is installed doesn't mean chat WILL fail, it means it MIGHT have problems. I have both working nicely together with no workarounds. Hope this helps you.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 19, 2009, 06:02:04 PM
@Bruno

Have you tried clearing your site cache from within the admin panel? I also cannot reproduce the error using your Load.php.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: AM Woody3 on June 19, 2009, 08:22:59 PM
I searched the thread and didn't see this issue.  I could have missed it though.  While applying the mod, I get this error.  Any help would be appreciated.

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8
File: /home/hardcore/www/smf/Packages/temp/Tables_1.1.X.php
Line: 30
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Atoa on June 20, 2009, 09:36:08 AM
@Sunking
the solution given on the faq doesn't work for me.

O still can't get pretty url + Ajax Integration
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 20, 2009, 10:29:17 AM
@AM Woody
Attach your Tables_1.1.x.php please.

@Atoa
Does turning off Pretty URLs fix the AjaxChat? Can you post or PM a link to your site?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Atoa on June 20, 2009, 11:01:16 AM
@SunKing
The problem is only with the first pretty url option: "Rewrite Board URLs"
Once i turn off this one, the chat *imediatelly* start to work again.

the link is http://www.santuariorpgmaker.com/forum (it's on brasillian portuguese)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bruno36 on June 20, 2009, 11:38:03 AM
Quote from: mrtrc266 on June 19, 2009, 11:24:54 AM
@ Bruno one thing I just dicsovered installing this on another site, if you have your forum set to UTF-8 rename your Themes/default/languages/Shout.english.php to Shout.english-utf8.php. It might not fix this problem but will prevent errors in the future.

   
The file Shout.french-utf8.php and Shout.english-utf8.php is on the ftp server

Quote from: SunKing on June 19, 2009, 06:02:04 PM
@Bruno

Have you tried clearing your site cache from within the admin panel? I also cannot reproduce the error using your Load.php.

   
   
I empty the cache and disable Pretty URLs
Title: Re: AjaxChat Integration (3.2 Released)
Post by: dzinerfusion on June 20, 2009, 01:07:27 PM
ok i get this weird error, how come it points here??


Apply Filter: Only show the errors with the same message
Error 404 - Not Found (http://modernopolis.simgames.net/forum/css/beige.css)

When its supposed to be in /forum/chat???

I dont know what happened!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 20, 2009, 01:34:14 PM
@Bruno
I think you may have to change a server setting, or contact your host to change it. You can read some information about that error here (http://www.mydigitallife.info/2007/03/15/php-scripts-open_basedir-restriction-in-effect-error/).
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 20, 2009, 01:38:50 PM
@Atoa
Sorry if you have answered this previously, but did you add RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to a new line in the .htaccess located in your forum's root folder (the same folder as your SSI.php)?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Atoa on June 20, 2009, 03:16:10 PM
Yes and that gives me Erro:500 on the chat
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 20, 2009, 03:22:19 PM
Quote from: Atoa on June 20, 2009, 03:16:10 PM
Yes and that gives me Erro:500 on the chat

The 500 error is also covered on previous pages .......

Just got to change your file permissions to 755

Found the post:
Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM
If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" are set @ 755 and all "Files" are set @ 666.
You might have to change the index.php in your chat and shoutbox folder to 755.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Atoa on June 20, 2009, 03:54:40 PM
My chat files permissions is 777 '-'
I set this for tests and nothing

I get the error:500 *only* when i add the RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the .httacess

Edit.: now a new error. not only the chat does not work. but he looks like this after activating the pretty url
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi258.photobucket.com%2Falbums%2Fhh257%2Fatoa%2Fimg13-20.png&hash=08d29395817d731d3ad92418056b90edb59ad335)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 20, 2009, 04:36:44 PM
Quote from: Atoa on June 20, 2009, 03:54:40 PM
My chat files permissions is 777 '-'
I set this for tests and nothing

I get the error:500 *only* when i add the RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the .httacess

Edit.: now a new error. not only the chat does not work. but he looks like this after activating the pretty url
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi258.photobucket.com%2Falbums%2Fhh257%2Fatoa%2Fimg13-20.png&hash=08d29395817d731d3ad92418056b90edb59ad335)

Pretty URL interferes with the AJAXChat. They CANNOT be used together.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Atoa on June 20, 2009, 04:57:43 PM
QuotePretty URL interferes with the AJAXChat. They CANNOT be used together.
QuoteAlso, just because pretty URLs is installed doesn't mean chat WILL fail, it means it MIGHT have problems. I have both working nicely together with no workarounds.

If someone managed to have both working, i will try too o/
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 20, 2009, 05:01:21 PM
Quote from: Atoa on June 20, 2009, 04:57:43 PM
QuotePretty URL interferes with the AJAXChat. They CANNOT be used together.
QuoteAlso, just because pretty URLs is installed doesn't mean chat WILL fail, it means it MIGHT have problems. I have both working nicely together with no workarounds.

If someone managed to have both working, i will try too o/

Oh sorry about that. I didn't know someone got them working. It may also depend on your versions of everything if you can get them working together. But before you go adjusting anything do this. Leave the chat setup the way it is and deactivate your pretty urls. Go to your package manager and click 'uninstall'. After you uninstall it clear the caches and see if the chat works then. If it does then you know its the pretty url. After words you can re install the pretty urls (uninstalling it wont make you lose its settings).
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Atoa on June 20, 2009, 05:55:02 PM
The chat works fine even with the pretty url insalled, the problem is when i activate it.
I'm checking this topic and the pretty url topic so i manage a way to have both working.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: BarfBag on June 20, 2009, 09:02:49 PM
Guys, help!  I just brought my entire forum down.  o_O

QuoteParse error: parse error, unexpected $ in /home/content/r/b/r/rbrown1990/html/Sources/BoardIndex.php on line 617

I'm running SMF 1.1.9.  I'll post any information requested.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 20, 2009, 10:35:14 PM
Quote from: BarfBag on June 20, 2009, 09:02:49 PM
Guys, help!  I just brought my entire forum down.  o_O

QuoteParse error: parse error, unexpected $ in /home/content/r/b/r/rbrown1990/html/Sources/BoardIndex.php on line 617

I'm running SMF 1.1.9.  I'll post any information requested.

Please attach that file /Sources/BoardIndex.php
the BoardIndex.php
Title: Re: AjaxChat Integration (3.2 Released)
Post by: herohenson on June 20, 2009, 10:41:59 PM
i already done installing this mod, but gives error (10:44:56) ChatBot: Error: Connection status: 503
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 20, 2009, 10:49:29 PM
Quote from: herohenson on June 20, 2009, 10:41:59 PM
i already done installing this mod, but gives error (10:44:56) ChatBot: Error: Connection status: 503

Read this post already here and the reply after it.

http://www.simplemachines.org/community/index.php?topic=257973.msg2114596#msg2114596 (http://www.simplemachines.org/community/index.php?topic=257973.msg2114596#msg2114596)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DELHI_BOY on June 21, 2009, 02:21:45 PM
I just installed smf 1.1.9 and installed this mod. But is giving 'connection error:500'. How to solve this? Whenever i shout, it never show my shouted word but it show this error.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 21, 2009, 04:15:54 PM
If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

As posted in the FAQ which can be found here: http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (3.2 Released)
Post by: chrymo on June 22, 2009, 01:40:20 AM
Hi Guys, I spent several hours reading through this whole thread and searching for answers before finally posting this inquiry.

We have successfully the older version of Ajax chat on our SMF forum, it was a-ok until we saw this new release version. So I followed instructions of uninstalling the old one, delete the chat folder etc.

Once I ran the install for the 3.2 version, the test failed at index.template.php , can you guys let me know how to install this? We use the default template (only edited graphics).

Thanks for your help!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 01:50:23 AM
Quote from: chrymo on June 22, 2009, 01:40:20 AM
Hi Guys, I spent several hours reading through this whole thread and searching for answers before finally posting this inquiry.

We have successfully the older version of Ajax chat on our SMF forum, it was a-ok until we saw this new release version. So I followed instructions of uninstalling the old one, delete the chat folder etc.

Once I ran the install for the 3.2 version, the test failed at index.template.php , can you guys let me know how to install this? We use the default template (only edited graphics).

Thanks for your help!
You can use a Package Parser  (http://resourcez.biz/PackageParser/)and look at the edits that need to be done to the index.template.php. More than likely some other Mod has moved some code around. See if you can do the edits, if not attatch your index.template.php here and I'll take a look.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: chrymo on June 22, 2009, 01:54:10 AM
Thanks for the prompt response, I actually went through the parser before posting my previous post, edited my index.template.php and reuploaded, still the test install failed for index.template.php.

Attached here is my index.template.php file before parsing edit...

Thanks

edit: I am afraid to force install this since it might destroy my installation...
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 02:18:07 AM
@ chrymo

index.template.php edited and tested on my 1.1.9 test site. Of course as with any Mod make back up before applying Mod.

Proceed with install bypassing error and then upload this index.template.php to your default theme folder.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: chrymo on June 22, 2009, 02:34:25 AM
Thanks! Seems to be working so far, will post if I encounter errors.

Thank You very Much!!!  ;D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 02:36:15 AM
Quote from: chrymo on June 22, 2009, 02:34:25 AM
Thanks! Seems to be working so far, will post if I encounter errors.

Thank You very Much!!!  ;D

You're very welcome...enjoy the Mod :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 22, 2009, 03:06:48 AM
I was wondering... is there any chance to edit shoutbox themes just like you did for chat? I can tell that there are those same .css files in shoutbox, bot it seems like default for me on my page...
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DELHI_BOY on June 22, 2009, 06:01:24 AM
After changing chat and shoutbox folder permission to 755, Now i am getting "ChatBot: Error: Connection status: 0 " . I am using ReDark theme with smf 1.1.9
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 11:57:40 AM
Quote from: wladymeer on June 22, 2009, 03:06:48 AM
I was wondering... is there any chance to edit shoutbox themes just like you did for chat? I can tell that there are those same .css files in shoutbox, bot it seems like default for me on my page...

The /chat/css/shoutbox.css file is what you'd use to change style. Just change the colors to go with your theme.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 12:11:53 PM
Quote from: DELHI_BOY on June 22, 2009, 06:01:24 AM
After changing chat and shoutbox folder permission to 755, Now i am getting "ChatBot: Error: Connection status: 0 " . I am using ReDark theme with smf 1.1.9

Your Connection Status: 0 error is only occassional correct? It's a harmless error and can be removed from popping up.

chat/js/chat.js
Find
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
Replace with
if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 22, 2009, 01:10:34 PM
@mrtrc266: thank you - I've tried both shoutbox.css in forum/shoutbox and forum/Themes/default but nothing occured - it's very easy to fix now.

Cheers.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 01:30:43 PM
Quotebut nothing occured - it's very easy to fix now.

You confused me LOL....Did you get it sorted?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 22, 2009, 02:34:07 PM
Try reading whole sentence - I edited some other shoutbox.css files and nothing occured BUT (I've listen to your advice) and it was very easy to fix now :D

Meaning - yes, everything is fine now, thank you :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 02:50:49 PM
Cool...glad you got it sorted...Enjoy the Mod
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 22, 2009, 03:16:49 PM
Another question - My test users get this message every time they post or receive post in both shoutbox and chat:

QuoteChatBot: Error: Failed to load sound file (Flash IO Error).

Any idea what went wrong? Or at least, is there any way to disable ChatBot from posting or something like that.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 04:01:27 PM
Quote from: wladymeer on June 22, 2009, 03:16:49 PM
Another question - My test users get this message every time they post or receive post in both shoutbox and chat:

QuoteChatBot: Error: Failed to load sound file (Flash IO Error).

Any idea what went wrong? Or at least, is there any way to disable ChatBot from posting or something like that.

That is a FireFox issue, for some reason it doesnt load the sound initially but within a few moments the sounds kick in. The error should only show one time when you first get in the chat.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 22, 2009, 04:07:39 PM
So, next time they get in it shouldn't appear?

I mean, that was my scenario (I do use Opera btw, so it's not only Firefox issue) and I only remember seeing it once.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 04:16:19 PM
It will appear again should only appear the first time you log into the chat.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 22, 2009, 04:22:57 PM
Okay, it sounds like you're working on ;)

Is there any way to create default sound presets for all members? For example to set "-" for all sounds.

Also, is there some way to make ChatBot avoid idle timeout period?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 04:50:33 PM
Read through this it goes through a lot of customizations and settings.
~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Title: Re: AjaxChat Integration (3.2 Released)
Post by: dzinerfusion on June 22, 2009, 04:53:37 PM
hi Im back again and I would like to point out the ajax chat is not compatiable with the new pretty url mod when you enable rewrting. :(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 05:05:07 PM
Quote from: bluesinjid on June 22, 2009, 04:53:37 PM
hi Im back again and I would like to point out the ajax chat is not compatiable with the new pretty url mod when you enable rewrting. :(

This doesn't work anymore?
If you have problems and you also have Pretty URL's installed please READ THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 22, 2009, 05:08:34 PM
It seems that AjaxChat will currently only work with PrettyURLs 0.93 or lower. This was discovered while working to fix Atoa's issues. I have PrettyURLs and AjaxChat working together perfectly, but I am using PrettyURLs v 0.9. I haven't had a chance to look into this any further....
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 22, 2009, 05:14:37 PM
I have read it (already removed "board" rooms, modified idle time, default template and got logout redirects to forum) and although it helps a lot I wouldn't ask if I haven't found the answer inside of this topic. I tried with search through this topic and didn't get any post related to such questions.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 05:54:39 PM
Quote from: wladymeer on June 22, 2009, 04:22:57 PM
Okay, it sounds like you're working on ;)

Is there any way to create default sound presets for all members? For example to set "-" for all sounds.

Also, is there some way to make ChatBot avoid idle timeout period?
Quote from: wladymeer on June 22, 2009, 05:14:37 PM
I have read it (already removed "board" rooms, modified idle time, default template and got logout redirects to forum) and although it helps a lot I wouldn't ask if I haven't found the answer inside of this topic. I tried with search through this topic and didn't get any post related to such questions.

Sorry...the reason I thought you hadn't read it is becuase it shows the edit to adjust the timeout period.

Not sure what you mean by default sound presets? The sounds are set to a default preset but members can change them to their individual personal preferences in the Chat Room Settings Menu.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 22, 2009, 05:59:57 PM
I think wladymeer might be asking to have the sounds turned off by default.

I have a question also.  :P I cannot seem to find the information on implementing the word censor. I know it can be done because I had it already, but I upgraded and lost those edits (I forgot to back the files up first).  I have searched for it, but the search is not cooperating. Can you point me in the right direction?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 06:13:45 PM
Ahhh....there's not really a function to turn on/off chat by default for all members but members can hit the mute button in the Chat Room. Or you can disable the sound.

For the Chat Room
Will have to look for edit ;)

For the shoutbox

Find chat/lib/template/shoutbox.html
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');
Replace with
ajaxChatConfig.settings.audio = false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink','audio');


@ SK here you go. If I remember correctly this didn't work too well and you had to edit the edit LOL

http://ajax-chat.wiki.sourceforge.net/Mod+Word+Filter (http://ajax-chat.wiki.sourceforge.net/Mod+Word+Filter)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 22, 2009, 06:30:57 PM
Well, correct me if I'm wrong but does Chatbot ever logs out from chat due to idle timeout? If he does, is there any way to override that setting? If he doesn't, well, my bad then I guess :)

Next, yea, muting all sounds would be one solution I was thinking off - but it was more like ability for admin to create some templates or presets so that, lets say, all members have sound3 for incoming messages and no sound for login without having to set manually. Same question could apply for "Number of blink intervals:" issue.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 06:42:22 PM
I have never seen the ChatBot Timeout.

For your sounds and blink you could play with your config.js file

/chat/js/config.js

  // Defines if sounds are played:
  audio: true,
  // Defines the sound volume (0.0 = mute, 1.0 = max):
  audioVolume: 1.0,
  // Defines the sound that is played when normal messages are reveived:
  soundReceive: 'sound_1',
  // Defines the sound that is played on sending normal messages:
  soundSend: 'sound_2',
  // Defines the sound that is played on channel enter or login:
  soundEnter: 'sound_3',
  // Defines the sound that is played on channel leave or logout:
  soundLeave: 'sound_4',
  // Defines the sound that is played on chatBot messages:
  soundChatBot: 'sound_5',
  // Defines the sound that is played on error messages:
  soundError: 'sound_6',
 
  // Defines if the document title blinks on new messages:
  blink: true,
  // Defines the blink interval in ms:
  blinkInterval: 500,
  // Defines the number of blink intervals:
  blinkIntervalNumber: 10
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 22, 2009, 06:50:13 PM
Judging by given I believe I will be able to make some customized template/presets for my chat.

I will message you if something goes wrong but I believe everything will be just fine.

Just another short question, if I set audio: false, could I prevent that flash IO error from happening?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 07:00:39 PM
Possibly might stop it from appearing in the shoutbox.

Post back if you need anymore help
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 22, 2009, 09:46:48 PM
Quote from: mrtrc266 on June 22, 2009, 06:13:45 PM
@ SK here you go. If I remember correctly this didn't work too well and you had to edit the edit LOL

http://ajax-chat.wiki.sourceforge.net/Mod+Word+Filter (http://ajax-chat.wiki.sourceforge.net/Mod+Word+Filter)

That was what I was looking for! Thank you. Also, I did have to edit the edit. However, this time around, I managed to figure a way to edit it and still keep the global + case insensitivity switches. I was having trouble with censored words still showing if they were typed in caps. To use the word sensor and keep the case insensitivity, simply wrap each line in another set of parenthesis. This allows not having to eliminate the /gi switches as posted in my original fix for the censor (where ever that may be in this thread)  :P

For each text=text.replace(/foo/gi, 'Donkey Foo');
or text=text.replace('foo', 'Donkey Foo');
change it to (text=text.replace(/foo/gi, 'Donkey Foo'));
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 22, 2009, 10:55:47 PM
Regarding:

Change the name of your Chatbot
Open.....yourforum/chat/lib/config.php
Find and change Chatbot to whatever you'd like.
Code: [Select]
// The userName used for ChatBot messages
$config['chatBotName'] = 'ChatBot';

1. Can this be done via edit in the servers control panel?
2. Where do I add the new name( Jeeves)?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 11:16:12 PM
YVW SK, thanks for the edit...will add it to the FAQ's




Quote from: TheListener on June 22, 2009, 10:55:47 PM
Regarding:

Change the name of your Chatbot
Open.....yourforum/chat/lib/config.php
Find and change Chatbot to whatever you'd like.
// The userName used for ChatBot messages
$config['chatBotName'] = 'ChatBot';


1. Can this be done via edit in the servers control panel?
2. Where do I add the new name( Jeeves)?

The easiest way that I have found to make edits to your files  is the following.

Download and install an FTP Program like FileZilla
FileZilla_3.2.5_win32-setup.exe (https://www.ohloh.net/projects/filezilla/download?filename=FileZilla_3.2.5_win32-setup.exe)
Goto File/Site Manager/New Site/....enter your FTP account details and click Connect....You wll see all your folder(directories) in a list.

Download and install Notepad++
npp.5.4.3.Installer.exe (http://sourceforge.net/project/downloading.php?group_id=95717&filename=npp.5.4.3.Installer.exe&a=31329258)

Now instead of using your server control panel to make all your edits just download the file via FileZilla, make the edits using Notepad++ and then upload the file back to your server via FileZilla.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 22, 2009, 11:21:28 PM
Ya like making me shiver bud. Already have notepad++ on the computer.

Still I gotta learn one day  ;D

Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 22, 2009, 11:32:30 PM
What about FileZilla....much easier than using your Server cPanel
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 22, 2009, 11:34:21 PM
Yep the old dinosaurs there too.

(Filezilla not me).
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bouncerball on June 23, 2009, 05:45:49 AM
my Version of forum is: SMF 2.0 RC 1-1
I open Ajax Chat in a new window.

My question:
Where can I change the title of the new window.
There is: "AJAX CHAT"
May I change this in "whatever"?

Thanks
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Danpotter on June 23, 2009, 07:49:35 AM
please someone post modifications for URBAN theme
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 23, 2009, 09:40:49 AM
@ Bouncerball

Make the same edits to these 2 files

/chat/lib/template/loggedIn.html
/chat/lib/template/loggedOut.html

Find
<title>[LANG]title[/LANG]</title>
Replace with
<title>Change to what you like here</title>

Find
<h1>[LANG]title[/LANG]</h1>
Replace with
<h1>Change to what your like here</h1>



 
@ Danpotter

If I remember correctly from about 100 pages ago you have a Premium Theme?
If you have installed the New Chat 3.2 then this should be a lot easier this time as there are only a couple edits to the theme now.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Krandall on June 23, 2009, 07:42:03 PM
Quote from: Krandall on June 16, 2009, 11:34:43 PM
Quote from: Chit-Chat ChatterBox Boss on June 16, 2009, 07:45:17 PM
Quote from: Krandall on June 16, 2009, 07:32:03 PM
//shoutBox
global $board;
if(isset($board) && $board == 1 || $board == 33)
{
shoutbox();
    }

No dice. Here's what I have. Same thing. Just plain doens't show.
I dont know if you mean for it to be this way but the above code is not the same as he posted.


global $board;
   if(isset($board) && $board == 1.0 || $board == 33.0)
   {
   shoutbox_bottom();
    }

Your numbers are not the same and the shoutbox call is not the same. Did not know if you intended to do that or it was a mistake.

'

Yeah, I had tried both ways. in my original code I had just the # no . (like my example above) tried and still nothin :(

bump
Title: Re: AjaxChat Integration (3.2 Released)
Post by: woolly bugger on June 24, 2009, 07:37:11 PM
Why do I get all of these Markup Validation errors after installing this mod??

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.brfff.com%2Fforum%2Findex.php
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ajes on June 25, 2009, 12:30:47 AM
need help...

anyone in here can install ajax chat on my forum please...

i've try so many times but still failed..

PM me for details...

your help will be so appreciated.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: tfalbb on June 25, 2009, 09:53:29 AM
All installed and seems to be working after messing with the configuration a little, but I have the following problems.

I keep getting timed out. This despite changing the timeout value in config.php to 2000 minutes with a 120 minute delay between checks. It just happened again after being logged in for 60 minutes. Names of those who are no longer there though, no longer seem to disappear due to the values in config.

When I get timed out it gives me the Ajax Chat login form. When I log in again, instead of the chat room appearing in the window as one would expect, the forum appears. From there I have to click on Chat to get the chat room in the window.

I never had these problems when I was using version 1.0, but having broken the forum I had to install this version instead after mending it (I did delete the Chat directory as instructed first).
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 25, 2009, 09:56:55 AM
@ajes

I guess my offer of doing it this weekend won't be necessary then?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 25, 2009, 11:37:12 AM
Quote from: ajes on June 25, 2009, 12:30:47 AM
need help...

anyone in here can install ajax chat on my forum please...

i've try so many times but still failed..

PM me for details...

your help will be so appreciated.

I don't what your problem was but I just went to your site, uploaded the Mod via Package Manager, Installed it and it went just fine, no errors. Enjoy
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ajes on June 25, 2009, 12:43:24 PM
thanks to mrtrc266, i now have ajax chat on my forum.

but now i have the problem, other member can't access the chat. anybody know how to solve it?

thanks.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 25, 2009, 12:50:35 PM
Quote from: ajes on June 25, 2009, 12:43:24 PM
thanks to mrtrc266, i now have ajax chat on my forum.

but now i have the problem, other member can't access the chat. anybody know how to solve it?

thanks.

Be sure to set your permissions for Member Groups that you want to have access to Shout and Chat.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ajes on June 25, 2009, 12:56:39 PM
Quote from: mrtrc266 on June 25, 2009, 12:50:35 PM
Quote from: ajes on June 25, 2009, 12:43:24 PM
thanks to mrtrc266, i now have ajax chat on my forum.

but now i have the problem, other member can't access the chat. anybody know how to solve it?

thanks.

Be sure to set your permissions for Member Groups that you want to have access to Shout and Chat.

oh god, i forgot to set permission in there. now the problem solved.

thanks again to mrtrc266. your the greatest.  :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 25, 2009, 12:59:55 PM
Glad you got it sorted...Enjoy the Mod :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: tbk22 on June 25, 2009, 07:50:35 PM
Quote from: tbk22 on June 19, 2009, 01:01:34 PM
I have some questions about his

First of all im using this mod on a SMF 1.1.9 with custom theme and most things seem to be working great


But

Whats the diference between the chat and the shoutbox?

Why I only managed to get the shoutbox to work when integrated wth the chat?

How can i remove the sounds?' I tried to edit the config file but i allways got permission denied =S through the FTP client

Why some of my members appear as unnidentified users with nicknames like 24124 or 453265 oly with number?

How can i change the members display colour?

And Why isnt my chat working? Does it only work when I have the chat button on the menu? cuz i still don thave that

CAn anyone answear my questions?

Thanks in advance
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 25, 2009, 07:56:50 PM
Quote from: tbk22 on June 25, 2009, 07:50:35 PM
Quote from: tbk22 on June 19, 2009, 01:01:34 PM
I have some questions about his

First of all im using this mod on a SMF 1.1.9 with custom theme and most things seem to be working great


But

Whats the diference between the chat and the shoutbox?

None that I can see.

Why I only managed to get the shoutbox to work when integrated wth the chat?

Pass.

How can i remove the sounds?' I tried to edit the config file but i allways got permission denied =S through the FTP client

I believe this has been answered in previous posts  already.

Why some of my members appear as unnidentified users with nicknames like 24124 or 453265 oly with number?

They have to log into the chat.

How can i change the members display colour?

The boys are working on integrating this.

And Why isnt my chat working? Does it only work when I have the chat button on the menu? cuz i still don thave that

Pass.

Can anyone answear my questions?

Thanks in advance
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 25, 2009, 10:44:48 PM
We now have a chatbot with a name.

Tried the edit so people would see a welcome yet the edit didn't work.

Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 12:54:56 AM
Quote from: tbk22 on June 19, 2009, 01:01:34 PM
I have some questions about his

First of all im using this mod on a SMF 1.1.9 with custom theme and most things seem to be working great

But

Whats the diference between the chat and the shoutbox?
The Chat Room is a Fully Functional Chat Room like yahoo, aim, etc. The shoutbox is just a box that you can chat through that will sit on top of your index page or all pages of your forum

QuoteWhy I only managed to get the shoutbox to work when integrated wth the chat?

Will have to take a look, I haven't ran into this problem before.

QuoteHow can i remove the sounds?' I tried to edit the config file but i allways got permission denied =S through the FTP client
That sounds like an issue with your FTP

QuoteWhy some of my members appear as unnidentified users with nicknames like 24124 or 453265 oly with number?
Make sure that your have set your permissions to allow your user groups access to chat/shoutbox

QuoteHow can i change the members display colour?
For the shoutbox... /chat/lib/css/shoutbox.css
For the ChatRoom.../chat/lib/yourstyle.css (Example beige.css, black.css, Cobalt.css....etc)
You can change the colors for Admin/Moderator/Users/Guests

QuoteAnd Why isnt my chat working? Does it only work when I have the chat button on the menu? cuz i still don thave that

CAn anyone answear my questions?

Thanks in advance
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 26, 2009, 01:01:51 AM
Quote from: TheListener on June 25, 2009, 10:44:48 PM
We now have a chatbot with a name.

Tried the edit so people would see a welcome yet the edit didn't work.

The welcome is working
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bobbyd on June 26, 2009, 01:17:15 AM
About 40 minutes ago I Loaded ajax 3.2 and I have now totally lost my forum.  I was loving smf until then.  No matter what I click the following message occurs:

Fatal error: Cannot redeclare getshoutboxcontent() (previously declared in /home/content/b/o/b/bobdornan/html/simplemachinesforum/Sources/Load.php:2214) in /home/content/b/o/b/bobdornan/html/simplemachinesforum/Sources/Load.php on line 2292

Nothing in admin works, I am totally lost a bit frustrated.  SMF was loaded through godaddy without any hiccups at all and I was able to load avatars etc without issue.  Then I loaded 3.2 and all is gone.

My URL is http://internationalmansite.com/simplemachinesforum    pls help
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 26, 2009, 01:21:33 AM
That's a small problem really. It just means that the mod was installed twice. It can be fixed fairly easily.
Make a backup of your index.template.php first.
Then open index.template.php and find ', getShoutBoxContent() ,' and remove it. this will prevent chat from working but should get your site back up.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Mraza on June 26, 2009, 04:57:16 AM
hello mrtrc266 ! i wanted to inform you that there is new version of Ajax Chat has been released . Please check this link
http://sourceforge.net/project/showfiles.php?group_id=214758&release_id=692521

Version Note:
QuoteRelease Name: 0.8.3

        Notes:
        Version 0.8.3 adds 5 new languages and 2 new language corrections.

A buffer is now used to reduce the number of DOM calls and improve chat performance.

Chat will try to reconnect when the connection with the server is lost, and the icon will indicate the problem by turning red.

Some minor bugfixes as well.

Thanks to everyone who contributed to keeping this project aliv

Version Changes:
QuoteChanges:
        Version 0.8.3  (26.06.2009):
-------------------------------

New features:
- Added Hungarian localization - thanks to Atag and Molnár Tamás.
- Added Welsh localization - thanks to Alan Davies.
- Added Estonian localization - thanks to Alar Sapelkov.
- Added Galician localization - thanks to Ruth.
- Added Georgian localization - thanks to Giorgi Maghlakelidze.
- Updated French localization - thanks to Xytovl.
- Updated Finnish localization - thanks to Saku Laukkanen.
- Nicer looking status icons.
- Status icon turns red when there is connection trouble.
- Chat will now automatically attempt to reconnect to the server if the connection is lost, rather than dying silently.
- Chat now uses a buffer before performing multiple DOM operations. This should give a noticeable speed improvement when the
chat list updates many messages at once (such as when viewing logs). - thanks to varamin.

Bugfixes:
- The invite, uninvite, and whereis user menu options will now only appear in the inline user menu.
- Rolled back the database name handling change because of too many conflicts. If your database has a hyphen in it, you should
check the AJAXChatDataBase.php file to see the commented line.

Changed files:
- css/* (all theme specific stylesheets in all versions)
- img/loading.png (all versions)
- img/loading-done.png (all versions)
- img/loading-trouble.png (all versions - new)
- js/chat.js (all versions)
- js/lang/cy.js (all versions - new)
- js/lang/et.js (all versions - new)
- js/lang/fi.js (all versions)
- js/lang/fr.js (all versions)
- js/lang/gl.js (all versions - new)
- js/lang/hu.js (all versions - new)
- js/lang/ka.js (all versions - new)
- lib/config.php (all versions)
- lib/lang/cy.php (all versions - new)
- lib/lang/et.php (all versions - new)
- lib/lang/fi.php (all versions)
- lib/lang/gl.php (all versions - new)
- lib/lang/hu.php (all versions - new)
- lib/lang/ka.php (all versions - new)
So please in this version are many bugs fixed..if you have time to integrated it with your Mod will be great ....Thanks :)
Title: Re: AjaxChat Integration
Post by: Frelo21 on June 26, 2009, 09:52:20 AM
Quote from: SunKing on May 10, 2009, 10:50:45 PM
You've been busy, mrtrc266!  :P

Any word yet on my Error: Connection status: 0 issue? Give me some good news. ;)


EDIT:
HOLY!!!!!!!!! I have my own good news!!! I finally got it working on my test site! I figured I would start from the very beginning and work my way through each step again. When I got to the PrettyUrls Tip posted by Jiveturkey (I am adding this mod to a clean install), I decided to just give it a try anyway....which I had done previously as well. However, on this particular try, I noticed another .htaccess file and figured I'd try adding RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to this overlooked .htaccess and TADA!!! It works! Time to enjoy (finally)!!!


Im having this exact same problem , I  installed pretty url, and now my chat isnt working (you cant see whos online, etc)

can someone please help
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Hardcase on June 26, 2009, 10:07:33 AM
Help needed  ::)

My chatroom was working well, but today for some reason the chatroom loads up but it does not show anyone in chat (users blank) the actual chat window does not show the chatbot message and even if you type in, which it appears to do it does not then appear in the chatroom once entered, any ideas?

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

When i try through google chrome i get this error:

This page contains the following errors:

error on line 1 at column 1: Document is empty
Below is a rendering of the page up to the first error.

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

When i use firefox it seems to work ok, but i cannot confirm this as the only person online uses IE and i know that is not rendering properly.

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


Oh btw for anyone in the future who gets this error \' when you enter ' this is the fix  ;)
QuoteSlashes appear before apostrophes

This bug appears to occur when PHP's magic_quotes_gpc is set to off in your server configuration.

You can fix this by changing the following line in AJAXChat.php:

if(get_magic_quotes_gpc()) {

to

if(true) {

I enquired about the above some pages ago, mrtrc266 tried to help but we couldnt figure it out, found the code a couple of days ago  8)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Frelo21 on June 26, 2009, 10:24:25 AM
have you installed any recent mods?
especially the pretty url , seo mod etc?

you will have to add the command that was in the previous page that I quoted , to the .htaccess file,


My chat is now working thanks to the user who helped with that file.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Hardcase on June 26, 2009, 10:26:59 AM
No i havent installed any other mod recently, as i said this was working upto last night, came to use it this morning and its not rendering properly, the box is coming up but the users, messages etc are not showing.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 10:40:37 AM
Quote from: Hardcase on June 26, 2009, 10:26:59 AM
No i havent installed any other mod recently, as i said this was working upto last night, came to use it this morning and its not rendering properly, the box is coming up but the users, messages etc are not showing.

Try setting your file permissions (CHMOD) these 2 files to 775
/chat/index.php and /shoutbox/index.php
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Hardcase on June 26, 2009, 10:47:20 AM
OK, the files were originally 644, changed them to 775 and the chatbox then came up with an internal server error 500 (not in the chatbox but as i opened the chatbox) then changed them to 755 thinking perhaps you had mistyped, the chatbox comes up but then with the same as under 644, no change another words and not correct, changed back to 644 now, awaiting further instructions :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bobbyd on June 26, 2009, 10:53:54 AM
Quote from: SunKing on June 26, 2009, 01:21:33 AM
That's a small problem really. It just means that the mod was installed twice. It can be fixed fairly easily.
Make a backup of your index.template.php first.
Then open index.template.php and find ', getShoutBoxContent() ,' and remove it. this will prevent chat from working but should get your site back up.

this was all loaded through and on godaddy.  I have no access to index.template.php...any suggestions?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 26, 2009, 11:02:47 AM
Use godaddy's file manager. Or use your favorite ftp program. I will be home in about 5 hours. I can walk you through it then.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 11:10:04 AM
Quote from: Hardcase on June 26, 2009, 10:47:20 AM
OK, the files were originally 644, changed them to 775 and the chatbox then came up with an internal server error 500 (not in the chatbox but as i opened the chatbox) then changed them to 755 thinking perhaps you had mistyped, the chatbox comes up but then with the same as under 644, no change another words and not correct, changed back to 644 now, awaiting further instructions :)

LOL Yeah I mistyped they should both be 755, if that doen't work I'll have to take a look when I get home. Off to work for now.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 26, 2009, 11:55:36 AM
Is there any way you can disable "chat" link on the top menu for guests? In other words, is there any way to make that link visible to members only? Or, is there any way to require username & password match to SMF username base for logging into chat or something like that?

Main idea is to prevent guests from logging in so anything will do ;)

Also, I have joomla for my main page - is there some way to show that "X user is in chat.:" link there?

I apologize if those questions were asked already but I've searched topic and couldn't find it.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Supermobilegame on June 26, 2009, 02:35:44 PM
Same question wladymeer :)
This mods run smoothly in smf 1.1.9 but can someone tell me where the chat setting / admin setting? cause since i don't want guest can use this chat systems.
Thanks :D

Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 03:23:43 PM
I tried installing this Ajaxchat. It installed without errors but when I clicked on chat button it crashed. Window opens and says it's not accessable. Doesn't even create a CHAT folder like the docs say. :(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TreadLight on June 26, 2009, 06:45:31 PM
For some reason, nothing shows up when I try and use this chat feature. It is completely blank (all white) even if I send a message [with smileys]. Can you please tell me what to do?

Look at this picture: http://venthemiux.webs.com/Flash%20Compendium/ajax%20problem.png
You can also view it via the forum, itself: http://venthemiux.netau.net/SMF/index.php

Thanks in advance.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chaos Dragon on June 26, 2009, 06:56:26 PM
TreadLight

Make sure both index.php are chmod 777 or 755 which ever the case may be for you.

./chat/index.php chmod 777 or 755
./shoutbox/index.php chmod 777 or 755

Hope this helps.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 26, 2009, 07:00:29 PM
Since making a few changes to chat ie changing window so previous chats could not be viewed we are now unable to chat again. How do I rectify this?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TreadLight on June 26, 2009, 07:05:13 PM
Chef-Polo, I'm sorry, but I have no idea what you mean by this. >_<"
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 26, 2009, 07:08:37 PM
Quote from: Chef-Polo on June 26, 2009, 06:56:26 PM
TreadLight

Make sure both index.php are chmod 777 or 755 which ever the case may be for you.

./chat/index.php chmod 777 or 755
./shoutbox/index.php chmod 777 or 755

Hope this helps.

These are done via ftpto your permission settings.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TreadLight on June 26, 2009, 07:11:09 PM
So.. Umm... Can you guide me on how to do such a thing? All I want is to be able to use the chat.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 26, 2009, 07:13:21 PM
Quote from: TreadLight on June 26, 2009, 07:11:09 PM
So.. Umm... Can you guide me on how to do such a thing? All I want is to be able to use the chat.

All I can suggest is you leave a message in topic for mrtrc266 or Sunking regarding the problem.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TreadLight on June 26, 2009, 07:18:04 PM
... I still have no idea what you are talking about. >_<
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chaos Dragon on June 26, 2009, 07:26:31 PM
You can also do it manually by changing permissions through file manager in your cPanel if your host uses a cPanel.

Otherwise just find ./chat/index.php and ./shoutbox/index.php. and this would be in directory SMF in your public_html unless you are using a subdomain or add-on domain.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: tbk22 on June 26, 2009, 07:30:31 PM
thx for all your answears

Waiting for more features of this mod
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TreadLight on June 26, 2009, 07:39:09 PM
Quote from: Chef-Polo on June 26, 2009, 07:26:31 PM
You can also do it manually by changing permissions through file manager in your cPanel if your host uses a cPanel.

Otherwise just find ./chat/index.php and ./shoutbox/index.php. and this would be in directory SMF in your public_html unless you are using a subdomain or add-on domain.

Okay, I can edit the shoutbox/index.php and chat/index.php files, I just need to know exactly what to do with them to make them work.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 07:49:26 PM
I have permission set as you say, still not running
:-X
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chaos Dragon on June 26, 2009, 07:57:12 PM
TreadLight
You will not need to edit the files themselves just change permissions from 666 to 755 or 777.
If your not sure which ask your Host Provider.

Bionic Rooster
I would suggest leaving your post for the mod creator to read and then they may be able to help you.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 07:59:44 PM
I just checked my server settings and all required files are present, but chat or shout is still not working
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chaos Dragon on June 26, 2009, 08:06:35 PM
Bionic Rooster

What exactly is the problem as far as not working. Are you getting any error messages and so forth?
Is it causing your site to crash...You will need to be a little more specific.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 08:09:57 PM
Everything istalls wilthout error. When I click on Chat button a seperate window opens and I get this Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


  Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.international-star-riders.com Port 80   There is no error in the sever logs related to chat.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chaos Dragon on June 26, 2009, 08:12:56 PM
Bionic Rooster

I got that same error also when I installed Ajax Chat it is a simple permissions change aka chmod if that is not fixing the problem then I would leave your post and let the mod creator read.

Try both 755 and 777
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 08:13:34 PM
I did find this error related to today
Fri Jun 26 18:04:33 2009] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 08:15:49 PM
Files and folders are set to 777
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chaos Dragon on June 26, 2009, 08:18:59 PM
Also it does not work with all themes. If your not already using it switch to the default theme and try that. Other wise leave your post and the mod creator will help you as soon as they read your post.
Also try 755 Bionic Rooster. My Host does not allow me to use 777 if I were to use it I would get the same Internal Server Error.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 09:30:08 PM
@ TreadLight, how do you access your files? By cPanel or an FTP Program?

If you access by cPanel then your should see something towards the right of the file like (CHMOD)

If you use an FTP Program locate the file, right click on it and you should see something like "Permissions"

CHMOD=Permission (they're both the same thing)

find /chat/index.php and CHMOD (change permissions) to 755
find /shoutbox/index.php and CHMOD (change permissions) to 755




@ Bionic Rooster, what's the URL to your forum...not your site but the forum part of it?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 09:32:46 PM
@ Bionic Rooster, what's the URL to your forum...not your site but the forum part of it?

http://www.international-star-riders.com/nsg/nsgforum/index.php (http://www.international-star-riders.com/nsg/nsgforum/index.php)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 26, 2009, 09:33:25 PM
mrt

I followed the instructions you and sunking gave me to change the name and I now have the welcome to showing in chat.

1. We are unable to chat again

2. Above sunkings chatboc area is the forum name, how would I do this to replace ajax chat?

Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 09:40:59 PM
Quote from: Bionic Rooster on June 26, 2009, 09:32:46 PM
@ Bionic Rooster, what's the URL to your forum...not your site but the forum part of it?

http://www.international-star-riders.com/nsg/nsgforum/index.php (http://www.international-star-riders.com/nsg/nsgforum/index.php)

Have you set your file permissions for /chat/index.php and /shoutbox/index.phpto 755 ?

Have you tried it under the default theme?

What Mods do you have installed?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 09:43:18 PM
TL are you talkin about replacing the word "ShoutBox?"
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 26, 2009, 09:44:28 PM
Quote from: mrtrc266 on June 26, 2009, 09:43:18 PM
TL are you talkin about replacing the word "ShoutBox?"

No

When in the chat at the top it says ajax chat.

Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 09:45:58 PM
Permission set to 755
Does not work under default theme either
Mods are - Simpleportal 2.2.2, SMF Media Gallery 1.5.6, Users Online Today 1.5.4, and Ajaxchat 3.2
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 09:56:18 PM
If I activate shoutbox I get the following error (18:55:20) ChatBot: Error: Connection status: 500
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 26, 2009, 09:57:23 PM
Quote from: wladymeer on June 26, 2009, 11:55:36 AM
Is there any way you can disable "chat" link on the top menu for guests? In other words, is there any way to make that link visible to members only? Or, is there any way to require username & password match to SMF username base for logging into chat or something like that?

Main idea is to prevent guests from logging in so anything will do ;)

Also, I have joomla for my main page - are you familiar with showing that "X user is in chat.:" link there?

I apologize if those questions were asked already but I've searched topic and couldn't find it.

And I also apologize for bumping this up but it seems to me you missed it - but I really admire your feedback :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 10:04:16 PM
Quote from: Bionic Rooster on June 26, 2009, 09:56:18 PM
If I activate shoutbox I get the following error (18:55:20) ChatBot: Error: Connection status: 500

Yeah that's the same error as when you try to access your chat.

In almost every case this is solved br settin those files to 755.

Due to your website intergration this might be something different, what it the content of your .htaccess file?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 10:05:19 PM
Quote from: TheListener on June 26, 2009, 09:44:28 PM
Quote from: mrtrc266 on June 26, 2009, 09:43:18 PM
TL are you talkin about replacing the word "ShoutBox?"

No

When in the chat at the top it says ajax chat.

http://www.simplemachines.org/community/index.php?topic=257973.msg2124519#msg2124519 (http://www.simplemachines.org/community/index.php?topic=257973.msg2124519#msg2124519)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 10:07:21 PM
Quote from: wladymeer on June 26, 2009, 09:57:23 PM
Quote from: wladymeer on June 26, 2009, 11:55:36 AM
Is there any way you can disable "chat" link on the top menu for guests? In other words, is there any way to make that link visible to members only? Or, is there any way to require username & password match to SMF username base for logging into chat or something like that?

Main idea is to prevent guests from logging in so anything will do ;)

Also, I have joomla for my main page - are you familiar with showing that "X user is in chat.:" link there?

I apologize if those questions were asked already but I've searched topic and couldn't find it.

And I also apologize for bumping this up but it seems to me you missed it - but I really admire your feedback :)

By default your users should automatically be able to log into the chat with thier SMF username/password.

If guests are getting in be sure to set the permissions in your SMF Admin to disallow guests to access chat/shoutbox.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 10:10:05 PM
Quote from: mrtrc266 on June 26, 2009, 10:04:16 PM

Due to your website intergration this might be something different, what it the content of your .htaccess file?

Both files are set to 755, chat and shout folders are set to 777
Condtents of .htaccess is
AddHandler application/x-httpd-php5 .php
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 94.102.59.130
deny from 64.59.134.9
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 26, 2009, 10:21:59 PM
I'm providing you with pictures.

As you can see, I set none permission for guests but they can see "chat" link in main menu. And you can see I logged in as a guest (that number username) further.

What I do want is to ask is there any way I can remove chat link from main menu for guests?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 10:26:40 PM
@ Bionic Rooster, Sorry but Im not too familiar messing with site intergrations or .htaccess but this might help. This is related to another user who getting a 404 error (which your error page says you're getting as well)

http://sourceforge.net/forum/forum.php?thread_id=2811928&forum_id=774132 (http://sourceforge.net/forum/forum.php?thread_id=2811928&forum_id=774132)

Maybe try adding to your .htaccess what this user did.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 26, 2009, 10:38:36 PM
Thanks mrt it now says 'Welcome to Paranormal Haunt chat'
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 10:44:56 PM
Quote from: mrtrc266 on June 26, 2009, 10:26:40 PM
@ Bionic Rooster, Sorry but Im not too familiar messing with site intergrations or .htaccess but this might help. This is related to another user who getting a 404 error (which your error page says you're getting as well)

http://sourceforge.net/forum/forum.php?thread_id=2811928&forum_id=774132 (http://sourceforge.net/forum/forum.php?thread_id=2811928&forum_id=774132)

Maybe try adding to your .htaccess what this user did.

I tried adding DirectoryIndex portal.php index.php index.html index.htm and it still does not work.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 26, 2009, 10:50:05 PM
Have 2 problems now chat is showing in the shoutbox but nothing in chat.

I tried to follow sunkings post notification thread but not sure if its working(  ???)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 10:51:24 PM
Well thank you for all your help maybe someone else will have an idea.  :'(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 11:04:09 PM
Quote from: Bionic Rooster on June 26, 2009, 10:51:24 PM
Well thank you for all your help maybe someone else will have an idea.  :'(

Diggin around SourceForge and other places to try to find a solution, possibly SunKing or Hunter might have an idea or 2.

Thank you for your patience
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 11:05:47 PM
Quote from: TheListener on June 26, 2009, 10:50:05 PM
Have 2 problems now chat is showing in the shoutbox but nothing in chat.
I tried to follow sunkings post notification thread but not sure if its working(  ??? )

Can't get to your site....not loading
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 11:07:51 PM
HI Richard, I just tried your chat and it wouldn't post what I typed. :P
Not a good night for chat programs eh?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 11:09:56 PM
Quote from: mrtrc266 on June 26, 2009, 11:04:09 PM
Quote from: Bionic Rooster on June 26, 2009, 10:51:24 PM
Well thank you for all your help maybe someone else will have an idea.  :'(

Diggin around SourceForge and other places to try to find a solution, possibly SunKing or Hunter might have an idea or 2.

Thank you for your patience

Patience hell, I want my hair back LOL  :P
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 26, 2009, 11:10:34 PM
Have manually changed the post notification ( tooks ages and cant test it)

also changed the chat to welcome

Thats enough for the week methinks
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 11:11:13 PM
@ wladymeer Sunking Just posted how to remove the button from guests a few pages back for another member...trying to find it
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 11:12:55 PM
Quote
Patience hell, I want my hair back LOL  :P

Just start shaving your head, then it will be by choice  LMAO!!!  :P  Just ask Sunking how long it took him to get this going on his site. Then ask him if it was worth the wait ;)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 26, 2009, 11:20:26 PM
should the permission for chat index php be 755?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 26, 2009, 11:24:11 PM
Quote from: TheListener on June 26, 2009, 11:20:26 PM
should the permission for chat index php be 755?

Yes for /chat/index.php and /shoutbox/index.php
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 26, 2009, 11:30:41 PM
was working fine earlier but now shoutbox is useable but nothing appears in chat
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 11:37:22 PM
Do you think it could be something in the index.php not pointing in the right direction?

<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/ (https://blueimp.net/ajax/)
*/
if (!$_GET['shoutbox']){
$host  = $_SERVER['HTTP_HOST'];
$uri   = rtrim(dirname(dirname($_SERVER['PHP_SELF'])), '/\\');
$extra = 'chat/index.php';
header("Location: http://$host$uri/$extra (http://$host$uri/$extra)");
}
// Show all errors:
error_reporting(E_ALL);
// Path to the chat directory:
define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
// Include custom libraries and initialization code:
require(AJAX_CHAT_PATH.'lib/custom.php');
// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');
// Initialize the chat:
$ajaxChat = new CustomAJAXChat();
?>
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 11:41:32 PM
Well if that don't beat all. I swept my hair up off the floor, used some Almers glue, deleted chat, reinstalled and now it works. Check it out before it goes cablewy LOL
http://www.international-star-riders.com/nsg/nsgforum/index.php (http://www.international-star-riders.com/nsg/nsgforum/index.php)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 26, 2009, 11:43:26 PM
am jealous
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 26, 2009, 11:46:44 PM
I can pull the horse shoe outa my butt and send it to ya but don't know if I can overnight it to UK  :P
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 27, 2009, 12:08:56 AM
Quote from: Bionic Rooster on June 26, 2009, 11:46:44 PM
I can pull the horse shoe outa my butt and send it to ya but don't know if I can overnight it to UK  :P

LMAO!!! You never know with this stuff :D

Glad you got it sorted Bionin, don't you just love this stuff? LOL
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 27, 2009, 12:11:57 AM
still cant text in me chat grrr  >:(

Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 27, 2009, 12:12:59 AM
Yeah it's great alright, so is a kidney tranplant LOL
No If you coulb be so kind and tell me how to stop guests from accessing it?
I have not guests allowed, everyone need to register :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 27, 2009, 12:14:46 AM
Richard try removing what you changed to see if it fixes it
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 27, 2009, 12:17:08 AM
would take me ages to find it again
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 27, 2009, 12:21:32 AM
I thought this was supposed to have a lot of admin features? Unless I'm looking in the wrong place all I see is Admin>Chat and 6 buttons ::)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 27, 2009, 12:26:30 AM
Quote from: Bionic Rooster on June 27, 2009, 12:12:59 AM
Yeah it's great alright, so is a kidney tranplant LOL
No If you coulb be so kind and tell me how to stop guests from accessing it?
I have not guests allowed, everyone need to register :)
If you have unchecked guests to have access to chat and shout in your permissions then do this edit
http://www.simplemachines.org/community/index.php?topic=257973.msg2109968#msg2109968 (http://www.simplemachines.org/community/index.php?topic=257973.msg2109968#msg2109968)

Quote from: Bionic Rooster on June 27, 2009, 12:21:32 AM
I thought this was supposed to have a lot of admin features? Unless I'm looking in the wrong place all I see is Admin>Chat and 6 buttons ::)

Those are the basic settings on how and what you want displayed.

To get full customization please read this~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Also follow some of the link to Source Forge as there are many more customization tips as well.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 27, 2009, 12:34:48 AM
Great, thanks for all your help. Now I have to replicate this on 6 other forums
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 27, 2009, 12:50:15 AM
Quote from: Bionic Rooster on June 27, 2009, 12:34:48 AM
Great, thanks for all your help. Now I have to replicate this on 6 other forums

It usually installs pretty smoothly, after editing the config.php file and any other AJAXCHat files (depending on what edits you do from the FAQ's) you can just upload whatever files you edited to your other 6 forums and they will all have the same settings.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 27, 2009, 12:51:24 AM
When changing the smileys should the png files be deleted?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 27, 2009, 01:17:36 AM
Well guys I have no idea what the fupaw was all about cause I just installed 3 more chat rooms in 5 mins when it took hours to get the first one to work. Time for bed ;D
Thanks everyone
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 27, 2009, 01:19:54 AM
me still stuck
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 27, 2009, 01:39:03 AM
@ thread
My ear is ringing......or does that mean I am going to find some money.....

@TheListener
Once you change your dataTime field to "timestamp", you're post notification woes will be a thing of the past.

@wladymeer and any others wanting to restrict guest access:

For SMF 1.1.x, open index.template.php and find the following (or similar):
// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';


and change it to

// the [chat] button
global $context;
if ($context['user']['is_logged'])
{
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';
}


For SMF 2.x, open Subs.php and find the following (or similar):

'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),


and change it to

'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' =>$context['user']['is_logged'],
'sub_buttons' => array(
),
),


That's it. Now guests will not see the chat menu button. This only hides the chat button from guests.

Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 27, 2009, 02:19:12 AM
At the minute we have no way of seeing text in the chat ( only shoutbox) and the post notification isn't working.

Any ideas?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 27, 2009, 03:36:55 AM
Not working for 2.x - I've found it and change to 'is logged' but I can still see it when I log out.

If you wanna check go to www.gvosh.bb.rs/forum and look for yourself ;)

This is SMF 2.0 RC1-1 version.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheMistress on June 27, 2009, 04:32:27 AM
my board index file doesn't have the same select stuff as the instructions, what should I do?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 27, 2009, 04:57:23 AM
If you are clueless on where the things should go then attach your file here. I am sure one of us will take a crack at it.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bruce24 on June 27, 2009, 09:06:22 AM
I instaled this mod and now i am getting a 500 internal  error what should i do?

Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 27, 2009, 09:22:12 AM
Quote from: bruce24 on June 27, 2009, 09:06:22 AM
I instaled this mod and now i am getting a 500 internal  error what should i do?
~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bruce24 on June 27, 2009, 09:28:18 AM
i can not get into my forum to acess  the admin page to change the permisions and what not...i am clueless please help lol  :(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 27, 2009, 09:30:57 AM
Quote from: wladymeer on June 27, 2009, 03:36:55 AM
Not working for 2.x - I've found it and change to 'is logged' but I can still see it when I log out.
@wladymeer
Please make sure there is an underscore _ between "is" and "logged" like this:  'is_logged'.

Quote from: TheMistress on June 27, 2009, 04:32:27 AM
my board index file doesn't have the same select stuff as the instructions, what should I do?
@TheMistress
What instructions are you trying to follow? There are many in here. :P If it is in regards to the guest restriction, then you want to be looking in index.template.php for your theme, not BoardIndex.template.php.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 27, 2009, 09:32:33 AM
@bruce24
Post or PM me a link to your site please.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 27, 2009, 09:33:19 AM
Ohhh, sorry I though you were getting a 500 error on just the Chat.

Did you get any errors on the install?  What's the URL to your site?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 27, 2009, 09:35:03 AM
LOL,  good morning SK  :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bruce24 on June 27, 2009, 09:37:29 AM
no error on the install every thing just went blank on me  :'(

http://gunr4sr.fatcow.com/racing.forum/index.php (http://gunr4sr.fatcow.com/racing.forum/index.php)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 27, 2009, 09:55:19 AM
Are you on this for bruce SK?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 27, 2009, 10:12:19 AM
I am going to see what I can do.  :P
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 27, 2009, 10:24:51 AM
KK, didn't want to both be in there at the same time LOL...Off to work soon, good luck ;)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bruce24 on June 27, 2009, 10:29:00 AM
thanks for the support guys!!!  :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DilSe on June 27, 2009, 11:45:19 AM
hello sir

plz help me

ajxchat is working good ..

but shout box i get it this error how do i can plz help

ChatBot: Error: Connection timeout. Please try again.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bruce24 on June 27, 2009, 11:58:14 AM
@ SunKing still nothin bud couldnt find those tables grrrrrrrr.  >:(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 27, 2009, 12:50:23 PM
SunKing - there is - I coppied your lines but no result :(

I have Dozen Pages mod on my forum and it doesn't show to guests - if I'm correct here is the code for it:

'pages' => array(
'title' => !empty($modSettings['dozen_pages_tab_label']) ? $modSettings['dozen_pages_tab_label'] : $txt['dozen_pages_tab_default'],
'href' => $scripturl . '?action=pages',
'show' => $user_info['is_guest'] ? !empty($modSettings['dozen_pages_enable_guest_access']) : !empty($modSettings['dozen_pages_enable_member_access']),
'sub_buttons' => array(
),


I'm little bit new to all this coding but it seems to me it's done in different way than your suggestion for 2.x - maybe this would help you as a hint to help me out with setting chat button OFF for guests. Thanks.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 27, 2009, 01:20:39 PM
Bruce, when I get home, we will get you sorted. Can you save the database AND the files and folders...I will put it all on a test site so I can tear into it. :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bruce24 on June 27, 2009, 01:29:02 PM
ok will do
Title: Re: AjaxChat Integration (3.2 Released)
Post by: tfalbb on June 27, 2009, 01:40:56 PM
I'll post again cos no one's replied and I've run out of things to try.

SMF1.1.9.

I get logged out of the chatroom every 60 minutes. Changing the configuration in config.php has no effect.

When I get logged out, the chat window shows the Ajax Chat login. When I log in, the window then goes to the forum, not the chat room. I have to click the chat button to display the chat room in the window again.

Surely I can't be the only person to encounter these problems?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 27, 2009, 02:24:25 PM
SInce adding the post notification I now get this error:

Table 'visionar_ParanormalHaunt.ajax_chat_messages' doesn't exist
File: /home/visionar/public_html/Sources/Post.php
Line: 2008
Title: Re: AjaxChat Integration (3.2 Released)
Post by: jiminoregon on June 27, 2009, 03:13:40 PM
I know this issue has been addressed, but no matter how hard I try I can't fix this simple alignment problem.  Pic 1 is the shoutbox in Firefox...Pic 2 is the shoutbox in IE.... 

I uploaded the newer shoutbox.html and the css sheets from the fix at Simple Portal...but still have the alignment issue.  I'm using SP 2.2 and SMF 2.0 RC1-1.

Any Ideas?

Thanks...Jim
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 27, 2009, 04:00:48 PM
It looks to me like you need to simply assign a width to the block. Certain browsers (I won't mention IE) need specific instructions (such as width) to operate correctly.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 27, 2009, 04:34:44 PM
As told I put Subs.php so here you go - I reverted that function to the "true" state so you have fresh start. Many thanks for your trying to help. Line you're searching for is around 4009 ;)

And meanwhile I've found soultion to those who wants to use AJAX chat just as a shoutbox:

go to ./sources/subs.php and:

Code (find) Select
'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),


Code (replace) Select
'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => false,
'sub_buttons' => array(
),
),


This way, your memebrs won't be able to see "chat" link on main menu. Of course, ./forum/chat/ link still exists but it won't be visible. If this modification is forbidden for this mod I apologize and will remove this "fix".
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 27, 2009, 04:49:54 PM
@wladymeer
Instead of having it show if "is_logged", I changed it to not show if "is_guest". Same basic coding, but now it works...lol

I have attached your edited (and working) Subs.php. You can see it in action here (http://www.empireofthesun.net/testsite/index.php).

username: test
password: tester123
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 27, 2009, 05:09:23 PM
Many thanks, works perfectly :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bruce24 on June 27, 2009, 06:00:28 PM
SunKing,I have all files and stuff backed up  :D well another admin has the files backed up, so do what you have to do.Ill be on standby  :o
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mamaila on June 27, 2009, 06:24:56 PM
any one can help me with  OutlineOmega_115 theme.
what changes do I need to do to make shoutbox work?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 27, 2009, 08:13:33 PM
As requested the post php
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 27, 2009, 11:51:25 PM
I know for a fact that this has been asked (and answered) before because I remember reading it...lol....but SMF's search doesn't like me.

I am working on a site and have things pretty much ironed out. However, when someone types a quote, it puts the escape in front of it like it\'s or \"quote\". Where can I fix this?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 28, 2009, 12:39:08 AM
Quote from: SunKing on June 27, 2009, 11:51:25 PM
I know for a fact that this has been asked (and answered) before because I remember reading it...lol....but SMF's search doesn't like me.

I am working on a site and have things pretty much ironed out. However, when someone types a quote, it puts the escape in front of it like it's or "quote". Where can I fix this?

I think I remember somthing about this as well but the Search here on SMF doesn't like me much either, does this help at all though?

http://sourceforge.net/forum/forum.php?thread_id=2774612&forum_id=774132
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 28, 2009, 02:19:25 AM
When going to reply to a topic I get this message:Fatal error: require_once() [function.require]: Failed opening required '/home/visionar/public_html/Sources/Post.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/visionar/public_html/index.php on line 433

I am unable to chat only use shout.

Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 28, 2009, 12:06:50 PM
@ Hanzalah
does your shoutbox work but just sometimes gets that timedout error or does it not work at all?
@ tfalbb
Not sure why you can't stay logged in for more that 60 minutes, I've dug around SourceForge  (https://sourceforge.net/forum/?group_id=214758)for similar problems but not much luck. Look around and see what you can find.

@ jiminoregon
Looks like it not pulling the .css for the shoutbox, on both pics you don't see your Member Group Color.
This used to happen when installing on custom themes and the fix was to add this to very first line of /Themes/yourtheme/style.css
@import url(../../shoutBox/css/shoutbox.css);    This might be needed for that Smart Shout hack from SP.

Another thing you might wanna try is in AJAX Chat Intergration 3.2 there is a new shoutbox template.../chat/lib/template/miniShoutbox.html try using that and see what happens (I haven't tried it yet)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: jiminoregon on June 28, 2009, 12:20:56 PM
Quote from: mrtrc266 on June 28, 2009, 12:06:50 PM
@ Hanzalah
does your shoutbox work but just sometimes gets that timedout error or does it not work at all?
@ tfalbb
Not sure why you can't stay logged in for more that 60 minutes, I've dug around SourceForge  (https://sourceforge.net/forum/?group_id=214758)for similar problems but not much luck. Look around and see what you can find.

@ jiminoregon
Looks like it not pulling the .css for the shoutbox, on both pics you don't see your Member Group Color.
This used to happen when installing on custom themes and the fix was to add this to very first line of /Themes/yourtheme/style.css
@import url(../../shoutBox/css/shoutbox.css);    This might be needed for that Smart Shout hack from SP.

Another thing you might wanna try is in AJAX Chat Intergration 3.2 there is a new shoutbox template.../chat/lib/template/miniShoutbox.html try using that and see what happens (I haven't tried it yet)


You are a genius!  The mini shoutbox fixed it immediately!  Thank you very much!

Jim
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 28, 2009, 12:31:27 PM
This message: ChatBot: Error: Failed to load sound file (Flash IO Error). is getting very annoying and I tried with disabling the sound but it appears again and again. Is there any way to avoid it permanently even if it means that sounds will be disabled?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: jiminoregon on June 28, 2009, 12:31:37 PM
Quote from: jiminoregon on June 28, 2009, 12:20:56 PM
Quote from: mrtrc266 on June 28, 2009, 12:06:50 PM
@ Hanzalah
does your shoutbox work but just sometimes gets that timedout error or does it not work at all?
@ tfalbb
Not sure why you can't stay logged in for more that 60 minutes, I've dug around SourceForge  (https://sourceforge.net/forum/?group_id=214758)for similar problems but not much luck. Look around and see what you can find.

@ jiminoregon
Looks like it not pulling the .css for the shoutbox, on both pics you don't see your Member Group Color.
This used to happen when installing on custom themes and the fix was to add this to very first line of /Themes/yourtheme/style.css
@import url(../../shoutBox/css/shoutbox.css);    This might be needed for that Smart Shout hack from SP.

Another thing you might wanna try is in AJAX Chat Intergration 3.2 there is a new shoutbox template.../chat/lib/template/miniShoutbox.html try using that and see what happens (I haven't tried it yet)


You are a genius!  The mini shoutbox fixed it immediately!  Thank you very much!

Jim

OOps...1 problem...using the minishoutbox.html has locked us out from using the shoutbox.  Doesn't allow input?  Any ideas?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 28, 2009, 12:41:37 PM
LOL, not sure why but the input field and submit button are disabled.....

Open minishout
Find
            <input size="13%" id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" [disableInput/]/>
            <input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage(); [disableButton/]" />

Replace with
            <input size="13%" id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/>
            <input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" />
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 28, 2009, 12:54:50 PM
Quote from: wladymeer on June 28, 2009, 12:31:27 PM
This message: ChatBot: Error: Failed to load sound file (Flash IO Error). is getting very annoying and I tried with disabling the sound but it appears again and again. Is there any way to avoid it permanently even if it means that sounds will be disabled?

That is an issue with FF and there is no getting around it. It should only happen the when you log into the chat though, once you're in it won't (or shouldn't) happen any more....Until the next time you log in.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 28, 2009, 12:57:52 PM
Yes I know, but is there any way to prevent Chat Bot from showing that message? For example muting all Chat Bot messages or something like that?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 28, 2009, 01:09:38 PM
Quote from: wladymeer on June 28, 2009, 12:57:52 PM
Yes I know, but is there any way to prevent Chat Bot from showing that message? For example muting all Chat Bot messages or something like that?
This might help
https://sourceforge.net/forum/forum.php?thread_id=3279684&forum_id=774132 (https://sourceforge.net/forum/forum.php?thread_id=3279684&forum_id=774132)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 28, 2009, 01:34:03 PM
Tried both but that only caused me errors with not loading shoutbox/chat at all. And as a matter of fact I backep up chat.js and when I uploaded it back now my whole chat isn't working at all :)

link is www.gvosh.bb.rs/forum/chat/

And I'm uploading you my chat.js file.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 28, 2009, 01:39:53 PM
Change the file permissions (CMHOM) these to 755

chat/index.php
/shoutbox/index.php
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 28, 2009, 01:58:53 PM
I think I got it, just tested on my test site and this seems to not show the Sound IO Error, have no idea if this messes with any functionallity though, doesn't seem to.

Comment out this line in /chat/js/chat.js
Find
sound.addEventListener('ioError', this.soundIOErrorHandler);
Replace with
//sound.addEventListener('ioError', this.soundIOErrorHandler);

Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 28, 2009, 01:59:21 PM
If it's located under admin->main->packages->file permission I have only  Smileys, Sources and Themes as folder to select. However there is 0755 written in "If "Custom" has been selected use chmod value of:"
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 28, 2009, 02:04:47 PM
You want to do it via your FTP Program or cPanel (however your retrieve your files).
http://www.simplemachines.org/community/index.php?topic=257973.msg2130593#msg2130593 (http://www.simplemachines.org/community/index.php?topic=257973.msg2130593#msg2130593)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 28, 2009, 02:11:55 PM
I use total commander - is it under files->change attributes? I can see that shoutbox/index.php already has 755 while chat had 666 and I've changed it to 755 but everything is still the same.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 28, 2009, 02:13:14 PM
And you have cleared cache and refreshed?

I have to get off to work but will take a look when I get home if it's not sorted by then
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 28, 2009, 02:36:21 PM
Cleared it and no result :(

This is very strange to me because everything worked fine and then I tried those fixes from sourceforge.net and it didn't work so I uploaded backup created just before I applied those changes and from that moment both shoutbox and chat aren't working.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: jiminoregon on June 28, 2009, 06:57:26 PM
Quote from: mrtrc266 on June 28, 2009, 12:41:37 PM
LOL, not sure why but the input field and submit button are disabled.....

Open minishout
Find
            <input size="13%" id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" [disableInput/]/>
            <input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage(); [disableButton/]" />

Replace with
            <input size="13%" id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/>
            <input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" />


Thanks so much...I had to make a small change for it to work:

<input size="13%" id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress
(event);" [enableInput/]/>
                                            <input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" />
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 28, 2009, 07:18:54 PM
Went to uninstall the reinstall chat as another member suggested and found this:

Execute Modification     ./Sources/Admin.php     Test failed
      1.    Replace    ./Sources/Admin.php    Test failed
      2.    Replace    ./Sources/Admin.php    Test successful
*    2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
      1.    Replace    ./Sources/BoardIndex.php    Test successful
      2.    Replace    ./Sources/BoardIndex.php    Test successful
*    3.    Execute Modification    ./Sources/Load.php    Test successful
      1.    Replace    ./Sources/Load.php    Test successful
      2.    Replace    ./Sources/Load.php    Test successful
      3.    Add Before    ./Sources/Load.php    Test successful
*    4.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Replace    ./Sources/ManagePermissions.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test failed
      1.    Replace    ./Sources/ManageSettings.php    Test failed
      2.    Replace    ./Sources/ManageSettings.php    Test failed
      3.    Add Before    ./Sources/ManageSettings.php    Test successful
*    6.    Execute Modification    ./SSI.php    Test successful
      1.    Add Before    ./SSI.php    Test successful
*    7.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Replace    ./Sources/Subs.php    Test successful
      2.    Replace    ./Sources/Subs.php    Test failed
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 28, 2009, 10:55:31 PM
Quote from: TheListener on June 28, 2009, 07:18:54 PM
Went to uninstall the reinstall chat as another member suggested and found this:

Execute Modification     ./Sources/Admin.php     Test failed
      1.    Replace    ./Sources/Admin.php    Test failed
      2.    Replace    ./Sources/Admin.php    Test successful
*    2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
      1.    Replace    ./Sources/BoardIndex.php    Test successful
      2.    Replace    ./Sources/BoardIndex.php    Test successful
*    3.    Execute Modification    ./Sources/Load.php    Test successful
      1.    Replace    ./Sources/Load.php    Test successful
      2.    Replace    ./Sources/Load.php    Test successful
      3.    Add Before    ./Sources/Load.php    Test successful
*    4.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Replace    ./Sources/ManagePermissions.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test failed
      1.    Replace    ./Sources/ManageSettings.php    Test failed
      2.    Replace    ./Sources/ManageSettings.php    Test failed
      3.    Add Before    ./Sources/ManageSettings.php    Test successful
*    6.    Execute Modification    ./SSI.php    Test successful
      1.    Add Before    ./SSI.php    Test successful
*    7.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Replace    ./Sources/Subs.php    Test successful
      2.    Replace    ./Sources/Subs.php    Test failed

Other mods that you may have installed might be clashing with it to uninstall/install properly. What you should do is continue with the install/uninstall as you were make it complete but be sure to take not of ALL the files that failed because then you need to go to the mod and parse the mod and the version you used to your smf version. WIth the parse open look at the files that it shows how to mod with the ones that failed and manually do the edits it says. If installing add the edits if uninstalling remove the edits.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 28, 2009, 10:57:06 PM
Can you explain that again please CC
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 28, 2009, 11:05:28 PM
If you are installing or uninstalling the mod and those failed errors popup you need to write down EVER file that has failed and then continue with the uninstall or install and finish it (even tho those errors were there). Then after you finished uninstalling or installing the mod, go HERE (http://custom.simplemachines.org/mods/index.php?mod=1319) and make the bubble checked for the ajax version you have 3.0 or 3.2 then to the left of the parse button choose the smf version you have and click parse. Once the parse opens (showing you the edits the mod makes in the files) go to the files that you wrote down that failed and you need to download that file from the website to your pc and make the edits it is saying manually.

If you are trying to install the mod and say it says
Find:
// Note the comma!! The setting with automatically appear with the first mod to be added.
Add After:

'chat' => array($txt['chat']),

Then you would do exactly what it says. Find that location in that file it is telling you the edit is in (in the parse) and do what it says.

If you are trying to uninstall the mod and say it says
Find:
// Note the comma!! The setting with automatically appear with the first mod to be added.
Add After:

'chat' => array($txt['chat']),

Then you will be looking for

'chat' => array($txt['chat']),

and removing it. after you make the proper edits reupload the files to your site ... clear the cache and test. REMEMBER TO MAKE BACKUPS BEFORE EDITING!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 28, 2009, 11:23:39 PM
Uninstalled the chat reinstalled the chat now I get:

File "/home/visionar/public_html/chat/index.php" is writeable by group
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 29, 2009, 12:29:09 AM
Quote from: wladymeer on June 28, 2009, 02:36:21 PM
Cleared it and no result :(

This is very strange to me because everything worked fine and then I tried those fixes from sourceforge.net and it didn't work so I uploaded backup created just before I applied those changes and from that moment both shoutbox and chat aren't working.

Try uploading the chat.js file from the AjaxChat Integration_3.2.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=102295) (or 3.0.zip...whatever you are using)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 29, 2009, 12:34:59 AM
Quote from: TheListener on June 28, 2009, 11:23:39 PM
Uninstalled the chat reinstalled the chat now I get:

File "/home/visionar/public_html/chat/index.php" is writeable by group

Can't even get to your site ???
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 29, 2009, 12:57:11 AM
Go to the forum tab but it looks normal when logged in.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 29, 2009, 01:14:41 AM
Quote from: TheListener on June 29, 2009, 12:57:11 AM
Go to the forum tab but it looks normal when logged in.

When I click your website under your avatar  (https://www.simplemachines.org/community/Themes/smsite/images/www_sm.gif) (http://www.paranormalhaunt.co.uk/)  here on SMF I get this....

Sorry, we couldn't find www.paranormalhaunt.co.uk
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 29, 2009, 01:16:50 AM
Yikes

The theme requires changing
Title: Re: AjaxChat Integration (3.2 Released)
Post by: tfs on June 29, 2009, 02:33:07 AM
I've been getting hundreds of these in the log.  Any ideas?

8: Undefined index: chat
File: /homepages/31/d284504567/htdocs/dsc053382567/Sources/Subs.php
Line: 3730

Looking at that area of Subs.php...

$num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
$chatButton = $txt['chat'];
$chatButton .= ($num > 0) ?  ('('.$num.')') : '';
$chatLink = str_replace("index.php", "chat/index.php", $scripturl);
if (!empty($modSettings['chatPopUp']))
$chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';


The offending line is the one that has...

$chatButton = $txt['chat'];
Title: Re: AjaxChat Integration (3.2 Released)
Post by: andy40 on June 29, 2009, 04:28:09 AM
hi can someone help and tell me why this shout box does not refresh it self i have to refresh the site every now and then to see the messages
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on June 29, 2009, 04:49:49 AM
Quote from: mrtrc266 on June 29, 2009, 01:14:41 AM
Quote from: TheListener on June 29, 2009, 12:57:11 AM
Go to the forum tab but it looks normal when logged in.

When I click your website under your avatar  (https://www.simplemachines.org/community/Themes/smsite/images/www_sm.gif) (http://www.paranormalhaunt.co.uk/)  here on SMF I get this....

Sorry, we couldn't find www.paranormalhaunt.co.uk

TL located me on SK's site and got me pulled into his site :P his url that he has linked is broken or something he has to look into that. He does have a different url that brings you to the correct spot. I did however go through and fix up his custom theme so its working now (firebug, fireftp, and full ftp and site admin access helps alot!). I also fixed his file permissions (causing the error "File "/home/visionar/public_html/chat/index.php" is writeable by group") and then he mentioned a few things that he wants adjusting for his chat and shoutbox that I will go through his files later after I wake up and change for him. Got him all squared away! He now has a site again!

(Before I fixed his theme he didnt have a theme. It just showed white full background with text only where buttons and stuff should be, lol)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 29, 2009, 07:53:33 AM
@mrtrc266: Tried but same result.

I would go for reinstall but when I try to uninstall it I get these errors:

4.   Execute Modification   ./Sources/ManagePermissions.php   Test failed
      1.   Replace   ./Sources/ManagePermissions.php   Test failed
5.   Execute Modification   ./Sources/ManageSettings.php   Test failed
      1.   Replace   ./Sources/ManageSettings.php   Test failed
7.   Execute Modification   ./Sources/Subs.php   Test failed
      2.   Replace   ./Sources/Subs.php   Test failed

Because I'm still new about these thingies, could you tell me how to uninstall it properly then?
Title: Re: AjaxChat Integration 3.2
Post by: AngelikaCourtois on June 29, 2009, 10:31:15 AM
I have a clean install of SMF 1.1.9 and AjaxChat Integration 3.2

No other chat or shoutbox MOD used yet.

After unzipping AjaxChat Integration 3.2, I uploaded it to my 'SMF Packages' package folder using FileZilla; it shows on my SMF Admin interface under Packages, and it gives me the option to "Apply Mod":

AjaxChat Integration 3.2 [ Apply Mod ] [ List Files ] [ Delete ]

When I click [ Apply Mod ], it attempts to fetch it, then it does nothing ... goes back to the list of 'SMF Packages'.

Help?

Other Packages installed and working:

1. YouTube BBCode 2.5.1 
2. Advanced Reputation System 
3. SMF Gallery Lite 1.8.3 
4. Integrate Lightbox 1.6 
5. Custom Tab 1.2 
6. The Rules 1.2 
7. Wikipedia BBCode 
8. VisualWarning 1.42 

Package Interface Screenshot attached.

Thank you in advance,

Angelika


Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 29, 2009, 10:37:40 AM
@ Angelika

Delete whatever your uploaded via FileZilla and just upload the AjaxChat Integration 3.2.zip file via your Package Manager.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 29, 2009, 10:40:56 AM
Quote from: andy40 on June 29, 2009, 04:28:09 AM
hi can someone help and tell me why this shout box does not refresh it self i have to refresh the site every now and then to see the messages

All you should have to do it put your cursor in the input field to bring it into focus?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 29, 2009, 10:44:35 AM
@ tfs
Whatever you currently have this set to "Enable online chat users numbering on chat button?" do the opposite and see if you still get the error.
Title: Re: AjaxChat Integration 3.2 APPLY MOD
Post by: AngelikaCourtois on June 29, 2009, 10:56:51 AM
mrtrc,


ChangeLog
install_1.1.X
install_2
package-info
Readme
Shout.english.php
Shout.persian.php
Tables_1.1.X.php
Tables_2.php

It looks like I need to click on one of those? Yes? Which one? and then?

Angelika

Quote from: mrtrc266 on June 29, 2009, 10:37:40 AM
@ Angelika

Delete whatever your uploaded via FileZilla and just upload the AjaxChat Integration 3.2.zip file via your Package Manager.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: andy40 on June 29, 2009, 11:23:06 AM
Quote from: mrtrc266 on June 29, 2009, 10:40:56 AM
Quote from: andy40 on June 29, 2009, 04:28:09 AM
hi can someone help and tell me why this shout box does not refresh it self i have to refresh the site every now and then to see the messages

All you should have to do it put your cursor in the input field to bring it into focus?

thanks will try it
Title: Re: AjaxChat Integration (3.2 Released)
Post by: tfs on June 29, 2009, 11:27:59 AM
Quote from: mrtrc266 on June 29, 2009, 10:44:35 AM
@ tfs
Whatever you currently have this set to "Enable online chat users numbering on chat button?" do the opposite and see if you still get the error.

Thanks, it was on.  I turned it off and will see what happens.
Title: Re: AjaxChat Integration 3.2 APPLY MOD
Post by: mrtrc266 on June 29, 2009, 12:28:30 PM
Quote from: AngelikaCourtois on June 29, 2009, 10:56:51 AM
mrtrc,

  • Chose 'Package to Upload': <went to my download folder and looked for the "AjaxChat Integration_3.2" zip file
  • Tried to upload it ... no cigar -- wont take it ... it opens the zip (without being unzipped) on my PC and shows me all that is in it
Angelika

Are you saying that when you upload the package via your package manager it opens the files on your PC ??? 

If you want you can PM me the URL to your site and make me temp Admin and I'll take a look.
Title: re: mrtrc266 & Re: AjaxChat Integration
Post by: AngelikaCourtois on June 29, 2009, 07:14:28 PM
I am not sure if its appropriate to come here after a problem has been solved ... but no matter, all I can say  .. I owe a huge thank you to mrtrc266. He invited me to PM him, I did -- we exchanged PMs , took it into Yahoo IM, and then in a leap of faith, I added him as an admin to my forum and he walked me through step by step on how to make it work. He made me do the php coding work (fix a few lines)-- and while I was shaking in my thong the whole time, with his HUGE help holding my virtual hand, we got the AjaxChat Mod to upload and integrate with my SMF 1.1.9 Default Theme.

Its an impressive MOD and an impressive community here at SMF. I am a 100% convert from phpBB to SMF. Period! -- in large part becasue of people like mrtrc266. mrtrc266? Ever need a reference? Call upon me anytime!

Angelika

Title: Re: AjaxChat Integration (3.2 Released)
Post by: JBlaze on June 29, 2009, 08:03:34 PM
Hello, using AjaxChat 3.2 and SMF 2.0 RC1-1.

Getting error
Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/****/public_html/****/Sources/Subs.php on line 786

Completely baffling me. This happened after upgrading from 1.1.9 and server upgrade from PHP 4.4.7 to PHP 5.2.9

Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 29, 2009, 08:19:24 PM
@ AngelikaCourtois thank you very much for the kind words. Glad I could be of assistance, you did all the work, I just walked you through it. Your experience today should help you in the future when trying to get other mods to work properly on your site and on custom themes. Enjoy the Chat!  :)

@ JBlaze....OMG This is probably the toughest error I have ever seen regarding this Mod. Only thing I can think of is the change from 4.4.7 to PHP 5.2.9

Only thing I could suggest is to drop tables, uninstall and reinstall.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 29, 2009, 08:22:44 PM
JBlaze while ya at it give mrtrc266 ya green badge too.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: JBlaze on June 29, 2009, 09:30:15 PM
Quote from: mrtrc266 on June 29, 2009, 08:19:24 PM

@ JBlaze....OMG This is probably the toughest error I have ever seen regarding this Mod. Only thing I can think of is the change from 4.4.7 to PHP 5.2.9

Only thing I could suggest is to drop tables, uninstall and reinstall.

Yea that's what I was thinking as well. Just wanted som feedback before I did it. I'm glad I'm not the only one that thinks this error is one of the biggest PITA's ever lol.

Quote from: TheListener on June 29, 2009, 08:22:44 PM
JBlaze while ya at it give mrtrc266 ya green badge too.

Heh, it's not for sale :P
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 29, 2009, 10:09:27 PM
Let me know how it goes JB...No worries, just need to know how much it costs LMAO!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: JBlaze on June 29, 2009, 10:41:42 PM
Quote from: mrtrc266 on June 29, 2009, 10:09:27 PM
Let me know how it goes JB...No worries, just need to know how much it costs LMAO!

Yea will do. It's for Kat btw. Just upped her to 2.0 RC1-1 and this is the only problem we're having.

Guess I gotta get to hackin the hell outta the damn thing :P
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 29, 2009, 10:49:57 PM
That is certainly related to the PHP upgrade. As far as a fix for it.........  :-\

What timezone is the site set to and what is line 786 of the Subs.php?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on June 29, 2009, 10:54:44 PM
Quote from: wladymeer on June 29, 2009, 07:53:33 AM
I would go for reinstall but when I try to uninstall it I get these errors:

4.   Execute Modification   ./Sources/ManagePermissions.php   Test failed
      1.   Replace   ./Sources/ManagePermissions.php   Test failed
5.   Execute Modification   ./Sources/ManageSettings.php   Test failed
      1.   Replace   ./Sources/ManageSettings.php   Test failed
7.   Execute Modification   ./Sources/Subs.php   Test failed
      2.   Replace   ./Sources/Subs.php   Test failed

What should I do about these lines? Should I uninstall the package first and what then? Should I go manually to revert the state for those lines by parsing or how should I do it?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 29, 2009, 10:58:02 PM
Sorry wladymeer what are we trying to do here? With that many errors it looks like your trying uninstall a Mod that has been manually uninstalled???
Title: Re: AjaxChat Integration (3.2 Released)
Post by: JBlaze on June 29, 2009, 11:04:02 PM
Quote from: SunKing on June 29, 2009, 10:49:57 PM
That is certainly related to the PHP upgrade. As far as a fix for it.........  :-\

What timezone is the site set to and what is line 786 of the Subs.php?

/Sources/Subs.php

780: $str = !is_bool($show_today) ? $show_today : $user_info['time_format'];
781:
782: if (setlocale(LC_TIME, $txt['lang_locale']))
783: {
784: foreach (array('%a', '%A', '%b', '%B') as $token)
785: if (strpos($str, $token) !== false)
786: $str = str_replace($token, !empty($txt['lang_capitalize_dates']) ? $smcFunc['ucwords'](strftime($token, $time)) : strftime($token, $time), $str);
787: }
788: else
789: {
790: // Do-it-yourself time localization.  Fun.
791: foreach (array('%a' => 'days_short', '%A' => 'days', '%b' => 'months_short', '%B' => 'months') as $token => $text_label)
792: if (strpos($str, $token) !== false)
793: $str = str_replace($token, $txt[$text_label][(int) strftime($token === '%a' || $token === '%A' ? '%w' : '%m', $time)], $str);
794: if (strpos($str, '%p'))
795: $str = str_replace('%p', (strftime('%H', $time) < 12 ? 'am' : 'pm'), $str);
796: }


Also, I did drop all tables after uninstalling, then re-installed. The error on the chat page seemed to disappear, but I also got the Error: Connection Status:500 which I fixed by CHMOD both index.php in /shoutBox and /chat.

But, the chat and shoutbox are still blank and nothing can be shown.

I am really stumped on this one...
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 29, 2009, 11:37:28 PM
JB digging around frantically, does any of this help?
http://www.simplemachines.org/community/index.php?topic=232319.0 (http://www.simplemachines.org/community/index.php?topic=232319.0)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: JBlaze on June 29, 2009, 11:52:30 PM
Quote from: mrtrc266 on June 29, 2009, 11:37:28 PM
JB digging around frantically, does any of this help?
http://www.simplemachines.org/community/index.php?topic=232319.0 (http://www.simplemachines.org/community/index.php?topic=232319.0)

Thanks mrtrc266. Nothing can just go smoothly, eh? :P
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 29, 2009, 11:56:15 PM
Quote from: JBlaze on June 29, 2009, 11:52:30 PM
Quote from: mrtrc266 on June 29, 2009, 11:37:28 PM
JB digging around frantically, does any of this help?
http://www.simplemachines.org/community/index.php?topic=232319.0 (http://www.simplemachines.org/community/index.php?topic=232319.0)

Thanks mrtrc266. Nothing can just go smoothly, eh? :P

YW, if it went smoothly it wouldn't be as much fun  ;)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 29, 2009, 11:58:11 PM


Thanks mrtrc266. Nothing can just go smoothly, eh? :P
[/quote]

YW, if it went smoothly it wouldn't be as much fun  ;)
[/quote]

Fun? ya call tearing ya hair out fun?  :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 30, 2009, 11:23:04 AM
QuoteFun? ya call tearing ya hair out fun?  (https://www.simplemachines.org/community/Smileys/simple/cheesy.gif)
ummmm....yeah! ;)

JB Here's another one
http://www.simplemachines.org/community/index.php?topic=288699.0 (http://www.simplemachines.org/community/index.php?topic=288699.0)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 30, 2009, 05:48:09 PM
Have these errors on chat:

/Themes/default/languages/Modifications.english.php on line 459453

/Themes/default/languages/Modifications.english.php on line 454

/Themes/default/languages/Modifications.english.php on line 455

Themes/default/languages/Modifications.english.php on line 457

/Themes/default/languages/Modifications.english.php on line 458

/Themes/default/languages/Modifications.english.php on line 459

Any Ideas?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 30, 2009, 06:00:56 PM
LMAO @ Line 459453 what the hell do you have in that file?

/Themes/default/languages/Modifications.english.php on line 459453

Parser the Mod from the Mod Download Page, look for the edit to your Modifications.english.php file and make sure that the edit is done.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 30, 2009, 06:10:57 PM
Quote from: mrtrc266 on June 30, 2009, 06:00:56 PM
LMAO @ Line 459453 what the hell do you have in that file?


Sweaty Fingers  :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on June 30, 2009, 06:13:16 PM
Fidget in the diget, get that all the time  :-X
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on June 30, 2009, 06:21:24 PM
The section in the edit is already in the file.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: chefjohnnie on June 30, 2009, 07:37:31 PM
1.     Execute Modification     ./Sources/BoardIndex.php     Test successful

2.    Execute Modification    ./Sources/Load.php    Test successful

3.    Execute Modification    ./Sources/ManagePermissions.php    Test failed

4.    Execute Modification    ./Sources/ModSettings.php    Test successful

5.    Execute Modification    ./SSI.php    Test successful

6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful

7.    Execute Modification    ./Themes/default/index.template.php    Test successful

8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful

9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file

11.    Execute Modification    ./Themes/default/languages/Modifications.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_1.1.X.php    

I really dont want to parse this because if i have to un install later what a pain
is there a alternative
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on June 30, 2009, 09:13:48 PM
@ chefjohnnie there is no need to uninstall anything,

Just use a Package Parser (http://resourcez.biz/PackageParser/) and edit the file that failed the test.

If you have probs attatch the file here
Title: Re: AjaxChat Integration (3.2 Released)
Post by: chefjohnnie on June 30, 2009, 09:45:24 PM
i made the changes to this file uploaded it still get install error
Title: Re: AjaxChat Integration (3.2 Released)
Post by: JBlaze on June 30, 2009, 10:28:14 PM
Quote from: chefjohnnie on June 30, 2009, 09:45:24 PM
i made the changes to this file uploaded it still get install error

You should install the whole package first and then make the manual edits. Ignore the errors and complete the install, then make the manual edit.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: chefjohnnie on June 30, 2009, 10:35:19 PM
cool ill let you know how it goes
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on June 30, 2009, 11:22:53 PM
Chat has been running perfect until the last 2 days. Now I get Connection Error: 503 constantly. Every once in a while, on refresh, the "Cannot connect to database" error will also pop up. Nothing else on the site causes either error. I have reinstalled a vanilla chat and it helped, but I still get the error, just not quite as often. It is driving me absolutely out of my skull. I cannot find any reference to a 503 at all over at SourceForge. The only reference in this thread to a 503 error was a post about it and then me simply stating that it was a server error. In other words, I ran into a dead end here as well. Any ideas?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: chefjohnnie on June 30, 2009, 11:26:09 PM
so far so good thank you
I just didnt feel like parsing the whole thing i didnt know all you had to parse was the file that had the error i thought if you phrased you had to do the whole thing thxs   
Title: Re: AjaxChat Integration (3.2 Released)
Post by: SingingCrane on July 01, 2009, 12:09:29 AM
I may be asking for trouble but I am having a hard time finding the answer to an issue I am having with this mod. I recently installed it but when I enable the mod I get a 'Error: Connection status: 400'. Can anyone tell me why it may be doing this?

I have checked the permissions of the files for recommended 755 and 666 permissions and all is fine there. I have also tried a .htaccess fix I found...but nothing gets me past this. Any help?

Thanks!!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: JBlaze on July 01, 2009, 12:29:45 AM
@SingingCrane: Have you tried to CHMOD both /shoutBox/index.php and /chat/index.php to 755?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on July 01, 2009, 12:33:43 AM
If you read back a few messages you will see I had that very same problem. After making all the suggested changes and it still failed to work, I picked up all the hair I pulled out from hours of frustration. Uninstalled the mod, glued my hair back in, resinstalled the mod and it worked and is still working. The problem you are encountering is the same one I had, and I have no idea if what I did will resolve your issue, but it worked for me. I then proceeded to install this mod on 4 other sites I have and they all worked right off with no problems or hours of hair pulling. Go figure and good luck to ya.  ;D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on July 01, 2009, 12:37:06 AM
If that was at me, I did do a reinstall...and it helped....some. I still get the errors, just not as many.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on July 01, 2009, 12:52:29 AM
Quote from: SunKing on July 01, 2009, 12:37:06 AM
If that was at me, I did do a reinstall...and it helped....some. I still get the errors, just not as many.

Yeah I know my friend, there's no rhime of reason to this problem of the solution. Like I said I did exactly what was told me. For hours I got nothing but error after frustrating error and then it justed worked.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on July 01, 2009, 12:57:54 AM
Maybe when I wake up tomorrow, it will just work for me too.  :P

I may try a second uninstall/reinstall.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Road Rash Jr. on July 01, 2009, 01:26:35 AM
Sleep is good, I'm off to bed myself. Remember, never reboot unless you're wearing steal toe boots.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: The -L- on July 01, 2009, 06:03:20 AM
Great job man....i really like the mod...just one question.....

Where is my admin control fields?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg39.imageshack.us%2Fimg39%2F3765%2Fbla2hnp.jpg&hash=395ee939e386439845aded6bcddc34952ec0e067)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on July 01, 2009, 09:48:19 AM
Quote from: The -L- on July 01, 2009, 06:03:20 AM
Where is my admin control fields?

In modifications > chat
Title: Re: AjaxChat Integration (3.2 Released)
Post by: SingingCrane on July 01, 2009, 10:14:36 AM
Well I tried the uninstall - reinstall method but I still end up with a Error connection: 400. Anybody know what this error is for at least? That might get me going in the right direction...
Title: Re: AjaxChat Integration (3.2 Released)
Post by: qubbah on July 01, 2009, 03:40:55 PM
how to change to height of chat? in index/forum?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Krandall on July 01, 2009, 04:14:59 PM
Quote from: Krandall on June 16, 2009, 11:34:43 PM
Quote from: Chit-Chat ChatterBox Boss on June 16, 2009, 07:45:17 PM
Quote from: Krandall on June 16, 2009, 07:32:03 PM
//shoutBox
global $board;
if(isset($board) && $board == 1 || $board == 33)
{
shoutbox();
    }

No dice. Here's what I have. Same thing. Just plain doens't show.
I dont know if you mean for it to be this way but the above code is not the same as he posted.


global $board;
   if(isset($board) && $board == 1.0 || $board == 33.0)
   {
   shoutbox_bottom();
    }

Your numbers are not the same and the shoutbox call is not the same. Did not know if you intended to do that or it was a mistake.

'

Yeah, I had tried both ways. in my original code I had just the # no . (like my example above) tried and still nothin :(

any thoughts SK?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: qubbah on July 01, 2009, 05:15:54 PM
also how to change the shoutbox title to my language that are located near the catgb/collapse.gif?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fwdiii on July 01, 2009, 11:52:17 PM
I installed this mod and every works great.

However, the Chat Button displays kind of screwy in Firefox, Opera, and Safari. Instead of being the same font, color, size and location as the rest of the top menu, it shows kinda of above the logout button and in what looks like times new roman.

my forums are located at forums.alliedtrainingcommand.com if you want to look at it.

Oh, it shows fine when using the IE Tabs plug-in for firefox, so it's definitely how those browsers handle the code, just not sure what to change to make them handle it correctly.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on July 02, 2009, 03:42:25 AM
Quote from: Krandall on July 01, 2009, 04:14:59 PM
Quote from: Krandall on June 16, 2009, 11:34:43 PM
Quote from: Chit-Chat ChatterBox Boss on June 16, 2009, 07:45:17 PM
Quote from: Krandall on June 16, 2009, 07:32:03 PM
//shoutBox
global $board;
if(isset($board) && $board == 1 || $board == 33)
{
shoutbox();
    }

No dice. Here's what I have. Same thing. Just plain doens't show.
I dont know if you mean for it to be this way but the above code is not the same as he posted.


global $board;
   if(isset($board) && $board == 1.0 || $board == 33.0)
   {
   shoutbox_bottom();
    }

Your numbers are not the same and the shoutbox call is not the same. Did not know if you intended to do that or it was a mistake.

'

Yeah, I had tried both ways. in my original code I had just the # no . (like my example above) tried and still nothin :(

any thoughts SK?

Attach your file please Krandall.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: JBlaze on July 02, 2009, 04:12:48 AM
Quote from: fwdiii on July 01, 2009, 11:52:17 PM
I installed this mod and every works great.

However, the Chat Button displays kind of screwy in Firefox, Opera, and Safari. Instead of being the same font, color, size and location as the rest of the top menu, it shows kinda of above the logout button and in what looks like times new roman.

my forums are located at forums.alliedtrainingcommand.com if you want to look at it.

Oh, it shows fine when using the IE Tabs plug-in for firefox, so it's definitely how those browsers handle the code, just not sure what to change to make them handle it correctly.

This could most likely be a theme issue. What theme are you using?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 02, 2009, 09:05:25 AM
Was unable to edit the first section as it could not be found.

yourforum/Themes/yourtheme/index.tempalte.php
Find
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fwdiii on July 02, 2009, 09:25:47 AM
Quote from: JBlaze on July 02, 2009, 04:12:48 AM
Quote from: fwdiii on July 01, 2009, 11:52:17 PM
I installed this mod and every works great.

However, the Chat Button displays kind of screwy in Firefox, Opera, and Safari. Instead of being the same font, color, size and location as the rest of the top menu, it shows kinda of above the logout button and in what looks like times new roman.

my forums are located at forums.alliedtrainingcommand.com if you want to look at it.

Oh, it shows fine when using the IE Tabs plug-in for firefox, so it's definitely how those browsers handle the code, just not sure what to change to make them handle it correctly.

This could most likely be a theme issue. What theme are you using?

I am using WDEfault. and SMF 1.1.9. It works fine with IE 6 ,7 and 8. Some I am a bit disinclined to think it is a theme issue. I will change themes whn I get home and look tho.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4b11l on July 03, 2009, 01:06:21 AM
I've been using it for a while now and LOVE it so far!

One request in the next update or possibly if it's a simple fix, you can show me how.

- A way to refresh/delete all chat messages in the room without exiting/refreshing the browser and setting the setting file to not show recent posts.

I think that would be a great feature! Thanks.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 03, 2009, 01:24:14 AM
Quote from: 4b11l on July 03, 2009, 01:06:21 AM
I've been using it for a while now and LOVE it so far!

One request in the next update or possibly if it's a simple fix, you can show me how.

- A way to refresh/delete all chat messages in the room without exiting/refreshing the browser and setting the setting file to not show recent posts.

I think that would be a great feature! Thanks.

Yes that would be a great feature, there is a Mod being worked on that will allow you to clear all chat with the click of a link. I'm sure it will be posted and added to the FAQ's when it's done.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 03, 2009, 01:24:47 AM
Quote from: SunKing on July 01, 2009, 12:57:54 AM
Maybe when I wake up tomorrow, it will just work for me too.  :P

I may try a second uninstall/reinstall.

Did this get sorted SunKing?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 03, 2009, 01:26:16 AM
Quote from: qubbah on July 01, 2009, 03:40:55 PM
how to change to height of chat? in index/forum?

Look at your /chat/css/shoutbox.css file. If you dont have the chat/shout Intergrated also looks @ /shoutbox/css.shoutbox.css file.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on July 03, 2009, 02:50:15 AM
As of yet, it is not sorted. I am still looking into the cause as well as a solution.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: nwobhm on July 03, 2009, 09:32:49 AM
I have updated my forum into 2.0 RC1-1 with Simpleportal and this AjaxChat works fine. But how do I change the language in admin panel for this Chat?
I have made shout.finnish.php and edited the help.finnish.php file accordingly, but still the language on adminpanel for the chat is in english?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: frantic on July 03, 2009, 11:59:46 AM
i uninstalled 3.0 in order to upgrade to 3.2.  However everytime i try to install the package i get a error, unable to find package file.  I've redownload and uploaded, unziped the file and then uploaded.  I get the same error, any ideas on how to fix this?  I'm running 2.0 RC1-1
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on July 03, 2009, 12:45:04 PM
@nwobhm
Try just using the built-in language dropdown in the chat.

@frantic
I had the same issue and noticed the package file was named ajaxchat..zip. It had two dots......I removed one, uploaded, and it found it just fine. Hope this helps.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: agente666 on July 03, 2009, 02:36:08 PM
can i get this original file with no mod instaled....
If its possible can ya give me all the original files for the ones that have to be modificated wen i installed this mod? thanx..
Title: Re: AjaxChat Integration (3.2 Released)
Post by: frantic on July 04, 2009, 12:34:35 PM
Quote from: SunKing on July 03, 2009, 12:45:04 PM
@nwobhm
Try just using the built-in language dropdown in the chat.

@frantic
I had the same issue and noticed the package file was named ajaxchat..zip. It had two dots......I removed one, uploaded, and it found it just fine. Hope this helps.

I checked the names of all the files and they seem to be correct.  I can get the package into the package manager no problem but when i try to hit install i get the unable to find package file.  Its the weridest thing.

Edit: I Finally firgured this bugger out,  it was the + sign in the file name.  I removed it and well it worked.  My file is was call ajaxchat+intergration_3.2.zip.  Apparently my smf didn't like the +.


Do have another question,  where is the turn shoutbox into a mini chat option.  I can't see to find it, as its not part of my choices on the modification menu thingy. 
Title: Re: AjaxChat Integration (3.2 Released)
Post by: amigos on July 04, 2009, 02:43:04 PM
Hi all.

I am completly new to this and have just installed the chatbox

however I am getting the 500 error connection.

I have been searching through this thread and have found this If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

But don;t understand it :-\

I have 1.1.8

Can anyone point me in the right direction.

Thanks
Title: Re: AjaxChat Integration (3.2 Released)
Post by: amigos on July 04, 2009, 04:34:50 PM
Managed to sort it :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: agentok on July 04, 2009, 07:42:33 PM
need some help i just integrated this chat & shoutbox mod in a fresh copy of SMF 2.0rc1-1 and setup the mod and no one can use the chat or shoutbox ( no one can type in the chat box or shoutbox) is this a bug or is there any fixs for this error?? i also have tryed to deinstall and reinstall the mod with no luck and i have used ie8, ff, opera, chrome with no luck also have cleared my private data.
if anyone can help me with this error i would thank you.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 05, 2009, 12:14:46 AM
@ agentok I believe this is your problem, the fix can be found here.
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 05, 2009, 12:29:58 AM
Was unable to do the edit at: yourforum/Themes/yourtheme/index.tempalte.php

The section to be edited was not in the file.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 05, 2009, 12:47:29 AM
Quote from: TheListener on July 05, 2009, 12:29:58 AM
Was unable to do the edit at: yourforum/Themes/yourtheme/index.tempalte.php

The section to be edited was not in the file.

What edit could you not find?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on July 05, 2009, 12:54:40 AM
@ mrtrc266 and TL
I will go on his site and see what part and tell him where the edit is
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 05, 2009, 01:27:43 AM
Quote from: Chit-Chat ChatterBox Boss on July 05, 2009, 12:54:40 AM
@ mrtrc266 and TL
I will go on his site and see what part and tell him where the edit is

Cool...tyvm
Title: Re: AjaxChat Integration (3.2 Released)
Post by: CedarMill on July 05, 2009, 03:52:09 AM
Please, write, probably to make AjaxChat Integration, Support for unicode: CP1251 (windows-1251)
?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: qubbah on July 05, 2009, 02:48:34 PM
how can i change the chatters name to go after the chat time?

Title: Re: AjaxChat Integration (3.2 Released)
Post by: Kilgore Trout on July 05, 2009, 04:46:46 PM
Ok this is a little odd.  I have searched this thread for answers but I don't see anyone having a similar difficulty.  I installed the mod onto a 1.1.9 board that is using a custom theme.  (classic)  It seemed to install fine and when I changed my own theme in my profile (as admin) I could click the chat button and went to the chat.  It worked great.  I then tried to login as another regular user and tried to access the chat and it wouldn't let me in.  I had set the allow guests to false in chat/lib/config.php  I thought that it might be locking the new user out due to having the same ip so I tried it today on another computer and it still is not allowing the other user in.  I can get in as admin.

Now for the odd part.  Somehow my forum seems to not allow guests to view the boards anymore.  When you go to the index page of the boards it gives you a login and says that only registered users are allowed.  At first I thought this must have been related to my having disabled the registration module yesterday so I changed it back to member approved and it still continues to not allow guests to browse the forum.

Any ideas about this?  Could it be related to the chat mod?  I have been thinking I should uninstall the chat mod and see if things change but would appreciate any feedback on how to proceed.

Many thanks, K.

(edited to add that the "allow guests to browse forums" had been unchecked.  Not sure just how that might have happened but human error is at the top of the list....gulp.  So the problem now is just that no one seems to be able to log in to the chat outside of me, the admin)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Mark S on July 05, 2009, 07:41:46 PM
Love both the shoutbox and the chat, however, our community has had chat rooms in the past and they never got as much activity as the shoutbox has.

We were using FlashChat, wich is a really excellent chat with tons of cool features, but it's also buggy and touchy to mess with.  And, as nice as I had it set up, it doesn't hold a candle to the use we're getting with the shoutbox.

So, all we need is the shoutbox.

I want to delete all the components and code of the chat and leave the shoutbox.  Is this possible?
What do I need to remove?   I have a pretty good idea for the most part, but there is code intermingled and I don't know if eliminating the chat will cause the shoutbox not to function.

And I didn't like neoneon's shoutbox in comparison.  Or at least, when I wanted to add smileys, it sure didn't like me, no matter what I tried.  I just like this one since it's got the goodies already there.

Oh, and I didn't find anything on this using the search:  How do I change the time from the 24 hour clock to normal, am/pm time?


Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on July 05, 2009, 09:19:39 PM
Quote from: mrtrc266 on June 29, 2009, 10:58:02 PM
Sorry wladymeer what are we trying to do here? With that many errors it looks like your trying uninstall a Mod that has been manually uninstalled???

Sorry, I've been suddenly away for a while so couldn't respond to you. Lemme repeat the post so you don't have to go back looking for:

QuoteI would go for reinstall but when I try to uninstall it I get these errors:

4.   Execute Modification   ./Sources/ManagePermissions.php   Test failed
      1.   Replace   ./Sources/ManagePermissions.php   Test failed
5.   Execute Modification   ./Sources/ManageSettings.php   Test failed
      1.   Replace   ./Sources/ManageSettings.php   Test failed
7.   Execute Modification   ./Sources/Subs.php   Test failed
      2.   Replace   ./Sources/Subs.php   Test failed

So, what I want to do is next thing:
#01 uninstall AjaxChat (because it's not working at the moment)
#02 install fresh AjaxChat (because it was working before)

And, no, all I was trying to do is go to the Admin Panel and then select package to uninstall and on "test page" I get these errors when I try to uninstall. I thought it might be better to ask you before I proceed with uninstall process.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: frantic on July 05, 2009, 10:48:13 PM
hey, did you guys remove the turn shout box into a mini chat feature?  Can't seem to find it.  Its not in option for me in modifications/chat
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Mark S on July 06, 2009, 06:51:06 AM
Quote from: wladymeer on July 05, 2009, 09:19:39 PM
Quote from: mrtrc266 on June 29, 2009, 10:58:02 PM
Sorry wladymeer what are we trying to do here? With that many errors it looks like your trying uninstall a Mod that has been manually uninstalled???

Sorry, I've been suddenly away for a while so couldn't respond to you. Lemme repeat the post so you don't have to go back looking for:

QuoteI would go for reinstall but when I try to uninstall it I get these errors:

4.   Execute Modification   ./Sources/ManagePermissions.php   Test failed
      1.   Replace   ./Sources/ManagePermissions.php   Test failed
5.   Execute Modification   ./Sources/ManageSettings.php   Test failed
      1.   Replace   ./Sources/ManageSettings.php   Test failed
7.   Execute Modification   ./Sources/Subs.php   Test failed
      2.   Replace   ./Sources/Subs.php   Test failed

So, what I want to do is next thing:
#01 uninstall AjaxChat (because it's not working at the moment)
#02 install fresh AjaxChat (because it was working before)

And, no, all I was trying to do is go to the Admin Panel and then select package to uninstall and on "test page" I get these errors when I try to uninstall. I thought it might be better to ask you before I proceed with uninstall process.

The reason you get these errors is because the package handler is looking for an exact match of all the code when it tries to find the "replace with" or "add before/after" code to replace with the original code (The reverse process of an installation).  If the file became corrupt (missing parts of the code or the code was rearranged) or if it was modified in any way, then an exact match won't occur and you'll get those errors.

Fixing this isn't as scary as the package handler error warning is.

Go to the manual install and find the mod's code in those files you're getting the errors and replace it with the original code.  Once you've done that, run the package handler uninstall again.  You'll still get the same errors but just continue the uninstall and it will remove the rest.

Or,

If you did the smart thing by making a directory backup before you added this mod and you haven't done any more mods since this one, unzip it in a folder on your computer.  You can upload just those 3 files you're getting the errors on (be sure to check "replace original file" in your cpanel).  This is faster and easier than code searching/replacing.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: SilvioTO on July 06, 2009, 11:07:45 AM
Great mod! I need to know how to select a different default channel instead of "Public".
Thanks a lot for your help!  :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: amigos on July 06, 2009, 11:44:19 AM
Hi All

I have installed this mod and its great thanks :D :D

Is there any user guides around as I'm not sure how you moderate it or actually use the chat rooms??

I know it may sound a little silly but new to all of this
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 06, 2009, 12:00:54 PM
@ Kilgore Trout 
Make sure that you have set your permissions for you Member Groups to Allow access to Chat and Shout

@ ThePharaoh
The Shoutbox runs off the Chat. You can remove the button to for the Chat Room and disable permissions for access to chat only.

@ Silvio and amigos
Click the link in my signature, there are quite a few tips that cover a lot of the most requested features including setting up default or adding custom channels.

As for the Moderation, in the Chat Room on the right side you will see a list of commands like /kick which will ban a user etc.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: tfs on July 06, 2009, 12:15:48 PM
Quote from: mrtrc266 on June 29, 2009, 10:44:35 AM
@ tfs
Whatever you currently have this set to "Enable online chat users numbering on chat button?" do the opposite and see if you still get the error.

Problem still persists.  My original question is here...

http://www.simplemachines.org/community/index.php?topic=257973.2840

8: Undefined index: chat
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Shades. on July 06, 2009, 03:50:13 PM
I installed this mod on another site of mine and can't get it to work. Clicking on the chat link brings up the chat page but when you type in a chat message and hit submit, the message is not displayed and there are no error messages. Can you help? Thx!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Kilgore Trout on July 06, 2009, 04:51:09 PM
Quote from: mrtrc266 on July 06, 2009, 12:00:54 PM
@ Kilgore Trout 
Make sure that you have set your permissions for you Member Groups to Allow access to Chat and Shout


Many thanks!  This was the problem.  Works great now.

K
Title: Re: AjaxChat Integration (3.2 Released)
Post by: munty on July 06, 2009, 04:59:28 PM
tried to upgrade to the latest version after upgrading to 1.19 of smf now i got 2 shoutboxes, but getting connection errors, 2 chat buttons, and the chat wont open due to file permissions...

help!


tia

:D

Munty
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 06, 2009, 07:16:42 PM
Use of undefined constant count - assumed 'count' Sources/Subs.php on line 3886

Any ideas?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: shakymon on July 06, 2009, 09:07:36 PM
Quote from: SunKing on May 19, 2009, 12:23:29 PM
Alright. Here is the first (of many, I hope) tweak for the AjaxChat mod.
Here's what I did:

Post Notification
search for
notifyMembersBoard($notifyData);
add after it:
// Ajax Chat New Topic Notification
global $user_info, $board, $scripturl, $boardName, $topic;
    $smcFunc['db_insert']('',
      'ajax_chat_messages',
      array(
         'userID' => 'int', 'userName' => 'string-255', 'userRole' => 'int', 'channel'=> 'int', 'ip' => 'string-255', 'text' => 'string-255',
         ),
      array(
         $posterOptions['id'], $user_info['name'], 1, 0, $posterOptions['ip'], '[color=red][b]New Topic: [url='.$scripturl . '?topic=' . $topic . '.new#new'.']'.html_entity_decode($_POST['subject']).'[/url][/b][/color]'
         ),
      array('autopost')
   );
    // End Ajax Chat New Topic Notification


Is there a version of your Post Notification tweak that works with 1.1.9? My Post.php can't use $smcFunc
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fwdiii on July 07, 2009, 12:20:11 AM
reposting in the hopes I can get this fixed:

Quote
Quote from: JBlaze on July 02, 2009, 04:12:48 AM
Quote from: fwdiii on July 01, 2009, 11:52:17 PM
I installed this mod and every works great.

However, the Chat Button displays kind of screwy in Firefox, Opera, and Safari. Instead of being the same font, color, size and location as the rest of the top menu, it shows kinda of above the logout button and in what looks like times new roman.

my forums are located at forums.alliedtrainingcommand.com if you want to look at it.

Oh, it shows fine when using the IE Tabs plug-in for firefox, so it's definitely how those browsers handle the code, just not sure what to change to make them handle it correctly.


This could most likely be a theme issue. What theme are you using?


I am using WDEfault. and SMF 1.1.9. It works fine with IE 6 ,7 and 8. Some I am a bit disinclined to think it is a theme issue. I will change themes whn I get home and look tho.

Title: Re: AjaxChat Integration (3.2 Released)
Post by: Greyer on July 07, 2009, 03:41:54 AM
Hi I have installed that mod. Everything is working great except that when I login after while I see only 10 last messages in shoutbox, anyone know how to increase that to 50 or more last messages?

Best regards.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 07, 2009, 03:57:21 AM
Greyer I'm not an expert but it is my belief that you are unable to do so.

I myself prefer members to walk into a room with no text from previous.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chit-Chat ChatterBox Boss on July 07, 2009, 05:26:21 AM
Quote from: Greyer on July 07, 2009, 03:41:54 AM
Hi I have installed that mod. Everything is working great except that when I login after while I see only 10 last messages in shoutbox, anyone know how to increase that to 50 or more last messages?

Best regards.

Yes you can edit this. If you want to edit this for the shoutbox (not the chat) then go to /shoutBox/lib/config.php

In that file find a line that says something about how many lines to display on each call. right now it is set to 10 so if you want use CTRL + F and put 10 in the box to search for and hit F3 to find the next "10" until you see the line I am talking about.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DilSe on July 07, 2009, 01:16:02 PM
hello sir

i install

AjaxChat+Integration_3[1].2

but it show to time i don't now what happend plz help about this problem



Title: Re: AjaxChat Integration (3.2 Released)
Post by: excaliburj on July 07, 2009, 01:31:26 PM
Quote from: fwdiii on July 07, 2009, 12:20:11 AM
reposting in the hopes I can get this fixed:

Quote
Quote from: JBlaze on July 02, 2009, 04:12:48 AM
Quote from: fwdiii on July 01, 2009, 11:52:17 PM
I installed this mod and every works great.

However, the Chat Button displays kind of screwy in Firefox, Opera, and Safari. Instead of being the same font, color, size and location as the rest of the top menu, it shows kinda of above the logout button and in what looks like times new roman.

my forums are located at forums.alliedtrainingcommand.com if you want to look at it.

Oh, it shows fine when using the IE Tabs plug-in for firefox, so it's definitely how those browsers handle the code, just not sure what to change to make them handle it correctly.


This could most likely be a theme issue. What theme are you using?


I am using WDEfault. and SMF 1.1.9. It works fine with IE 6 ,7 and 8. Some I am a bit disinclined to think it is a theme issue. I will change themes whn I get home and look tho.


I think you may have a similar problem to that described here:
http://www.simplemachines.org/community/index.php?topic=319667.0
If so, the solution given there should help.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 07, 2009, 06:24:34 PM
@ tfs, I actually have the same problem not sure exaclty what's causing it though. It only happens in a custom theme even though all the edits are done properly

@ Are you using 1.1.x ? I think that edit is only for SMF 2

@ It look like you have it installed twice, but in regards to your blank chat/shout read the FAQ's in my signature regarding setting your file permissions.

@ fwdiii
excaliburj is correct, in the button edit if your buttons have <td> then use <td> </td> if they have <li> then use <li> </li>. Just look at your other buttons in your index.template.php file to see what it should be.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 07, 2009, 06:47:44 PM
Use of undefined constant count - assumed 'count' Sources/Subs.php on line 3887

Any ideas?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 07, 2009, 06:53:20 PM
TL Clear those errors, switch to the default theme and see if you still get them. I not then make sure you did to correct edits for your custom theme.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 07, 2009, 07:06:39 PM
Still get them.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: gravy on July 07, 2009, 09:22:42 PM
I had a problem of installing this. Everytime I would try to install the mod on 1.1.9 it would change my root folder chmod to 0777. This would shut down my sit completely to protect my website.

So I installed the mod, then went into ftp, and changed the permission back to 0755 and the refreshed the page a couple of times and it worked for the rest of the installation.

Great Mod! I really needed this for my site, and its everything! Kudos
Title: Re: AjaxChat Integration (3.2 Released)
Post by: LC on July 08, 2009, 06:34:50 AM
Great mod. I love how I am able to use it on a custom theme without much hassle.  :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fwdiii on July 08, 2009, 11:18:20 AM
Quote from: excaliburj on July 07, 2009, 01:31:26 PM
Quote from: fwdiii on July 07, 2009, 12:20:11 AM
reposting in the hopes I can get this fixed:

Quote
Quote from: JBlaze on July 02, 2009, 04:12:48 AM
Quote from: fwdiii on July 01, 2009, 11:52:17 PM
I installed this mod and every works great.

However, the Chat Button displays kind of screwy in Firefox, Opera, and Safari. Instead of being the same font, color, size and location as the rest of the top menu, it shows kinda of above the logout button and in what looks like times new roman.

my forums are located at forums.alliedtrainingcommand.com if you want to look at it.

Oh, it shows fine when using the IE Tabs plug-in for firefox, so it's definitely how those browsers handle the code, just not sure what to change to make them handle it correctly.


This could most likely be a theme issue. What theme are you using?


I am using WDEfault. and SMF 1.1.9. It works fine with IE 6 ,7 and 8. Some I am a bit disinclined to think it is a theme issue. I will change themes whn I get home and look tho.


I think you may have a similar problem to that described here:
http://www.simplemachines.org/community/index.php?topic=319667.0
If so, the solution given there should help.


Did this and still get the same issue.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: excaliburj on July 08, 2009, 01:54:09 PM
Quote from: fwdiii on July 08, 2009, 11:18:20 AM
Did this and still get the same issue.

Viewing your page source, that link is STILL inside < td > ... < /td >.

It needs to be inside < li > ... < /li> .
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Ronald_1938 on July 08, 2009, 03:27:23 PM
I have a SMF 2.0 RC1-1 forum installed. I installed a Shout Box through the Package manger The Shout Box is AjaxChat Integration 3.2 I keep getting messages when I open the Shout Box they are below.

(11:14:28) ChatBot: Error: Failed to load sound file (Flash IO Error).
(11:14:28) ChatBot: Error: Failed to load sound file (Flash IO Error).
(11:14:28) ChatBot: Error: Failed to load sound file (Flash IO Error).

My question is: Can I get rid of the sound files and everything to do with the sound. If yes..how is this done.

Thanks Ron..
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fwdiii on July 08, 2009, 06:38:57 PM
Quote from: excaliburj on July 08, 2009, 01:54:09 PM
Quote from: fwdiii on July 08, 2009, 11:18:20 AM
Did this and still get the same issue.

Viewing your page source, that link is STILL inside < td > ... < /td >.

It needs to be inside < li > ... < /li> .

wierd......I'll try again. Let you know how it turns out.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fwdiii on July 08, 2009, 10:34:08 PM
Apparently I had only fixed one set of tags the first time. Worked great, thanks for the help.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 09, 2009, 12:23:05 AM
Quote from: Oldcrow on July 08, 2009, 03:27:23 PM
I have a SMF 2.0 RC1-1 forum installed. I installed a Shout Box through the Package manger The Shout Box is AjaxChat Integration 3.2 I keep getting messages when I open the Shout Box they are below.

(11:14:28) ChatBot: Error: Failed to load sound file (Flash IO Error).
(11:14:28) ChatBot: Error: Failed to load sound file (Flash IO Error).
(11:14:28) ChatBot: Error: Failed to load sound file (Flash IO Error).

My question is: Can I get rid of the sound files and everything to do with the sound. If yes..how is this done.

Thanks Ron..

That is a known FireFox issue, ATM there I don't know of a fix for it but it only happens when you first type in a message, then it doenst appear again until you logon to your forum again.

SourceForge is current workin on finding a fix for it.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 09, 2009, 12:26:53 AM
Quote from: mrtrc266 on July 07, 2009, 06:53:20 PM
TL Clear those errors, switch to the default theme and see if you still get them. I not then make sure you did to correct edits for your custom theme.

At present we have no chat nor shoutbox in use.

I have been told there is an error there but not or how to delete it.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 09, 2009, 12:56:36 AM
TL still can't get to your site by hitting the website button under your avatar
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 09, 2009, 01:07:31 AM
Needs updating

www.visionaryhosting.info is the addy
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 09, 2009, 01:39:17 AM
Just went to your site....regarding your error you never said you chat/shout wasn't workin you just said your were getting the error, sorry but I assumed it was just an error in your error log.

On my next days off (Mon-Tue) I'll take a look and get it sorted for ya.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 09, 2009, 01:40:38 AM
Thanks bud. Sorry for the mix up.

Title: Re: AjaxChat Integration (3.2 Released)
Post by: sict on July 09, 2009, 01:56:25 AM
thx for this mod  :)
I have a question

Can I change the position of the shoutbox in my forum?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 09, 2009, 02:00:45 AM
Quote from: sict on July 09, 2009, 01:56:25 AM
thx for this mod  :)
I have a question

Can I change the position of the shoutbox in my forum?

Here you go, dont think you need to replace any files..just do the edits to put the shoutbox where you want.

http://www.simplemachines.org/community/index.php?topic=257973.msg2107351#msg2107351 (http://www.simplemachines.org/community/index.php?topic=257973.msg2107351#msg2107351)

Of course make backups before messing with the files you'll be editing.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sict on July 09, 2009, 02:13:58 AM
I'll try it, thanks for help mrtrc266 :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sict on July 09, 2009, 02:34:21 AM
It's work but I have another trouble, now the shout box appears in two places
How can I remove it from the default place (above the forumlist)?
Title: Re: AjaxChat Integration
Post by: nodent on July 09, 2009, 06:54:05 AM
Quote from: anshar on April 24, 2009, 11:58:17 AM
My logs are being spamed with:

8: Undefined index: chat
Plik: /Sources/Subs.php
Linie: 3849 

Any fix to that?

Was there a fix for this?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Stephanie on July 09, 2009, 10:30:40 AM
Please help..this is the error I receive when I tried to apply the mod..what did I do wrong? This has caused my forum to be down....please help...

this is the database error I receive..

Table 'ts_smf_prod.smf_ajaxchat_online' doesn't exist
File: /home/content/l/a/r/larrytorch/html/smf/Sources/Load.php
Line: 2250

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.9, while your database is at version 1.1.1. The above error might possibly go away if you execute the latest version of upgrade.php.

Stephanie
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 09, 2009, 12:44:35 PM
@ Stephanie

Did you get any errors on install?

What't the URL to your site, PM me if you don't want it public
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Stephanie on July 09, 2009, 12:51:33 PM
www.torchspirit.com

no errors on install...everything tested successfully....thank you so much for help!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 09, 2009, 01:06:24 PM
Quote from: Stephanie on July 09, 2009, 12:51:33 PM
www.torchspirit.com (http://www.torchspirit.com/)

no errors on install...everything tested successfully....thank you so much for help!

Can you create a test account and PM me the PW?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Stephanie on July 09, 2009, 01:14:41 PM
I sent you a PM..email me at [email protected] if you did not receive it....thank you so much for helping!

Stephanie
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 09, 2009, 01:27:50 PM
YVW....email sent
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 09, 2009, 02:19:15 PM
Quote from: Stephanie on July 09, 2009, 01:14:41 PM
I sent you a PM..email me at [email protected] if you did not receive it....thank you so much for helping!

Stephanie

Sorry I ran out of time, will take a look when I get home though if it's not sorted by then.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: liamo on July 09, 2009, 06:24:00 PM
I'm having a major problem with the chat app - If a guest user clicks on chat (popup window), then they get prompted for a username / password, however, if they either hit refresh (F5) or close the window and click chat again, then they get logged directly in as a user with a 6 digit number as the name...

this means that guests can get into the public chat without a password.


Ive set Permissions for guests to not allow access to chat...


What's happening??? Any ideas?


Mod version 3.2,
SMF 1.1.9
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Kilgore Trout on July 09, 2009, 10:15:41 PM
Quote from: LadyChaos on July 08, 2009, 06:34:50 AM
Great mod. I love how I am able to use it on a custom theme without much hassle.  :D

Glad to hear this...though this newb can't figure out how to mod the custom theme "classic" in order to get the 3.2 chat integration working on that theme. (it works great on the default) Can you point me to a web resource that might help me learn how to alter the custom theme?  thanks

KT
Title: Re: AjaxChat Integration (3.2 Released)
Post by: AaaHaa on July 10, 2009, 04:42:40 AM
Quote from: liamo on July 09, 2009, 06:24:00 PM
I'm having a major problem with the chat app - If a guest user clicks on chat (popup window), then they get prompted for a username / password, however, if they either hit refresh (F5) or close the window and click chat again, then they get logged directly in as a user with a 6 digit number as the name...

this means that guests can get into the public chat without a password.


Ive set Permissions for guests to not allow access to chat...


What's happening??? Any ideas?


Mod version 3.2,
SMF 1.1.9

i have the same problem...

another user except admin can't chat...
someone can help us ?

i use 2.0 rc1-1
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 10, 2009, 09:55:12 AM
@ liamo and liamo

Open /chat/lib/config.php

Find and replace true with false
// Enable/Disable guest logins:
$config['allowGuestLogins'] = true;


@ Kilgore Trout in my signature there is a link to the FAQ's with a link to a package parser so you can manually do the edits for your custom theme.

@ Stephanie, your forum is back in order. Will get the chat going for you soon.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Kilgore Trout on July 10, 2009, 10:29:43 AM
Mrtrc266 -  Thank you for your reference and I must say thanks for the huge amount of time and effort you put into helping people get this running.  My hat is off to you.

I had seen the FAQ and used the package parser and found when trying to replace text in the index.template.php file that I could not find the text that was listed in the parser.  I wasn't sure how to proceed from that point.  The theme I am trying to mod is the "classic" theme.

Thanks for your help with this.

KT
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 10, 2009, 10:31:36 AM
You very welcome KT, attatch your index.template.php file here please.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: nodent on July 10, 2009, 10:34:42 AM
My logs are being spamed with:

8: Undefined index: chat
File: D:/inetpub/vhosts/mattsoutback.com/httpdocs/board/Sources/Subs.php
Line: 3749 

I have look all over the place for help, This board has the issue to but no one is helping.

PLEASe HELP.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 10, 2009, 11:07:09 AM
@ Nodent, yes that error seems have been posted many times, ATM not sure what's causing it. It's a harmless error, I know it's annoying seeing it the log but just delete them everyday or 2. I'm sure we'll get this sorted soon and it will be posted. Thank you for your patience.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Kilgore Trout on July 10, 2009, 11:40:13 AM
Quote from: mrtrc266 on July 10, 2009, 10:31:36 AM
You very welcome KT, attatch your index.template.php file here please.

Thanks mrtrc266
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Shades. on July 10, 2009, 05:18:44 PM
Quote from: BoZilla on July 06, 2009, 03:50:13 PM
I installed this mod on another site of mine and can't get it to work. Clicking on the chat link brings up the chat page but when you type in a chat message and hit submit, the message is not displayed and there are no error messages. Can you help? Thx!
Any help on this please? ;)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: primetime on July 10, 2009, 07:26:33 PM
All of a sudden I am gettin 503 errors in my chat. What would be the cause of this? I saw in an earlier post to check that its pointing to the right URL ,.. How/where do I check this?

Thank you,
Prime
Title: Re: AjaxChat Integration (3.2 Released)
Post by: improv on July 10, 2009, 07:56:06 PM
Hmm ..
Has there been said already that if you typ something with ' it automaticly turns into \ '?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sombra on July 10, 2009, 08:08:16 PM
i have installed and everithing running fine but the shoutbox looks strange diferent from the pic on the mod page

Why my smileys don't appear in the shoutbox?? They were removed for the last version?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg25.imageshack.us%2Fimg25%2F4755%2Fshoutboxt.jpg&hash=260a0a358634c451eb431bdbe41f635dd9a55748)

also the buttons and the border that I cant see in the screenshots are not be showing in my forum

I already uploaded all the files and set 777 permissions to each folder and file

thanks for the mod and the help :P
Title: Re: AjaxChat Integration (3.2 Released)
Post by: dzinerfusion on July 10, 2009, 10:27:27 PM
hi, i have a question if I could empty out my databases messages. ajax_chat_messages
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 10, 2009, 10:50:11 PM
Quote from: Kilgore Trout on July 10, 2009, 11:40:13 AM
Quote from: mrtrc266 on July 10, 2009, 10:31:36 AM
You very welcome KT, attatch your index.template.php file here please.

Thanks mrtrc266

Here you go...try this and of course make a backup
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sombra on July 10, 2009, 11:43:36 PM
and is there any way to load the shoutbox a little faster

and is there any way to change the color my forum is black and brown
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 10, 2009, 11:57:17 PM
Quote from: sombra on July 10, 2009, 11:43:36 PM
and is there any way to load the shoutbox a little faster

and is there any way to change the color my forum is black and brown

The shoutbox will load as fast as your server allows it to.

For the colors you can edit these files...

chat/css/shoutbox.css

and

shoutbox/css/shoutbox.css

Title: Re: AjaxChat Integration (3.2 Released)
Post by: sombra on July 11, 2009, 01:33:56 AM
thanks for the reply and the mod great mod can you tell me about this other little problem that i have and thanks again

Quote from: sombra on July 10, 2009, 08:08:16 PM
i have installed and everithing running fine but the shoutbox looks strange diferent from the pic on the mod page

Why my smileys don't appear in the shoutbox?? They were removed for the last version?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg25.imageshack.us%2Fimg25%2F4755%2Fshoutboxt.jpg&hash=260a0a358634c451eb431bdbe41f635dd9a55748)

also the buttons and the border that I cant see in the screenshots are not be showing in my forum

I already uploaded all the files and set 777 permissions to each folder and file

thanks for the mod and the help :P
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Kilgore Trout on July 11, 2009, 09:27:53 AM
Thanks for your help with this.  I uploaded the amended file and it gave me the following error:

Template Parse Error!
There was a problem loading the /Themes/classic/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_ELSE in .../Themes/classic/index.template.php on line 299



I will paste in what seems to be the code you edited in hopes that you could easily spot the error and then tell me how to edit it myself.  There is no rush since I renamed the old file and things are working fine in the meantime.  Many thanks for your help.  KT


// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';

// Otherwise, they might want to [logout]...
else
echo '
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" border="0" />' : $txt[108]), '</a>';
}

// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;

if (empty($button_strip))
return '';

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . ($value['lang'] ? $context['user']['language'] . '/' : '') . $value['image'] . '" alt="' . $txt[$value['text']] . '" border="0" />' : $txt[$value['text']]) . '</a>';

$button_strip[$key] = $buttons[$key];
}

echo '
<td ', $custom_td, '>', implode($context['menu_separator'], $button_strip) , '</td>';
}

?>

Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 11, 2009, 09:44:00 AM
KT I did notice that you uploaded 2 index.templates, I only downloaded one.

Attatch just the index.template for the theme you want this working on and I'll take another look.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Kilgore Trout on July 11, 2009, 09:50:26 AM
Yes, that was a mistake on my part though I think that the two files are exact duplicates.  I will attach just one this time....

thanks, KT
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 11, 2009, 10:34:38 AM
KT Im not sure what the prob is but everytime I make any edit I get a parse error on your index.template. I did the edits for the default Classic index.template and it works fine (just need and image for the button)

Here is my default classic index.template.php file throw it up on your site and it should work, you can compare it with yours and play around w/ it. I have to get off to work but will mess with it some more when I get a few minutes. Have fun ;)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Kilgore Trout on July 11, 2009, 02:37:02 PM
Success!  Thanks so much mrtrc266.  It works just fine.  There is a text link where the alt text says "Chat."  I have an image chat.gif to use but I can't seem to find which directory it needs to go into. Tried the obvious classic/images/english but no go.   Maybe it needs to be renamed?  I looked at the code but couldn't see the name of the image or the path.  I hate to call on your patience and generosity yet again....but if you could please tell me where to place that image or what name to use to rename I would be very grateful.  thank you.

KT
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sombra on July 11, 2009, 03:09:19 PM
 ::)any sugestions
Title: Re: AjaxChat Integration (3.2 Released)
Post by: liamo on July 11, 2009, 03:58:11 PM
Quote from: mrtrc266 on July 10, 2009, 09:55:12 AM
@ liamo and liamo

Open /chat/lib/config.php

Find and replace true with false
// Enable/Disable guest logins:
$config['allowGuestLogins'] = true;


Fair play, worked a treat!

Ta,
liamo
Title: Re: AjaxChat Integration (3.2 Released)
Post by: munty on July 11, 2009, 04:46:46 PM
i uninstalled the old version, upgraded the board to .19 and then went to install the new version.

Now i have 2 chat buttons, and 2 shoutboxes, but nothing works at all. If i try to goto the chat room, i get a file permission error.

any assistance would be greatly appreciated.

M
Title: Re: AjaxChat Integration (3.2 Released)
Post by: MCK on July 11, 2009, 11:08:32 PM
Hi, I would like to display a Disclaimer after every X lines in the chat. Or any other way to remind people basic rules about the shoutbox.

In my case I don't want them to use shoutbox for support issues on my forum so support issues get posts which can be searched in future. Thanks for considering this.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Shades. on July 11, 2009, 11:14:34 PM
Quote from: BoZilla on July 10, 2009, 05:18:44 PM
Quote from: BoZilla on July 06, 2009, 03:50:13 PM
I installed this mod on another site of mine and can't get it to work. Clicking on the chat link brings up the chat page but when you type in a chat message and hit submit, the message is not displayed and there are no error messages. Can you help? Thx!
Any help on this please? ;)

I have this working on one site but can't get it to work on another. When the chat page pops up it does not log me in and when I submit a message, the chat box does not update and the message is not submitted. I still waiting patiently for some help with this, thanks! O:)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 11, 2009, 11:27:07 PM
@ KT put your mouse cursor over one of the other pics, right click and hit "properties" that will show you path/directories where the images are located, then put your chat pic in that directory.

@ munty, it seems that it did not get uninstalled all the way, throw to older version in Package Parser (http://resourcez.biz/PackageParser/) and look for the codes to remove/edit.

@ sombra, unzip the AJAX Chat Intergration on your desktop, find the Shout.template.php and upload it to your /Themes/default directory...looks like it messed up a bit

@ MCK in your /Themes/default/languages/Modifications.english.php file
Find
$txt['shoutBox'] = 'ShoutBox';
Replace with
$txt['shoutBox'] = 'ShoutBox-Please DO NOT user the shoutbox for support issues';

This will not post a reminder but will have the message loud and clear right in the header of your shoutbox.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: dzinerfusion on July 11, 2009, 11:34:17 PM
Quote from: bluesinjid on July 10, 2009, 10:27:27 PM
hi, i have a question if I could empty out my databases messages. ajax_chat_messages

Any word if I can empty this table?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 11, 2009, 11:51:39 PM
@  BoZilla seems like you need to CHMOD your /chat/index.php and /shoutbox/index.php files to 755

@ bluesinjid

Find /chat/lib/config.php

// Max time difference in days for old messages before they are purged from the database:
$config['logsPurgeTimeDiff'] = 365;


Change 356 to 0 upload file and refresh, that should purge your database...then change 0 back to whatever your like. 30 days should be good, this will clear your messages db every 30 days
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Shades. on July 12, 2009, 12:09:28 AM
Quote from: mrtrc266 on July 11, 2009, 11:51:39 PM
@  BoZilla seems like you need to CHMOD your /chat/index.php and /shoutbox/index.php files to 755

@ bluesinjid

Find /chat/lib/config.php

// Max time difference in days for old messages before they are purged from the database:
$config['logsPurgeTimeDiff'] = 365;


Change 356 to 0 upload file and refresh, that should purge your database...then change 0 back to whatever your like. 30 days should be good, this will clear your messages db every 30 days

Ok, I CHMOD the files to 755 as you said and I'm still getting the same thing, nothing...LOL! Can you take a look? The site is http://www.omegadex.com.

Thanks! 8)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Frelo21 on July 12, 2009, 12:39:18 AM
I uploaded some different sounds and named them the same sound titles as the ones in the sound folder, but the same old sounds are still being used even though they have been replaced with new sounds...

Im sooo confused  :-[
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Kilgore Trout on July 12, 2009, 11:22:42 AM
Quote from: mrtrc266 on July 11, 2009, 11:27:07 PM
@ KT put your mouse cursor over one of the other pics, right click and hit "properties" that will show you path/directories where the images are located, then put your chat pic in that directory.


Yes.  That was the first thing I tried.  The other graphics were .gif and were in the classic/images/english directory.  I put the chat.gif in that directory and nothing. I tried renaming it Chat.gif with no success. On a whim I tried putting the chat.gif file in a number  of other directories also with no success.  I don't see anywhere in the code that points to a graphic.  Any suggestions?  Thanks.   KT
Title: Re: AjaxChat Integration (3.2 Released)
Post by: andy40 on July 12, 2009, 12:14:30 PM
hi is there a way i can turn the sound off on the shoutbox???
Title: Re: AjaxChat Integration (3.2 Released)
Post by: kalleanka on July 12, 2009, 12:29:28 PM
any solution to the constant lagging in the shoutbox? Messages get stuck and then come at the same time.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 12, 2009, 12:42:04 PM
KT...oops LOL

Find Themes/classic/index.template.php
// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
   <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>';


Replace with
// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['chat'] . '" border="0" />',  ($num > 0) ?  ('('.$num.')') : '' , '</a>', $context['menu_separator'];


and upload your chat.gif to Themes/classic/images/english/
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 12, 2009, 01:01:27 PM
@ BoZilla 
Not sure that's the classic file permissions error, what Mods to your have installed?

@ Frelo21 
Be sure to clear cache and refresh. Also do the same edits in your /shoutbox folder

@ andy40
I have an edit that will let the user turn off the sound by clicking a mute button. I have to get going but will post it when I get back.

@ kalleanka
I don't think it's lag, you have to have the shoutbox in focus to retrieve messages, in other words if your are out of the shoutbox cruising the forum, clicking around and then when you put your cursor back in the message in put field all the messages will appear.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sombra on July 12, 2009, 01:02:22 PM
thanks for the reply i have another question i have simpleportal on my forum and since i installed the shoutbox it aprears on the portal as well and i dont want it on the portal only on the forum how can it be done and thanks for all the help
Title: Re: AjaxChat Integration (3.2 Released)
Post by: kalleanka on July 12, 2009, 01:10:30 PM
Quote from: mrtrc266 on July 12, 2009, 01:01:27 PM

@ kalleanka
I don't think it's lag, you have to have the shoutbox in focus to retrieve messages, in other words if your are out of the shoutbox cruising the forum, clicking around and then when you put your cursor back in the message in put field all the messages will appear.

sometimes i retrieve messages anyway, like one out of ten.  So theres something strange going on. Then again, gets stuck.. any solution to this? Any way to force it to update every sec?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Shades. on July 12, 2009, 01:14:49 PM
Quote from: mrtrc266 on July 12, 2009, 01:01:27 PM
@ BoZilla 
Not sure that's the classic file permissions error, what Mods to your have installed?

I'm using SMF 2.0RC1-1 and have the below mods installed:

Ad Managment 2.3.5 , Header Rotator 2.1 , Search Focus Dropdown 1.3 , Welcome Topic Mod 2.0.2 , SimplePortal 2.2.2, SMF Media Gallery 1.5.6 , Highslide Image Viewer 1.2, Bookmarks 2.2.1, Related Topics 1.4 Alpha 3, Copyright & Footer Links | S-Ace 2.0, Twitter Profile Field 2.2, SMF Quiz Categories 1.0.6, SMF Links 1.8.1.1, Topic Solved 1.1, Social Bookmarks 2.0, New Topic Button 1.0, Favicon 1.2, eNinja - Custom Pages 1.0.12, Aeva ~ Auto-Embed Video & Audio 6.9.99, Avatar Optimization 1.0, Users Online Today 1.5.4, Stop Spammer 2.2, Sitemap 2.0.0, SMF Quiz 1.0.7, MetaDataMod 1.0, Balloon-Shaped Frame Message 1.0, Spoiler Tag 0.6b, Disable Right Click 4.0, Twitter mod 1.3, Advanced Reputation System 1.7.4, Treasury 2.35.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 12, 2009, 01:14:57 PM
Quote from: sombra on July 12, 2009, 01:02:22 PM
thanks for the reply i have another question i have simpleportal on my forum and since i installed the shoutbox it aprears on the portal as well and i dont want it on the portal only on the forum how can it be done and thanks for all the help

For SMF 1.1.X Admin/Configuration/Features and Options/
For SMF 2 RC1  Admin/Configuration/Modifications/Chat/

Check for ShoutBox on any page or uncheck for only in index page:

Quote from: kalleanka on July 12, 2009, 01:10:30 PM
Quote from: mrtrc266 on July 12, 2009, 01:01:27 PM

@ kalleanka
I don't think it's lag, you have to have the shoutbox in focus to retrieve messages, in other words if your are out of the shoutbox cruising the forum, clicking around and then when you put your cursor back in the message in put field all the messages will appear.

sometimes i retrieve messages anyway, like one out of ten.  So theres something strange going on. Then again, gets stuck.. any solution to this? Any way to force it to update every sec?

Look in /chat/lib/config.php
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sombra on July 12, 2009, 01:36:43 PM
thanks for the reply so fast

i did that but know it takes the chat from all pages if i dom this

For SMF 1.1.X Admin/Configuration/Features and Options/
For SMF 2 RC1  Admin/Configuration/Modifications/Chat/

i just want it out of the portal can it be done ?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Kilgore Trout on July 12, 2009, 01:51:41 PM
Excellent!  Worked like a charm and things are all set.  I can't thank you enough for all of your help with this.  Do you have a place on your site that accepts paypal donations?

KT


Quote from: mrtrc266 on July 12, 2009, 12:42:04 PM
KT...oops LOL

Find Themes/classic/index.template.php
// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
   <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>';


Replace with
// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['chat'] . '" border="0" />',  ($num > 0) ?  ('('.$num.')') : '' , '</a>', $context['menu_separator'];


and upload your chat.gif to Themes/classic/images/english/
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sombra on July 12, 2009, 08:54:15 PM
 "I re-uploaded the Shout.template.php file and the shoutbox.css file on /chat/css but nothing change!"

still with the problem of no smilies in the shoutbox
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sombra on July 12, 2009, 11:28:37 PM
Quote@ sombra, unzip the AJAX Chat Intergration on your desktop, find the Shout.template.php and upload it to your /Themes/default directory...looks like it messed up a bit

did that still look the same
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 12:34:35 AM
Quote from: sombra on July 12, 2009, 01:36:43 PM
thanks for the reply so fast

i did that but know it takes the chat from all pages if i dom this

For SMF 1.1.X Admin/Configuration/Features and Options/
For SMF 2 RC1  Admin/Configuration/Modifications/Chat/

i just want it out of the portal can it be done ?

No unfortunately it's the just the forum pages or all pages. Hopefully the ability to add it to whatever page you want will be in the next release.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 12:35:18 AM
Quote from: sombra on July 12, 2009, 11:28:37 PM
Quote@ sombra, unzip the AJAX Chat Intergration on your desktop, find the Shout.template.php and upload it to your /Themes/default directory...looks like it messed up a bit

did that still look the same

Try switching to the default theme and see what it looks like there.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 12:46:07 AM
@ Bozilla, I have no idea what the problem is, try uninstall/reinstall from the default theme and them CHMOD the files....see if that works.

Not sure if you've seen the posts but that has worked for a couple people.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 01:13:27 AM
@ KT, glad you got it sorted and tyvm for your generousity. Post back if your need any more help.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sombra on July 13, 2009, 01:48:18 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg129.imageshack.us%2Fimg129%2F1062%2Fshout1.jpg&hash=0f8c0bc2cfa6b8d5c03114a71da95381a05dd885)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg44.imageshack.us%2Fimg44%2F2382%2Fshout2l.jpg&hash=192ec34269397c168068da0b4e91a46c99a44088)

in both theres no smilies and botons

but i saw that in the defaul it has borders and in darckbreak dont were can i give boarders

marked here

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg529.imageshack.us%2Fimg529%2F1062%2Fshout1.jpg&hash=9ea0dfd19b544709e68a480a16399ccb98fdb00e)

Title: Re: AjaxChat Integration (3.2 Released)
Post by: Shades. on July 13, 2009, 09:55:04 AM
Quote from: mrtrc266 on July 13, 2009, 12:46:07 AM
@ Bozilla, I have no idea what the problem is, try uninstall/reinstall from the default theme and them CHMOD the files....see if that works.

Not sure if you've seen the posts but that has worked for a couple people.

Ok, just tried that with no luck...still not working! I have 3 different boards on the same site for testing and it doesn't work on any of them with or without other mods installed. But I have another site (www.myauctionfamily.com) with a different host that it works just fine, never had any problems. This is odd! ???
Title: Re: AjaxChat Integration (3.2 Released)
Post by: jbloudg20 on July 13, 2009, 11:54:25 AM
I'm having a problem installing this mod.

3.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

If I continue with the install anyway:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8
File: /homepages/32/d206905265/htdocs/CTRiders/Packages/temp/Tables_1.1.X.php
Line: 30
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 12:37:04 PM
Quote from: jbloudg20 on July 13, 2009, 11:54:25 AM
I'm having a problem installing this mod.

3.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

If I continue with the install anyway:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8
File: /homepages/32/d206905265/htdocs/CTRiders/Packages/temp/Tables_1.1.X.php
Line: 30

This is odd, there was another member who gets this same error, what is your mysql and php version.....is it version 4 by any chance?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: IslandDahl on July 13, 2009, 01:04:29 PM
@mrtrc266, thanks for all the support. Really, I've gone through most of the pages of this thread and you have been of great help. I have a question though, I was able to install the chat and run the mod but I have 2 problems.

First, whenever I use Firefox to log into the chat, it redirects me to my forum home page after I click log in. However, I can log in just fine with IE.

Second, I was trying to use the package parser to do the chat button but it kept crashing my forum.

Please what can I do?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 01:11:13 PM
@ IslandDahl
You should be able to go from your forum directly into chat without having to login. Once you are logged into your forum then you are also logged into the chat. When we get this button on then it shouldn't be a problem.

Regarding the Chat Button...

If you have SMF 1.1.X attach your /Themes/yourtheme/index.template.php
If your have SMF 2 attach your /Sources/Subs.php

I'll take a look
Title: Re: AjaxChat Integration (3.2 Released)
Post by: IslandDahl on July 13, 2009, 01:16:44 PM
Quote from: mrtrc266 on July 13, 2009, 01:11:13 PM
@ IslandDahl
You should be able to go from your forum directly into chat without having to login. Once you are logged into your forum then you are also logged into the chat. When we get this button on then it shouldn't be a problem.

That happens only with IE, with FF it gives me a 6 digit username.

Please find the Index template attached.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 01:52:52 PM
Here you go Island, this might even fix your redirect issue, the script for the chat path was missing and your forum might have had a problem with conflicting index.php paths.

I just tried this on my test site and seems to be working ok.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Geoff Mendicino on July 13, 2009, 01:57:42 PM
I'd like to change it so the AJAX chat only lets members post. I turned off all the options for guests, but it's still possible for people to jump in with the guest 6 digit name.

Any suggestions?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: IslandDahl on July 13, 2009, 01:59:09 PM
Quote from: mrtrc266 on July 13, 2009, 01:52:52 PM
Here you go Island, this might even fix your redirect issue, the script for the chat path was missing and your forum might have had a problem with conflicting index.php paths.

I just tried this on my test site and seems to be working ok.

Thanks, will give it a shot.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 01:59:54 PM
Quote from: Geoff Mendicino on July 13, 2009, 01:57:42 PM
I'd like to change it so the AJAX chat only lets members post. I turned off all the options for guests, but it's still possible for people to jump in with the guest 6 digit name.

Any suggestions?

Here you go
http://www.simplemachines.org/community/index.php?topic=257973.msg2152760#msg2152760 (http://www.simplemachines.org/community/index.php?topic=257973.msg2152760#msg2152760)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: jbloudg20 on July 13, 2009, 02:11:31 PM
Quote from: mrtrc266 on July 13, 2009, 12:37:04 PM
Quote from: jbloudg20 on July 13, 2009, 11:54:25 AM
I'm having a problem installing this mod.

3.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

If I continue with the install anyway:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8
File: /homepages/32/d206905265/htdocs/CTRiders/Packages/temp/Tables_1.1.X.php
Line: 30

This is odd, there was another member who gets this same error, what is your mysql and php version.....is it version 4 by any chance?

Yes it is. My database is MySql 4.0
Title: Re: AjaxChat Integration (3.2 Released)
Post by: IslandDahl on July 13, 2009, 02:20:19 PM
Quote from: IslandDahl on July 13, 2009, 01:59:09 PM
Quote from: mrtrc266 on July 13, 2009, 01:52:52 PM
Here you go Island, this might even fix your redirect issue, the script for the chat path was missing and your forum might have had a problem with conflicting index.php paths.

I just tried this on my test site and seems to be working ok.

Thanks, will give it a shot.

Thanks, the pop up box works but now the chat doesn't. All I get is

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi30.tinypic.com%2F2euty6f.png&hash=494491bb50a572499d629c14d3f0e0baa1e30d77)

I chmodded the index of the chat to 755 and still nothing.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 02:29:43 PM
Island, Was it working before and did you clear your cache ?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: IslandDahl on July 13, 2009, 02:35:55 PM
Quote from: mrtrc266 on July 13, 2009, 02:29:43 PM
Island, Was it working before and did you clear your cache ?

It was working on IE when I used chat.myforum.com but not when I did myforum.com/chat but it wasn't a popup box either. I'll clear the cache as soon as I'm done with some uploads.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: IslandDahl on July 13, 2009, 03:17:13 PM
I'm still getting the same screen.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Geoff Mendicino on July 13, 2009, 03:38:34 PM
Quote from: mrtrc266 on July 13, 2009, 01:59:54 PM
Quote from: Geoff Mendicino on July 13, 2009, 01:57:42 PM
I'd like to change it so the AJAX chat only lets members post. I turned off all the options for guests, but it's still possible for people to jump in with the guest 6 digit name.

Any suggestions?

Here you go
http://www.simplemachines.org/community/index.php?topic=257973.msg2152760#msg2152760 (http://www.simplemachines.org/community/index.php?topic=257973.msg2152760#msg2152760)
*kisskiss*
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sombra on July 13, 2009, 03:47:57 PM
Quote from: sombra on July 13, 2009, 01:48:18 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg129.imageshack.us%2Fimg129%2F1062%2Fshout1.jpg&hash=0f8c0bc2cfa6b8d5c03114a71da95381a05dd885)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg44.imageshack.us%2Fimg44%2F2382%2Fshout2l.jpg&hash=192ec34269397c168068da0b4e91a46c99a44088)

in both theres no smilies and botons

but i saw that in the defaul it has borders and in darckbreak dont were can i give boarders

marked here

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg529.imageshack.us%2Fimg529%2F1062%2Fshout1.jpg&hash=9ea0dfd19b544709e68a480a16399ccb98fdb00e)

well bump cux i see if im not the last post i get ignored

anyone knows is there any fix for this bug?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 13, 2009, 05:49:00 PM
Sombra all it takes is patience. I have been without a chatroom and shoutbox for several days now yet I am not ( yet) pulling my hair out.

mrtrc266 works 6 days a week with long hours and has his own forum to look after ( or decapitate).

Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 08:16:45 PM
Quote from: IslandDahl on July 13, 2009, 03:17:13 PM
I'm still getting the same screen.

Uhg, do you have anything in your .htaccess file?

@ sombra
What's the URL to your site? More than likely it's not a bug since you're the only one with that problem.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 08:21:58 PM
Quote from: TheListener on July 13, 2009, 05:49:00 PM
Sombra all it takes is patience. I have been without a chatroom and shoutbox for several days now yet I am not ( yet) pulling my hair out.

mrtrc266 works 6 days a week with long hours and has his own forum to look after ( or decapitate).

TY TL.......BTW, what are you talkin about? You were without a site for a few days LOL, glad you got it back...now it'll just take some cleaning up.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 13, 2009, 08:25:48 PM
Keep getting this error in the chat pop up and error log.

Notice: Use of undefined constant count - assumed 'count'

Sources/Subs.php on line 3894

Notice: Use of undefined constant chatOnlineUsers - assumed 'chatOnlineUsers'

Sources/Subs.php on line 3894

Also keep getting the same error in the error log.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 08:26:28 PM
@ Bozilla and sombra

Even if you don't have pretty URL's installed just for kicks try this.

http://www.simplemachines.org/community/index.php?topic=257973.msg1998551#msg1998551 (http://www.simplemachines.org/community/index.php?topic=257973.msg1998551#msg1998551)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sombra on July 13, 2009, 09:26:03 PM
sorry i know and its a great mod but im felling to be ignored hehehe

yes i have pretty url on my site and my url is on my signature

and thanks againt for the reply and help

already did this and nothing

QuoteI added this piece of code to the SMF htaccess file

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

I added under the actions set of rules.  Everything works perfectly now.  If anyone else has a problem like mine feel free to shoot me a note and I'll help out.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 13, 2009, 09:57:14 PM
LOL, nobody is ignoring you sombra, if I knew the answere off the top of my head I would've given it to you the moment you posted the prob. I have never seen anything like this before.

Create a temp admin account on your site and create a temp account to your FTP and PM me the details...I'll take a look.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Shades. on July 14, 2009, 02:46:18 PM
Quote from: mrtrc266 on July 13, 2009, 08:26:28 PM
@ Bozilla and sombra

Even if you don't have pretty URL's installed just for kicks try this.

http://www.simplemachines.org/community/index.php?topic=257973.msg1998551#msg1998551 (http://www.simplemachines.org/community/index.php?topic=257973.msg1998551#msg1998551)
Well, just tried that and still have same problem. Chat page pops up but nothing works! :( :'(

Just uninstalled and reinstalled manually and even did the SQL queries manually but still having the same problem above. I don't know what else to do! ::)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: IslandDahl on July 14, 2009, 06:16:38 PM
Quote from: mrtrc266 on July 13, 2009, 08:16:45 PM
Quote from: IslandDahl on July 13, 2009, 03:17:13 PM
I'm still getting the same screen.

Uhg, do you have anything in your .htaccess file?

lol yeah I know it can be frustrating but trust me you're doing a great job. Meanwhile, I don't think there's anything in my .htaccess file....rather I don't know how to access it.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: primetime on July 14, 2009, 06:50:51 PM
Is there any future enhancement planned to integrate highslide or lightbox in the chat that can be used with a bbcode?
Title: Re: AjaxChat Integration
Post by: Hagbard_Celine on July 14, 2009, 07:27:18 PM
Quote from: mrtrc266 on May 11, 2009, 12:24:51 AM
Finally Adding the BBC Buttons, adding Custom Smileys and MAKING SMILEYS POPUP in your Chat Room and ShoutBox for AJAX Chat Intergration 3.0 is here(https://www.simplemachines.org/community/Smileys/simple/cheesy.gif)

The edits below will add the following to your AJAX Chat Room & Shoutbox.
       

  • Adds all of the BBC Buttons to your Shoutbox.
  • Adds the Font Color Palette to your Shoutbox.
  • Adds custom Smileys to your Chat Room and Shoutbox.
  • Makes the Font Color Palette PopUp in the Shoutbox.
  • Makes the Smileys PopUp in your Chat Room & Shoutbox.
  • Adds 60 Custom Smileys to your Chat Room & Shoutbox.
Here we go.....First just do a couple edits to these files.

yourforum/Themes/yourtheme/index.tempalte.php
Find
      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


Replace with

      <div class="tborder" style="margin: 10px 0 10px 0;">
         <table width="100%" class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <tr>
            <td width="50%">
                  <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
         </div>
      </td>
         <td width="50%" align="right">
      <div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">
          <font size="1">AJAX Chat</font></a><font size="1"> &copy; <a href="https://blueimp.net">blueimp.net</a> |
          </font> <a href="http://4tmu.ir/forum/index.php"><font size="1">Integrated with SMF</font></a></div>
               </td>
            </tr>
         </table>
      <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


yourforum/chat/js/config.js (You can just use the attatched file if you have not made any previous edits to the config.js file)

Find
   // Defines the list of allowed emoticon codes:
   emoticonCodes: new Array(
      '',
      '',
      '',
      '',
      '',
      ':|',
      ':O',
      ':?',
      '',
      '8o',
      'B)',
      ':-)',
      ':-(',
      '',
      'O:-D',
      '>:-D',
      ')',
      ':idea:',
      ':important:',
      ':help:',
      ':error:',
      ':warning:',
      ':favorite:'     
    ),
   

Replace with
   // Defines the list of allowed emoticon codes:
   emoticonCodes: new Array(
      '',
      '',
      ':cc',
      '',
      ':winktongue:',
      '',
      '',
      ':wave:',
      ':sleeping:',
      ':whistle:',
      ':idea:',
      ':|',
      ':resigned:',
      ':O',
      ':err',
      ':grr',
      '8o',
      'B)',
      ':headphones:',
      ':onthephone:',
      ':applause:',
      ':money:',
      ':thumbsup:',
      ':thumbsdown:',
      ':undecided:',
      ':nervous:',
      ':worried:',
      ':scaredblue:',
      ':stop:',
      ':despair:',
      ':angel:',
      'devilish',
      ':vampire:',
      ':blushing:',
      ':lustful:',
      ':inlove:',
      ':kiss:',
      ':flower:',
      ':radioactive:',
      ':ill:',
      ':tongue:',
      ':mean:',
      ':lipsrsealed:',
      ':bequiet:',
      ':pirate:',
      ':clown:',
      ':mouse:',
      ':bull:',
      ':cow:',
      ':pig:',
      ':bandaged:',
      ':dead:',
      ':biohazard:',
      ':creeper:',
      ':grab:',
      ':banghead:',
      ':lmaoslap:',
      ':spitcoffe:',
      ':lols:',
      ':rofl:'
    ),

Find
   // Defines the list of emoticon files associated with the emoticon codes:
   emoticonFiles: new Array(
      'smile.png',
      'sad.png',
      'wink.png',
      'razz.png',
      'grin.png',
      'plain.png',
      'surprise.png',
      'confused.png',
      'glasses.png',
      'eek.png',
      'cool.png',
      'smile-big.png',
      'crying.png',
      'kiss.png',
      'angel.png',
      'devilish.png',
      'monkey.png',
      'idea.png',
      'important.png',
      'help.png',
      'error.png',
      'warning.png',
      'favorite.png'
   ),

Replace with
   // Defines the list of emoticon files associated with the emoticon codes:
   emoticonFiles: new Array(
      'smile.gif',
      'sad.gif',
      'cry.gif',
      'wink.gif',
      'winktongue.gif',
      'grin.gif',
      'cheesy.gif',
      'wave.gif',
      'sleeping.gif',
      'whistle.gif',
      'idea.gif',
      'unhappy.gif',
      'resigned.gif',
      'surprised.gif',
      'angry.gif',
      'angry2.gif',
      'eek.gif',
      'cool.gif',
      'headphones.gif',
      'onthephone.gif',
      'applause.gif',
      'money.gif',
      'thumbsup.gif',
      'thumbsdown.gif',
      'undecided.gif',
      'nervous.gif',
      'worried.gif',
      'scaredblue.gif',
      'stop.gif',
      'despair.gif',
      'angel.gif',
      'devilish.gif',
      'vampire.gif',
      'blushing.gif',
      'lustful.gif',
      'inlove.gif',
      'kiss.gif',
      'flower.gif',
      'radioactive.gif',
      'ill.gif',
      'tongue.gif',
      'mean.gif',
      'lipsrsealed.gif',
      'bequiet.gif',
      'pirate.gif',
      'clown.gif',
      'mouse.gif',
      'bull.gif',
      'cow.gif',
      'pig.gif',
      'bandaged.gif',
      'dead.gif',
      'biohazard.gif',
      'creeper.gif',
      'grab.gif',
      'banghead.gif',
      'lmaoslap.gif',
      'spitcoffe.gif',
      'lols.gif',
      'rofl.gif'
   ),


   
Upload positions.css to yourforum/chat/css/
Upload shoutbox.css to yourforum/chat/css/
Upload loggedIn.html to yourforum/chat/lib/template/
Upload shoutbox.html to yourforum/chat/lib/template/
Upload config.js to yourforum/chat/js/ (only if you have not made any previous edit, otherwise to the edits above).

PLEASE NOTE: If you DO NOT have your Shoutbox and ChatRoom Intergrated then you must also
Upload shoutbox.css to yourforum/shoutbox/css/
Upload shoutbox.html to yourforum/shoutbox/lib/template/
Upload config.js to yourforum/shoutbox/js/ (only if you have not made any previous edit, otherwise to the edits above).
Unzip and upload the smileys to yourforum/shoutbox/img/emoticons/


The attatched zip file has over 60 Smileys. Unzip the file and upload them to chat/img/emoticons. Some will overwrite what is already there but these are better anyway :-)
You can add or change Smileys by uploading your own Smileys and making the edits to chat/js/config.js. It's important make sure the the input code is in the same order as the image file. Also make sure that the last array DOES NOT have a comma.

Have fun. ;)

Hi,
I am unable to find the text to replace in the theme's index.template file. What can I do?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 14, 2009, 07:34:07 PM
@ Hagbard_Celine
This was for AJAX Chat 3.0 we are now at 3.2

QuoteMAKING SMILEYS POPUP in your Chat Room and ShoutBox for AJAX Chat Intergration 3.0 is here(https://www.simplemachines.org/community/Smileys/simple/cheesy.gif)

I'm currently workin on the edits for 3.2 the Mod has been totally recoded and it will take some time.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 14, 2009, 07:35:20 PM
Quote from: sombra on July 13, 2009, 09:26:03 PM
sorry i know and its a great mod but im felling to be ignored hehehe
yes i have pretty url on my site and my url is on my signature
and thanks againt for the reply and help
already did this and nothing
QuoteI added this piece of code to the SMF htaccess file
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
I added under the actions set of rules.  Everything works perfectly now.  If anyone else has a problem like mine feel free to shoot me a note and I'll help out.

You're all set....someone renamed miniShoutbox.html to Shoutbox.html so that's why you didn't have any smileys, the miniShoutbox.html will be used for a portal block in the future.

Anyway I upload the Shoutbox.html for you and it seems to be workin just fine.

Enjoy the Mod.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 14, 2009, 07:38:13 PM
Quote from: IslandDahl on July 14, 2009, 06:16:38 PM
Quote from: mrtrc266 on July 13, 2009, 08:16:45 PM
Quote from: IslandDahl on July 13, 2009, 03:17:13 PM
I'm still getting the same screen.

Uhg, do you have anything in your .htaccess file?

lol yeah I know it can be frustrating but trust me you're doing a great job. Meanwhile, I don't think there's anything in my .htaccess file....rather I don't know how to access it.

Create temp account w/ Admin permissions on your forum and create a temp FTP account. PM me the details and I'll take a look.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 14, 2009, 07:39:50 PM
Quote from: primetime on July 14, 2009, 06:50:51 PM
Is there any future enhancement planned to integrate highslide or lightbox in the chat that can be used with a bbcode?

Not sure, but I doubt Hunter has plans for that.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: sombra on July 14, 2009, 07:41:22 PM
thanks men for fixing the shoutbox y apresiate the great work you did with this mod :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 14, 2009, 07:45:14 PM
Quote from: sombra on July 14, 2009, 07:41:22 PM
thanks men for fixing the shoutbox y apresiate the great work you did with this mod :D

You're welcome, enjoy :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: IslandDahl on July 14, 2009, 09:28:43 PM
Quote from: mrtrc266 on July 14, 2009, 07:38:13 PM
Quote from: IslandDahl on July 14, 2009, 06:16:38 PM
Quote from: mrtrc266 on July 13, 2009, 08:16:45 PM
Quote from: IslandDahl on July 13, 2009, 03:17:13 PM
I'm still getting the same screen.

Uhg, do you have anything in your .htaccess file?

lol yeah I know it can be frustrating but trust me you're doing a great job. Meanwhile, I don't think there's anything in my .htaccess file....rather I don't know how to access it.

Create temp account w/ Admin permissions on your forum and create a temp FTP account. PM me the details and I'll take a look.

Done.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 14, 2009, 11:57:10 PM
Quote from: IslandDahl on July 14, 2009, 09:28:43 PM
Quote from: mrtrc266 on July 14, 2009, 07:38:13 PM
Quote from: IslandDahl on July 14, 2009, 06:16:38 PM
Quote from: mrtrc266 on July 13, 2009, 08:16:45 PM
Quote from: IslandDahl on July 13, 2009, 03:17:13 PM
I'm still getting the same screen.

Uhg, do you have anything in your .htaccess file?

lol yeah I know it can be frustrating but trust me you're doing a great job. Meanwhile, I don't think there's anything in my .htaccess file....rather I don't know how to access it.

Create temp account w/ Admin permissions on your forum and create a temp FTP account. PM me the details and I'll take a look.

Done.

And the URL to your site LOL  :P
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Hagbard_Celine on July 15, 2009, 09:21:24 AM
Quote from: mrtrc266 on July 14, 2009, 07:34:07 PM
@ Hagbard_Celine
This was for AJAX Chat 3.0 we are now at 3.2

QuoteMAKING SMILEYS POPUP in your Chat Room and ShoutBox for AJAX Chat Intergration 3.0 is here(https://www.simplemachines.org/community/Smileys/simple/cheesy.gif)

I'm currently workin on the edits for 3.2 the Mod has been totally recoded and it will take some time.

Thanks.

Is there any way to disable the roll dice facility?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DonnaMarie on July 15, 2009, 04:09:03 PM
I am getting in the shoutbox the connection error 500 and the chat is not showing up at all. If anyone can help me, please PM me. I am really not tech savy and do not know what to do next.. I have read a lot of the things on here but not sure what to do next.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 15, 2009, 05:51:48 PM
Quote from: DonnaMarie on July 15, 2009, 04:09:03 PM
I am getting in the shoutbox the connection error 500 and the chat is not showing up at all. If anyone can help me, please PM me. I am really not tech savy and do not know what to do next.. I have read a lot of the things on here but not sure what to do next.

If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

This can be done either via ftp or the server control panel.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: evolution25 on July 15, 2009, 07:30:43 PM
i installed this and i got a error on smf 2.0 RC1-1 Warning: require(/home/*/public_html/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/*/public_html/chat/index.php on line 17

Fatal error: require() [function.require]: Failed opening required '/home/*/public_html/chat/lib/custom.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*/public_html/chat/index.php on line 17 what i get when click chat

when i look other things i get
Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/*/public_html/Sources/ManageSettings.php on line 567
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DonnaMarie on July 15, 2009, 07:37:18 PM
Quote from: TheListener on July 15, 2009, 05:51:48 PM
Quote from: DonnaMarie on July 15, 2009, 04:09:03 PM
I am getting in the shoutbox the connection error 500 and the chat is not showing up at all. If anyone can help me, please PM me. I am really not tech savy and do not know what to do next.. I have read a lot of the things on here but not sure what to do next.

If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

This can be done either via ftp or the server control panel.

okay I changed permissions and still same error.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 15, 2009, 07:40:53 PM
Will have to leave you in the capable hands of mrtrc266. Sorry it didn't work.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DonnaMarie on July 15, 2009, 07:46:21 PM
no worries TheListener thanks for the help, I am prob doing something wrong.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: dharma77 on July 15, 2009, 08:11:38 PM
Hi I need help, my chat freezen very ofent, my user lost focus and not refresh the conversation, there is a way to increase the performer or a solution for that problem I don't like the socket conection because is not complatible with all user, maybe there is a congif to increase the performer or change some fuction, can help me please ?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 15, 2009, 10:22:00 PM
Hi all, I just installed this mod and it said that the installation was successful and I activated it and all that. The thing is that I can't see any chat button or options for it in admin. Can someone please tell me what I should be doing next or where to look.?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DonnaMarie on July 16, 2009, 12:15:26 AM
Thanks for help! I got mine. I see the chat button in main theme. Trying to figure out how to add to my theme now.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DonnaMarie on July 16, 2009, 09:21:32 AM
Will this work with the new 1.1.10 ?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Chaos Dragon on July 16, 2009, 11:03:10 AM
Yes it will work on 1.1.10. I have it installed on that version also....
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 16, 2009, 11:34:17 AM
Quote from: dharma77 on July 15, 2009, 08:11:38 PM
Hi I need help, my chat freezen very ofent, my user lost focus and not refresh the conversation, there is a way to increase the performer or a solution for that problem I don't like the socket conection because is not complatible with all user, maybe there is a congif to increase the performer or change some fuction, can help me please ?

Most of the setting are in the /chat/lib/config.php file and chat/js/ folder. Also the creators of AJAX Chat might have some information and changing some core functions http://sourceforge.net/projects/ajax-chat/support (http://sourceforge.net/projects/ajax-chat/support)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 16, 2009, 11:36:00 AM
Quote from: ScottDB on July 15, 2009, 10:22:00 PM
Hi all, I just installed this mod and it said that the installation was successful and I activated it and all that. The thing is that I can't see any chat button or options for it in admin. Can someone please tell me what I should be doing next or where to look.?

This will show you where the Admin Settings are and help get the button to show if you are using a custom theme
~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 16, 2009, 11:37:00 AM
Quote from: DonnaMarie on July 16, 2009, 12:15:26 AM
Thanks for help! I got mine. I see the chat button in main theme. Trying to figure out how to add to my theme now.

Please attatch your /Themes/youtheme/index.template.php file
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DilSe on July 16, 2009, 11:51:52 AM
hello to all plz help me anybody

I want to install AjaxChat Integration_3.2.zip
but when I upload and click Apply hi said remove old but I don't have old
I remove old from my packages but he show on index just for admin's how
do I can remove properly..

and l try with  Package parser    for uninstall but I don't find any replace file..
plz help
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 16, 2009, 12:46:59 PM
@ IslandDahl (http://www.simplemachines.org/community/index.php?action=profile;u=216019) I've been looking at your site and it seems like everything is fine. I have to get to work soon and will do some digging around on SourceForge to see what I can find. Thank you for your patience.

@ Hanzalah

I'm not sure exaclty what you mean, I think you are referring to the reamme portion of the install. Do you get any failed errors on any files when you click "Apply"?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DilSe on July 16, 2009, 01:03:52 PM
sir when i click "Apply: i get this massage.

Apply Mod
This package is already installed, and no upgrade was found!

You should uninstall the old version first to avoid problems, or ask the author to create an upgrade from your old version.

Please remember to always make regular backups of your sources and database before installing mods, especially beta versions. 


Install Actions
Installations actions for "AjaxChat Integration":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 


and shout box show on my index just this and just for admins all members nothing show plz se this pic
Title: Re: AjaxChat Integration (3.2 Released)
Post by: IslandDahl on July 16, 2009, 01:14:36 PM
Quote from: mrtrc266 on July 16, 2009, 12:46:59 PM
@ IslandDahl (http://www.simplemachines.org/community/index.php?action=profile;u=216019) I've been looking at your site and it seems like everything is fine. I have to get to work soon and will do some digging around on SourceForge to see what I can find. Thank you for your patience.

Oh wow! Thank you so much mrtrc266. Do you still need the temporary account?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 16, 2009, 01:21:11 PM
Quote from: IslandDahl on July 16, 2009, 01:14:36 PM
Quote from: mrtrc266 on July 16, 2009, 12:46:59 PM
@ IslandDahl (http://www.simplemachines.org/community/index.php?action=profile;u=216019) I've been looking at your site and it seems like everything is fine. I have to get to work soon and will do some digging around on SourceForge to see what I can find. Thank you for your patience.

Oh wow! Thank you so much mrtrc266. Do you still need the temporary account?

Yeah, leave the temp account available till I get this figured out, I will mess with it some more when I get some more time.

@ Hanzalah switch to your default theme and see what it looks like, the reason only your admins can see it is because you probably have the permission set for only admins
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DilSe on July 16, 2009, 01:31:07 PM
ok sir i have to chaeck  switch to your default theme .
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DonnaMarie on July 16, 2009, 01:39:07 PM
Quote from: mrtrc266 on July 16, 2009, 11:37:00 AM
Quote from: DonnaMarie on July 16, 2009, 12:15:26 AM
Thanks for help! I got mine. I see the chat button in main theme. Trying to figure out how to add to my theme now.

Please attatch your /Themes/youtheme/index.template.php file
I am a noob lol how do I do this?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 16, 2009, 02:15:24 PM
I looked in my features and options and there is nothing there for chat. I had the same problem with ultimate profile and it had to do something with my language files. I just noticed that I am getting the following error message though:

Unable to load the 'Shout.english-utf8' language file.
?action=featuresettings

I know the ultimate profile fix was an easy one. Hope this is as well.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: devnl on July 17, 2009, 05:11:26 PM
Hi, I installed this mod in my forum instance, which is a dutch version of a custom theme based on the default. Problem I'm having though is that after I've installed it it does show up on the home page, but it's the only thing that shows. All the boards have dissappeared from the frontpage and so has the part with the forum statistics and online users. What has happened here? And what am I doing wrong? I'd love to use this mod because it looks exactly like what I would need.

I'm using SMF2 RC1-2.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ade9ja on July 18, 2009, 01:37:50 AM
hello house, as a webmaster using smf version 1.1.9 on my forum and in order to optimize it for blogging i downloaded and installed the Ajax chat mod but i can,t see the button neither is it functioning on my themes i am using the default theme, please help.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Mucker_Elmo on July 18, 2009, 01:43:16 AM
I'm having some of the same problems I've seen described here. I tried applying the mod (latest version) after I'd upgraded to 1.1.10, and got a message that it wasn't compatible. So, I went back to 1.1.9 just to see what would happen and I was able to install it successfully. But the chat button did not appear, and I saw nothing related to chat on the features and options board. When I tried to uninstall, I got a message that I couldn't because files were missing. I deleted the mod from my server, downloaded it again from here and tried to re-install. But I got a message that it was already installed "and no upgrade was found." My board is at panthanpress.com/muckers
Title: Re: AjaxChat Integration (3.2 Released)
Post by: .HuNTeR. on July 18, 2009, 01:52:31 AM
@Owdy
QuoteAnother thing, i installed stanalone Ajaxchat before. In that, table names was like "ajax_chat_online", in this version they are like "ajaxchat_online". Does anybody know why?
i changed them to respect the smf prefix and also shoutbox need same tables and and  i changed their name

QuoteHuge bug in permissions. Why guest can log in chat? I havent allowed them in permissions. They see chat button aswell...
will fix very soon
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DilSe on July 18, 2009, 02:08:54 AM
Quote from: mrtrc266 on July 16, 2009, 01:21:11 PM

@ Hanzalah switch to your default theme and see what it looks like, the reason only your admins can see it is because you probably have the permission set for only admins



hello sir i check everthing and it's coming but don't properly .. if you don't maind plz click and see what i mean
Click  (http://pakiht.com/SMF/index.php)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 18, 2009, 09:41:37 AM
Quote from: ScottDB on July 16, 2009, 02:15:24 PM
I looked in my features and options and there is nothing there for chat. I had the same problem with ultimate profile and it had to do something with my language files. I just noticed that I am getting the following error message though:

Unable to load the 'Shout.english-utf8' language file.
?action=featuresettings

I know the ultimate profile fix was an easy one. Hope this is as well.

Find  /Themes/default/languages/Shout.english.php and rename it to Shout.english-utf8.php
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 18, 2009, 09:49:23 AM
Quote from: devnl on July 17, 2009, 05:11:26 PM
Hi, I installed this mod in my forum instance, which is a dutch version of a custom theme based on the default. Problem I'm having though is that after I've installed it it does show up on the home page, but it's the only thing that shows. All the boards have dissappeared from the frontpage and so has the part with the forum statistics and online users. What has happened here? And what am I doing wrong? I'd love to use this mod because it looks exactly like what I would need.

I'm using SMF2 RC1-2.

Switch to the actual default theme and see what it looks like, see if it's a theme problem.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 18, 2009, 09:51:31 AM
Quote from: ade9ja on July 18, 2009, 01:37:50 AM
hello house, as a webmaster using smf version 1.1.9 on my forum and in order to optimize it for blogging i downloaded and installed the Ajax chat mod but i can,t see the button neither is it functioning on my themes i am using the default theme, please help.

Is your forum set to UTF-8? I can see the gap where the Chat Button is supposed to be on your site....try this if you have it set to UTF-8

Find  /Themes/default/languages/Shout.english.php and rename it to Shout.english-utf8.php
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 18, 2009, 09:53:22 AM
Quote from: Mucker_Elmo on July 18, 2009, 01:43:16 AM
I'm having some of the same problems I've seen described here. I tried applying the mod (latest version) after I'd upgraded to 1.1.10, and got a message that it wasn't compatible. So, I went back to 1.1.9 just to see what would happen and I was able to install it successfully. But the chat button did not appear, and I saw nothing related to chat on the features and options board. When I tried to uninstall, I got a message that I couldn't because files were missing. I deleted the mod from my server, downloaded it again from here and tried to re-install. But I got a message that it was already installed "and no upgrade was found." My board is at panthanpress.com/muckers

Using a Package Parser  (http://resourcez.biz/PackageParser/)manually edit all the files for unintalling and try reinstalling again.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 18, 2009, 09:55:04 AM
Quote from: Hanzalah on July 18, 2009, 02:08:54 AM
Quote from: mrtrc266 on July 16, 2009, 01:21:11 PM

@ Hanzalah switch to your default theme and see what it looks like, the reason only your admins can see it is because you probably have the permission set for only admins



hello sir i check everthing and it's coming but don't properly .. if you don't maind plz click and see what i mean
Click  (http://pakiht.com/SMF/index.php)

Sorry if I missed it but what happened when you switched to the default theme?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bradster on July 18, 2009, 12:17:24 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I am running 1.1.10. I read the last few posts and someone said it was compatible with this version of SMF. Anyone know what's wrong?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 18, 2009, 12:45:19 PM
Thanks for the help. I should have tried that. Same thing I had to do for the ultimate profile. Well I guess I'm learning. I got the 500 mesage and fixed that as well.

I'm not sure how this shout and chat is supposed to work. Is there supposed to be a separate button for chat. I have the shoutbox working but I don't see anything for chat. Have tried it with and without the two being integrated by option in features and options. No change.

Also wondering if the shoutbox can easily be changed to the bottom of the page somewhere and if the background color can be changed from white.

Title: Re: AjaxChat Integration (3.2 Released)
Post by: nwobhm on July 19, 2009, 02:56:55 AM
I am using this ajaxchat integration on my website and forum and I'm also using simpleportal. Is there a way that i can set a shoutbox into frontpage of my forum?

I'm not sure if I should ask about this in the simpleportal support thread or in here.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: LC on July 19, 2009, 03:52:02 AM
Quote from: nwobhm on July 19, 2009, 02:56:55 AM
I am using this ajaxchat integration on my website and forum and I'm also using simpleportal. Is there a way that i can set a shoutbox into frontpage of my forum?

I'm not sure if I should ask about this in the simpleportal support thread or in here.

Best thing I found  to do is enable the AJAX shoutbox (if you haven't yet) and then ensure everyone you want to see the shoutbox is enabled in member permissions. Then use the custom phpcode box from the simpleportal add box feature. (Also found in the Admin control panel) 

Put this code in that box
<?php
global $txt,$context,$boarddir;

//Ajax Chat | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir '/chat/lib/'))
{
if (allowedTo('shout_access')){
echo'
<div id="ShoutBox">
'
getShoutBoxContent() ,'
</div>'
;
}
}
?>


I just finished this a few minutes ago, I got that code from the simple portal forum. :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: philcross on July 19, 2009, 04:01:01 AM

Ive given up on trying to get this Mod working correctly and uninstalled/deleted it.

However, whilst looking at my index.template.php I found this code still there.

I take it I should remove from the top bit, but exactly which point do I stop deleting the code - all the }}} are confusing me.

Quote
   //shoutBox
   if (!empty($modSettings['enableShoutBox'])){
      if (allowedTo('shout_access')){
         // We'll have to use the cookie to remember the shoutBox header...
         if ($context['user']['is_guest'])
            $options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);
            
         echo '
      <script language="JavaScript" type="text/javascript">
         var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

         function ajax_shoutBox_collapse(mode)
         {';

         if ($context['user']['is_guest'])
            echo '
            document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
         else
            echo '
            smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

         echo '
            document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("ShoutBox").style.display = mode ? "none" : "";

            sb_current_header = mode;
            }
      </script>';

         if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
            echo'
      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
         ', getShoutBoxContent() ,'
         </div>
      </div>';
         }
      }
   }

   // Begin Simple Ad Rotator - Top Ad

Thanks
Title: Re: AjaxChat Integration (3.2 Released)
Post by: nwobhm on July 19, 2009, 05:34:59 AM
Quote from: LadyChaos on July 19, 2009, 03:52:02 AM

Best thing I found  to do is enable the AJAX shoutbox (if you haven't yet) and then ensure everyone you want to see the shoutbox is enabled in member permissions. Then use the custom phpcode box from the simpleportal add box feature. (Also found in the Admin control panel) 

Put this code in that box

I just finished this a few minutes ago, I got that code from the simple portal forum. :)
Thanks! Worked like charm :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: LC on July 19, 2009, 05:49:26 AM
Quote from: nwobhm on July 19, 2009, 05:34:59 AM
Quote from: LadyChaos on July 19, 2009, 03:52:02 AM

Best thing I found  to do is enable the AJAX shoutbox (if you haven't yet) and then ensure everyone you want to see the shoutbox is enabled in member permissions. Then use the custom phpcode box from the simpleportal add box feature. (Also found in the Admin control panel) 

Put this code in that box

I just finished this a few minutes ago, I got that code from the simple portal forum. :)
Thanks! Worked like charm :)
Glad I could help! :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Mraza on July 19, 2009, 05:52:58 AM
hi i install version 3.2 on a custom theme but the porblem is it working ok for default theme but when i will switch to my custom theme i am getting this error in my shoutbox "ChatBot: Error: Connection status: 0" any help thanks

Edit: ok i found the fix in your signature...thanks
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 20, 2009, 12:14:53 AM
Quote from: TheListener on July 13, 2009, 08:25:48 PM
Keep getting this error in the chat pop up and error log.

Notice: Use of undefined constant count - assumed 'count'

Sources/Subs.php on line 3894

Notice: Use of undefined constant chatOnlineUsers - assumed 'chatOnlineUsers'

Sources/Subs.php on line 3894

Also keep getting the same error in the error log.

Your chat is fixed. I found some of the same edits in your files as many as 3 times. Looks like it was not uninstalled completely and reinstalled a few times without cleaning it up first.
Title: Re: AjaxChat Integration
Post by: mrtrc266 on July 20, 2009, 01:44:16 AM
Phil I though you got it sorted a long time ago?

Quote from: mrtrc266 on June 09, 2009, 02:47:11 PM
LOL, glad you got it sorted Phil. Good job! :D
Title: Re: AjaxChat Integration (3.2 Released)
Post by: philcross on July 20, 2009, 01:54:03 AM
Hello mrtrc266

I did - then it went belly up.

I can click on Chat and a new window opens, but nothing happens if I type and press enter - it just stays as a blank page.

This all happened after latest SMF release I think.

I removed my heavily modded version of Chat and re-installed full version in the hope of sorting it, but no good.

So, Im trying to remove all reference to chat/shoutbox so I can (maybe) try a full install of Mod again.

I "thought" it would all go when using uninstall but obviously some is still there.

Will http://resourcez.biz/PackageParser/index.php tell me everything that should have gone?

Phil
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DilSe on July 20, 2009, 02:54:59 AM
sir it's show but when write anything nothing heppend just show blank.... :(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Jarppi on July 20, 2009, 10:23:01 AM
When this mod will be available for 1.1.10 ?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 20, 2009, 10:40:58 AM
Quote from: Jarppi on July 20, 2009, 10:23:01 AM
When this mod will be available for 1.1.10 ?

Already is.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Jarppi on July 20, 2009, 12:38:57 PM
Quote from: TheListener on July 20, 2009, 10:40:58 AM
Quote from: Jarppi on July 20, 2009, 10:23:01 AM
When this mod will be available for 1.1.10 ?

Already is.

In 3.2 version details says.
Compatible With: 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9, 2.0 RC1, 2.0 RC1-1
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 20, 2009, 12:43:08 PM
Hmm My apologies.

Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 20, 2009, 12:59:53 PM
@ Phil, yes the Package Parser will show you all the edit to change or remove for the entire mod.

@Jarpi
Unzip the AJAX Chat Intergration zip file that you downloaded.

Open package-info.xml
Find
<install for="1.1.6-1.1.9">

Replace with
<install for="1.1.6-1.99.99">

Then rezip it and installed the Mod via the Package Manager
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 20, 2009, 01:05:22 PM
Quote from: Hanzalah on July 20, 2009, 02:54:59 AM
sir it's show but when write anything nothing heppend just show blank.... :(

What other Mods do you have installed?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Jarppi on July 20, 2009, 01:28:25 PM
It still gives error like this:
Installations actions for "AjaxChat Integration":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

And I only changed code according your instructions ?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 20, 2009, 01:56:25 PM
Quote from: Jarppi on July 20, 2009, 01:28:25 PM
It still gives error like this:
Installations actions for "AjaxChat Integration":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

And I only changed code according your instructions ?

Did you delete the old one from you package list? If not, delete it, then try installing the one you edited.

If that still doesn't work try changing it to just this.
<install for="1.1.6-1.1.10">
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Jarppi on July 20, 2009, 02:23:50 PM
Quote from: mrtrc266 on July 20, 2009, 01:56:25 PM
Quote from: Jarppi on July 20, 2009, 01:28:25 PM
It still gives error like this:
Installations actions for "AjaxChat Integration":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

And I only changed code according your instructions ?

Did you delete the old one from you package list? If not, delete it, then try installing the one you edited.

If that still doesn't work try changing it to just this.
<install for="1.1.6-1.1.10">

I deleted package and changed to this <install for="1.1.6-1.1.10">
But still gives same error ?
This is tricky...

I had this mod worknig with 1.1.9 version.
What I did was, I upgraded from 1.1.9 to 1.1.10 and then whole mod disaperad.
And now I´m trying to re-install it.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 20, 2009, 02:35:08 PM
Did you manually uninstall the chat, cuz if you didn't and this get's installed twice it could mess things up.

If you want create a temp admin account on your site and PM me the details...I'll take a look.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 20, 2009, 05:25:19 PM

Thanks for the help. I should have tried that. Same thing I had to do for the ultimate profile. Well I guess I'm learning. I got the 500 mesage and fixed that as well.

I'm not sure how this shout and chat is supposed to work. Is there supposed to be a separate button for chat. I have the shoutbox working but I don't see anything for chat. Have tried it with and without the two being integrated by option in features and options. No change.

Also wondering if the shoutbox can easily be changed to the bottom of the page somewhere and if the background color can be changed from white.




Just bumpin this post
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 20, 2009, 06:48:48 PM
Quote from: ScottDB on July 20, 2009, 05:25:19 PM

Thanks for the help. I should have tried that. Same thing I had to do for the ultimate profile. Well I guess I'm learning. I got the 500 mesage and fixed that as well.

I'm not sure how this shout and chat is supposed to work. Is there supposed to be a separate button for chat. I have the shoutbox working but I don't see anything for chat. Have tried it with and without the two being integrated by option in features and options. No change.

Also wondering if the shoutbox can easily be changed to the bottom of the page somewhere and if the background color can be changed from white.




Just bumpin this post

What Version of SMF are you using
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bp31 on July 21, 2009, 12:45:21 AM
Quote from: Owdy on July 17, 2009, 08:57:45 AM
Huge bug in permissions. Why guest can log in chat? I havent allowed them in permissions. They see chat button aswell...

edit: okay $config['allowGuestLogins'] = false; fixes that login problem, but how can i hide that chat button from guest?
Hi,
I had the same problem. I am in the process of setting up a forum and I certainly don't want unregistered guests going to the chat. You mention a file to edit ... which one is it?

I can live with guests seeing the chat button for now, but if there is a way to not let see it, that would be nice.

Thanks!
-- Ed
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Jarppi on July 21, 2009, 03:40:57 AM
Quote from: mrtrc266 on July 20, 2009, 02:35:08 PM
Did you manually uninstall the chat, cuz if you didn't and this get's installed twice it could mess things up.

If you want create a temp admin account on your site and PM me the details...I'll take a look.
I didn't  uninstall it manually. So that could mess it up.
How I can manually remove all ajax chat code lines from SMF?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DilSe on July 21, 2009, 03:58:11 AM
Quote from: mrtrc266 on July 20, 2009, 01:05:22 PM
Quote from: Hanzalah on July 20, 2009, 02:54:59 AM
sir it's show but when write anything nothing heppend just show blank.... :(

What other Mods do you have installed?

i have have installed mod.


YouTube BBCode 2.4
Enhanced Quick Reply Box 2.0.2
Todays Birthday
Fix Message Empty Error For Embed Video Mods
Full Top 10 Stats
Border data on topic view
MCLegendII.2
New Style Message Icon
Crowns
Listen to Quran
Ultimate Profile
View IP
Member Awards
Age,Gender,Location on Registation
Auto Email Inactive Users
Top 10 Posters Today And This Week Stats
SMF Staff Page
ad mod.
AvatarOnBoard
Aligned and Bilateral Child Boards
User Control Panel By Alan S

Title: Re: AjaxChat Integration (3.2 Released)
Post by: bp31 on July 21, 2009, 07:32:53 AM
Quote from: Owdy on July 21, 2009, 06:15:00 AM
Quote from: bp31 on July 21, 2009, 12:45:21 AM
Quote from: Owdy on July 17, 2009, 08:57:45 AM
Huge bug in permissions. Why guest can log in chat? I havent allowed them in permissions. They see chat button aswell...

edit: okay $config['allowGuestLogins'] = false; fixes that login problem, but how can i hide that chat button from guest?
Hi,
I had the same problem. I am in the process of setting up a forum and I certainly don't want unregistered guests going to the chat. You mention a file to edit ... which one is it?

/chat/lib/config.php
// Enable/Disable guest logins:
$config['allowGuestLogins'] = false;


Quote
I can live with guests seeing the chat button for now, but if there is a way to not let see it, that would be nice.
What is your SMF version?
That would be 1.1.9.
Thanks!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 21, 2009, 09:41:58 AM
Quote from: Jarppi on July 21, 2009, 03:40:57 AM
Quote from: mrtrc266 on July 20, 2009, 02:35:08 PM
Did you manually uninstall the chat, cuz if you didn't and this get's installed twice it could mess things up.

If you want create a temp admin account on your site and PM me the details...I'll take a look.
I didn't  uninstall it manually. So that could mess it up.
How I can manually remove all ajax chat code lines from SMF?

Use a Package Parser (http://resourcez.biz/PackageParser/) for the uninstall. Once you upload the Mod to the Parser it should be pretty self explanitory, of course be sure to make backups of the files you'll be editing.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 21, 2009, 09:45:11 AM
Quote from: mrtrc266 on July 20, 2009, 06:48:48 PM
Quote from: ScottDB on July 20, 2009, 05:25:19 PM

Thanks for the help. I should have tried that. Same thing I had to do for the ultimate profile. Well I guess I'm learning. I got the 500 mesage and fixed that as well.

I'm not sure how this shout and chat is supposed to work. Is there supposed to be a separate button for chat. I have the shoutbox working but I don't see anything for chat. Have tried it with and without the two being integrated by option in features and options. No change.

Also wondering if the shoutbox can easily be changed to the bottom of the page somewhere and if the background color can be changed from white.




Just bumpin this post

What Version of SMF are you using

To relocate you shout box, follow this
http://www.simplemachines.org/community/index.php?topic=257973.msg2107351#msg2107351 (http://www.simplemachines.org/community/index.php?topic=257973.msg2107351#msg2107351)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 21, 2009, 09:47:05 AM
@ Hanzalah

Sending PM
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bp31 on July 21, 2009, 01:21:22 PM
Quote from: Owdy on July 17, 2009, 08:57:45 AM
/chat/lib/config.php
// Enable/Disable guest logins:
$config['allowGuestLogins'] = false;
Quote
I can live with guests seeing the chat button for now, but if there is a way to not let see it, that would be nice.
What is your SMF version?
I got the permissions thing working fine. As for the "chat" button not being seen by vistors, that's not urgent, but I would like to add to that:

If I change themes, the chat button is not visible at all. I am thinking aroung the holidays or Christmas Themes etc. Is there a fix I have to make for each theme?

As mentioned in my other post, I'm using SMF 1.1.9.

Thanks.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 21, 2009, 01:28:18 PM
Thanks for the help guys. I'm sure I can get it to work right now. That is after I reinstall it  ::) . I updated from 1.9 to 1.10 and the install option was not showing like the rest of the mods did afterwards. The mod is still there but only options are list files and delete. No install or uninstall. Have been seeing a lot of problems with deleting and reinstalling and wanted to know the best way to get this working again without a lot of problems.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Jarppi on July 21, 2009, 03:34:07 PM
Quote from: mrtrc266 on July 21, 2009, 09:41:58 AM
Use a Package Parser (http://resourcez.biz/PackageParser/) for the uninstall. Once you upload the Mod to the Parser it should be pretty self explanitory, of course be sure to make backups of the files you'll be editing.

I followed all the steps in Package Parser, but still after that it gives me same error when I try to reinstall.

Is anyone else using this mod successfully with 1.1.10 version ???
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 21, 2009, 03:49:45 PM
When I read your post I figured out that I needed to use the package parser but when I clicked on the link and looked for my version the 1.1.10 version isn't listed there. It only goes to 1.1.9. Before I use it could this be a problem? Also if this is put out by SMF why isn't the 1.1.10 version added to it yet?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 21, 2009, 06:30:13 PM
Quote from: ScottDB on July 21, 2009, 03:49:45 PM
When I read your post I figured out that I needed to use the package parser but when I clicked on the link and looked for my version the 1.1.10 version isn't listed there. It only goes to 1.1.9. Before I use it could this be a problem? Also if this is put out by SMF why isn't the 1.1.10 version added to it yet?

You can use version 1.1.9 for the Package Parser, this mod works fine on 1.1.10 it's just that the package-info.xml file has not been updated.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: natefish on July 21, 2009, 07:51:17 PM
Your shoutbox rocks! Thanks for making it. I am enjoying it greatly.

I do have a couple of questions/suggestions for editing it. There is one thing I've seen in other shoutboxes that I really like and that is the following:

- When someone makes a new thread it will show in the shoutbox as "New topic posted: Insert link to topic here!"

- When someone replies to a thread it will say "New reply posted: Insert link to the reply here!"


Is that something that is doable? If I would like to add that functionality, how would I do that?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 21, 2009, 07:54:34 PM
Quote from: natefish on July 21, 2009, 07:51:17 PM
Your shoutbox rocks! Thanks for making it. I am enjoying it greatly.

I do have a couple of questions/suggestions for editing it. There is one thing I've seen in other shoutboxes that I really like and that is the following:

- When someone makes a new thread it will show in the shoutbox as "New topic posted: Insert link to topic here!"

- When someone replies to a thread it will say "New reply posted: Insert link to the reply here!"


Is that something that is doable? If I would like to add that functionality, how would I do that?

Yes it can be done.  Just follow the link.

http://www.empireofthesun.net/forum/index.php?topic=4578.msg6890#msg6890
Title: Re: AjaxChat Integration (3.2 Released)
Post by: natefish on July 21, 2009, 08:04:01 PM
Great thanks!

One other thing I'm running into is that it doesn't seem to post everything that everyone says. Sometimes when you try to shout it just does nothing at all.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 22, 2009, 01:34:50 AM
Trying to load manualy using the Package Parser. Got most of the way thruough it until it wants to edit  $boarddir (http://resourcez.biz/PackageParser/variables.htm)/SSI.php. Can't find it. Will go on with the rest but can someone let me know where this is?

just noticed in my  $themedir (http://resourcez.biz/PackageParser/variables.htm)/index.template.php I cant find

     // But, let's always show minutes - Time wasted here: 0 minutes.
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }


OK found another one. In $languagedir (http://resourcez.biz/PackageParser/variables.htm)/Modifications.english.php the only one I have is the one with php~ on the end. I'm new but I don't think that is the same file?

Ok last one. I've gone all the way through it and last one is parser wants Help.persian.php and I have -utf8.php.

As you can tell I'm a newbie but I'm learning lot's. Support here is great compared to other sites.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: MaXiMiUS on July 22, 2009, 08:47:09 AM
Two things I'm curious about:

1. How can I make the shouts start at the bottom and work their way up?

2. How can I increase the duration of the shouts? They're disappearing too fast for what I'm using them for.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 22, 2009, 10:21:50 AM
Quote from: ScottDB on July 22, 2009, 01:34:50 AM
Trying to load manualy using the Package Parser. Got most of the way thruough it until it wants to edit  $boarddir (http://resourcez.biz/PackageParser/variables.htm)/SSI.php. Can't find it. Will go on with the rest but can someone let me know where this is?

just noticed in my  $themedir (http://resourcez.biz/PackageParser/variables.htm)/index.template.php I cant find

     // But, let's always show minutes - Time wasted here: 0 minutes.
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }


OK found another one. In $languagedir (http://resourcez.biz/PackageParser/variables.htm)/Modifications.english.php the only one I have is the one with php~ on the end. I'm new but I don't think that is the same file?

Ok last one. I've gone all the way through it and last one is parser wants Help.persian.php and I have -utf8.php.

As you can tell I'm a newbie but I'm learning lot's. Support here is great compared to other sites.

Your SSI.php file is in the root directory of your forum /SSI.php

Any file that ends with a ~ is a backup that was created by SMF after the last od you installed. That's odd though that you don't have a modifications.english.php file. Just make a copy of the one with the ~ and then remove the ~ from one of them.

Or if you have your forum set to UTF-8 then you should see Modifications.english-utf8.php if that's the case then whatever the Parser says to add to the Modifications.english.php add it the the Modifications.english-utf8.php instead

Regarding the edit for

     // But, let's always show minutes - Time wasted here: 0 minutes.
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }


This will add the total # of users in chat on the top of you forum right by your user info, not all themes have this, nor will all code be the same in every theme...just search for 'total_time_logged_in' or one of the other parts of that code and see if you can get close, this is not required in order for the Mod to work....you will have Total # of users in chat in 2 other spots on your forum as well.

Hope that helps.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 22, 2009, 10:24:28 AM
Quote from: MaXiMiUS on July 22, 2009, 08:47:09 AM
Two things I'm curious about:

1. How can I make the shouts start at the bottom and work their way up?

2. How can I increase the duration of the shouts? They're disappearing too fast for what I'm using them for.

Not sure about reversing the scoll, but for the # of messages it's in your /chat/lib/config.php file as well as many other settings posted here ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 22, 2009, 10:29:07 AM
Keep getting this error in the logs.

Undefined index: chat
Sources/Subs.php  Line: 3884

Line 3884 is:  $chatButton = $txt['chat'];


Title: Re: AjaxChat Integration (3.2 Released)
Post by: AzorMachine on July 22, 2009, 11:22:35 AM
Hi ^^
First of all, congratulations for the great MOD =D

Now let me ask :

What file i need to edit, to make just one theme available, and just two languages availabe. And how can I add a banner to the chat page?

Best Regards

Title: Re: AjaxChat Integration (3.2 Released)
Post by: tfs on July 22, 2009, 11:24:27 AM
Quote from: TheListener on July 22, 2009, 10:29:07 AM
Keep getting this error in the logs.

Undefined index: chat
Sources/Subs.php  Line: 3884

Line 3884 is:  $chatButton = $txt['chat'];

Same here, for a long time now.  Haven't gotten an answer yet.  BTW, my line number is different (3734), but it's the same line of code as yours.  You've got 150 lines of code (from other mods) that I don't have.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Jarppi on July 22, 2009, 01:34:13 PM
I finally got this working with 1.1.10 environment, but I did manual installation.

Then there is another problem which has been all the time when I had this Ajax in use.
How I can get Scandinavian letter in user name visible ?
If someone has username example like this "Päälystö"
Chat box shows it "Plyst"
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 22, 2009, 01:54:20 PM
I copied my modifications.English.php~file and uploaded it without the ~ on the end. It worked and I edited just like the parser said. One thing I was wondering about is in the file the only thing it had in it is <?php
// Version: 1.1; Modifications

Is this normal?

Also still could not find  $boarddir (http://resourcez.biz/PackageParser/variables.htm)/SSI.php. Searched the entire site. I can pm my ftp details if you would like to try and find it? Or is there a copy of this file that I can upload and what file do I upload to.

In trying to save the persian.php it says that the file contains characters in unicode format which will be lost if I save it as an ANSI text. Wants me to choose the unicode format from dropdown list. My notepad does not have this in the dropdown list. Is this file relay necessary for this to work? Don't really care if the forum can be read in Persian.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 22, 2009, 02:43:01 PM
Thanks everyone. I got it to work again. I'll check it out later and figure out how to put on the bottom of the page from the posts here.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: bp31 on July 22, 2009, 04:27:09 PM
Hi,

I have a question regarding Chat on SMF 1.1.9:

The list of available chat channels is the same as the list of forums.  How do I make the list of chat channels be independent of the forum list?

Thanks!
     -- Ed
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 23, 2009, 01:00:19 AM
Quote from: bp31 on July 22, 2009, 04:27:09 PM
Hi,

I have a question regarding Chat on SMF 1.1.9:

The list of available chat channels is the same as the list of forums.  How do I make the list of chat channels be independent of the forum list?

Thanks!
     -- Ed

Use the instructions outline here ~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) to use only certain boards as channels or even make custom channels
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 23, 2009, 01:02:12 AM
Quote from: ScottDB on July 22, 2009, 02:43:01 PM
Thanks everyone. I got it to work again. I'll check it out later and figure out how to put on the bottom of the page from the posts here.

Glad you got it sorted....you should be able to relocate your shoutbox by following the instructions here....
http://www.simplemachines.org/community/index.php?topic=257973.msg2107351#msg2107351 (http://www.simplemachines.org/community/index.php?topic=257973.msg2107351#msg2107351)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 23, 2009, 10:24:36 AM
I am trying to move the shout box to the bottom. In the instructions it says to replace your index.template.php and boardindex.template.php with original one. I am using the package parser for doing this and there is a boardindex.template in the themes and the source folder. Which one do I edit or is it both?

I take it the index.template is the root index.template
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 23, 2009, 10:56:43 AM
Quote from: ScottDB on July 23, 2009, 10:24:36 AM
I am trying to move the shout box to the bottom. In the instructions it says to replace your index.template.php and boardindex.template.php with original one. I am using the package parser for doing this and there is a boardindex.template in the themes and the source folder. Which one do I edit or is it both?

I take it the index.template is the root index.template

Sorry....disregard the replace you files with the original...I think that was just for that user.

Just do the edits to your /Sources/Load.php and /Themes/yourtheme/index.template.php files

Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 23, 2009, 11:09:57 AM
Thanks for the quick reply. Just trying to learn about how php works. You said to edit my  /Themes/yourtheme/index.template.php files. Why wouldn't I edit the themes/default/index.template.php? Will I have to do the edit for all my themes?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: natefish on July 23, 2009, 12:43:43 PM
Quote from: TheListener on July 21, 2009, 07:54:34 PM
Quote from: natefish on July 21, 2009, 07:51:17 PM
Your shoutbox rocks! Thanks for making it. I am enjoying it greatly.

I do have a couple of questions/suggestions for editing it. There is one thing I've seen in other shoutboxes that I really like and that is the following:

- When someone makes a new thread it will show in the shoutbox as "New topic posted: Insert link to topic here!"

- When someone replies to a thread it will say "New reply posted: Insert link to the reply here!"


Is that something that is doable? If I would like to add that functionality, how would I do that?

Yes it can be done.  Just follow the link.

http://www.empireofthesun.net/forum/index.php?topic=4578.msg6890#msg6890

This just doesn't work for me.

I changed the database table name to what it said then added the code into the Post.php file. What I get now, whenever I try to go to create a new post or reply is this:

Parse error: syntax error, unexpected T_ELSE in /home/natefish/public_html/forums/Sources/Post.php on line 2054

Line 2054 is directly below the New Reply Notification that I pasted in there. If I remove the New Reply Notification, I can post fine, but the New Post Notification isn't working.

Any thoughts?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: SuperZambezi on July 24, 2009, 11:26:41 AM
I have a few questions of my own :

1.) How can I increase the amount of shouts shown on the shoutbox? There only seems to be a limit of 10 only.

2.) Simple question. Where do i go to view the shoutbox history?

Thanks for any help and great mod btw.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: IslandDahl on July 24, 2009, 02:22:34 PM
Quote from: mrtrc266 on July 16, 2009, 01:21:11 PM
Quote from: IslandDahl on July 16, 2009, 01:14:36 PM
Quote from: mrtrc266 on July 16, 2009, 12:46:59 PM
@ IslandDahl (http://www.simplemachines.org/community/index.php?action=profile;u=216019) I've been looking at your site and it seems like everything is fine. I have to get to work soon and will do some digging around on SourceForge to see what I can find. Thank you for your patience.

Oh wow! Thank you so much mrtrc266. Do you still need the temporary account?

Yeah, leave the temp account available till I get this figured out, I will mess with it some more when I get some more time.

Any luck?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fiorello on July 24, 2009, 03:27:37 PM
Hello, it gives me "file corrupted" or some sort of it message. My version is 1.1.10 - what should i do?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ollie344 on July 24, 2009, 09:03:52 PM
right i am only a noob at this sort of thing but i installed ajax chat using the package manager and it installs and applies it sucessfully but the problem is how do i then access it? i apologise in advance websites arnt my strong point :(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 24, 2009, 09:33:21 PM
Quote from: ScottDB on July 23, 2009, 11:09:57 AM
Thanks for the quick reply. Just trying to learn about how php works. You said to edit my  /Themes/yourtheme/index.template.php files. Why wouldn't I edit the themes/default/index.template.php? Will I have to do the edit for all my themes?

You got it...if a Mod installs  clean on your forum all that really means in that it installed clean on the default theme only. Any Mods that require edits to the theme files you will have to edit those files manually in order for them to show on your custom theme.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 24, 2009, 09:35:41 PM
Where will I find the timestamp so I can finish ( hopefully) adding the post notification mod?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 24, 2009, 09:38:57 PM


1.) How can I increase the amount of shouts shown on the shoutbox? There only seems to be a limit of 10 only.

Look in /chat/lib/config.php that and many more settings can be changed.

2.) Simple question. Where do i go to view the shoutbox history?

http://yoursite.com/chat/?view=logs (http://yoursite.com/chat/?view=logs)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 24, 2009, 09:39:40 PM
Quote from: TheListener on July 24, 2009, 09:35:41 PM
Where will I find the timestamp so I can finish ( hopefully) adding the post notification mod?

In your database
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 24, 2009, 09:40:17 PM
So Just to make sure I got it right I should edit the default index as well as the custom themes index?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 24, 2009, 09:40:47 PM
Just did a test post and was told it doesn't exist.

Me heads gonna explode soon.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 24, 2009, 09:45:22 PM
Quote from: ScottDB on July 24, 2009, 09:40:17 PM
So Just to make sure I got it right I should edit the default index as well as the custom themes index?

You could only do it to your custom theme if you don't allow you users to switch themes. If you do allow your users to switch themes then you need to do it to all the themes available to them...otherwise they wont' see the change on whatever theme they use.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 24, 2009, 09:47:58 PM
Quote from: IslandDahl on July 24, 2009, 02:22:34 PM
Quote from: mrtrc266 on July 16, 2009, 01:21:11 PM
Quote from: IslandDahl on July 16, 2009, 01:14:36 PM
Quote from: mrtrc266 on July 16, 2009, 12:46:59 PM
@ IslandDahl (http://www.simplemachines.org/community/index.php?action=profile;u=216019) I've been looking at your site and it seems like everything is fine. I have to get to work soon and will do some digging around on SourceForge to see what I can find. Thank you for your patience.

It's been a crazy week at work, haven't had a chance to take a look at it yet...prob will be Mon-Tue....plz send a PM then to remind me  ;)

Oh wow! Thank you so much mrtrc266. Do you still need the temporary account?

Yeah, leave the temp account available till I get this figured out, I will mess with it some more when I get some more time.

Any luck?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fiorello on July 25, 2009, 06:33:48 AM
Anyone help me? My version is 1.1.10 and it gives me file corrupted error.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 25, 2009, 09:27:38 AM
Quote from: fiorello on July 25, 2009, 06:33:48 AM
Anyone help me? My version is 1.1.10 and it gives me file corrupted error.

Try this, the package version hasn't been updated yet.
http://www.simplemachines.org/community/index.php?topic=257973.msg2168355#msg2168355 (http://www.simplemachines.org/community/index.php?topic=257973.msg2168355#msg2168355)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fiorello on July 25, 2009, 09:51:31 AM
I dont understand what should i change into <install for="1.1.6-1.1.10">
Title: Re: AjaxChat Integration (3.2 Released)
Post by: mrtrc266 on July 25, 2009, 10:47:15 AM
Quote from: fiorello on July 25, 2009, 09:51:31 AM
I dont understand what should i change into <install for="1.1.6-1.1.10">

Sorry, it was 2 posts up from that one.
http://www.simplemachines.org/community/index.php?topic=257973.msg2168314#msg2168314 (http://www.simplemachines.org/community/index.php?topic=257973.msg2168314#msg2168314)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fiorello on July 25, 2009, 12:51:02 PM
<?xml version="1.0" ?>
  <!DOCTYPE package-info (View Source for full doctype...)>
- <!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This is a simplified package manifest for SMF packages.

ATTENTION: If you are trying to install this manually, you should try
the package manager.  If it will not work for you, please take a look
at the following for information on this format:
http://mods.simplemachines.org/docs/manual-install.php

================================================================================

This script can be used to make your package do many different things.
The following documentation should be available on the format of this
file and the things you can do with it:
http://mods.simplemachines.org/docs/package-info.php

Please see the other included file, package-info_advanced.xml, for
a more detailed description of what you can do with this file.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  -->
- <package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
  <id>ShahriarGholami:AjaxChat_Integration</id>
  <name>AjaxChat Integration</name>
  <version>3.2</version>
  <type>modification</type>
- <install for="1.1.6-1.99.99">
  <readme type="file" parsebbc="true">Readme.txt</readme>
  <modification type="file" reverse="false" format="xml">install_1.1.X.xml</modification>
  <require-file name="Shout.template.php" destination="$themedir" />
  <require-file name="Shout.english.php" destination="$languagedir" />
  <require-file name="Shout.persian.php" destination="$languagedir" />
  <require-file name="chat/css/shoutbox.css" destination="$themedir" />
  <require-dir name="chat" destination="$boarddir" />
  <require-dir name="chat/css" destination="$boarddir/shoutBox" />
  <require-dir name="chat/flash" destination="$boarddir/shoutBox" />
  <require-dir name="chat/img" destination="$boarddir/shoutBox" />
  <require-dir name="chat/js" destination="$boarddir/shoutBox" />
  <require-dir name="chat/lib" destination="$boarddir/shoutBox" />
  <require-dir name="chat/socket" destination="$boarddir/shoutBox" />
  <require-dir name="chat/sounds" destination="$boarddir/shoutBox" />
  <require-dir name="chat/src" destination="$boarddir/shoutBox" />
  <require-dir name="shoutBox" destination="$boarddir" />
  <code type="file">Tables_1.1.X.php</code>
  </install>
- <install for="2.0 RC1-2.99.99">
  <readme type="file" parsebbc="true">Readme.txt</readme>
  <modification type="file" reverse="false" format="xml">install_2.xml</modification>
  <require-file name="Shout.template.php" destination="$themedir" />
  <require-file name="Shout.english.php" destination="$languagedir" />
  <require-file name="Shout.persian.php" destination="$languagedir" />
  <require-file name="chat/css/shoutbox.css" destination="$themedir" />
  <require-dir name="chat" destination="$boarddir" />
  <require-dir name="chat/css" destination="$boarddir/shoutBox" />
  <require-dir name="chat/flash" destination="$boarddir/shoutBox" />
  <require-dir name="chat/img" destination="$boarddir/shoutBox" />
  <require-dir name="chat/js" destination="$boarddir/shoutBox" />
  <require-dir name="chat/lib" destination="$boarddir/shoutBox" />
  <require-dir name="chat/socket" destination="$boarddir/shoutBox" />
  <require-dir name="chat/sounds" destination="$boarddir/shoutBox" />
  <require-dir name="chat/src" destination="$boarddir/shoutBox" />
  <require-dir name="shoutBox" destination="$boarddir" />
  <code type="file">Tables_2.php</code>
  </install>
- <uninstall for="1.1.6-1.99.99">
  <modification reverse="true" type="file" format="xml">install_1.1.X.xml</modification>
  <remove-file name="$themedir/Shout.template.php" />
  <remove-file name="$languagedir/Shout.english.php" />
  <remove-file name="$languagedir/Shout.persian.php" />
  <remove-file name="$themedir/shoutbox.css" />
  <remove-dir name="$boarddir/chat" />
  <remove-dir name="$boarddir/shoutBox" />
  </uninstall>
- <uninstall for="2.0 RC1-2.99.99">
  <modification reverse="true" type="file" format="xml">install_2.xml</modification>
  <remove-file name="$themedir/Shout.template.php" />
  <remove-file name="$languagedir/Shout.english.php" />
  <remove-file name="$languagedir/Shout.persian.php" />
  <remove-file name="$themedir/shoutbox.css" />
  <remove-dir name="$boarddir/chat" />
  <remove-dir name="$boarddir/shoutBox" />
  </uninstall>
  </package-info>


Still doesnt work, i tried to delete all files after one install
Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4T3IG0 on July 25, 2009, 06:27:51 PM
Hi mrtrc266

I upgrade to SMF 2.0 RC1.2 and I'm trying to change the name of the "title" Shoutbox but can't find where to edit. Can you please help me once more?

Tnks.    ;)

Title: Re: AjaxChat Integration (3.2 Released)
Post by: 4T3IG0 on July 25, 2009, 10:46:27 PM
Quote from: 4T3IG0 on July 25, 2009, 06:27:51 PM
Hi mrtrc266

I upgrade to SMF 2.0 RC1.2 and I'm trying to change the name of the "title" Shoutbox but can't find where to edit. Can you please help me once more?

Tnks.    ;)



I just did it. Here's the file to edit:  Shout.english.php (just in case anywone need it).

Tnks anyway.   ;)


Title: Re: AjaxChat Integration
Post by: Rockz on July 25, 2009, 11:43:21 PM
Quote from: Blinker on February 04, 2009, 02:45:08 AM
I get these strange symbols at the top left corner of my shoutbox - 

Any ideas?

I'm getting these symbols at the top left corner of my shoutbox also.  Has anyone ever run into this before and found a solution?

QuoteYes, "" is the Byte Order Mark (BOM) of the Unicode Standard. Specifically it is the hex bytes EF BB BF, which form the UTF-8 representation of the BOM, misinterpreted as ISO 8859/1 text instead of UTF-8.

Probably what it means is that you are using a text editor that is saving files in UTF-8 with the BOM, when it should be saving without the BOM. It could be PHP files that have the BOM, in which case they'd appear as literal text on your page. Or it could be translated text you pasted into Joomla! edit windows.

The Unicode Consortium's FAQ on the Byte Order Mark is at http://www.unicode.org/faq/utf_bom.html#BOM .

I found this quote which may offer some insight.  Does this mean when I made an edit to some of my chat/shoutbox files (amended length of time for messages to remain and number of messages) that I may have saved them in Notepad incorrectly?

Thanks.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: RizoR on July 26, 2009, 01:13:46 AM
Hi, I have 1.1.10 and this doesn't work for me, I installed it manually into my script, But it doesn't show up, I added the script here

   // Show some statistics next to the link tree if SP1 info is off.
   echo '
<table width="100%" cellpadding="3" cellspacing="0">
   <tr>
      <td valign="bottom">', theme_linktree(), '</td>
      <td align="right">';
   if (!$settings['show_sp1_info'])
      echo '
            ', $txt[19], ': ', $context['common_stats']['total_members'], ' &nbsp;•&nbsp; ', $txt[95], ': ', $context['common_stats']['total_posts'], ' &nbsp;•&nbsp; ', $txt[64], ': ', $context['common_stats']['total_topics'], '
            ', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['common_stats']['latest_member']['link'] . '</b>' . $txt[581] : '');
   echo '
         </td>
      </tr>
   </table>';
echo' <div style="width:200px;">';echo getShoutBoxContent();echo '</div>';
   // Show the news fader?  (assuming there are things to show...)


But it doesn't wanna show up..
Title: Re: AjaxChat Integration (3.2 Released)
Post by: philcross on July 26, 2009, 09:24:08 AM
I had some leftover text after removing Chat.

So, I used packageparser to manually remove the stuff.

One instruction states to remove the following from the managesettings.php file

Quotefunction ModifyAjaxChatModSettings($return_config = false)
{
   global $txt, $scripturl, $context, $settings, $sc, $modSettings;

   $config_vars = array(
      array('check', 'enableShoutBox'),
      array('check', 'anyPageShoutBox'),
      array('check', 'miniChat'),
      array('check', 'chatPopUp'),
      array('check', 'enableChatButtonNo'),
      array('check', 'enableChatBelowPM'),
   );

   if ($return_config)
      return $config_vars;

   $context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=chat';
   $context['settings_title'] = $txt['chat'];

   // No removing this line you, dirty unwashed mod authors. :p
   if (empty($config_vars))
   {
      $context['settings_save_dont_show'] = true;
      $context['settings_message'] = '<div style="text-align: center">' . $txt['modification_no_misc_settings'] . '</div>';

      return prepareDBSettingContext($config_vars);
   }

   // Saving?
   if (isset($_GET['save']))
   {
      checkSession();

      $save_vars = $config_vars;

      saveDBSettings($save_vars);

      redirectexit('action=admin;area=modsettings;sa=chat');
   }

   prepareDBSettingContext($config_vars);

Now, i dont have the majority of that as it was deleted OK with uninstall BUT I do have part of that code

Quote// Saving?
   if (isset($_GET['save']))
   {
      checkSession();

      $save_vars = $config_vars;

      saveDBSettings($save_vars);

      redirectexit('action=admin;area=modsettings;sa=chat');
   }

   prepareDBSettingContext($config_vars);
}

So, do I still remove that segment or could it relate to something else?

Thanks
Title: Re: AjaxChat Integration (3.2 Released)
Post by: CrankyOldguy on July 26, 2009, 11:42:47 AM
Gaaaa!  159 pages in this thread, and when I try to PRINT it so I can read it without the avatars and overblown sigs all I get is the evil blank white PHP 'fatal error'.

Why am I not impressed with SMF 2.0 RC1??  >:(   This is the second time I've seen the forum PRINT function whitescreen on me with 2.0, and I've never seen it with 1.1.x
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Aleksi "Lex" Kilpinen on July 26, 2009, 11:44:30 AM
Quote from: CrankyOldguy on July 26, 2009, 11:42:47 AM
Gaaaa!  159 pages in this thread, and when I try to PRINT it so I can read it without the avatars and overblown sigs all I get is the evil blank white PHP 'fatal error'.

Why am I not impressed with SMF 2.0 RC1??  >:(   This is the second time I've seen the forum PRINT function whitescreen on me with 2.0, and I've never seen it with 1.1.x
Good catch - I'll tell the site team about this issue.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: DilSe on July 26, 2009, 12:40:43 PM
hello plz help me about this error on my shout box...

ChatBot: Error: Connection timeout. Please try again.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 26, 2009, 01:11:27 PM
Quote from: Hanzalah on July 26, 2009, 12:40:43 PM
hello plz help me about this error on my shout box...

ChatBot: Error: Connection timeout. Please try again.

If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing

chat/js/chat.js
Find
Code: [Select]
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);Replace with
Code: [Select]
if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}               
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bernard T. on July 26, 2009, 01:25:10 PM
Quote from: mrtrc266 on July 20, 2009, 12:59:53 PM
@ Phil, yes the Package Parser will show you all the edit to change or remove for the entire mod.

@Jarpi
Unzip the AJAX Chat Intergration zip file that you downloaded.

Open package-info.xml
Find
<install for="1.1.6-1.1.9">

Replace with
<install for="1.1.6-1.99.99">

Then rezip it and installed the Mod via the Package Manager

Yep, I can confirm that just changing the version number doesn't do the job! There is something more. I didn't had much time to check everyting, but maybe something changed to 1.1.10 code (didn't look at diff's) that prevents finding the places to make changes... and as there is no debug info during mod install we can't fastly pinpoint the problem...
Title: Re: AjaxChat Integration (3.2 Released)
Post by: David_DiSanto on July 26, 2009, 03:26:33 PM
Okay, I am confused. I downloaded this mod, using the uploader and all that on my forum, and applied the mod and everything was working beautifully, or so I thought. Problem is, it turns out only myself, and my other admin can see/use the shoutbox. I noticed that the mod says "Access/Moderate permission." but how do I allow it to be used by all my forum members? Seems like a simple problem, I am praying for a simple solution!

Thanks in advance!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Rockz on July 26, 2009, 04:31:31 PM
Quote from: David_DiSanto on July 26, 2009, 03:26:33 PM
Okay, I am confused. I downloaded this mod, using the uploader and all that on my forum, and applied the mod and everything was working beautifully, or so I thought. Problem is, it turns out only myself, and my other admin can see/use the shoutbox. I noticed that the mod says "Access/Moderate permission." but how do I allow it to be used by all my forum members? Seems like a simple problem, I am praying for a simple solution!

Thanks in advance!

Try Admin -> Permissions and make sure access to the Shout Box and/or Chat are checkmarked for the appropriate member groups when modifying permissions.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: David_DiSanto on July 26, 2009, 04:56:20 PM
Quote from: Rockz on July 26, 2009, 04:31:31 PM
Quote from: David_DiSanto on July 26, 2009, 03:26:33 PM
Okay, I am confused. I downloaded this mod, using the uploader and all that on my forum, and applied the mod and everything was working beautifully, or so I thought. Problem is, it turns out only myself, and my other admin can see/use the shoutbox. I noticed that the mod says "Access/Moderate permission." but how do I allow it to be used by all my forum members? Seems like a simple problem, I am praying for a simple solution!

Thanks in advance!

Try Admin -> Permissions and make sure access to the Shout Box and/or Chat are checkmarked for the appropriate member groups when modifying permissions.
Thank you so so so much! :D You've solved my problem!
Title: Re: AjaxChat Integration (3.2 Released)
Post by: zikzak.ir on July 27, 2009, 06:54:52 AM
If Mmknh version 1.1.10 in the home can get the mod

Thanks

--------------
Excuse me if I am a Persian-language high'm not speak English
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fiorello on July 27, 2009, 07:09:08 AM
How do i change default style for the mini shoutbox on the forum page (not that big one).
Title: Re: AjaxChat Integration (3.2 Released)
Post by: zikzak.ir on July 27, 2009, 08:22:35 AM
SMF 1.1.10 version for this problem does ???


--------------
Excuse me if I am a Persian-language high'm not speak English
Title: Re: AjaxChat Integration (3.2 Released)
Post by: InsaneMustang on July 27, 2009, 08:34:03 AM
I want to thank mrtrc266 for a great mod.  I have 1.1.10 and although it didn't work at first I was able to search this thread for my answer.  Then I got the connection 500 and I was able to search the faq for the answer to that.

Best support for a mod yet.

Well done
Title: Re: AjaxChat Integration (3.2 Released)
Post by: zikzak.ir on July 27, 2009, 10:05:03 AM
   
If Mmknh

I ask the managers if you can test problem was the page I get the mod to بدید all able to use.


I like this mode the message box of room and very good




--------------
Excuse me if I am a Persian-language high'm not speak English
Title: Re: AjaxChat Integration (3.2 Released)
Post by: philcross on July 27, 2009, 01:23:30 PM

HELP - IT MUST BE POSSIBLE

I had this mod installed and managed to make a few adjustments.

Then, after upgrading from RC2.0 to RC2.1 it all went silly.

I was forced to delete the mod and manually remove some leftover coding.

I REALLY do want this Mod to work so I tried a fresh install (I had even deleted the DB stuff).

I CMODed the 2 index files to 755 but still it wont work.

All i get is an error message when the Chat opens and then when I type and enter, nothing comes up.

PLEASE - what do I need to do.

Thanks


Title: Re: AjaxChat Integration (3.2 Released)
Post by: SC2 Gateway on July 27, 2009, 02:50:08 PM
I'm running SMF 1.1.9, and I have a dark theme. The white of the shoutbox makes the theme look a little weird. Can I change the colors somehow?

Thank you,

www.sc2gateway.com
Title: Re: AjaxChat Integration (3.2 Released)
Post by: zikzak.ir on July 27, 2009, 03:43:14 PM
This version for smf 1.1.10 problem does?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: SuperZambezi on July 27, 2009, 03:52:50 PM
Quote from: mrtrc266 on July 24, 2009, 09:38:57 PM


1.) How can I increase the amount of shouts shown on the shoutbox? There only seems to be a limit of 10 only.

Look in /chat/lib/config.php that and many more settings can be changed.

2.) Simple question. Where do i go to view the shoutbox history?

http://yoursite.com/chat/?view=logs (http://yoursite.com/chat/?view=logs)


Thanks, it works. :)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: zikzak.ir on July 27, 2009, 07:19:21 PM
This version for smf 1.1.10 problem does?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fiorello on July 27, 2009, 08:02:04 PM
Quote from: SC2 Gateway on July 27, 2009, 02:50:08 PM
I'm running SMF 1.1.9, and I have a dark theme. The white of the shoutbox makes the theme look a little weird. Can I change the colors somehow?

Thank you,

www.sc2gateway.com

I have the same problem.
Title: Re: AjaxChat Integration
Post by: CrankyOldguy on July 27, 2009, 10:56:37 PM
Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM

  Redirect the Logout back to your forum when you log out of the Chat Room

Open.....yourforum/chat/lib/config.php
Find
// Argument that is given to the handleLogout JavaScript method:
$config['logoutData'] = './?logout=true';


Replcace with (of course change http://yourforum.com (http://yourforum.com/) to your forum) ;)
// Argument that is given to the handleLogout JavaScript method:
$config['logoutData'] = 'http://yourforum.com';
           

Any suggestion on how to do this when the chat is run inside an IFRAME?  I can't figure out how to get it to close the IFRAME and return to the parent.  I'm not at all good with JavaScript, and I suspect the change needs to be the url in config.php PLUS a change in chat.js right here:
case 'logout':
this.handleLogout(infoData);
return;


Normally I'd do something like target="_parent" with HTML, but that's not passing / working correctly.  I'm pretty sure that chunk above needs a tweak.  By replacing the this.handldLogout... part with this:
window.parent.document.getElementById('123').parentNode.removeChild(window.parent.document.getElementById('123'));
(where 123 was the ID of the IFRAME)
I was able to get the IFRAME to close itself, but it didn't return to the forum URL in config.php, it stayed where it was and just closed the frame.

Edit: I found a way to do it, finally.  I checked it with IE 7, FireFox 2 and Opera 9. 

In chat.js,
find:
window.location.href = url;
replace with:
parent.document.location = url;

It's probably the wrong way to do it, but hey, I'm all about success!  ;D

That closes the IFRAME created with the CUSTOM ACTIONS mod and then returns to my base forum index.  I'd wanted the Chat inside the IFRAME so that it looked like a function of the forum and not some foreign, stand-alone app.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: SC2 Gateway on July 28, 2009, 12:16:02 AM
Can you add/edit themes?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: CrankyOldguy on July 28, 2009, 01:02:11 AM
Sure you can!  The info is in the README.TXT file under Customizing the layout.  You DID look in the README, right?  ;D

You can add, remove or change any of the CSS files.  It's purely a CSS change, nothing in the template file, then you follow the instructions in the README if you're going to add new styles to the config.php file.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fiorello on July 28, 2009, 06:50:21 AM
But how do I change style of the mini shoutbox???
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on July 28, 2009, 08:08:06 AM
I have some trouble with this mod but I think it's 99% because of my forum edits so if someone is willing I would prefer doing that via PM to not bother other guys because I think that's my fault.

However, I would like to talk about something else - I have uninstalled mod and have empty space on menu (see attachment) - any idea how to fix this?

Just to state - have 2.0 RC1-1 and default theme (just visual mod)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Itesz on July 28, 2009, 08:13:29 AM
Hi,
I installed this mod, working properly, and I managed also to change some of the layout and it's just cool.

However, I'm running a Hungarian forum, and the shoutbox doesn't display any á, é, ú, ű characters in the usernames, and it also adds a _ instead of space. Can it be changed somehow in the config.php or in any other way?

Please help, this mod rocks ;)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 28, 2009, 10:38:58 AM
Hi all, I know I have seen this posted before but have not been able to find it again. I have the mod working properly on my default theme but the chat button on my other themes is not showing. Is there a code I can put in to my themes to have this solved?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bernard T. on July 28, 2009, 10:46:01 AM
Quote from: ScottDB on July 28, 2009, 10:38:58 AM
Hi all, I know I have seen this posted before but have not been able to find it again. I have the mod working properly on my default theme but the chat button on my other themes is not showing. Is there a code I can put in to my themes to have this solved?

Go to Mod download page, select package and use "Manual Install Instructions for SMF" ... then apply all changes that are being made to "./Themes/default/xxxxxx.php" files, if the files with this name exist also in your custom theme, usually there is only index.template.php  (if you had done it the button would already be there as it is a part of modification of before mentioned file )
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 28, 2009, 10:49:50 AM
Thanks so much for the quick reply. I'm going there now to do this.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 28, 2009, 11:11:43 AM
OK, I don't know what I did wrong. I have version 1.1.10 with Simple Portal 2.2 . I looked up the download instructions for 1.1.10 on the download page and it said that it was not compatible. I then tried it with 1.9 and edited my index.template.php file. The only file in Darkster theme that was in the lists of edits. Compleated the changes as shown in instructions for theme/default/index.template.php thinking that I could just use this for the darkster theme. Got the following error message:
  Template Parse Error! It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

Never seen that error before. Not much to go on. I've attached the index.template if someone can figure it out.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: SC2 Gateway on July 28, 2009, 11:22:51 AM
Quote from: CrankyOldguy on July 28, 2009, 01:02:11 AM
Sure you can!  The info is in the README.TXT file under Customizing the layout.  You DID look in the README, right?  ;D

You can add, remove or change any of the CSS files.  It's purely a CSS change, nothing in the template file, then you follow the instructions in the README if you're going to add new styles to the config.php file.

Great thank you! :D I guess from now on I'll be reading Readme's ;)
Title: Changing timestamp format in shoutbox
Post by: Mark S on July 28, 2009, 03:42:48 PM
v2.0 RC1.2

The shoutbox defaults to a 24 hour clock timestamp.  I want to change it to a 12 hr, am/pm timestamp.

Found settings in the shoutbox/js/chat.js file and attempted to modify them using the smf forum definitions but the format doesn't seem to be the same.

attached chat.js file.

Thanks



Title: Re: AjaxChat Integration (3.2 Released)
Post by: dxbprince on July 28, 2009, 04:06:44 PM
Quote from: .HuNTeR. on August 27, 2008, 12:59:06 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1319)
By Shahriar Gholami
This mod will install AjaxChat (https://blueimp.net/ajax/) on your smf.

Tested on freshly installed smf 1.1.9/2 RC1-1
~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
note if you already have previous version of this mod after uninstalling the previous version delete the entire chat folder too.
new version install the chat by self.

Demo (http://chat.ecobytes.net/)
username:admin
password:admin

Features:
Adds a button to chat system in default theme.
Access/Moderate permission.(https://www.simplemachines.org/community/Themes/smsite/images/english-utf8/new.gif)
chat in a pop up page or a regular page.
Shows the number of chating users in:
    1. Online Users section.
    2. Beside of chat button.
    3. Below of total time logged in.
    number 2 and 3 can disabled.

adds a shoutbox.(you can disable it)
    View/Shout/Moderate permission.(https://www.simplemachines.org/community/Themes/smsite/images/english-utf8/new.gif)
    can set to only in index page or all pages.
    compatible with your theme.
    Bold Italic Underline bb codes and smiley.
    collapsible.
    can integrate shout box and chat room to work together and show same conversation.


thanks mrtrc266 (http://index.php?action=profile;u=178448) for his great support on this mod.

someone let me know pls this mod works with 1.1.10 SMF with custom theme ????
if yes then which index file needs to be edit manually?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bernard T. on July 28, 2009, 04:23:40 PM
Quote from: dxbprince on July 28, 2009, 04:06:44 PM
someone let me know pls this mod works with 1.1.10 SMF with custom theme ????
if yes then which index file needs to be edit manually?

Please edit your post and remove unnecessary quote you just made !! Thank You!
The answer is yes - go to Mod dowload page and use the modification list to see all needed changes in various files (for version 1.1.9, there's no big difference) and make it done.
For custom Themes - edit all available files corresponding to default theme files that were modified.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fiorello on July 28, 2009, 04:36:03 PM
Is it so hard to explain what file should I modify to be able to change the on-forum shoutbox style? My forum is dark-themed and shoutbox is very light.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 28, 2009, 04:38:31 PM
Quote from: fiorello on July 28, 2009, 04:36:03 PM
Is it so hard to explain what file should I modify to be able to change the on-forum shoutbox style? My forum is dark-themed and shoutbox is very light.

What is the link to your forum?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bernard T. on July 28, 2009, 04:39:56 PM
Quote from: ScottDB on July 28, 2009, 11:11:43 AM
The only file in Darkster theme that was in the lists of edits. Compleated the changes as shown in instructions for theme/default/index.template.php thinking that I could just use this for the darkster theme. Got the following error message:...
Never seen that error before. Not much to go on. I've attached the index.template if someone can figure it out.

Did you do exactly as said in parser, taking care on "put after/put before/replace" instructions?? 

I had no time to debug your file, try this file, I installed Darkster to my test site and implemented changes manually, and it works for me...
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fiorello on July 28, 2009, 04:43:15 PM
www.tme.szczecin.pl/~dromaniak/smf
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 28, 2009, 04:49:31 PM
Quote from: fiorello on July 28, 2009, 04:43:15 PM
www.tme.szczecin.pl/~dromaniak/smf

judging by the look of the theme ( looks nice too) would I be right in saying the shoutbox is white?

My forum uses the blackrain v2 theme and our shoutbox is also white.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fiorello on July 28, 2009, 04:50:49 PM
I want the shoutbox to be black, how to do it?
Dark shoutbox would look alooot better
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 28, 2009, 04:52:40 PM
Unfortunately that is where I would have to let the experts step in.

Sorry I can't help any further.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: fiorello on July 28, 2009, 04:54:15 PM
It's not good, the big one's style can be easly edited, but is the on-forum shoutbox uneditable? impossible :(
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 28, 2009, 05:13:08 PM
Quote
   
   Quote from: ScottDB on Today at 08:11:43 AM (http://www.simplemachines.org/community/index.php?topic=257973.msg2180894#msg2180894) The only file in Darkster theme that was in the lists of edits. Compleated the changes as shown in instructions for theme/default/index.template.php thinking that I could just use this for the darkster theme. Got the following error message:...
Never seen that error before. Not much to go on. I've attached the index.template if someone can figure it out.

Did you do exactly as said in parser, taking care on "put after/put before/replace" instructions?? 

I had no time to debug your file, try this file, I installed Darkster to my test site and implemented changes manually, and it works for me... [/q][/t]


Thanks so much that did the trick. Hopefully one day I can have the knowledge to pass on and help others out as much as you.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bernard T. on July 28, 2009, 05:17:33 PM
Quote from: ScottDB on July 28, 2009, 05:13:08 PM
Thanks so much that did the trick. Hopefully one day I can have the knowledge to pass on and help others out as much as you.
hehe, great Scott, I'm happy that it works! This one really didn't involve a lot of knowledge, just reading the instructions ;)

P.S. If you had any other Mods integrated in this file they're now lost (as this file's concerns) I hope you're aware of it..
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 28, 2009, 08:34:08 PM
Thanks again and and no problem with anything else on the temp. I need to do this to other themes and would like to know where I messed up. Would like to know where the instructions says to edit the default files do I just edit the theme files instead of the default files?  This is what I thought I had done before. Also at the end of the instructions it has a section for tables with queries in it. Excuse me for I am very new to this and have heard of them and know what they are but do not know what a query is used for or how they work. Do I need to load that up as well? Just trying to figure this out before I start the next one.

Title: Re: AjaxChat Integration (3.2 Released)
Post by: ClassicX on July 28, 2009, 10:55:45 PM
Awesome mod by the way :).

Is there anyway in the channel part, I can have custom channels? Or it would be awesome if I can password protect some channels or only some users under a member group can access this channel?

EDIT:

Nevermind, I found it.

Title: Re: AjaxChat Integration (3.2 Released)
Post by: Ampix0 on July 28, 2009, 11:32:27 PM
HELP

I just installed this on my site
SMF 2.0 RC-1

Other mods:
Simple Portal

I (the admin) am the only person who can see it.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Owdy on July 29, 2009, 01:41:17 AM
Quote from: Ampix0 on July 28, 2009, 11:32:27 PM
HELP

I just installed this on my site
SMF 2.0 RC-1

Other mods:
Simple Portal

I (the admin) am the only person who can see it.
Look permissions
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ClassicX on July 29, 2009, 01:47:48 AM
Actually didn't see anything about password protecting some channels, is it possible? Or allow certain member groups to access the channel?

One channel would be for everyone, another channel would be for a selected few.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bernard T. on July 29, 2009, 02:51:30 AM
Quote from: ScottDB on July 28, 2009, 08:34:08 PM
I need to do this to other themes and would like to know where I messed up. Would like to know where the instructions says to edit the default files do I just edit the theme files instead of the default files?  ....

Just read the instructions and pay attention to "Find->Replace With", "Find->Add Before", "Find->Add After" instructions, that should be self-explanatory. If you already have running installation of Mod you don't have to do any queries or change other things, just modify appropriate custom Theme files. If you're willing to learn more use http://docs.simplemachines.org/index.php?board=45.0;sort=subject

Quote from: ClassicX on July 29, 2009, 01:47:48 AM
Actually didn't see anything about password protecting some channels, is it possible? Or allow certain member groups to access the channel?

One channel would be for everyone, another channel would be for a selected few.

Owdy just answered your question - look at members permission, there is section added to it that enables you to do just that.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Baloch on July 29, 2009, 02:51:55 AM
I am getting this error to install this mod:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

plz advice what to do?

smf version is 1.1.10 and SIMPLE PORTAL VERSION IS 2.2.2 and theme is dilber MC.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bernard T. on July 29, 2009, 02:55:17 AM
Quote from: Baloch on July 29, 2009, 02:51:55 AM
I am getting this error to install this mod:
....
plz advice what to do?

read this topic a few pages back from here.... and do the manual installation
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 29, 2009, 10:15:38 AM
Thanks for the link. I read the information there and it helped explain a lot. I thought I had followed the instructions as far as find, replace, add before. Must have messed up somewhere. Will try again on the next theme.

One question - For board.index.php there are two in the instructions. One is Source/board.. the other is default/board... Which one do I edit my custom theme board.index with?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Bernard T. on July 29, 2009, 11:15:23 AM
Quote from: ScottDB on July 29, 2009, 10:15:38 AM
One question - For board.index.php there are two in the instructions. One is Source/board.. the other is default/board... Which one do I edit my custom theme board.index with?
/Sources/.. is dir with sources
/Themes/default/.. is default theme -> this is what has to be changed in all other themes
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 29, 2009, 11:26:57 AM
Thought that was the case just wanted to make sure.
In editing the index.template it shows to replace the code         // But, let's always show minutes - Time wasted here: 0 minutes.
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }


The only code that I found that came close is
        // Show the load time?
    if ($context['show_load_time'])
        echo '
        <p align="center"><span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span></p>';

Can I just forget about editing that code or what?

the index is attached
Title: Re: AjaxChat Integration (3.2 Released)
Post by: InsaneMustang on July 29, 2009, 12:50:48 PM
Right now I have a channel for every single board I have.  How can I delete all of them.  I just want 2 boards.  One public, and one private.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 29, 2009, 12:51:59 PM
OK, I don't mean to be a pain in the rear or take up a lot of anyone's time but I am really getting frustrated here. I moved on to the next theme and the edits were strait forward. Found all items and performed edits as told in the post. Don't understand what I am doing wrong. The last time you said that you just followed the instructions to get mod to work. That is what I did that time as well. I have not had this big a problem with other mods where all edits were found. Can someone look over my edits and see what I am doing wrong?

Helios_multi theme
Title: Re: AjaxChat Integration (3.2 Released)
Post by: wladymeer on July 29, 2009, 01:15:16 PM
I guess I would have to repeat:

I have uninstalled successfully this mod.

However, I  have this small gap in menu on the place where chat used to be and it's linkable. How can I remove it?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 29, 2009, 02:23:55 PM
Quote from: InsaneMustang on July 29, 2009, 12:50:48 PM
Right now I have a channel for every single board I have.  How can I delete all of them.  I just want 2 boards.  One public, and one private.

Will this help?

Edit/Remove the channels that are currently boards.

Open.....yourforum/chat/lib/config.php
Find
Code: [Select]
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;
And replace with the code below and just change the numbers to the number of the boards for the boards you want to have as channels

EXAMPLE: If "General Discussion" was board #1 and you had another board "SMF Talk" was board #2 then your code would look like this. This would make it so ONLY General Discussion and SMF Talk would appear in the channel list.

Code: [Select]
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(1,2);

To have ONLY the Public Room avaliable in the Channel List, change the array to 0 (Thanks stikkki)

Code: [Select]
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(0);

You can also change the name of the Public Channel to something like "YourForums Lounge"

Find and change Public to whatever you like

Code: [Select]
// Default channelName used together with the defaultChannelID if no channel with this ID exists:
$config['defaultChannelName'] = 'Public';

To actually add custom channels that are NOT in your board.

Open....yourforum/chat/lib/class/CustomAJAXChat.php (Just change Custom_Channel_1 and 'Custom_Channel_2 to what you want. No white spaces allowed.)

Find
Code: [Select]
      return $this->_channels;Replace with
Code: [Select]
      $this->_channels = array_merge($this->_channels, array('Custom_Channel_1'=>567, 'Custom_Channel_2'=>890));
      return $this->_channels;
Find
Code: [Select]
      return $this->_allChannels;Replace with
Code: [Select]
      $this->_allChannels = array_merge($this->_allChannels, array('Custom_Channel_1'=>567, 'Custom_Channel_2'=>890));
      return $this->_allChannels;           
               
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Ampix0 on July 29, 2009, 02:26:56 PM
Ok everyone can use Chat now. Now i have some things i need to be done that i hope someone can help me with.

Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 29, 2009, 10:59:52 PM
Why is it that I can't find this code in most of my themes. Is there something else I need to edit instead?

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 29, 2009, 11:02:35 PM
Quote from: ScottDB on July 29, 2009, 10:59:52 PM
Why is it that I can't find this code in most of my themes. Is there something else I need to edit instead?

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}


Try the search without the // and echo also try without the <br>

it sometimes helps
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Ampix0 on July 29, 2009, 11:05:48 PM
People are changing nicknames like crazy and im almost sure i stet the right thing to false..
Title: Re: AjaxChat Integration (3.2 Released)
Post by: TheListener on July 29, 2009, 11:08:27 PM
Quote from: Ampix0 on July 29, 2009, 11:05:48 PM
People are changing nicknames like crazy and im almost sure i stet the right thing to false..

Sorry but I can't help with that Ampix however you can always threaten them with a temporary ban until you get it sorted (or threaten them with a stinkbomb)
Title: Re: AjaxChat Integration (3.2 Released)
Post by: NaYa on July 30, 2009, 11:19:44 AM
i installed the shout box(smf 2.0 rc1-2) but i cant shout anything...100% blank

what i do ?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: planethax on July 30, 2009, 04:00:57 PM
I uploaded all file from mod "chat" folder to a "chat" directory,
but when I goto /chat/install.php all I get is a blank page?


Please help.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Capion on July 30, 2009, 07:46:56 PM
Quote from: ScottDB on July 29, 2009, 10:59:52 PM
Why is it that I can't find this code in most of my themes. Is there something else I need to edit instead?

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}


Youre not alone on this.. i have the same problem.
also the

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

// the [chat] button $chatPath = str_replace("index.php", "chat/index.php", $scripturl); $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers()); echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', ' <td valign="top" class="maintab_back"> <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a> </td>';

is missing in my theme ( xd-zeda )
and is completely stalling the installation

Ive tried to ask the developer of the theme, but.. the tread I found is allmost 2 years old.
Im still hoping to get some hints about where it should have been, or where I can put the code in now.
( ahem.. im trying to force it into ver. 1.1.10 )
Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 30, 2009, 08:27:52 PM
OK, I finally got this to work but with a problem with the tab button. The letters don't show up unless its hovered over and they show up in red. The button is also small. Will attach pic. of problem. Also this theme has a lot of files. I think it might be an image file problem or something. Here is a list of the files: images, BoardIndex.template.php, chrome.js, Display.template.php, index.php, index.template.php, MessageIndex.template.php, style.css, theme_info.xml.

Title: Re: AjaxChat Integration (3.2 Released)
Post by: ScottDB on July 30, 2009, 08:34:13 PM
Hey Capion, I found out in an earlier post that not all themes will have the //But lets always show the min..... part in the theme. It will still install with out this change. Look at earlier post a few pages back. I had forgotten when I posted this.

As far as the //Otherwise they might want to log out can be found under the button section towards the bottom.

I'm new to this as well. Hope this helps a little.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: SC2 Gateway on July 30, 2009, 11:42:21 PM
Quote from: CrankyOldguy on July 28, 2009, 01:02:11 AM
Sure you can!  The info is in the README.TXT file under Customizing the layout.  You DID look in the README, right?  ;D

You can add, remove or change any of the CSS files.  It's purely a CSS change, nothing in the template file, then you follow the instructions in the README if you're going to add new styles to the config.php file.

This seems to be only for editing the chat. I'm curious as to how to edit the shoutbox. I have a dark theme, and I would like to have a dark shout box that is relevant to my theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on July 31, 2009, 01:57:21 AM
3.2.1
July 31 2009:
Bug fixes:
- Guest permission check in chat and shoutbox fix.
- some minor bug in table creating part.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SilvioTO on July 31, 2009, 07:48:15 AM
After a chat session, some messages stay visible on the next day when I login again.
I would like at each new login the users see only a empty page. Is possible?
I use Ajax Chat with SMF 1.1.10 integration mod.

Thanks for your help.
Silvio.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Capion on July 31, 2009, 08:11:37 AM
Quote from: ScottDB on July 30, 2009, 08:34:13 PM
Hey Capion, I found out in an earlier post that not all themes will have the //But lets always show the min..... part in the theme. It will still install with out this change. Look at earlier post a few pages back. I had forgotten when I posted this.

As far as the //Otherwise they might want to log out can be found under the button section towards the bottom.

I'm new to this as well. Hope this helps a little.

Thank You!
Ill try.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Capion on July 31, 2009, 08:25:42 AM
Quote from: .HuNTeR. on July 31, 2009, 01:57:21 AM
3.2.1
July 31 2009:
Bug fixes:
- Guest permission check in chat and shoutbox fix.
- some minor bug in table creating part.

Ive just tried to run this 3.2.1 version, manually.
When running "Tables_1.1.X.php" this error occurs:

Database Error
No database selected
Fil: /my/path/to/the/root_of_smf/Tables_1.1.X.php
Line: 12 


PS !!

Then i uploaded the zip via the packagemanagement, ignored the warnings, ignored the load.php errors and re-uploaded the manually edited files.
Then there wasnt any php-errors, or database-errors.

( ill take this back..>> >)

but.. even thou Ive checked V these boxes:

Enable the ShoutBox?
Check for ShoutBox on any page or uncheck for only in index page:
Integrate shout box and chat room?
Enable online chat users numbering on chat button?

there is no shoutbox on either the portal or the forum.
The chat button, is in my top-menu, and pops the chat OK.


I have found a fix to my block problem...:
http://www.simplemachines.org/community/index.php?action=search2;search=block;topic=257973
( doh.. in the same tread.. hehe.. )
Title: Re: AjaxChat Integration (3.2 Released)
Post by: planethax on July 31, 2009, 08:50:36 AM
Quote from: planethax on July 30, 2009, 04:00:57 PM
I uploaded all file from mod "chat" folder to a "chat" directory,
but when I goto /chat/install.php all I get is a blank page?


Please help.

Can anyone guide me here?

Thanx.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on July 31, 2009, 10:20:57 AM
I have this MOD installed on my forum which uses a custom theme, silentwave. The chat works great. I have tried installing the AEVA MOD but it fails. The MOD author cliams the reason it fails is due to AJAX chat. He/she recommends that I uninstall the chat, install AEVA, then reinstall the Chat Mod. I don't want to do this since the CHAT MOD had to be custom coded to work with my current theme. The AEVA author says that the AJAX Chat MOD needs to be changed but the author of the CHAT MOD does not want to make the changes. How do I get around this delema?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SC2 Gateway on July 31, 2009, 12:28:02 PM
Does anyone know, if I can change the theme of the SHOUTBOX?

My forum theme is dark, while the shoutbox is white O.o

Someone please help me out here...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 31, 2009, 12:50:15 PM
Quote from: SilvioTO on July 31, 2009, 07:48:15 AM
After a chat session, some messages stay visible on the next day when I login again.
I would like at each new login the users see only a empty page. Is possible?
I use Ajax Chat with SMF 1.1.10 integration mod.

Thanks for your help.
Silvio.

This is possible.

It is just a matter of looking through the information given to us.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on July 31, 2009, 01:07:56 PM
@primetime
i installed Aeva-6.9.100 on smf 1.1.10 and 2.0 RC1.2 with ajaxchat 3.2.1 with no errors
there isn't any conflict between these two mods
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 31, 2009, 01:08:28 PM
If you want to show people when you are away from the keyboard( saves any  :-[ Try the following:

Open lib/class/CustomAJAXChat.php and add the following before the last closing bracket } at the end of the file:

Quotefunction parseCustomCommands($text, $textParts) {
      switch($textParts[0]) {
         // Away from keyboard message:
         case '/afk':
            // Set the userName:
            $this->setUserName('<AFK>_'.$this->getUserName());
            // Update the online user table:
            $this->updateOnlineList();
            // Add info message to update the client-side stored userName:
            $this->addInfoMessage($this->getUserName(), 'userName');
            // Store AFK status as session variable:
            $this->setSessionVar('AwayFromKeyboard', true);
            return true;
         default:
            return false;
      }
   }

   function onNewMessage($text) {
      // Reset AFK status on first inserted message:
      if($this->getSessionVar('AwayFromKeyboard')) {
         $this->setUserName($this->subString($this->getUserName(), 6));
         $this->updateOnlineList();
         $this->addInfoMessage($this->getUserName(), 'userName');
         $this->setSessionVar('AwayFromKeyboard', false);
      }
      return true;
   }

I have just tested this on my forums chat and am pleased to inform you it works.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on July 31, 2009, 01:15:45 PM
Where can I go to get help with install, I went to sourceforge as well and no replies.

I uploaded all files to chat director, goto chat/install.php and get a blank page.

http://www.planethax.com/mynascarspace/chat/install.php

my server phpinfo

http://www.planethax.com/mynascarspace/phpinfo.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on July 31, 2009, 03:30:19 PM
I downoaded new copy and reuploaded to my server, install.php uploaded as binary, still blank page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zikzak.ir on July 31, 2009, 05:24:22 PM
   
Hello
I installed the mod active and I

Now in such Arvry shot box went

(13:54:06) ChatBot: Error: Connection timeout. Please try again.

When post میشه after page of the International Brvzkrdn went

--------------------------------------
Excuse me if I am a Persian-language high'm not speak English
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fiorello on July 31, 2009, 06:21:04 PM
Quote from: SC2 Gateway on July 31, 2009, 12:28:02 PM
Does anyone know, if I can change the theme of the SHOUTBOX?

My forum theme is dark, while the shoutbox is white O.o

Someone please help me out here...
Please, anybody?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 31, 2009, 07:59:49 PM
Quote from: fiorello on July 31, 2009, 06:21:04 PM
Quote from: SC2 Gateway on July 31, 2009, 12:28:02 PM
Does anyone know, if I can change the theme of the SHOUTBOX?

My forum theme is dark, while the shoutbox is white O.o

Someone please help me out here...
Please, anybody?

Not to my knowledge.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on July 31, 2009, 08:09:48 PM
Quote from: planethax on July 31, 2009, 01:15:45 PM
Where can I go to get help with install, I went to sourceforge as well and no replies.

I uploaded all files to chat director, goto chat/install.php and get a blank page.

http://www.planethax.com/mynascarspace/chat/install.php

my server phpinfo

http://www.planethax.com/mynascarspace/phpinfo.php

No one else had this?
any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SC2 Gateway on July 31, 2009, 08:44:53 PM
Does anyone know if you can edit the colors of the Shoutbox. Currently the white looks ugly with the dark theme of site:

www.sc2gateway.com
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 31, 2009, 08:46:53 PM
Quote from: fiorello on July 31, 2009, 06:21:04 PM
Quote from: SC2 Gateway on July 31, 2009, 12:28:02 PM
Does anyone know, if I can change the theme of the SHOUTBOX?

My forum theme is dark, while the shoutbox is white O.o

Someone please help me out here...
Please, anybody?
Quote from: SC2 Gateway on July 31, 2009, 08:44:53 PM
Does anyone know if you can edit the colors of the Shoutbox. Currently the white looks ugly with the dark theme of site:

www.sc2gateway.com

Not to my knowledge
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on July 31, 2009, 08:52:08 PM
Quote from: planethax on July 31, 2009, 01:15:45 PM
Where can I go to get help with install, I went to sourceforge as well and no replies.

I uploaded all files to chat director, goto chat/install.php and get a blank page.

http://www.planethax.com/mynascarspace/chat/install.php

my server phpinfo

http://www.planethax.com/mynascarspace/phpinfo.php

Not sure ifmyposts are showing up or not?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 31, 2009, 08:54:11 PM
Quote from: planethax on July 31, 2009, 08:52:08 PM
Quote from: planethax on July 31, 2009, 01:15:45 PM
Where can I go to get help with install, I went to sourceforge as well and no replies.

I uploaded all files to chat director, goto chat/install.php and get a blank page.

http://www.planethax.com/mynascarspace/chat/install.php

my server phpinfo

http://www.planethax.com/mynascarspace/phpinfo.php

Not sure ifmyposts are showing up or not?

Please. No posting the same problem in less than 24 hours.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on July 31, 2009, 09:03:50 PM
Quote from: TheListener on July 31, 2009, 08:54:11 PM
Quote from: planethax on July 31, 2009, 08:52:08 PM
Quote from: planethax on July 31, 2009, 01:15:45 PM
Where can I go to get help with install, I went to sourceforge as well and no replies.

I uploaded all files to chat director, goto chat/install.php and get a blank page.

http://www.planethax.com/mynascarspace/chat/install.php

my server phpinfo

http://www.planethax.com/mynascarspace/phpinfo.php

Not sure ifmyposts are showing up or not?

Please. No posting the same problem in less than 24 hours.

Sorry, wasn't sure if the posts were moderated or something as I had no replies.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Ampix0 on July 31, 2009, 09:11:40 PM
So do we still not know how to stop people from changing their name?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 31, 2009, 09:13:30 PM
I'm not sure if there is a way Ampix.

Sorry I can't be more helpful.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SC2 Gateway on July 31, 2009, 10:39:53 PM
Is there a way to change the template/colors of the shoutbox. My theme is dark, and shoutbox is white, looks bad x\

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on August 01, 2009, 12:18:32 AM
@planethax
you should delete all files you uploaded and roll back changes you made, then
just upload the package through package manager and install the mod
everything is fully automatic
no need to run anything or change something manually


@zikzak.ir
make a topic in persian language board and we will discuss your problem there
http://www.simplemachines.org/community/index.php?board=169.0


@fiorello and SC2 Gateway
you can change the colors from here:
shoutBox/css/shoutbox.css


@Ampix0
go to:
chat/lib/config.php
find:
$config['allowNickChange'] = true;
and replace it with:
$config['allowNickChange'] = false;
Title: Re: AjaxChat Integration (3.2 Released)
Post by: Itesz on August 01, 2009, 03:11:42 AM
Quote from: Itesz on July 28, 2009, 08:13:29 AM
Hi,
I installed this mod, working properly, and I managed also to change some of the layout and it's just cool.

However, I'm running a Hungarian forum, and the shoutbox doesn't display any á, é, ú, ű characters in the usernames, and it also adds a _ instead of space. Can it be changed somehow in the config.php or in any other way?

Please help, this mod rocks ;)

No one seems to care or I just did not find the answer? Thx.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on August 01, 2009, 07:27:54 AM
@Itesz
open your config file and change these to values:

$config['contentEncoding'] = 'UTF-8';
$config['sourceEncoding'] = 'UTF-8';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Gp. on August 01, 2009, 07:49:51 AM
Hi,
See here: http://www.project512.net/forums/

See how for this theme, the width is less than on the default so the icons and such are squished for the shoutbox.
How can I modify the width and aligning for the shoutbox so I can make everything fit in neatly if you get what I mean?

ALSO,
The chat button on the top didn't appear. Due to the custom theme I'd say. Any light there?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MultiformeIngegno on August 01, 2009, 08:37:50 AM
Hello!! :)
How can I move the chat to the footer, right above the "Info Center"?

Thanks in advance!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 01, 2009, 10:07:57 AM
Quote from: .HuNTeR. on August 01, 2009, 12:18:32 AM
@planethax
you should delete all files you uploaded and roll back changes you made, then
just upload the package through package manager and install the mod
everything is fully automatic
no need to run anything or change something manually




I really appreciate the reply Hunter!!!

So I go into admin panel/packages, and browse to upload package correct?

I am going to work on this now, thank you again.
Title: Re: AjaxChat Integration
Post by: planethax on August 01, 2009, 11:38:24 AM
I have chat/lib/template directories, but no template file, what file should I be looking for?


Thanx


Quote from: Youngiiie on June 11, 2009, 01:00:05 PM
@ Greymalkin

Hey dude I have beeen stripping out things I don't want displayed to suit and I found a way to remove the logo div at the top of the chat popup/new window - please be away that removing this will remove some of the logout functionality you can tweak in the settings files.

In chat/lib/template find:
<div id="logoutChannelContainer">
  <input type="button" id="logoutButton" value="[LANG]logout[/LANG]" onclick="ajaxChat.logout();"/>
<label for="channelSelection">[LANG]channel[/LANG]:</label>
<select id="channelSelection" onchange="ajaxChat.switchChannel(this.options[this.selectedIndex].value);">[CHANNEL_OPTIONS/]</select>
<label for="styleSelection">[LANG]style[/LANG]:</label>
<select id="styleSelection" onchange="ajaxChat.setActiveStyleSheet(ajaxChat.getSelectedStyle());">[STYLE_OPTIONS/]</select>
<label for="languageSelection">[LANG]language[/LANG]:</label>
<select id="languageSelection" onchange="ajaxChat.switchLanguage(this.value);">[LANGUAGE_OPTIONS/]</select>
  </div>
<div id="statusIconContainer" class="statusContainerOn" onclick="ajaxChat.updateChat(null);"></div>


And replace with:
<!--<div id="logoutChannelContainer">
  <input type="button" id="logoutButton" value="[LANG]logout[/LANG]" onclick="ajaxChat.logout();"/>
<label for="channelSelection">[LANG]channel[/LANG]:</label>
<select id="channelSelection" onchange="ajaxChat.switchChannel(this.options[this.selectedIndex].value);">[ CHANNEL_OPTIONS/]</select>
<label for="styleSelection">[LANG]style[/LANG]:</label>
<select id="styleSelection" onchange="ajaxChat.setActiveStyleSheet(ajaxChat.getSelectedStyle());">[ STYLE_OPTIONS/]</select>
<label for="languageSelection">[LANG]language[/LANG]:</label>
<select id="languageSelection" onchange="ajaxChat.switchLanguage(this.value);">[ LANGUAGE_OPTIONS/]</select>
  </div>
<div id="statusIconContainer" class="statusContainerOn" onclick="ajaxChat.updateChat(null);"></div>-->


This should remove the logout part of the chat box - I have it this way so once a user logs in they will only be logged out when they clear their cache/cookie or if on another computer.

It is what suits me.

I am also planning to skin the colbat theme to suit the sites overall look - love the mod guys and cheers for all the help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: chaky! on August 01, 2009, 01:22:39 PM
hi every one... i dont now why from one day to other doesnt work anymore...

Shoutbox and chat are avaible and look fine, but anything i or my users writte dont show up..


ideas?


thnaks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 01, 2009, 03:03:10 PM


Is there an admin section for the chat?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 01, 2009, 03:56:50 PM
I see many asking to change the shoutbox styles, I have been able to change the colors by editing
chat/css/shoutbox.css

I hope this helps
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 01, 2009, 03:59:30 PM
Quote from: planethax on August 01, 2009, 03:56:50 PM
I see many asking to change the shoutbox styles, I have been able to change the colors by editing
chat/css/shoutbox.css

I hope this helps

For those of us mortals who don't know much if anything about editing may I suggest you leave a post on what you did.

Just a thought.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 01, 2009, 05:05:11 PM
Quote from: TheListener on August 01, 2009, 03:59:30 PM
Quote from: planethax on August 01, 2009, 03:56:50 PM
I see many asking to change the shoutbox styles, I have been able to change the colors by editing
chat/css/shoutbox.css

I hope this helps

For those of us mortals who don't know much if anything about editing may I suggest you leave a post on what you did.

Just a thought.


Down at the bottom you see colors

just edit them,

here is mine so far, black background (black = 000000)
black even row, grey (EEEEEE) odd rows, just mess with it


/*
* Colors
*/

#ajaxChatContent #ajaxChatChatList {
color:#FFF;
}
#ajaxChatContent #ajaxChatChatList {
background-color:#000000;
}
#ajaxChatContent .rowEven {
background-color:#000000;
}
#ajaxChatContent .rowOdd {
background-color:#333333;
}
#ajaxChatContent .guest {
color:gray;
}
#ajaxChatContent .user {
color:#CCCCCC;
}
#ajaxChatContent .moderator {
color:#00AA00;
}
#ajaxChatContent .admin {
color:red;
}
#ajaxChatContent .chatBot {
color:#FF6600;
}
#ajaxChatContent #ajaxChatChatList .chatBotErrorMessage {
color:red;
}
#ajaxChatContent #ajaxChatChatList a {
color:#1E90FF;
}
#ajaxChatContent #ajaxChatChatList .delete {
background:url('../img/delete.png') no-repeat right;
}
#ajaxChatContent #ajaxChatChatList .deleteSelected {
border-color:red;
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Whizzy on August 01, 2009, 05:06:50 PM
Quote from: chaky! on August 01, 2009, 01:22:39 PM
hi every one... i dont now why from one day to other doesnt work anymore...

Shoutbox and chat are avaible and look fine, but anything i or my users writte dont show up..


ideas?


thnaks

don't know if it worked fine first since i just installed it, don't see anything appearing after i hit send, it installed ok without errors, it looks very nice, but i don't see text whats the use. i don't use the shoutbox, maybe that has to do something with it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on August 01, 2009, 05:51:10 PM
Nice mod I have it working on my forum. How do you let guest see the shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 01, 2009, 05:58:20 PM
Quote from: bound2bmine on August 01, 2009, 05:51:10 PM
Nice mod I have it working on my forum. How do you let guest see the shoutbox?

Admin Panel
Members
Permissions
Guests -----> Modify
Access to chat     

   Moderate chat    
   View shoutBox    
   Can shout    
   Moderate shoutBox


Check to enable any of those options
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CrankyOldguy on August 01, 2009, 07:10:31 PM
Way back on page 92 is a patch to expand the smileys for v3.2... at least on MY installation that didn't work at all.  The smiley CODES were inserted, but none of them displayed as images.

http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608

I noticed that a handful of the 'emoticonCodes' were empty, so I filled them all in.  Whoo hoo!  All of a sudden it worked.  Now I can go in and start tweaking...  ;D

Here's the offending code in the patch (the link is above):
      emoticonCodes: new Array(
      '',
      '',
      ':cc',
      '',
      ':winktongue:',
etc.


Fill in something for all of the blank apostrophes ('',) and it works again.

Yep, I did a search on this insanely-long thread, and it's mentioned only once.  What, NOBODY but me wanted the expanded smiley list?

I haven't tried hacking the pop-up in yet.  Too bad the originators at SourceForge don't think it's important enough to include in the base distribution.

Also, the link I have to the Wiki there is doing a redirect to the project page.  Did they delete the Wiki and it's documentation pages?  http://ajax-chat.wiki.sourceforge.net/  << toast!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on August 01, 2009, 07:23:22 PM
Quote from: planethax on August 01, 2009, 05:58:20 PM
Quote from: bound2bmine on August 01, 2009, 05:51:10 PM
Nice mod I have it working on my forum. How do you let guest see the shoutbox?

Admin Panel
Members
Permissions
Guests -----> Modify
Access to chat     

   Moderate chat    
   View shoutBox    
   Can shout    
   Moderate shoutBox


Check to enable any of those options



Thanks worked like a charm.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 01, 2009, 07:38:43 PM
Quote
  OK, I finally got this to work but with a problem with the tab button. The letters don't show up unless its hovered over and they show up in red. The button is also small. Will attach pic. of problem. Also this theme has a lot of files. I think it might be an image file problem or something. Here is a list of the files: images, BoardIndex.template.php, chrome.js, Display.template.php, index.php, index.template.php, MessageIndex.template.php, style.css, theme_info.xml.

[/q][/t]
   



  (https://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=109190;image) (http://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=109189;image)
(https://www.simplemachines.org/community/Themes/smsite/images/icons/clip.gif) chatprob.jpg (http://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=109189) (127.07 KB, 1024x768 - viewed 13 times.)
(https://www.simplemachines.org/community/Themes/smsite/images/icons/clip.gif) BoardIndex.template.php (http://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=109191) (22.63 KB - downloaded 0 times.)
(https://www.simplemachines.org/community/Themes/smsite/images/icons/clip.gif) index.template.php (http://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=109192) (20.85 KB - downloaded 3 times.)
[/t][/t]
Just bumpin to get some help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 01, 2009, 07:41:17 PM
Quote from: bound2bmine on August 01, 2009, 07:23:22 PM
Quote from: planethax on August 01, 2009, 05:58:20 PM
Quote from: bound2bmine on August 01, 2009, 05:51:10 PM
Nice mod I have it working on my forum. How do you let guest see the shoutbox?

Admin Panel
Members
Permissions
Guests -----> Modify
Access to chat     

   Moderate chat    
   View shoutBox    
   Can shout    
   Moderate shoutBox


Check to enable any of those options



Thanks worked like a charm.

Glad it worked for ya.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Pinball Nation on August 01, 2009, 08:56:46 PM
Hello all, Im using version smf 1.1.10 an im trying to install the new version of ajaxchat.This is the first time i have tried to install it an i don't have a previous version.Just to give more info.I had Sidesparks an added buttons to all my custom themes.I deleted everything that had to do with Sidesparks even in the default theme.So this is the error i get when i try to install!!Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF. This is the nasty red failed thing i get  7. Execute Modification ./Themes/default/index.template.php Test failed So can someone help me out?Thanks         
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: The14thGOD on August 01, 2009, 11:35:37 PM
A couple of questions. I have added this to my forums, 1.1.10 but i get this error in the shout box:ChatBot: Error: Connection status: 500. Also when I click on the Chat in the navigation i get a blank page. Im guessing those 2 are related, the folders have permissions 755. i took a look at the config and all the db settings are null, am I supposed to change these? I'm guessing no since I havn't seen any mention of that through the forums I've read. This is the first time I've actually dug into SMF and I'm not sure I understand the setting permissions thing (in the SMF admin section). I checked all the boxes and selected "add permission" and "access to chat" but that didn't do anything (and no message of any kind to indicate success or error...)

2nd Question:
is there a way to move this down below the board listing?

Thanks for any help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Itesz on August 02, 2009, 02:38:32 AM
Quote from: .HuNTeR. on August 01, 2009, 07:27:54 AM
@Itesz
open your config file and change these to values:

$config['contentEncoding'] = 'UTF-8';
$config['sourceEncoding'] = 'UTF-8';
Thanks alot :D
Is there any way to make the _ things disappear?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: indonesia on August 02, 2009, 03:08:43 AM
I got internal server error when accessing domain.com/chat/index.php

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

.........


please helpp
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Capion on August 02, 2009, 08:02:03 AM
It seems to me, that the posts are automatically deleted after some time...

where can I manage this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bernard T. on August 02, 2009, 09:05:33 AM
Quote from: dkillers on August 02, 2009, 03:08:43 AM
Internal Server Error


check your file permissions as this is Apache error...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on August 02, 2009, 10:36:28 AM
OK its working great on my forum one thing I noticed the refresh rate is there a way to speed it up? Also some of my users don't see the latest post to the shout box. Am I missing something?

They have to refresh the page to see latest posts.

Also when I delete a post I get this on the shout box.

t: Error: Connection status: 0
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 02, 2009, 11:07:44 AM
For those of you who may want to experiment with adding more member colors to chat have a look at this link.

http://www.net4seven.de/phpbb3/forum/viewtopic.php?f=9&t=277 (http://www.net4seven.de/phpbb3/forum/viewtopic.php?f=9&t=277)

Please feel free to adapt for smf as I for one would love to be able to use member colors in the chat.

Title: Re: AjaxChat Integration
Post by: Rockz on August 02, 2009, 12:17:27 PM
Quote from: Rockz on July 25, 2009, 11:43:21 PM
Quote from: Blinker on February 04, 2009, 02:45:08 AM
I get these strange symbols at the top left corner of my shoutbox - 

Any ideas?

I'm getting these symbols at the top left corner of my shoutbox also.  Has anyone ever run into this before and found a solution?

QuoteYes, "" is the Byte Order Mark (BOM) of the Unicode Standard. Specifically it is the hex bytes EF BB BF, which form the UTF-8 representation of the BOM, misinterpreted as ISO 8859/1 text instead of UTF-8.

Probably what it means is that you are using a text editor that is saving files in UTF-8 with the BOM, when it should be saving without the BOM. It could be PHP files that have the BOM, in which case they'd appear as literal text on your page. Or it could be translated text you pasted into Joomla! edit windows.

The Unicode Consortium's FAQ on the Byte Order Mark is at http://www.unicode.org/faq/utf_bom.html#BOM .

I found this quote which may offer some insight.  Does this mean when I made an edit to some of my chat/shoutbox files (amended length of time for messages to remain and number of messages) that I may have saved them in Notepad incorrectly?

Thanks.

Anyone happen to have any thoughts on this?  I'm still getting these symbols.  Much appreciated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Xavi-Nena on August 02, 2009, 12:34:33 PM
do i have to uninstall old version to reinstall new version for 1.1.10?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on August 02, 2009, 12:58:35 PM
QuoteAlso when I delete a post I get this on the shout box.

t: Error: Connection status: 0

OK I fixed this I think. But one more question BB codes some work some don't any ideas?
Title: Re: AjaxChat Integration
Post by: Rockz on August 02, 2009, 02:02:23 PM
Quote from: Rockz on July 25, 2009, 11:43:21 PM
Quote from: Blinker on February 04, 2009, 02:45:08 AM
I get these strange symbols at the top left corner of my shoutbox - 

Any ideas?

I'm getting these symbols at the top left corner of my shoutbox also.  Has anyone ever run into this before and found a solution?

QuoteYes, "" is the Byte Order Mark (BOM) of the Unicode Standard. Specifically it is the hex bytes EF BB BF, which form the UTF-8 representation of the BOM, misinterpreted as ISO 8859/1 text instead of UTF-8.

Probably what it means is that you are using a text editor that is saving files in UTF-8 with the BOM, when it should be saving without the BOM. It could be PHP files that have the BOM, in which case they'd appear as literal text on your page. Or it could be translated text you pasted into Joomla! edit windows.

The Unicode Consortium's FAQ on the Byte Order Mark is at http://www.unicode.org/faq/utf_bom.html#BOM .

I found this quote which may offer some insight.  Does this mean when I made an edit to some of my chat/shoutbox files (amended length of time for messages to remain and number of messages) that I may have saved them in Notepad incorrectly?

Thanks.

I tried editing the chat/config.php with both Notepad and Word and each time I save and upload those files it gives me the same funky symbols on my shout box.  What text editor is recommended to edit these files?  I'm saving in UTF-8 which I was under the impression was correct, is that not right?  I know this problem has something to do with the text editor I am using or the format I am saving in.  I'm really close to solving this but I can't quite put my finger on it. 

What text editor do people use?  And what format are you saving in?  Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 02, 2009, 02:09:00 PM
Never use notepad.

You are better to use noepad 2 or notepadd ++

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bernard T. on August 02, 2009, 03:31:45 PM
Quote from: NenaGb on August 02, 2009, 12:34:33 PM
do i have to uninstall old version to reinstall new version for 1.1.10?
Yes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on August 02, 2009, 03:57:04 PM
Quote from: ScottDB on August 01, 2009, 07:38:43 PM
Quote
  OK, I finally got this to work but with a problem with the tab button. The letters don't show up unless its hovered over and they show up in red. The button is also small. Will attach pic. of problem. Also this theme has a lot of files. I think it might be an image file problem or something. Here is a list of the files: images, BoardIndex.template.php, chrome.js, Display.template.php, index.php, index.template.php, MessageIndex.template.php, style.css, theme_info.xml.

[/q][/t]
   



  (https://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=109190;image) (http://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=109189;image)
(https://www.simplemachines.org/community/Themes/smsite/images/icons/clip.gif) chatprob.jpg (http://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=109189) (127.07 KB, 1024x768 - viewed 13 times.)
(https://www.simplemachines.org/community/Themes/smsite/images/icons/clip.gif) BoardIndex.template.php (http://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=109191) (22.63 KB - downloaded 0 times.)
(https://www.simplemachines.org/community/Themes/smsite/images/icons/clip.gif) index.template.php (http://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=109192) (20.85 KB - downloaded 3 times.)
[/t][/t]
Just bumpin to get some help.
It's because you are using a custom theme. Let me direct you to a thread where I had the same issue, it may help.
http://www.simplemachines.org/community/index.php?topic=325745.msg2169937#msg2169937
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on August 02, 2009, 03:58:48 PM
Quote from: .HuNTeR. on July 31, 2009, 01:07:56 PM
@primetime
i installed Aeva-6.9.100 on smf 1.1.10 and 2.0 RC1.2 with ajaxchat 3.2.1 with no errors
there isn't any conflict between these two mods

Was Aeva installed before or after Ajax was installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rockz on August 02, 2009, 05:28:20 PM
Quote from: TheListener on August 02, 2009, 02:09:00 PM
Never use notepad.

You are better to use noepad 2 or notepadd ++

Thanks.  Notepad 2 worked like a charm.  It was all about the text editor.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 02, 2009, 05:34:44 PM
Thanks for the thread. I read it and I see what they are talking about but I am a compleate newbie to php. Was wondering if it might also be an image problem that I could just copy and edit an image and make a new image for that tab? I know I am not capable of editing the file as mentioned in that thread.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Whizzy on August 02, 2009, 07:41:09 PM
I still would like to know why i and those using the chat on my site don't see anything showing up after typing and submitting
when i click chat it nicely pops up like it should, but i am not shown as logged in, neither are any users shown.
however when i would go back to the forum it shows that 1 member is in chat.

the install worked like i expected and i got no errors but also no chat so far
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 02, 2009, 07:43:04 PM
Do you see a blank white page?

What permission settings are the chat and shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Whizzy on August 02, 2009, 07:51:13 PM
regular members can access chat and shoutbox and can shout, global mod can do all, i have no additonal membergroups

i have currently shoutbox disabled (use the tp shout) but figured the problem could be there, have tryed several configurations (shout on/off chat and shout integrated/not integrated etc) but always the same result
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 02, 2009, 07:52:48 PM
sorry I can't be more help to ya bud.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: The14thGOD on August 02, 2009, 08:58:11 PM
Ok it was permissions on the index fils (the folders had the permissions).

How can I move the shoutbox? I want to display it after the boards section (and above the forum info center)?

Thanks for any help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 02, 2009, 09:07:50 PM
To the best of my knowledge it can't be.

However it may be possible to move it with a manual edit.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: The14thGOD on August 02, 2009, 09:36:24 PM
ah, yea im not sure i know how to manually edit it. i work with php but nothing like this so im worried about screwing something up
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on August 02, 2009, 10:02:05 PM
Quote from: ScottDB on August 02, 2009, 05:34:44 PM
Thanks for the thread. I read it and I see what they are talking about but I am a compleate newbie to php. Was wondering if it might also be an image problem that I could just copy and edit an image and make a new image for that tab? I know I am not capable of editing the file as mentioned in that thread.
You're not capable of editing the index.template.php? Are you not the admin of your site? If it's a server problem have the file chmod to 755.

I made some changes to the chat code to help make the tab line in with the rest of the menu, in your index.template.php. See if you can get access and replace with this file. (make sure to make a copy of the orgininal in case it isn't what you wanted.)



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 02, 2009, 10:06:54 PM
Quote from: LadyChaos on August 02, 2009, 10:02:05 PM
Quote from: ScottDB on August 02, 2009, 05:34:44 PM
Thanks for the thread. I read it and I see what they are talking about but I am a compleate newbie to php. Was wondering if it might also be an image problem that I could just copy and edit an image and make a new image for that tab? I know I am not capable of editing the file as mentioned in that thread.
You're not capable of editing the index.template.php? Are you not the admin of your site? If it's a server problem have the file chmod to 755.


Not everyone knows how to edit files. Indeed before I started my forum I had never heard of html.

As for php and the rest well........

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on August 02, 2009, 10:10:57 PM
Quote from: TheListener on August 02, 2009, 10:06:54 PM
Quote from: LadyChaos on August 02, 2009, 10:02:05 PM
Quote from: ScottDB on August 02, 2009, 05:34:44 PM
Thanks for the thread. I read it and I see what they are talking about but I am a compleate newbie to php. Was wondering if it might also be an image problem that I could just copy and edit an image and make a new image for that tab? I know I am not capable of editing the file as mentioned in that thread.
You're not capable of editing the index.template.php? Are you not the admin of your site? If it's a server problem have the file chmod to 755.


Not everyone knows how to edit files. Indeed before I started my forum I had never heard of html.

As for php and the rest well........
Right, I understand, that's why I put the code in there for them to see if they can do it that way. Html is easy enough for me, I've played around with websites for a while now, but php was a completely new thing for me as well. I am still learning.  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 02, 2009, 10:43:21 PM
Thanks for doing that for me. I realy do appreciate it. I can't wait untill one day I know enough to help others out myself. Like the other guy mentioned, I myself didn't know how to use my email 8 months ago. I now have a good grasp on html and wordpress but have only been working with php for less than a month. Starting to get the hang of it but a lot is still out of my comprehension. Would like to know if this can be explained better so that a compleat newbie like myself can do it. I have the same problem with a couple other themes and know that I will have thesame problem in the future when I load more mods. Maybe I could then pass on the help as well.

Thanks again for your time
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on August 02, 2009, 10:48:16 PM
Quote from: ScottDB on August 02, 2009, 10:43:21 PM
Thanks for doing that for me. I realy do appreciate it. I can't wait untill one day I know enough to help others out myself. Like the other guy mentioned, I myself didn't know how to use my email 8 months ago. I now have a good grasp on html and wordpress but have only been working with php for less than a month. Starting to get the hang of it but a lot is still out of my comprehension. Would like to know if this can be explained better so that a compleat newbie like myself can do it. I have the same problem with a couple other themes and know that I will have thesame problem in the future when I load more mods. Maybe I could then pass on the help as well.

Thanks again for your time
Your welcome, I am assuming it is working then? (hopefully?) ;)

But yes,  it does take time and if I were you I would spend some time simply reading the php itself and learning about what each command does. You can go to http://www.w3schools.com/PHP/DEfaULT.asP
and practice and also using as many help forums/support forums as you can. Good luck and I imagine you will learn it all in no time.

Sorry for going off topic, just wanted to give ScottDB some encouragement. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 02, 2009, 11:01:09 PM
Thanks again and yes it is working. I looked at the site you have linked and it seems to be the best site I've seen yet for learning php. I'm going to list it on my forum site for others to use as well. Maybe after I have gone through it a little I'll come back to this post and see if I can figure out how to edit this on my other themes from your previous explanation.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: noaccess on August 03, 2009, 10:16:51 AM
Does anyone know how to extend the shoutbox history on the forum? It currently only seems to remember up to 10 shouts and you can't scroll beyond that. I want it changed to 30 or something.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: noaccess on August 03, 2009, 10:19:09 AM
Quote from: noaccess on August 03, 2009, 10:16:51 AM
Does anyone know how to extend the shoutbox history on the forum? It currently only seems to remember up to 10 shouts and you can't scroll beyond that. I want it changed to 30 or something.
Nevermind, I found out how to. :)

In shoutBox/lib/config.php

change
$config['requestMessagesLimit'] = 10;

to the number you like.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TurtleKicker on August 03, 2009, 01:04:21 PM
Since there's no "search this topic" for me to see if it's been answered anywhere in the last 166 pages... :(

Is there a way to clear the chat history?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2009, 01:08:22 PM
Quote from: sremick on August 03, 2009, 01:04:21 PM
Since there's no "search this topic" for me to see if it's been answered anywhere in the last 166 pages... :(

Is there a way to clear the chat history?

There is a way of entering the chat where the room is empty on entry.

Unfortunately I can't remember how this is done but once the person who told me is available I will make a post in the topic.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ExWizzard on August 03, 2009, 02:23:27 PM
hi there , can you please tell me how to uninstall this mod on smf 2.0 rc1.2 , there is no button to uninstall , thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2009, 02:24:50 PM
Is there a reason you want to uninstall the mod?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ExWizzard on August 03, 2009, 02:27:59 PM
yes , noone is using the chat and shoutbox and i want to remove it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2009, 02:36:26 PM
The only way to remove it is by manually uninstalling the edits as far as I know.

Is there a reason as to why nobody uses them?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ExWizzard on August 03, 2009, 02:39:12 PM
not that i know
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2009, 02:40:42 PM
Do you have a link to your forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ExWizzard on August 03, 2009, 03:15:18 PM
yibis.com

thanks for the tip , its been removed nice and easy , it was a good mod too
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Capion on August 03, 2009, 04:23:34 PM
Quote from: Capion on August 02, 2009, 08:02:03 AM
It seems to me, that the posts are automatically deleted after some time...

where can I manage this?

"bump"  ( is that allowed..   :)  oh well. i did it this time.. )
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wladymeer on August 03, 2009, 07:26:00 PM
Is someone willing to help me with proper uninstall as it seems I have some troubles here?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: InsaneMustang on August 03, 2009, 09:08:47 PM
Is there a way that the profanity filter could apply inside the chat room?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2009, 09:16:03 PM
To set a Profanity filter try this link.

I had a go but nothing happened however you may have more luck.

https://sourceforge.net/docman/display_doc.php?docid=128642&group_id=214758
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drav on August 03, 2009, 09:46:07 PM
Hi

As admin, I'm the other person able to access the chat room. The mod works perfectly but my users can't access it. What persmission do I need to alter?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2009, 09:49:26 PM
Which theme are you using and which smf?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drav on August 03, 2009, 09:52:34 PM
Sorry, it's 2.0 RC1.2.
I'm using a couple of different custom themes by DzinerStudio. Some users have overview light, other are using overview and some mysticjade.
Quite a mix!
The mod installed fine. I don't get what's up with it.

:(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2009, 09:54:18 PM
Have a look through the link.

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

It may help.

Is there a link for your forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drav on August 03, 2009, 09:59:55 PM
The forum is private  ;D
I can give you access if it's necessary.
I have made a few tweaks to the config file. I'm not sure if I've changed something my accident. For regular users a message says simply You can't access the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2009, 10:04:59 PM
I would make sure the permissions are set correctly.

Not sure what to suggest otherwise.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drav on August 03, 2009, 10:12:53 PM
OK it's sorted  :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: philcross on August 04, 2009, 02:38:39 AM
QuoteI still would like to know why i and those using the chat on my site don't see anything showing up after typing and submitting
when i click chat it nicely pops up like it should, but i am not shown as logged in, neither are any users shown.
however when i would go back to the forum it shows that 1 member is in chat.

the install worked like i expected and i got no errors but also no chat so far

Whizzy

I have the same problem with text not showing.

Nobody has been able to help.


I believe the problem started since the latest SMF upgrade to 1.2

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: REGNARTS_ on August 04, 2009, 03:26:45 AM
I'm unable to uninstall the mod. It says,

This package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.


I'm running SMF 2.0 RC1.2. If someone can help me manually uninstall this, I'll appreciate it.

--------------NVM.. I parsed the files and reversed it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on August 04, 2009, 06:40:54 AM
How to keep the shouts from expiring? I have looked all over this forum have not come across it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lunny on August 04, 2009, 08:18:02 AM
Hi,

I have installed this mod and when i or someone tries to post something in shoutbox we only get: ChatBot: Error: Connection status: 500.

When we click on chat we get Internal Server Error (and 404).

Please advice.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drav on August 04, 2009, 08:29:57 AM
Quote from: Lunny
Hi,

I have installed this mod and when i or someone tries to post something in shoutbox we only get: ChatBot: Error: Connection status: 500.

When we click on chat we get Internal Server Error (and 404).

Please advice.

I had a similar problem when I first installed the chat.
The files needed chmoding to 777 in FTP.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: InsaneMustang on August 04, 2009, 08:48:55 AM
Quote from: TheListener on August 03, 2009, 09:16:03 PM
To set a Profanity filter try this link.

I had a go but nothing happened however you may have more luck.

https://sourceforge.net/docman/display_doc.php?docid=128642&group_id=214758

I got it to work when I did the one using multiple lines.

Thank you for your help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: idid on August 04, 2009, 09:27:11 AM
I have installed SMF 1.1.10 and need a chat for the forum. I saw that AjaxChat was available, and uploadet the zip-file, but it won't install. I am not able to understand the error report; mydomain.com/forum/index.php?action=
packages;sa=install2;package=AjaxChatIntegration_3.2.1.zip
2: file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect.
File(*/package-info.xml/package-info.xml) is not within the allowed path(s):
(.;F:/SDSDSDSD/MYDOMAIN.COM;F:/SDSDSDSD//tmp/)
Fil: F:\SDSDSDSD\MYDOMAIN.COM\foRUM\Sources\Subs-Package.php
Linie: 421
Does it make any sence? I use the default theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lunny on August 04, 2009, 09:48:35 AM
Quote from: drav on August 04, 2009, 08:29:57 AM
Quote from: Lunny
Hi,

I have installed this mod and when i or someone tries to post something in shoutbox we only get: ChatBot: Error: Connection status: 500.

When we click on chat we get Internal Server Error (and 404).

Please advice.

I had a similar problem when I first installed the chat.
The files needed chmoding to 777 in FTP.

Which files are they?

I don't think i can set them to 777 with Hostgator host but i will try anyway if i know which files we are talking about.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drav on August 04, 2009, 12:35:11 PM
The only files I recall altering are ./chat/index.php and ./shoutbox/index.php from 644 to 755 (not 777 as I said before)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: webmin on August 04, 2009, 03:54:22 PM
I am trying to follow the installation instructions for AjaxChat...the very first instruction is confusing:

I am asked to: in the Admin.php file
1) FIND: "// Note the comma!! The setting with automatically appear with the first mod to be added."
and add: "         'chat' => array($txt['chat']),"

I am looking at the php scrpt and I don't have a clue where they are referring to in the script

Where are they referring to?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on August 04, 2009, 05:29:10 PM
IS there a way to not have the admin/site owner username show as Red in chat box?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 04, 2009, 05:29:36 PM
Quote from: webmin on August 04, 2009, 03:54:22 PM
I am trying to follow the installation instructions for AjaxChat...the very first instruction is confusing:
.......

Where are they referring to?

Can you not install through Admin Panel and packages?
I had a hard time installing manually as well, once I did it through Admin Panel it worked perfect.
Just a thought.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 04, 2009, 05:30:08 PM
Quote from: primetime on August 04, 2009, 05:29:10 PM
IS there a way to not have the admin/site owner username show as Red in chat box?
All my Admins show in Red?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 04, 2009, 05:34:00 PM
Quote from: planethax on August 04, 2009, 05:30:08 PM
Quote from: primetime on August 04, 2009, 05:29:10 PM
IS there a way to not have the admin/site owner username show as Red in chat box?
All my Admins show in Red?

I believe the admins showing as red is standard.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 04, 2009, 05:36:01 PM
Ok, I have 2 issues I need help with, both are very similar.

Ajax Chat is integrated into SMF and my SMF is integrated into PHPIzabi.

I also have the shoutbox (copy/pasted code into footer) on every page.

My first issue is, when I goto my site, I goto chat it will not let me access, I have to goto SMF forum page first, then to chat,
Similarly, when using shoutbox, the username does not show(shows just a number) until I visit SMF forum, then the username is there until session has expired.


I hope this makes sense and someone can help out with this.

Thanx so much!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 04, 2009, 05:37:05 PM
Quote from: TheListener on August 04, 2009, 05:34:00 PM
Quote from: planethax on August 04, 2009, 05:30:08 PM
Quote from: primetime on August 04, 2009, 05:29:10 PM
IS there a way to not have the admin/site owner username show as Red in chat box?
All my Admins show in Red?

I believe the admins showing as red is standard.

Ya I believe so, I did nothing special to have this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: webmin on August 04, 2009, 06:25:22 PM
Quote from: planethax on August 04, 2009, 05:29:36 PM
Quote from: webmin on August 04, 2009, 03:54:22 PM
I am trying to follow the installation instructions for AjaxChat...the very first instruction is confusing:
.......

Where are they referring to?

Can you not install through Admin Panel and packages?
I had a hard time installing manually as well, once I did it through Admin Panel it worked perfect.
Just a thought.

I Alreadt installed it via admin panel...but the chatroom option is not showing, what do I do...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: webmin on August 04, 2009, 06:36:43 PM
I tried setting up the chatroom i get this error:

ChatBot: Error: Connection status: 500
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 04, 2009, 07:19:53 PM
Quote from: webmin on August 04, 2009, 06:36:43 PM
I tried setting up the chatroom i get this error:

ChatBot: Error: Connection status: 500

If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 04, 2009, 07:22:16 PM
Quote from: webmin on August 04, 2009, 06:36:43 PM
I tried setting up the chatroom i get this error:

ChatBot: Error: Connection status: 500

Take a look at the http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
FAQ post, there is info about permissions and the 500 error i think
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: webmin on August 04, 2009, 07:39:18 PM
Quote from: TheListener on August 04, 2009, 07:19:53 PM
Quote from: webmin on August 04, 2009, 06:36:43 PM
I tried setting up the chatroom i get this error:

ChatBot: Error: Connection status: 500

If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

I am not even seeing a link to the chat room...I am only seeing the shout box at the top of the page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 04, 2009, 07:53:34 PM
You have custom theme?

May have to update ur theme.

Take a look at this to find exactly what u need to change
http://resourcez.biz/PackageParser/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 04, 2009, 08:10:25 PM
Hey TheListener, did ya see my reply?

Were you able to customize your shoutbox?

Quote from: planethax on August 01, 2009, 05:05:11 PM
Quote from: TheListener on August 01, 2009, 03:59:30 PM
Quote from: planethax on August 01, 2009, 03:56:50 PM
I see many asking to change the shoutbox styles, I have been able to change the colors by editing
chat/css/shoutbox.css

I hope this helps

For those of us mortals who don't know much if anything about editing may I suggest you leave a post on what you did.

Just a thought.


Down at the bottom you see colors

just edit them,

here is mine so far, black background (black = 000000)
black even row, grey (EEEEEE) odd rows, just mess with it


/*
* Colors
*/

#ajaxChatContent #ajaxChatChatList {
color:#FFF;
}
#ajaxChatContent #ajaxChatChatList {
background-color:#000000;
}
#ajaxChatContent .rowEven {
background-color:#000000;
}
#ajaxChatContent .rowOdd {
background-color:#333333;
}
#ajaxChatContent .guest {
color:gray;
}
#ajaxChatContent .user {
color:#CCCCCC;
}
#ajaxChatContent .moderator {
color:#00AA00;
}
#ajaxChatContent .admin {
color:red;
}
#ajaxChatContent .chatBot {
color:#FF6600;
}
#ajaxChatContent #ajaxChatChatList .chatBotErrorMessage {
color:red;
}
#ajaxChatContent #ajaxChatChatList a {
color:#1E90FF;
}
#ajaxChatContent #ajaxChatChatList .delete {
background:url('../img/delete.png') no-repeat right;
}
#ajaxChatContent #ajaxChatChatList .deleteSelected {
border-color:red;
}

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 04, 2009, 08:11:52 PM
OK here is a weird one for you.

After following the instructions to add the smileys from here:

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

I now have nowhere to type into in the chat room due to the smileys not having their own button, the smileys in the shoutbox are not the newer ones.

The shoutbox has no font colors either.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 04, 2009, 08:13:15 PM
Planet it wasn't me who didn't want admins to show as red.   ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 04, 2009, 08:20:40 PM
Quote from: TheListener on August 04, 2009, 08:11:52 PM
OK here is a weird one for you.

After following the instructions to add the smileys from here:

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

I now have nowhere to type into in the chat room due to the smileys not having their own button, the smileys in the shoutbox are not the newer ones.

The shoutbox has no font colors either.
this post?
http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 04, 2009, 08:23:22 PM
Quote from: TheListener on August 04, 2009, 08:13:15 PM
Planet it wasn't me who didn't want admins to show as red.   ;)

I realize that, that post was regaurding customizing shoutbox, I thought you needed that.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 04, 2009, 08:25:40 PM
The problem I have is not being able to find the following on my index template.php

      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Trafalgar on August 04, 2009, 08:33:00 PM
I'm sorry if this has been asked before.

Recently installed Ajax Chat and everything looks fine:
-I'm able to set permission in the admin panel (managed to set permissions properly)
-I see the "No user is in chat." indicator below the online list
-I see the chat link below the header

HOWEVER, when I try to access chat by clicking the Chat link below header, it brings me to the chat page but the message screen and the online users screen is blank. I see the channel drop-down, style, all the smileys, buttons but those two white screens are blank. Even tried to enter a message but nothing appears.

Here is a link to my chat screen (Guest access should be enabled): http://acronia.com/forums/chat/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 04, 2009, 08:38:34 PM

What editor are you using?

If you can search, search for "collapse"  that will get you right to the beginning of the shoutbox code and it is where you will find the code you are looking for,,,once you find collapse, if you are still unsure, copy all near code before and after collapse and poste it, will help you out.

Quote from: TheListener on August 04, 2009, 08:25:40 PM
The problem I have is not being able to find the following on my index template.php

      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 04, 2009, 08:40:35 PM
Quote from: Trafalgar on August 04, 2009, 08:33:00 PM
I'm sorry if this has been asked before.

Recently installed Ajax Chat and everything looks fine:
-I'm able to set permission in the admin panel (managed to set permissions properly)
-I see the "No user is in chat." indicator below the online list
-I see the chat link below the header

HOWEVER, when I try to access chat by clicking the Chat link below header, it brings me to the chat page but the message screen and the online users screen is blank. I see the channel drop-down, style, all the smileys, buttons but those two white screens are blank. Even tried to enter a message but nothing appears.

Here is a link to my chat screen (Guest access should be enabled): http://acronia.com/forums/chat/index.php

Have a look Here:

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 04, 2009, 08:45:56 PM
All I saw was:

   $options['collapse_header'] = !empty($_COOKIE['upshrink']);
      $options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 04, 2009, 08:59:58 PM
Quote from: TheListener on August 04, 2009, 08:45:56 PM
All I saw was:

   $options['collapse_header'] = !empty($_COOKIE['upshrink']);
      $options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);

Search for all

</script>

Right after one of them you should see the following which is what you are looking for

<div class="tborder" style="margin: 10px 0 10px 0;">
        <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Trafalgar on August 04, 2009, 09:05:51 PM
Quote from: TheListener on August 04, 2009, 08:40:35 PM
Quote from: Trafalgar on August 04, 2009, 08:33:00 PM
I'm sorry if this has been asked before.

Recently installed Ajax Chat and everything looks fine:
-I'm able to set permission in the admin panel (managed to set permissions properly)
-I see the "No user is in chat." indicator below the online list
-I see the chat link below the header

HOWEVER, when I try to access chat by clicking the Chat link below header, it brings me to the chat page but the message screen and the online users screen is blank. I see the channel drop-down, style, all the smileys, buttons but those two white screens are blank. Even tried to enter a message but nothing appears.

Here is a link to my chat screen (Guest access should be enabled): http://acronia.com/forums/chat/index.php

Have a look Here:

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Thank you. Could have taken a look myself but it was right in the middle, page 92!

Worked like a charm.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 04, 2009, 09:21:09 PM
Quote from: Trafalgar on August 04, 2009, 09:05:51 PM
Quote from: TheListener on August 04, 2009, 08:40:35 PM
Quote from: Trafalgar on August 04, 2009, 08:33:00 PM
I'm sorry if this has been asked before.

Recently installed Ajax Chat and everything looks fine:
-I'm able to set permission in the admin panel (managed to set permissions properly)
-I see the "No user is in chat." indicator below the online list
-I see the chat link below the header

HOWEVER, when I try to access chat by clicking the Chat link below header, it brings me to the chat page but the message screen and the online users screen is blank. I see the channel drop-down, style, all the smileys, buttons but those two white screens are blank. Even tried to enter a message but nothing appears.

Here is a link to my chat screen (Guest access should be enabled): http://acronia.com/forums/chat/index.php

Have a look Here:

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Thank you. Could have taken a look myself but it was right in the middle, page 92!

Worked like a charm.

May I suggest to anyone using this mod to bookmark that link.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Ellion Cold on August 04, 2009, 10:24:39 PM
How can i put the chat/shoutbox on the bottom of the page?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 04, 2009, 10:43:45 PM
Quote from: Ellion Cold on August 04, 2009, 10:24:39 PM
How can i put the chat/shoutbox on the bottom of the page?

Take a look at
http://www.simplemachines.org/community/index.php?topic=257973.msg2107351#msg2107351
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Baloch on August 05, 2009, 12:42:57 AM
Quote from: .HuNTeR. on August 27, 2008, 12:59:06 AM
chat in a pop up page or a regular page.
Shows the number of chating users in:
    1. Online Users section.
    2. Beside of chat button.
    3. Below of total time logged in.
    number 2 and 3 can disabled.



Please advice how can i display these features on customized theme?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bernard T. on August 05, 2009, 06:14:19 AM
Quote from: Baloch on August 05, 2009, 12:42:57 AM
Please advice how can i display these features on customized theme?
Just by applying the same changes that mod-installation script does to default theme files to corresponding custom theme files. Use "Parse" button on mod download page to know what to put where...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lunny on August 05, 2009, 06:56:56 AM
Installed it, edited the files that had to be edited and it's working smooth.

A few questions to those that use it:

1. How can i stop people from joining private channels. I want em all to be in /public channel?
2. How can i stop them changing nicknames in chat?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: webmin on August 05, 2009, 07:59:29 AM
can some one take a look at www.pnpyo.org/forum and let me know what I need to do to get the chat like to keep the same css formatting on the page.

It the chat is showing up in a different style...I help with configuring that link.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Wiskycoo on August 05, 2009, 12:44:21 PM
 :D Hiya!

I have read just about the entire thread and done, hopefully, all of the suggested solutions to my error 500 connection.... which means i have

Quoteyou get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

BUT, i'm still getting the same error message.
I even set the them back to the core theme for the SMF. The SMF version I have installed is the 1.1.10

i even tried the parsing tool you guys suggested which came back to tell me it was not compatible with this version of smf...yet from reading am i to understand that it is?

anyway, it comes down to this... I don't know what to do next and I would greatly appreciate some help.  You have made what looks like the best chat mod!

Thank you for any time you can give me on this issue.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CrankyOldguy on August 05, 2009, 01:10:31 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi27.tinypic.com%2Fv60zmc.jpg&hash=04ce092aef968e4fbd94272d2be1baec98b70804)

If you want an expanded COLOR table, do the following:

in chat/js/config.js, find this:

// Defines the list of allowed color codes:
colorCodes: new Array(
'gray',
'silver',
'white',
'yellow',
'orange',
'red',
'fuchsia',
'purple',
'navy',
'blue',
'aqua',
'teal',
'green',
'lime',
'olive',
'maroon',
'black'
),


and replace with this:

// Defines the list of allowed color codes:
colorCodes: new Array(
'#000000',
'#000033',
'#000066',
'#000099',
'#0000cc',
'#0000ff',
'#006600',
'#006633',
'#006666',
'#006699',
'#0066cc',
'#0066ff',
'#00cc00',
'#00cc33',
'#00cc66',
'#00cc99',
'#00cccc',
'#00ccff',
'#003300',
'#003333',
'#003366',
'#003399',
'#0033cc',
'#0033ff',
'#009900',
'#009933',
'#009966',
'#009999',
'#0099cc',
'#0099ff',
'#00ff00',
'#00ff33',
'#00ff66',
'#00ff99',
'#00ffcc',
'#00ffff',
'#330000',
'#330033',
'#330066',
'#330099',
'#3300cc',
'#3300ff',
'#336600',
'#336633',
'#336666',
'#336699',
'#3366cc',
'#3366ff',
'#33cc00',
'#33cc33',
'#33cc66',
'#33cc99',
'#33cccc',
'#33ccff',
'#333300',
'#333333',
'#333366',
'#333399',
'#3333cc',
'#3333ff',
'#339900',
'#339933',
'#339966',
'#339999',
'#3399cc',
'#3399ff',
'#33ff00',
'#33ff33',
'#33ff66',
'#33ff99',
'#33ffcc',
'#33ffff',
'#660000',
'#660033',
'#660066',
'#660099',
'#6600cc',
'#6600ff',
'#666600',
'#666633',
'#666666',
'#666699',
'#6666cc',
'#6666ff',
'#66cc00',
'#66cc33',
'#66cc66',
'#66cc99',
'#66cccc',
'#66ccff',
'#663300',
'#663333',
'#663366',
'#663399',
'#6633cc',
'#6633ff',
'#669900',
'#669933',
'#669966',
'#669999',
'#6699cc',
'#6699ff',
'#66ff00',
'#66ff33',
'#66ff66',
'#66ff99',
'#66ffcc',
'#66ffff',
'#990000',
'#990033',
'#990066',
'#990099',
'#9900cc',
'#9900ff',
'#996600',
'#996633',
'#996666',
'#996699',
'#9966cc',
'#9966ff',
'#99cc00',
'#99cc33',
'#99cc66',
'#99cc99',
'#99cccc',
'#99ccff',
'#993300',
'#993333',
'#993366',
'#993399',
'#9933cc',
'#9933ff',
'#999900',
'#999933',
'#999966',
'#999999',
'#9999cc',
'#9999ff',
'#99ff00',
'#99ff33',
'#99ff66',
'#99ff99',
'#99ffcc',
'#99ffff',
'#cc0000',
'#cc0033',
'#cc0066',
'#cc0099',
'#cc00cc',
'#cc00ff',
'#cc6600',
'#cc6633',
'#cc6666',
'#cc6699',
'#cc66cc',
'#cc66ff',
'#cccc00',
'#cccc33',
'#cccc66',
'#cccc99',
'#cccccc',
'#ccccff',
'#cc3300',
'#cc3333',
'#cc3366',
'#cc3399',
'#cc33cc',
'#cc33ff',
'#cc9900',
'#cc9933',
'#cc9966',
'#cc9999',
'#cc99cc',
'#cc99ff',
'#ccff00',
'#ccff33',
'#ccff66',
'#ccff99',
'#ccffcc',
'#ccffff',
'#ff0000',
'#ff0033',
'#ff0066',
'#ff0099',
'#ff00cc',
'#ff00ff',
'#ff6600',
'#ff6633',
'#ff6666',
'#ff6699',
'#ff66cc',
'#ff66ff',
'#ffcc00',
'#ffcc33',
'#ffcc66',
'#ffcc99',
'#ffcccc',
'#ffccff',
'#ff3300',
'#ff3333',
'#ff3366',
'#ff3399',
'#ff33cc',
'#ff33ff',
'#ff9900',
'#ff9933',
'#ff9966',
'#ff9999',
'#ff99cc',
'#ff99ff',
'#ffff00',
'#ffff33',
'#ffff66',
'#ffff99',
'#ffffcc',
'#ffffff',
'#ececec',
'#d8d8d8',
'#c4c4c4',
'#b0b0b0',
'#9d9d9d',
'#888888',
'#747474',
'#606060',
'#484848',
'#323232',
'#181818',
'#000000'
),


   
Next, open chat/css/positions.css and find this:

#content #colorCodesContainer {
position:absolute;
left:20px;
bottom:55px;
padding:3px;
z-index:1;
}


and replace with this:

#content #colorCodesContainer {
position:absolute;
left:20px;
bottom:55px;
width:608px;
padding:3px;
z-index:1;
overflow:auto;
}



Also in chat/css/positions.css find this:

#content #colorCodesContainer a {
display:block;
float:left;
width:20px;
height:20px;
}


and replace with this:

#content #colorCodesContainer a {
display:block;
float:left;
width:14px;
height:14px;
}



Finally, IE 5.5 and IE 6 don't understand 'bottom', so you need to explain the position in it's terms.
Open chat/lib/template/loggedIn.html and find this:

<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie5-6.css"/>
<script type="text/javascript">
var isIElt7 = true;
</script>
<![endif]-->

   
replace with this:

<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie5-6.css"/>
<script type="text/javascript">
var isIElt7 = true;
</script>
<style type="text/css">
#content #colorCodesContainer { position:absolute; left:20px; top:427px; width:608px; height:108px; padding:3px; z-index:1; overflow:auto;}
</style>
<![endif]-->

   
   
Note: Firefox 2 loads MUCH more slowly initially with this change; it appears to be a JavaScript parsing bug.  Other browsers don't have this issue that I've found.  Firefox can take up to 30 seconds to initially load the chat with the expanded color table, after that it's fine.

Edit: it must be one of the plug-ins I have that's making Firefox slow.  I just tried a 'portable' version of FF 2.0.0.20 and my chat loaded in less than 5 seconds, WITH ShockWave installed and running and that color table above.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 05, 2009, 01:17:14 PM
Add a Word Filter to the chat room.

This modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
return text;
}


This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}

Adds a replacement for the word "foo".

This addition works.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 05, 2009, 02:22:56 PM
Have this error when I go to reply to a post in the forum.

Parse error: syntax error, unexpected T_ELSEIF in /Sources/Post.php on line 2093

Was after a failed attempt to add the Post Notification to the chat.

The guilty line is: elseif (empty($_REQUEST['msg']))
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on August 05, 2009, 02:43:49 PM
Hey guys one more time sorry how do you keep the shouts in the shoutbox from expiring. After a few days they disappear.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bernard T. on August 05, 2009, 02:45:52 PM
Quote from: TheListener on August 05, 2009, 02:22:56 PM
Have this error when I go to reply to a post in the forum.
Was after a failed attempt to add the Post Notification to the chat.
The guilty line is: elseif (empty($_REQUEST['msg']))

Which SMF ver.??  Post Notification is for 2.x... I have made changes so it works with 1.1.x and will post them soon
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 05, 2009, 02:47:14 PM
Quote from: Bernard T. on August 05, 2009, 02:45:52 PM
Quote from: TheListener on August 05, 2009, 02:22:56 PM
Have this error when I go to reply to a post in the forum.
Was after a failed attempt to add the Post Notification to the chat.
The guilty line is: elseif (empty($_REQUEST['msg']))

Which SMF ver.??  Post Notification is for 2.x... I have made changes so it works with 1.1.x and will post them soon

2.0 rc1-1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 05, 2009, 03:22:38 PM
I have just upgraded to SMF 2.0 rc 1.2 from 1.1.10. When finished I got error message caused by ajaxchat. I had to upload the last file in Load.php to get into site. In the package section - browse packages there is nothing listed for Ajaxchat. When I go to the installed packages it shows up. When I go to uninstall from that section it says that it can not find it. I know that I will have to uninstall manually but not sure what to parse for it. Do I use the 1.1.10 or 2.0 Rc 1.2? Also at one time I had similar issue and used a tool that I brought up on my browser to give me the manual instructions for uninstalling. Not sure what it was called or link to it. Can someone tell me what I should be doing? Already posted in the upgrade section of the forum but not a lot of help with this particular mod
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bernard T. on August 05, 2009, 03:36:24 PM
Quote from: ScottDB on August 05, 2009, 03:22:38 PM
I have just upgraded to SMF 2.0 rc 1.2 from 1.1.10.
Scott, you've should uninstall all mods prior to upgrade! Now if you only need to uninstall the AJAX Chat mod go and reverse the changes listed in parsed installation instructions (if still found in files)...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Wiskycoo on August 05, 2009, 03:48:39 PM
did i ask wrong? did i miss a solution perhaps, that one of you could point me in the direction of so i could try it? its just a connection 500 error and the permission files were changed to 775...but still not working...anyway, hopefully someone can shed some light on it for me.

Thanks.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 05, 2009, 03:54:32 PM
Can anyone help with this?

Quote from: planethax on August 04, 2009, 05:36:01 PM
Ok, I have 2 issues I need help with, both are very similar.

Ajax Chat is integrated into SMF and my SMF is integrated into PHPIzabi.

I also have the shoutbox (copy/pasted code into footer) on every page.

My first issue is, when I goto my site, I goto chat it will not let me access, I have to goto SMF forum page first, then to chat,
Similarly, when using shoutbox, the username does not show(shows just a number) until I visit SMF forum, then the username is there until session has expired.


I hope this makes sense and someone can help out with this.

Thanx so much!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bernard T. on August 05, 2009, 04:10:04 PM
Quote from: Wiskycoo on August 05, 2009, 03:48:39 PM
did i ask wrong? did i miss a solution perhaps, that one of you could point me in the direction of so i could try it? its just a connection 500 error and the permission files were changed to 775...but still not working...

try 755 or 750 or 644 (this way down)

Quote from: planethax on August 05, 2009, 03:54:32 PM
Ajax Chat is integrated into SMF and my SMF is integrated into PHPIzabi.

This sounds like an obvious issue with the bridge PHPIzabi <> SMF. I supose there is just "session" opened within PHPIzabi and SMF just looks into PHPIzabis sessions to check if user is already logged in. So, AJAX Chat looks only to SMF open "sessions" for the user, but there is none, as mentioned before, it is open with PHPIzabi.
So, you have to either find a bridge PHPIzabi <> AJAX Chat or try to find a solution with the PHPIzabi <> SMF bridge programmers..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 05, 2009, 04:11:18 PM
QuoteQuote from: ScottDB on Today at 12:22:38 PM (http://index.php?topic=257973.msg2196052#msg2196052)I have just upgraded to SMF 2.0 rc 1.2 from 1.1.10.
Scott, you've should uninstall all mods prior to upgrade! Now if you only need to uninstall the AJAX Chat mod go and reverse the changes listed in parsed installation instructions (if still found in files)...                                                                                                                     
Thanks for the reply. That's what I thought I should do. Just wanted to make sure. By the way I thought I had read the instructions for the upgrade completely and I didn't see anywhere saying to delete all mods. Maybe that should be in the instructions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Wiskycoo on August 05, 2009, 04:41:20 PM
Quote from: Bernard T. on August 05, 2009, 04:10:04 PM

try 755 or 750 or 644 (this way down)

750 did the trick!  Thanks so much! Brilliant!
Title: Re: AjaxChat Integration
Post by: Bernard T. on August 05, 2009, 04:47:29 PM
Here is a extended version of SunKing's Post Notification (http://www.simplemachines.org/community/index.php?topic=257973.msg2067337#msg2067337) tweak for SMF 1.1.X only


1.) changes to the database are the same:
Quote from: SunKing on May 19, 2009, 12:23:29 PM
The first step is to change a value for one of the database entries, so make backups! I think this could be made a permanent change without ill consequences maybe in future releases. ;)

The dateTime field of ajax_chat_messages needs the type changed to timestamp.


2.) Open /Sources/Post.php and search for
notifyMembersBoard();

and replace it with:

// ***** Ajax Chat New Topic Notification *****
{
notifyMembersBoard();

global $user_info, $board, $scripturl, $boardName, $topic;

    db_query("INSERT INTO `smf_ajaxchat_messages` (`userID` ,`userName` ,`userRole` ,`channel` ,`ip` ,`text`)
VALUES (".$posterOptions['id']." , '".$txt['chatbot_name']."' , 4 , 0 , '".$posterOptions['ip']."', '[b]".$user_info['name']."[/b] [i]" . $txt['chatbot_msg_new_topic'] . " [url=".$scripturl . "?topic=" . $topic . ".new#new"."]".html_entity_decode($_POST['subject'])."[/url][/b][/color][/i]')", __FILE__, __LINE__);
  }
    // ******* End Ajax Chat New Topic Notification *******
   



Also search for:
sendNotifications($topic, 'reply');

replace it with:


// ****** Ajax Chat New Reply Notification ******
{
sendNotifications($topic, 'reply');

global $user_info, $board, $scripturl, $boardName, $topic;
    db_query("INSERT INTO `smf_ajaxchat_messages` (`userID` ,`userName` ,`userRole` ,`channel` ,`ip` ,`text`)
       VALUES (".$posterOptions['id']." , '".$txt['chatbot_name']."' , 4 , 0 , '".$posterOptions['ip']."', '[b]".$user_info['name']."[/b] [i]" . $txt['chatbot_msg_new_reply'] . " [url=".$scripturl . "?topic=" . $topic . ".new;topicseen#new"."]".html_entity_decode($_POST['subject'])."[/url][/b][/color][/i]')", __FILE__, __LINE__);

     }
// ***** End Ajax Chat New Reply Notification




3.) Open /Themes/default/languages/Modifications.english.php (for english language) and add this code immediately before ending ?>

//Start AjaxChat Post Notification
$txt['chatbot_name'] = 'ChatBot';
$txt['chatbot_msg_new_topic'] = 'has just published a [color=red][b]new topic:';
$txt['chatbot_msg_new_reply'] = 'has just published a [color=red][b]new reply to topic:';
//End AjaxChat Post Notification


That's it. Now, every time someone posts, a nice notification will popup in the chat/shoutbox displaying a link to the new post/reply.

The extended features of this tweak are:
- chat posts are made by ChatBot (that you can name as you like), and not as from admin like in origina
- all language strings are separated to language files
- added some coloring...
- I'm sure I forgot something so check it out ;)

Thanks and credits go to Sunking and all the others he mentioned in his original post (http://www.simplemachines.org/community/index.php?topic=257973.msg2067337#msg2067337).

Enjoy!

P.S. I hope the maintainer of this modification could integrate this tweak into next standard version, I'm sure many would be happy with such function...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: REGNARTS_ on August 05, 2009, 04:57:43 PM
Ok, so I have another problem. Can someone help me understand this problem better? This error below only shows up under some users. I'm using the SMF 2.0 RC1.2 with the outline theme by dzinerstudios. The error is:


8: Undefined index: chat
File: /xxx/htdocs/forum/cache/lang_SPortal_english_outline_20rc1.php (eval?)
Line: 45


I thought it was something in the cache so I also emptied out the cache but every time the same users log on and I check the error log, I always get the error.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 05, 2009, 07:16:25 PM
Quote from: Wiskycoo on August 05, 2009, 03:48:39 PM
did i ask wrong? did i miss a solution perhaps, that one of you could point me in the direction of so i could try it? its just a connection 500 error and the permission files were changed to 775...but still not working...anyway, hopefully someone can shed some light on it for me.

Thanks.

The files should be 755 not 775
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drav on August 05, 2009, 07:59:52 PM
Quote from: Lunny
Installed it, edited the files that had to be edited and it's working smooth.

A few questions to those that use it:

1. How can i stop people from joining private channels. I want em all to be in /public channel?
2. How can i stop them changing nicknames in chat?

Lunny, glad you got it going.

Did you check out this http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

All your answers are in there. You need to make a few changes in ./chat/lib/config.php. To stop users changing their nicknames you need to find

// Allow/Disallow users to change their userName (Nickname):
$config['allowNickChange'] = true;


And change true to false. For the private channel issue, you simply need to find

// Enable/Disable private Channels:
$config['allowPrivateChannels'] = true;


And change true to false.
Naturally you'll have to download the config.php file through FTP and then upload the edited version to overwrite the old one.

To have just one channel, you'll need to delete all your other channels. Check out that thread to do that. The answer is there, as I used it to remove some channels and edit the names of some others.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ClassicX on August 05, 2009, 10:18:45 PM
EDIT:

Well I just upgraded to version 3.2.1, the little circle is green, but it's just me in here for now, gonna wait till more people join to see if I still get 503 error.

EDIT2:

Actually I still get the 503 error.

What could it be? It's not write permissions because its set at 755.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bernard T. on August 06, 2009, 02:24:30 AM
Quote from: TheListener on August 05, 2009, 07:16:25 PM
Quote from: Wiskycoo on August 05, 2009, 03:48:39 PM
its just a connection 500 error and the permission files were changed to 775...

The files should be 755 not 775

Quote from: Wiskycoo on August 05, 2009, 04:41:20 PM
Quote from: Bernard T. on August 05, 2009, 04:10:04 PM

try 755 or 750 or 644 (this way down)
750 did the trick!  Thanks so much! Brilliant!

750 is always better than 755 ;)  ... (it means only owner and group can read, noone else on the server, and it also means the server is in this segment properly configured)


Quote from: ClassicX on August 05, 2009, 10:18:45 PM
Actually I still get the 503 error.

What could it be? It's not write permissions because its set at 755.

no, it is not permissions, HTTP Error 503 is "Service Unavailable" (http://www.checkupdown.com/status/E503.html), this means server is overloaded or under maintenance... contact your host about it for assistance
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bigjim on August 06, 2009, 04:39:57 AM
Hey Guys,

Installed this great mod on our new forum and although its running great its chucking loads of errors up
Running
SMF 2.0 RC1.2
Add IP2Location to Track IP 1.2
SimplePortal 2.2.2
AjaxChat Integration 3.2.1
SMF Classifieds 1.2.25a

/smf/index.php?action=post2;board=8;preview;xml
8: Undefined index: chat
File: /home/nessrnet/public_html/smf/Sources/Subs.php
Line: 3718

The top line changes to loads of different things but the file and line are always the same.

This is what was on line 3718 of subs.php

$chatButton = $txt['chat'];

Any ideas guys ?

With Thanks
Jim
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 06, 2009, 05:36:11 PM
Hello everyone, sorry for the absense I was without a computer for awhile as I had some serious probs. Now I have a new puter and I'm still restoring data so I should be back in full swing here shortly :D

Thank you very much to everyone who helped support this Mod.

If there has been anything that has been missed please repost, I still have to install the new version so hopefully some of the previous issues have been fixed.

Nice to be back!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 06, 2009, 05:38:03 PM
Been missing you bud.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: htgr2001 on August 06, 2009, 07:04:09 PM
Hi guys 

I have just started messing about with SMF and i dare say this is a great mod but i have a few small questions if you dont mind.

So thats my current setup:

Version Information:
Forum version: SMF 1.1.10
Current SMF version: SMF 1.1.10
PHP version: 5.2.10
MySQL version: 5.0.84-1
Server version: Apache
GD version: bundled (2.0.34 compatible)


Using the DarkBreak Theme:

http://custom.simplemachines.org/themes/index.php?lemma=486

Problem:

So i have installed the ajax integration chat mod, then went on using the 1.1.10 parse instructions to install it in my custom theme.  First thing i noticed i dont have two files that according to the instructions i should edit in the theme languages folder:

Help.english.php
Modifications.english.php

Also in the file index.template.php i wasnt able replace, has instructed, the following code since it doesnt exist:

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}




I did the rest according to instructions and the chat seems to be working great but i have two small issues that i would like your help with.


First the chat tab has a different layout of the rest:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg515.imageshack.us%2Fimg515%2F4421%2Fquestions.png&hash=bb7c664da66f359b04bb264f8fd80622ab4979a8)

How can i use the same style? also the chat tab also disappears if i change the language from English to a custom one how can i stop that from happening?

Not sure it's the right section of the forum for the questions but thanks for any responses in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on August 06, 2009, 09:33:10 PM
I am having trouble with 2 manual entries on my BlackRain V2 theme by crip. (SMF1.1.10 and TPv1.0.6beta2)

Both edits are in the index.template.php (attached)

2. Beside of chat button.
3. Below of total time logged in.

When i put in this edit in get errors.

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
if (!empty($modSettings['enableChatBelowPM'])){
$count = count(chatOnlineUsers());
if ($count == 0 )
echo '<br />' . $txt['chat_no_user'];
elseif ($count == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' . $count . $txt['chat_users']. '<br />';
}
echo ' </span>';
}


I tried several times and at this point thought i should ask the pros
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 06, 2009, 09:37:30 PM
I use the same theme as you.

Instead of tinyportal I use simple portal.

If you want a look click on the signature.

Sorry I am unable to help with the error but there will be someone about.

What does the actual error say?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on August 07, 2009, 12:48:43 AM
Quote from: htgr2001 on August 06, 2009, 07:04:09 PM

First the chat tab has a different layout of the rest:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg515.imageshack.us%2Fimg515%2F4421%2Fquestions.png&hash=bb7c664da66f359b04bb264f8fd80622ab4979a8)

How can i use the same style? also the chat tab also disappears if i change the language from English to a custom one how can i stop that from happening?

Not sure it's the right section of the forum for the questions but thanks for any responses in advance.

It's because your custom theme uses list tabs instead of a table for the navigational menu. I've also had this issue. Check out this thread.

http://www.simplemachines.org/community/index.php?topic=325745.0

Hope it helps.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: htgr2001 on August 07, 2009, 04:18:02 AM
Thanks, dont know php at all but the thread had all i needed  ;)

..............


Ok i still have an issue I need help with; I can only login to the chat using the admin account.  I get the following message with the other account: "You can't access the chat."

Checked the configuration file and I found the permission code which seems to be correct:


// If enabled, the chat will only be accessible for the admin:
$config['chatClosed'] = false;


All other settings on the config file are default, anything else i am missing?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on August 07, 2009, 06:48:36 AM
OK I have looked all over this topic for an answer to this. Why do post in shout box sometimes disappear.

Thanks in advance if someone can help me out.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Baloch on August 07, 2009, 09:56:05 AM
My members are unable to log into chat room. while as an admin I am able to login.
www.baask.com/diwwan/chat

Plz advice what to do?

Thanks in advance for your prompt response.

Regards
Raji
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 07, 2009, 10:13:37 AM
@ htgr2001

For the the edit you couldn't find do this

Find
            // Only tell them about their messages if they can read their messages!
            if ($context['allow_pm'])
                echo '<li>' ,$txt[152], ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt[153] : $txt[471], '</a>', $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'],'</li>';


Add After
             // Show # of Users in Chat below PM
         if (!empty($modSettings['enableChatBelowPM'])){
             $count = count(chatOnlineUsers());
             if ($count == 0 )
                 echo '<br />' . $txt['chat_no_user'];
             elseif ($count == 1 )
               echo '<br />  1' . $txt['chat_aUser']. '.<br />';
             else
               echo '<br /> ' . $count . $txt['chat_users']. '<br />';
         }
         echo '                </span>';


For your Chat Button use this


    // the [chat] button
    $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
    $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
    echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
        <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>';



Regarding the Chat Button dissapearing when chaging languages, in your Themes/default/languages make the same edits for that you did to your Modifications.english.php file to your Modifications.english-utf8.php file as well if you have you forum set to UTF-8


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 07, 2009, 10:18:08 AM
Quote from: Baloch on August 07, 2009, 09:56:05 AM
My members are unable to log into chat room. while as an admin I am able to login.
www.baask.com/diwwan/chat (http://www.baask.com/diwwan/chat)

Plz advice what to do?

Thanks in advance for your prompt response.

Regards
Raji

Be sure to set the permission in your Forum Admin
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 07, 2009, 10:40:01 AM
Quote from: bound2bmine on August 07, 2009, 06:48:36 AM
OK I have looked all over this topic for an answer to this. Why do post in shout box sometimes disappear.

Thanks in advance if someone can help me out.

You mean it disappears before you eyes or you come back after awhile and it's gone?

You can set how many lines you want to appear and for how long you want them to stay for in your /chat/lib/config.php file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 07, 2009, 10:41:26 AM
Quote from: htgr2001 on August 07, 2009, 04:18:02 AM
Thanks, dont know php at all but the thread had all i needed  ;)

..............


Ok i still have an issue I need help with; I can only login to the chat using the admin account.  I get the following message with the other account: "You can't access the chat."

Checked the configuration file and I found the permission code which seems to be correct:


// If enabled, the chat will only be accessible for the admin:
$config['chatClosed'] = false;


All other settings on the config file are default, anything else i am missing?

You will also need to set the permissions for your Membergroups in your forums Admin Panel
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on August 07, 2009, 10:48:34 AM
Quote from: mrtrc266 on August 07, 2009, 10:40:01 AM
Quote from: bound2bmine on August 07, 2009, 06:48:36 AM
OK I have looked all over this topic for an answer to this. Why do post in shout box sometimes disappear.

Thanks in advance if someone can help me out.



You mean it disappears before you eyes or you come back after awhile and it's gone?

You can set how many lines you want to appear and for how long you want them to stay for in your /chat/lib/config.php file

No they disappear after a while. I see where you adjust how many lines to show but not duration.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mu3rt3 on August 07, 2009, 11:42:02 AM
What would be best way to remove sounds from shoutbox?

Also thank you for awesome mod.  :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Baloch on August 07, 2009, 12:44:10 PM
Quote from: mrtrc266 on August 07, 2009, 10:18:08 AM
Quote from: Baloch on August 07, 2009, 09:56:05 AM
My members are unable to log into chat room. while as an admin I am able to login.
www.baask.com/diwwan/chat (http://www.baask.com/diwwan/chat)

Plz advice what to do?

Thanks in advance for your prompt response.

Regards
Raji

Be sure to set the permission in your Forum Admin
Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: htgr2001 on August 07, 2009, 01:48:33 PM
@ mrtrc266 thanks for your reply and help, most seems to be working fine now but one thing.


Quote from: mrtrc266 on August 07, 2009, 10:13:37 AM
Regarding the Chat Button dissapearing when chaging languages, in your Themes/default/languages make the same edits for that you did to your Modifications.english.php file to your Modifications.english-utf8.php file as well if you have you forum set to UTF-8

I dont have the Modifications.english-utf8.php file but i do have the following files in the same folder:

Modifications.english.php~
Modifications.portuguese_pt.php (portuguese is the installed custom language)

Should i apply the code changes done for Modifications.english.php to any of these? if yes i also had to change the Help.english.php file, should i replicate those changes to any of these files:

Help.english.php~
Help.portuguese_pt.php


Thanks for your help

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: philcross on August 07, 2009, 02:19:23 PM

OK - here is the solution for anyone who has Chat installed BUT cannot post anything when it opens - they just have a (mostly) blank page and the rooms etc are missing.

You need to download your .htaccess file from your forum directory (filezilla is a great free utility http://filezilla-project.org )

Edit the .htaccess file and add the following line in the actions area

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

Upload the .htaccess back to the forum directory.

Refresh your forum and then you can click Chat button and it all works OK.



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nicole_2008 on August 07, 2009, 06:09:54 PM
Hey i am trying to uninstall this mod but i keep getting this error.


An Error Has Occurred!
This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information. 


Is there a way to uninstall and delete this, any help appreciated.

I have the latest version installed if that helps.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: planethax on August 07, 2009, 08:08:50 PM
There is no automatic uninstall.

You would need to remove the changes manually.

Quote from: nicole_2008 on August 07, 2009, 06:09:54 PM
Hey i am trying to uninstall this mod but i keep getting this error.


An Error Has Occurred!
This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information. 


Is there a way to uninstall and delete this, any help appreciated.

I have the latest version installed if that helps.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on August 08, 2009, 01:18:46 AM
Quote from: TheListener on August 06, 2009, 09:37:30 PM
I use the same theme as you.

What does the actual error say?

Your site looks awesome! and thanks for the reply.

I have tried so many different ways to appling the code but still can not get it to work. So i have come to the conclusion that i will be happy if i could just get one of the 2 edits in the index.template.php file done then i would call it a done deal. :)

error 1 (index1.template.php)...file attached


Parse error: syntax error, unexpected T_ELSE in <EDIT BY ME>/forums/Themes/BlackRain_v/index.template.php on line 628

619: // the [chat] button
620: $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
621: $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
622: echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '"> </td>' : '', '
623: <td valign="top" class="maintab_back">
624: <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
625: </td>';
626:
627: // Otherwise, they might want to [logout]...

628: else

629: echo '<li><a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>', $txt[108], '</span></a></li>';
630:   echo '</ul></div>';
631: }
632:


if i move the edits on the end of "// Otherwise, they might want to [logout]..." code then i do not get an error. But i do end up with a chat button below the main menu with a text"chat" button however it does not show how many users are in the chat.

Did you get the button to work for you?

Sure would love to get some help on this great mod. everything else works great!

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 08, 2009, 01:23:55 AM
The button was no problem for me  :)

it is usually a theme related problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on August 08, 2009, 01:30:13 AM
i agree i just don't know php well enough to change the code to match the them :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 08, 2009, 01:47:26 AM
Quote from: htgr2001 on August 07, 2009, 01:48:33 PM
@ mrtrc266 thanks for your reply and help, most seems to be working fine now but one thing.


Quote from: mrtrc266 on August 07, 2009, 10:13:37 AM
Regarding the Chat Button dissapearing when chaging languages, in your Themes/default/languages make the same edits for that you did to your Modifications.english.php file to your Modifications.english-utf8.php file as well if you have you forum set to UTF-8

I dont have the Modifications.english-utf8.php file but i do have the following files in the same folder:

Modifications.english.php~
Modifications.portuguese_pt.php (portuguese is the installed custom language)

Should i apply the code changes done for Modifications.english.php to any of these? if yes i also had to change the Help.english.php file, should i replicate those changes to any of these files:

Help.english.php~
Help.portuguese_pt.php


Thanks for your help

That is exactly correct, just add the same edits to you specific language files.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 08, 2009, 01:49:10 AM
Hiya stranger hows the new pc?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 08, 2009, 01:56:30 AM
Quote from: Swayforth on August 08, 2009, 01:30:13 AM
i agree i just don't know php well enough to change the code to match the them :(

I messed with you index.template but it looks like it heavily Modded.

Create a test account on your forum and PM me the details, I'll take a look in the morning
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 08, 2009, 02:00:16 AM
Quote from: TheListener on August 08, 2009, 01:49:10 AM
Hiya stranger hows the new pc?

I'm lovin the new laptopm :D Still transfering all data tryin to get everything back in order LOL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 08, 2009, 02:08:45 AM
Quote from: mrtrc266 on August 08, 2009, 01:56:30 AM
Quote from: Swayforth on August 08, 2009, 01:30:13 AM
i agree i just don't know php well enough to change the code to match the them :(

I messed with you index.template but it looks like it heavily Modded.

Create a test account on your forum and PM me the details, I'll take a look in the morning

Er It is morning (7am).

In the UK it is anyways.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on August 08, 2009, 03:24:55 AM
Quote from: mrtrc266 on August 08, 2009, 01:56:30 AM
Quote from: Swayforth on August 08, 2009, 01:30:13 AM
i agree i just don't know php well enough to change the code to match the them :(

I messed with you index.template but it looks like it heavily Modded.

Create a test account on your forum and PM me the details, I'll take a look in the morning

pm sent

thank you for taking the time to help me!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: atha on August 08, 2009, 05:24:30 AM
I would love to place a shoutbox somewhere else on my index.
I tried to look at the indextemplate and boardindextemplate but i can't find the shoutbox code.
Could you help me with that?

Thanks
Title: no text displayed in the settings
Post by: VedicJunction on August 08, 2009, 07:19:31 AM
i applied the mod3.2.1 after a fresh install of smf1.1.10 but i dont see any text in the options.. the chat is working fine though..


please see the attachment for error.... i searched the forum but i cant find the right keywords
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mu3rt3 on August 08, 2009, 07:55:54 AM
Quote from: Mu3rt3 on August 07, 2009, 11:42:02 AM
What would be best way to remove sounds from shoutbox?

Also thank you for awesome mod.  :D

I did set:
// Defines if sounds are played:
audio: true,

To false, in /shoutbox/js/config.js file
It did not disable sounds in shoutbox i also needed to add the false in:
/chat/js/config.js file
Then it worked sounds are now disabled in chat as default.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: StuMN247 on August 08, 2009, 08:39:06 AM
Hey,
Installed this, thanks.

But I keep getting an error: (13:33:21) ChatBot: Error: Connection status: 404

Have a look: www.musicnews247.com/forum

Any help would be great.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bigjim on August 08, 2009, 02:37:35 PM
Wondered if anyone knew what this was or if its happening to you ? Anyone ?

Jim

Quote from: Bigjim on August 06, 2009, 04:39:57 AM
Hey Guys,

Installed this great mod on our new forum and although its running great its chucking loads of errors up
Running
SMF 2.0 RC1.2
Add IP2Location to Track IP 1.2
SimplePortal 2.2.2
AjaxChat Integration 3.2.1
SMF Classifieds 1.2.25a

/smf/index.php?action=post2;board=8;preview;xml
8: Undefined index: chat
File: /home/nessrnet/public_html/smf/Sources/Subs.php
Line: 3718

The top line changes to loads of different things but the file and line are always the same.

This is what was on line 3718 of subs.php

$chatButton = $txt['chat'];

Any ideas guys ?

With Thanks
Jim
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bigjim on August 08, 2009, 02:39:29 PM
Quote from: StuMN247 on August 08, 2009, 08:39:06 AM
Hey,
Installed this, thanks.

But I keep getting an error: (13:33:21) ChatBot: Error: Connection status: 404

Have a look: www.musicnews247.com/forum

Any help would be great.

Have you changed the file permissions ?

QuoteThere are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mouthrax on August 08, 2009, 02:41:34 PM
Hi guys, has this issue been covered?

If not please help :)

I am getting the following errors at the top of chat and also the chat and the shoutbox do not show any text that is input?

Notice: Undefined index: smfVersion in /home/fhlinux147/t/thepainteddragon.co.uk/user/htdocs/forum/Sources/Load.php(1753) : eval()'d code on line 325

Notice: Undefined index: time_offset in /home/fhlinux147/t/thepainteddragon.co.uk/user/htdocs/forum/Sources/Subs.php on line 832
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Pinball Nation on August 08, 2009, 04:49:10 PM
Hello everyone, I need some help installing Ajax chat intergration 3.2.1.Im using smf version 1.1.10 an this is the error message i get.  Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF. 7. Execute Modification ./Themes/default/index.template.php Test failed.These are the mods i have installed.  Mod Name Version 
1. SMF 1.0.16 / 1.1.8 Update 1.0 [ Uninstall ]
2. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update 1.0 [ Uninstall ]
3. SMF Arcade 2.0.18 [ Uninstall ]
4. Order by Length(code) fix 1.0 [ Uninstall ]
5. Enhanced Profile Header 1.0 [ Uninstall ]
6. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update 1.0 [ Uninstall ]
7. SMF Gallery Lite 2.0.5 [ Uninstall ]
8. MessagePreviewOnHover 1.7 [ Uninstall ]
9. Colorize Authors Postsbackground 1.1 [ Uninstall ]
10. Tar Game Uploader 1.0 [ Uninstall ]
11. Welcome Topic Mod 2.0.2 [ Uninstall ]
12. SimplePortal 2.2.2 [ Uninstall ]
13. SMFbuy 1.6 [ Uninstall ]
14. Aeva ~ Auto-Embed Video & Audio 6.9.99 [ Uninstall ]

If anyone could help me out i would be thankful.Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mark S on August 08, 2009, 07:45:14 PM
Ok, it's been a couple weeks and I guess this question got passed up in the wash of requests:

v2.0 RC1.2

The shoutbox defaults to a 24 hour clock timestamp.  I want to change it to a 12 hr, am/pm timestamp.

Found settings in the shoutbox/js/chat.js file and attempted to modify them using the smf forum definitions but the format doesn't seem to be the same.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 09, 2009, 01:41:04 AM
Can the instructions in the link be added to a smf forums chat?

http://www.net4seven.de/phpbb3/forum/viewtopic.php?f=9&t=277
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on August 09, 2009, 02:28:59 AM
i tried those instructions today and got an error with this code

             $userData['groupID'] = $user->data['group_id'];

             if($auth->acl_get('a_')) {
                $userData['userRole'] = AJAX_CHAT_ADMIN;
             } elseif($auth->acl_get('m_')) {
                $userData['userRole'] = AJAX_CHAT_MODERATOR;
             } else {
                // Check if we have a member of our custom user group
                if($userData['groupID'] == 7)
                   $userData['userRole'] = AJAX_CHAT_VIP;
                else
                   $userData['userRole'] = AJAX_CHAT_USER;
             }


each time it was with this line only

if($userData['groupID'] == 7)

i verified the correct group in the forum and also the database. Tried matching up with other code and still no winner.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 09, 2009, 02:37:01 AM


each time it was with this line only

if($userData['groupID'] == 7)

i verified the correct group in the forum and also the database. Tried matching up with other code and still no winner.
[/quote]

try = instead of ==
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Neo_TE on August 09, 2009, 06:32:29 AM
Any possibility to RESIZE the shout box. I want to increase the VERTICAL LENGTH of the shout box in the index page.  ???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Capion on August 09, 2009, 08:46:44 AM
2 questions:

How can I make it so members of my forum/portal, automatically is logged in, when starting the chat?

How can I control the durance of shouts?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on August 09, 2009, 10:38:33 AM
Quote from: TheListener on August 09, 2009, 02:37:01 AM


each time it was with this line only

if($userData['groupID'] == 7)

i verified the correct group in the forum and also the database. Tried matching up with other code and still no winner.

try = instead of ==
[/quote]

nice al that and all i had to do was remove the extra = ... you da man!

thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 09, 2009, 02:06:52 PM
You mean the edit in the link I gave actually works?

'faints'

:o :o
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on August 09, 2009, 02:12:33 PM
well its not giving me an error so well see if it works one folks get online
;D


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 09, 2009, 02:13:12 PM
Quote from: Neo_TE on August 09, 2009, 06:32:29 AM
Any possibility to RESIZE the shout box. I want to increase the VERTICAL LENGTH of the shout box in the index page.  ???

Check out yoursite/chat/css/shoutbox.css You'll see it as well as many other options as well
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 09, 2009, 02:16:07 PM
Hey mrtrc266 welcome back stranger.

Regarding the tips and tricks in ya signature any possibility of the / afk and the profanity censor edits being added. They work very well in chat.

Title: Re: no text displayed in the settings
Post by: mrtrc266 on August 09, 2009, 02:17:24 PM
Quote from: VedicJunction on August 08, 2009, 07:19:31 AM
i applied the mod3.2.1 after a fresh install of smf1.1.10 but i dont see any text in the options.. the chat is working fine though..


please see the attachment for error.... i searched the forum but i cant find the right keywords

Your missing you language file edits...add this to yourforum/Themes/default/languages/modifications.english.php and or Modifications.english-utf8.php (if you have your forum set to UTF-8

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can't.';
$txt['permissionname_shout_access'] = 'Can shout';
$txt['permissionhelp_shout_access'] = 'Give access to write in shout box.';
$txt['permissionname_shout_view'] = 'View shoutBox';
$txt['permissionhelp_shout_view'] = 'Give access to view the shoutBox';
$txt['permissionname_shout_mod'] = 'Moderate shoutBox';
$txt['permissionhelp_shout_mod'] = 'Give access to moderate the shoutBox.';
$txt['permissionname_chat_mod'] = 'Moderate chat';
$txt['permissionhelp_chat_mod'] = 'Give access to moderate the chat.';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 09, 2009, 02:18:40 PM
Quote from: TheListener on August 09, 2009, 02:16:07 PM
Hey mrtrc266 welcome back stranger.

Regarding the tips and tricks in ya signature any possibility of the / afk and the profanity censor edits being added. They work very well in chat.

Thanks....yeah I'll add the link to the FAQ's section....thanks for testing it out :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 09, 2009, 02:19:26 PM
Quote from: atha on August 08, 2009, 05:24:30 AM
I would love to place a shoutbox somewhere else on my index.
I tried to look at the indextemplate and boardindextemplate but i can't find the shoutbox code.
Could you help me with that?

Thanks

Check out the link in my signature, there is an edit to move the shoutbox where you want.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 09, 2009, 02:21:24 PM
Quote from: ThePharaoh on August 08, 2009, 07:45:14 PM
Ok, it's been a couple weeks and I guess this question got passed up in the wash of requests:

v2.0 RC1.2

The shoutbox defaults to a 24 hour clock timestamp.  I want to change it to a 12 hr, am/pm timestamp.

Found settings in the shoutbox/js/chat.js file and attempted to modify them using the smf forum definitions but the format doesn't seem to be the same.

Thanks

Do that edit to chat/js/chat.js and also take a look at chat/lib/config.php Not sure if there's anything in there but take a look
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 09, 2009, 02:23:46 PM
Quote from: Pinball Nation on August 08, 2009, 04:49:10 PM
Hello everyone, I need some help installing Ajax chat intergration 3.2.1.Im using smf version 1.1.10 an this is the error message i get.  Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

7. Execute Modification ./Themes/default/index.template.php Test failed.

Throw the Mod in a Package Parser  (http://resourcez.biz/PackageParser/index.php) and do the edits manually, just look for the edits to the file that failed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on August 09, 2009, 02:25:57 PM
Quote from: Capion on August 09, 2009, 08:46:44 AM
2 questions:

How can I make it so members of my forum/portal, automatically is logged in, when starting the chat?

How can I control the durance of shouts?

They should be logged into to the chat when they log into the forum.

For the duration of the chat, how many stay on reentry etc look at chat/lib/config.php There are tons of settings in there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on August 09, 2009, 02:26:19 PM
Quote from: mrtrc266 on August 09, 2009, 02:18:40 PM
Quote from: TheListener on August 09, 2009, 02:16:07 PM
Hey mrtrc266 welcome back stranger.

Regarding the tips and tricks in ya signature any possibility of the / afk and the profanity censor edits being added. They work very well in chat.

Thanks....yeah I'll add the link to the FAQ's section....thanks for testing it out :D

i just put in the afk code and it works good for me too. And thanks again for your assistance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 09, 2009, 03:02:19 PM
Been thinking ( dangerous I know)

So users enter an empty chatroom should the following be set to false

// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;


EDIT: To enter an empty chat  change true for false
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 09, 2009, 03:25:47 PM
To prevent users from changing their names:

// Allow/Disallow users to change their userName (Nickname):
$config['allowNickChange'] = true;

Change true to false
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Console Network on August 09, 2009, 05:05:49 PM
Hey can someone help me i did what it said but i get this error

"Database Error
Table 'a9138292_CN.smf_ajaxchat_online' doesn't exist
File: /home/a9138292/public_html/Sources/Load.php
Line: 2242 "
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 09, 2009, 06:34:01 PM
Quote from: Console Network on August 09, 2009, 05:05:49 PM
Hey can someone help me i did what it said but i get this error

"Database Error
Table 'a9138292_CN.smf_ajaxchat_online' doesn't exist
File: /home/a9138292/public_html/Sources/Load.php
Line: 2242 "

What was it you were trying to do?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Console Network on August 09, 2009, 09:26:35 PM
Quote from: TheListener on August 09, 2009, 06:34:01 PM
Quote from: Console Network on August 09, 2009, 05:05:49 PM
Hey can someone help me i did what it said but i get this error

"Database Error
Table 'a9138292_CN.smf_ajaxchat_online' doesn't exist
File: /home/a9138292/public_html/Sources/Load.php
Line: 2242 "

What was it you were trying to do?
install Ajax chatbox
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 09, 2009, 09:28:57 PM
Have you tried manual edits via the parser?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 09, 2009, 10:02:16 PM
Made an edit ie number of boards in chat.

Since then I haven't been able to see what I type into the chatroom.

Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on August 10, 2009, 09:29:27 AM
Quote from: TheListener on August 09, 2009, 10:02:16 PM
Made an edit ie number of boards in chat.

Since then I haven't been able to see what I type into the chatroom.

Any ideas?

This is what i see when i go to your chatroom
Parse error: syntax error, unexpected '}' in /home/visionar/public_html/chat/lib/class/AJAXChat.php on line 350


Title: Re: no text displayed in the settings
Post by: VedicJunction on August 10, 2009, 09:51:29 AM
Quote from: mrtrc266 on August 09, 2009, 02:17:24 PM
Quote from: VedicJunction on August 08, 2009, 07:19:31 AM
i applied the mod3.2.1 after a fresh install of smf1.1.10 but i dont see any text in the options.. the chat is working fine though..


please see the attachment for error.... i searched the forum but i cant find the right keywords

Your missing you language file edits...add this to yourforum/Themes/default/languages/modifications.english.php and or Modifications.english-utf8.php (if you have your forum set to UTF-8

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can't.';
$txt['permissionname_shout_access'] = 'Can shout';
$txt['permissionhelp_shout_access'] = 'Give access to write in shout box.';
$txt['permissionname_shout_view'] = 'View shoutBox';
$txt['permissionhelp_shout_view'] = 'Give access to view the shoutBox';
$txt['permissionname_shout_mod'] = 'Moderate shoutBox';
$txt['permissionhelp_shout_mod'] = 'Give access to moderate the shoutBox.';
$txt['permissionname_chat_mod'] = 'Moderate chat';
$txt['permissionhelp_chat_mod'] = 'Give access to moderate the chat.';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration

thanks man.. it works now!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JBasco20 on August 10, 2009, 02:14:21 PM
i having a problem i have this working on my site however i have edited the config.php  file and changed the setup to where it defaults to black color style and it doesnt and i also put in the channel limit and it doesnt change that eithier can you please give me some suggestions???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Neo_TE on August 10, 2009, 02:52:23 PM
I am unable to do the SMILEY POPUP mod posted in the following url

http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

coz I am unable to FIND the following in the "index.template.php" file. I use DILBERMC theme.
:o


      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


Please help me. I want to add custom smileys and I can't do it without enabling the "SMILEY POPUP" mod..

I have attached the "index.template.php" & screen shot of the shout with this post.

Also I have done all the MANUAL EDIT using the Package Parser.

???

PS : I am not using CHAT.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: genie on August 10, 2009, 10:20:25 PM
I have a fresh install of 2.0RC1.  It is online but not live.

I have installed this nice looking mod, but apparently haven't done something correctly.

I am getting the shout box which shows and get "ChatBot: Error: Connection status: 500"

I also do not see any "chat button"

Although the package installer said everything was successful, I don't see a chat or shoutbox directory on my server.

Does that sounds like it installed correctly or should I do a manual install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mark S on August 10, 2009, 10:32:14 PM
v2.0 RC1.2

The shoutbox defaults to a 24 hour clock timestamp.  I want to change it to a 12 hr, am/pm timestamp.

QuoteFound settings in the shoutbox/js/chat.js file and attempted to modify them using the smf forum definitions but the format doesn't seem to be the same.

Thanks

QuoteDo that edit to chat/js/chat.js and also take a look at chat/lib/config.php Not sure if there's anything in there but take a look

I know where to find them, I don't know what to change them to though.  I tried the forum codes and nada.  I unistalled the mod and re-installed.  Same issue.  Here's what is seen in the shoutbox:

(%I:%M) Arberg0: all i see is %%m
(%I:%M) ibdilbert01: hmmm
(%I:%M) Phåråoh: < - - - TIME STAMP CODE

Funny thing, the time shows correctly in the Chat?!  And... get this.  Some of the members see the timestamp.  Others see the code!  This is way out in cyber-screwy-space.

Suggestions?

Update - seeing the code viewed corrected, still need to know how to change from 24 to 12 clock.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 10, 2009, 10:44:51 PM
Quote from: genie on August 10, 2009, 10:20:25 PM
I have a fresh install of 2.0RC1.  It is online but not live.

I have installed this nice looking mod, but apparently haven't done something correctly.

I am getting the shout box which shows and get "ChatBot: Error: Connection status: 500"

I also do not see any "chat button"

Although the package installer said everything was successful, I don't see a chat or shoutbox directory on my server.

Does that sounds like it installed correctly or should I do a manual install?

Go to one of mrtrc266s posts.

In his signature you will see a hints and tricks  link.

The information you require is in there. Your chat and shout permissions have to be set to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 10, 2009, 10:47:25 PM
looking for that link to a 500 error message fix. Cant seem to find it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 10, 2009, 10:49:41 PM
Quote from: ScottDB on August 10, 2009, 10:47:25 PM
looking for that link to a 500 error message fix. Cant seem to find it


If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nuts_fever_007 on August 11, 2009, 12:32:34 AM
I just installed Ajax chat & shoutbox but i am having problem with it..... i cannot able to shout or chat with people...so basically when i shout something in shoutbox nothing would come up....can someone help me to solve this problem...thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 11, 2009, 12:34:01 AM
Quote from: nuts_fever_007 on August 11, 2009, 12:32:34 AM
I just installed Ajax chat & shoutbox but i am having problem with it..... i cannot able to shout or chat with people...so basically when i shout something in shoutbox nothing would come up....can someone help me to solve this problem...thank you

what is the link to your forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 11, 2009, 12:46:57 AM
Thanks so much. Couldn't remember which file it was that I had to change permissions on. Working now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nuts_fever_007 on August 11, 2009, 01:46:25 AM
My link to the forum... www.nick4all.com

Quote from: TheListener on August 11, 2009, 12:34:01 AM
Quote from: nuts_fever_007 on August 11, 2009, 12:32:34 AM
I just installed Ajax chat & shoutbox but i am having problem with it..... i cannot able to shout or chat with people...so basically when i shout something in shoutbox nothing would come up....can someone help me to solve this problem...thank you

what is the link to your forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nuts_fever_007 on August 11, 2009, 01:50:48 AM
ya...that's the one... http:www.nick4all.com (http://www.nick4all.com)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 11, 2009, 01:54:12 AM
to link forums use the insert hyperlink tab which is located next to the images tab on the row above the smileys.

I aint an expert but it looks like an issue with the pretty url mod.

Will get the info ya need.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 11, 2009, 01:58:34 AM
If you have problems and you also have Pretty URL's installed please read this link.

http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536 (http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nuts_fever_007 on August 11, 2009, 02:22:42 AM
hey thanx for ur help...seems like its working now...

really appreciate
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 11, 2009, 02:23:58 AM
Not bad for someone who isn't a computer wizard  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mu3rt3 on August 11, 2009, 07:07:46 AM
Is there settings somewhere how many messages does the shoutbox show?
Title: Re: AjaxChat Integration (3.2 Released)
Post by: damascus on August 11, 2009, 09:38:51 AM
Quote from: jbloudg20 on July 13, 2009, 02:11:31 PM
Quote from: mrtrc266 on July 13, 2009, 12:37:04 PM
Quote from: jbloudg20 on July 13, 2009, 11:54:25 AM
I'm having a problem installing this mod.

3.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

If I continue with the install anyway:

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8
File: /homepages/32/d206905265/htdocs/CTRiders/Packages/temp/Tables_1.1.X.php
Line: 30

This is odd, there was another member who gets this same error, what is your mysql and php version.....is it version 4 by any chance?

Yes it is. My database is MySql 4.0

I also get this error. Has a solution been found yet?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Neo_TE on August 11, 2009, 09:39:36 AM
Quote from: Neo_TE on August 10, 2009, 02:52:23 PM
I am unable to do the SMILEY POPUP mod posted in the following url

http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

coz I am unable to FIND the following in the "index.template.php" file. I use DILBERMC theme.
:o


      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


Please help me. I want to add custom smileys and I can't do it without enabling the "SMILEY POPUP" mod..

I have attached the "index.template.php" & screen shot of the shout with this post.

Also I have done all the MANUAL EDIT using the Package Parser.

???

PS : I am not using CHAT.

BUMP.

Someone help me.  :'(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Pinball Nation on August 11, 2009, 05:38:13 PM
Hello all,Ive been having trouble installing the ajax chat intergration mod.I always get the Themes/Default/Index PHP execute modification error.So have decided to install manuel.So heres my question.This is what your supose to look for an change in the index php template.// But, let's always show minutes - Time wasted here: 0 minutes ;).         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';      }      echo '            </span>';   }  Ok below is what my index php template looks like.// But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }                     
                     echo'
                     <hr>
                     <b>', $txt[645], ':</b><br />
                     &raquo; ', $context['common_stats']['total_posts'], ' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], ' ', $context['common_stats']['total_members'], ' ', $txt[19], '.<br /> So am i good if i just replace everything down to echo'?As mine looks a tad diffrent.I think this may be why im getting an error when trying to use the package installer.Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 11, 2009, 08:15:18 PM
Hi all, I have this working on all my other themes but having problems with this one. I have edited all files and I'm fairly sure that I got the edits right. I had to compare the default/BoardIndex.php to the Theme/BoardIndex.php to add the code in but I'm sure I got it in the right spot. Well maybe not since it isn't working. The theme is Gladius. I am using SMF2.0 rc1.2 with SP 2.2.2. Here are the edited templates. I am also having a problem with my ad management mod on this theme as well. Maybe a connection there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 11, 2009, 08:21:50 PM
Scott Have you looked at the ad management mods manual edits for the theme?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 11, 2009, 08:42:04 PM
Yes, that is where I got the edits from. You are talking about the mod instructions where you parse for your version for the edits right?

modified: just wondering if I delete a theme and reinstall it do the mods automaticly install again? I installed the themes and then the mods. Was wondering if it works the other way around.

Got to go take my son to his swim class. Be back later.
Title: Re: Adding Custom Sound Commands
Post by: resdog on August 11, 2009, 10:07:32 PM
Hello,

Hopefully someone will be able to help with this. I have  chat room in the forum and I want the ability to whistle (play a sound) at somebody with a command so only they hear it. For example, I type:

/whistle johndoe

And a message pops up on johndoe's chat window that says "CHATBOT: resdog whistles at johndoe", and the whistle mp3 sound plays, but only on johndoe's chat window.

I've added custom sound commands, but everyone is able to hear it when the command is entered. What I need to know is how to make it so only the recipient can hear the whistle. Thanks for any help you can give!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mu3rt3 on August 12, 2009, 09:05:00 AM
Quote from: Mu3rt3 on August 11, 2009, 07:07:46 AM
Is there settings somewhere how many messages does the shoutbox show?

Solved this one by editing /shoutBox/lib/config.php file.  I did needed 50 lines of history so did correct the number to 50.
Also /chat/lib/config.php file needed to the same correction to it work in shoutbox.

// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 12, 2009, 09:49:47 AM
Got this solved. I deleted the theme then reinstalled. Chat came up on it. It's running off the side of the theme now buy that's a different theme issue. I checked the edits on that compared to mine and all was the same so it must have been something else that caused the problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bbq-pepper on August 12, 2009, 10:01:22 AM
Hi!

so I will jump into this thread after trying to install the latest version on my 1.1.10.

The installation by the package will insatll without any errormessage. What I´ve got after the installation is the following:

1. In the Configuration I see the checkboxes (6) but with no text

2. With my administrator-account I can see the shoutbox and add something to it, with a normal user account I even don´t see the shoutbox

3. With a normal Useraccount I have a (1) in the menue. When I click the (1) the chat-popup pops up but I can not log in. If I take the link to the browser with the admin logon I can logon the chatroom

I have reinstalled it 3 times. the only other mods are "Recent Topics on Board Index" and "Simple Image upload" plus the two latest updates.

Any Ideas?

Thanks & cheers, Peter
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 12, 2009, 03:03:41 PM
Quote from: bbq-pepper on August 12, 2009, 10:01:22 AM
Hi!

so I will jump into this thread after trying to install the latest version on my 1.1.10.

The installation by the package will insatll without any errormessage. What I´ve got after the installation is the following:

1. In the Configuration I see the checkboxes (6) but with no text

2. With my administrator-account I can see the shoutbox and add something to it, with a normal user account I even don´t see the shoutbox


Thanks & cheers, Peter

Have you checked members permissions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bbq-pepper on August 12, 2009, 03:10:23 PM
Hi!

Ich have not found any special setting for the chat. Is this a special User right?

Regards, Peter
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dominatorhl2 on August 12, 2009, 03:19:27 PM
I finally got this chat install, very nice btw!

I have errors where my users post in the shout box (the chat works fine), other users work fine like admin and moderator, guest.

Here's what I'm talking about:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.teamdomination.com%2Fsig%2Fshoutbox.jpg&hash=dc35261a4b20072b03d0c7e8c1d81fa4eb337b21)

here's the link to view a bigger size:

http://www.teamdomination.com/sig/shoutbox.jpg (http://www.teamdomination.com/sig/shoutbox.jpg)

When the users post, the format gets messed up.  I tried messing around with chatbox.css but no luck.  I don't know what else it could be.

Also when a user types something like "it's or they're" it ends up looking like this "it\'s or they\'re" this is for both chat and shoutbox

Any one have an idea, thanks for the help in advanced!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bbq-pepper on August 12, 2009, 03:32:42 PM
So I finaly found the rights settings - difficult cause there are only checkboxes without names/text. But it looks like it works as a popup-chat

So now I need to disable all this chat-boards to have only one .... think I start reading now :-)

Thanks, Peter
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on August 12, 2009, 06:05:28 PM
Look in mrtrc266 sig line in the tips and trick. it has the answer your looking for.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dominatorhl2 on August 12, 2009, 08:41:25 PM
Quote from: Swayforth on August 12, 2009, 06:05:28 PM
Look in mrtrc266 sig line in the tips and trick. it has the answer your looking for.

I'm not quite sure what you mean by that, sorry.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 12, 2009, 08:52:01 PM
Quote from: Dominatorhl2 on August 12, 2009, 08:41:25 PM
Quote from: Swayforth on August 12, 2009, 06:05:28 PM
Look in mrtrc266 sig line in the tips and trick. it has the answer your looking for.

I'm not quite sure what you mean by that, sorry.

This is what he meant

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NEO_Doc on August 12, 2009, 10:11:21 PM
Quote from: TheListener on August 10, 2009, 10:49:41 PM
Quote from: ScottDB on August 10, 2009, 10:47:25 PM
looking for that link to a 500 error message fix. Cant seem to find it


If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

Thank you!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tfalbb on August 13, 2009, 05:07:12 AM
I had the same problem,
but when I edited the utf8 file as you suggested, I get the following:

Template Parse Error!
There was a problem loading the /Themes/default/languages/Modifications.english-utf8.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\).

Quote from: mrtrc266 on August 09, 2009, 02:17:24 PM
Quote from: VedicJunction on August 08, 2009, 07:19:31 AM
i applied the mod3.2.1 after a fresh install of smf1.1.10 but i dont see any text in the options.. the chat is working fine though..


please see the attachment for error.... i searched the forum but i cant find the right keywords

Your missing you language file edits...add this to yourforum/Themes/default/languages/modifications.english.php and or Modifications.english-utf8.php (if you have your forum set to UTF-8

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can't.';
$txt['permissionname_shout_access'] = 'Can shout';
$txt['permissionhelp_shout_access'] = 'Give access to write in shout box.';
$txt['permissionname_shout_view'] = 'View shoutBox';
$txt['permissionhelp_shout_view'] = 'Give access to view the shoutBox';
$txt['permissionname_shout_mod'] = 'Moderate shoutBox';
$txt['permissionhelp_shout_mod'] = 'Give access to moderate the shoutBox.';
$txt['permissionname_chat_mod'] = 'Moderate chat';
$txt['permissionhelp_chat_mod'] = 'Give access to moderate the chat.';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tfalbb on August 13, 2009, 07:05:04 AM
OK, sorted that. Went to the download page and copied from there rather than from the code sample in this thread.

It now tells me in red letters when I click on the Chat button that I cannot log in, and it's right. Trying appeared to trash my cookie for the forum, so I had to delete that before I could even log back into it again (trying to log into Chat logged me out).

Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 13, 2009, 07:07:48 AM
What is the link to your forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: webmin on August 13, 2009, 04:25:27 PM
I am seting up the AjaxChat in my forum but the link at the top is not working properly. can someone look at by visiting www.pnpyo.org/forum and advise me what I must do ti correct this proplem with the chat link.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 13, 2009, 07:38:08 PM
www.pnpyo.org/forum (http://www.pnpyo.org/forum)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dominatorhl2 on August 14, 2009, 01:53:11 PM
anyone know how to add the sound button for sound on/off?  I've searched through here and I didn't find one.  I also have moded chat/lib/template/shoutbox.html to this but the button image doesn't show, just the text:
<td  width="25%" valign="top">
<div id="bbCodeContainer">
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>
<input type="button" value="[LANG]bbCodeLabelItalic[/LANG]" title="[LANG]bbCodeTitleItalic[/LANG]" onclick="ajaxChat.insertBBCode('i');" style="font-style:italic;"/>
<input type="button" value="[LANG]bbCodeLabelUnderline[/LANG]" title="[LANG]bbCodeTitleUnderline[/LANG]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;"/>
</div>
</td>
<!---fix the volume button-->
<td valign="top">
<div id="emoticonsContainer" dir="ltr"></div>
<div id="optionsContainer">
<input type="image" src="img/pixel.gif" class="button" id="audioButton" alt="Sound on/off" title="Sound on/off" onclick="ajaxChat.toggleSetting('audio', 'audioButton');"/>
  </div>
<!---it's right above here--->
</td>
</tr>
</table>
</div>
<div id="ajaxChatFlashInterfaceContainer"></div>
</div>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MatrixIS on August 14, 2009, 06:27:22 PM
Fatal error: require() [function.require]: Failed opening required '/home/xtplanet/public_html/gpt-analyzer.com/shoutBox/lib/class/AJAXChat.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xtplanet/public_html/gpt-analyzer.com/shoutBox/lib/classes.php on line 11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Pinball Nation on August 14, 2009, 06:29:37 PM
Hello again all.I was told to install this mod manuel because i keep getting the index template php modification error.But this is the problem.When i get to the part replace this part

         // But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }                     
                     echo'
                     <hr>
                     <b>', $txt[645], ':</b><br />
                     &raquo; ', $context['common_stats']['total_posts'], ' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], ' ', $context['common_stats']['total_members'], ' ', $txt[19], '.<br />
                     &raquo; ', ($settings['show_latest_member'] ? '' . $txt[201] . ' <b>' . $context['common_stats']['latest_member']['link'] . '</b>' . $txt[581] : '');
                     echo '</span></td>';
   }
The above is what i can't change.Does anyone know what this is an what im doing wrong.I know this is why i can't use the package installer.Any help out there?Pretty Please
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: myownfriend on August 14, 2009, 08:02:06 PM
I'm having a problem where the shoutbox is only showing up for me and not the rest of the members.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ClassicX on August 14, 2009, 08:50:16 PM
Quote

no, it is not permissions, HTTP Error 503 is "Service Unavailable" (http://www.checkupdown.com/status/E503.html), this means server is overloaded or under maintenance... contact your host about it for assistance

Well I contacted the host and they said this:

QuoteThat script would seem it would use a lot of resources and further that it's not entirely advanced,

:(

If the problem persists, is there a way that when I get the 503 error, the page would automatically refresh? Because members say that when they type anything it doesn't appear and it takes a while for it to appear. They only way it would appear if its the user refreshes the page, or closes the window and browses to the chat again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dominatorhl2 on August 14, 2009, 11:09:36 PM
Quote from: myownfriend on August 14, 2009, 08:02:06 PM
I'm having a problem where the shoutbox is only showing up for me and not the rest of the members.

Make sure you go into the admin settings and enable the users you want to be able to use the shout box, admin is the only that can see it by default I think.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Crucias on August 14, 2009, 11:57:32 PM
The damn thing wont install, when i hit the apply button (under package installation) it just refreshes the page!

Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: myownfriend on August 14, 2009, 11:59:03 PM
Thanks, what confused be is that I kept checking the permissions for the staff and I can't allow the staff to see the shoutbox, I have to enable the other group that they would be in to see the shoutbox.

@Crucias

It runs a check to see if can be installed first and asks what theme is should be installed in. If you can't then you have to manually apply it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Crucias on August 15, 2009, 12:33:25 AM
its not even getting to the check where it can say pass or fail, its just refreshing my browse package menu

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 15, 2009, 12:49:05 AM
Quote from: Crucias on August 15, 2009, 12:33:25 AM
its not even getting to the check where it can say pass or fail, its just refreshing my browse package menu

thanks

Which smf and theme do you use?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Crucias on August 15, 2009, 01:28:07 AM
SMF Default Theme - Core

But some moron i employ just installed some double post stopper mod by dragoon and now post.php doesnt work, so got to fix that now
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 15, 2009, 05:30:58 AM
Quote from: Mu3rt3 on August 15, 2009, 05:24:24 AM
Hi

I did remove quest logins which seemed to break who's in chat list, so i did edit configs back to allow quest but that part does not work allowquestlogins is true; but it's still does not allow quests, what could be wrong with it?

Not sure what you are trying to ask. Which smf are you using? Can we have a link please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mu3rt3 on August 15, 2009, 05:44:10 AM
Sry english is not my strongest attribute,
// Enable/Disable guest logins:
$config['allowGuestLogins'] = true;


I did set it to false which did break section in info center that shows who's in chat, chat button in menubar does not have number on it's side that shows users in chat.

So i wanna fix this by allowing quest user in again and changed allowquestlogins = true;
But still nothing quest are not allowed to log in chat although quest logins should be allowed in the configs.

So far i have tryed to fix it with clearing all caches browser and server side also did restart to apache.

my forum:
http://clan-tsuki.org
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 15, 2009, 05:46:26 AM
Have you set the permissions for guests?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mu3rt3 on August 15, 2009, 05:52:46 AM
Did allow chat access and shutbox access for quest in permissions.
But still nothing user in chat stays clear.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mu3rt3 on August 15, 2009, 05:55:44 AM
OK now it allows quests in but does not show who's on chat so the quest access did not break the users online thingy.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 15, 2009, 05:57:03 AM
What is the link to your chat?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 15, 2009, 06:01:48 AM
Guests do NOT show in the section you showed me.

Had a memory relapse.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 15, 2009, 06:10:02 AM
Please note:

500 error in chat?  Look at the link

Not sure about an error? Look at the link

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 15, 2009, 06:16:28 AM
 Add a Word Filter to the chat room.

This modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
return text;
}


This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}


Adds a replacement for the word "foo".



THIS ADDITION DOES WORK
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 15, 2009, 06:25:22 AM
Join the

'Am I talking to myself Campaign'

To show other users in chat you are not at the computer ( or busy in the forum)

use this edit:

Automatically remove status.
This version will remove the afk status of a user the next time the user types a message (or private message).

Open lib/class/CustomAJAXChat.php and add the following before the last closing bracket } at the end of the file:


   function parseCustomCommands($text, $textParts) {
switch($textParts[0]) {
// Away from keyboard message:
case '/afk':
// Set the userName:
$this->setUserName('<AFK>_'.$this->getUserName());
// Update the online user table:
$this->updateOnlineList();
// Add info message to update the client-side stored userName:
$this->addInfoMessage($this->getUserName(), 'userName');
// Store AFK status as session variable:
$this->setSessionVar('AwayFromKeyboard', true);
return true;
default:
return false;
}
}

function onNewMessage($text) {
// Reset AFK status on first inserted message:
if($this->getSessionVar('AwayFromKeyboard')) {
$this->setUserName($this->subString($this->getUserName(), 6));
$this->updateOnlineList();
$this->addInfoMessage($this->getUserName(), 'userName');
$this->setSessionVar('AwayFromKeyboard', false);
}
return true;
}


Next to your name <AFK> will appear. To show you are back all you do is talk in the room as per usual.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mu3rt3 on August 15, 2009, 06:39:48 AM
My prob was solved when i did get fresh copy of chat mod and replaced the /chat and /shoutBox folders with new ones.

One more question what config files should i edit ones in /chat or in /shoutBox? Seems that editing /shoutBox configs has no effect on functions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 15, 2009, 06:45:12 AM
What are you trying to do?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Neo_TE on August 15, 2009, 06:46:54 AM
Quote from: Neo_TE on August 10, 2009, 02:52:23 PM
I am unable to do the SMILEY POPUP mod posted in the following url

http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

coz I am unable to FIND the following in the "index.template.php" file. I use DILBERMC theme.
:o


      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


Please help me. I want to add custom smileys and I can't do it without enabling the "SMILEY POPUP" mod..

I have attached the "index.template.php" & screen shot of the shout with this post.

Also I have done all the MANUAL EDIT using the Package Parser.

???

PS : I am not using CHAT.

BUMP.

Someone help me.  :'(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mu3rt3 on August 15, 2009, 07:04:07 AM
Nothing and all, :D just looking the settings what i might wanna change.

So diffrent settings do go to diffrent folders?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 15, 2009, 07:06:03 AM
Yep
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: myownfriend on August 15, 2009, 10:10:25 AM
I edited my shoutbox's layout and now the input field says "You can't use Shoutbox".

Here are the changes I made

Code (Shout.template.php) Select
function template_shout_above()
{
   global $modSettings, $context, $options, $settings, $txt, $boardurl;

      if (empty($modSettings['miniChat']))
         $flag = allowedTo('shout_view');
      else
         $flag = allowedTo('chat_access');

      if ($flag){
         // We'll have to use the cookie to remember the shoutBox header...
         if ($context['user']['is_guest'])
            $options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);
           
         echo '
      <script type="text/javascript">
         var sb_current_header = ', empty($options['sb_collapsed']) ? 'false' : 'true', ';

         function ajax_shoutBox_collapse(mode)
         {';

         if ($context['user']['is_guest'])
            echo '
            document.cookie = "sb_collapsed=" + (mode ? 1 : 0);';
         else
            echo '
            smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "', $context['session_id'], '");';

         echo '
            document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

            document.getElementById("shout_contents").style.display = mode ? "none" : "";

            sb_current_header = mode;
            }
      </script>';

         if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
            echo'
      <ul class="table" id="shoutbox">
         <li class="thead">
            <div class="cell"><a class="floatright" rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" /></a>', $txt['shoutBox'], '
</div>
         </li>
         <li class="row" id="shout_contents" ', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
         ', getShoutBoxContent() ,'
         </li>
      </ul>';
         }
      }
   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>';
}


and

Code (shoutbox.html) Select
<div id="ajaxChatCopyright">
<a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a> <a href="http://4tmu.ir/forum/index.php">Integrated with SMF</a>
</div>

<div id="ajaxChatContent">
<script src="[AJAX_CHAT_URL/]js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/custom.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/shoutbox.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/config.js" type="text/javascript" charset="UTF-8"></script>
<script src="[AJAX_CHAT_URL/]js/FABridge.js" type="text/javascript" charset="UTF-8"></script>
<div id="ajaxChatChatList"></div>
</div>

<div class="bg2" id="ajaxChatfooter">
<div>
<div id="ajaxChatInputFieldContainer">
<input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" [disableInput/]/>
<input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" [disableButton/] />
</div>
<script type="text/javascript">
// <![CDATA[
ajaxChatConfig.ajaxURL = '[AJAX_CHAT_URL/]?ajax=true&shoutbox=true';
ajaxChatConfig.baseURL = '[AJAX_CHAT_URL/]';

ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChatConfig.chatBotName = decodeURIComponent('[CHAT_BOT_NAME/]');
ajaxChatConfig.chatBotID = '[CHAT_BOT_ID/]';
ajaxChatConfig.allowUserMessageDelete = parseInt('[ALLOW_USER_MESSAGE_DELETE/]');
ajaxChatConfig.inactiveTimeout = parseInt('[INACTIVE_TIMEOUT/]');
ajaxChatConfig.privateChannelDiff = parseInt('[PRIVATE_CHANNEL_DIFF/]');
ajaxChatConfig.privateMessageDiff = parseInt('[PRIVATE_MESSAGE_DIFF/]');
ajaxChatConfig.showChannelMessages = false;
ajaxChatConfig.messageTextMaxLength = parseInt('[MESSAGE_TEXT_MAX_LENGTH/]');
ajaxChatConfig.socketServerEnabled = parseInt('[SOCKET_SERVER_ENABLED/]');
ajaxChatConfig.socketServerHost = decodeURIComponent('[SOCKET_SERVER_HOST/]');
ajaxChatConfig.socketServerPort = parseInt('[SOCKET_SERVER_PORT/]');
ajaxChatConfig.socketServerChatID = parseInt('[SOCKET_SERVER_CHAT_ID/]');

ajaxChatConfig.domIDs['chatList'] = 'ajaxChatChatList';
ajaxChatConfig.domIDs['inputField'] = 'ajaxChatInputField';
ajaxChatConfig.domIDs['flashInterfaceContainer'] = 'ajaxChatFlashInterfaceContainer';

ajaxChatConfig.startChatOnLoad = false;

ajaxChatConfig.settings.autoFocus = false;
ajaxChatConfig.settings.wordWrap = true;
ajaxChatConfig.settings.maxWordLength = 11;
ajaxChatConfig.settings.blink = false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, false, true);
// ]]>
</script>
</div>
<div>
<div class="floatleft" id="bbCodeContainer">
<input type="button" value="[LANG]bbCodeLabelBold[/LANG]" title="[LANG]bbCodeTitleBold[/LANG]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;" [disableButton/]/>
<input type="button" value="[LANG]bbCodeLabelItalic[/LANG]" title="[LANG]bbCodeTitleItalic[/LANG]" onclick="ajaxChat.insertBBCode('i');" style="font-style:italic;" [disableButton/]/>
<input type="button" value="[LANG]bbCodeLabelUnderline[/LANG]" title="[LANG]bbCodeTitleUnderline[/LANG]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;" [disableButton/]/>
</div>
                <div class="right" id="emoticonsContainer" dir="ltr"></div>
</div>
            <div  id="ajaxChatFlashInterfaceContainer"></div>
</div>



They don't seem like very big changes to me and I don't see anything that should have messed anything up.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mark S on August 15, 2009, 12:07:03 PM
I solved my problem with the 24 hour clock issue.  I dumped this shoutbox/chat mod entirely and changed to Hack's.  It's a lot nicer shoutbox with better features and none of the issues this one has.  A lot more uptime use and a whole lot less headaches.

I found that the shoutbox gets way more traffic than any chat we ever had anyway so I don't need a chat/shout combo.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dominatorhl2 on August 15, 2009, 09:42:49 PM
Quote from: TheListener on August 15, 2009, 06:16:28 AM
Add a Word Filter to the chat room.

This modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
return text;
}


This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}


Adds a replacement for the word "foo".



THIS ADDITION DOES WORK


How would I make it put in a smiley face instead of just the text, for example:
//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/badword/gi, ':)');
return text;
}


that just ends up posting the text :) instead of  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Atoa on August 15, 2009, 10:19:09 PM
I having a problem, i installed v 3.2.1 and had some problems, i wanted to unnistall it to try reinstall but it's says that there is no unistaller.

when i try to acess the chat it returns this error:
Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM atoajvs_santuario.ajax_chat_online ORDER BY userName; Error-Report: Table 'atoajvs_santuario.ajax_chat_online' doesn't exist Error-Code: 1146

i'm using smf 2.0 rc 1.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CrazyRed98 on August 15, 2009, 11:47:18 PM
well I deleted everything from the shoutbox, but I still have this bit of code of it in my load.php
function getShoutBoxContent($mini = false){
global $scripturl, $modSettings;

// Get the URL to the chat directory:
if (!defined('AJAX_CHAT_URL')){
if (empty($modSettings['miniChat']))
define('AJAX_CHAT_URL', str_replace("index.php", "shoutBox/", $scripturl));
else
define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));
}
   
// Get the real path to the chat directory:
if (!defined('AJAX_CHAT_PATH')){
if (empty($modSettings['miniChat']))
define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/shoutBox/');
else
define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/chat/');
}
   
  // Validate the path to the chat:
  if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php')){
// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the shoutbox:
$ajaxChat = new CustomAJAXChatShoutBox();

// Parse and return the shoutbox template content:
return $ajaxChat->getShoutBoxContent($mini); 
  }
return null;
}

function chatOnlineUsers(){
global $db_prefix;

$userIDs = array();
$result = db_query("SELECT userID
FROM ${db_prefix}ajaxchat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)
", __FILE__, __LINE__);
while($row = mysql_fetch_assoc($result)) {
array_push($userIDs, $row['userID']);
}
mysql_free_result($result);
return array_unique($userIDs);
}
If I remove that code I get a error  "Fatal error: Call to undefined function chatOnlineUsers()" don't know what to do?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 15, 2009, 11:52:32 PM
you must have forgotten to remove some code from another file, check all the files again
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: myownfriend on August 16, 2009, 12:15:42 AM
So does anybody have any idea what's wrong with my shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 16, 2009, 12:29:53 AM
Quote from: myownfriend on August 16, 2009, 12:15:42 AM
So does anybody have any idea what's wrong with my shoutbox?
Did you make a backup of the files you changed?

If you did, restore them and remove the mod and install again, then post back here with the problems your having.

This way we can rule out any changes you made have caused or are contributing to the problems you are having
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: myownfriend on August 16, 2009, 12:46:13 AM
Whatever I changed was in fact the reason it stopped working. I'm going to manually re-apply the changes and see if I find what's wrong.


Edit: Okay when I manually did everything it worked even though it's identical to the first files.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 16, 2009, 02:04:27 AM
Quote from: myownfriend on August 16, 2009, 12:46:13 AM
Whatever I changed was in fact the reason it stopped working. I'm going to manually re-apply the changes and see if I find what's wrong.


Edit: Okay when I manually did everything it worked even though it's identical to the first files.

So you the mod working fine, or do you have any problems?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 16, 2009, 01:05:17 PM
Quote from: Dominatorhl2 on August 15, 2009, 09:42:49 PM
Quote from: TheListener on August 15, 2009, 06:16:28 AM
Add a Word Filter to the chat room.

This modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
return text;
}


This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}


Adds a replacement for the word "foo".



THIS ADDITION DOES WORK


How would I make it put in a smiley face instead of just the text, for example:
//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/badword/gi, ':)');
return text;
}


that just ends up posting the text :) instead of  :)


The edit only changes words it is NOT an edit for smileys
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: magnitude2007 on August 17, 2009, 03:43:17 AM
this mod works great......please can u tell me how to change the backgroud colour of minishout in other themes rather than default one...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zach21uk on August 17, 2009, 06:54:03 AM
Is there a way to add a mute button to the "mini" shoutbox (not the fullsize chat which already has that).

Also, can I do something to make the mini shoutbox so that it always updates, even when a user is browsing the forum and not "focussed" or "click into" the shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Urbanite on August 17, 2009, 09:40:02 AM
Hi,

Trying to get the word filter working, my custom.js is this:-


/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/

ajaxChat.customInitialize = function() {
   ajaxChat.addChatBotMessageToChatList('Welcome to XXX Chat, Please Keep it Family Friendly');
}
/*
//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}
/*
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
return text;
}
*/


Any obvious reason why it won't work?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: H on August 17, 2009, 10:13:19 AM
There is an uninstall problem with your mod :).

From package-info.xml
<install for="2.0 RC1-2.0 RC1.2">
<uninstall for="2.0.*">

Until 2.0.1 is released, this code will not allow uninstallation to occur without emulating the version :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: htgr2001 on August 17, 2009, 06:23:36 PM
Hi guys great mod but i have a quick question. A few chat channels with the same name as the forum's boards were automatically created, how can I delete them? i just want the public channel for now.

Thanks in advance
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rgecy on August 17, 2009, 10:40:33 PM
I am also looking to remove the channels or just have a few.  Also, how does the history work.  Is there a way to delete it or make it so a user can only see so far back after they log on? Is there any tutorials on customizing?

I am also having trouble with the chat popup.  I do not want it to popup a new widow and the check box does nothing.  It keeps popping up in a new window?  Any ideas?

RGecy
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 18, 2009, 05:45:04 AM
Please view the tips and tricks in the link.

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zach21uk on August 18, 2009, 07:13:31 AM
Quote from: zach21uk on August 17, 2009, 06:54:03 AM
Is there a way to add a mute button to the "mini" shoutbox (not the fullsize chat which already has that).

Also, can I do something to make the mini shoutbox so that it always updates, even when a user is browsing the forum and not "focussed" or "click into" the shoutbox.

Bumped
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 18, 2009, 07:22:53 AM
Quote from: zach21uk on August 18, 2009, 07:13:31 AM
Quote from: zach21uk on August 17, 2009, 06:54:03 AM
Is there a way to add a mute button to the "mini" shoutbox (not the fullsize chat which already has that).

Also, can I do something to make the mini shoutbox so that it always updates, even when a user is browsing the forum and not "focussed" or "click into" the shoutbox.

Bumped

You can always try the mute settings with the shoutbox that you used on chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zach21uk on August 18, 2009, 10:37:39 AM
Quote from: TheListener on August 18, 2009, 07:22:53 AM
Quote from: zach21uk on August 18, 2009, 07:13:31 AM
Quote from: zach21uk on August 17, 2009, 06:54:03 AM
Is there a way to add a mute button to the "mini" shoutbox (not the fullsize chat which already has that).

Also, can I do something to make the mini shoutbox so that it always updates, even when a user is browsing the forum and not "focussed" or "click into" the shoutbox.

Bumped

You can always try the mute settings with the shoutbox that you used on chat.

Well Mute was included in the fullsize chat when I installed it, but NOT included in the shoutbox, so I have no idea how to take the mute button from the fullsize version to add into the shoutbox version.
Title: Re: AjaxChat Integration
Post by: magnitude2007 on August 18, 2009, 05:36:20 PM
Quote from: Bernard T. on August 05, 2009, 04:47:29 PM
Here is a extended version of SunKing's Post Notification (http://www.simplemachines.org/community/index.php?topic=257973.msg2067337#msg2067337) tweak for SMF 1.1.X only


1.) changes to the database are the same:
Quote from: SunKing on May 19, 2009, 12:23:29 PM
The first step is to change a value for one of the database entries, so make backups! I think this could be made a permanent change without ill consequences maybe in future releases. ;)

The dateTime field of ajax_chat_messages needs the type changed to timestamp.


2.) Open /Sources/Post.php and search for
notifyMembersBoard();

and replace it with:

// ***** Ajax Chat New Topic Notification *****
{
notifyMembersBoard();

global $user_info, $board, $scripturl, $boardName, $topic;

    db_query("INSERT INTO `smf_ajaxchat_messages` (`userID` ,`userName` ,`userRole` ,`channel` ,`ip` ,`text`)
VALUES (".$posterOptions['id']." , '".$txt['chatbot_name']."' , 4 , 0 , '".$posterOptions['ip']."', '[b]".$user_info['name']."[/b] [i]" . $txt['chatbot_msg_new_topic'] . " [url=".$scripturl . "?topic=" . $topic . ".new#new"."]".html_entity_decode($_POST['subject'])."[/url][/b][/color][/i]')", __FILE__, __LINE__);
  }
    // ******* End Ajax Chat New Topic Notification *******
   



Also search for:
sendNotifications($topic, 'reply');

replace it with:


// ****** Ajax Chat New Reply Notification ******
{
sendNotifications($topic, 'reply');

global $user_info, $board, $scripturl, $boardName, $topic;
    db_query("INSERT INTO `smf_ajaxchat_messages` (`userID` ,`userName` ,`userRole` ,`channel` ,`ip` ,`text`)
       VALUES (".$posterOptions['id']." , '".$txt['chatbot_name']."' , 4 , 0 , '".$posterOptions['ip']."', '[b]".$user_info['name']."[/b] [i]" . $txt['chatbot_msg_new_reply'] . " [url=".$scripturl . "?topic=" . $topic . ".new;topicseen#new"."]".html_entity_decode($_POST['subject'])."[/url][/b][/color][/i]')", __FILE__, __LINE__);

     }
// ***** End Ajax Chat New Reply Notification




3.) Open /Themes/default/languages/Modifications.english.php (for english language) and add this code immediately before ending ?>

//Start AjaxChat Post Notification
$txt['chatbot_name'] = 'ChatBot';
$txt['chatbot_msg_new_topic'] = 'has just published a [color=red][b]new topic:';
$txt['chatbot_msg_new_reply'] = 'has just published a [color=red][b]new reply to topic:';
//End AjaxChat Post Notification


That's it. Now, every time someone posts, a nice notification will popup in the chat/shoutbox displaying a link to the new post/reply.

The extended features of this tweak are:
- chat posts are made by ChatBot (that you can name as you like), and not as from admin like in origina
- all language strings are separated to language files
- added some coloring...
- I'm sure I forgot something so check it out ;)

Thanks and credits go to Sunking and all the others he mentioned in his original post (http://www.simplemachines.org/community/index.php?topic=257973.msg2067337#msg2067337).

Enjoy!

P.S. I hope the maintainer of this modification could integrate this tweak into next standard version, I'm sure many would be happy with such function...




Sir i just newly installed smf 1.1.10 version and AjaxChat Integration  3.2.1 it is working fine without any error sir. 

From ur tutorial i have edit post.php and englishtem......php but sir when any  member or  post topics the minishout cant display the post messeges....

I have found some error may be it would be helpfull for further.

Table: smf_ajaxchat_messages " for troubleshooting and i found that in ur queries time is not mentioned. The major problem is that when i shout directly it enter the date and time into database....

when the new post is made ur coding execute the queries but it does not enter the data time into database...

when i manually enter data time smf_ajaxchat_messages it show the thread information in shout box...please help me to get rid of this problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on August 18, 2009, 08:21:09 PM
Sometimes you type message hit enter and nothing happens. Any idea how to fix this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: myownfriend on August 18, 2009, 08:33:09 PM
For some reason the shoutbox works perfectly in Chrome, IE, Opera and Safari but doesn't work at all in Firefox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: honkfonz on August 19, 2009, 05:06:59 AM
Hello out there,

maybe someone can help me. - I use the AjaxChat and the Chat integration. Both work fine - but one think is quite disturbing.

Lots of people in the chat recieve "Chatbot - connection error ...[various numbers] -" postings. After it, they have to refresh their browser for posting and reading again. - What can I do to stop it?

Well, if this area isn't the right place, or if this problem is already discussed and solved otherwhere, a link will be fine!

Thanks in advance!

Your
Honkfonz
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 19, 2009, 06:53:57 AM
Quote from: TheListener on August 15, 2009, 06:10:02 AM
Please note:

500 error in chat?  Look at the link

Not sure about an error? Look at the link

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bobn on August 19, 2009, 08:00:46 PM
Anyway to add a send button? Some people cant seem to figure it out  :o
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nay27uk on August 20, 2009, 08:58:43 AM
Just installed this in SMF 2.0 RC1.2 and after clicking on the chat button i get

Quote
  Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 20, 2009, 09:01:33 AM
Quote from: TheListener on August 19, 2009, 06:53:57 AM
Quote from: TheListener on August 15, 2009, 06:10:02 AM
Please note:

500 error in chat?  Look at the link

Not sure about an error? Look at the link

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Quote from: nay27uk on August 20, 2009, 08:58:43 AM
Just installed this in SMF 2.0 RC1.2 and after clicking on the chat button i get

Quote
  Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

ave a look at the link in my previous post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nay27uk on August 20, 2009, 09:18:02 AM
thanks TheListener (http://www.simplemachines.org/community/index.php?action=profile;u=202070) that works now however how do I make it play the sound when chat loads like in the demo
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 20, 2009, 09:21:24 AM
That i I have no idea.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nay27uk on August 20, 2009, 09:29:15 AM
Quote from: TheListener on August 20, 2009, 09:21:24 AM
That i I have no idea.

ok cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zach21uk on August 20, 2009, 09:36:42 AM
Quote from: zach21uk on August 17, 2009, 06:54:03 AM
Is there a way to add a mute button to the "mini" shoutbox (not the fullsize chat which already has that).

Also, can I do something to make the mini shoutbox so that it always updates, even when a user is browsing the forum and not "focussed" or "click into" the shoutbox.

Can anyone help with these two things plz?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 20, 2009, 01:26:47 PM
Quote from: honkfonz on August 19, 2009, 05:06:59 AM
Hello out there,

maybe someone can help me. - I use the AjaxChat and the Chat integration. Both work fine - but one think is quite disturbing.

Lots of people in the chat recieve "Chatbot - connection error ...[various numbers] -" postings. After it, they have to refresh their browser for posting and reading again. - What can I do to stop it?

Well, if this area isn't the right place, or if this problem is already discussed and solved otherwhere, a link will be fine!

Thanks in advance!

Your
Honkfonz

I use firefox and have no trouble with the shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mikungfu on August 20, 2009, 02:12:03 PM
On June 1st 2009, I received an outstanding support on this Topic, from mrtrc266. He actually went into my website and through FTP etc... He managed to get it working and integrated it with my website's theme in perfection. Of course I also did some work at start, but he finished everything from where I got stuck. I will never thank him enough...

However I have a slight doubt that is worrying me: when I go to package manager, on the "Browse Packages" tab I don't see the "Uninstall" option (of course I don't see the "Install" either).  Actually, when I go the other tab (Installed Packages) I don't see AjaxChat Integration listed there.

What is happening??..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 20, 2009, 02:15:09 PM
Quote from: mikungfu on August 20, 2009, 02:12:03 PM
On June 1st 2009, I received an outstanding support on this Topic, from mrtrc266. He actually went into my website and through FTP etc... He managed to get it working and integrated it with my website's theme in perfection. Of course I also did some work at start, but he finished everything from where I got stuck. I will never thank him enough...

However I have a slight doubt that is worrying me: when I go to package manager, on the "Browse Packages" tab I don't see the "Uninstall" option (of course I don't see the "Install" either).  Actually, when I go the other tab (Installed Packages) I don't see AjaxChat Integration listed there.

What is happening??..

This is nothing to worry about.

All this means is that when a newer version is released you would have to manually uninstall the previous version before installing the newer one.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mikungfu on August 20, 2009, 02:28:44 PM
Quote from: TheListener on August 20, 2009, 02:15:09 PM

This is nothing to worry about.

All this means is that when a newer version is released you would have to manually uninstall the previous version before installing the newer one.

I'm using version 3.0... Am I loosing something already? ::) Because if I needed help for manually installing, I'm going to need it for uninstalling.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 20, 2009, 02:32:22 PM
The current version is 3.2.1

To manually uninstall a mod use the parser and follow the directions in the opposite direction.

make sure to do a back up first though.

;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: honkfonz on August 20, 2009, 03:37:35 PM
@TheListener

Thank you so far. But the problem still remains. My forum members get the errors #504, #12029. I don't get any of this errors being the chat's (and forum's) admin.

Can you tell which CHDMODs the files and directories of the chat ought to have because the CHDMOS seem to be a good trace of that problem.

Your
fich
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 20, 2009, 05:22:15 PM
Sorry bud

I have no idea.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: myownfriend on August 20, 2009, 07:16:05 PM
Quote from: TheListener on August 20, 2009, 01:26:47 PM
I use firefox and have no trouble with the shoutbox.

I have a feeling you intended to quote me, but anyway. I edited the theme to my shoutbox. Looking over the code I see no reason why it stopped working in Firefox but it has.


This is the modified code I'm using. It's structurally pretty much identical it just gets rid of the tables.

<ul class="table" id="shoutbox">
<li class="thead">
<div class="cell">
  <a class="floatright" rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="http://www.rmphantasy.net/Themes/RM Phantasy/images/collapse.gif" alt="*" /></a>ShoutBox
</div>
</li>
<li class="row" id="shout_contents" >
<div id="ajaxChatCopyright">
<a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a> <a href="http://4tmu.ir/forum/index.php">Integrated with SMF</a>
</div>
                                           
<div id="ajaxChatContent">
<script src="http://www.rmphantasy.net/chat/js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="http://www.rmphantasy.net/chat/js/custom.js" type="text/javascript" charset="UTF-8"></script>
<script src="http://www.rmphantasy.net/chat/js/shoutbox.js" type="text/javascript" charset="UTF-8"></script>
<script src="http://www.rmphantasy.net/chat/js/lang/en.js" type="text/javascript" charset="UTF-8"></script>
<script src="http://www.rmphantasy.net/chat/js/config.js" type="text/javascript" charset="UTF-8"></script>
<script src="http://www.rmphantasy.net/chat/js/FABridge.js" type="text/javascript" charset="UTF-8"></script>
<div id="ajaxChatChatList"></div>
</div>

<div class="bg2" id="ajaxChatfooter">
<div>
<div id="ajaxChatInputFieldContainer">
<input id="ajaxChatInputField" type="text" maxlength="1040" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/>
<input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" />
</div>
<script type="text/javascript">
// <![CDATA[
ajaxChatConfig.ajaxURL = 'http://www.rmphantasy.net/chat/?ajax=true&shoutbox=true';
ajaxChatConfig.baseURL = 'http://www.rmphantasy.net/chat/';

ajaxChatConfig.sessionName = 'ajax_chat';
ajaxChatConfig.cookieExpiration = parseInt('365');
ajaxChatConfig.cookiePath = '/';
ajaxChatConfig.cookieDomain = '';
ajaxChatConfig.cookieSecure = '';
ajaxChatConfig.chatBotName = decodeURIComponent('ChatBot');
ajaxChatConfig.chatBotID = '2147483647';
ajaxChatConfig.allowUserMessageDelete = parseInt('1');
ajaxChatConfig.inactiveTimeout = parseInt('2');
ajaxChatConfig.privateChannelDiff = parseInt('500000000');
ajaxChatConfig.privateMessageDiff = parseInt('1000000000');
ajaxChatConfig.showChannelMessages = false;
ajaxChatConfig.messageTextMaxLength = parseInt('1040');
ajaxChatConfig.socketServerEnabled = parseInt('0');
ajaxChatConfig.socketServerHost = decodeURIComponent('www.rmphantasy.net');
ajaxChatConfig.socketServerPort = parseInt('1935');
ajaxChatConfig.socketServerChatID = parseInt('0');

ajaxChatConfig.domIDs['chatList'] = 'ajaxChatChatList';
ajaxChatConfig.domIDs['inputField'] = 'ajaxChatInputField';
ajaxChatConfig.domIDs['flashInterfaceContainer'] = 'ajaxChatFlashInterfaceContainer';

ajaxChatConfig.startChatOnLoad = false;

ajaxChatConfig.settings.autoFocus = false;
ajaxChatConfig.settings.wordWrap = true;
ajaxChatConfig.settings.maxWordLength = 11;
ajaxChatConfig.settings.blink = false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, false, true);
// ]]>
</script>
</div>
<div>
<div class="floatleft" id="bbCodeContainer">
<input type="button" value="b" title="Bold text: [strong]text[/strong]" onclick="ajaxChat.insertBBCode('b');" style="font-weight:bold;"/>
<input type="button" value="i" title="Italic text: [em]text[/em]" onclick="ajaxChat.insertBBCode('i');" style="font-style:italic;"/>
<input type="button" value="u" title="Underline text: [u]text[/u]" onclick="ajaxChat.insertBBCode('u');" style="text-decoration:underline;"/>
</div>
</div>
<div>
<div class="right" id="emoticonsContainer" dir="ltr"></div>
</div>
    <div id="ajaxChatFlashInterfaceContainer"></div>
</div>
</li>
</ul>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rgecy on August 20, 2009, 11:49:35 PM
Is there a way to clear the history, or not show the history when a user logs in?

I also would like to add a logo to the top where it says AJAX Chat, how would I do this?

RGecy
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: magnitude2007 on August 21, 2009, 09:27:50 AM
Sir i have installed AjaxChat Integration_3.2.1 on my forum without any error and i want to customize the emoticons there are 23 emoticons in dafault ajaxchat minishoutbox and i want to add more emoticons i have also tweaked chat\js\config.js file to add more emoticons but when i exceed the emoticons limit all the emoticons got disappreared....
How to add more smilies into minishoutbox ?

This mod is awsome.
Still waiting for any reply
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Itesz on August 21, 2009, 01:08:47 PM
Why is it, that in Firefox, the chat loads to slowly or not at all, while in Chrome or Internet Explorer it loads instantly?

Sorry if it was posted before...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Brutzel on August 21, 2009, 02:27:54 PM
Nice mod, but still one little fault with permission settings in smf 1.1.10 :

when i go to
    permissions -> unregistered users -> edit
then enable "View shoutBox" and logout, no shoutbox appears (to unregistered users).

any fix?

rg. Brutzel
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: myownfriend on August 21, 2009, 04:26:02 PM
Quote from: Itesz on August 21, 2009, 01:08:47 PM
Why is it, that in Firefox, the chat loads to slowly or not at all, while in Chrome or Internet Explorer it loads instantly?

Sorry if it was posted before...

I'm having a very similar problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: magnitude2007 on August 21, 2009, 04:30:22 PM
Quote from: rgecy on August 20, 2009, 11:49:35 PM
Is there a way to clear the history, or not show the history when a user logs in?

I also would like to add a logo to the top where it says AJAX Chat, how would I do this?

RGecy


I think there no such option to delete the history....my 2 day old history log is about 12 mb its enough. You have to delete the log file manually from phpmyadmin>smf ajax messages
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 21, 2009, 05:11:55 PM
Quote from: myownfriend on August 21, 2009, 04:26:02 PM
Quote from: Itesz on August 21, 2009, 01:08:47 PM
Why is it, that in Firefox, the chat loads to slowly or not at all, while in Chrome or Internet Explorer it loads instantly?

Sorry if it was posted before...

I'm having a very similar problem.

Check which version of firefox you use.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Itesz on August 22, 2009, 01:32:31 AM
Quote from: TheListener on August 21, 2009, 05:11:55 PM
Check which version of firefox you use.

Always the newest. Now: 3.5.2.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dret on August 22, 2009, 05:23:24 AM
Hi to all

I have a little problem with this MOD.

I start to use 3.2 version on SMF 1.1.09 and all work fine.

But since I made the upgrade to SMF 1.1.10, installing the MOD (also in 3.2.1 version) is become impossible.

SMF give me a message errore of "corrupted package or incorrect version"

Can someone help me?

Thanks BYE!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dzonny on August 22, 2009, 07:36:46 AM
Hello there,

I saw this link for add some smileys http://www.simplemachines.org/community/index.php?topic=257973.msg1930049#msg1930049
but is there a way to integrate forums smileys with this chat?

Regards.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: myownfriend on August 22, 2009, 07:51:24 AM
Quote from: TheListener on August 21, 2009, 05:11:55 PM
Check which version of firefox you use.

I test it out on 3.5.2, 3.6, and the 3.7 trunk builds.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 22, 2009, 03:33:23 PM
Hello, i have one question. Is it possible to change the color of shoutbox on index.php and how. I tried to edit some files but always this white shoutbox windows appears. I want to change to some darker colors because of theme. Thanks in advance
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 22, 2009, 03:36:17 PM
Quote from: lexa90 on August 22, 2009, 03:33:23 PM
Hello, i have one question. Is it possible to change the color of shoutbox on index.php and how. I tried to edit some files but always this white shoutbox windows appears. I want to change to some darker colors because of theme. Thanks in advance

You could try the shoutbox css file.

I also have a dark theme but although the chatroom is black I have a white shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 22, 2009, 03:48:14 PM
^ Tried that, but no hope, it's still white. Mine chatroom is also black but this, no.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 22, 2009, 03:51:41 PM
What is the link to your forum?

Sorry I am unable to help any further.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 22, 2009, 04:10:36 PM
www.balkanwarez.org
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 22, 2009, 04:16:55 PM
Quote from: lexa90 on August 22, 2009, 04:10:36 PM
www.balkanwarez.org

IMO I would keep it as it is.

The shoutbox being white does not take away from the forum and saves the hassle of having to change the color of the text so it isn't black.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 22, 2009, 06:37:16 PM
Quote from: Dzonny on August 22, 2009, 07:36:46 AM
Hello there,

I saw this link for add some smileys http://www.simplemachines.org/community/index.php?topic=257973.msg1930049#msg1930049
but is there a way to integrate forums smileys with this chat?

Regards.

I believe you can add your own smileys to the chat but I'm not 100% certain.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smonk on August 22, 2009, 08:46:23 PM
I have had ajaxchat installed for about a week.  I want to allow guests to view the shoutbox and shout . . . I have the permissions set right, and I thought I had everything working.  but now guests can see the shoutbox itself, but not the shouts inside the shoutbox.  and if you attempt to shout as a guest, you get

ChatBot: Error: Connection timeout. Please try again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 22, 2009, 08:49:05 PM
Can you show a link to your forum please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smonk on August 22, 2009, 08:52:24 PM
sure.  and thanks for taking a look.


http://forum.stink-eye.com
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 22, 2009, 08:54:13 PM
Can you please type your forums addy as it shows in the address bar please otherwise I get an error.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smonk on August 22, 2009, 08:56:45 PM
if you login, the shouts will display.  if you then logout, it works like I want it to . . . but that sort of defeats the purpose of allowing guests that have never been to the forum before to participate in the shoutbox.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smonk on August 22, 2009, 09:00:53 PM
http://www.stink-eye.net/forum/index.php

I am typing "http", but "hxxp" is what is getting posted . . . (??)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smonk on August 22, 2009, 09:06:15 PM
 . . . and I have tried explorer, firefox, and chrome.

same result.


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 4b11l on August 22, 2009, 09:58:29 PM
Has new features been added to the one that has been updated today? Or just bug fixes? If bugs, which ones?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on August 23, 2009, 12:24:49 AM
@4b11l
in smf 2 uninstaller not working right i just fixed it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: myownfriend on August 23, 2009, 12:38:19 AM
I still can't seem to figure out why making a slight edit to the html will make it not work in Firefox and Safari. It works in everything else, even Internet Explorer 7.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 23, 2009, 08:30:00 AM
Hey i managed to set shoutbox colors, but now i want to know how to disable sounds. Thanks: )
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 08:35:35 AM
Quote from: lexa90 on August 23, 2009, 08:30:00 AM
Hey i managed to set shoutbox colors, but now i want to know how to disable sounds. Thanks: )

Can you please note down how you did it so others can see how to do the same.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 23, 2009, 09:00:08 AM
^ Asked administrator on some other forum and he gave me his shoutbox.css file. If someone needs it i will gave it to him .:)

Now can i know how to fix my prob ? :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 09:06:00 AM
Can you attach the shoutbox css to a post please bud.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 23, 2009, 09:32:11 AM
Here it is. Now pleeeease tell me how to disable sounds.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 09:36:30 AM
If it isn't here then I'm not sure how the sounds can be turned off.

Hopefully someone may know.

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 09:40:11 AM
Who was the person you spoke to?

I had a look at the file you attached and it has given me an idea.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 23, 2009, 10:22:45 AM
^ Some spanish guy, i accidently found his forum with the same theme, and shoutbox, and he helped me :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 10:24:33 AM
I noticed the shoutbox css file you attached had super moderator in it so I have added the same to my chat and shoutbox to test.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 23, 2009, 10:48:02 AM
^ Yes i tried to add colors in chat, but they didn't work.

Anyway one more error left and i'm done

http://balkanwarez.org/index.php?amp;action=register;sa=usernamecheck;xml;username=Dolly 8:
Undefined index: chat File: /home/balkanwa/public_html/Sources/Subs.php
Line: 3737

If anyone knows. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 10:51:56 AM
attach ya file please bud.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 23, 2009, 10:54:44 AM
Here you go. :)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 11:37:59 AM
Ok so since I added Super Moderator to the staff in chat css I now have no scrollbar any ideas anyone?

       
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Neo_TE on August 23, 2009, 12:46:54 PM
Quote from: Neo_TE on August 10, 2009, 02:52:23 PM
I am unable to do the SMILEY POPUP mod posted in the following url

http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

coz I am unable to FIND the following in the "index.template.php" file. I use DILBERMC theme.
:o


      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


Please help me. I want to add custom smileys and I can't do it without enabling the "SMILEY POPUP" mod..

I have attached the "index.template.php" & screen shot of the shout with this post.

Also I have done all the MANUAL EDIT using the Package Parser.

???

PS : I am not using CHAT.

BUMP.

Someone help me.  :'(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 12:50:18 PM
Unfortunately like you I am in limbo otherwise Iwould be able to help.

Sorry bud.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Neo_TE on August 23, 2009, 01:01:29 PM
Quote from: TheListener on August 23, 2009, 12:50:18 PM
Unfortunately like you I am in limbo otherwise Iwould be able to help.

Sorry bud.

:'( :'(

Thanks for the reply bro..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mioux on August 23, 2009, 01:39:18 PM
Hello

I don't know if it was already reported, but this mod makes konqueror craches

Here is stack trace :

This backtrace appears to be of no use.
This is probably because your packages are built in a way which prevents creation of proper backtraces, or the stack frame was seriously corrupted in the crash.

[Thread debugging using libthread_db enabled]
[New Thread 0x7f4431f1d910 (LWP 11119)]
[New Thread 0x7f44330a7910 (LWP 11115)]
0x00000038574a3fa1 in nanosleep () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f4440ca2820 (LWP 11112))]

Thread 3 (Thread 0x7f44330a7910 (LWP 11115)):
#0  0x000000385800b57d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x000000396665ace2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x0000003966650e22 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x0000003966659cd5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x000000385800686a in start_thread () from /lib64/libpthread.so.0
#5  0x00000038574de39d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f4431f1d910 (LWP 11119)):
#0  0x000000385800b57d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x000000396665ace2 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x0000003966650e22 in ?? () from /usr/lib64/libQtCore.so.4
#3  0x0000003966659cd5 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x000000385800686a in start_thread () from /lib64/libpthread.so.0
#5  0x00000038574de39d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f4440ca2820 (LWP 11112)):
#0  0x00000038574a3fa1 in nanosleep () from /lib64/libc.so.6
#1  0x00000038574a3df0 in sleep () from /lib64/libc.so.6
#2  0x00007f444231704c in ?? () from /usr/lib64/libkdeui.so.5
#3  0x00007f4442317a75 in KCrash::defaultCrashHandler(int) () from /usr/lib64/libkdeui.so.5
#4  <signal handler called>
#5  0x00007f4434efec57 in ?? () from /usr/lib64/libkjs.so.4
#6  0x00007f4434f13e0c in ?? () from /usr/lib64/libkjs.so.4
#7  0x00007f4434f04516 in ?? () from /usr/lib64/libkjs.so.4
#8  0x00007f4434f1d819 in KJS::JSObject::call(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#9  0x00007f4434f396fb in ?? () from /usr/lib64/libkjs.so.4
#10 0x00007f4434f19faa in KJS::FunctionImp::callAsFunction(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#11 0x00007f4434f1d819 in KJS::JSObject::call(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#12 0x00007f4434f396fb in ?? () from /usr/lib64/libkjs.so.4
#13 0x00007f4434f19faa in KJS::FunctionImp::callAsFunction(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#14 0x00007f4434f1d819 in KJS::JSObject::call(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#15 0x00007f4434f396fb in ?? () from /usr/lib64/libkjs.so.4
#16 0x00007f4434f19faa in KJS::FunctionImp::callAsFunction(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#17 0x00007f4434f1d819 in KJS::JSObject::call(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#18 0x00007f4434f396fb in ?? () from /usr/lib64/libkjs.so.4
#19 0x00007f4434f19faa in KJS::FunctionImp::callAsFunction(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#20 0x00007f4434f1d819 in KJS::JSObject::call(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#21 0x00007f4434f396fb in ?? () from /usr/lib64/libkjs.so.4
#22 0x00007f4434f19faa in KJS::FunctionImp::callAsFunction(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#23 0x00007f4434f1d819 in KJS::JSObject::call(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#24 0x00007f4434f396fb in ?? () from /usr/lib64/libkjs.so.4
#25 0x00007f4434f19faa in KJS::FunctionImp::callAsFunction(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#26 0x00007f4434f1d819 in KJS::JSObject::call(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#27 0x00007f4434f396fb in ?? () from /usr/lib64/libkjs.so.4
#28 0x00007f4434f19faa in KJS::FunctionImp::callAsFunction(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#29 0x00007f4434f1d819 in KJS::JSObject::call(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#30 0x00007f4434f396fb in ?? () from /usr/lib64/libkjs.so.4
#31 0x00007f4434f19faa in KJS::FunctionImp::callAsFunction(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#32 0x00007f4434f1d819 in KJS::JSObject::call(KJS::ExecState*, KJS::JSObject*, KJS::List const&) () from /usr/lib64/libkjs.so.4
#33 0x00007f44355baa03 in ?? () from /usr/lib64/libkhtml.so.5
#34 0x00007f44355c2b4a in ?? () from /usr/lib64/libkhtml.so.5
#35 0x00007f44355c45e8 in ?? () from /usr/lib64/libkhtml.so.5
#36 0x00007f44355c578d in ?? () from /usr/lib64/libkhtml.so.5
#37 0x0000003966754fdc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#38 0x00007f4441ae6be2 in KJob::result(KJob*) () from /usr/lib64/libkdecore.so.5
#39 0x00007f4441ae6f5f in KJob::emitResult() () from /usr/lib64/libkdecore.so.5
#40 0x00007f444277f4f3 in KIO::SimpleJob::slotFinished() () from /usr/lib64/libkio.so.5
#41 0x00007f444277f9a3 in KIO::TransferJob::slotFinished() () from /usr/lib64/libkio.so.5
#42 0x00007f444277ed51 in KIO::TransferJob::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkio.so.5
#43 0x0000003966754fdc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#44 0x00007f444282b021 in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib64/libkio.so.5
#45 0x00007f4442828e23 in KIO::SlaveInterface::dispatch() () from /usr/lib64/libkio.so.5
#46 0x00007f444281c87d in KIO::Slave::gotInput() () from /usr/lib64/libkio.so.5
#47 0x00007f444281c9fc in KIO::Slave::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkio.so.5
#48 0x0000003966754fdc in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#49 0x00007f4442753fe7 in ?? () from /usr/lib64/libkio.so.5
#50 0x00007f444275410d in KIO::Connection::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkio.so.5
#51 0x000000396674f309 in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#52 0x0000003967f8f69c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#53 0x0000003967f966ce in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#54 0x00007f44422b5b16 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#55 0x000000396673fcbc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#56 0x00000039667408c8 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQtCore.so.4
#57 0x0000003966768743 in ?? () from /usr/lib64/libQtCore.so.4
#58 0x0000003858c37abe in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#59 0x0000003858c3b278 in ?? () from /lib64/libglib-2.0.so.0
#60 0x0000003858c3b3a0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#61 0x00000039667683b6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#62 0x000000396802242e in ?? () from /usr/lib64/libQtGui.so.4
#63 0x000000396673e5f2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#64 0x000000396673e9c4 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#65 0x0000003966740b79 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#66 0x00007f44434ca93b in kdemain () from /usr/lib64/libkdeinit4_konqueror.so
#67 0x000000385741ea2d in __libc_start_main () from /lib64/libc.so.6
#68 0x0000000000400759 in _start ()


Another user send me a report, he is also on a 64 bit version of konqueror
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 01:40:52 PM
what is konqueror?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 01:42:32 PM
Is there anyone out there with this mod whom has blackrain v2 theme or a dark theme at least so I xcan compare some files.

Everything seems to be working except my chats scrollbar has vanished.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 23, 2009, 02:26:43 PM
Hi, I know I have seen the edit for this in past post but could you direct me to the post of how to change the shoutbox color?

Also I know I have seen a lot of other edits for this mod and think it is a really great mod. Have been waiting until I had time to do the edits. Do you have a list of different edits that you can do to the shout box? I notice that you have a lot of different tricks you can do with this mod. Maybe a list of things you can do to it with links to posts next to them? I noticed that you have to answer the same questions over and over again like this one. Thought it might save you some time and  give us users some ideas at the same time. Hope you don't mind the suggestion.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 23, 2009, 05:49:27 PM
Quote from: TheListener on August 23, 2009, 01:40:52 PM
what is konqueror?
Browser for linux :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 06:41:59 PM
Here are some the most common questions and answers to getting your Chat Room and Shoutbox going on your forum for AJAX Chat Integration 3.2.1           
   
Please be sure to check the following settings in the Admin Panel.

For SMF 1.1.X  Admin/Configuration/Features and Options/

For SMF 2 RC1  Admin/Configuration/Modifications/Chat/

Enable the ShoutBox?   
Check for ShoutBox on any page or uncheck for only in index page:   
Integrate shout box and chat room?   
Chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?

Also be sure to CHECK PERMISSIONS ;)

If you are using a custom theme you will need to edit the following files in your custom theme using a Package Parser.
Themes/yourtheme/index.template.php
Themes/yourtheme/style.css

And possibly...

Themes/yourtheme/BoardIndex.template.php
If your theme does not have a BoarIndex.template don't worry about it, that means your forum is using the default BoardIndex.template           

If you get a 500 Connection error you might have to set your file permissions as well.


There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing


chat/js/chat.js
Find

this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);

Replace with

if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}


Add a Welcome Message when you users enter the Chat

Open.....yourforum/chat/js/custom.js
Find


// Overriding client side functionality:



Add After (of course change Welcome to Paranormal Haunt  to whatever you like.)


ajaxChat.customInitialize = function() {
   ajaxChat.addChatBotMessageToChatList('Welcome to Paranormal Haunt')


   Change the name of your Chatbot


Open.....yourforum/chat/lib/config.php

Find and change Chatbot to whatever you'd like.


// The userName used for ChatBot messages
$config['chatBotName'] = 'ChatBot';


AWAY FROM KEYBOARD

So people don't start saying they are being ignored this is very handy. I use this myself.

Open lib/class/CustomAJAXChat.php and add the following before the last closing bracket } at the end of the file:

function parseCustomCommands($text, $textParts) {
switch($textParts[0]) {
// Away from keyboard message:
case '/afk':
// Set the userName:
$this->setUserName('<AFK>_'.$this->getUserName());
// Update the online user table:
$this->updateOnlineList();
// Add info message to update the client-side stored userName:
$this->addInfoMessage($this->getUserName(), 'userName');
// Store AFK status as session variable:
$this->setSessionVar('AwayFromKeyboard', true);
return true;
default:
return false;
}
}

function onNewMessage($text) {
// Reset AFK status on first inserted message:
if($this->getSessionVar('AwayFromKeyboard')) {
$this->setUserName($this->subString($this->getUserName(), 6));
$this->updateOnlineList();
$this->addInfoMessage($this->getUserName(), 'userName');
$this->setSessionVar('AwayFromKeyboard', false);
}
return true;
}


PROFANITY WORD FILTER


This modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
return text;
}



This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}


ATHOUGH THERE ARE OTHER EDITS WHICH CAN BE MADE THE ONES I HAVE SHOWN ARE THE ONES I USE  ON MY CHAT.

Thanks go to mrtrc266 for the work he has endlessy put in to this mod.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Chaos Dragon on August 23, 2009, 06:58:00 PM
I am just wondering how to use private rooms in chat. This way my members can chat to who they want and not public or choose who they want to chat to just by clicking their link in chat.
I have been trying to figure it out, but no success.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 07:02:48 PM
Can ya link to your chat please CD
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Chaos Dragon on August 23, 2009, 07:14:45 PM
Quote from: TheListener on August 23, 2009, 07:02:48 PM
Can ya link to your chat please CD

I ended up figuring it out. You can click on a members link in the chat box. Just didn't realize you needed to click show online users and now also online users are showing in the side panel now so they can do it from there also. It didn't do that earlier. Maybe the server finally caught up or something. Any who I now can do the private chat and so can my members.
Thanks for the offer to help though.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 07:16:19 PM
No worries.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on August 23, 2009, 07:44:57 PM
Hey, Thanks for those edits for the mod. I plan on putting them all on my site. Especially the profanity word filter. Have it set so visitors can use to ask members for a referral link. Had a problem with a guy that just posted a bunch of bad words, nothing else.

Was wondering if you might post a comleate list of edits possible with the download page like changing color and time before shout is deleted and such? Sometime in the future when you have time. I know you are a busy man and have a lot to do.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2009, 07:50:39 PM
Quote from: ScottDB on August 23, 2009, 07:44:57 PM

Was wondering if you might post a comleate list of edits possiith the download page like changing color and time before shout is deleted and ble wsuch? Sometime in the future when you have time. I know you are a busy man and have a lot to do.

Regarding the edits you mention if I knew how to do it I would  :D

However to change the username font in chat and shout all you do is go to the relevant css file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dumblonde on August 23, 2009, 09:16:56 PM
I have installed this mod, changed my themes sheets, & verified that every edit was made in every other area.  I cannot get the chat to work.  When I click the "chat" button a window pops up that says:


Warning: require(/home/dumbscre/public_html/cn/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/dumbscre/public_html/cn/chat/index.php on line 17

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

I saw someone else had this same error message but I did not see an answer posted for it.  I almost feel like the actual "chat" program is not installed or it is installed in the wrong place.  In my user CP I see everything seems to have installed in the shoutbox folder but very little is inside the folder labeled "chat"

Please help if ya can :'(

I am attempting the install at http://cn.dumbscreen.com/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1) - missing text and buttons
Post by: timexley on August 24, 2009, 05:06:09 AM
Using SMF 1.1.10, Aeva installed - default (coreSMF) theme. Installed AjaxChat 3.2.1 . Chat is working at mysite/chat/index.php and shoutbox is working but I have no site integration buttons (if they should exist) .
Also the admin controls- tho they seem to work have no text - see pic. Tried reinstalls but that give no change.
Working on checking perms etc but any pointers welcome!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 24, 2009, 06:51:58 AM
^ Did you try install it manually ?

EDIT:

I have some massive errors can u help me fix them

QuoteOnly show the error messages of this URL  http://balkanwarez.org/index.php?action=suggest;suggest_type=member;search=code;sesc;xml;time=1251112598361
Apply Filter: Only show the errors with the same message
8: Undefined index: chat
Only show the errors from this file
File: /home/balkanwa/public_html/Sources/Subs.php
Line: 3737

Quotehttp://balkanwarez.org/index.php?amp;action=register;sa=usernamecheck;xml;username=Josip%40
Only show the errors with the same message
8: Undefined index: chat
Only show the errors from this file
File: /home/balkanwa/public_html/Sources/Subs.php
Line: 3737

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on August 24, 2009, 09:44:02 AM
@timexley
if you are using utf8 encoding you should add text string to your language file manually
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 24, 2009, 09:52:22 AM
Hunter I tried a manual edit recently and have lost the scrollbar in my chat.

Is there a way i can get it back?

I was trying to get one of the forum staff so her membergroup would be able to kick/ban people in chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smonk on August 24, 2009, 12:33:45 PM
I will help you find your scrollbar if you can help me allow guests to shout.  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 24, 2009, 01:01:32 PM
Quote from: smonk on August 24, 2009, 12:33:45 PM
I will help you find your scrollbar if you can help me allow guests to shout.  ;)

go to member permission settings and make sure shoutbox is checked off for view and use
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smonk on August 24, 2009, 01:47:23 PM
Quote from: johncccccc on August 24, 2009, 01:01:32 PM
Quote from: smonk on August 24, 2009, 12:33:45 PM
I will help you find your scrollbar if you can help me allow guests to shout.  ;)

go to member permission settings and make sure shoutbox is checked off for view and use

yep.  I am good there.  I actually started describing this problem back around reply 3581 . . .

www.simplemachines.org/community/index.php?topic=257973.msg2224538#msg2224538
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 24, 2009, 02:34:39 PM
Quote from: lexa90 on August 24, 2009, 06:51:58 AM
^ Did you try install it manually ?

EDIT:

I have some massive errors can u help me fix them

QuoteOnly show the error messages of this URL  http://balkanwarez.org/index.php?action=suggest;suggest_type=member;search=code;sesc;xml;time=1251112598361
Apply Filter: Only show the errors with the same message
8: Undefined index: chat
Only show the errors from this file
File: /home/balkanwa/public_html/Sources/Subs.php
Line: 3737

Quotehttp://balkanwarez.org/index.php?amp;action=register;sa=usernamecheck;xml;username=Josip%40
Only show the errors with the same message
8: Undefined index: chat
Only show the errors from this file
File: /home/balkanwa/public_html/Sources/Subs.php
Line: 3737

OK here is the line where error is please help me fix this :(

3717: ), rtrim(file_get_contents($sourcedir . '/' . $filename))));
3718: }
3719: else
3720: require_once($sourcedir . '/' . $filename);
3721: }
3722:
3723: function setupMenuContext()
3724: {
3725: global $context, $modSettings, $user_info, $txt, $scripturl;
3726:
3727: // Set up the menu privileges.
3728: $context['allow_search'] = allowedTo('search_posts');
3729: $context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
3730: $context['allow_edit_profile'] = !$user_info['is_guest'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups', 'profile_title_own', 'profile_title_any'));
3731: $context['allow_memberlist'] = allowedTo('view_mlist');
3732: $context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
3733: $context['allow_moderation_center'] = $context['user']['can_mod'];
3734: $context['allow_pm'] = allowedTo('pm_read');
3735:
3736: $num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
==>3737: $chatButton = $txt['chat'];
3738: $chatButton .= ($num > 0) ?  ('('.$num.')') : '';
3739: $chatLink = str_replace("index.php", "chat/index.php", $scripturl);
3740: if (!empty($modSettings['chatPopUp']))
3741: $chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';
3742:
3743:
3744: $cacheTime = $modSettings['lastActive'] * 60;
3745:
3746: // All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
3747: if (($buttonData = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
3748: {
3749: $buttons = array(
3750: 'home' => array(
3751: 'title' => $txt['home'],
3752: 'href' => $scripturl,
3753: 'show' => true,
3754: 'sub_buttons' => array(
3755: ),
3756: ),
3757: 'help' => array(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 24, 2009, 02:45:26 PM
Lexa90

Sorry bud but I haven't got a clue.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: timexley on August 25, 2009, 02:11:04 AM
Quote@timexley
if you are using utf8 encoding you should add text string to your language file manually

Awesome - thanks hunter - that was exactly the pointer I needed! We are using UTF8. Will edit the files as you suggested - everything working perfectly now. Many thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on August 25, 2009, 05:41:52 AM
@lexa90
if you are using any language other than english or using utf8 you should add $txt['chat'] with your desired string to modification.[yourlanguage].php file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lexa90 on August 25, 2009, 08:25:32 AM
^ Will try. Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DarioRed on August 25, 2009, 01:02:02 PM
How to remove
Quotex user is in chat.:
from online user statistic?

And how to move shoutbox to bottom of page?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 25, 2009, 01:08:46 PM
Have a look here

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ishaan on August 25, 2009, 06:37:11 PM
Hello Brother..
  I am installed your  AjaxChat Integration (latest version 3.2.1). My SMF version is  1.1.10. the mod installation is successful. But when i try to type on shout bux this MSG is coming.
QuoteChatBot: Error: Connection status: 500

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi32.tinypic.com%2F2udvogg.jpg&hash=f6158ba32898a643f05750a5c2af9fc49eebd09c)

Kindly plzz help me  :-[



I know my English is not good. sry
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 25, 2009, 06:39:56 PM
You need to set your permissions.

Go to the AJAX CHAT links in my signature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ishaan on August 25, 2009, 09:07:33 PM
Thank You!! TheListener  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mike s on August 26, 2009, 05:22:26 PM
I'm having trouble as well.

I installed this version to a brand new clean test system and it went in no issues and said it was succesful. Yet when I hit the Chat button, I get a pop-up window open for http://www.xxxxx.com/smf/chat/index.php that states :500 Internal Server Error  The page cannot be displayed.  Return to home page

I checked the users permissions and set on with SMF to allow them chat.
Using my FTP profile I check the above mentioned file and it has permissions of 666. I tried setting it to 777 (allow execute) but to no avail.

Uninstalled and reinstalled with the same results.

what am I missing?

regards, Mike.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 26, 2009, 05:25:32 PM
Mike try setting the permissions as 755 NOT 777
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mike s on August 26, 2009, 05:27:35 PM
thx for fast reply...that worked. much appreciated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bobn on August 27, 2009, 06:58:35 AM
Anyway to add an enter or chat button to the shoutbox?  Some members dont know to just hit enter.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on August 27, 2009, 08:09:54 AM
How do you get rid or turn down the sound on shout box? I changed the config file to sound= o.o still have sound?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zach21uk on August 27, 2009, 08:38:53 AM
Quote from: zach21uk on August 17, 2009, 06:54:03 AM
Is there a way to add a mute button to the "mini" shoutbox (not the fullsize chat which already has that).

Also, can I do something to make the mini shoutbox so that it always updates, even when a user is browsing the forum and not "focussed" or "click into" the shoutbox.

I REALLY need help with these two things.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sombra on August 27, 2009, 05:00:02 PM
thanks for this great mod used it like for a few months now

but now i got a problem my forum brings down the server and my account got suspended all for some errors i dont understand and i got told there were from ajax chat

http://www.simplemachines.org/community/index.php?topic=333042.0

is there any way i can unisntall this chat with the mod what are the steps to unisntall to see if the problem persist

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 27, 2009, 05:22:21 PM
Quote from: sombra on August 27, 2009, 05:00:02 PM
thanks for this great mod used it like for a few months now

but now i got a problem my forum brings down the server and my account got suspended all for some errors i dont understand and i got told there were from ajax chat

http://www.simplemachines.org/community/index.php?topic=333042.0

is there any way i can unisntall this chat with the mod what are the steps to unisntall to see if the problem persist

thanks

What were the errors?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CvH on August 27, 2009, 06:03:32 PM
i´ve tried to install this mod to my smf 2RC1.2 with sqlite but it dont work cause of some errors in syntax (id INT(11) NOT NULL AUTO_INCREMENT wont work at sqlite). Any chance to install it ? (sry my mysql -> sqlite conversion skills are near 0 ;) )
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sombra on August 27, 2009, 07:03:46 PM
in the url i left there is the topic
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: genie on August 27, 2009, 07:39:50 PM
I have installed this several times on different fresh installs of 2.0RC1.2 and continue to get an error code  (19:36:10) ChatBot: Error: Connection status: 500  for the shoutbox.

When clicking the chat button, I get the traditional

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I don't know where to turn to correct this.  Any help would be very welcomed.  It looks like a wonderful mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 27, 2009, 07:42:16 PM
Have a look at the links in both my and mrtrc266' signatures for the 500 error
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Suu on August 28, 2009, 09:00:05 AM
Hi!
I'm an Italian girl, and in my forum, I've got this problem

8: Undefined index: enableChatBelowPM
File: /membri/cartoniefumetti2/Forum/Themes/default/languages/TPShout.italian.php (eval?)
Linea: 271

How can I resolve it? :-[
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: genie on August 28, 2009, 09:18:06 AM
Quote from: TheListener on August 27, 2009, 07:42:16 PM
Have a look at the links in both my and mrtrc266' signatures for the 500 error

Thank you.  Once I found the index.php in both shoutbox and chat and changed them to 755, I was good to go.

I had only made sure the directories were 755, not those file names.  Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Console Network on August 28, 2009, 12:00:19 PM
Hey guys i have a problem i installed this mod with the Package Manager, and everything seems to be working just fine just only i (the admin) is able to see the chatbox in the index. Do i have to add some sort of permissions to make it visible to all my members?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 28, 2009, 12:03:33 PM
Make sure all the permissions are set via the admin area.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Console Network on August 28, 2009, 12:20:41 PM
Quote from: TheListener on August 28, 2009, 12:03:33 PM
Make sure all the permissions are set via the admin area.
Can you tell me how? btw im running SMF 1.1.10
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 28, 2009, 12:23:40 PM
Can you let me have a temp admin account please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Console Network on August 28, 2009, 12:29:07 PM
Quote from: TheListener on August 28, 2009, 12:23:40 PM
Can you let me have a temp admin account please?
Ok sure the site is console-network.co.cc/

and i sent you the admin details on a PM.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Suu on August 28, 2009, 01:29:06 PM

Hi!
I'm an Italian girl, and in my forum, I've got this problem

8: Undefined index: enableChatBelowPM
File: /membri/cartoniefumetti2/Forum/Themes/default/languages/TPShout.italian.php (eval?)
Linea: 271

How can I resolve it? :-[
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 28, 2009, 05:37:14 PM
Quote from: Suu on August 28, 2009, 01:29:06 PM

Hi!
I'm an Italian girl, and in my forum, I've got this problem

8: Undefined index: enableChatBelowPM
File: /membri/cartoniefumetti2/Forum/Themes/default/languages/TPShout.italian.php (eval?)
Linea: 271

How can I resolve it? :-[

There are numerous topics on eval if you do a search for it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 28, 2009, 05:40:16 PM
This mod may help.

http://custom.simplemachines.org/mods/index.php?mod=2054
Title: Re: AjaxChat Integration
Post by: drizzi on August 29, 2009, 08:35:59 AM
hi guys,

does anyone know where these cute smilies are from ?

greets
steven
Title: Re: AjaxChat Integration
Post by: TheListener on August 29, 2009, 08:37:38 AM
Quote from: drizzi on August 29, 2009, 08:35:59 AM
hi guys,

does anyone know where these cute smilies are from ?

greets
steven

Steven I'm not sure where they are from but I believe that you can add your own.
Title: Re: AjaxChat Integration
Post by: drizzi on August 29, 2009, 08:41:21 AM
Quote from: TheListener on August 29, 2009, 08:37:38 AM
Quote from: drizzi on August 29, 2009, 08:35:59 AM
hi guys,

does anyone know where these cute smilies are from ?

greets
steven

Steven I'm not sure where they are from but I believe that you can add your own.

i know, but i like the style of the smilies and would like to know, if there are more of this specific style are existing.

thanks :-)

greets
steven
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hustreamload on August 30, 2009, 03:45:01 AM
Hi,
I've just installed Ajax Chat on our forum.
Its a hungarian one, uses hungarian-utf8.

After installation in the admin panel the Shoutbox Admin button hasnt appeared, only a single line.
The Modifications.hungarian-utf8.php looked like so:

<?php
// Version: 1.1; Modifications

?>

After running "Language File Compare" I've changed the "Modifications.hungarian-utf8.php", practically copied the Modifications.english.php...and the Shoutbox Admin button appeared.

I've tried to use it, but a fatal error message is all:

"Fatal error: require_once() [function.require]: Failed opening required '/data/webcontent/streamload.hu/forum.streamload.hu/Sources/ManageShoutbox.php' (include_path='.:/usr/share/php:/usr/share/pear') in /data/webcontent/streamload.hu/forum.streamload.hu/index.php on line 351"

I cannot find anywhere this "ManageShoutbox.php", could you help me?

Thnx:
HuStreamload
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on August 30, 2009, 06:11:05 AM
@hustreamload
are you sore you are using this mod?
http://custom.simplemachines.org/mods/index.php?mod=1319
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hustreamload on August 30, 2009, 06:15:38 AM
Sure, I've uninstalled and deleted, and tried again with a new download...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hustreamload on August 30, 2009, 07:03:25 AM
My first trying was Hack Parks Chatbox, but I've uninstalled it, because it has appeared only in the SMF Default Theme.
Later I've installed Ajax Chat.

I've just found in the index.php the line:

// Hack's Park Shoutbox -->
      'shoutbox' => array('Shoutbox.php', 'Shoutbox'),
      'manageshoutbox' => array('ManageShoutbox.php', 'ManageShoutbox'),
      // <-- Hack's Park Shoutbox
      

If I delete this entirely from the index.php, then the Shout Box option remains in the admin panel, but after pushing nothing happens (see pics)

http://i31.tinypic.com/14lqc86.jpg
http://i29.tinypic.com/ay56ax.jpg



Should I anyway see in the admin site a shoutbox admin line?

Thnx
HuStreamload
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gigz09 on August 30, 2009, 10:44:56 AM
hi i have encountered some problems regarding installing this mod..

the thing is.. i installed this mod manually.. i want to ask how could i possibly run the Tables_1.1.x.php manually so that smf could create tables for the ajaxchat.


and one more thing.. how could i change the username length in the shoutbox/chatbox module...

also what are the steps to remove the Change UserName and Logout in the chat module..

BTW, im using SMF 1.1.10 and AjaxChat 3.2.1

TIA.. i really need an answer.. thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kung! on August 30, 2009, 11:39:28 AM
I've done some looking around, but I have to admit that I flat out do not have the time to read 184 pages.

Is there a way to move it to the bottom of the index page?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gigz09 on August 30, 2009, 12:34:09 PM
i reinstalled the module..

now the problem is.. only the admins can see the shoutbox..i already set the permissions but nothing is change..

anyone can help me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vortfix on August 30, 2009, 12:47:55 PM
I can't read through all these pages.
I installed the chat feature and it has not shown up anywhere besides installed packages.
It says it's there...nothing anywhere else.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gigz09 on August 30, 2009, 12:56:04 PM
Quote from: Vortfix on August 30, 2009, 12:47:55 PM
I can't read through all these pages.
I installed the chat feature and it has not shown up anywhere besides installed packages.
It says it's there...nothing anywhere else.

did you enable it on your admin panel? at features and options?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vortfix on August 30, 2009, 01:07:23 PM
I would if I could.  There is nothing in there about it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gigz09 on August 30, 2009, 01:18:27 PM
Quote from: Vortfix on August 30, 2009, 01:07:23 PM
I would if I could.  There is nothing in there about it.

what version of smf and ajaxchat you are using with?







i wonder why my permission page looks like this..

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi521.photobucket.com%2Falbums%2Fw331%2Fgigz09%2Fsmf.jpg&hash=17f6db7d2733b7ddf1c2115f9890096e15e0d18c)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vortfix on August 30, 2009, 01:33:46 PM
Well, I guess that is my problem.
I am running 1.1.10 and I loaded something else without thinking.
I will delete and reload the correct version.
thank you for bringing to my attention a rather stupid move on my part.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vortfix on August 30, 2009, 01:46:21 PM
That did not work either.
The download 321 zip is supposed to be compatible with 1.1.10.
So I do not know why I can't get this to show up.

Thank you for your help.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 30, 2009, 01:48:25 PM
Have you tried a manual install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gigz09 on August 30, 2009, 01:51:47 PM
Quote from: Vortfix on August 30, 2009, 01:46:21 PM
That did not work either.
The download 321 zip is supposed to be compatible with 1.1.10.
So I do not know why I can't get this to show up.

Thank you for your help.

im using 1.1.10 and ajax 3.2.1 too.. but my problem is different..

is it your database is in utf-8 format? if yes you should rename your modification.english to modification.english-utf8 i guess =)



there's still no reply with my queries.. i really want to use this completely..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dumblonde on August 30, 2009, 08:08:54 PM
How do I change the name (shown at the top) of the Chatroom from "Ajax Chat" to something else?

Also I know I saw this info somewhere but cannot find it now... where do I change the wording of the count of users in chat (shown at bottom of forum)  to something else?




Thanks :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 30, 2009, 08:11:07 PM
Have a look through the link in my and mrtrc266's signatures.

Please let me know when you find it.

Also would spomeone please help me get my chats scroller to work properly.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dumblonde on August 30, 2009, 08:32:52 PM
The links in your siggy don't take me anywhere with any info  :o

I have looked at the tips in mrtrc266's siggy many times but cannot find the info I need so if anyone can help me I would appreciate it.


Also is there a setting I can change so my users will be automatically logged into chat when they click the "chat" button?  Right now it goes to as manual login page.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 30, 2009, 08:35:15 PM
http://sourceforge.net/docman/?group_id=214758
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: HandsomeDan on August 31, 2009, 01:05:56 AM
I'm completely stumped!

To begin, I was (fortunately) able to get the chat room up and running without a problem at all.  This morning I installed Pretty URL's and then realized there was a problem.  After coming here and applying the .htaccess fix, I'm still having an issue, which is:

The room loads fine in IE8.  Smooth as silk!
However, in Firefox (3.5) I'm constantly routed back to my forum's homepage after clicking the login button.

I've reinstalled the board countless times, 755'd the dirs/index.php, and I'm out of ideas.

What in the world is going on?  It was working just fine in Firefox (my primary browser) in the beginning...now the room won't even load.  I've been in talks with my users and they're experiencing the same issue.

My apologies if this has already been covered somewhere in the 185 pages of questions...

EDIT:  I uninstalled the SMF integration mod and reinstalled it.  It still works terrific in IE8, but now Firefox gives me an error in red: You can't access the chat.  If I try to log-in, I'm immediately shot back to my forum's homepage.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gigz09 on August 31, 2009, 07:33:33 AM

i wonder why my permission page looks like this..

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi521.photobucket.com%2Falbums%2Fw331%2Fgigz09%2Fsmf.jpg&hash=17f6db7d2733b7ddf1c2115f9890096e15e0d18c)

and still my members cant see the shoutbox, im the only one who can see it.. the permission were already changed.






still no progress at all.. i already reinstalled and checked every single file of it..

im using BluesMegaColor theme.. i think the problem is in the Permissions, even i changed it, it doesnt have any effect at all..

i already tried to switch back to the default theme.. still no luck, i am the only one who can see the shoutbox.. my bad.. it seems no one can help me with this... what should i do...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 31, 2009, 10:43:02 AM
Gigz

If you would like me to have a look please pm your forums address and temp admin details to me.

I can't promise any miracles though.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gigz09 on August 31, 2009, 11:11:15 AM
Quote from: TheListener on August 31, 2009, 10:43:02 AM
Gigz

If you would like me to have a look please pm your forums address and temp admin details to me.

I can't promise any miracles though.

sure.. i'll entrust you this.. thank you.. =)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gigz09 on August 31, 2009, 12:21:02 PM
thanks for TheListerner's Help! ^_^


now i think we do have the same problem now... the ScrollBar ^_^
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 31, 2009, 12:29:00 PM
Thanks for the trust.

If anyone else would like help in this way please pm me ( not all at once).

I can't promise a miracle but I will help where I can.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gigz09 on August 31, 2009, 12:52:28 PM
Quote from: TheListener on August 31, 2009, 12:29:00 PM
Thanks for the trust.

If anyone else would like help in this way please pm me ( not all at once).

I can't promise a miracle but I will help where I can.

hehe ^_^ now i figured it out the problem.. is it all because i integrate the shoutbox to my chatbox, and on the permission side the chatbox were disabled.. heheh i thought it will be different..

^_^




just want to ask.. how long before the message will be gone in shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 31, 2009, 06:11:47 PM
My shout and chat are independant from each other.

As for the question I'm not sure.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 31, 2009, 06:13:25 PM
Quote from: HandsomeDan on August 31, 2009, 01:05:56 AM
I'm completely stumped!

To begin, I was (fortunately) able to get the chat room up and running without a problem at all.  This morning I installed Pretty URL's and then realized there was a problem.  After coming here and applying the .htaccess fix, I'm still having an issue, which is:

The room loads fine in IE8.  Smooth as silk!
However, in Firefox (3.5) I'm constantly routed back to my forum's homepage after clicking the login button.

I've reinstalled the board countless times, 755'd the dirs/index.php, and I'm out of ideas.

What in the world is going on?  It was working just fine in Firefox (my primary browser) in the beginning...now the room won't even load.  I've been in talks with my users and they're experiencing the same issue.

My apologies if this has already been covered somewhere in the 185 pages of questions...

EDIT:  I uninstalled the SMF integration mod and reinstalled it.  It still works terrific in IE8, but now Firefox gives me an error in red: You can't access the chat.  If I try to log-in, I'm immediately shot back to my forum's homepage.

Have you checked all the permissions?

If required I am willing to have a look although I am unable to make any promises.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nuts_fever_007 on August 31, 2009, 06:35:53 PM
open your .htaccess file and add the line below and i guess u will be good to go

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


Quote from: HandsomeDan on August 31, 2009, 01:05:56 AM
I'm completely stumped!

To begin, I was (fortunately) able to get the chat room up and running without a problem at all.  This morning I installed Pretty URL's and then realized there was a problem.  After coming here and applying the .htaccess fix, I'm still having an issue, which is:

The room loads fine in IE8.  Smooth as silk!
However, in Firefox (3.5) I'm constantly routed back to my forum's homepage after clicking the login button.

I've reinstalled the board countless times, 755'd the dirs/index.php, and I'm out of ideas.

What in the world is going on?  It was working just fine in Firefox (my primary browser) in the beginning...now the room won't even load.  I've been in talks with my users and they're experiencing the same issue.

My apologies if this has already been covered somewhere in the 185 pages of questions...

EDIT:  I uninstalled the SMF integration mod and reinstalled it.  It still works terrific in IE8, but now Firefox gives me an error in red: You can't access the chat.  If I try to log-in, I'm immediately shot back to my forum's homepage.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: HandsomeDan on August 31, 2009, 08:03:40 PM
Quote from: nuts_fever_007 on August 31, 2009, 06:35:53 PM
open your .htaccess file and add the line below and i guess u will be good to go

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

I had already applied this line earlier.  I've put it anywhere and everywhere in the .htaccess file...still no luck.  I created a sub-domain (w/settings for cookies enabled for sub-domains in smf) just for the chat and the red "You can't access the chat" error goes away...but as soon as I click "login" it takes me directly back home.

I went in to check permissions to make sure all the groups had access to the chat - still no luck.

I go into IE8 and the chat room still works perfectly with the sub-domain or without.  I have clumps of my hair on my desk from working on this.  It makes absolutely no sense. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Gp. on August 31, 2009, 08:07:23 PM
Hi,
I need help getting this to work on the Noize theme by Dzinerstudio.
http://www.project512.net/forums/

index.template.php is different as the navigation is dropdown lists as you can see by the theme.
Please help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hustreamload on August 31, 2009, 11:03:27 PM
Hi there, sorry, but I'm still waiting for any answer on these question(s):
http://www.simplemachines.org/community/index.php?topic=257973.msg2235261#msg2235261
http://www.simplemachines.org/community/index.php?topic=257973.msg2235389#msg2235389

As you see, in the admin panel remains something shoutbox admin line, as I see it remained from an earlier installation of Hack's Shoutbox.

But anyway, I cannot admin enough the Ajax Chat, only these 2 pages (with more options, of course):
http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=112592;image
http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=112600;image


How can I determine the visible lines in shoutbox?
How can I determine the number of the shouts, that I can see with rollback?
How can I ban a user from the chat?...etc.


Sorry, but these 185 pages are too long to read over. Maybe a FAQ could be useful for such SMF beginners, as I.

Thnx
HuStreamload


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 31, 2009, 11:13:08 PM
Quote from: hustreamload on August 31, 2009, 11:03:27 PM

But anyway, I cannot admin enough the Ajax Chat, only these 2 pages (with more options, of course):
http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=112592;image
http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=112600;image


Have you set the permissions for your membergroups?

Would you please link to your forum pllease.

If you would like me to look at it then please pm a temp admin account to me.

I will help as much as I can.

How can I determine the visible lines in shoutbox?
How can I determine the number of the shouts, that I can see with rollback?
How can I ban a user from the chat?...etc.


Sorry, but these 185 pages are too long to read over. Maybe a FAQ could be useful for such SMF beginners, as I.

Thnx
HuStreamload
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jaminb2030 on August 31, 2009, 11:15:02 PM
well from what i can tell only the main Admin account can see the chat no one else no member no mods

http://vmasterz.aohelp.info
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 31, 2009, 11:17:25 PM
http:vmasterz.aohelp.info (//http://http:vmasterz.aohelp.info)

Would you like me to have a look at it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 31, 2009, 11:36:18 PM
Not sure what it is.

I would suggest you ask in the 2.0 support thread.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hustreamload on August 31, 2009, 11:55:43 PM
Yes?
http://www.simplemachines.org/community/index.php?topic=257973.msg2238079#msg2238079
?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 31, 2009, 11:59:45 PM
Quote from: hustreamload on August 31, 2009, 11:55:43 PM
Yes?
http://www.simplemachines.org/community/index.php?topic=257973.msg2238079#msg2238079
?

If you would like me to help with the problem please pm me the forums link and a temp admin account.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hustreamload on September 01, 2009, 12:01:19 AM
I do so in 5 minutes, thnx
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hustreamload on September 01, 2009, 12:09:56 AM
Done
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 01, 2009, 12:30:06 AM
As a reminder for folks due to the amount of pages:

Here are some of the most common questions and answers to getting your Chat Room and Shoutbox going on your forum for AJAX Chat Integration 3.2.1           
   
Please be sure to check the following settings in the Admin Panel.

For SMF 1.1.X  Admin/Configuration/Features and Options/

For SMF 2 RC1  Admin/Configuration/Modifications/Chat/

Enable the ShoutBox?   
Check for ShoutBox on any page or uncheck for only in index page:   
Integrate shout box and chat room?   
Chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?

Also be sure to CHECK PERMISSIONS ;)

If you are using a custom theme you will need to edit the following files in your custom theme using a Package Parser.
Themes/yourtheme/index.template.php
Themes/yourtheme/style.css

And possibly...

Themes/yourtheme/BoardIndex.template.php
If your theme does not have a BoarIndex.template don't worry about it, that means your forum is using the default BoardIndex.template           

If you get a 500 Connection error you might have to set your file permissions as well.

There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing

chat/js/chat.js
Find

Code: [Select]
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);

Replace with
Code: [Select]
if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}
Add a Welcome Message when you users enter the Chat

Open.....yourforum/chat/js/custom.js
Find

Code: [Select]
// Overriding client side functionality:

Add After (of course change Welcome to Paranormal Haunt  to whatever you like.)


Code: [Select]
ajaxChat.customInitialize = function() {
   ajaxChat.addChatBotMessageToChatList('Welcome to Paranormal Haunt')

   Change the name of your Chatbot

Open.....yourforum/chat/lib/config.php

Find and change Chatbot to whatever you'd like.

Code: [Select]
// The userName used for ChatBot messages
$config['chatBotName'] = 'ChatBot';
AWAY FROM KEYBOARD

So people don't start saying they are being ignored this is very handy. I use this myself.

Open lib/class/CustomAJAXChat.php and add the following before the last closing bracket } at the end of the file:

Code: [Select]
function parseCustomCommands($text, $textParts) {
      switch($textParts[0]) {
         // Away from keyboard message:
         case '/afk':
            // Set the userName:
            $this->setUserName('<AFK>_'.$this->getUserName());
            // Update the online user table:
            $this->updateOnlineList();
            // Add info message to update the client-side stored userName:
            $this->addInfoMessage($this->getUserName(), 'userName');
            // Store AFK status as session variable:
            $this->setSessionVar('AwayFromKeyboard', true);
            return true;
         default:
            return false;
      }
   }

   function onNewMessage($text) {
      // Reset AFK status on first inserted message:
      if($this->getSessionVar('AwayFromKeyboard')) {
         $this->setUserName($this->subString($this->getUserName(), 6));
         $this->updateOnlineList();
         $this->addInfoMessage($this->getUserName(), 'userName');
         $this->setSessionVar('AwayFromKeyboard', false);
      }
      return true;
   }
PROFANITY WORD FILTER

This modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

Code: [Select]
//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
return text;
}

This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

Code: [Select]
//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}

ATHOUGH THERE ARE OTHER EDITS WHICH CAN BE MADE THE ONES I HAVE SHOWN ARE THE ONES I USE  ON MY CHAT.

Thanks go to mrtrc266 for the work he has endlessy put in to this mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kingkingston on September 01, 2009, 01:17:36 AM
7. Execute Modification ./Themes/default/index.template.php Test failed

had this problem when i went to install it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 01, 2009, 10:30:27 AM
Quote from: kingkingston on September 01, 2009, 01:17:36 AM
7. Execute Modification ./Themes/default/index.template.php Test failed

had this problem when i went to install it.

All this means is you have to manually edit the file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Urbanite on September 01, 2009, 10:36:05 AM
I've been playing around with different settings of this great mod over a number of days now and all things considered it comes out on top of  Hack's Park ShoutBox, the only feature insofar as I can make out that stops it being used as a standalone ShoutBox is that you cant turn access to the chat off completely.

I have an application where I would only want to use the ShoutBox part of this mod, is there any way I can stop the 'chat' button appearing on the menu without removing it from the code? Or if it I have to remove code can someone point me to what would need to be removed, thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kingkingston on September 01, 2009, 12:35:03 PM
Quote from: TheListener on September 01, 2009, 10:30:27 AM
Quote from: kingkingston on September 01, 2009, 01:17:36 AM
7. Execute Modification ./Themes/default/index.template.php Test failed

had this problem when i went to install it.

All this means is you have to manually edit the file.
yeah i worked that out but how do i get the chat to work ? i enable it but when i click the chat button it pops up and doesn't show the chat,is there something else i need to do ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 01, 2009, 12:38:26 PM
Can I have a temp admin account please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kingkingston on September 01, 2009, 12:45:35 PM
Quote from: TheListener on September 01, 2009, 12:38:26 PM
Can I have a temp admin account please?
yeah sure sent you an email
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 01, 2009, 12:58:52 PM
You will be unable to use the chat until the file is edited manually.

Once done then all should be set. 

Don't forget the permissions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: danielwmoore on September 01, 2009, 01:17:29 PM
This chat mod is really great.  I have installed AjaxChat on SMF before without trouble, but I love the ease of how it is accomplished with this mod.  Also, with this mod, I am able to keep banned members out of chat because of the permissions that have been set.  That is really awesome.  That is why I changed over to this mod after testing it.

I have done further modifications with mine, and added a "chat" action (?action=chat) and changed the menu button destination so that it opens up into a chat.template.php in my theme I set up.  Now the chat room is contained within the forum itself, or so appears to be.  I used Javascript to detect a person's screen size and use that to calculate an iframe height, and use 100% width.  I have trimmed the top of the chat so that it fits in seamlessly.  No need to repeat titles.

I've also moved the shoutbox to the bottom of all the forum pages, and integrated it with the chat to encourage more participation.

It's been working out great.  We were using x7chat before and chat was empty all the time.  Now we have conversations going on and chat rooms filling up several times every day. 

Thanks for this mod.  Awesome, really.  I still went in and did a lot of custom edits, but I usually do that with all mods.  This made the whole thing a lot easier.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 01, 2009, 01:31:14 PM
Daniel can you please share how you moved the shoutbox to the bottom of your forum.

many people have asked how to do so.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Frosted Flake on September 01, 2009, 05:19:31 PM
Members of my forum are having trouble logging into the Ajax chat except for the admins. Here's what they get:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi32.tinypic.com%2F30cbu5c.png&hash=eb9422c93a48f3b1b0c469f86fb5e64beaa215dd)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 01, 2009, 05:26:22 PM
Frosted Flake

I believe it may be your permissions.

Please pm an admin account and I will have a look for you.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Frosted Flake on September 01, 2009, 05:36:55 PM
Please help and tell me what I should do. I don't want to PM you an admin account.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 01, 2009, 05:39:32 PM
Without knowing what the exact problem is I am unable to help.

It could be the permissions, the file permissions may not be set to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Frosted Flake on September 01, 2009, 06:05:05 PM
Quote from: TheListener on September 01, 2009, 05:39:32 PM
Without knowing what the exact problem is I am unable to help.

It could be the permissions, the file permissions may not be set to 755
What file would it be called?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 01, 2009, 06:06:30 PM
Look in the permissions in the admin area.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Frosted Flake on September 01, 2009, 06:08:44 PM
Quote from: TheListener on September 01, 2009, 06:06:30 PM
Look in the permissions in the admin area.
I know but which file do I set to 755?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 01, 2009, 06:10:16 PM
that has to be done either via your control panel or ftp
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Frosted Flake on September 01, 2009, 06:11:31 PM
Quote from: TheListener on September 01, 2009, 06:10:16 PM
that has to be done either via your control panel or ftp
Dude I know. Just tell me what file name I have to set to 755.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 01, 2009, 06:13:38 PM
Here are some the most common questions and answers to getting your Chat Room and Shoutbox going on your forum for AJAX Chat Integration 3.2.1           
   
Please be sure to check the following settings in the Admin Panel.

For SMF 1.1.X  Admin/Configuration/Features and Options/

For SMF 2 RC1  Admin/Configuration/Modifications/Chat/

Enable the ShoutBox?   
Check for ShoutBox on any page or uncheck for only in index page:   
Integrate shout box and chat room?   
Chat in popup page?   
Enable online chat users numbering on chat button?   
Show online users below total logged in time section?

Also be sure to CHECK PERMISSIONS ;)

If you are using a custom theme you will need to edit the following files in your custom theme using a Package Parser.
Themes/yourtheme/index.template.php
Themes/yourtheme/style.css

And possibly...

Themes/yourtheme/BoardIndex.template.php
If your theme does not have a BoarIndex.template don't worry about it, that means your forum is using the default BoardIndex.template           

If you get a 500 Connection error you might have to set your file permissions as well.

There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing

chat/js/chat.js
Find

Code: [Select]
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);

Replace with
Code: [Select]
if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}
Add a Welcome Message when you users enter the Chat

Open.....yourforum/chat/js/custom.js
Find

Code: [Select]
// Overriding client side functionality:

Add After (of course change Welcome to Paranormal Haunt  to whatever you like.)


Code: [Select]
ajaxChat.customInitialize = function() {
   ajaxChat.addChatBotMessageToChatList('Welcome to Paranormal Haunt')

   Change the name of your Chatbot

Open.....yourforum/chat/lib/config.php

Find and change Chatbot to whatever you'd like.

Code: [Select]
// The userName used for ChatBot messages
$config['chatBotName'] = 'ChatBot';
AWAY FROM KEYBOARD

So people don't start saying they are being ignored this is very handy. I use this myself.

Open lib/class/CustomAJAXChat.php and add the following before the last closing bracket } at the end of the file:

Code: [Select]
function parseCustomCommands($text, $textParts) {
      switch($textParts[0]) {
         // Away from keyboard message:
         case '/afk':
            // Set the userName:
            $this->setUserName('<AFK>_'.$this->getUserName());
            // Update the online user table:
            $this->updateOnlineList();
            // Add info message to update the client-side stored userName:
            $this->addInfoMessage($this->getUserName(), 'userName');
            // Store AFK status as session variable:
            $this->setSessionVar('AwayFromKeyboard', true);
            return true;
         default:
            return false;
      }
   }

   function onNewMessage($text) {
      // Reset AFK status on first inserted message:
      if($this->getSessionVar('AwayFromKeyboard')) {
         $this->setUserName($this->subString($this->getUserName(), 6));
         $this->updateOnlineList();
         $this->addInfoMessage($this->getUserName(), 'userName');
         $this->setSessionVar('AwayFromKeyboard', false);
      }
      return true;
   }
PROFANITY WORD FILTER

This modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

Code: [Select]
//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
return text;
}

This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

Code: [Select]
//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}

ATHOUGH THERE ARE OTHER EDITS WHICH CAN BE MADE THE ONES I HAVE SHOWN ARE THE ONES I USE  ON MY CHAT.

Thanks go to mrtrc266 for the work he has endlessy put in to this mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Frosted Flake on September 01, 2009, 06:18:51 PM
I changed the shoutbox & chat permissions and I'm still having trouble.  :'( My members can't log in.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on September 01, 2009, 06:53:27 PM
Quote from: Frosted Flake on September 01, 2009, 06:18:51 PM
I changed the shoutbox & chat permissions and I'm still having trouble.  :'( My members can't log in.
It's either the permissions in your Admin Control Panel->Permissions that aren't set properly or the code in the actual script needs to be modified.

If those two things don't work I would have to say it could be something on the users end blocking the process. (like a firewall) Which is unlikely.


The code in the script you would want to change would be the lib/class/CustomAJAXChat.php file

Here is some information on that file. From the AjaxChat wiki.

getValidLoginUserData()
This method is called on chat login to retrieve valid authentication data.
It must return an associative array with the following values:
'userID' => the userID of the logged in user
'userName' => the (trimmed) userName of the logged in user
'userRole' => the userRole of the logged in user
If the user is logged in to the existing system it should return the userID and the ("trimmed") userName of this user.
The method $this->trimUserName($userName) returns a "trimmed" version of the userName which ensures UTF-8 encoding and avoids invalid characters (e.g. it replaces spaces with the underscore).
The userRole must be one of the following constants:
AJAX_CHAT_ADMIN
AJAX_CHAT_MODERATOR
AJAX_CHAT_USER
If the user is not logged in to the existing system, the method can just return with a call to $this->getGuestUser().
If guest access is allowed, $this->getGuestUser() returns an associative array with a unique guest userID, a guest userName and the userRole constant AJAX_CHAT_GUEST.
If guest access is disabled, $this->getGuestUser() just returns null, which means login is denied.

To read more- http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Custom_integration_howto#getValidLoginUserData.28.29
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: danielwmoore on September 01, 2009, 08:33:39 PM
Quote from: TheListener on September 01, 2009, 01:31:14 PM
Daniel can you please share how you moved the shoutbox to the bottom of your forum.

many people have asked how to do so.

Certainly, I'd be happy to do so. 

Moving the ShoutBox to the bottom of the page
(index only or all pages, depending on setting in admin panel.  Works either way.)

Open Sources/Load.php:

Find:
array_splice($context['template_layers'], 1, 0, 'shout');


The array_splice might have different numeric constants passed to it, so it might take a bit of searching.  Mine was:
array_splice($context['template_layers'], 2, 0, 'shout');

Replace:
// array_splice($context['template_layers'], 1, 0, 'shout');


As you can see, all you need to do is comment that line out.

Now, there is a problem that when you complete all the changes, and you collapse or expand the ShoutBox, it will jump to the top of the forum page.  You want it to still focus on the ShoutBox, so we do the following:
Open Themes/default/Shout.template.php.
Find:

<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '


Replace with:

<a name="ajax_shoutbox" rel="nofollow" href="#ajax_shoutbox" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '


Now, for the fun part.  I next opened index.template.php in each theme that I wanted to place the ShoutBox in. (Which, of course, was all of them.)  This is where you actually place the ShoutBox at the bottom.

Find:

function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
</div>';

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!


Replace with:

function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt;
        template_shout_above();
echo '
</div>';

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
}


If, however, like me, you have created a chat.template.php to integrate it into your forum and a "?action=chat" action to direct people to chat, then you need to replace with the following instead.  (Code for integrating is shown below.) Otherwise, you will see the ShoutBox at the bottom of your actual chat screen, which is not the desired result.  Two chat windows on the same screen can be confusing.

function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt;
if (!($context['current_action'] == 'chat')) {
    template_shout_above();
  }
echo '
</div>';

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
}


If you want to integrate chat into the forum template system (as hinted to above) then do the following:
Open Sources/Subs.php
Find:

'chat' => array(
'title' => $chatButton,
'href' => $scripturl . $chatLink,
'show' => true,
'sub_buttons' => array(

Replace with:

'chat' => array(
'title' => $chatButton,
'href' => $scripturl . '?action=chat'/*$chatLink*/,
'show' => true,
'sub_buttons' => array(


Open /index.php
Find:

$actionArray = array(

Replace with:

$actionArray = array(
  'chat' => array('chat.php', 'chat'),


Create file Sources/chat.php

<?php
if (!defined('SMF'))
die('Hacking attempt...');
function 
Chat()
{
// Load the 'Chat' template.
loadTemplate('chat');
}
?>



Create file Themes/default/chat.template.php

<?php
function template_main() {
  global 
$boardurl;
  
// This script will assure the maximum height for the chat area is available, 
  // without being oversized for the user's display.
  
echo '
    <script type="text/javascript">
      document.write("<iframe height=")
      if (screen.availHeight > 750) {
        document.write(screen.availHeight - 365)
      }
      else {
        document.write(403);
      }
      document.write(\' width=100% marginheight=0 marginwidth=0 scrolling=auto frameBorder=0 src="'
.$boardurl.'/chat/index.php"></iframe>\');
    </script>'
;
}
?>




I hope those are helpful tips. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 01, 2009, 08:42:28 PM
Daniel

Thanks for the tip. If I get round to placing all the hints and tips together then I will add yours.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: HandsomeDan on September 02, 2009, 02:35:03 PM
Quote from: Frosted Flake on September 01, 2009, 06:18:51 PM
I changed the shoutbox & chat permissions and I'm still having trouble.  :'( My members can't log in.

I've got the same problem as Frosted Flake.  I've made it past the "You can't access the chat" error by moving my chat to a sub-domain.  I've 755'd the chat directory and the index.php file.  I do have Pretty URL's on with the Redirect code inserted into the .htaccess file.

It's almost like it's a local pc issue.  For instance, on my PC I'm running Firefox 3.5 (latest build) and it immediately takes me back to the forum after clicking "login".  IE8 works perfectly.

I switch over to linux where I'm running FireFox 3.0 and it works fine.

To make it even more confusing, I have users who are running Firefox 3.5 inside the chat room.

{shrugs shoulders}

weird.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kurosaki00 on September 02, 2009, 03:00:03 PM
I installed the integration. I just want the chat. I check my ftp directory and is forum/chat
the button is pointing there, but it says nothing found for forum/chat
I checked the permissions and all.

any help plz
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 02, 2009, 04:07:30 PM
Which forum version do you use?

In 2.0 which I use you go to Modifications> chat then untick the shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GhostHunter on September 02, 2009, 07:03:15 PM

Is there a way to allow guests to participate in the chat? Currently they can view the chat but not participate, and TPTB have requested guest participation to be allowed.

TIA

Jim
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 02, 2009, 07:05:57 PM
Quote from: GhostHunter on September 02, 2009, 07:03:15 PM

Is there a way to allow guests to participate in the chat? Currently they can view the chat but not participate, and TPTB have requested guest participation to be allowed.

TIA

Jim

Hi Jim

Guests can take part in chat. can I see your forum please.
Also which version of smf are you using?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on September 03, 2009, 02:22:36 PM
My chat and shoutbox seem to be working ok. The only problem is that my log is getting cluttered by an error message every time someone uses the chat or shoutbox. Here is the error
Quote
                              (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fnewbiescentral.com%2FThemes%2FBK_SMF_Babylon_20B4%2Fimages%2Ffilter.gif&hash=6e36a9e530b79488dd7b43b2ee7f04033191365b) (http://newbiescentral.com/index.php?action=admin;area=logs;sa=errorlog;desc;filter=url;value=P2FjdGlvbj1wb3N0Mjtib2FyZD04O3ByZXZpZXc7eG1s)                               http://newbiescentral.com/index.php?action=post2;board=8;preview;xml (http://newbiescentral.com/index.php?action=post2;board=8;preview;xml)                                                     
                           (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fnewbiescentral.com%2FThemes%2FBK_SMF_Babylon_20B4%2Fimages%2Ffilter.gif&hash=6e36a9e530b79488dd7b43b2ee7f04033191365b) (http://newbiescentral.com/index.php?action=admin;area=logs;sa=errorlog;desc;filter=message;value=ODogVW5kZWZpbmVkIGluZGV4OiAgY2hhdA==)                            8: Undefined index:  chat                         
                           (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fnewbiescentral.com%2FThemes%2FBK_SMF_Babylon_20B4%2Fimages%2Ffilter.gif&hash=6e36a9e530b79488dd7b43b2ee7f04033191365b) (http://newbiescentral.com/index.php?action=admin;area=logs;sa=errorlog;desc;filter=file;value=L2hvbWUvc2NvdHQvcHVibGljX2h0bWwvbmV3Ymllc2NlbnRyYWwuY29tL1NvdXJjZXMvU3Vicy5waHA=)                                                           File: /home/scott/public_html/newbiescentral.com/Sources/Subs.php (http://newbiescentral.com/index.php?action=admin;area=logs;sa=errorlog;file=L2hvbWUvc2NvdHQvcHVibGljX2h0bWwvbmV3Ymllc2NlbnRyYWwuY29tL1NvdXJjZXMvU3Vicy5waHA=;line=3716)
                              Line: 3716                                                     
Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: danielwmoore on September 03, 2009, 02:42:51 PM
Quote from: ScottDB on September 03, 2009, 02:22:36 PM
My chat and shoutbox seem to be working ok. The only problem is that my log is getting cluttered by an error message every time someone uses the chat or shoutbox. Here is the error
QuoteUndefined index:  chat
File: /home/scott/public_html/newbiescentral.com/Sources/Subs.php
Line: 3716
Any ideas?

ScottDB,

When it says, "Undefined index: chat", that means there is an array that is being passed 'chat' as the index, and it doesn't exist.

This is most likely the culprit of another issue I found and fixed with this Mod, that I completely forgot to mention above. 

While this mod will set some language strings for the shoutbox, it does not do so for the chat.  Open up your Modifications.english.php in your Themes/default/language directory, (or Modifications.german.php, or whatever language you're needing this for), and add to the list:

$txt['chat'] = 'Chat';


This will be the text that appears on your menu button.  That's why it seems to fail pretty much every time someone displays a page.

Do that somewhere on a new line before the final '?>' in the file.

That will fix the problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AnnieT on September 03, 2009, 11:54:24 PM
In my admin panel when I go to set the permissions, the words don't show up next to the checkboxes so I don't know what the checkboxes do.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg524.imageshack.us%2Fimg524%2F96%2Fnowords.png&hash=21c77ca154e915a0321fcf74792e5c96e2fff828)

And my regular members are able to delete anybody's comments in the shoutbox and I don't know how to fix it :(

If someone can help, thank you very much! If it helps you at all, I'm using version 1.1.10
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 03, 2009, 11:56:20 PM
Quote from: AnnieT on September 03, 2009, 11:54:24 PM
In my admin panel when I go to set the permissions, the words don't show up next to the checkboxes so I don't know what the checkboxes do.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg524.imageshack.us%2Fimg524%2F96%2Fnowords.png&hash=21c77ca154e915a0321fcf74792e5c96e2fff828)

And my regular members are able to delete anybody's comments in the shoutbox and I don't know how to fix it :(

If someone can help, thank you very much! If it helps you at all, I'm using version 1.1.10

Can I see a link to your forum please?


Are there any errors in your error log?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AnnieT on September 04, 2009, 12:29:31 AM
^ My forum is http://jaejin.kyu.me/forums/ (http://jaejin.kyu.me/forums/)

In my error log, most of the errors are "Unable to load the 'Shout.english-utf8' language file."
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 04, 2009, 12:31:28 AM
jaejin.kyu.me/forums/ (http://jaejin.kyu.me/forums/)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 04, 2009, 12:36:18 AM
Anie can you pm a temp admin account please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GhostHunter on September 04, 2009, 12:45:07 AM
Quote from: TheListener on September 02, 2009, 07:05:57 PM

Hi Jim

Guests can take part in chat. can I see your forum please.
Also which version of smf are you using?



Must be something broke in mine, then ... :)

Guests can view what is going on, but nothing they type is passed through. FWIW, I think that allowing Guest chatting is not a great idea, but I told them I would look into it. If it's a server side issue, I'm gonna drop it. Our host has his own issues, and I've already been an extreme pain is his posterior.

SMF version 1.1.10. We is here:

http://www.nebraskaghosts.org/smf/ (http://www.nebraskaghosts.org/smf/)

Thanks,

-Jim
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 04, 2009, 12:49:14 AM
Jim can you pm a temp admin account to me please and I will have a look for you when I am free.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GhostHunter on September 04, 2009, 12:53:37 AM
Quote from: TheListener on September 04, 2009, 12:49:14 AM
Jim can you pm a temp admin account to me please and I will have a look for you when I am free.

Will deal with that tomorrow night. It's past my bedtime. Thanks for your help.

Cheers,

-Jim
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 04, 2009, 12:54:32 AM
Lol it\'s almost 6am here.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mkalinowski on September 04, 2009, 08:48:48 AM
any members of my forum are having trouble logging into the Ajax chat except for the admins. They get the following message: You can't access the chat. Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: danielwmoore on September 04, 2009, 09:08:27 AM
Quote from: mkalinowski on September 04, 2009, 08:48:48 AM
any members of my forum are having trouble logging into the Ajax chat except for the admins. They get the following message: You can't access the chat. Any ideas?

As has been said many times through this thread: "You must set permissions per membergroup to access the chat."
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ishaan on September 04, 2009, 10:41:59 AM
Hello Friends..

I am installed AjaxChat Integration_3.2.1 Mod.
The mod was working perfect.

But the chat button of AjaxChat not like other menu button.


Plzz Show me how to edit my theme index.template.php


Quote// Show the start of the tab section.
echo '
   <div id="styletwo">
   <ul>

';
      // Show the [home] button.
         echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

      // Show the [help] button.
          echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';

      // Show the [Arcade] button.
          echo '<li><a' , $current_action=='arcade' ? ' class="current"' : '' , ' href="', $scripturl, '?action=arcade"><span>Arcade</span></a></li>';

// Show the [Contact] button.
          echo '<li><a' , $current_action=='contact' ? ' class="current"' : '' , ' href="', $scripturl, '?action=contact"><span>Contact</span></a></li>';

// Show the [Gallery] button.
          echo '<li><a' , $current_action=='mgallery' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mgallery"><span>Gallery</span></a></li>';


     // Show the [Staff] button.
          echo '<li><a' , $current_action=='staff' ? ' class="current"' : '' , ' href="', $scripturl, '?action=staff"><span>Staff</span></a></li>';

      // How about the [search] button?
      if ($context['allow_search'])
         echo '<li><a' , $current_action=='search' ? ' class="current"' : '' , ' href="', $scripturl, '?action=search"><span>' , $txt[182] , '</span></a></li>';

      // The [calendar]!
      if ($context['allow_calendar'])
         echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

      // Is the user allowed to administrate at all? ([admin])
      if ($context['allow_admin'])
         echo '<li><a' , $current_action=='admin' ? ' class="current"' : '' , ' href="', $scripturl, '?action=admin"><span>' , $txt[2] , '</span></a></li>';

      // Edit Profile... [profile]
      if ($context['allow_edit_profile'])
         echo '<li><a' , $current_action=='profile' ? ' class="current"' : '' , ' href="', $scripturl, '?action=profile"><span>' , $txt[79] , '</span></a></li>';

      // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
      echo '<li><a href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span></a></li>';

      // the [member] list button
      if ($context['allow_memberlist'])
         echo '<li><a ' , $current_action=='mlist' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';

      // If the user is a guest, show [login] button.
      if ($context['user']['is_guest'])
         echo '<li><a ' , $current_action=='login' ? ' class="current"' : '' , ' href="', $scripturl, '?action=login"><span>' , $txt[34] , '</span></a></li>';

      // If the user is a guest, also show [register] button.
      if ($context['user']['is_guest'])
         echo '<li><a ' , $current_action=='register' ? ' class="current"' : '' , ' href="', $scripturl, '?action=register"><span>' , $txt[97] , '</span></a></li>';

  // the [Chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <class="maintab_back">
         <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '><span>Chat</span></a>
      </td>';




Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: danielwmoore on September 04, 2009, 10:59:16 AM
@ishaan

Your chat button doesn't check for permissions before it displays.  I assume this was ok with you.

Find the code in the file you displayed that matches the following:

  // the [Chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <class="maintab_back">
         <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '><span>Chat</span></a>
      </td>';   


Replace that code with the following:

// the [Chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
$chatnum = $num>0 ? '('.$num.')' : '';
echo '<li><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '><span>Chat',$chatnum,'</span></a></li>


This will not only place your chat button in the right format, but will also give you the number of users in chat if chat is not empty.

Hope this is helpful.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ishaan on September 04, 2009, 02:18:52 PM
danielwmoore Thank you for replying me.

Brother i have tried what you  saz.

but this error was seeing..


QuoteTemplate Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.


what i do bro ?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 04, 2009, 02:27:20 PM
It looks like the code was not placed correctly.

Have you backed up the forum?

Please attach your boardindex template here
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: warlock2009 on September 04, 2009, 03:01:01 PM
PLease help me guys...
i just install smf v1.1.10 dan used AjaxChat Integration  3.2.1
why this message appear: ChatBot: Error: Connection status: 500


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 04, 2009, 03:06:26 PM
The answer is in the ajax chat link of my signature. I made a post with the answer a few pages back.

If you need further help I will be back online later.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Urbanite on September 04, 2009, 03:11:19 PM
Listener, the link in your signature isn't there any more, presuming you are meaning under AJAX CHAT HINTS AND TIPS
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: warlock2009 on September 04, 2009, 03:25:26 PM
its mean ned permision?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 04, 2009, 05:26:11 PM
Quote from: Urbanite on September 04, 2009, 03:11:19 PM
Listener, the link in your signature isn't there any more, presuming you are meaning under AJAX CHAT HINTS AND TIPS

This is the section I was referring to.

If you get a 500 Connection error you might have to set your file permissions as well.

There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on September 04, 2009, 06:44:41 PM
Quote from: danielwmoore on September 03, 2009, 02:42:51 PM
Quote from: ScottDB on September 03, 2009, 02:22:36 PM
My chat and shoutbox seem to be working ok. The only problem is that my log is getting cluttered by an error message every time someone uses the chat or shoutbox. Here is the error
QuoteUndefined index:  chat
File: /home/scott/public_html/newbiescentral.com/Sources/Subs.php
Line: 3716
Any ideas?

ScottDB,

When it says, "Undefined index: chat", that means there is an array that is being passed 'chat' as the index, and it doesn't exist.

This is most likely the culprit of another issue I found and fixed with this Mod, that I completely forgot to mention above. 

While this mod will set some language strings for the shoutbox, it does not do so for the chat.  Open up your Modifications.english.php in your Themes/default/language directory, (or Modifications.german.php, or whatever language you're needing this for), and add to the list:

$txt['chat'] = 'Chat';


This will be the text that appears on your menu button.  That's why it seems to fail pretty much every time someone displays a page.

Do that somewhere on a new line before the final '?>' in the file.

That will fix the problem.

Should the file I am supposed to edit be admin.englis.php?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ishaan on September 05, 2009, 06:05:44 AM
Quote@TheListener

It looks like the code was not placed correctly.

Have you backed up the forum?

Please attach your boardindex template here


ya i have the backup!!

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: danielwmoore on September 05, 2009, 06:28:58 AM
Quote from: ishaan on September 04, 2009, 02:18:52 PM
danielwmoore Thank you for replying me.

Brother i have tried what you  saz.

but this error was seeing..


QuoteTemplate Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.


what i do bro ?

The code you should have replaced that other part should have been:

// the [Chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
$chatnum = $num>0 ? '('.$num.')' : '';
echo '<li><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '><span>Chat',$chatnum,'</span></a></li>';


For some reason, when I copied and pasted it into the above message, the last '; of that code didn't show up.  Sorry.  I should have checked a preview more carefully before hitting submit.  Please add the '; at the end as shown above.

Quote from: ScottDB
Should the file I am supposed to edit be admin.englis.php?

No, edit the Modifications.english.php, as was stated in my post.  Also edit whatever language your forum is using and add it there as well, editing Modifications.language.php where language is the name of the language you are using.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ishaan on September 05, 2009, 06:34:31 AM
THANKS A LOT!! danielwmoore  :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: C_Murder on September 05, 2009, 01:03:15 PM
Hey I also had first the problem that the Chat button didnt show. Then ive added this code at the end

// the [Chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
$chatnum = $num>0 ? '('.$num.')' : '';
echo '<li><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '><span>Chat',$chatnum,'</span></a></li>';


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi30.tinypic.com%2F2cg0ns0.jpg&hash=34d7fae9d6203b0bd14387be58d67ceb25bcdd63)

You can see now the "Chat" but it doesnt show as an option like the others.
Here the full code. I hope somebody can help me here out.




// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
      $current_action = 'admin';
   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
      $current_action = $context['current_action'];
   if ($context['current_action'] == 'search2')
      $current_action = 'search';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

   // Are we using right-to-left orientation?
   if ($context['right_to_left'])
   {
      $first = 'last';
      $last = 'first';
   }
   else
   {
      $first = 'first';
      $last = 'last';
   }

   // Show the start of the tab section.
   echo '<div id="topmenu">

         <ul class="topmenu">';
            // Show the [home] button.
               echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

            // Show the [help] button.
               echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';

            // How about the [search] button?
            if ($context['allow_search'])
               echo '<li><a' , $current_action=='search' ? ' class="current"' : '' , ' href="', $scripturl, '?action=search"><span>' , $txt[182] , '</span></a></li>';

            // Is the user allowed to administrate at all? ([admin])
            if ($context['allow_admin'])
               echo '<li><a' , $current_action=='admin' ? ' class="current"' : '' , ' href="', $scripturl, '?action=admin"><span>' , $txt[2] , '</span></a></li>';

            // The [calendar]!
            if ($context['allow_calendar'])
               echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

            // Edit Profile... [profile]
            if ($context['allow_edit_profile'])
               echo '<li><a' , $current_action=='profile' ? ' class="current"' : '' , ' href="', $scripturl, '?action=profile"><span>' , $txt[79] , '</span></a></li>';

            // Go to PM center... [pm]
            if ($context['user']['is_logged'] && $context['allow_pm'])
               echo '<li><a' , $current_action=='pm' ? ' class="current"' : '' , ' href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span></a></li>';

            // the [member] list button
            if ($context['allow_memberlist'])
               echo '<li><a ' , $current_action=='mlist' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';

            // If the user is a guest, show [login] button.
            if ($context['user']['is_guest'])
               echo '<li><a ' , $current_action=='login' ? ' class="current"' : '' , ' href="', $scripturl, '?action=login"><span>' , $txt[34] , '</span></a></li>';

            // If the user is a guest, also show [register] button.
            if ($context['user']['is_guest'])
               echo '<li><a ' , $current_action=='register' ? ' class="current"' : '' , ' href="', $scripturl, '?action=register"><span>' , $txt[97] , '</span></a></li>';

            // Otherwise, they might want to [logout]...
            if ($context['user']['is_logged'])
               echo '<li><a ' , $current_action=='logout' ? ' class="current"' : '' , 'href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>' , $txt[108] , '</span></a></li>';

   echo '
         </ul></div>
<div style="clear:both;"></div>';

// the [Chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
$chatnum = $num>0 ? '('.$num.')' : '';
echo '<li><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '><span>Chat',$chatnum,'</span></a></li>';

}

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: danielwmoore on September 05, 2009, 01:14:56 PM
@C_Murder:

You placed the chat button after the end of the code for the menu bar.  That's why it wasn't part of it.

Here I've placed it for you before the Login/Logout and Register buttons, which is a more appropriate place for it.


// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   // Work out where we currently are.
   $current_action = 'home';
   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))
      $current_action = 'admin';
   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
      $current_action = $context['current_action'];
   if ($context['current_action'] == 'search2')
      $current_action = 'search';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';

   // Are we using right-to-left orientation?
   if ($context['right_to_left'])
   {
      $first = 'last';
      $last = 'first';
   }
   else
   {
      $first = 'first';
      $last = 'last';
   }

   // Show the start of the tab section.
   echo '<div id="topmenu">

         <ul class="topmenu">';
            // Show the [home] button.
               echo '<li><a' , $current_action=='home' ? ' class="current"' : '' , ' href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

            // Show the [help] button.
               echo '<li><a' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';

            // How about the [search] button?
            if ($context['allow_search'])
               echo '<li><a' , $current_action=='search' ? ' class="current"' : '' , ' href="', $scripturl, '?action=search"><span>' , $txt[182] , '</span></a></li>';

            // Is the user allowed to administrate at all? ([admin])
            if ($context['allow_admin'])
               echo '<li><a' , $current_action=='admin' ? ' class="current"' : '' , ' href="', $scripturl, '?action=admin"><span>' , $txt[2] , '</span></a></li>';

            // The [calendar]!
            if ($context['allow_calendar'])
               echo '<li><a' , $current_action=='calendar' ? ' class="current"' : '' , ' href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';

            // Edit Profile... [profile]
            if ($context['allow_edit_profile'])
               echo '<li><a' , $current_action=='profile' ? ' class="current"' : '' , ' href="', $scripturl, '?action=profile"><span>' , $txt[79] , '</span></a></li>';

            // Go to PM center... [pm]
            if ($context['user']['is_logged'] && $context['allow_pm'])
               echo '<li><a' , $current_action=='pm' ? ' class="current"' : '' , ' href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</span></a></li>';

            // the [member] list button
            if ($context['allow_memberlist'])
               echo '<li><a ' , $current_action=='mlist' ? ' class="current"' : '' , ' href="', $scripturl, '?action=mlist"><span>' , $txt[331] , '</span></a></li>';

            // the [Chat] button
            $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
            $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
            $chatnum = $num>0 ? '('.$num.')' : '';
            echo '<li><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '><span>Chat',$chatnum,'</span></a></li>';

            // If the user is a guest, show [login] button.
            if ($context['user']['is_guest'])
               echo '<li><a ' , $current_action=='login' ? ' class="current"' : '' , ' href="', $scripturl, '?action=login"><span>' , $txt[34] , '</span></a></li>';

            // If the user is a guest, also show [register] button.
            if ($context['user']['is_guest'])
               echo '<li><a ' , $current_action=='register' ? ' class="current"' : '' , ' href="', $scripturl, '?action=register"><span>' , $txt[97] , '</span></a></li>';

            // Otherwise, they might want to [logout]...
            if ($context['user']['is_logged'])
               echo '<li><a ' , $current_action=='logout' ? ' class="current"' : '' , 'href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>' , $txt[108] , '</span></a></li>';

   echo '
         </ul></div>
<div style="clear:both;"></div>';
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: C_Murder on September 05, 2009, 03:39:58 PM
thank you very much sir.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Urbanite on September 06, 2009, 05:28:48 AM
I want to use just the shoutbox without the chat and need a little help to:-

(1) Remove or "// out" the chat button on the menu bar.

(2) On the shoutBox I want to change the title 'shoutBox' to something more forum geared and also change the word 'Shout' on the send button.

any clues please?   ... oh talented ones
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: warlock2009 on September 06, 2009, 08:11:20 AM
Quote from: TheListener on September 04, 2009, 05:26:11 PM
Quote from: Urbanite on September 04, 2009, 03:11:19 PM
Listener, the link in your signature isn't there any more, presuming you are meaning under AJAX CHAT HINTS AND TIPS

This is the section I was referring to.

If you get a 500 Connection error you might have to set your file permissions as well.

There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

Bro i really don't know how to edit php file cause i'am newbie, would you assist me how get ajax work to may default theme smf 1.1.10
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bbq-pepper on September 06, 2009, 09:01:45 AM
Hi!

Chat and Shoutbox was working correctly. Now after some days and no changes (i was on hols) some of the users gets user/password error if they want to log on the chat. It is integrated in 1.1.10. Some users can log on using Firefox, some can only using IE. I´ve checked the config and reset the config to default - no change.

Any ideas?

Regards, Petzer
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 06, 2009, 10:45:53 AM
Quote from: Urbanite on September 06, 2009, 05:28:48 AM
I want to use just the shoutbox without the chat and need a little help to:-

(1) Remove or "// out" the chat button on the menu bar.

(2) On the shoutBox I want to change the title 'shoutBox' to something more forum geared and also change the word 'Shout' on the send button.

any clues please?   ... oh talented ones


Which smf version do you use?

Do you have a portal installed?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 06, 2009, 10:48:12 AM
Quote from: warlock2009 on September 06, 2009, 08:11:20 AM
Quote from: TheListener on September 04, 2009, 05:26:11 PM
Quote from: Urbanite on September 04, 2009, 03:11:19 PM
Listener, the link in your signature isn't there any more, presuming you are meaning under AJAX CHAT HINTS AND TIPS

This is the section I was referring to.

If you get a 500 Connection error you might have to set your file permissions as well.

There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

Bro i really don't know how to edit php file cause i'am newbie, would you assist me how get ajax work to may default theme smf 1.1.10

This does not require an edit in the file itself.

On your control panel you have to set the two files to 755

If you require further help please pm me.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 06, 2009, 10:49:28 AM
Quote from: bbq-pepper on September 06, 2009, 09:01:45 AM
Hi!

Chat and Shoutbox was working correctly. Now after some days and no changes (i was on hols) some of the users gets user/password error if they want to log on the chat. It is integrated in 1.1.10. Some users can log on using Firefox, some can only using IE. I´ve checked the config and reset the config to default - no change.

Any ideas?

Regards, Petzer

Can I see a link to your forum please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: chucklebutte on September 06, 2009, 06:03:10 PM
just installed this its great for me... no one else can see shout box or get into chat. I can flawlessly though. running smf 1.1.10.

any thoughts?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 06, 2009, 06:06:09 PM
Have a look at the permissions for each membergroup.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Urbanite on September 06, 2009, 06:06:47 PM
Quote from: TheListener on September 06, 2009, 10:45:53 AM

Which smf version do you use?

Do you have a portal installed?



SMF V2.0 RC1.2 using the Google Theme, no portal
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: chucklebutte on September 06, 2009, 06:15:01 PM
Quote from: TheListener on September 06, 2009, 06:06:09 PM
Have a look at the permissions for each membergroup.

ty you are awesome now to get the rss bot fixed and id totally be set much <3
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 06, 2009, 06:15:20 PM
The reason I asked about a portal is because of one of the portal mods now having a shoutbox feature.

http://sourceforge.net/docman/?group_id=214758

This link may help.

I am not 100% certain which files would require an edit however but will look into it for the shoutbox name change.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 06, 2009, 06:15:49 PM
Quote from: chucklebutte on September 06, 2009, 06:15:01 PM
Quote from: TheListener on September 06, 2009, 06:06:09 PM
Have a look at the permissions for each membergroup.

ty you are awesome now to get the rss bot fixed and id totally be set much <3

Do you mean the chatbot?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: chucklebutte on September 06, 2009, 06:18:07 PM
damn talk about mashing your F5 key lol

The bot im referring to is the rss feeder bot I posted in that thread. It was working fine after the first install, all I did was add some more feeds and it hasnt made a post since.


and seriously i appreciate the fast response
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 06, 2009, 06:29:39 PM
No worries only glad to help.

let me know if you are interested in adding a word censor and afk edit to your chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Urbanite on September 06, 2009, 08:58:06 PM
Quote from: TheListener on September 06, 2009, 06:15:20 PM
The reason I asked about a portal is because of one of the portal mods now having a shoutbox feature.

I am not 100% certain which files would require an edit however but will look into it for the shoutbox name change.


Thanks m8, yes I know about Simple Portal's shoutbox, I will look into it although it would mean a heap of work, maybe if I get the time it would be a better move in the long run as the whole package gives so much more flexability.

Just to let you know that the word censor works on the shoutbox automatically if you have the 'Integrate shout box and chat room' button ticked. But it will also work separately if this box is unticked if you copy the chat/js/custom.js to shoutBox/js/custom.js this includes the 'welcome message' that can say something different in the shoutBox to the chat.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 06, 2009, 08:59:48 PM
Already have the edits you mentioned.

;D

Let me know if you require any help with your portal or chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Urbanite on September 06, 2009, 09:46:14 PM
Whoopee, disposed of the unwanted 'chat' button by doing this in /sources/subs.php [SMF V2]

//   'chat' => array(
//   'title' => $chatButton,
//   'href' => $chatLink,
//   'show' => true,
//   'sub_buttons' => array(
//   ),
//  ),


All I need now is to rename the ShoutBox and the Shout button  :)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 06, 2009, 09:50:31 PM
Quote from: Urbanite on September 06, 2009, 09:46:14 PM
Whoopee, disposed of the unwanted 'chat' button by doing this in /sources/subs.php [SMF V2]

//   'chat' => array(
//   'title' => $chatButton,
//   'href' => $chatLink,
//   'show' => true,
//   'sub_buttons' => array(
//   ),
//  ),


All I need now is to rename the ShoutBox and the Shout button  :)



Remember to keep an eye on your forum error log.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bbq-pepper on September 07, 2009, 01:49:01 AM
It is http://www.leckergrillen.net/forum/chat

Cheers, Peter

Quote from: TheListener on September 06, 2009, 10:49:28 AM
Quote from: bbq-pepper on September 06, 2009, 09:01:45 AM
Hi!

Chat and Shoutbox was working correctly. Now after some days and no changes (i was on hols) some of the users gets user/password error if they want to log on the chat. It is integrated in 1.1.10. Some users can log on using Firefox, some can only using IE. I´ve checked the config and reset the config to default - no change.

Any ideas?

Regards, Petzer

Can I see a link to your forum please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 07, 2009, 01:53:45 AM
Did you have any errors on install?

Any errors in your error log?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bbq-pepper on September 07, 2009, 06:05:26 AM
Hi!

No, no errors regarding the chat. The thing is that it was working correctly for days.

Another issue is that if a user is loged on, he can not log out by the logout button. User will be loged in after clicking the logout button. ???

Regards, Peter

Quote from: TheListener on September 07, 2009, 01:53:45 AM
Did you have any errors on install?

Any errors in your error log?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on September 07, 2009, 01:07:40 PM
*****EDIT ANSWER FOUND**** http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Slashes_before_apostrophes (http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Slashes_before_apostrophes)

I am having an issue after moving to a new host. I copied all files via ftp and used bigdump.php to load the database. I used repair_settings.php and fixed a few odd things here and there. The one issue i can not find a fix for is in chat.

Anytime someone uses a single quote, quote or slash, it prints a \ (slash) before every ', " and \. Anyone have a clue whats going on with it?

eg= when i type the work didn't it shows up in chat as didn\'t
(12:02:22) Swayforth: \' <==single quote
(12:02:24) Swayforth: \" <==quote
(12:02:43) Swayforth: \\ <==slash


Running SMF 1.1.10 heavily modded
AjaxChat Integration      3.2.1

works fine with my old host, but has this issue on the new host. no errors in the host logs or smf logs

NEW HOST
MySQL client version: 5.0.81
MySQL charset: UTF-8 Unicode (utf8)


OLD HOST
Server version: 4.1.22
MySQL charset:  UTF-8 Unicode (utf8)


any help would be appreciated as it would help prevent my hair from being pulled out :/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on September 07, 2009, 05:03:21 PM
Quote
  Quote from: ScottDB on September 03, 2009, 11:22:36 AM (http://www.simplemachines.org/community/index.php?topic=257973.msg2242061#msg2242061) My chat and shoutbox seem to be working ok. The only problem is that my log is getting cluttered by an error message every time someone uses the chat or shoutbox. Here is the error
Quote Undefined index:  chat
File: /home/scott/public_html/newbiescentral.com/Sources/Subs.php
Line: 3716Any ideas?

ScottDB,

When it says, "Undefined index: chat", that means there is an array that is being passed 'chat' as the index, and it doesn't exist.

This is most likely the culprit of another issue I found and fixed with this Mod, that I completely forgot to mention above. 

While this mod will set some language strings for the shoutbox, it does not do so for the chat.  Open up your Modifications.english.php in your Themes/default/language directory, (or Modifications.german.php, or whatever language you're needing this for), and add to the list:
Code: [Select] (//http://javascript:void(0);) $txt['chat'] = 'Chat';

This will be the text that appears on your menu button.  That's why it seems to fail pretty much every time someone displays a page.

Do that somewhere on a new line before the final '?>' in the file.

That will fix the problem.


I edited the Modifications.english.php and I am still getting the same error message. I placed the code right before the end '?>'.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on September 07, 2009, 06:11:08 PM
I got it installed ok but i did notice in the list it had "skipping this file" for 2 things and then nothing at all for everything listed under that. All those files above these two "tested successfully".

When i goto the admin backend, there is NO text next to any of the check boxes related to the chat mod. None in the layout section and none in the permissions section. I was able to find what i think are the 6 things suppose to be for the layout options check boxes ( i hope they were listed in the right order lol ) but no clue for the permissions check boxes.

I do have a ton of errors in the log ( i just checked ) these seem to be the main ones repeated

Unable to load the 'Shout.english-utf8' language file.

8: Undefined index: chat
File: /home/nanovor1/public_html/forum/Themes/default/Display.template.php (main_above sub template - eval?)
Line: 606

8: Undefined index: shoutBox
File: /home/nanovor1/public_html/forum/Themes/default/Display.template.php (shout_above sub template - eval?)
Line: 45

8: Undefined index: chat_aUser
File: /home/nanovor1/public_html/forum/Themes/default/MessageIndex.template.php (main_above sub template - eval?)
Line: 278


Additionally, on the forum index page in the links above, it shows the number of those in chat "(2)" for example but doesnt display the word "chat" which i thought it was suppose to.

Thanks for any help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 07, 2009, 06:16:12 PM
Quote from: danielwmoore on September 04, 2009, 10:59:16 AM
@ishaan

Your chat button doesn't check for permissions before it displays.  I assume this was ok with you.

Find the code in the file you displayed that matches the following:

  // the [Chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <class="maintab_back">
         <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '><span>Chat</span></a>
      </td>';   


Replace that code with the following:

// the [Chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
$chatnum = $num>0 ? '('.$num.')' : '';
echo '<li><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '><span>Chat',$chatnum,'</span></a></li>


This will not only place your chat button in the right format, but will also give you the number of users in chat if chat is not empty.

Hope this is helpful.

This may help where the button is concerned.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on September 07, 2009, 06:23:50 PM
What is the file path to the file that is to be edited?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: shortchange on September 08, 2009, 11:20:40 AM
Anyone know how to make the username use the color from the MemberGroup in chat?

Thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 08, 2009, 01:00:55 PM
Quote from: shortchange on September 08, 2009, 11:20:40 AM
Anyone know how to make the username use the color from the MemberGroup in chat?

Thank you.

Unfortunately the only membergroups at present whom can use a color in chat are the admin and global mods.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ishaan on September 08, 2009, 11:29:46 PM
Hello friends.. How to add some more smileys on chat box   :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 08, 2009, 11:32:11 PM
Quote from: ishaan on September 08, 2009, 11:29:46 PM
Hello friends.. How to add some more smileys on chat box   :)

To the best of my knowledge the number of smileys is preset.

However you can add different smileys to chat if preferred.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ishaan on September 08, 2009, 11:45:51 PM
QuoteTo the best of my knowledge the number of smileys is preset.

However you can add different smileys to chat if preferred.


Brother plzz tell me how to edit it..

i have only little bit  knowledge of smf
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 08, 2009, 11:47:21 PM
Give me a couple of days then pm me if don't post a reply back.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on September 09, 2009, 12:46:55 AM
@ishaan
open:
chat/js/config.js
find:

emoticonCodes: new Array(
':)',
':(',
';)',
':P',
':D',
':|',
':O',
':?',
'8)',
'8o',
'B)',
':-)',
':-(',
':-*',
'O:-D',
'>:-D',
':o)',
':idea:',
':important:',
':help:',
':error:',
':warning:',
':favorite:'
),

// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'wink.png',
'razz.png',
'grin.png',
'plain.png',
'surprise.png',
'confused.png',
'glasses.png',
'eek.png',
'cool.png',
'smile-big.png',
'crying.png',
'kiss.png',
'angel.png',
'devilish.png',
'monkey.png',
'idea.png',
'important.png',
'help.png',
'error.png',
'warning.png',
'favorite.png'
),

and replace it with your new smileys
and then upload the images to chat\img\emoticons
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 09, 2009, 12:48:49 AM
Thanks for the help Hunter.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bbq-pepper on September 09, 2009, 04:40:43 AM
.... It is working after reinstallation using the same config. ???

Regards, Peter
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: chucklebutte on September 10, 2009, 01:02:02 AM
thelistener here are those files.


I believe they are correct but im not too sure.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 10, 2009, 01:14:56 AM
Please try the attached file.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 10, 2009, 01:21:01 AM
Ok here is the next one.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 10, 2009, 01:28:32 AM
The last one.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danpotter on September 10, 2009, 11:25:21 AM
i installed in my dilbermc theme....i can see shoutbox but when im typing..i cant see my typed matter and it is saying

ChatBot: Error: Connection status: 0
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cat farmer on September 10, 2009, 01:31:17 PM
I have seen a few posts in here about the permission labels not being set. the check boxes are there and it all seems? to work, but I have no idea what they do.
I've checked all the modifications to PHP from the manual install instructions and all seems OK. running SMF1.1.10. Is there a solution out there for this?

I figured it out- set language to from UTF8english to english. Thanks for making this intagration easy!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 10, 2009, 05:02:01 PM
Quote from: Danpotter on September 10, 2009, 11:25:21 AM
i installed in my dilbermc theme....i can see shoutbox but when im typing..i cant see my typed matter and it is saying

ChatBot: Error: Connection status: 0

Have the permissions been set?

The error connection status and many other eits can be found on the link to my test forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cwmod on September 10, 2009, 09:23:12 PM
Quote from: TheListener on September 06, 2009, 10:48:12 AM
Quote from: warlock2009 on September 06, 2009, 08:11:20 AM
Quote from: TheListener on September 04, 2009, 05:26:11 PM
Quote from: Urbanite on September 04, 2009, 03:11:19 PM
Listener, the link in your signature isn't there any more, presuming you are meaning under AJAX CHAT HINTS AND TIPS

This is the section I was referring to.

If you get a 500 Connection error you might have to set your file permissions as well.

There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

Bro i really don't know how to edit php file cause i'am newbie, would you assist me how get ajax work to may default theme smf 1.1.10

This does not require an edit in the file itself.

On your control panel you have to set the two files to 755

If you require further help please pm me.

Can you tell me specifically where on the control panel I can find this option? I too have this 500 error on SMF 1.1.10. Thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 10, 2009, 09:25:59 PM
Quote from: cwmod on September 10, 2009, 09:23:12 PM
Quote from: TheListener on September 06, 2009, 10:48:12 AM
Quote from: warlock2009 on September 06, 2009, 08:11:20 AM
Quote from: TheListener on September 04, 2009, 05:26:11 PM
Quote from: Urbanite on September 04, 2009, 03:11:19 PM
Listener, the link in your signature isn't there any more, presuming you are meaning under AJAX CHAT HINTS AND TIPS

This is the section I was referring to.

If you get a 500 Connection error you might have to set your file permissions as well.

There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

Bro i really don't know how to edit php file cause i'am newbie, would you assist me how get ajax work to may default theme smf 1.1.10

This does not require an edit in the file itself.

On your control panel you have to set the two files to 755

If you require further help please pm me.

Can you tell me specifically where on the control panel I can find this option? I too have this 500 error on SMF 1.1.10. Thanks in advance.

You will find the answer at the forum in my link.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cwmod on September 10, 2009, 09:36:35 PM
Quote from: TheListener on September 10, 2009, 09:25:59 PM
Quote from: cwmod on September 10, 2009, 09:23:12 PM
Quote from: TheListener on September 06, 2009, 10:48:12 AM
Quote from: warlock2009 on September 06, 2009, 08:11:20 AM
Quote from: TheListener on September 04, 2009, 05:26:11 PM
Quote from: Urbanite on September 04, 2009, 03:11:19 PM
Listener, the link in your signature isn't there any more, presuming you are meaning under AJAX CHAT HINTS AND TIPS

This is the section I was referring to.

If you get a 500 Connection error you might have to set your file permissions as well.

There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

Bro i really don't know how to edit php file cause i'am newbie, would you assist me how get ajax work to may default theme smf 1.1.10

This does not require an edit in the file itself.

On your control panel you have to set the two files to 755

If you require further help please pm me.

Can you tell me specifically where on the control panel I can find this option? I too have this 500 error on SMF 1.1.10. Thanks in advance.

You will find the answer at the forum in my link.

I looked there. I see nothing more than what was posted above.  Care to give me specific directions? Thanks a bunch.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 10, 2009, 09:55:01 PM
Quote from: cwmod on September 10, 2009, 09:36:35 PM
Quote from: TheListener on September 10, 2009, 09:25:59 PM
Quote from: cwmod on September 10, 2009, 09:23:12 PM
Quote from: TheListener on September 06, 2009, 10:48:12 AM
Quote from: warlock2009 on September 06, 2009, 08:11:20 AM
Quote from: TheListener on September 04, 2009, 05:26:11 PM
Quote from: Urbanite on September 04, 2009, 03:11:19 PM
Listener, the link in your signature isn't there any more, presuming you are meaning under AJAX CHAT HINTS AND TIPS

This is the section I was referring to.

If you get a 500 Connection error you might have to set your file permissions as well.

There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

Bro i really don't know how to edit php file cause i'am newbie, would you assist me how get ajax work to may default theme smf 1.1.10

This does not require an edit in the file itself.

On your control panel you have to set the two files to 755

If you require further help please pm me.

Can you tell me specifically where on the control panel I can find this option? I too have this 500 error on SMF 1.1.10. Thanks in advance.

You will find the answer at the forum in my link.

I looked there. I see nothing more than what was posted above.  Care to give me specific directions? Thanks a bunch.

If you would like to pm me with a temp admin account and your ftp/cp details I will take a look for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gjtoth on September 11, 2009, 12:23:18 AM
I can't seem to get this to install from the package browser.  I have installed Ajax chat and it runs fine.  Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 12:26:59 AM
Will require further information.

Which smf version?

Any errors in the error log?

Have you set the file permissions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gjtoth on September 11, 2009, 12:29:00 AM
Quote from: TheListener on September 11, 2009, 12:26:59 AM
Will require further information.

Which smf version?

Any errors in the error log?

Have you set the file permissions?

1.1.10

not that I can see

Set file permissions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 12:37:06 AM
Can I see a link to your forum please
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gjtoth on September 11, 2009, 12:39:54 AM
Quote from: TheListener on September 11, 2009, 12:37:06 AM
Can I see a link to your forum please

http://toths.us/PBP

I have uninstall AjaxChat as I noticed that this mod supposedly installs it.  Is that correct?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 12:43:55 AM
Did you uninstall the mod properly?

If you would like help to install the mod please pm a temp admin account to me.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danpotter on September 11, 2009, 01:31:22 AM
Quote from: TheListener on September 10, 2009, 05:02:01 PM
Quote from: Danpotter on September 10, 2009, 11:25:21 AM
i installed in my dilbermc theme....i can see shoutbox but when im typing..i cant see my typed matter and it is saying

ChatBot: Error: Connection status: 0

Have the permissions been set?

The error connection status and many other eits can be found on the link to my test forum.

dude i enabled shoutbox and where to set permissions???and i found that it showed Test failed in /Sources/ManagePermissions.php...i didnt understood how to edit the mod settings can u please edit it and provide it to me please...

here is my ManagePermissions.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 01:34:04 AM
Have you backed up your forum recently?

There are some hints for chat in the link to my test forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danpotter on September 11, 2009, 01:42:58 AM
yes dude...i have my backup please edit that and give me....

and also pls providee me ur test forum link
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 01:44:15 AM
The link is the banner in my signature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 02:14:44 AM
Try this one.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danpotter on September 11, 2009, 02:26:15 AM
yah i chekd ur forum and its helpful....but still problem is there...now i will try uploading that file u gave me...and i will report u...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danpotter on September 11, 2009, 03:03:59 AM
dude...i uploaded that manage permissions u gave me but i think u didnt edited that well because it still showing Test Failed when i click Uninstall.....ofcourse i didnt uninstalled it..but please edit that well and give me....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 03:06:27 AM
can you show me what it says at the uninstall screen please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danpotter on September 11, 2009, 03:45:17 AM
brother...i chekd ur forum..its nice

here is the image
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 03:48:08 AM
Thanks for the compliment.

Did you install the mod and not edit that particular file?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kingkingston on September 11, 2009, 03:54:33 AM
Quote from: TheListener on September 11, 2009, 03:48:08 AM
Thanks for the compliment.

Did you install the mod and not edit that particular file?
Was that my problem as to why the chatroom wasn't showing up ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 03:57:20 AM
Quote from: TheListener on September 11, 2009, 03:48:08 AM
Thanks for the compliment.

Did you install the mod and not edit that particular file?


Will have a look at the file later Dan

King please remind me what you had trouble with and I will do whas much as i can to help.

Is almost 9am and I have been online all night.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kingkingston on September 11, 2009, 04:00:41 AM
Quote from: TheListener on September 11, 2009, 03:57:20 AM
Quote from: TheListener on September 11, 2009, 03:48:08 AM
Thanks for the compliment.

Did you install the mod and not edit that particular file?


Will have a look at the file later Dan

King please remind me what you had trouble with and I will do whas much as i can to help.

Is almost 9am and I have been online all night.
remember i installed it without any problems but when i click on the chat button
the popup that is meant to have the chatroom in it displays the box but with a message like this

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 04:02:07 AM
Were there any errors in the error log?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kingkingston on September 11, 2009, 04:04:30 AM
Quote from: TheListener on September 11, 2009, 04:02:07 AM
Were there any errors in the error log?
not that i could see
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 04:14:19 AM
Have just been talking with another helper
a 404 error is file not found.

The request made is to a file that does not exist
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kingkingston on September 11, 2009, 04:16:28 AM
Quote from: TheListener on September 11, 2009, 04:14:19 AM
Have just been talking with another helper
a 404 error is file not found.

The request made is to a file that does not exist
That's why i wondered if i had to do something else other than install the chat via the package manager
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 04:20:59 AM
Unfortunately that is beyond my knowledge.

I will see what I can do when I am online later.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kingkingston on September 11, 2009, 04:22:39 AM
Quote from: TheListener on September 11, 2009, 04:20:59 AM
Unfortunately that is beyond my knowledge.

I will see what I can do when I am online later.
ok cool thanks mate
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: More-to-life on September 11, 2009, 04:28:27 AM
Hi Guys

Ive installed the latest version of chat & im using 1.1.10 smf
two problems

1.when ever i check the Enable online chat users numbering on chat button? box I get a 500 internal server error

2.On installing chat i get this error on the main index page so i swap /sources/boardindex.php with the original files & everything works fine but i still get that 500 internal server error
Table 'myurl_co_uk_smf.smf_ajaxchat_online' doesn't exist
File: /var/www/html/forum/Sources/Load.php
Line: 2248

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.10, while your database is at version 1.1.9. The above error might possibly go away if you execute the latest version of upgrade.php.


Ive searched the forum but have found nothing sorry guys if this has been sloved before& ive missed it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danpotter on September 11, 2009, 08:49:34 AM
Quote from: TheListener on September 11, 2009, 03:48:08 AM
Thanks for the compliment.

Did you install the mod and not edit that particular file?

i installed mod and didnt edited that file which i gave.....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 11, 2009, 01:42:52 PM
Quote from: welshbikers on September 11, 2009, 04:28:27 AM
Hi Guys

Ive installed the latest version of chat & im using 1.1.10 smf
two problems

1.when ever i check the Enable online chat users numbering on chat button? box I get a 500 internal server error

2.On installing chat i get this error on the main index page so i swap /sources/boardindex.php with the original files & everything works fine but i still get that 500 internal server error
Table 'myurl_co_uk_smf.smf_ajaxchat_online' doesn't exist
File: /var/www/html/forum/Sources/Load.php
Line: 2248

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.10, while your database is at version 1.1.9. The above error might possibly go away if you execute the latest version of upgrade.php.


Ive searched the forum but have found nothing sorry guys if this has been sloved before& ive missed it

The required answer can be found if you go to the link in my signature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danpotter on September 11, 2009, 01:46:17 PM
Listner pls help me dude... pls....  ::) :-[
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: shortchange on September 12, 2009, 02:42:41 PM
Quote from: TheListener on September 08, 2009, 01:00:55 PM
Quote from: shortchange on September 08, 2009, 11:20:40 AM
Anyone know how to make the username use the color from the MemberGroup in chat?

Thank you.

Unfortunately the only membergroups at present whom can use a color in chat are the admin and global mods.

Can I turn the users name into a link to their profile in the shoutbox?

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 12, 2009, 03:08:11 PM
Not at this time.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hm_boot on September 12, 2009, 04:01:51 PM
Hi,

Running SMF 2.0 RC1.2 with DarkBreak theme from DzinerStudios. I uploaded the latest Ajaxchat mod but haven't installed it yet. We currently have AjaxChat 2.5 installed and running (although Shoutbox doesn't work in custom theme).

I've uploaded the AjaxChat_3.2.1 mod, but did not apply it yet. After uploading, the list of available packages in the Browse Package panel shows:


1. AjaxChat Integration                    2.5     [ Uninstall ] [ List Files ] [ Delete ]
2. PaypalDonations                         2.0                   [ List Files ] [ Delete ]
3. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update     1.0                   [ List Files ] [ Delete ]
4. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update  1.1     [ Uninstall ] [ List Files ] [ Delete ]
5. AjaxChat Integration    3.2.1                 [ List Files ] [ Delete ]


Strangely, there is a red "older version" ball beside the latest AjaxChat, and no link to let me install the latest mod.

Questions:

1. Should I uninstall the old 2.5 release before installing the latest 3.2.1 release?
2. Will I get an [ Install ] option on 3.2.1 once (and if) I uninstall 2.5?
3. Anybody else had success seeing the shoutbox with DarkBreak?

Thanks,

Boot.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 12, 2009, 05:14:07 PM
Quote from: hm_boot on September 12, 2009, 04:01:51 PM
Hi,

Running SMF 2.0 RC1.2 with DarkBreak theme from DzinerStudios. I uploaded the latest Ajaxchat mod but haven't installed it yet. We currently have AjaxChat 2.5 installed and running (although Shoutbox doesn't work in custom theme).

I've uploaded the AjaxChat_3.2.1 mod, but did not apply it yet. After uploading, the list of available packages in the Browse Package panel shows:


1. AjaxChat Integration                    2.5     [ Uninstall ] [ List Files ] [ Delete ]
2. PaypalDonations                         2.0                   [ List Files ] [ Delete ]
3. SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update     1.0                   [ List Files ] [ Delete ]
4. SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update  1.1     [ Uninstall ] [ List Files ] [ Delete ]
5. AjaxChat Integration    3.2.1                 [ List Files ] [ Delete ]


Strangely, there is a red "older version" ball beside the latest AjaxChat, and no link to let me install the latest mod.

Questions:

1. Should I uninstall the old 2.5 release before installing the latest 3.2.1 release?
2. Will I get an [ Install ] option on 3.2.1 once (and if) I uninstall 2.5?
3. Anybody else had success seeing the shoutbox with DarkBreak?

Thanks,

Boot.

1. Yes  but it must be done manually.

2. I believe so.

3. Check the permissions.

Please feel free to visit my test forum in the link for some edits which can be made to the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hm_boot on September 12, 2009, 05:26:18 PM
Quote from: TheListener on September 12, 2009, 05:14:07 PM
<snip>

1. Yes  but it must be done manually.

<snip>

So I shouldn't press the [Uninstall] button on the AjaxChat 2.5 mod? Rats, it looked so temping. Could you please post a link to a thread or on-line guide that will walk me through the steps necessary to manually uninstall a mod?

Thanks,

Boot.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 12, 2009, 05:33:09 PM
On the installion page where the install link is you will see a parse button.

All you do is reverse the instructions for the version you currently have.

Let us know how it goes but remember to backup first.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danpotter on September 12, 2009, 09:58:04 PM
dude i willl start the problem from starting..i installed mod everything is fine but in managepermissions.php Test failed..actually i did every change thta i need to do in my theme but whne i type a messgae it showed me error "
ChatBot: Error: Connection status: 0"...it showed me this errror even after doing change in Chat.js seeing from ur site....i gave u managepermissions.php and u edited it....but even after uploading that No change.....so now again im providing the Normal managepermissions.php file...


This is the image of Test failed in Managepermissions.php

http://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=115145;image

and im providing u normal managepermissions.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperZambezi on September 12, 2009, 10:20:35 PM
Quick Question : How can I turn off or disable sounds?

*If I delete the mp3 files I get errors so that does not work. Thanks. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 12, 2009, 10:30:58 PM
Danpotter try this one.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 12, 2009, 10:36:36 PM
Quote from: SuperZambezi on September 12, 2009, 10:20:35 PM
Quick Question : How can I turn off or disable sounds?

*If I delete the mp3 files I get errors so that does not work. Thanks. :)

I haven't tried this edit myself yet so please backup the file.

chat / js/config.js

Look for:

// Defines if sounds are played:
audio: true,
// Defines the sound volume (0.0 = mute, 1.0 = max):
audioVolume: 1.0,


Change

audioVolume: 1.0,

to 0.0

Please note I have not tested this out myself yet.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danpotter on September 13, 2009, 02:25:26 AM
Quote from: TheListener on September 12, 2009, 10:30:58 PM
Danpotter try this one.


No use brother....still.....Test failed in Managepermissions.php even after uploading that file u gave me....and still shout box not showing my typed matter.. :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 13, 2009, 02:27:35 AM
Can you pm a link to your forum please and a temp admin account.

Will look at it sometime today for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rigo on September 13, 2009, 11:50:24 AM
hell every body...

My question must be simple I'm very happy with the integration of Ajax chat was really perfect and easy but two small word that I will like to change and they are "" Ajax Chat"" I mean in the corner left come the title Ajax Chat don't will be possible in some way to changed and put your own particular ??????

  my be this question was already spoken here but sorry check every post reply ummmm is a big home work so please I will appreciate your help guys...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 13, 2009, 02:00:53 PM
Rigo

There is an edit which can be made so your forums name can be seen instead.

It is just a matter of finding it.

I will be adding it as soon as I find out where the edit is required.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: shortchange on September 13, 2009, 04:30:43 PM
Anyone know how to make /msg not case sensitive?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dropNbodies iXi on September 13, 2009, 06:03:12 PM
How do I even enable/see where the chatbox is?  I'm not talking about that shoutbox that appears on the top of the forums.  I mean the REAL chatbox...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 13, 2009, 06:19:32 PM
Quote from: shortchange on September 13, 2009, 04:30:43 PM
Anyone know how to make /msg not case sensitive?

Thanks

I'm not sure if that can be done.

Quote from: dropNbodies iXi on September 13, 2009, 06:03:12 PM
How do I even enable/see where the chatbox is?  I'm not talking about that shoutbox that appears on the top of the forums.  I mean the REAL chatbox...

Have you checked the permissions?

send me a temp admin account in pm and I willhelp you get it started if you wish.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 13, 2009, 07:33:20 PM
Quote from: dropNbodies iXi on September 13, 2009, 06:03:12 PM
How do I even enable/see where the chatbox is?  I'm not talking about that shoutbox that appears on the top of the forums.  I mean the REAL chatbox...

Do you not have the "chat" button visible?  Are you using a custom theme?  Attach your custom themes index.template.php if you are.
Follow this line, add  /chat/index.php  after your site address.
So it looks like this        h**p://YOUR URL HERE/chat/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 13, 2009, 07:51:59 PM
Quote from: rigo on September 13, 2009, 11:50:24 AM
... I will like to change and they are "" Ajax Chat"" I mean in the corner left come the title Ajax Chat don't will be possible in some way to changed and put your own particular ??????

Go to your Chat folder located in the root of your forum(where the packages, avatars and sources folder is), go into the lib folder, and select the en.php.
Search for this line
$lang['title'] = 'AJAX Chat';

Change it there, and do so for each of the other templates in the lib folder.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 13, 2009, 08:23:50 PM
Sabre I tried the edit you mentioned with no luck.

If you go into the sounds file however I believe the sounds can be changed as they are mp3 files.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 13, 2009, 08:30:50 PM
Did you clear your browser cache?
If so, how?
Which browser are you using?
I'll test it aswell.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 13, 2009, 08:32:35 PM
browser firefox
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lolafish on September 14, 2009, 12:20:50 AM
Just wanted to say thank you for this mod!  Installed on my default version of 1.1.10 just fine. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rigo on September 14, 2009, 02:59:39 AM
Quote from: Sabre™ on September 13, 2009, 07:51:59 PM
Quote from: rigo on September 13, 2009, 11:50:24 AM
... I will like to change and they are "" Ajax Chat"" I mean in the corner left come the title Ajax Chat don't will be possible in some way to changed and put your own particular ??????

Go to your Chat folder located in the root of your forum(where the packages, avatars and sources folder is), go into the lib folder, and select the en.php.
Search for this line
$lang['title'] = 'AJAX Chat';

Change it there, and do so for each of the other templates in the lib folder.

  thank a lot prefect answerd tip top
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nuts_fever_007 on September 14, 2009, 05:50:50 PM
hey i installed the ajax chat long time ago and it was working great as well but from yesterday onwards for some reason now i cannot able to chat or shout inside the shoutbox..can someone please help me to solve this issue...

thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 14, 2009, 07:08:28 PM
Quote from: nuts_fever_007 on September 14, 2009, 05:50:50 PM
hey i installed the ajax chat long time ago and it was working great as well but from yesterday onwards for some reason now i cannot able to chat or shout inside the shoutbox..can someone please help me to solve this issue...

thank you

Can you please check your permissions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nuts_fever_007 on September 14, 2009, 10:09:32 PM
hey..the shoutbox was working great until yesterday but suddendly for some reason now i cannot able to shout...can you please tell me which file do i need to check specifically for permission...

thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 14, 2009, 11:20:06 PM
Nuts the answer can be found on my test forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nuts_fever_007 on September 14, 2009, 11:27:01 PM
can you please send me the link of ur forum...so i can look it up...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 14, 2009, 11:28:17 PM
The link is the banner in my signature
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danpotter on September 15, 2009, 12:11:26 AM
hey brother...i repaired forum myself..now wat i need to do with AJAx???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: genusis on September 15, 2009, 10:53:25 AM
for some strange reason a few days ago my shoutbox and chat was working then all of a sudden it stopped and now it says (10:49:53) ChatBot: Error: Connection status: 500

and wen i go to the chat button says internal server error..... Any idea whats wrong?.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lolafish on September 15, 2009, 01:35:38 PM
Listener, I PM'd you about this on your site, but just wanted to repost in case someone else knows the answer too.

Trying to find out what file is needed for this fix.  Too many characters/languages in drop down menu.

Anybody else had this happen on install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on September 15, 2009, 04:00:29 PM
@Lolafish
open chat/lib/config.php
find:
$config['langAvailable']
and remove those languages you don't want
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 15, 2009, 04:42:27 PM
Quote from: genusis on September 15, 2009, 10:53:25 AM
Error: Connection status: 500

Try [THIS] (http://www.simplemachines.org/community/index.php?topic=334078.msg2238650#msg2238650)

Quote from: .HuNTeR. on September 15, 2009, 04:00:29 PM
@Lolafish
open chat/lib/config.php
find:
$config['langAvailable']
and remove those languages you don't want

In that file, you will find many ways to customize your chat.
So read all of the guides provided before each string of code to see what your options are. You may find things that you haven't thought of yet ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 15, 2009, 05:30:28 PM
sabre I found the edit before I went to bed last night ( morning).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lolafish on September 15, 2009, 10:00:00 PM
Quote from: .HuNTeR. on September 15, 2009, 04:00:29 PM
@Lolafish
open chat/lib/config.php
find:
$config['langAvailable']
and remove those languages you don't want
Thank you!!! Woo hoo!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lolafish on September 15, 2009, 10:00:47 PM
Quote from: Sabre™ on September 15, 2009, 04:42:27 PM
In that file, you will find many ways to customize your chat.
So read all of the guides provided before each string of code to see what your options are. You may find things that you haven't thought of yet ;)

Will do.  That's very helpful.  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dropNbodies iXi on September 16, 2009, 01:32:08 AM
Quote from: Sabre™ on September 13, 2009, 07:33:20 PM
Quote from: dropNbodies iXi on September 13, 2009, 06:03:12 PM
How do I even enable/see where the chatbox is?  I'm not talking about that shoutbox that appears on the top of the forums.  I mean the REAL chatbox...

Do you not have the "chat" button visible?  Are you using a custom theme?  Attach your custom themes index.template.php if you are.
Follow this line, add  /chat/index.php  after your site address.
So it looks like this        h**p://YOUR URL HERE/chat/index.php

Yeh there isn't a "chat" button under the admin settings, I'm using SMF 1.1.10.  I don't exactly understand what you're telling me to do  :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 17, 2009, 01:27:59 AM
There is no chat button in the admin settings. There should however be a chat button next to your logout button.
So once again, are you using a custom theme?  That means a theme other than the default theme that comes with smf.
If you are and there is no chat button displayed next to your logout button, then the code for this mod that gets inserted into your index.template.php needs to be added to that theme.

Quote from: Sabre™ on September 13, 2009, 07:33:20 PM
...add  /chat/index.php  after your site address.
So it looks like this        h**p://YOUR URL HERE/chat/index.php

This process will show you your chat room.
Lets say your site address is     h**p://weather.com
Then to see your chat room, the address would be   h**p://weather.com/chat/index.php   or just    h**p://weather.com/chat

Sorry buddy, but I dont know how to make it any more clearer than that.
Hopefully that helps. :)

If you need assistance editing your themes  index.template.php, then attach the file, and I or another will do the edits for you.
To attach a file: 
1. click on "reply"
2. click on "Additional Options..."
3. see where it says "Attach:", go to the right where it says "browse" and select your template.
4. click "open"
5. make your post.

If none of that works, then read [THIS] (http://docs.simplemachines.org/)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bbq-pepper on September 17, 2009, 08:19:44 AM
Hi all!


How can I prevent the ajax chat from using relative urls? I have implemented the pretty url and chat will not work with it (mod rewrite)

Cheers, Peter
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bbq-pepper on September 17, 2009, 11:00:10 AM
And after deinstalling the prtty url the chat and shoutbox still not working
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 17, 2009, 02:51:40 PM
Have you set the permissions to 755?b
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: danielwmoore on September 17, 2009, 05:13:12 PM
Quote from: bbq-pepper on September 17, 2009, 08:19:44 AM
Hi all!


How can I prevent the ajax chat from using relative urls? I have implemented the pretty url and chat will not work with it (mod rewrite)

Cheers, Peter

Not necessary.  Just set up a template for chat in your theme (like I outlined in one of my earlier posts here) and have it launch through an iframe. 

Works flawlessly both on my SMF install, and also works on a site where I have mod_rewrite to allow me to have URLs like "http://www.domain.com/stuff/here/and/there/".  It has no problems at all from within the iframe.

I detailed step by step instructions in THIS POST (http://www.simplemachines.org/community/index.php?topic=257973.msg2239530#msg2239530).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cwmod on September 17, 2009, 10:11:37 PM
Quote from: cat farmer on September 10, 2009, 01:31:17 PM
I have seen a few posts in here about the permission labels not being set. the check boxes are there and it all seems? to work, but I have no idea what they do.
I've checked all the modifications to PHP from the manual install instructions and all seems OK. running SMF1.1.10. Is there a solution out there for this?

I figured it out- set language to from UTF8english to english. Thanks for making this intagration easy!

THANK YOU ... this fixed my problem with no labels as well!

.............................

Can someone give me the code to add the Chat button to Dilber MC theme in SMF 1.1.10 so that it opens in a seperate window and shows users present (if any)? Thanks a bunch!

Listener-- thank you I did finally figure out the file permissions :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: d3c0y on September 18, 2009, 12:26:17 PM
I'm running a fresh version of 1.1.10 and just installed AJAX Chat. Everything is up but it seems the chat isn't quite working correctly yet. The chat doesn't respond to any commands, please take a look here http:// uni43mob. 100webspace .net / chat/ any help would be greatly appreciated.

Pw: test
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 18, 2009, 12:30:45 PM
The address didn't work for me.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 18, 2009, 12:43:35 PM
Couldnt check it without registering to your forum.
Maybe let guests access the chat while you need assistance.

Quote from: TheListener on September 18, 2009, 12:30:45 PM
The address didn't work for me.

Remove the gaps in his posted url ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 18, 2009, 12:47:01 PM
Did that bud and still nothing
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 18, 2009, 12:51:07 PM
Try clicking [THIS] (http://uni43mob.100webspace.net/chat/).
Anything?
Guests are disabled for entering chat, and the [forum] (http://uni43mob.100webspace.net/index.php).
You'll need to sign up to test it out.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 18, 2009, 12:56:33 PM
Have the permissions been set to 755?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: d3c0y on September 18, 2009, 12:58:37 PM
sorry! enabled guest, thx for the quick responses
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rgecy on September 20, 2009, 04:25:10 AM
Any help with adding my website logo to the chat room at the very top.  I have added img tag in the Loggedin.html, but the image is behind the text.

Here is a snipet from the LoggedIn.html

</head>
   
<body>
<div id="content">
     <img src="h**p://www.mywebsiteurl.com/forums/SI-Logo-sm.png" alt="SideImagingSoft.com HBSI Forum"  />
<div id="headlineContainer">
<h1>[LANG]title[/LANG]</h1>
</div>
<div id="logoutChannelContainer">
  <input type="button" id="logoutButton" value="[LANG]logout[/LANG]" onclick="ajaxChat.logout();"/>
<label for="channelSelection">[LANG]channel[/LANG]:</label>
<select id="channelSelection" onchange="ajaxChat.switchChannel(this.options[this.selectedIndex].value);">[CHANNEL_OPTIONS/]</select>
<label for="styleSelection">[LANG]style[/LANG]:</label>
<select id="styleSelection" onchange="ajaxChat.setActiveStyleSheet(ajaxChat.getSelectedStyle());">[STYLE_OPTIONS/]</select>
<label for="languageSelection">[LANG]language[/LANG]:</label>
<select id="languageSelection" onchange="ajaxChat.switchLanguage(this.value);">[LANGUAGE_OPTIONS/]</select>
  </div>



Thanks,

Robert
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dropNbodies iXi on September 20, 2009, 04:33:45 AM
Quote from: Sabre™ on September 17, 2009, 01:27:59 AM
There is no chat button in the admin settings. There should however be a chat button next to your logout button.
So once again, are you using a custom theme?  That means a theme other than the default theme that comes with smf.
If you are and there is no chat button displayed next to your logout button, then the code for this mod that gets inserted into your index.template.php needs to be added to that theme.

Quote from: Sabre™ on September 13, 2009, 07:33:20 PM
...add  /chat/index.php  after your site address.
So it looks like this        h**p://YOUR URL HERE/chat/index.php

This process will show you your chat room.
Lets say your site address is     h**p://weather.com
Then to see your chat room, the address would be   h**p://weather.com/chat/index.php   or just    h**p://weather.com/chat

Sorry buddy, but I dont know how to make it any more clearer than that.
Hopefully that helps. :)

If you need assistance editing your themes  index.template.php, then attach the file, and I or another will do the edits for you.
To attach a file: 
1. click on "reply"
2. click on "Additional Options..."
3. see where it says "Attach:", go to the right where it says "browse" and select your template.
4. click "open"
5. make your post.

If none of that works, then read [THIS] (http://docs.simplemachines.org/)

Here's the file and thanks a lot for the help man!  I really appreciate your customer service skills  8)

Also if you don't mind, can you tell me what you did to the file so just in case for another scenario like this were to happen  :-*
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 20, 2009, 05:25:35 AM
Try the attached file.
Let me know if it works properly

Quote from: dropNbodies iXi on September 20, 2009, 04:33:45 AM
... if you don't mind, can you tell me what you did to the file so just in case for another scenario like this were to happen

On any page where you download a package, you will see text stating 'Manual Install Instructions for SMF'
You select your smf version and the package you desire to use, then click the 'parse' button.
It will take you to the page which shows you what to add to each template, such as [THIS] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1319;attach=112578;smf_version=1.1.10) page, for this mod.
Since your custom theme is structured different to the default theme, the index.template.php needs a little more attention.

Look at the page Ive linked to, then in the attached template, search for the word 'chat', and you will see and be able to compare the changes I've made.
Basically, make the button code(s) similar to the others.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dropNbodies iXi on September 20, 2009, 05:41:33 AM
Yeh sorry, but that didn't work  :'(  My theme is kani_119 and there's still no chat button showing up when i replaced the file you sent to me with the file that was under that theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 20, 2009, 05:55:15 AM
Is the mod installed and working on the default theme?
Ive tested the template on the theme mentioned, and its working.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg30.imageshack.us%2Fimg30%2F2723%2F31329419.jpg&hash=5f9c9bd85961a731d8808b445e7edcf0851c8e88)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IngeJones on September 21, 2009, 04:28:10 AM
I am running one of my SMF forums solely as a vehicle for this Ajax chat system, because it adds the functionality of permanent PMs and one forum for announce semi-permanent news.  But mainly it's for chatting.

Under these circumstances, is there any reason it would not be a good idea to replace the shoutbox with the fully featured chat window embedded in the same location, rather than running it in its own popup window?

Edit to add:  And if so, *how* lol! ?  I have edited so much stuff now attempting it and it's completely ignoring me and continuing to display as before :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 21, 2009, 02:28:19 PM
You could always use the shoutbox instead of the chatroom .

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fabteam on September 21, 2009, 03:43:23 PM
hello

I am using PortaMx and would like to have a dedicated php block "who is in the chat" that just display the info available in the info center.
Could you tell me what part of the code I should add in this php block ?

thank you !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dropNbodies iXi on September 21, 2009, 05:32:09 PM
Quote from: Sabre™ on September 20, 2009, 05:55:15 AM
Is the mod installed and working on the default theme?
Ive tested the template on the theme mentioned, and its working.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg30.imageshack.us%2Fimg30%2F2723%2F31329419.jpg&hash=5f9c9bd85961a731d8808b445e7edcf0851c8e88)

It's working properly on the default theme, but it's not working on the kani theme.  Any idea why?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Skoen on September 21, 2009, 05:35:05 PM
Is there a way to include some kind of usage stats for the chat?
Like unique users per day or something like that?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 21, 2009, 05:36:57 PM
Quote from: Skoen on September 21, 2009, 05:35:05 PM
Is there a way to include some kind of usage stats for the chat?
Like unique users per day or something like that?
Quote from: Skoen on September 21, 2009, 05:35:05 PM
Is there a way to include some kind of usage stats for the chat?
Like unique users per day or something like that?

Not at the present.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on September 21, 2009, 05:53:07 PM
Im not sure if this has been asked yet and I dont want to look through 195 pages to find out but is there a way to put your own text inside the shoutbox so it will stay there
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 21, 2009, 05:54:46 PM
How do you mean?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bladenight on September 21, 2009, 07:24:45 PM
Just installed this mod, wanted to send out a thanks, it's a great mod!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 21, 2009, 07:33:45 PM
Quote from: Bladenight on September 21, 2009, 07:24:45 PM
Just installed this mod, wanted to send out a thanks, it's a great mod!

You will find many edits which can be made if you take a peek at the link to my test forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on September 22, 2009, 01:34:14 AM
Quote from: TheListener on September 21, 2009, 05:54:46 PM
How do you mean?
well see I want to have text inside the shoutbox (at the top) that says for example (Do not use the shoutbox for support.) I know how to put that on top of the shoutbox but I think it would look more proffesional if it was inside.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IngeJones on September 22, 2009, 03:12:37 AM
Quote from: TheListener on September 21, 2009, 02:28:19 PM
You could always use the shoutbox instead of the chatroom .

Well, no because the shoutbox is so limited compared to the options in the full chat.  The point is we want the fully featured chat, just would have liked it embedded in the same page as the forum instead of a seperate window.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Games4Nerds on September 22, 2009, 05:58:06 PM
Hey guys, i need help with this, i installed it and it said it was successfully installed but when i enable it, i keep getting this message on the chatbox saying "ChatBot: Error: Connection status: 500"
Can anyone help please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 22, 2009, 06:00:02 PM
You need to set the permissions to 755.

There is more information on my test forum in the link in my sig.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bullbreedluverz on September 22, 2009, 06:38:02 PM
Quote from: TheListener on September 22, 2009, 06:00:02 PM
You need to set the permissions to 755.

There is more information on my test forum in the link in my sig.

sorry but isnt this support for ajaxchat and not a thread to try promote your site (as many times as you can) and get people to visit your site to which they have to sign up to view posts that you are suggesting they read...............
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on September 22, 2009, 06:53:25 PM
Whilst I can see how it can be considered advertising, the fact remains that it is as it claims to be - there ARE several threads of support, answering common questions, here (http://bigearsdevelopment.visionaryhosting.info/index.php?board=2.0).

That said, I agree that if you are going to link to the site for advice that it SHOULD be visible to guests, otherwise we will have to start editing the links out - no sense linking to a help site if you have to make the users work for it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Northboun on September 23, 2009, 06:01:01 AM
Can I make the shoutbox display date and time and turn off the shout expiry time or increase the delay? If so instructions would be much appreciated.

Thanks.  :)

I use SMF2 RC1.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ade9ja on September 23, 2009, 10:49:10 AM
I have installed the mod but i can't see the button on my forum, i am using default theme, plz how can i enable it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Etern on September 23, 2009, 11:57:34 AM
Hello !!!!!!!
First i would like to say thanks to everyone who helps in these forum.  ;D
I have installed these mod into my SMF 1.1.10, but i can't write in the shoubox. I have these message: ChatBot: Error: Connection status: 0
Sorry but my english is not good   :(

Thanks !!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 23, 2009, 12:16:57 PM
If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing

chat/js/chat.js
Find


this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);


Replace with

if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Etern on September 23, 2009, 12:56:40 PM
Quote from: TheListener on September 23, 2009, 12:16:57 PM
If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing

chat/js/chat.js
Find


this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);


Replace with

if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}


The problem is that i can't write into the shoutbox and chat, becouse only appears these message: Connection  Status: 0 error
I try to change the file chat.js, but whent i up the file into server, filezilla says me: 550 Could not delete chat.js: Permission denied

Thankyou and sorry becouse my english is not good

PD. I have installed TinyPortal v1.0.5 beta 1, could be these the problem?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sakurachan on September 23, 2009, 05:57:25 PM
I get this..

Quote(16:55:17) ChatBot: Error: Connection status: 500
(16:55:19) ChatBot: Error: Connection status: 500
(16:55:28) ChatBot: Error: Connection status: 500

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 23, 2009, 06:18:35 PM
Please take the time to do a little reading in a thread before you ask questions.
Even if you only read this page, you will see that somebody has already answered it only 8 posts above yours.

Thank You :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on September 23, 2009, 06:24:17 PM
Quote from: smp420 on September 22, 2009, 01:34:14 AM
Quote from: TheListener on September 21, 2009, 05:54:46 PM
How do you mean?
well see I want to have text inside the shoutbox (at the top) that says for example (Do not use the shoutbox for support.) I know how to put that on top of the shoutbox but I think it would look more proffesional if it was inside.
I still need help with this is there any way to do it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Linkin24 on September 24, 2009, 04:52:37 AM
Hey everyone, I tried searching through the forum for a solution to my problem, but no luck.

I have SMF 2.0 RC1.2 and I downloaded the zip file and then uploaded it in the Packages folder.  When I go to Packages in The forum and try to install it by clicking apply mod, I get this error message:

Unable to find package file!

But I go to my file manager and all of the files are there, so I don't understand.

I've deleted it and re-uploaded it and still says its unable to find package file.  Can this not be automatically installed, or do I have to manually edit it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lolafish on September 24, 2009, 09:55:55 AM
Quote from: smp420 on September 21, 2009, 05:53:07 PM
Im not sure if this has been asked yet and I dont want to look through 195 pages to find out but is there a way to put your own text inside the shoutbox so it will stay there

There is a welcome message talked about in this thread.  It doesn't work for me, but works for others.  Is that what you mean?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on September 24, 2009, 10:48:46 AM
Hi,

First of All, congratulations for the great mod.

One question: Is it possible to disable the "Help" and "Show/Hide Online List" buttons? I don't want my users to have access to that.

Also, Is there possible to disable de "Chat" button in the default theme?

Thank you in advance for any help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on September 24, 2009, 01:16:55 PM
Hi all, I have been getting the following error messages for some time. I have posted before a long time ago but did not get response, or maybe I just missed it. I also ran the site through a validator and got some responses as well.

Validator response:

  Line 176, Column 98: document type does not allow element "link" here
...central.com/chat/css/shoutbox.css" /> :the > is in red and underlined in the message
Line 208, Column 17: ID "ajaxChatContent" already defined
       <div id="ajaxChatContent"> : the a in ajax is in red and underlined
Line 197, Column 16: ID "ajaxChatContent" first defined here
       <div id="ajaxChatContent">  : the " before the ajax is in red


Error log messages:

  http://newbiescentral.com/index.php? 
8: Undefined index: SERVER_NAME
File: /home/scott/public_html/newbiescentral.com/shoutBox/lib/class/AJAXChatTemplate.php
Line: 137 


The chat and shout are working but keeps dropping shouts alot. Any help would be appreciated. Will wach this thread more closely this time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fabteam on September 24, 2009, 04:10:51 PM
Quote from: fabteam on September 21, 2009, 03:43:23 PM
hello
I am using PortaMx and would like to have a dedicated php block "who is in the chat" that just display the info available in the info center.
Could you tell me what part of the code I should add in this php block ?
thank you !

Hello

I checked your forum but could not find the piece of code that just diplay who is in the chat.
You chat is a very good mod, but my members just don't see who is online and therefore do not enter the chatroom
this is why I would like to display who is in the chatroom elsewhere that at the bottom of the hp.

thanks !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 24, 2009, 04:24:54 PM
@ Lolafish
Try the attached template to see if the welcome message displays.
Edit only what is within the [color] tags.
I've also added the word filter in this template, and you will be able to see how to customise that for more words.

@ rpacheco
You can cancel out that particular code.
So in your loggenIn.html, search for this
<input type="image" src="img/pixel.gif" class="button" id="helpButton" alt="[LANG]toggleHelp[/LANG]" title="[LANG]toggleHelp[/LANG]" onclick="toggleContainer('helpContainer', new Array('onlineListContainer','settingsContainer'));"/>
<input type="image" src="img/pixel.gif" class="button" id="settingsButton" alt="[LANG]toggleSettings[/LANG]" title="[LANG]toggleSettings[/LANG]" onclick="toggleContainer('settingsContainer', new Array('onlineListContainer','helpContainer'));"/>
<input type="image" src="img/pixel.gif" class="button" id="onlineListButton" alt="[LANG]toggleOnlineList[/LANG]" title="[LANG]toggleOnlineList[/LANG]" onclick="toggleContainer('onlineListContainer', new Array('settingsContainer','helpContainer'));"/>


and replace it with this
<!-- <input type="image" src="img/pixel.gif" class="button" id="helpButton" alt="[LANG]toggleHelp[/LANG]" title="[LANG]toggleHelp[/LANG]" onclick="toggleContainer('helpContainer', new Array('onlineListContainer','settingsContainer'));"/>
<input type="image" src="img/pixel.gif" class="button" id="settingsButton" alt="[LANG]toggleSettings[/LANG]" title="[LANG]toggleSettings[/LANG]" onclick="toggleContainer('settingsContainer', new Array('onlineListContainer','helpContainer'));"/>
<input type="image" src="img/pixel.gif" class="button" id="onlineListButton" alt="[LANG]toggleOnlineList[/LANG]" title="[LANG]toggleOnlineList[/LANG]" onclick="toggleContainer('onlineListContainer', new Array('settingsContainer','helpContainer'));"/>    //-->


@ ScottDB
Hi mate, I dont use this mod on a live site, I'm only purely using it for learning purposes, but have run this through both html and css validators, and they both come up clean.
Do you recall any changes you've made to the templates?
Does your host force ads, or do you have ads displayed?
Just a couple extra things to look at ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 24, 2009, 04:51:35 PM
@ fabteam
Try this code.
Im not familiar with portamx, so Im not sure if it may need a little tweeking.

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


Quote from: rpacheco on September 24, 2009, 10:48:46 AM
Is there possible to disable de "Chat" button in the default theme?

Sorry, I forgot to address this, just as you've forgotten to mention which smf version you are using as both versions require different approaches. ;)

For smf 1.x.x search for this in your index.template.php
// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';


And replace it with
/* the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';    */


We have only canceled out the button so it is not displayed, and not removed the actual code, incase you may want it in the future.
If you do, just reverse the process.
Or else just delete the above code.

For smf2, look in your subs.php in your sources folder and remove this
'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),


Enjoy :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Autoteilekauf.com on September 24, 2009, 05:03:01 PM
QuoteWas ist eine Data URL?

Es besteht grundsätzlich die Möglichkeit, auf webchat.de die aktuelle Teilnehmerzahl im Chat anzeigen zu lassen. Zusätzlich zu der Teilnehmerzahl werden die Chatter, welche im Chatkanal anwesend sind, aufgelistet und es gibt verschiedene Statistiken zu dem Chatkanal. Dazu müssen Sie uns eine Möglichkeit einrichten, die nötigen Daten abzuholen. Gleichzeitig sind ALLE hierdurch wahrgenommenen Chatter in unserer Datenbank verzeichnet. Somit kann man via Chattersuche in webchat.de auch Ihre Chatter finden.

Welche Daten benötigen wir?


Nickname: auch Login, Avatar etc.
Raum: dies ist der Name vom Kanal, Channel wenn Sie mehrere haben. Wird bei Chatsystemen unbedingt benötigt.
Zeit: UNIX SYSTEM TIME das ist eine Zahl, die die Sekunden seit 1.1.1970, 0:00 repräsentiert - Gibt an, wann der Chatter zum letzten Mal aktiv war. Wird nicht unbedingt benötigt.
Wie soll die Ausgabe erfolgen?

Bitte wählen Sie eines der folgenden Standardformate aus. Die Klammern sollten in der Ausgabe ENTHALTEN sein! Jeder Name etc. in EINER Zeile (durch ein Break(\n) abschliessen) darstellen. Bitte fügen Sie KEIN HTML ein!


(nickname) (zeit) (raum)
(nickname) (zeit)
(nickname) (raum)
(nickname)

how can i show the chatters online on webchat.de?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on September 24, 2009, 05:15:59 PM
Sabre,

Thank you very much. I already removed the chat button, using your instructions, and it worked fine.

I'll try the rest of it.

Thank you!

P.S.: Using SMF 2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 24, 2009, 05:22:12 PM
My pleasure buddy :)
If you need assistance with the final edits, just attach the html file.
But Im sure you will be fine.
Good luck :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on September 24, 2009, 05:36:41 PM
The only ads I have is the ad management mod. Did you mean that you ran my site or yours through validator? I know when I ran my site throuhg a validator I got the before mentioned errors.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 24, 2009, 05:46:44 PM
No, I mean I ran mine through the validators.
Running your chat room through the validator come up [Clean] (http://validator.w3.org/check?uri=http%3A%2F%2Fnewbiescentral.com%2Fchat%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&group=0), so the problem lies within code on your main site.
I do not know which.

With your other errors in your log, I will leave that for the more experienced, as I'm still learning this code myself.
Im guessing something wasn't installed properly.
Have you tried uninstalling the mod, running the procedure that produces the error, then check if the error still occures?
A fresh install of the mod maybe a faster solution until somebody replies.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on September 24, 2009, 06:31:05 PM
Sabre,

Worked fine. Thank you.

Just one more thing: the online list is shown by default. How can I change that?

Also, Can I change the "AJAX" title to the name of my chat? Or that would be against the mod rights policy? If I can, where is it in the code?

Thank you again!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Scup on September 24, 2009, 07:58:56 PM
I'm using SMF 1.1.10 and when I go to the spot to uncheck things the tickboxes are unlabelled? Is this due to my theme? Anyway, this isn't the problem. The problem is that the chatbox is administrator only and I can't seem to make it global? I've re-installed many times.

Thanks for the help. ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on September 24, 2009, 08:14:15 PM
did you change the permissions  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Scup on September 24, 2009, 08:15:11 PM
I've changed both indexes in chat and Shoutbox to 755 as required?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on September 24, 2009, 09:14:36 PM
in the admin panel go to permissions andchange them for each group you want to use the chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jaketfg on September 25, 2009, 12:13:04 AM
I've read through about the last eight pages and couldnt find an answer to my question.

I set the premissions to the two files to 777 (also tried 755) but i still get a connection 500 error on the shoutbox.

When I go to the chat page it says 500 Internal Service Error.

If you need more information to help me I am willing to give it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ScottDB on September 25, 2009, 02:48:40 AM
Quote from: ScottDB on September 24, 2009, 01:16:55 PM
Hi all, I have been getting the following error messages for some time. I have posted before a long time ago but did not get response, or maybe I just missed it. I also ran the site through a validator and got some responses as well.

Validator response:

  Line 176, Column 98: document type does not allow element "link" here
...central.com/chat/css/shoutbox.css" /> :the > is in red and underlined in the message
Line 208, Column 17: ID "ajaxChatContent" already defined
       <div id="ajaxChatContent"> : the a in ajax is in red and underlined
Line 197, Column 16: ID "ajaxChatContent" first defined here
       <div id="ajaxChatContent">  : the " before the ajax is in red


Error log messages:

  http://newbiescentral.com/index.php? 
8: Undefined index: SERVER_NAME
File: /home/scott/public_html/newbiescentral.com/shoutBox/lib/class/AJAXChatTemplate.php
Line: 137 


The chat and shout are working but keeps dropping shouts alot. Any help would be appreciated. Will wach this thread more closely this time.
Quote from: Sabre™ on September 24, 2009, 05:46:44 PM
No, I mean I ran mine through the validators.
Running your chat room through the validator come up [Clean] (http://validator.w3.org/check?uri=http%3A%2F%2Fnewbiescentral.com%2Fchat%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&group=0), so the problem lies within code on your main site.
I do not know which.

With your other errors in your log, I will leave that for the more experienced, as I'm still learning this code myself.
Im guessing something wasn't installed properly.
Have you tried uninstalling the mod, running the procedure that produces the error, then check if the error still occures?
A fresh install of the mod maybe a faster solution until somebody replies.
Thanks for trying I really do appreciate it. I don't know that much about validators and their reliability but I have ran this through two different validators and I got the same thing in both of them. Plus the fact that I am getting the error message dealing with the shoutbox leaves me to believe that there is something wrong with my shoutbox code. Will uninstall if I have to as a last resort since that does make sence, but would like to have someone explain the log error code first to make sure. Maybe it is a cascading problem from another error that I have or something.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Paul_Pauline on September 25, 2009, 07:53:26 AM
Hi Guyz !

First off the mod looks great  .......

I installed it no problem, the only thing is I keep getting an error

"ChatBot: Error:Connection Status 403"

It doesn't appear to effect how the shoutbox or chat work, but it keeps recurring in both off them !

I wondered if there is a way to cure this as it will make members think there is a problem, and  I don't know what I am doing !

Which is probably true, but I don't want to broadcast it, lol !

Thanks, Paul.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on September 25, 2009, 09:34:33 AM
Yea, I get that too, I think most people do.
It will go away every time the page refreshes and sometimes will reoccur when you click a page changing link on your forum, its harmless really
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AlkaSeltxer on September 25, 2009, 10:30:01 AM
Well, I'm having some problems here. It appears to be fully working, however when you try to type something in both the chat and shoutbox, your message does not show for you or anyone else. I'm not getting any errors in the chat or in SMF. Also hitting logout in the chat does nothing.

SMF 1.1.10
TP 0.9.8
Custom Theme, but properly modded according to the Phraser.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 25, 2009, 01:26:32 PM
Quote from: AlkaSeltxer on September 25, 2009, 10:30:01 AM
Well, I'm having some problems here. It appears to be fully working, however when you try to type something in both the chat and shoutbox, your message does not show for you or anyone else. I'm not getting any errors in the chat or in SMF. Also hitting logout in the chat does nothing.

SMF 1.1.10
TP 0.9.8
Custom Theme, but properly modded according to the Phraser.

Are there any errors in your error log at all?

can we see a link to your forum please and is chat available for guests?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pspmichael on September 25, 2009, 02:42:30 PM
I tried to install this app and it failed.  I have the most recent version of SMF, 1.10.  When I try to add the package, it just sits there as if I didn't click the button.  Kind of frustrating when I read on here how so many others installed it without a hitch in a matter of a minute or two.  I have a fresh install of SMF with only categories and boards added.  Any ideas?

Since that would not load, I tried ACHAT.  That one installed flawlessly!  But I don't see any instructions on how to make modifications to make it more like my web site.  Does anyone know of any instructions for this app? 

Is it possible to have two chat apps at the same time?  It would be nice to have something more stable than an alpha product.  If I can have two at a time, I would be able to test one vs the other, save the one I like and uninstall the other.  I really like the shout out option, so I'm hoping to find why the first one will not install.

Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fabteam on September 25, 2009, 07:58:19 PM
thanks a lot Sabre !
it displays the number of people in the chat
what should I change to have the nickname displayed ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 25, 2009, 09:54:22 PM
Quote from: rpacheco on September 24, 2009, 06:31:05 PM
... the online list is shown by default. How can I change that?

Im unsure at this time buddy. Somebody else may know how to do this.

Quote from: rpacheco on September 24, 2009, 06:31:05 PM
Also, Can I change the "AJAX" title to the name of my chat? Or that would be against the mod rights policy? If I can, where is it in the code?

Yes you can change the name, just do not remove or change the copyright details.
To change the name of your Chat, go into the chat folder, then into the lib folder, and into the lang folder.
Open the en.php and at the top, you will see
$lang['title'] = 'Ajax Chat';

That is where you edit the name, and go through the other language files if you'd like to do this for all the languages supplied.

Quote from: Scup on September 24, 2009, 07:58:56 PM
I'm using SMF 1.1.10 and when I go to the spot to uncheck things the tickboxes are unlabelled?

Check if you have files named Help.english-utf8.php and Modifications.english-utf8.php in your languages folder, and add the code needed for those 2 templates.
smp420 answered your second question.

Quote from: jaketfg on September 25, 2009, 12:13:04 AM
I set the premissions to the two files to 777 (also tried 755) but i still get a connection 500 error on the shoutbox.

Which two files?
Im assuming you mean the index.php in both the chat and shout folders? And that hasn't worked?
Have you made any changes to your .htaccess file(s)?
As far as I know, an error 500 is a server side error. Somebody can correct me on this if Im wrong.
Your host should have these logged in their error logs, so get them to have a look at it.
Other than those suggestions, It'd be better if a more knowledgeable person assists you with this error.
Good luck :)

Quote from: fabteam on September 25, 2009, 07:58:19 PM
thanks a lot Sabre !
it displays the number of people in the chat
what should I change to have the nickname displayed ?

Just remove the code I mentioned, and add this instead.
ssi_chatOnline();

That'll call from your SSI.php, which is better all round, especially since you are using a portal
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Games4Nerds on September 26, 2009, 01:44:31 AM
how do i change permissions to 755 to fix ChatBot: Error: Connection status: 500 ??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 26, 2009, 01:49:44 AM
Go into your C/panel, select the file and click on the "chmod" button.
Type 755 and enter.

If you're using an ftp client, most will allow you to right click the file and select chmod there.
Just do the same as mentioned above.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Games4Nerds on September 26, 2009, 01:57:41 AM
Nvm Found it.

But when i try to set the permissions on /chat/index.php it doesnt let me put it to 755. it keeps going to 666.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fabteam on September 26, 2009, 04:28:41 AM
thank you very much Sabre it works !!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 26, 2009, 05:48:41 AM
Quote from: Games4Nerds on September 26, 2009, 01:57:41 AM
But when i try to set the permissions on /chat/index.php it doesnt let me put it to 755. it keeps going to 666.

Thats strange mate, Ive never experienced that before.
Maybe somebody that knows why it is doing this will suggest another option.

Quote from: fabteam on September 26, 2009, 04:28:41 AM
thank you very much Sabre it works !!

Anytime mate :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 26, 2009, 09:10:56 AM
How do i turn this on? Sorry!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 26, 2009, 09:12:40 AM
Quote from: mrtrag on September 26, 2009, 09:10:56 AM
How do i turn this on? Sorry!
Quote from: mrtrag on September 26, 2009, 09:10:56 AM
How do i turn this on? Sorry!

Can you please explain what you are trying to do.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 26, 2009, 09:13:56 AM
Quote from: TheListener on September 26, 2009, 09:12:40 AM
Quote from: mrtrag on September 26, 2009, 09:10:56 AM
How do i turn this on? Sorry!
Quote from: mrtrag on September 26, 2009, 09:10:56 AM
How do i turn this on? Sorry!

Can you please explain what you are trying to do.
well i installed it and it went through fine. But where dO i actually see the shout box? chat with users?  I'm very new to this and sorry if it has already been answered.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 26, 2009, 09:16:46 AM
Have you set the permissions for each membergroup?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 26, 2009, 09:18:09 AM
Quote from: TheListener on September 26, 2009, 09:16:46 AM
Have you set the permissions for each membergroup?
i will look..i do notice  it did skip a few files..what does this mean?     Skipping file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 26, 2009, 09:20:15 AM
The skipping files is noting to worry about ie language file the files you do have to watch are where it says test failed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 26, 2009, 09:26:23 AM
For smf1.1.10 it is in your admin panel where it states "Features and Options".
Just scroll down and you'll see the options for it.

In smf2 you go to your admin panel, then the Configuration tab, then scroll down and you will see the "Modifications" selection, then you will see where it says "Chat"

These actions will show you how to turn it on. After doing these, a chat button should appear next to your logout button.

You will also need to add the permissions for the membergroups as TheListener has mentioned.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 26, 2009, 09:29:49 AM
Quote from: Sabre™ on September 26, 2009, 09:26:23 AM
For smf1.1.10 it is in your admin panel where it states "Features and Options".
Just scroll down and you'll see the options for it.

In smf2 you go to your admin panel, then the Configuration tab, then scroll down and you will see the "Modifications" selection, then you will see where it says "Chat"

These actions will show you how to turn it on. After doing these, a chat button should appear next to your logout button.

You will also need to add the permissions for the membergroups as TheListener has mentioned.
awesome!!! lol  thanks! I need to slow down and  explore  next time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 26, 2009, 09:56:14 AM
Hello, I love the look of this mod and it is exactly what I am looking for.

I am using the latest version of SMF but have run into a problem :(

http://www.ewcsquad.com/forums/chat/index.php

Please can someone check the above post too see what I'm doing wrong?

Many thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 26, 2009, 10:02:50 AM
Check that everything was uploaded. Both folders and its contents.
Is the chat folder there?  Where your packages, avatars etc folders are.
If so, have you modified any of the templates?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 26, 2009, 10:05:12 AM
mines work fine
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 26, 2009, 10:07:25 AM
Thankyou so much for your reply!

I just checked my ftp and noticed it hadn't uploaded all of my folders.

I don't get any errors when I click "Chat" but I get a popup box saying www.ewcsquad.com are requesting a password.

I enter my forum login info and it says forbiden :S

Any ideas.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 26, 2009, 10:14:32 AM
Try your c/panel details.
What are those folders chmoded to?
Try 755 and see what happens if they aren't already.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 26, 2009, 10:20:42 AM
Okay I have changed all permissions to 755, now when I click on "chat" I get a popup window come up which is a start but since installing the mod every action I try to do (even non chat related) it comes up with a popup box saying ewcsquad.com requests a username and password.

I have tried my forum user and pass and my cpanel user and pass to no avail :(.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 26, 2009, 10:25:46 AM
Yeah mate, I haven't experienced that before.
Did you upload the package via the package manager?
Try uninstalling the mod, grabbing a fresh copy and installing it again, via the package manager in your admin panel.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 26, 2009, 10:27:51 AM
Ok bud I'll try that but I think it might be better for me to try manual upload as it didn't seem t oadd all files last time?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 26, 2009, 10:33:14 AM
Ok mate, but there are manual edits to your smf files that you will need to do also.
Make sure you do these, or you will may receive new errors.
By the way, I forgot to ask if there are any errors in your error log?
*smacks head
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 26, 2009, 10:48:08 AM
Got it working and works like a charm! :)

Thanks so much for your help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 26, 2009, 10:50:09 AM
Anytime mate :)
How did you fix it, for reference if another comes across the same issue.
Reinstalling it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AlkaSeltxer on September 26, 2009, 10:58:05 AM
Quote from: TheListener on September 25, 2009, 01:26:32 PM
Quote from: AlkaSeltxer on September 25, 2009, 10:30:01 AM
Well, I'm having some problems here. It appears to be fully working, however when you try to type something in both the chat and shoutbox, your message does not show for you or anyone else. I'm not getting any errors in the chat or in SMF. Also hitting logout in the chat does nothing. No one shows in the user list either.

SMF 1.1.10
TP 0.9.8
Custom Theme, but properly modded according to the Phraser.

Are there any errors in your error log at all?

can we see a link to your forum please and is chat available for guests?

No, not one error, not even in my cpanel error logs for the site server. I did notice the little light looking thing flashes from green to orange every second. It's not open but I can set you up a temp account to check it out. www.apsocal.com (http://www.apsocal.com)
Title: Internal 500 Error
Post by: jmil on September 26, 2009, 01:01:51 PM
SMF 1.1.9
Chat version 3.2.1
Theme Custom

Installed the Chat using the Package Manager - Only error I get is the following"

Execute Modification     ./Themes/default/index.template.php     Test failed

No Problem - I know I have the Parse that File after applying the mod but every time I try to apply the mod I lose my site to a:

500 Internal error. L

uckily I have both SQL and File backups and it restores fine - I just dont get why I can not apply the mod??

Any assistance?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on September 26, 2009, 02:23:54 PM
Hi All,

Is there a way to completely disable the Chat Bot? I don't want the users to view the Bot messages neither in the Chat nor in the Logs page.

I was able to disable the messages in the chat by commenting the internal code of the  addChatBotMessageToChatList function in chat.js, but the Bot messages still appear in the Logs Page.

BTW, I manage to remove the online user list by adding the following code to the bottom of "loggedIn.html":

<script>
toggleContainer('onlineListContainer', new Array('settingsContainer','helpContainer'));
</script>

Not a very clean solution, I know, but it worked.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 26, 2009, 02:40:06 PM
Quote from: Sabre™ on September 26, 2009, 10:50:09 AM
Anytime mate :)
How did you fix it, for reference if another comes across the same issue.
Reinstalling it?

I did what you said by getting a new copy of the mod and re uploading it and it al worked perfectly! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 26, 2009, 02:40:49 PM
Does anyone know how I go about viewing/deleting the chat history?

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on September 26, 2009, 06:47:39 PM
Hi,

Quote from: mcgovery on September 26, 2009, 02:40:49 PM
Does anyone know how I go about viewing/deleting the chat history?

Thanks.

For viewing, try this: http://www.yourdomain.com/forum/chat/?view=logs

For deleting, I coundn't find a way other then deleting it directly from the database.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 26, 2009, 07:29:12 PM
Surely there has to be away of clearing them out other than deleting each message one by one?
I don't want to clog up my database with an everlasting buid up.

Can someone please clear this up for me?

Many thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 26, 2009, 07:37:54 PM

So your members can enter an empty chat without viewing the previous chat the following edit can be made.

Chat >  lib > config.php

Find

// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;


Change true to false.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 27, 2009, 07:55:14 AM
Briliant! thankyou very much for replying!!
Will this mean that they are not stored on my server e,g saved once people leave the chat.
I hope they aren't and they get deleted?

Dave
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 27, 2009, 08:07:04 AM
Quote from: TheListener on September 26, 2009, 07:37:54 PM

So your members can enter an empty chat without viewing the previous chat the following edit can be made.

Chat >  lib > config.php

Find

// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;


Change true to false.

Just tried this edit mate and when I leave chat and then re login I still see my conversation under a new forum account and I still see the conversation althought I wasn't ever in the chat room when that conversation took place :(

Any suggestions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 27, 2009, 08:13:45 AM
Daft question but is the "false" meant to be green? as the rest of the text is black, probably me being a newb but just thought I better ask?

Because changing it to false doesn't do anything for me :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abcd789 on September 27, 2009, 08:31:05 AM
hiee friends i just instaled ajax chat.... mod.. it is showing this error in the webpage...

ChatBot: Error: Connection status: 500


plzz help me.... wt to do...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 27, 2009, 09:52:33 AM
Quote from: abcd789 on September 27, 2009, 08:31:05 AM
hiee friends i just instaled ajax chat.... mod.. it is showing this error in the webpage...

ChatBot: Error: Connection status: 500


Try and cmod your files to permission  775 via your fp/cpanel and you should be ok

plzz help me.... wt to do...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on September 27, 2009, 11:30:08 AM
That sometimes happens, is your shoutbox/chat working at all?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jmil on September 27, 2009, 11:42:01 AM
See my post above that - I get the internal server error when I try to select "Install MOD" it loads in package manager properly but I cant install the mod. Site is gone!

I have to do a Back Up to recover.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on September 27, 2009, 11:58:41 AM
Hmmm, strage I had a similar problem when I was using another host (fatcow).

It would not install any mod at all and go to a 500 error, they said nothing, the way I solved it was, Demand Refund, switch host.

Dunno, I your problem is due to the host, but you should check more things before blaming them.

Which files are you restoring from backup when fixing the caused issue?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 27, 2009, 12:24:06 PM
Still no one figured out how to clear chat log to stop it from creating a huge database?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 27, 2009, 12:25:24 PM
Quote from: TheListener on September 26, 2009, 07:37:54 PM

So your members can enter an empty chat without viewing the previous chat the following edit can be made.

Chat >  lib > config.php

Find

// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;


Change true to false.
Quote from: mcgovery on September 27, 2009, 12:24:06 PM
Still no one figured out how to clear chat log to stop it from creating a huge database?

Already done
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 27, 2009, 01:02:29 PM
But the tings is though say I'm in a conversation with someone and I logout and then login with a different forum user account I can still see the conversation?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 27, 2009, 01:13:23 PM
Does anyone know how I would go about adding a background image for the main chat window instead of a basic colour?

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rgecy on September 27, 2009, 02:25:18 PM
OK, maybe this has been asked already, but is there a way to have the chat room open up in the same window with my themes header and menu buttons at the top? 

Thanks,

Robert

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on September 27, 2009, 02:42:31 PM
Hi,

Does anyone know how to make the year, month and day selects in the logs page to show default values? I want the selects to show the values of the current day.

Any ideias?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrfroasty on September 27, 2009, 04:12:23 PM
I have installed this module, but I am facing this problem as reported in this thread http://www.simplemachines.org/community/index.php?topic=334147.msg2272475#msg2272475 (http://www.simplemachines.org/community/index.php?topic=334147.msg2272475#msg2272475)

My users can access the chat only administrators are allowed to access it.

Hopefully, this might be noobish questions as I am a noob on SMF ... :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on September 27, 2009, 04:46:52 PM
@ mrfroasty

Hey there!

I can help you with your problem! :)

Got the the "Admin" panel > Members>Permissions
Find the usergroup that you want to allow access and click "Modify"

Look down the list for the "Access to chat" field. ******Make sure it is checked****** otherwise members will have no access.

Let me know if you succeed :).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrfroasty on September 27, 2009, 05:04:01 PM
Thanks that did the trick.... :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 27, 2009, 05:05:04 PM
Quote from: mcgovery on September 27, 2009, 01:02:29 PM
But the tings is though say I'm in a conversation with someone and I logout and then login with a different forum user account I can still see the conversation?

Clear your cache.  Try today, it should work.

Quote from: mcgovery on September 27, 2009, 01:13:23 PM
Does anyone know how I would go about adding a background image for the main chat window instead of a basic colour?

It would be best to create your own style sheet.
The easiest way is to copy one(found in your chat folder, then in the css folder), rename it to whatever you like, and then edit it.
Go to your config.php(located within  chat>>lib, and add the name of your new style sheet here
// Available styles:
$config['styleAvailable'] = 'goes here';


I set mine as default, which is found directly under the above code.
// Default style:
$config['styleDefault'] = 'goes here';


For your background image(s), it would be best to put it in the img folder within your chat folder.
Im still working on this one...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg148.imageshack.us%2Fimg148%2F6112%2Finsidechat.png&hash=991765dd1403b375cfa26960e18a9f3d99acfd73)

Modify #content  in the stylesheet to add the background.
eg.
#content {
background-image:url(../img/whatever.png);
color:#FFF;
}


The same applies for your login page
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg44.imageshack.us%2Fimg44%2F6927%2Foutsideqr.png&hash=9021faec8741b89593f14883b7dad2f3260abf3f)

Just edit #loginContent in your stylesheet for the background.

Quote from: rgecy on September 27, 2009, 02:25:18 PM
OK, maybe this has been asked already, but is there a way to have the chat room open up in the same window with my themes header and menu buttons at the top?

That may be a few files to edit there mate.
Play with your loggedIn.html and add or call for your nav menu.
Or you might be able to create your own page and insert your modified code into your smf folder.

Quote from: rpacheco on September 27, 2009, 02:42:31 PM
Hi,

Does anyone know how to make the year, month and day selects in the logs page to show default values? I want the selects to show the values of the current day.

As I understand it, it shows the time etc the server is configured to.
Alter that to call for your smf default settings(if they are different).


Quote from: mrfroasty on September 27, 2009, 04:12:23 PM
My users can access the chat only administrators are allowed to access it.

What youre aking is completely different to what is said in that thread.
Im assuming a typo, and you mean your members Cant access the chat.
Go and set the membergroup permissions for them in your admin panel.


   
The following error or errors occurred while posting this message:
Warning - while you were typing a new reply has been posted. You may wish to review your post.

Good man mcgovery :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hmalik007 on September 27, 2009, 07:56:49 PM
I've installed ajax chat on my smf forum and it worked fine for few days but now it is not showing any messages nor any user in chat box and shoutbox too. I'm using smf 2.0 RC1.2. looking for ur help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jmil on September 27, 2009, 07:58:06 PM
Quote from: johncccccc on September 27, 2009, 11:58:41 AM
Hmmm, strage I had a similar problem when I was using another host (fatcow).

It would not install any mod at all and go to a 500 error, they said nothing, the way I solved it was, Demand Refund, switch host.

Dunno, I your problem is due to the host, but you should check more things before blaming them.

Which files are you restoring from backup when fixing the caused issue?

Just the files - I do not have to do do the tables. Might be right that the Host is doing - Maybe a Manual install??

Only Problem with manual is there is no UNINSTALL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on September 28, 2009, 02:32:24 PM
Quote from: Sabre™ on September 27, 2009, 05:05:04 PM
Quote from: rpacheco on September 27, 2009, 02:42:31 PM
Hi,

Does anyone know how to make the year, month and day selects in the logs page to show default values? I want the selects to show the values of the current day.

As I understand it, it shows the time etc the server is configured to.
Alter that to call for your smf default settings(if they are different).

Sabre,

In my case, it doesn't show anything. The year, month and day are shown empty, like this: "---".
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AlkaSeltxer on September 28, 2009, 03:19:40 PM
Quote from: AlkaSeltxer on September 26, 2009, 10:58:05 AM
Quote from: TheListener on September 25, 2009, 01:26:32 PM
Quote from: AlkaSeltxer on September 25, 2009, 10:30:01 AM
Well, I'm having some problems here. It appears to be fully working, however when you try to type something in both the chat and shoutbox, your message does not show for you or anyone else. I'm not getting any errors in the chat or in SMF. Also hitting logout in the chat does nothing. No one shows in the user list either.

SMF 1.1.10
TP 0.9.8
Custom Theme, but properly modded according to the Phraser.

Are there any errors in your error log at all?

can we see a link to your forum please and is chat available for guests?

No, not one error, not even in my cpanel error logs for the site server. I did notice the little light looking thing flashes from green to orange every second. It's not open but I can set you up a temp account to check it out. www.apsocal.com (http://www.apsocal.com)

Still need some help with my problem, anyone...

By the way, I just checked mysql and the messages are showing in the database... Thought I mention it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 28, 2009, 09:31:46 PM
This would be great with auto prune after a certain amount of days.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 29, 2009, 03:59:03 AM
Quote from: rpacheco on September 28, 2009, 02:32:24 PM
Sabre,
In my case, it doesn't show anything. The year, month and day are shown empty, like this: "---".

Have you tried reinstalling the mod?
For some, not all of the files are added.
Just a suggestion.

Quote from: AlkaSeltxer on September 28, 2009, 03:19:40 PM
Still need some help with my problem, anyone...

By the way, I just checked mysql and the messages are showing in the database... Thought I mention it.

Have you altered any files?
If you have done this in  Chat >  lib > config.php
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = false;


set it back to true and see what happens ;)

Quote from: DaBrute on September 28, 2009, 09:31:46 PM
This would be great with auto prune after a certain amount of days.

Do you mean the log?
If so, look for this in your config.php located at  chat>>lib
// Max time difference in days for old messages before they are purged from the database:
$config['logsPurgeTimeDiff'] = 365;


and change the amount of days
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 29, 2009, 05:27:34 AM
THANKS!!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hmalik007 on September 29, 2009, 09:03:31 AM
Quote from: hmalik007 on September 27, 2009, 07:56:49 PM
I've installed ajax chat on my smf forum and it worked fine for few days but now it is not showing any messages nor any user in chat box and shoutbox too. I'm using smf 2.0 RC1.2. looking for ur help

I'm asking this question second time and still got no help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AlkaSeltxer on September 29, 2009, 09:06:31 AM
Quote from: Sabre™ on September 29, 2009, 03:59:03 AM
Quote from: AlkaSeltxer on September 28, 2009, 03:19:40 PM
Still need some help with my problem, anyone...

By the way, I just checked mysql and the messages are showing in the database... Thought I mention it.

Have you altered any files?
If you have done this in  Chat >  lib > config.php
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = false;


set it back to true and see what happens ;)

I have not altered any chat files, that was already set true. I will try reinstalling the mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on September 29, 2009, 09:59:17 AM
Quote from: hmalik007 on September 29, 2009, 09:03:31 AM

I'm asking this question second time and still got no help.


Not using large letters tends to help; it looks like you're shouting. Please also note we are volunteers here, and it would appear that the original author of this mod no longer supports it themselves.

So, what theme are you using? And did you configure it to enable non admin users to access the shoutbox? (As documented on the mod page)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 29, 2009, 01:49:05 PM
Fatal error: Call to undefined function: chatonlineusers() in /home/sites/parascifi.info/public_html/Themes/StarWars_CloneWars/index.template.php on line 285

Am getting this error.

All I wanna do is uninstall the mod due to a few problems.

Attachment supplied.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 29, 2009, 02:16:50 PM
It is calling for something which is not there.
Have you already uninstalled the whole mod?
The chat folder etc etc  Made sure all were removed from your modified source files?
If not, then uninstall all of it.
If so, PM me mate.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 29, 2009, 02:22:52 PM
After i edited this section and changed the days to 3 instead of 365, the shout box doesn't not show anything.
// Defines if old messages are purged from the database:
$config['logsPurgeLogs'] = false;
// Max time difference in days for old messages before they are purged from the database:
$config['logsPurgeTimeDiff'] = 365;  <------------changed that to 3


(14:25:39) ChatBot: Error: Connection status: 0
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 29, 2009, 02:56:51 PM
Refresh you server cache, delete cookies etc..
See if that helps.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on September 29, 2009, 03:13:18 PM
Quote from: Sabre™ on September 29, 2009, 03:59:03 AM
Quote from: rpacheco on September 28, 2009, 02:32:24 PM
Sabre,
In my case, it doesn't show anything. The year, month and day are shown empty, like this: "---".

Have you tried reinstalling the mod?
For some, not all of the files are added.
Just a suggestion.


Sabre,

Thank you, I'll try that.

Another little issue: my users can access the chat, but don't seem to have access to the logs section. I've searched the Permissions section in the admin area, but I couldn't find a permission to the Logs section.

How can I grant access to this?

Thank you in advance for any help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on September 29, 2009, 03:38:28 PM
Quote from: rpacheco on September 29, 2009, 03:13:18 PM

Another little issue: my users can access the chat, but don't seem to have access to the logs section. I've searched the Permissions section in the admin area, but I couldn't find a permission to the Logs section.

How can I grant access to this?

Thank you in advance for any help.

Ooopppssss,

Looks like I should searched a little more before asking. For granting access to the Logs, just changed the line below in config.php:

$config['logsUserAccess'] = True;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: leowife on September 29, 2009, 03:47:00 PM
For some reason, the only members who can see the chatroom are the Admin's.  I've looked everywhere I can think of to check permissions and can't see anything that would prevent Registered Members from having access. 

If anyone can offer suggestions, I would be most appreciative!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 29, 2009, 03:48:51 PM
Quote from: rpacheco on September 29, 2009, 03:38:28 PM
Ooopppssss,

Looks like I should searched a little more before asking....

lol
As you can see, that file gives you options to a few of the mods features.
Good job with finding it for yourself mate :)
A+
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 29, 2009, 03:52:43 PM
Quote from: leowife on September 29, 2009, 03:47:00 PM
If anyone can offer suggestions, I would be most appreciative!!

So in your permissions section in your admin panel, you have already set the membergroups permission?
Scrolled down and ticked the box which approves :  Access to chat
It should be grouped like this in your permissions section

Access to chat     
Moderate chat    
View shoutBox    
Can shout    
Moderate shoutBox
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 29, 2009, 04:27:11 PM
Sabre

I am still getting the same error.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 29, 2009, 04:33:12 PM
Well, I'll need the info I asked for buddy.
I cant do anything if you dont provide it for me :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 29, 2009, 05:42:46 PM
anybody?>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 29, 2009, 05:43:44 PM
Quote from: Sabre™ on September 29, 2009, 02:56:51 PM
Refresh you server cache, delete cookies etc..
See if that helps.

Also could you attach that template so I could look at it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 29, 2009, 05:57:44 PM
Quote from: Sabre™ on September 29, 2009, 05:43:44 PM
Quote from: Sabre™ on September 29, 2009, 02:56:51 PM
Refresh you server cache, delete cookies etc..
See if that helps.

Also could you attach that template so I could look at it?
the template?  where would I do that at? I'm new to this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on September 29, 2009, 07:25:05 PM
Quote from: DaBrute on September 29, 2009, 05:57:44 PM
Quote from: Sabre™ on September 29, 2009, 05:43:44 PM
Quote from: Sabre™ on September 29, 2009, 02:56:51 PM
Refresh you server cache, delete cookies etc..
See if that helps.


Also could you attach that template so I could look at it?
the template?  where would I do that at? I'm new to this.
attach the templates to the post, index.template.php and other files
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 29, 2009, 07:33:22 PM
Quote from: johncccccc on September 29, 2009, 07:25:05 PM
Quote from: DaBrute on September 29, 2009, 05:57:44 PM
Quote from: Sabre™ on September 29, 2009, 05:43:44 PM
Quote from: Sabre™ on September 29, 2009, 02:56:51 PM
Refresh you server cache, delete cookies etc..
See if that helps.

attach the templates to the post, index.template.php and other files
Also could you attach that template so I could look at it?
the template?  where would I do that at? I'm new to this.
thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 29, 2009, 07:34:29 PM
that file is to big to post here.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 29, 2009, 07:37:27 PM
attach the file as an attachment.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 29, 2009, 08:15:34 PM
this is it right?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 29, 2009, 08:23:58 PM
Well done bud.

Ya did it.

Once you know how to do attachments things start to get easy ( supposedly).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on September 29, 2009, 08:42:59 PM
Quote from: TheListener on September 29, 2009, 08:23:58 PM
Well done bud.

Ya did it.

Once you know how to do attachments things start to get easy ( supposedly).

yep, everybody can fix things for you then haha lol..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 29, 2009, 08:56:08 PM
Yep, good job :)
Unfortunately it is the wrong file lol
I need the file in which you altered, which would be the config.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 29, 2009, 08:59:36 PM
here you go
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 29, 2009, 09:20:43 PM
Your file looks ok, and it is working flawlessly on my test site.
Until I personally experience this issue, I cannot offer a solution.
But that edit seems to work fine for me.
Have you made any other edit to any other template regarding this mod?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 29, 2009, 09:29:12 PM
Quote from: Sabre™ on September 29, 2009, 09:20:43 PM
Your file looks ok, and it is working flawlessly on my test site.
Until I personally experience this issue, I cannot offer a solution.
But that edit seems to work fine for me.
Have you made any other edit to any other template regarding this mod?
That was it unless its another mod i have installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 29, 2009, 09:33:11 PM
Ah ok.
It could be a server thing, as the more frequent it needs to search for something, the more load it puts on it.
So making the setting lower, would cause it to search that section more often.
But mate, as stated in a round about way, I have no idea why that edit would cause your shouts/chats to disappear.
Somebody with more knowledge may pop in and enlighten us all :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 29, 2009, 09:35:38 PM
Quote from: Sabre™ on September 29, 2009, 09:33:11 PM
Ah ok.
It could be a server thing, as the more frequent it needs to search for something, the more load it puts on it.
So making the setting lower, would cause it to search that section more often.
But mate, as stated in a round about way, I have no idea why that edit would cause your shouts/chats to disappear.
Somebody with more knowledge may pop in and enlighten us all :)
THIS SUCKS
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on September 29, 2009, 09:49:59 PM
You could try contacting the Member that supplied this mod, to see if they have a solution.
Or you could always do as others are doing, and try to learn about the code.
Most of us have only just installed this mod, so are still finding our way around it.
We can only offer what we know, and often even use our own time to investigate a problem for others.
Nobody is obligated to assist anybody, we do so because(as we say in my neck of the woods), Thats How We Roll.
If you manage to write up a piece of code that will do as you've requested, I'm sure most here would appreciate your hard work if you choose to offer it.

In the meantime, good luck :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 29, 2009, 09:53:42 PM
Quote from: Sabre™ on September 29, 2009, 09:49:59 PM
You could try contacting the Member that supplied this mod, to see if they have a solution.
Or you could always do as others are doing, and try to learn about the code.
Most of us have only just installed this mod, so are still finding our way around it.
We can only offer what we know, and often even use our own time to investigate a problem for others.
Nobody is obligated to assist anybody, we do so because(as we say in my neck of the woods), Thats How We Roll.
If you manage to write up a piece of code that will do as you've requested, I'm sure most here would appreciate your hard work if you choose to offer it.

In the meantime, good luck :)
thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on September 30, 2009, 08:09:45 AM
I can not find it  ( HOW TO INCREASE THE REFRESH RATE) I know I have seen it before in here some where. Can you guys help me out with that.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eclipse16V on September 30, 2009, 10:06:29 AM
Hi,
nice Mod and it run.
But I become this Error in the ACP

QuoteGast
Undefiniert
http://www.xyz.de/index.php?topic=6208.5;wap2
8: Undefined index: chat
Datei: /xyz/xyz/Sources/Subs.php
Zeile: 4042

Here the line
Quote4041:    $num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
==>4042:    $chatButton = $txt['chat'];
4043:    $chatButton .= ($num > 0) ?  ('('.$num.')') : '';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on September 30, 2009, 10:09:12 AM
That means you're running a language other than English and/or a custom theme and $txt['chat'] wasn't added to your language file properly as a result.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on September 30, 2009, 12:54:27 PM
Hi All,

I'm having the following problem: my users are logged in the forum, but when thay enter the chat, they are redirected to the login page. If they simply reload the login page, the chat appears correctly.

In some cases, users are logged in the chat, but when they enter the logs section, they are also redirected to the login page. Again, if they simply reload the login page, the chat appears correctly.

I suspect that this would have something to do with cookies or sessions.

Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on September 30, 2009, 12:58:21 PM
Quote from: rpacheco on September 30, 2009, 12:54:27 PM
I suspect that this would have something to do with cookies or sessions.

Any ideas?

That seems like the most likely reason, tell them to refresh before clicking chat, if the issue continues then it might not be that
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pspmichael on September 30, 2009, 01:19:51 PM
I tried to install this app but when I do it hangs.  I have all the latest updates installed, level 1.1.10 and everything was installed with the defaults.  When I click on Apply Mod, the screen appears to refresh and it comes right back to Apply Mod.  Any ideas why it won't install?

Am I able to run this and the "SMF AChat Mod" at the same time? 

Can I run Ajax Chat Integration twice, so I have a chat room for those over 18 and a chat room for those under 18?

Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 30, 2009, 01:22:28 PM
You will only be able to use one chat mod.

Regarding the age use there is a way of making a seperate room just for the over 18s.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on September 30, 2009, 05:25:29 PM
OK NOW... anybody have any idea why  the chat is not working?  I posted the error i got.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on September 30, 2009, 06:45:33 PM
Quote from: johncccccc on September 30, 2009, 12:58:21 PM
Quote from: rpacheco on September 30, 2009, 12:54:27 PM
I suspect that this would have something to do with cookies or sessions.

Any ideas?

That seems like the most likely reason, tell them to refresh before clicking chat, if the issue continues then it might not be that

John,

Instead asking the users to refresh, is there a way to do this in the code?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on September 30, 2009, 10:45:50 PM
Quote from: rpacheco on September 30, 2009, 06:45:33 PM
John,

Instead asking the users to refresh, is there a way to do this in the code?

I meant to say that as a test, that would determine if it was a timeout problem or not.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on October 01, 2009, 01:32:42 AM
Quote from: johncccccc on September 30, 2009, 10:45:50 PM

I meant to say that as a test, that would determine if it was a timeout problem or not.

John,

I've done some testing, and I'm pretty sure that this is the problem.

Any idea for solving it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jmil on October 01, 2009, 09:30:09 AM
This is a Bump - Hoping for assistance!

QuoteSMF 1.1.9
Chat version 3.2.1
Theme Custom

Installed the Chat using the Package Manager - Only error I get is the following"

Execute Modification     ./Themes/default/index.template.php     Test failed

No Problem - I know I have the Parse that File after applying the mod but every time I try to apply the mod I lose my site to a:

500 Internal error. L

uckily I have both SQL and File backups and it restores fine - I just dont get why I can not apply the mod??

Any assistance?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 01, 2009, 09:44:25 AM
That is a server issue.
Contact your host and get them to check their logs to sort it out.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: I national on October 01, 2009, 10:51:42 AM
I keep getting a

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



When going to the url where the shoutbox is at. What's going on >_>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 01, 2009, 02:35:49 PM

Apply Filter: Only show the errors with the same message
2: unlink(/public_html/chat/index.php) [<a href='function.unlink'>function.unlink</a>]: Permission denied
Apply Filter: Only show the errors from this file
File:/public_html/Sources/Subs-Package.php
Line: 1488
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: acebace on October 01, 2009, 03:04:11 PM
i uploaded the files in my forum root directory and when i open the forumdirectory/chat like it sais in the readme it gives me this

Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM `b22_4046318_CommunityBox`.smf_ajaxchat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE) ORDER BY userName; Error-Report: Table 'b22_4046318_CommunityBox.smf_ajaxchat_online' doesn't exist Error-Code: 1146 

what should i do?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 01, 2009, 04:41:59 PM
Just uploading the files isn't enough. You also have to create the databases; there should be an install script there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DaBrute on October 01, 2009, 04:47:42 PM
Can someone help me with my problem?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kat-2 on October 01, 2009, 10:21:57 PM
I have the chat installed perfectly on one forum....but on another, when I go to install I get a lot of failed tests in themes, except for Default Core.

QuoteClassic YaBB SE Theme 
   Execute Modification ./Themes/classic/BoardIndex.template.php Test failed  
  1. Add Before ./Themes/classic/BoardIndex.template.php Test failed

   Execute Modification ./Themes/classic/index.template.php Test failed  
  1. Replace ./Themes/classic/index.template.php Test successful
  2. Add Before ./Themes/classic/index.template.php Test failed

   Babylon Theme 
   Execute Modification ./Themes/babylon/BoardIndex.template.php Test failed
  1. Add Before ./Themes/babylon/BoardIndex.template.php Test failed  

   Execute Modification ./Themes/babylon/index.template.php Test failed  
  1. Replace ./Themes/babylon/index.template.php Test successful
  2. Add Before ./Themes/babylon/index.template.php Test failed  

   Prof 
   Execute Modification ./Themes/Prof/BoardIndex.template.php Test successful
  1. Add Before ./Themes/Prof/BoardIndex.template.php Test successful

   Execute Modification ./Themes/Prof/index.template.php Test failed
  1. Replace ./Themes/Prof/index.template.php Test successful
  2. Add Before ./Themes/Prof/index.template.php Test failed  

   GreyNight 
   Execute Modification ./Themes/GreyNight20/index.template.php Test failed  
  1. Replace ./Themes/GreyNight20/index.template.php Test successful
  2. Add Before ./Themes/GreyNight20/index.template.php Test failed  

So I haven't installed it. Can anyone tell me what I will need to do to fix things after I install?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 02, 2009, 12:07:45 AM
well, you just need to make the manual edits on those files. on the failed files you will see the icon like this (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.requestiso.com%2FThemes%2Fdefault%2Fimages%2Fadmin%2Fpackage_ops.gif&hash=42ed330b5bba713e07d118c11db54e943b6f1fa9)
Click that icon to see instructions on where to make the edits

If you will be only using one theme, you will not need to make all of those edits, just the one on the theme your using
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kat-2 on October 02, 2009, 12:20:47 AM
Quote from: johncccccc on October 02, 2009, 12:07:45 AM
well, you just need to make the manual edits on those files. on the failed files you will see the icon like this (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.requestiso.com%2FThemes%2Fdefault%2Fimages%2Fadmin%2Fpackage_ops.gif&hash=42ed330b5bba713e07d118c11db54e943b6f1fa9)
Click that icon to see instructions on where to make the edits

If you will be only using one theme, you will not need to make all of those edits, just the one on the theme your using


Well, I went on and installed. And it installed, but gave a 500 error on all themes...including Default Core, which all tests passed on. So, obviously I have more problems than I originally thought.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kat-2 on October 02, 2009, 12:30:27 AM
Quote from: johncccccc on October 02, 2009, 12:07:45 AM
well, you just need to make the manual edits on those files. on the failed files you will see the icon like this (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.requestiso.com%2FThemes%2Fdefault%2Fimages%2Fadmin%2Fpackage_ops.gif&hash=42ed330b5bba713e07d118c11db54e943b6f1fa9)
Click that icon to see instructions on where to make the edits

If you will be only using one theme, you will not need to make all of those edits, just the one on the theme your using


What the heck is this ''request iso.com''??????

Some sort of virus or what? I tried to go there..and when I got there it started opening one after another of IE pages...and the more I tried to stop it..the more it opened. When it got to 16 pages I manually shut my computer down. >:( >:(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 02, 2009, 12:34:32 AM
sorry the image came out really long for some reason ???

500 error, I had that error before when installing various mods, you may want to contact your host, especially if its what i suspect it may be, I had to change host, but we have not got enough information to determine whats causing the problem
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kat-2 on October 02, 2009, 12:42:17 AM
Quote from: johncccccc on October 02, 2009, 12:34:32 AM
sorry the image came out really long for some reason ???

500 error, I had that error before when installing various mods, you may want to contact your host, especially if its what i suspect it may be, I had to change host, but we have not got enough information to determine whats causing the problem


:( I am more concerned at the moment about what happened when I went to ''get more at requestiso.com''


As for the chat vs my host...well..I have 2 other forums on my site, and both have the chat..no problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: leowife on October 02, 2009, 01:18:41 AM
Quote from: Sabre™ on September 29, 2009, 03:52:43 PM
Quote from: leowife on September 29, 2009, 03:47:00 PM
If anyone can offer suggestions, I would be most appreciative!!

So in your permissions section in your admin panel, you have already set the membergroups permission?
Scrolled down and ticked the box which approves :  Access to chat
It should be grouped like this in your permissions section

Access to chat     
Moderate chat    
View shoutBox    
Can shout    
Moderate shoutBox

I don't have any of the above in my permissions section.  That's what I was expecting to see....something, anything, with regard to "chat" or "shout box"  There's nothing there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 02, 2009, 04:55:53 AM
Even the selection boxes for them?
If atleast they are there, then it is merely a language file issue, in which you may need to add the language strings to the language you use, or a utf8 language.
So it would be added to  Modifications.{your language}.php  and/or  Modifications.{your language}-utf8.php found in your default themes Languages folder

If this isn't the case, then check to see if this was added to your  ManagePermissions.php  located in your Sources folder. This is for smf 1.1.10
'chat' => array(
'chat_access' => false,
'chat_mod' => false,
'shout_view' => false,
'shout_access' => false,
'shout_mod' => false,
)


or for smf2

'chat_access' => array(false, 'general', 'view_basic_info'),
'chat_mod' => array(false, 'general', 'view_basic_info'),
'shout_view' => array(false, 'general', 'view_basic_info'),
'shout_access' => array(false, 'general', 'view_basic_info'),
'shout_mod' => array(false, 'general', 'view_basic_info'),
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 02, 2009, 05:05:27 AM
Quote from: Kat-2 on October 02, 2009, 12:42:17 AM
:( I am more concerned at the moment about what happened when I went to ''get more at requestiso.com''

Update your AV definitions, then run a scan through your system.
It may have been a little script for annoyance rather than harm.

If it ever happens again, rather than hard booting your system, open your Task Manager and end the browser session.
The "No script" addon for FF may come in handy if you choose to use it after reading about it.
Whatever makes you feel more comfortable :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on October 02, 2009, 06:30:17 AM
Thats just another illegal website where people can download illegally obtained computer games and programms etc. Kind of ironic that he comes on here asking for help.....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 02, 2009, 09:19:09 AM
just out of curisoty , how did you end up going to requestiso, nobody said to go there, and I happen to know there is no harmful things on the site at all not even any annoyance script.

all that haappened is the hotlink protection, I was just hot-linking an image of something from the site and the link came up, sorry about that.

@mcgovery, go back to school and learn to read, then you will know who was helping and who was offering help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 02, 2009, 09:21:14 AM
The hotlink protection says "get more at RequestISO.com" for which they assumed you meant they had to visit to get advice.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 02, 2009, 11:43:52 AM
Quote from: Arantor on October 02, 2009, 09:21:14 AM
The hotlink protection says "get more at RequestISO.com" for which they assumed you meant they had to visit to get advice.

Yea, that was my mistake, I mentioned that, I was just trying to link the icon, since I don't see any image for the package manager edit icons anywhere else, i used my own, I had only set up the hotlink protection the other day, I mean,
" on the failed files you will see the icon like this " you would think someone would notice that was a mistake not just go on about it like I'm trying to spam the board.

Anyway, I added the simplemachines.org to the OK to hotlink list now, that should not be happening anymore.

Also continuing this whole debate is juat as bad as spamming,

lets get back on topic.
--------------------------------------------------

Kat-2, whats the progress?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on October 02, 2009, 01:20:57 PM
There is a bug in this mod. I carefully installed it exactly as said. I get the following error.

QuoteUnable to load the 'shout_above' template.

It shows the header of the forum, but nothing else, locks it up. I searched for shout_above in all the scripts and there isn't one. How do I fix this? I am on version 1.1.9 using the classic theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hmalik007 on October 02, 2009, 04:07:03 PM
Quote from: Arantor on September 29, 2009, 09:59:17 AM

Not using large letters tends to help; it looks like you're shouting. Please also note we are volunteers here, and it would appear that the original author of this mod no longer supports it themselves.

So, what theme are you using? And did you configure it to enable non admin users to access the shoutbox? (As documented on the mod page)

I'm using brown theme & yes definitely I've configured Permissions for chat and shout box access for other users.
Some days ago it was working fine and since then I didn't install any other mode but eventually it stop working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 02, 2009, 04:09:13 PM
post a link to your forum so we can see whats going on 1st hand
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on October 02, 2009, 07:10:40 PM
Quote from: johncccccc on October 02, 2009, 04:09:13 PM
post a link to your forum so we can see whats going on 1st hand

Are you asking me? If so
www.detectorsparadise.com

However I had to put back Load.php and BoardIndex.php to get the forum to work again, if I put those back up, it'll shut down the forum with that error.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 4b11l on October 03, 2009, 01:40:26 AM
Is anyone having problems modifying the files? i.e. the channels, etc..?

I can not ftp the edited file back into the directories on the server. I can ftp other files fine, no problems, but for some reason it's not possible to do any for the chat/lib directory? I'm using english.

I am also having the same problem below as the user. The file looks like it calls for the button in the shout.english file? I have the file and it looks correct. Anyone else have any insight on this?

Quote
Quote from: Eclipse16V on September 30, 2009, 10:06:29 AM
Hi,
nice Mod and it run.
But I become this Error in the ACP

QuoteGast
Undefiniert
http://www.xyz.de/index.php?topic=6208.5;wap2
8: Undefined index: chat
Datei: /xyz/xyz/Sources/Subs.php
Zeile: 4042

Here the line
Quote4041:    $num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
==>4042:    $chatButton = $txt['chat'];
4043:    $chatButton .= ($num > 0) ?  ('('.$num.')') : '';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on October 03, 2009, 02:42:12 PM
I would love to get this working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eclipse16V on October 04, 2009, 04:35:38 PM
Quote from: 4b11l on October 03, 2009, 01:40:26 AM
Is anyone having problems modifying the files? i.e. the channels, etc..?

I can not ftp the edited file back into the directories on the server. I can ftp other files fine, no problems, but for some reason it's not possible to do any for the chat/lib directory? I'm using english.

I am also having the same problem below as the user. The file looks like it calls for the button in the shout.english file? I have the file and it looks correct. Anyone else have any insight on this?

Quote
Quote from: Eclipse16V on September 30, 2009, 10:06:29 AM
Hi,
nice Mod and it run.
But I become this Error in the ACP

QuoteGast
Undefiniert
http://www.xyz.de/index.php?topic=6208.5;wap2
8: Undefined index: chat
Datei: /xyz/xyz/Sources/Subs.php
Zeile: 4042

Here the line
Quote4041:    $num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
==>4042:    $chatButton = $txt['chat'];
4043:    $chatButton .= ($num > 0) ?  ('('.$num.')') : '';

Put this in your index.english.php, index.xxx.php, ...
$txt['chat'] = 'Chat';

Than I become no errors.
Thank Arantor
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PopsicleStickChick on October 04, 2009, 05:17:25 PM
Any way to get the shoutbox to honor the word censor options?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 04, 2009, 05:37:31 PM
Quote from: PopsicleStickChick on October 04, 2009, 05:17:25 PM
Any way to get the shoutbox to honor the word censor options?

Nope, its not part of smf, its an external program just intergrated
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 04, 2009, 05:41:31 PM
There may be a way of using the profanity filter for the shoutbox as the chat room.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 04, 2009, 05:52:35 PM
Quote from: TheListener on October 04, 2009, 05:41:31 PM
There may be a way of using the profanity filter for the shoutbox as the chat room.

I have never really gone in to the Ajax settings and edits, but in theory, there should be a way of coding a content filter, you would have to contact the creators at their site
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 04, 2009, 05:53:12 PM
Without looking at the code, I wouldn't know where it would have to go but assuming it uses SSI.php to receive shouts, a pass through on censorText shouldn't be a huge deal to add - I think.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 04, 2009, 06:02:28 PM
chat/js/custom.js
To Filter words, add this to the bottom of your custom.js template
ajaxChat.replaceCustomText = function(text) {
    text=text.replace(/poo/gi, 'smelly');
    text=text.replace(/azz/gi, 'butterflies');
    text=text.replace(/penis/gi, 'Nose');
    text=text.replace(/boobs/gi, 'water mellons');
    return text;
}


You can see where and how to add them in the above code
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 04, 2009, 06:04:06 PM
Sounds good, but doesn't let you inherit the master censor list from SMF itself each time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 04, 2009, 06:05:39 PM
Doesn;t have too.

Has to be added manually.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 04, 2009, 06:14:02 PM
Quote from: Arantor on October 04, 2009, 06:04:06 PM
Sounds good, but doesn't let you inherit the master censor list from SMF itself each time.

There's surely a way to do it, but I'll leave that up to you or another to implement lol
I dont even use this mod, I just offer what I know, and have actually moved on from tinkering with it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 04, 2009, 06:15:48 PM
I don't use this mod either, I just comment as I have something relevant.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 04, 2009, 06:20:00 PM
Quote from: Arantor on October 04, 2009, 06:04:06 PM
Sounds good, but doesn't let you inherit the master censor list from SMF itself each time.

But if someone coded it to, that would be a big step into complete integration lol..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 04, 2009, 06:21:48 PM
All that can happen here is that either the author adds it themselves, OR there are notes in the thread. No-one other than the author (and that includes Customizer team) can modify the mod itself.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 04, 2009, 06:23:56 PM
All a user has to do is add the profanity filter as Sabre said and swap chat files for shout.

As for the mod author doing anything, if you read through the topic the only times he adds anything is when there are some updates made.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 04, 2009, 06:25:02 PM
Yea, but for now, we can use the JavaScript edits, we'll have to add all censored words and replacements again, but oh well, better than nothing

@Arantor, just noticed you changed from support to customizer lol..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 04, 2009, 06:27:17 PM
Sure it's better than nothing and does the job perfectly well. But it's duplicated effort.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 04, 2009, 06:31:53 PM
Quote from: TheListener on October 04, 2009, 06:23:56 PM
....swap chat files for shout.

You don't need to do that buddy, they call for the same files ;)

EDIT:
when both chat and shout are integrated I mean
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 4b11l on October 04, 2009, 07:26:51 PM
Quote from: Eclipse16V on October 04, 2009, 04:35:38 PM

Put this in your index.english.php, index.xxx.php, ...
$txt['chat'] = 'Chat';

Than I become no errors.
Thank Arantor

Thanks for the response. That explained it clearer.

Additionally, can anyone provide any insight or solution to my other problem? Not being able to edit the channels/files at all?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 04, 2009, 07:32:42 PM

Edit/Remove the channels that are currently boards.

Open.....yourforum/chat/lib/config.php

Find

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;


And replace with the code below and just change the numbers to the number of the boards for the boards you want to have as channels

EXAMPLE: If "General Discussion" was board #1 and you had another board "SMF Talk" was board #2 then your code would look like this. This would make it so ONLY General Discussion and SMF Talk would appear in the channel list.



// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(1,2);


To have ONLY the Public Room avaliable in the Channel List, change the array to 0


// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(0);
[/code][/code]

You can also change the name of the Public Channel to something like "YourForums Lounge"

Find and change Public to whatever you like


// Default channelName used together with the defaultChannelID if no channel with this ID exists:
$config['defaultChannelName'] = 'Public';


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 4b11l on October 04, 2009, 09:29:08 PM
Quote from: TheListener on October 04, 2009, 07:32:42 PM

Edit/Remove the channels that are currently boards.

Open.....yourforum/chat/lib/config.php

Find

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;


And replace with the code below and just change the numbers to the number of the boards for the boards you want to have as channels

EXAMPLE: If "General Discussion" was board #1 and you had another board "SMF Talk" was board #2 then your code would look like this. This would make it so ONLY General Discussion and SMF Talk would appear in the channel list.



// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(1,2);


To have ONLY the Public Room avaliable in the Channel List, change the array to 0


// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(0);
[/code][/code]

You can also change the name of the Public Channel to something like "YourForums Lounge"

Find and change Public to whatever you like


// Default channelName used together with the defaultChannelID if no channel with this ID exists:
$config['defaultChannelName'] = 'Public';




Thanks, but I was able to configure the channels. I have asked this same question in the past about the channels. My question was

QuoteI can not ftp the edited file back into the directories on the server. I can ftp other files fine, no problems, but for some reason it's not possible to do any for the chat/lib directory? I'm using english.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Harreh on October 05, 2009, 11:04:35 AM
I'm new to this and I'm trying to learn how to work it but I keep getting an error when trying to install.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi288.photobucket.com%2Falbums%2Fll190%2FHazz995%2Fss.png&hash=c35adc76337ffe620da879e465e507a29d977bd0)
7.     Execute Modification     ./Themes/default/index.template.php     Test failed

Any idea to how I get it to work? Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 05, 2009, 12:18:22 PM
download the index.template file from themes/default and manually make the edits for that files, the instructions can be found at the mod site where you downloaded the mod, parce it for your version
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Harreh on October 05, 2009, 12:36:08 PM
Quote from: johncccccc on October 05, 2009, 12:18:22 PM
download the index.template file from themes/default and manually make the edits for that files, the instructions can be found at the mod site where you downloaded the mod, parce it for your version
I have done that but the chat link on the bar just disappears then even in the shoutbox (or using direct link to where the chatbox was) when i type something in it fails to show up.

I installed the package despite the warning onto the forum then I edited the index.template file, I tried editing the file first but I then couldn't install the package as i got an error when trying to load the forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: magnitude2007 on October 06, 2009, 03:18:08 AM
after installing pretty url this shoutbox stopped working ... it cant send any messeges into shoutbox....if i untick the option of boards in pretty url settings......shoutbox works flawless ...

pls suggest me how both can work simultaneously.....


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on October 06, 2009, 03:05:06 PM
Hi all,

Is there a way to disable the Chat Bot? I manage to remove the messages from the chat list, but they continue to appear in the logs section.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on October 06, 2009, 03:23:10 PM
Another one:

Is there possible to grant only read access to a permission group? I need some of them to read and write, and other only to read.

Thanks for any help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 03:47:16 PM
yes you can choose in the permission settings "view shoutbox/chat" "use shoutbox/chat"

Disable chatbot:
I dont know that much about the software, sorry.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rpacheco on October 06, 2009, 05:10:08 PM
Quote from: johncccccc on October 06, 2009, 03:47:16 PM
yes you can choose in the permission settings "view shoutbox/chat" "use shoutbox/chat"

Disable chatbot:
I dont know that much about the software, sorry.

john,

I can't find those permissions. I can see only "access to chat" and "moderate chat".

BTW, I was able to disable completely the chat bot, through some code editing in the AjaxChat.php file. I'll post here later.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kat-2 on October 06, 2009, 05:37:47 PM
Quote from: johncccccc on October 02, 2009, 11:43:52 AM
Quote from: Arantor on October 02, 2009, 09:21:14 AM
The hotlink protection says "get more at RequestISO.com" for which they assumed you meant they had to visit to get advice.

Yea, that was my mistake, I mentioned that, I was just trying to link the icon, since I don't see any image for the package manager edit icons anywhere else, i used my own, I had only set up the hotlink protection the other day, I mean,
" on the failed files you will see the icon like this " you would think someone would notice that was a mistake not just go on about it like I'm trying to spam the board.

Anyway, I added the simplemachines.org to the OK to hotlink list now, that should not be happening anymore.

Also continuing this whole debate is juat as bad as spamming,

lets get back on topic.
--------------------------------------------------

Kat-2, whats the progress?

:-[ :-[ :-[

Sorry I am so long in replying.

Honestly, I gave up on it. Weird how it is perfectly fine on one forum (which is much bigger), then have these problems on the other forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 05:44:41 PM
use chat is there, access to chat means they can see it but not use it I believe

@kat-2, well, if it becomes a problem, were still here to help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on October 06, 2009, 06:33:47 PM
Why am I getting this still after doing this below.

If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing

chat/js/chat.js
Find
Code: [Select]
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);Replace with
Code: [Select]
if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}               
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 06, 2009, 06:38:13 PM
Have you refreshed the page?

Emptied the file cache?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on October 06, 2009, 11:25:44 PM
Quote from: TheListener on October 06, 2009, 06:38:13 PM
Have you refreshed the page?

Emptied the file cache?


yes

Also why do have to sometimes refresh the page to see what members have typed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 06, 2009, 11:49:02 PM
thats because the threshold of online time expired and you timed out.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: magnitude2007 on October 07, 2009, 07:47:38 AM
Quote from: magnitude2007 on October 06, 2009, 03:18:08 AM
after installing pretty url this shoutbox stopped working ... it cant send any messeges into shoutbox....if i untick the option of boards in pretty url settings......shoutbox works flawless ...

pls suggest me how both can work simultaneously.....

i m still waiting for any reply
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 07, 2009, 08:59:51 AM
you would be better off posting in the pretty urls support thread for that as that's obviously the mod causing the problem, from what Ive seen, this is a common issue.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: magnitude2007 on October 08, 2009, 03:09:49 AM
Quote from: johncccccc on October 07, 2009, 08:59:51 AM
you would be better off posting in the pretty urls support thread for that as that's obviously the mod causing the problem, from what Ive seen, this is a common issue.

This is wat i got from pretty urk support thread
Posted by: Dannii
QuoteFix it so that it doesn't use relative URLs. If that's too technical, ask the mod author to do so.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danpotter on October 08, 2009, 12:06:54 PM
Nice Mod thnx ...can u all pls tell me how to check history chat??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 08, 2009, 12:39:15 PM
dang there is a link to do that its somewhere in this thread, but it does have that feature and it works well
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 08, 2009, 12:40:02 PM
You can use the search function at the top of this page purely to search this topic, by the way.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 08, 2009, 01:09:21 PM
Quote from: Arantor on October 08, 2009, 12:40:02 PM
You can use the search function at the top of this page purely to search this topic, by the way.

x2

Either way, it's something like this h**p:// yoursite.com/chat/?view=logs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bound2bmine on October 08, 2009, 05:39:12 PM
Quote from: johncccccc on October 06, 2009, 11:49:02 PM
thats because the threshold of online time expired and you timed out.
Where can I find the section to fix that. Since I use as only a shoutbox can I make it so it never expires?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 08, 2009, 08:13:58 PM
well there is not really a fix for expiring/timeouts, but you could install an auto refresh mod, but that would increase server load and may get you kicked from your server
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: karencho on October 09, 2009, 04:10:48 AM
hello, i just modifacate my smf (1.1.10) with AjaxChat Integration but there is no chat on georgian language and in admin panel there is no chat configuration at all why? thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: karencho on October 09, 2009, 05:41:12 AM
no one can help me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 09, 2009, 06:56:08 AM
Please note that you don't generally get replies even in the main support forums within an hour - we are all volunteers here, and as such we can't always get to questions that quickly.

I don't believe the mod was written with Georgian support, which is why it doesn't appear properly.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: More-to-life on October 09, 2009, 01:34:06 PM
Hi Guys

Sorry if this has been asked before but I've search the forum & found nothing
My members are complaining about seeing other members old messages when they log into chat
Is there an option to remove all messages when the last person leaves chat?

Thanks in advance

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 09, 2009, 01:37:11 PM
So your members can enter an empty chat without viewing the previous chat the following edit can be made.

Chat >  lib > config.php

Find

// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;


Change true to false.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: More-to-life on October 09, 2009, 01:52:25 PM
Quote from: TheListener on October 09, 2009, 01:37:11 PM
So your members can enter an empty chat without viewing the previous chat the following edit can be made.

Chat >  lib > config.php

Find

// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;


Change true to false.

Thanks you guys are quick off the mark fair play  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: karencho on October 09, 2009, 02:13:38 PM
yes i have no problem with that and i have modeficed on russion smf but again nothing,than i did on english smf and when i did it in admin panel was nothing about the chat, but there was chat in member bar, but i want chat like on screenshot!! thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 09, 2009, 04:18:10 PM
lol I think I'd need a super zoom feature with a magical sharpness function to properly view that image! lol
Your issue, as I understand it, may be that your forum language is utf8 or another language.
If so and instead of always editing your utf8 for missing strings, install [THIS] (http://custom.simplemachines.org/mods/index.php?mod=615) mod, so it will never happen for another mod again. The description of the mod will explain what it does. It is more a temporary fix.
If this is not the problem, then try reinstalling this mod again with a fresh copy.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on October 09, 2009, 06:39:22 PM
Quote from: bound2bmine on October 08, 2009, 05:39:12 PM
Quote from: johncccccc on October 06, 2009, 11:49:02 PM
thats because the threshold of online time expired and you timed out.
Where can I find the section to fix that. Since I use as only a shoutbox can I make it so it never expires?

This possible to a certain extent.
You can change the timeout options quite simply.

>Chat>lib>config.php

Find:

Quote$config['inactiveTimeout'] = 2;

// Interval in minutes to check for inactive users:

$config['inactiveCheckInterval'] = 2;

And change it to whatever you wish ;).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on October 09, 2009, 06:41:05 PM
Quote from: TheListener on October 09, 2009, 01:37:11 PM
So your members can enter an empty chat without viewing the previous chat the following edit can be made.

Chat >  lib > config.php

Find

// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;


Change true to false.

This doesn't seem to make any difference on my chat software.
Does anyone know of a way to make this work as changing to "false" makes no difference to it on mine.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 09, 2009, 06:43:04 PM
Can you attach the file please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on October 09, 2009, 06:45:30 PM
Here you go bud and thanks in advanve
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 09, 2009, 06:47:29 PM
Clear cache, cookies
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on October 09, 2009, 06:51:52 PM
Quote from: Sabre™ on October 09, 2009, 06:47:29 PM
Clear cache, cookies

Tried that bro but no luck.

The way I am testing this is firstly by logging in and then logging out.
Waiting a minute or two and then logging in again.

When logging in for the second time I notice the Bot message is still there saying "mcovery logged out of chat"

Now surely I shouldn't be able t osee that still after re logging in?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 09, 2009, 06:55:58 PM
I can't see anything wrong there.

Have you tried emptying the file cache?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kyrna on October 09, 2009, 06:57:20 PM
I tried to search for this error message but the search function didn't like the format of the message so I apologize as I'm sure that somewhere in 207 pages, this has come up before.

Everything appears to be working well (in the Default theme, anyway) but after enabling the ShoutBox, I'm getting this error message in both chat and the ShoutBox:
ChatBot: Error: Connection status: 0

The posts are going through just fine but the error message is something I'd like to fix. Does anyone have any idea what causes this particular error message?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 09, 2009, 06:58:25 PM
There is a fix although the error message is harmless.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on October 09, 2009, 06:59:29 PM
Did you get my config.php ok bro?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 09, 2009, 07:01:29 PM
If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing

chat/js/chat.js
Find


this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);


Replace with

if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 09, 2009, 07:03:02 PM
Quote from: mcgovery on October 09, 2009, 06:59:29 PM
Did you get my config.php ok bro?

Already replied  :D

Can I see a link to your forum please bud.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mcgovery on October 09, 2009, 07:05:01 PM
sure.
www.ewcsquad.com/forums
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kyrna on October 09, 2009, 07:05:26 PM
Quote from: TheListener on October 09, 2009, 06:58:25 PM
There is a fix although the error message is harmless.
Thanks, I'll give that a shot.

By the way, you are fast on the reply!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 09, 2009, 07:06:34 PM
I keep the necessary info ready via my test forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: karencho on October 10, 2009, 03:49:51 AM
hello,so can anybody help me? thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 10, 2009, 08:57:27 AM
Well, you need to pay more attention, you question has already been answered.

Instructions on how to disable that message are in previous post
http://www.simplemachines.org/community/index.php?topic=257973.msg2300881#msg2300881
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on October 10, 2009, 11:06:45 AM
I am still using version 3.0 since I cant update all of my themes at this time.
The problem that I have is that all of a sudden my shoutbox is not scrolling the shouts. The shoutbox just expands and expands. Any ideas why this is happening. My forum has been up a while ( a year maybe) and this just started happening in the last few days.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 10, 2009, 11:08:30 AM
Well in the last few days were there any changes made to anything
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 10, 2009, 11:34:43 AM
hi there,

is there is any way to automatically logged into the  chat room, when your logged on the forum?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on October 10, 2009, 11:39:49 AM
Quote from: johncccccc on October 10, 2009, 11:08:30 AM
Well in the last few days were there any changes made to anything

No changes at all. That's whats so baffling.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 10, 2009, 11:41:35 AM
@flanx
It should be like that anyway, it is with my install - that could be because I use the shoutbox though

@ primetime

Have you tried:
Clearing you cache
Running maintenance
Reinstalling the mod
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 10, 2009, 11:44:51 AM
Quote from: johncccccc on October 10, 2009, 11:41:35 AM
@flanx
It should be like that anyway, it is with my install - that could be because I use the shoutbox though


too bad.. i think its redundant... im thinking about facebook style chatroom..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 10, 2009, 11:49:14 AM
You can modify the chat to look different, pretty simple, see mine:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi33.tinypic.com%2Fsn0yeh.png&hash=c89c4f59c2795beb4a8be90e8c1c97549f8e4b22)
Smileys and Font color are expanded by clicking the button

That was done changing some simple CSS code, using the java script and some of the PHP code you can make this look however you want really, its just about having the time to change and test it out
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 10, 2009, 11:52:45 AM
Quote from: johncccccc on October 10, 2009, 11:49:14 AM
You can modify the chat to look different, pretty simple, see mine:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi33.tinypic.com%2Fsn0yeh.png&hash=c89c4f59c2795beb4a8be90e8c1c97549f8e4b22)
Smileys and Font color are expanded by clicking the button

That was done changing some simple CSS code, using the java script and some of the PHP code you can make this look however you want really, its just about having the time to change and test it out


nice .. i will try that one
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 10, 2009, 11:54:56 AM
To use the expanded smiley and font color containers and add the better more animated smileys there are some complete instructions on how to do it,, must be about 50 pages up now, maybe more.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 10, 2009, 12:05:17 PM
i have some problems...

ChatBot: Error: Connection status: 0

whats wrong with my chatroom?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 10, 2009, 12:10:08 PM
thats a common issue, it happens at times, but causes no harm, there are instructions on how to disable that message on the page 207 of this thread I believe
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 10, 2009, 12:13:35 PM
Quote from: johncccccc on October 10, 2009, 12:10:08 PM
thats a common issue, it happens at times, but causes no harm, there are instructions on how to disable that message on the page 207 of this thread I believe

oh great.. tnx mate...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kyrna on October 10, 2009, 12:40:21 PM
Quote from: johncccccc on October 10, 2009, 11:41:35 AM
@flanx
It should be like that anyway, it is with my install - that could be because I use the shoutbox though
It isn't with mine. I'm using 1.1.10. Perhaps it auto-logs people in using a different version?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 10, 2009, 12:50:56 PM
Possibly, also could be that you have timed out and thus not been logged in
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kyrna on October 10, 2009, 12:55:42 PM
Quote from: johncccccc on October 10, 2009, 12:50:56 PM
Possibly, also could be that you have timed out and thus not been logged in
Not likely. I'm actually glad that it doesn't auto-log me in but if it's something that will happen when I upgrade some day, I'll need to figure out a way to avoid it happening. That is a worry for another day, though. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: karencho on October 10, 2009, 02:54:20 PM
Quote from: Sabre™ on October 09, 2009, 04:18:10 PM
lol I think I'd need a super zoom feature with a magical sharpness function to properly view that image! lol
Your issue, as I understand it, may be that your forum language is utf8 or another language.
If so and instead of always editing your utf8 for missing strings, install [THIS] (http://custom.simplemachines.org/mods/index.php?mod=615) mod, so it will never happen for another mod again. The description of the mod will explain what it does. It is more a temporary fix.
If this is not the problem, then try reinstalling this mod again with a fresh copy.
thank you very mutch ,it worked
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: karencho on October 10, 2009, 03:40:43 PM
Hi there again,can anybody tell me where is language file,i just want to translate it thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 10, 2009, 03:44:56 PM
The language files live in your Themes/yourtheme/languages/ folder. Normally just Modifications.english.php needs to be translated to Modifications.yourlanguage.php.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: karencho on October 10, 2009, 04:23:58 PM
for exsample i ve translate it on georgian... so it will bi modification.georgian.php and thats all? or there is somthing else to do? thx
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 10, 2009, 04:25:49 PM
My mistake, this mod does its own thing.

As per http://custom.simplemachines.org/mods/index.php?action=parse;mod=1319;attach=112578;smf_version=2.0_RC1.2 it modifies Help.english.php - the changes it makes needs to be translated and added to Help.georgian.php. Shout.english.php also needs to be translated to Shout.georgian.php.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: karencho on October 10, 2009, 04:28:06 PM
where i can find that files? thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 10, 2009, 04:35:43 PM
Themes/default/languages/ should contain them.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: karencho on October 10, 2009, 04:55:55 PM
but there is allredy a  Help.georgian.php i have translate this file : Shout.english.php now  what i do? i have saved it in UTF-8 coding....  and can i delete this text : AJAX Chat © blueimp.net Integrated with SMF ???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 10, 2009, 05:02:37 PM
Yes, there will be a Help.georgian.php. You have to add new entries to it, those as given in Help.english.php for the page I mentioned above.

You need to translate Shout.english.php's contents into Georgian and save it as Shout.georgian.php.

As for copyright, you are not allowed to remove the copyright message.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: karencho on October 10, 2009, 05:09:19 PM
and can i just hide it? because it is not buetifull , but where i can fin that? : Shout.english.php's content  ? is it here? : smf2\shoutBox\lib\lang\en.php ? thx
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 10, 2009, 05:29:32 PM
Shout.english.php's content is in smf2/Themes/default/languages/Shout.english.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 10, 2009, 10:54:35 PM
the message won't appear in the chat room or cant even submit...

below is the actual screen shot:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg101.imageshack.us%2Fimg101%2F82%2Fchati.jpg&hash=0ca78d45049fe70e63f0ac7086ba9571342ef8d3)


Quote from: Kyrna on October 10, 2009, 12:40:21 PM
It isn't with mine. I'm using 1.1.10. Perhaps it auto-logs people in using a different version?

good for you.. :)

im using 1.1.10
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 10, 2009, 10:57:59 PM
Flanx are you need of some assistance?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 10, 2009, 11:09:56 PM
Quote from: TheListener on October 10, 2009, 10:57:59 PM
Flanx are you need of some assistance?

Hi TheListener..

Yes..  the only problem is i cant submit any message in the chat room.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 10, 2009, 11:11:07 PM
Looking at your screen shot, i see some of the smileys are not loaded, are you sure this installed correctly?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 10, 2009, 11:12:07 PM
are the folder permissions set to 755?

Were there any errors on install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 11, 2009, 12:38:49 AM
Quote from: TheListener on October 10, 2009, 11:12:07 PM
are the folder permissions set to 755?

Were there any errors on install?

the chat folder?

Quote from: johncccccc on October 10, 2009, 11:11:07 PM
Looking at your screen shot, i see some of the smileys are not loaded, are you sure this installed correctly?

yes.. it has no errors when i stall it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 11, 2009, 12:40:14 AM
the chat and shout folder
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 11, 2009, 02:04:36 AM
Quote from: TheListener on October 11, 2009, 12:40:14 AM
the chat and shout folder

ok i will set it to 755.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: magnitude2007 on October 11, 2009, 10:56:48 AM
is there anyway to set the font face and font colour permanently with drop down menu while shouting.?  :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 11, 2009, 11:58:37 AM
When in chat on the bottom right corner you should see a spanner and hammer symbol.

What you need to do is tick the box which says persist font or similar.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 11, 2009, 12:09:24 PM
Hi TheListerner..

I set the folder to 755, the problem still the same. The message wont appear on the chat room.

http://www.mahayag.net/forums/chat/index.php

Login: test / test
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 11, 2009, 12:11:52 PM
try  emptying the file cache
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on October 11, 2009, 03:08:30 PM
Quote from: johncccccc on October 10, 2009, 11:41:35 AM
@flanx
It should be like that anyway, it is with my install - that could be because I use the shoutbox though

@ primetime

Have you tried:
Clearing you cache
Running maintenance
Reinstalling the mod

I have cleared the cache and ran maintenance. No  luck . I cant re-install the MOD since I have theme that I am notsure what was done to it to make the chat work in the first place.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 11, 2009, 03:21:00 PM
Hmmm
Its quiet possible that it was not installed correctly, especially if you don't know how it got there lol

You may want to check all the files to make sure all the edits were made and that the permissions are set to 755 on all the files included in the mod
if you do all the above and nothing comes of it, then..
You will have to remove the mod manually then delete the files from the server, also delete the mod from the server, re download from mod site, then reinstall, making sure to include your theme and add any manual edits.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: magnitude2007 on October 11, 2009, 03:24:28 PM
Quote from: TheListener on October 11, 2009, 11:58:37 AM
When in chat on the bottom right corner you should see a spanner and hammer symbol.

What you need to do is tick the box which says persist font or similar.

i found it...thanks yaa mate.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 11, 2009, 08:30:57 PM
I have the same issue with nothing being able to post in the chatbox...also no users show as they are in the room

All folders are set to 755 and Ive had no errors in installation (Ive deleted and re installed twice)

Other ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 11, 2009, 08:35:13 PM
Have you checked the membergroup permissions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 11, 2009, 08:37:47 PM
No I completely forgot about that lol Ill try that now  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 11, 2009, 08:42:48 PM
Well everyone has permission.....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 11, 2009, 08:51:06 PM
Quote from: karencho on October 10, 2009, 05:09:19 PM
and can i just hide it? because it is not buetifull , but where i can fin that? : Shout.english.php's content  ? is it here? : smf2\shoutBox\lib\lang\en.php ? thx

You can not remove the copyright of ANY mod without their consent.
You maybe able to change the text colour, add a footer image behind it, or whatever, so long as it is always there.
It is a sign of "respect" for their hard work, and for them offering it to you for Free!
You could ask the original creator of this Ajax Chat, but if you remove it without authorisation, you are breaching a legal contract, and they will fly in the special forces to kidnap you, and sell you to the gypsies who will use you for their donkeys pleasure. lol
If you worked hard on making something, then let others use it only if they display your name, would you like someone to say "Thanks man, I'm gonna use your mod, but I'm taking off your name because I dont like it".
Do you think thats cool?
I've already found others that have done this, and therefore have personally stopped giving them support of any fashion.
Respect goes both ways, and I appreciate anything that these authors give us for Free!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 11, 2009, 08:55:41 PM
Quote from: Blah blah on October 11, 2009, 08:30:57 PM
I have the same issue with nothing being able to post in the chatbox...also no users show as they are in the room

All folders are set to 755 and Ive had no errors in installation (Ive deleted and re installed twice)

Other ideas?

Any other ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 11, 2009, 09:28:32 PM
Quote from: Sabre™ on October 11, 2009, 08:51:06 PM
Quote from: karencho on October 10, 2009, 05:09:19 PM
and can i just hide it? because it is not buetifull , but where i can fin that? : Shout.english.php's content  ? is it here? : smf2\shoutBox\lib\lang\en.php ? thx

You can not remove the copyright of ANY mod without their consent.
You maybe able to change the text colour, add a footer image behind it, or whatever, so long as it is always there.
It is a sign of "respect" for their hard work, and for them offering it to you for Free!
You could ask the original creator of this Ajax Chat, but if you remove it without authorisation, you are breaching a legal contract, and they will fly in the special forces to kidnap you, and sell you to the gypsies who will use you for their donkeys pleasure. lol
If you worked hard on making something, then let others use it only if they display your name, would you like someone to say "Thanks man, I'm gonna use your mod, but I'm taking off your name because I dont like it".
Do you think thats cool?
I've already found others that have done this, and therefore have personally stopped giving them support of any fashion.
Respect goes both ways, and I appreciate anything that these authors give us for Free!

Damn Straight!!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 11, 2009, 10:09:42 PM
Quote from: Blah blah on October 11, 2009, 08:55:41 PM
Quote from: Blah blah on October 11, 2009, 08:30:57 PM
I have the same issue with nothing being able to post in the chatbox...also no users show as they are in the room

All folders are set to 755 and Ive had no errors in installation (Ive deleted and re installed twice)

Other ideas?

I really need help with this guys...tonight...I need to get my forum back up

Any other ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 11, 2009, 10:56:09 PM
Quote from: TheListener on October 11, 2009, 12:11:52 PM
try  emptying the file cache

there is no caching in my server.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 11, 2009, 10:58:45 PM
@ blah blah
Since no one has offered a solution, an issue like this usually involves needing a link to your site, a temporary admin account, and further details discussed privately.
These are a good read also
Quote from: Use_what_is_provided
How do I ask support questions the smart way? (http://docs.simplemachines.org/index.php?topic=494.0)

Quote from: It_doesnt_take_long
How can I get my problems solved faster? (http://docs.simplemachines.org/index.php?topic=493)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 12, 2009, 01:00:50 AM
I fixed it  :D thx for the help though
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 12, 2009, 01:39:04 AM
Cool!
What did you do to fix it?  So others that experience the problem can sort it out also.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JonnyFB421 on October 12, 2009, 02:48:15 AM
You can't happen to move the shoutbox to the bottom of the page can you? 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 12, 2009, 11:43:37 AM
yes you can if you like ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on October 12, 2009, 11:59:29 AM
Quote from: JohnCcCcCc on October 11, 2009, 03:21:00 PM
Hmmm
Its quiet possible that it was not installed correctly, especially if you don't know how it got there lol

You may want to check all the files to make sure all the edits were made and that the permissions are set to 755 on all the files included in the mod
if you do all the above and nothing comes of it, then..
You will have to remove the mod manually then delete the files from the server, also delete the mod from the server, re download from mod site, then reinstall, making sure to include your theme and add any manual edits.

I know how it got there! It was worked perfectly for the last year or so. I am just not familiar of what edits one of the admins did when he installed it. The theme I am using required some edits to have it perform correctly. The chat works fine. It is the shoutbox that I am having issues with.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 12, 2009, 12:02:15 PM
hmm, can you send a link to your forum and a temp regular member account :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 12, 2009, 12:40:25 PM
Ok I got your temp password, I have figured out your problem, send me your style.css file from your theme Directory :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 12, 2009, 12:45:12 PM
Quote from: Sabre™ on October 12, 2009, 01:39:04 AM
Cool!
What did you do to fix it?  So others that experience the problem can sort it out also.

Well when I installed it showed no errors, but when I went through the parse to see if all the codes where added two were missing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on October 12, 2009, 12:45:47 PM
Quote from: JohnCcCcCc on October 12, 2009, 12:40:25 PM
Ok I got your temp password, I have figured out your problem, send me your style.css file from your theme Directory :)

PM sent with css code. Thank in advance :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 12, 2009, 12:47:36 PM
Quote from: primetime on October 12, 2009, 12:45:47 PM
Quote from: JohnCcCcCc on October 12, 2009, 12:40:25 PM
Ok I got your temp password, I have figured out your problem, send me your style.css file from your theme Directory :)

PM sent with css code. Thank in advance :D
Just attach style.css here ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 12, 2009, 12:50:58 PM
Quote from: Blah blah on October 12, 2009, 12:45:12 PM
Quote from: Sabre™ on October 12, 2009, 01:39:04 AM
Cool!
What did you do to fix it?  So others that experience the problem can sort it out also.

Can you say which ones were missing
Well when I installed it showed no errors, but when I went through the parse to see if all the codes where added two were missing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on October 12, 2009, 12:52:46 PM
all set.
Will be running an errand for  a bit.. back in 30 minutes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 12, 2009, 12:57:58 PM
I have made one change, but the code that was thought missing is already there.

If this edit does not work, it may be because you attached style.css from another theme.
Please ensure you attach the style.css from the theme your currently using.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on October 12, 2009, 01:15:27 PM
Quote from: JohnCcCcCc on October 12, 2009, 12:57:58 PM
I have made one change, but the code that was thought missing is already there.

If this edit does not work, it may be because you attached style.css from another theme.
Please ensure you attach the style.css from the theme your currently using.

No luck. The correct style is attached to the theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 12, 2009, 01:41:12 PM
According to webdev the change has not been made, or at least its not showing, but when I add it if instantly fixes the problem,

What Directory are you getting the style.css from.

its best if you upload all the style.css files from all you themes, or manually edit them in the theme options.
Admin/current theme/edit templates/style.css edit it and add the missing line
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on October 12, 2009, 04:08:10 PM
works great!!
Thnks million!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 12, 2009, 04:48:23 PM
Your welcome, Glad you finally got it solved! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on October 12, 2009, 09:03:43 PM
I need to know how to grant the access to the kick/ban function to a global moderator of my forum. It says mods have access to the comman but for some reason he dioesnt and hes a global moderator on my forum
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 12, 2009, 09:07:09 PM
Have you checked the permissions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on October 13, 2009, 01:00:47 AM
got previous thing worked out. But i need to know how to get the word "Chat" to appear in the links near the top left. All i have are the numbers in parenthesis for howmany people are in chat but no actual link/word chat. I can click that number in parenthesis to get to the chat room but would like the word "chat" to be there
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 13, 2009, 01:29:45 AM
Install [THIS] (http://custom.simplemachines.org/mods/index.php?mod=615) mod and see if it helps.
It is probably just a language file(utf8 or another language) thing, the above mod will help to cease that happening visually.
If not, you will need to check if the language strings were added to the template(s).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on October 13, 2009, 01:42:07 AM
Thanks so much, that worked like a charm! Now i just need to get this awards mod to work and im all set :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 13, 2009, 01:49:04 AM
Good stuff, good luck :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on October 13, 2009, 01:55:55 AM
HEH, that mod allowed me to see what i was missing on the other mod so i can now figure it out too. :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 13, 2009, 02:03:03 AM
lol Yeah, it's pretty cool, and something I believe should be a default feature, as it assists Everybody, not just the few.
When you get into the nitty gritty of it, you may want to install its  brother mod (http://custom.simplemachines.org/mods/index.php?mod=1071).
It will help if you allow other languages, and will show you what is missing in language templates other than the default.
Have fun :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 13, 2009, 01:59:03 PM
Hey Everyone!

Sorry for the absence and thank you to everyone who has helped support this. I had a pretty big project going on that consumed most of my free time. Things have slowed down a little so I should be able to get back here and give a hand.

Also, I just revamped the FAQ's Page (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) to make it a little easier to read.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 13, 2009, 04:23:12 PM
That FAQ looks pretty good mate.
Welcome back :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 13, 2009, 04:57:09 PM
Quote from: Sabre™ on October 13, 2009, 04:23:12 PM
That FAQ looks pretty good mate.
Welcome back :)

Thanks, and thank you very much for all your help on this Mod!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 13, 2009, 05:02:11 PM
Sure is good to have ya back bud.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 13, 2009, 06:11:43 PM
Quote from: TheListener on October 13, 2009, 05:02:11 PM
Sure is good to have ya back bud.

Good to be back, looks like you've been very busy. Thanks for all your help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 06:14:10 PM
Quote from: mrtrc266 on October 13, 2009, 06:11:43 PM
Quote from: TheListener on October 13, 2009, 05:02:11 PM
Sure is good to have ya back bud.

Good to be back, looks like you've been very busy. Thanks for all your help!

Welcome back, were all happy to help, you have helped us, so right back at ya! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 13, 2009, 06:19:47 PM
Quote from: ♪ JohnCcCcCc ♫ on October 13, 2009, 06:14:10 PM
Quote from: mrtrc266 on October 13, 2009, 06:11:43 PM
Quote from: TheListener on October 13, 2009, 05:02:11 PM
Sure is good to have ya back bud.

Good to be back, looks like you've been very busy. Thanks for all your help!

Welcome back, were all happy to help, you have helped us, so right back at ya! :)

Thanks JohnCcCcCc, you guys did great, it's much appreciated. You are all Masters of the AJAX Chat Mod now  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 07:53:06 PM
Hi everyone!
Thanks for this fantastic mod.
I have a problem...when I try write in the shoutbox, I click on "shout/submit", but nothing is shown in chat...
I tried modifying /chat/js/chat.js  about Error Status:0, but my problem still(I have never shown this error, but I would want try...)

Thanks you very much!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 07:54:31 PM
Was your install completely successful?

Which version of SMF are you using?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 07:58:57 PM
I'm using SMF 1.1.10, the installation finished successfully, but when I was editing index.template.php in my template, I had to jump one step of the "parse" because I can't find that line in my file:



// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}


Replace With:

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
if (!empty($modSettings['enableChatBelowPM'])){
$count = count(chatOnlineUsers());
if ($count == 0 )
echo '<br />' . $txt['chat_no_user'];
elseif ($count == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' . $count . $txt['chat_users']. '<br />';
}
echo ' </span>';
}


But I tried with Core template too and nothing to do...(I tried with Firefox and IE)



Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 13, 2009, 08:10:59 PM
That code is to display how many people are in the chat room.
If you are using a custom theme that does not display something like:
You have 59 messages, 0 are new
Show unread posts since last visit.
Show new replies to your posts.
at the top, then the code isn't really needed as it will show the exact same thing in the boardindex.template under "Users Online" if I recall correct

Otherwise, look for ['total_time_logged_in'] in your index.template.php, as it may be structured different to what the installer is looking for.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 08:26:38 PM
Hola, Wanted
tienes 96 mensajes, 0 son nuevos.
Mostrar mensajes no leídos desde la última visita.
Mostrar nuevas respuestas a tus mensajes.


QuoteOtherwise, look for ['total_time_logged_in'] in your index.template.php, as it may be structured different to what the installer is looking for.

I have already check this, but i can't find anything like "['total_time_logged_in']" in my index.template.php

I'm using Deja Vu Theme, for smf 1.1.10 versions...

I think that the problem is other...but I don't know what
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 13, 2009, 08:42:49 PM
Try adding it under the string which holds $txt['show_unread_replies']
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 08:49:58 PM
Ok, but the chat doesn't work with Core Theme...
That is because I think that isn't theme problem...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 08:54:27 PM
I tried this edit, but nothing change...

HA! I have seen this error right now: Error: Estado de la conexion: 0  -> Error: Status conexion...

In spanish language :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 13, 2009, 09:05:44 PM
Read this thread, maybe only the last 5 pages, that error is explained many times over.
You should always make sure a modification works on the default theme first, before adding it to your custom theme.

For you primary issue, you either need to attach your index.template.php for somebody to look at, or try and figure it out for yourself.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 09:16:38 PM
Hi,thanks.

I've read a lot of messages in this thread, and I tried editing chat.js about Error: Status conection, but my issue still...

I can't post messages in shoutbox, I click on "shout" button, but nothing happen...

My index.template.php :

<?php
// Version: 1.1.10; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1.10';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;

}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="foro, foros, hardware," />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));
</script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>'
;
echo 
'

<!-- nCode Image Resizer -->
<script type="text/javascript" src="'
$settings['default_theme_url'], '/ncode_imageresizer.js"></script>
<style type="text/css">
<!--
table.ncode_imageresizer_warning, table.ncode_imageresizer_warning td
{
background-color: #fefee1; /* the bgcolor behind the text and image */
}
table.ncode_imageresizer_warning {
color: #000000; /* the font color */
border: 1px solid #CCCDCD; /* the border around the whole thing */
cursor: pointer;
}
table.ncode_imageresizer_warning td {
font-size: 10px;
vertical-align: middle;
text-decoration: none;
}

table.ncode_imageresizer_warning td.td1 {
padding: 5px;
}
-->
</style>'
;

// What is the mode?
if (isset($modSettings['ncode_imageresizer_mode']))
{
if ($modSettings['ncode_imageresizer_mode'] == 1)
$mode 'enlarge';
elseif ($modSettings['ncode_imageresizer_mode'] == 2)
$mode 'samewindow';
elseif ($modSettings['ncode_imageresizer_mode'] == 3)
$mode 'newwindow';
else
$mode 'none';
}
else
$mode 'none';

echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
NcodeImageResizer.BBURL = "'
$settings['images_url'], '";
NcodeImageResizer.MODE = "'
$mode'";
NcodeImageResizer.MAXWIDTH = "'
, empty($modSettings['ncode_imageresizer_max_width']) ? : (int) $modSettings['ncode_imageresizer_max_width'], '";
NcodeImageResizer.MAXHEIGHT = "'
, empty($modSettings['ncode_imageresizer_max_height']) ? : (int) $modSettings['ncode_imageresizer_max_height'], '";
vbphrase = new Array();
vbphrase[\'ncode_imageresizer_warning_small\'] = \''
$txt['ncode_imageresizer_warning_small'], '\';
vbphrase[\'ncode_imageresizer_warning_filesize\'] = \''
$txt['ncode_imageresizer_warning_filesize'], '\';
vbphrase[\'ncode_imageresizer_warning_no_filesize\'] = \''
$txt['ncode_imageresizer_warning_no_filesize'], '\';
vbphrase[\'ncode_imageresizer_warning_fullsize\'] = \''
$txt['ncode_imageresizer_warning_fullsize'], '\';
// ]]></script>
</head>

 <body>
  <div class="wrap">
 <div id="header">
  <div id="head-l">
  <div id="head-r">
  <div id="userarea" class="clearfix">'
;
if (!empty($context['user']['avatar']))
 echo '<div id="smf-avatar" class="clearfix">'.$context['user']['avatar']['image'].'</div>';

if ($context['user']['is_logged']){
echo '<b>'$txt['hello_member'], ' '$context['user']['name'], '</b><br />';

// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo $txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'] , '.<br />';
echo '<a href="'$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br /><a href="'$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';}

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged']){

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<b>'$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo ''$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

echo '
  <br />'
;}

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
'
$txt['welcome_guest'], ' '$txt['welcome_guest_activate'], '<br />'$context['current_time'],'<br />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>';
}

echo '
</div>'
;
  echo '
  <div id="searcharea">'
;
  echo '
  <form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
  <input class="inputbox" type="text" name="search" value="'
$txt[182], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\''$txt[182], '...\';" />';

  // Search within current topic?
if (!empty($context['current_topic']))
echo '<input type="hidden" name="topic" value="'$context['current_topic'], '" />';
  
  // If we're on a certain board, limit it to this board ;).
  elseif (!empty($context['current_board']))
 echo '<input type="hidden" name="brd['$context['current_board'], ']" value="'$context['current_board'], '" />';
echo '
 </form>'
;
echo '
</div>'
;
  
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news'])){
echo '<div id="news">
  <br /><b>'
$txt['102'], '</b> '$context['random_news_line'], '</div>';}
  echo 
'
<a href="'
.$scripturl.'" title=""><span id="logo"> </span></a>';
echo '
  </div>  
 </div>
</div>
<div id="tbar-l">
<div id="tbar-r">
<div id="toolbar">
 '
,template_menu(),'
</div>
 </div>
  </div>
<div id="bodyarea-l">
<div id="bodyarea-r">
<!--<center><a href="http://www.tiendacyberaulas.com/" target="_blank"><img src="http://www.tiendacyberaulas.com/imagen/borr(1).jpg" width="99.75%"></center>-->
<div id="bodyarea">'
;
  theme_linktree2();
}

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

  echo '
</div>
</div>
 </div>'
;


// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footer">
<div id="foot-l">
<div id="foot-r">
<div id="footerarea" class="smalltext">
 <div class="center">'
theme_copyright(), '
</div>
 <div class="center"><b>Deja Vu</b> por: <a href="http://www.jpr62.com/theme/" target="_blank">Crip</a> & <a href="#">Inn0v@chip</a> © 2009/10
</div>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<br /><span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.

if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])

{

// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";

}

}'
;

elseif ($context['browser']['is_firefox'])

echo '

window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '

var window_oldOnload = window.onload;
window.onload = smf_codeFix;
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = codeFix.length - 1; i > 0; i--)
{

if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))

codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}
if (window_oldOnload)

{

window_oldOnload();

window_oldOnload = null;

}

}'
;

echo '
// ]]></script>'
;
}
echo '

</div>
 </div>
</div>
  </div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>';
  echo 
'
  </div>
</body></html>'
;

}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree2()
{
global $context$settings$options;

echo '<div id="linktree">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '">' $tree['name'] . '</a>' $tree['name'];

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;&raquo;&nbsp;';
}

echo '
</div>'
;
}

function 
theme_linktree()
{
return;
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt$modSettings;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '<div id="menu"><ul>';

// Show the [home] button.
echo '<li><a' $current_action=='home' ' class="current"' '' ' href="'$scripturl'">' $txt[103] , '</a></li>';

    
// Show the [WEB] button.
echo '<li><a href="http://www.******.com">Web</a></li>';

// Show the [juegos] button.
echo '<li><a' $current_action=='arcade' ' class="current"' '' ' href="'$scripturl'?action=arcade">' $txt[183] , '</a></li>';

 // How about the [search] button?
 if ($context['allow_search'])
 echo '<li><a' $current_action=='search' ' class="current"' '' ' href="'$scripturl'?action=search">' $txt[182] , '</a></li>';

  // Is the user allowed to administrate at all? ([admin])
 if ($context['allow_admin'])
  echo '<li><a' $current_action=='admin' ' class="current"' '' ' href="'$scripturl'?action=admin">' $txt[2] , '</a></li>';

// Edit Profile... [profile]
  if ($context['allow_edit_profile'])
echo '<li><a' $current_action=='profile' ' class="current"' '' ' href="'$scripturl'?action=profile">' $txt[79] , '</a></li>';

  // The [calendar]!
 if ($context['allow_calendar'])
  echo '<li><a' $current_action=='calendar' ' class="current"' '' ' href="'$scripturl'?action=calendar">' $txt['calendar24'] , '</a></li>'

  // Go to PM center... [pm]
 if ($context['user']['is_logged'] && $context['allow_pm'])
  echo '<li><a' $current_action=='pm' ' class="current"' '' ' href="'$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a></li>';

  // the [member] list button
//   if ($context['allow_memberlist'])
//  echo '<li><a ' , $current_action=='help' ? ' class="current"' : '' , ' href="', $scripturl, '?action=help">' , Ayuda , '</a></li>';
//AYUDA QUITADA PORQUE NO SE USA Y ESTA EN INGLES

    // Show the [USUARIOS] button.
echo '<li><a href="http://www.*****.com/foros/mlist">Usuarios</a></li>';

  // If the user is a guest, show [login] button.
  if ($context['user']['is_guest'])
  echo '<li><a ' $current_action=='login' ' class="current"' '' ' href="'$scripturl'?action=login">' $txt[34] , '</a></li>';

 // If the user is a guest, also show [register] button.
 if ($context['user']['is_guest'])
 echo '<li><a ' $current_action=='register' ' class="current"' '' ' href="'$scripturl'?action=register">' $txt[97] , '</a></li>';

 
// the [chat] button
$chatPath str_replace("index.php""chat/index.php"$scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' $first '">&nbsp;</td>' '''
<td valign="top" class="maintab_back">
<a href="'
$chatPath'"', empty($modSettings['chatPopUp']) ? 'target="_blank"' ' onclick="openWindow(this.href);this.blur();return false;"''>'$txt['chat'], ($num 0) ?  ('('.$num.')') : '' '</a>
</td>'
;
 
 // Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
  echo '<li><a ' $current_action=='logout' ' class="current"' '' 'href="'$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></li>';

echo '
</ul>
</div><br style="clear: left;"/>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(''$button_strip) , '</td>';
}
?>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 09:30:17 PM
the changing of the .js file will only disable that message, it will not fix anything :)

Did you check the permissions of the folders and files inside

DIRS: root/shoutbox and root/chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 09:32:16 PM
Thanks you!
I tried with CHMOD 755 and 777 in dirs: shoutBox and chat

But my problem still...I can't see what I write
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 09:37:00 PM
Did you use the option to Recurse into sub directories and all files?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 09:40:36 PM
Nop, sorry, I'll try
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 09:45:42 PM
Well, I've put chmod 777 to chat and shoutBox dir, subdirs, and files, but it doesn't work...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 10:12:41 PM
Can you post a link to your forum please :)

If your guests cant access chat, please provide a temp regular member account too :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 10:14:49 PM
It's Ok, I'll send you my link and an account via PM, because I don't like that Google index my url and nickname :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 13, 2009, 10:44:08 PM
@ Drake double check to make sure not just the folders are CHMOD'd but the actual files are set to 755

/chat/index.php

and

/shoutbox/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 13, 2009, 10:49:55 PM
After I installed a fresh copy of SMF 2.1

I installed AjaxChat with no other packages. When I click chat (after enabling it) I get a white screen with nothing on it. Also, if I try to do it via pop up that screen is white as well.

I don't know why this is happening.

Let me know.

Take Care
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 10:53:11 PM
Quote@ Drake double check to make sure not just the folders are CHMOD'd but the actual files are set to 755

/chat/index.php

and

/shoutbox/index.php

Thanks you.
I have set both index.php with chmod 755 again, but nothing changed...

My foldes is named "shoutBox" with B letter in Uppercase.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 13, 2009, 10:53:38 PM
Quote from: Vyache on October 13, 2009, 10:49:55 PM
After I installed a fresh copy of SMF 2.1

I installed AjaxChat with no other packages. When I click chat (after enabling it) I get a white screen with nothing on it. Also, if I try to do it via pop up that screen is white as well.

I don't know why this is happening.

Let me know.

Take Care

Set the file permissions (CHMOD) to 755

/chat/index.php

and

/shoutbox/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 13, 2009, 10:57:45 PM
Quote from: mrtrc266 on October 13, 2009, 10:53:38 PM
Quote from: Vyache on October 13, 2009, 10:49:55 PM
After I installed a fresh copy of SMF 2.1

I installed AjaxChat with no other packages. When I click chat (after enabling it) I get a white screen with nothing on it. Also, if I try to do it via pop up that screen is white as well.

I don't know why this is happening.

Let me know.

Take Care

Set the file permissions (CHMOD) to 755

/chat/index.php

and

/shoutbox/index.php

That didn't work.

Sorry,

What else can I do?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 13, 2009, 11:01:38 PM
@Vyache post a link to your site, or PM is you dont want it public. Might need temp admin accont and FTP details as well
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 13, 2009, 11:08:55 PM
Quote from: mrtrc266 on October 13, 2009, 11:01:38 PM
@Vyache post a link to your site, or PM is you dont want it public. Might need temp admin accont and FTP details as well

Okay, I sent you a private message.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 11:12:26 PM
Quote from: mrtrc266 on October 13, 2009, 11:01:38 PM
@Vyache post a link to your site, or PM is you dont want it public. Might need temp admin accont and FTP details as well

I tried to help, but only can read English, I noticed that his style.css did not have the shoutbox.css imported, but that dont look like it could the issue  though:-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 13, 2009, 11:17:23 PM
Okay is there any other files that I need to change CHMOD or that's all cos I did that and I checked to make sure they are 755. Which they are.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 11:19:37 PM
I would recommend fixing your style.css, you can attach it here if you like, even if that's not causing the issue, it needs to be fixed anyway.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 13, 2009, 11:21:25 PM
Quote from: ♪ JohnCcCcCc ♫ on October 13, 2009, 11:19:37 PM
I would recommend fixing your style.css, you can attach it here if you like, even if that's not causing the issue, it needs to be fixed anyway.

To be more specific, which stylesheet? The one in chat?

Take Care.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 11:21:43 PM
Quote from: drak91 on October 13, 2009, 10:53:11 PM
Quote@ Drake double check to make sure not just the folders are CHMOD'd but the actual files are set to 755

/chat/index.php

and

/shoutbox/index.php

Thanks you.
I have set both index.php with chmod 755 again, but nothing changed...

My foldes is named "shoutBox" with B letter in Uppercase.

Any solution?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 13, 2009, 11:22:57 PM
Quote from: Vyache on October 13, 2009, 11:21:25 PM
Quote from: ♪ JohnCcCcCc ♫ on October 13, 2009, 11:19:37 PM
I would recommend fixing your style.css, you can attach it here if you like, even if that's not causing the issue, it needs to be fixed anyway.

To be more specific, which stylesheet? The one in chat?

Take Care.

I believe that John was talkin to Drak, I just send another PM
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 11:25:36 PM
@ drak91, non yet, working on it.

@Vyache, I cannot offer you support anymore, you have removed the copyright notice from the shoutbox.  >:(

@ mrtrc266, nope I was talking to Vyache too
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 13, 2009, 11:26:19 PM
Check that all of the folders have All of its contents, or replace them with fresh copies.
Re run the db querrys if needed.

Quote from: ♪ JohnCcCcCc ♫ on October 13, 2009, 11:25:36 PM
Vyache, I cannot offer you support anymore, you have removed the copyright notice from the shoutbox.  >:(

tsk tsk Vyache
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 13, 2009, 11:27:29 PM
Quote from: ♪ JohnCcCcCc ♫ on October 13, 2009, 11:25:36 PM
@ drak91, non yet, working on it.

@Vyache, I cannot offer you support anymore, you have removed the copyright notice from the shoutbox.  >:(

@ mrtrc266, nope I was talking to Vyache too

mrtrc266 told me to set it to 705. I'll change it back 755.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 11:29:02 PM
Quote from: Vyache on October 13, 2009, 11:27:29 PM
Quote from: ♪ JohnCcCcCc ♫ on October 13, 2009, 11:25:36 PM
@ drak91, non yet, working on it.

@Vyache, I cannot offer you support anymore, you have removed the copyright notice from the shoutbox.  >:(

@ mrtrc266, nope I was talking to Vyache too

mrtrc266 told me to set it to 705. I'll change it back 755.

mrtrc266 knows best, but considering the fact you have removed the copyright, I'm pretty sure he has stopped caring about your problem
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 13, 2009, 11:30:00 PM
Quote from: ♪ JohnCcCcCc ♫ on October 13, 2009, 11:29:02 PM
Quote from: Vyache on October 13, 2009, 11:27:29 PM
Quote from: ♪ JohnCcCcCc ♫ on October 13, 2009, 11:25:36 PM
@ drak91, non yet, working on it.

@Vyache, I cannot offer you support anymore, you have removed the copyright notice from the shoutbox.  >:(

@ mrtrc266, nope I was talking to Vyache too

mrtrc266 told me to set it to 705. I'll change it back 755.

mrtrc266 knows best, but considering the fact you have removed the copyright, I'm pretty sure he has stopped caring about your problem

I never removed the copyright. That doesn't make any sense.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 11:31:56 PM
Quote from: ♪ JohnCcCcCc ♫ on October 13, 2009, 11:25:36 PM
@ drak91, non yet, working on it.

@Vyache, I cannot offer you support anymore, you have removed the copyright notice from the shoutbox.  >:(

@ mrtrc266, nope I was talking to Vyache too

Thank you very much :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 13, 2009, 11:32:46 PM
Lookin at his site and being logged into it I don't even see the shout or chat. So I have no idea about the copyright. It looks like a fresh install of SMF with 1 members being him, not sure if your lookin at the right site
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 13, 2009, 11:34:25 PM
Okay, I'll post the link again, because this is rediculus, I don't even know how to remove this copyright.

So lets go back to square one. Website Forum link: http://theswimstrongfoundation.org/network/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 11:35:52 PM
Copyright removed, replaced with link to his home chat URL

These things dont happen them selves
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi34.tinypic.com%2Fi5w393.png&hash=d7128493a1c28aaaed941c931c78b3ef03add36c)

I dont remember the chat having a popup feature, and although this could be a mistake, it does not look like one.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 13, 2009, 11:37:28 PM
Quote from: ♪ JohnCcCcCc ♫ on October 13, 2009, 11:35:52 PM
Copyright removed, replaced with link to his home chat URL

These things dont happen them selves
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi34.tinypic.com%2Fi5w393.png&hash=d7128493a1c28aaaed941c931c78b3ef03add36c)

I dont remember the chat having a popup feature, and although this could be a mistake, it does not look like one.

That is not my site first off. Maybe your talking about somebody else.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 11:38:27 PM
lol.. ok, then, I guess you get support, but not the other guy, ok then, I didnt get your link, I had deleted my PM
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 13, 2009, 11:38:43 PM
pmsl @ john

Nope, the copyright aint in the chat room...
In fact, there is nothing there! lol
Are all of the folders from the mod in your chat folder at the root of your forum?
Or it could be that someone is editing it, and crashing the script
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 11:39:29 PM
Chat have a pop-up feature in Admin Panel ;)

And, I only rename the line with copyright, and added this link, but clickin this link you can see the copyright:

AJAX Chat © blueimp.net | Integrated with SMF
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 13, 2009, 11:40:39 PM
Someone is editing it.

mrtrc266 is looking at it right now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 11:41:49 PM
@  Vyache sorry for the confusion.

According to webdev you dont have
@import "../../chat/css/shoutbox.css";
in your style.css file (in theme directory)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 11:43:06 PM
Quote from: drak91 on October 13, 2009, 11:39:29 PM
Chat have a pop-up feature in Admin Panel ;)

And, I only rename the line with copyright, and add this link, but clickin this link you can see the copyright:

AJAX Chat © blueimp.net | Integrated with SMF
Its only fair to show the copyright on the shoutbox too, you should add another link next to the copyright link for that feature. besides there is a button for that anyway.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 13, 2009, 11:43:52 PM
Quote from: ♪ JohnCcCcCc ♫ on October 13, 2009, 11:41:49 PM
@  Vyache sorry for the confusion.

According to webdev you dont have
@import "../../chat/css/shoutbox.css";
in your style.css file (in theme directory)

Well how come it didn't get installed with the package?
So where do I get it then? Reinstall the package manually?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 11:44:35 PM
Ok, I changed the file, and now I can see copyright in index forum. I'm sorry...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 13, 2009, 11:45:08 PM
Quote from: Vyache on October 13, 2009, 11:40:39 PM
Someone is editing it.

mrtrc266 is looking at it right now.

I haven't edited anything yet, dont have access to your FTP, PM me a temp account and I can take a look.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 13, 2009, 11:46:14 PM
@ Vyache, I cant say really, but reinstalling it would help, lets wait on mrtrc266 though, he knows about this best :)

@ drak91, that's better, I will continue to seek your issues :)

mrtrc266 you can edit from "current theme", edit templates cant you?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 13, 2009, 11:46:35 PM
Quote from: Sabre™ on October 13, 2009, 11:26:19 PM
Check that all of the folders have All of its contents, or replace them with fresh copies.
Re run the db querrys if needed.

:)

Quote from: ♪ JohnCcCcCc ♫ on October 13, 2009, 11:46:14 PM
@ drak91, that's better, I will continue to seek your issues :)

Whats to say it wont go back to its old style after it is fixed? :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 13, 2009, 11:46:55 PM
Quote from: mrtrc266 on October 13, 2009, 11:45:08 PM
Quote from: Vyache on October 13, 2009, 11:40:39 PM
Someone is editing it.

mrtrc266 is looking at it right now.

I haven't edited anything yet, dont have access top your FTP, PM me a temp account and I can take a look.
When I said editing it I meant looking at the website as admin. Sorry for confusion, I thought I didn't have the copyright thing.

Anyway I sent you a pm. Take a look.

Take Care.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 13, 2009, 11:47:23 PM
Thanks you John, If you wish, I can give you Admin permissions ;)

John, you have PM
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 14, 2009, 12:02:16 AM
Quote from: Vyache on October 13, 2009, 11:46:55 PM
Quote from: mrtrc266 on October 13, 2009, 11:45:08 PM
Quote from: Vyache on October 13, 2009, 11:40:39 PM
Someone is editing it.

mrtrc266 is looking at it right now.

I haven't edited anything yet, dont have access top your FTP, PM me a temp account and I can take a look.
When I said editing it I meant looking at the website as admin. Sorry for confusion, I thought I didn't have the copyright thing.

Anyway I sent you a pm. Take a look.

Take Care.

Okay, now he can edit my ftp. I have given him access. Only top level of my forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 14, 2009, 12:07:03 AM
Sorry, I was away for a few minutes, any progress here?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 14, 2009, 12:10:41 AM
Quote from: Vyache on October 14, 2009, 12:02:16 AM
Quote from: Vyache on October 13, 2009, 11:46:55 PM
Quote from: mrtrc266 on October 13, 2009, 11:45:08 PM
Quote from: Vyache on October 13, 2009, 11:40:39 PM
Someone is editing it.

mrtrc266 is looking at it right now.

I haven't edited anything yet, dont have access top your FTP, PM me a temp account and I can take a look.
When I said editing it I meant looking at the website as admin. Sorry for confusion, I thought I didn't have the copyright thing.

Anyway I sent you a pm. Take a look.

Take Care.

Okay, now he can edit my ftp. I have given him access. Only top level of my forum.

You're all set...Enjoy the Mod :-)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on October 14, 2009, 12:11:30 AM
Thank You,

However, I'm curious how you fixed the problem? What was the problem?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 14, 2009, 12:15:26 AM
Quote from: Vyache on October 14, 2009, 12:11:30 AM
Thank You,

However, I'm curious how you fixed the problem? What was the problem?

Could possibly be a bug in 3.2.1, I uninstalled it and installed 3.2.

I'll have to take a look at it over the next few days.

Enjoy!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: newtech on October 14, 2009, 12:24:34 AM
I have moved a forum and chat box to a new server. Chat room users (as few as 2, no more than 10 at a time) are being dumped. Here are some of the logs.
What can be causing this? It is happening on a regular basis.

(08:37:17) ChatBot: Error: Connection status: 12031
(09:10:57) ChatBot: Error: Connection status: 500
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 14, 2009, 09:38:08 AM
@John   Nothing to do :(

I have edited some cookies options in /chat/lib/config.php  to try...but no result...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 14, 2009, 09:39:51 AM
So your shoutbox is displayed ok?, everything working except the shouts?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 14, 2009, 09:49:39 AM
Yes, all OK but I can't shout...and I have tried with guest user, with no result...

You're Co-Admin with the username I give you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 14, 2009, 11:57:35 AM
Hmmm I think that can be a server problem...
Any idea? Php configuration...?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 14, 2009, 12:06:12 PM
Try this one.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 14, 2009, 12:09:35 PM
The same error with that version...
Error: Status connection: 0

And I can't shout anything

Edit: Like I said, maybe a wrong server(php, Ruby, apache...) configuration?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 14, 2009, 12:44:26 PM
I went to your site and I can't see where you have the chat folder installed.

Also the login details you sent didnt work, PM sent
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drak91 on October 14, 2009, 12:47:55 PM
You've PM
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 14, 2009, 03:38:44 PM
Quote from: drak91 on October 14, 2009, 12:47:55 PM
You've PM

You're all set Drak, it was the Pretty URL's Mod, added this to your .htaccess file.
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

Sorry I didn't catch that earlier, was trying to read Spanish LOL.

Enjoy the Mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: HoRiZoNN on October 14, 2009, 07:05:51 PM
Quote from: AnnieT on September 04, 2009, 12:29:31 AM


In my error log, most of the errors are "Unable to load the 'Shout.english-utf8' language file."

I also have this error and cannot see the writing next to the check boxes in the admin panel or the permissions panel
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 14, 2009, 07:09:45 PM
Copy Themes/yourtheme/languages/Shout.english.php to Shout.english-utf8.php in that same folder.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on October 14, 2009, 07:55:23 PM
SMF version 1.1.10
Ok i installed the mod... everything seems to be working fine except that i can't set permissions if there are no words telling me what to set... the screen shot shows 2 click boxes but mine shows 4...

here is a pic of the 4 check boxes... could someone at least give me a current screen shot so i know what these 4 check boxes are...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 14, 2009, 07:57:15 PM
Try clearing your cache (forum cache) from maintenance options.

If that does not work, check the Modifications.english file to be sure that the modifications to that file were made.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on October 14, 2009, 08:09:27 PM
Ok... ur gonna think i'm lame but i know a tiny bit of html and that's it... if i could just get a recent screen shot of the 1.1.10 permissions for this mod, so i know what to check...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 14, 2009, 08:13:26 PM
Nothing wrong with that, graaywolf. We all had to start somewhere.

The thing to do is compare your Themes/default/Modifications.english.php file with Themes/default/Modifications.english-utf8.php file. I'm guessing the first file will have less in it than the second, so what's missing needs to be copied over.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 14, 2009, 08:18:19 PM
Yes, you will need to fix it as, one comparing other forums maybe be in another order, we cant really know which one is which.
Also, Shoutbox only has 2 permissions, you have more than that missing, so other mods you have are missing there permissions too lol.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 14, 2009, 08:22:57 PM
From the image shown I believe the top two are for the shoutbox permissions where the remaining three are for the chat permissions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 14, 2009, 08:37:37 PM
On mine its the 2 bottom ones, it all depends which mods you have installed and which order they were installed in.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rehash D Internet on October 14, 2009, 11:19:33 PM
I just tried to force install and got this:

Table 'u7101636.smf_ajaxchat_online' doesn't exist
File: /home/u7101636/surgicalaplomb.com/Sources/Load.php
Line: 2248

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.10, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.

WHAT DO I DO?!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 15, 2009, 03:51:24 AM
Did you install the mod manually? It requires some database tables to be set up, which don't appear to have been.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 15, 2009, 08:48:18 AM
Quote from: Rehash D Internet on October 14, 2009, 11:19:33 PM
I just tried to force install and got this:

Table 'u7101636.smf_ajaxchat_online' doesn't exist
File: /home/u7101636/surgicalaplomb.com/Sources/Load.php
Line: 2248

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.10, while your database is at version 1.1.2. The above error might possibly go away if you execute the latest version of upgrade.php.

WHAT DO I DO?!

This may sound weird, but in some cases its true, you may be getting that message because the tables do exist, drop those tables from your database and try to install the mod again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kruss on October 15, 2009, 04:24:58 PM
This is officially the 3rd day of my first SMF experience and so far I'm having a blast :)

This mod, AjaxChat, has caught my attention because I wanted to add a 'real-time' chat area on my forum board. The thing is, I am using another theme called 'Helios' [http://custom.simplemachines.org/themes/index.php?lemma=1] and it's not showing the Chat option at the top menu. I know someone already asked of this on this thread and I have tried to use the index.template.php file that was supposed to be for this particular theme, unfortunately it doesn't seem to work. I'm not getting any errors, but I just can't see the Chat option. I'd really appreciate if someone can just please show me what codes to add and where. Or I can just attach whatever file needed and have someone add it there. Also, is is possible to only enable this mod for a certain membergroups? I don't feel comfortable having guests and regular users just drop in out of nowhere.

Thanks in advance! The SMF board has been great to me since I joined  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 15, 2009, 06:25:43 PM
Welcome to SMF champ :)
Attach your index.template.php for the Helios theme, and somebody will take a look at it for you.
Are you aware of the fact you will need to create an image for the chat button?
The button maker is found here ~~>  http://www.tinyportal.net/button-generator/helios.php
In the permission section of your admin panel, you will see the member permissions for access to the chat and shout box.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kruss on October 15, 2009, 08:53:12 PM
I attached my index.template.php, as instructed. And no, I wasn't aware that I have to create an email for the chat button. Thanks for informing me, Sabre  :)
Also, I just thought of something and I wanted to run it by you guys....
Is it possible that instead of a button, can I just make a forum board that will link directly to the chat room? And is that too complicated to do?

I look forward to your inputs :)
Whichever you guys think is best works for me.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on October 16, 2009, 03:48:38 AM
Quote from: Arantor on October 14, 2009, 08:13:26 PM
Nothing wrong with that, graaywolf. We all had to start somewhere.

The thing to do is compare your Themes/default/Modifications.english.php file with Themes/default/Modifications.english-utf8.php file. I'm guessing the first file will have less in it than the second, so what's missing needs to be copied over.

it seems i'm missing those 2 files all together...

1.1.10 right? that's my version of SMF...

please help... all my members have full control over the chat until i find out what to click... my forums are open... i'm disabled and on a fixed income... can't afford to pay someone to do this... i'm willing to learn this stuff...

-=(GW)=-
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 16, 2009, 07:14:39 AM
@ graaywolf
They are located in    Themes/default/Languages

@ Kruss
I hope you dont mind, I rearranged your button layout so each new button added in your admin panel, will show before the login, register and logout buttons, otherwise they would display after all of these.
Try the attached template, and upload your image for your button to your helios theme/images/english folder, and name it chat.gif.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 16, 2009, 08:21:29 AM
Ah my bad, yes they are in Themes/default/languages, not Themes/default - curse of brain going faster than fingers... (sorry)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kruss on October 16, 2009, 08:29:56 AM
You're the best, Sabre! Thanks. It worked perfectly  :)
I attached a screenshot so you can see for yourself.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 16, 2009, 08:31:50 AM
Quote from: Blah blah on October 12, 2009, 12:45:12 PM
Quote from: Sabre™ on October 12, 2009, 01:39:04 AM
Cool!
What did you do to fix it?  So others that experience the problem can sort it out also.

Well when I installed it showed no errors, but when I went through the parse to see if all the codes where added two were missing.

Great.. I will check that one.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 16, 2009, 08:43:35 AM
Quote from: Kruss on October 16, 2009, 08:29:56 AM
...Thanks. It worked perfectly  :)

My pleasure mate.
Enjoy :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dimdom on October 16, 2009, 11:41:00 AM
Excellent mod. A quick question: how can i reduce the number of displaying smileys in shoutbox?

And another one: is there a file that store the shoutbox archives or they are deleted in specific period of time?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nosx on October 16, 2009, 11:57:06 AM
It seems there is a problem with setting a default theme for the shoutbox. I tried setting the default theme to "black" in the shoutbox/lib/config.php file but it's not working. Anyone know how I can fix this. The chatbox theme works fine tho just the shoutbox is not right.

Also, I want to move the shoutbox to the bottom of my forum what do I need to make that possible.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on October 16, 2009, 11:57:48 AM
Quote from: Arantor on October 16, 2009, 08:21:29 AM
Ah my bad, yes they are in Themes/default/languages, not Themes/default - curse of brain going faster than fingers... (sorry)

mark this one resolved... i copied over the file and it's working good...  THANK YOU!

now the RSS Feed Poster problem...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 16, 2009, 12:00:04 PM
Quote from: dimdom on October 16, 2009, 11:41:00 AM
Excellent mod. A quick question: how can i reduce the number of displaying smileys in shoutbox?

And another one: is there a file that store the shoutbox archives or they are deleted in specific period of time?

Its stored in the database, it can be accessed, I forget the exact link, but its something like /chat/logs, its posted in thie topic somewhere, use the search feature ;)

Quote from: nosx on October 16, 2009, 11:57:06 AM
It seems there is a problem with setting a default theme for the shoutbox. I tried setting the default theme to "black" in the shoutbox/lib/config.php file but it's not working. Anyone know how I can fix this. The chatbox theme works fine tho just the shoutbox is not right.

Also, I want to move the shoutbox to the bottom of my forum what do I need to make that possible.

You can move it down if you like, all you need to do is move the code from one place to another ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nosx on October 16, 2009, 12:10:58 PM
Quote from: ♪ JohnCcCcCc ♫

You can move it down if you like, all you need to do is move the code from one place to another ;)

Yes, I figured it was just  in a DIV and could be moved fairly easily but not sure what file it's located in. Index.Template.php ?

And still don't know about the shoutbox color issue is anyone else having this problem ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 16, 2009, 12:21:18 PM
Post a link to your site and we'll have a look, and yes its in index.template.php ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nosx on October 16, 2009, 12:32:31 PM
it's just a testboard and it's using a modified version of the debase theme but the default theme has the same problem. I will set the default theme so you can see it as well and I tried looking at the index.template.php file but not sure what line(s) I need to move.

Anyway the board url is http://1upclan.info/1uplabs/smf
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 16, 2009, 12:39:05 PM
PM waiting for you there. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nosx on October 16, 2009, 01:03:49 PM
I guess we missed each other I am there now and in the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kruss on October 16, 2009, 02:22:02 PM
Hey again everyone

I tried to do the code below so that when members enter the chat, it wouldn't show the previous messages prior to them joining. However even after I set the value to false and cleared the cache, it gave me the same result. Any ideas?

QuoteChat >  lib > config.php

Find
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;


Change true to false.

Thanks in advance! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dimdom on October 16, 2009, 04:23:39 PM
♪ JohnCcCcCc ♫, thanks for your answer. But I cant find out how to remove or add smileys in the shoutbox...

And by, the way, is there a away to add the shoutbox as a tiny portal block?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 16, 2009, 04:43:36 PM
To add/remove smileys you will need to edit some of the javascript and of course, delete or upload the new smileys.

There is a post or 2, or 3 on that in this topic somewhere, use search this topic on top to find it :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dimdom on October 16, 2009, 05:12:41 PM
Thank you but the search in this topic function doenst bring up something with "smileys".

Anyway, I have managed to make it work in a tiny portal block.

See it in action in our forum

http://www.authorway.com/SMF/index.php?action=forum
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 16, 2009, 11:25:51 PM
Quote from: nosx on October 16, 2009, 12:10:58 PM
Quote from: ♪ JohnCcCcCc ♫

You can move it down if you like, all you need to do is move the code from one place to another ;)

Yes, I figured it was just  in a DIV and could be moved fairly easily but not sure what file it's located in. Index.Template.php ?

And still don't know about the shoutbox color issue is anyone else having this problem ?

To relocate you shoutbox see this link http://www.simplemachines.org/community/index.php?topic=257973.msg2107351#msg2107351

Disregard the "replace your index.template.php and boardindex.termplate.php with original one" part.

To view your logs go to www.yoursite.com/chat/index.php?view=logs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 16, 2009, 11:30:08 PM
Quote from: mrtrc266 on October 16, 2009, 11:25:51 PM

To view your logs go to www.yoursite.com/chat/index.php?view=logs

This link isn't working.

Takes you to a web hosting company
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 16, 2009, 11:33:44 PM
Quote from: dimdom on October 16, 2009, 05:12:41 PM
Thank you but the search in this topic function doenst bring up something with "smileys".

Anyway, I have managed to make it work in a tiny portal block.

See it in action in our forum

http://www.authorway.com/SMF/index.php?action=forum

Regarding the Smilies you can find and edit them like this

chat/js/config.js

Find
// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
';)',
':P',
':D',
':|',
':O',
':?',
'8)',
'8o',
'B)',
':-)',
':-(',
':-*',
'O:-D',
'>:-D',
':o)',
':idea:',
':important:',
':help:',
':error:',
':warning:',
':favorite:'
),

Find
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'wink.png',
'razz.png',
'grin.png',
'plain.png',
'surprise.png',
'confused.png',
'glasses.png',
'eek.png',
'cool.png',
'smile-big.png',
'crying.png',
'kiss.png',
'angel.png',
'devilish.png',
'monkey.png',
'idea.png',
'important.png',
'help.png',
'error.png',
'warning.png',
'favorite.png'
),


When editing this section make sure that you add/change each line in both the image association and code association to correspond to each other, in other words make sure they are in the same order.

Also make sure that the last array does NOT have a comma

Add/Remove/Edit as you desire

Hope this gets you on the right track
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 16, 2009, 11:35:14 PM
Quote from: TheListener on October 16, 2009, 11:30:08 PM
Quote from: mrtrc266 on October 16, 2009, 11:25:51 PM

To view your logs go to www.yoursite.com/chat/index.php?view=logs

This link isn't working.

Takes you to a web hosting company

LOL the [www.yoursite.com] part is just an example, it would actually be the name of your site
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 16, 2009, 11:37:14 PM
OK

Has anyone got a bucket of water to throw at me?

Hey it is 4:37am here.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 16, 2009, 11:40:27 PM
Quote from: TheListener on October 16, 2009, 11:37:14 PM
OK

Has anyone got a bucket of water to throw at me?

Hey it is 4:37am here.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmoneytipcentral.com%2Fwp-content%2Fuploads%2F2008%2F06%2Fmoney-in-a-bucket.jpg&hash=aeebf016b3e4daa4316d21717324b4bf0214c0e2)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 16, 2009, 11:42:52 PM
Thanks you rotter i nearly choked on my drink.

:D :D :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 16, 2009, 11:47:18 PM
Quote from: TheListener on October 16, 2009, 11:42:52 PM
Thanks you rotter i nearly choked on my drink.

:D :D :D
LOL, Nice seein ya TL thanks for all your help on this Mod, I'm out..have a great night.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kruss on October 17, 2009, 01:00:18 AM
Quote from: Kruss on October 16, 2009, 02:22:02 PM
Hey again everyone

I tried to do the code below so that when members enter the chat, it wouldn't show the previous messages prior to them joining. However even after I set the value to false and cleared the cache, it gave me the same result. Any ideas?

QuoteChat >  lib > config.php

Find
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;


Change true to false.

Thanks in advance! :)

Sorry to pester you guys about this again...But I've been playing with this for a day now and so far I haven't had much luck  :(
Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flanx on October 17, 2009, 03:44:42 AM
Quote from: Blah blah on October 12, 2009, 12:45:12 PM
Quote from: Sabre™ on October 12, 2009, 01:39:04 AM
Cool!
What did you do to fix it?  So others that experience the problem can sort it out also.

Well when I installed it showed no errors, but when I went through the parse to see if all the codes where added two were missing.

i checked everything on each files. The chat room still wont work :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 17, 2009, 10:11:37 AM
Quote from: Kruss on October 17, 2009, 01:00:18 AM
Quote from: Kruss on October 16, 2009, 02:22:02 PM
Hey again everyone

I tried to do the code below so that when members enter the chat, it wouldn't show the previous messages prior to them joining. However even after I set the value to false and cleared the cache, it gave me the same result. Any ideas?

QuoteChat >  lib > config.php

Find
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;


Change true to false.

Thanks in advance! :)

Sorry to pester you guys about this again...But I've been playing with this for a day now and so far I haven't had much luck  :(
Any ideas?

Try changing this to 0 in the same file
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kruss on October 17, 2009, 11:21:19 AM
I tried that, mrtrc266. The problem is, if I do that, there's nothing showing on chat at all.
Whatever I typed in won't display :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 11:27:32 AM
Quote from: Kruss on October 17, 2009, 11:21:19 AM
I tried that, mrtrc266. The problem is, if I do that, there's nothing showing on chat at all.
Whatever I typed in won't display :(

Do you have a link to your forum, I will, see what I can do :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kruss on October 17, 2009, 11:37:23 AM
Here you go: http://testhost.byethost32.com/forum_smf :)
That's my test forum. Everything I put on my actual forum goes there first because I don't want to screw up the production one.

Thanks for all your assistance everyone!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 11:42:11 AM
OK, so lets get an update, whats the exact problem:
Shoutbox or Chat, or both?

What are the exact issues?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kruss on October 17, 2009, 11:46:50 AM
Just the chat. I don't have shoutbox enabled.
I just wanted a real-time chat for my forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 17, 2009, 11:54:05 AM
I'm assuming the problem is, when logging in you just get, "You cant access chat" because that's all im getting.

Make sure to enable chat in general permissions for regular users and post based groups. (if the above is not the problem)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kruss on October 17, 2009, 11:56:40 AM
Oh no. Not at all. That's a permission I set.
Sorry about that. Give me 2 minutes and I'll fix it.

Edit: Just an fyi...I just enabled access to chat for everyone.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: shikee on October 17, 2009, 01:30:53 PM
Hi!
I have got trouble with Error 500. I've changed the file's chmod (chat/index.php and shoutBox/index.php) to 755, but still don't work :c Any idea?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 18, 2009, 05:58:04 PM
Im having issues with nothing showing up in the chat window

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg42.imageshack.us%2Fimg42%2F4616%2F52666346.png&hash=b4ec8ba5150583cb53b91e381e6b365a3557ff44)

Everything installed correctly with no errors...perms are set up properly too
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 18, 2009, 06:04:49 PM
Wow, this is a very common problem right now, maybe the latest version does have some issues, contact mrtrc266 and see if he can send you the version released before this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 18, 2009, 07:00:30 PM
Ok thanks I just sent the PM
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 18, 2009, 09:54:05 PM
Quote from: Blah blah on October 18, 2009, 07:00:30 PM
Ok thanks I just sent the PM

Have you tried changing your file permissions (CHMOD)? chat/index.php and shoutBox/index.php set to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 18, 2009, 10:01:03 PM
yes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 18, 2009, 10:21:00 PM
OK, here is the previous version, give this a shot.

If you get the same error try CHMODing the files posted above
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kruss on October 18, 2009, 10:47:10 PM
I tried that but it says not compatible or corrupted :(
I'm using the SMF 1.1.10 version.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 18, 2009, 11:12:37 PM
I'll try it thanks :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 18, 2009, 11:15:02 PM
Quote from: Kruss on October 18, 2009, 10:47:10 PM
I tried that but it says not compatible or corrupted :(
I'm using the SMF 1.1.10 version.

Unzip the package and open file package-info

Find
<install for="1.1.6-1.1.9">
Replace with
<install for="1.1.6-1.1.10">

Find
<uninstall for="1.1.6-1.99.99">
Repace with
<uninstall for="1.1.6-1.1.10">

Rezip and install
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 19, 2009, 02:03:21 AM
Nope still same glitch as before. CHMOD'd the files too twice. No errors in install.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 19, 2009, 02:21:49 AM
Bummer...  I just installed it too - (not the integration mod, just the SMF AjaxChat)  and was AMAZED at how simple it was...  and how it pulls all the boards in as channels etc.  It seems VERY slick and efficient, so much so, I WILL delete 123flashchat (which costs too much, and loads too slow) IF I can get it working...  but like the previous poster...  when I submit text, nothing happens...  I too had no errors on install, I see my database tables, etc.... and am running 1.1.10.

>:(

I guess I will give the previous version a try.

Is THIS where we should be downloading it?

http://sourceforge.net/projects/ajax-chat/files/

I see the latest version is 0.8.3

EDIT: I just tried 0.8.2_SMF, and still no text is appearing after submitting it.   ::)

EDIT EDIT: I just tried 0.8.1.2_SMF, and still no text is appearing after submitting it.   ::)

EDIT EDIT EDIT: I just tried 0.8_SMF, and still no text is appearing after submitting it.   ::)

EDIT EDIT EDIT EDIT:  I just tried 0.7.4_SMF, and still no text is appearing after submitting it.   ::)

SOOO - it does not seem to have anything to do with just the "latest version".  :(

P.S., this also does NOT appear to be a permissions problem, since I tried chmod -R 777 chat and chmod -R 755 chat

P.S.S...  FYI - looking in my database tables, nothing is being added to... ajax_chat_messages or ajax_chat_online  ???

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kruss on October 19, 2009, 09:54:55 AM
Quick question for you guys...
What exactly does the code below mean? Sorry for the silly question. I just don't want to change anything without being 100% what it will do because my forum is already live and released to everyone.

// Defines an array of channelIDs (e.g. array(0, 1)) for which the previous setting is always true (will be ignored if set to null):
$config['requestMessagesPriorChannelEnterList'] = null;


I'm just wondering if that will somehow help with my problem about previous messages showing for users that just joined the chat room. I found that code above right after this...
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = false;


Thanks in advance! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gigz09 on October 19, 2009, 10:38:42 AM
whew! im back... after my shoutbox have been editted by a hacker, i setted the chat and shoutbox permission back to 644.. and still i can access the shoutbox without encountering problem both my test account and guest..



i enabled the guest in my shoutbox so that they can view the conversation under beneath of it..
=)


now, this is my problem since i have installed the ajaxchat..

if the conversation in the shoutbox are overflowed and the scrollbar appeared... upon logging out, and if you try to logging in again..the previous messages were gone... the scroll bar is gone too..

i want to have the past conversations within 1 - 2 hours... or more... so that each and everytime my members or visitors logged in, they can easily back read the conversations on my shoutbox..

thanks=)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 19, 2009, 10:47:22 AM
@ Digit, the files from Source Forge are just stand alone versions of AJAX Chat vs. AXAJ Chat Intergration (which includes AJAX Chat) but just intergrates it into SMF.

Have you previously installed AJAX Chat Intergration and it didn't work?

@ Kruss

This first code might be the answer to your question earlier (not sure if you already tried changing it to false)

This is asking if you want messages shown to someone just entering your chat room so they can see the current chat or will they only be able to the see chat from the time they enter until they logout of chat.
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;


This would be if you want some channels to show all the chat and some not. If you wanted the chat in your General Discussion Channel and Small Talk Channel always be visible and those boards # on SMF are #1 and #2 the you would change null to array(1, 2)
/ Defines an array of channelIDs (e.g. array(0, 1)) for which the previous setting is always true (will be ignored if set to null):
$config['requestMessagesPriorChannelEnterList'] = null;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 19, 2009, 10:49:25 AM
Quote from: gigz09 on October 19, 2009, 10:38:42 AM
whew! im back... after my shoutbox have been editted by a hacker, i setted the chat and shoutbox permission back to 644.. and still i can access the shoutbox without encountering problem both my test account and guest..



i enabled the guest in my shoutbox so that they can view the conversation under beneath of it..
=)


now, this is my problem since i have installed the ajaxchat..

if the conversation in the shoutbox are overflowed and the scrollbar appeared... upon logging out, and if you try to logging in again..the previous messages were gone... the scroll bar is gone too..

i want to have the past conversations within 1 - 2 hours... or more... so that each and everytime my members or visitors logged in, they can easily back read the conversations on my shoutbox..

thanks=)
Play with these setting, this tells you how long the messages will show for
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;


This sets how many messages users can scroll back through
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 19, 2009, 10:54:50 AM
I actually found the version that worked for me back in April or may and installed it but no change...still not showing users or msgs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 19, 2009, 11:00:12 AM
Quote from: Blah blah on October 19, 2009, 10:54:50 AM
I actually found the version that worked for me back in April or may and installed it but no change...still not showing users or msgs

Having this Mod previously installed have you completely uninstalled it, including dropping your tables in your database?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kruss on October 19, 2009, 11:03:56 AM
Quote from: mrtrc266 on October 19, 2009, 10:47:22 AM
@ Digit, the files from Source Forge are just stand alone versions of AJAX Chat vs. AXAJ Chat Intergration (which includes AJAX Chat) but just intergrates it into SMF.

Have you previously installed AJAX Chat Intergration and it didn't work?

@ Kruss

This first code might be the answer to your question earlier (not sure if you already tried changing it to false)

This is asking if you want messages shown to someone just entering your chat room so they can see the current chat or will they only be able to the see chat from the time they enter until they logout of chat.
// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;


This would be if you want some channels to show all the chat and some not. If you wanted the chat in your General Discussion Channel and Small Talk Channel always be visible and those boards # on SMF are #1 and #2 the you would change null to array(0, 1)
/ Defines an array of channelIDs (e.g. array(0, 1)) for which the previous setting is always true (will be ignored if set to null):
$config['requestMessagesPriorChannelEnterList'] = null;


Thanks for clarifying that up, mrtrc266.

I did try changing the option to false already. The code I showed earlier is actually from my config.php file itself. Still doesn't seem to be working though :( All the previous messages within a day still shows up whenever a user joins the chat room.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 19, 2009, 11:07:40 AM
Quote from: mrtrc266 on October 18, 2009, 11:15:02 PM
Unzip the package and open file package-info

Just for further reference, you can use Version Emulate Dropdown (http://custom.simplemachines.org/mods/index.php?mod=2113) to bypass this step and just tell SMF to pretend it's 1.1.9 or lower to suit.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 19, 2009, 11:13:47 AM
Quote from: mrtrc266 on October 19, 2009, 10:47:22 AM
@ Digit, the files from Source Forge are just stand alone versions of AJAX Chat vs. AXAJ Chat Intergration (which includes AJAX Chat) but just intergrates it into SMF.

Have you previously installed AJAX Chat Intergration and it didn't work?

I have never installed ajax chat or the larger ajax chat smf integration.  (I have successfully  installed 123flashchat, but it's expensive and slow)

The install seems to have gone fine, the database tables are there, so it picked up my SSI.php, etc,.  (and it looks GREAT!  8) )

Would you mind a pm with a test account and URL?

Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 19, 2009, 11:29:02 AM
Here you go, no need to register the chat/shout is open to guests.

http://monsters-mansion.com/testsmf2

Or were you talkin about givin me a test account and a URL? LOL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gigz09 on October 19, 2009, 12:33:14 PM
Quote from: mrtrc266 on October 19, 2009, 10:49:25 AM
Quote from: gigz09 on October 19, 2009, 10:38:42 AM
whew! im back... after my shoutbox have been editted by a hacker, i setted the chat and shoutbox permission back to 644.. and still i can access the shoutbox without encountering problem both my test account and guest..



i enabled the guest in my shoutbox so that they can view the conversation under beneath of it..
=)


now, this is my problem since i have installed the ajaxchat..

if the conversation in the shoutbox are overflowed and the scrollbar appeared... upon logging out, and if you try to logging in again..the previous messages were gone... the scroll bar is gone too..

i want to have the past conversations within 1 - 2 hours... or more... so that each and everytime my members or visitors logged in, they can easily back read the conversations on my shoutbox..

thanks=)
Play with these setting, this tells you how long the messages will show for
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;


This sets how many messages users can scroll back through
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;



thanks it works...=) thank you very much..!=)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 19, 2009, 01:38:19 PM
I must not have my database tables there ?

How exactly do I add those? And would they still be there from an old version? 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 19, 2009, 02:34:34 PM
Quote from: Blah blah on October 19, 2009, 01:38:19 PM
I must not have my database tables there ?

How exactly do I add those? And would they still be there from an old version? 

There is usually a install.php file or something similar  in the mod you would execute that to install the tables.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 20, 2009, 04:16:31 AM
Quote from: mrtrc266 on October 19, 2009, 11:29:02 AM
Here you go, no need to register the chat/shout is open to guests.

http://monsters-mansion.com/testsmf2

Or were you talkin about givin me a test account and a URL? LOL

Yeah, I was going to give you a test account and URL so you can see my non-working chat.  8)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mALEFACTOr on October 21, 2009, 02:44:01 PM
Quote from: ♪ JohnCcCcCc ♫ on October 16, 2009, 12:00:04 PM
You can move it down if you like, all you need to do is move the code from one place to another ;)
this is the code i should move?

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

and in witch file, default index.template.php or the other one from the template?
thank u again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 21, 2009, 04:00:57 PM
Hi, I just installed ajax chat, deleted install.php (wich completes the installation correctly) and then when I run the index.php I got this error:

Error de parseo XML: etiqueta sin par. Se esperaba: </link>.
Lugar: http://www.chevynet.com.ar/foro/ajax/index.php
Línea 7, Columna 6:   </head>
-----^

Any ideas?
Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 21, 2009, 04:33:37 PM
I installed the mod anyway, and even when it shows everything ok this message appears:

(17:31:29) ChatBot: Error: Estado de la conexi�n: 0
(17:31:30) ChatBot: Error: Estado de la conexi�n: 500

And is not possible to post anything.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 21, 2009, 04:35:06 PM
This has been covered many times before.

The directory and folder permissions have to be set to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 21, 2009, 04:42:51 PM
Thanks man, sorry for that. I was set everything to 755 but after reinstalling it went back to 666.

Now, the 500 error is gone, but nothing appear in the box when I try to shout, just blank screen.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 21, 2009, 04:44:38 PM
Were there any errors on install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 21, 2009, 04:47:15 PM
No errors, everything was installed aparently succesfuly.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 21, 2009, 04:47:37 PM
I am still having a problem witn no text showing up. :(  Any idea why that's happening?


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 21, 2009, 04:49:17 PM
Digit were there any errors on install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 21, 2009, 04:51:14 PM
I noted that if I try to run ajax directly from ajax url I got now this message:

Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM hvpsn_mambo.ajax_chat_online ORDER BY userName; Error-Report: Table 'hvpsn_mambo.ajax_chat_online' doesn't exist Error-Code: 1146

I was looking at my database via phpmyadmin, and the table "ajax_chat_online" do exists, but is called "smf_ajaxchat_online" because I'm using a bridge, so smf files uses smf_xxx and portal uses mos_xxxx

Which files are necesary to modify to indicates ajax to look the table with the right name??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 21, 2009, 04:55:44 PM
Quote from: TheListener on October 21, 2009, 04:49:17 PM
Digit were there any errors on install?

No, the tables are there just fine, no errors, etc...  I did not install the mod, just the ajax chat for smf. (If I can get that working I'll install the mod!)

This is what I downloaded

http://sourceforge.net/projects/ajax-chat/files/ajax-chat/0.8.3/ajax_chat-0.8.3_SMF.zip/download

I will delete my 123flashchat (which is too slow and expensive) if I can get this slick looking chat working!

I can pm you the link to my chat if you can take a look.

Thanks

p.s., it's also not showing users. (is this for SMF 2.0+?)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 21, 2009, 05:41:28 PM
Seems like alot of us are having the  no users, no msgs problem like me.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 21, 2009, 07:11:01 PM
Try the older version as this problem seems common
http://www.simplemachines.org/community/index.php?topic=257973.msg2316972#msg2316972
Attached in that post^
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kingkingston on October 21, 2009, 08:37:06 PM
ok added this to my site but how do i get it to work,it sets up the link and when i click the link the popup box comes up and says

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Anyone know how to fix this ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 12:04:34 AM
Quote from: ♪ JohnCcCcCc ♫ on October 21, 2009, 07:11:01 PM
Try the older version as this problem seems common
http://www.simplemachines.org/community/index.php?topic=257973.msg2316972#msg2316972
Attached in that post^

Same thing.  Looks great, doesn't work.


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 22, 2009, 01:22:05 AM
Quote from: digit on October 22, 2009, 12:04:34 AM
Quote from: ♪ JohnCcCcCc ♫ on October 21, 2009, 07:11:01 PM
Try the older version as this problem seems common
http://www.simplemachines.org/community/index.php?topic=257973.msg2316972#msg2316972
Attached in that post^

yep same for me. I've tried 3 different older versions and they all did the same thing.

Same thing.  Looks great, doesn't work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 04:47:58 AM
Ok, this time, (what is this my 8th attempt?)  I did a clean install on a new install of SMF 2.0 RC1.2  USING THE PACKAGE MANAGER.  (all other attempts were manual installs)

Install went fine....  no errors, yet, I am having the same problem...  no text is showing up.

EDIT: Also JUST did the same thing (auto install)  on smf 1.1.10....  SAME THING - NO TEXT....  also tried the pop up chat, looks great, no users no text, and showing no users on the boards main page even when I go in there.

I also tried the integrated shout box for the first time on my clean install, SAME THING.   >:(

Is it possible I have a port issue?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 09:34:42 AM
This is getting annoying...

I just read this....

http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/3029459

No one cares to respond to THAT?

SIGH
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 09:40:19 AM
Could this be a clue?

http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/3085896
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 22, 2009, 10:38:05 AM
I'm thinking we will have to just wait for the update :sigh: there is obviously some issue with this version and the currentvl version of SMF
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 10:39:47 AM
I FOUND it on my end....

I needed to add this to my htaccess file (at the top of the rewrite rules)

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

Now I am off to try to integrate it!  SIGH.

I hope that helps you!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 22, 2009, 10:42:30 AM
@ Digit, Blah and anyone else getting the error regarding not being able to type anything in the chat/shout. Honestly I have no clue as to was causing this.

This was a common error on some servers and the fix was simple CHMOD the /chat.index.php and /shout.index.php files to 755 and that was it.

I will have to throw this up on a cpl test sites to see if I can figure it out.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 22, 2009, 10:43:44 AM
Quote from: digit on October 22, 2009, 10:39:47 AM
I FOUND it on my end....

I needed to add this to my htaccess file (at the top of the rewrite rules)

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

Now I am off to try to integrate it!  SIGH.

I hope that helps you!

Awesome Digit! Do you have Pretty URL's installed by any chance?

Did you try that as well Blah.....Sorry to Both I guess I assumed that you both had read through the FAQ's Page (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) which has this listed. Sorry I didn't revert back to it myself LOL.

QuoteHere some known issues and fixes caused by either other Mods or some servers

If you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please READ THIS  (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 11:08:52 AM
No, I am not using pretty URL's but I do have a very hacked htaccess file - I am also using Sleepy's SEO links mod.

Now for some reason, I am getting an intermittent log in screen, even though I AM still logged into the forum.
  :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 22, 2009, 11:12:53 AM
Quote from: digit on October 22, 2009, 11:08:52 AM
No, I am not using pretty URL's but I do have a very hacked htaccess file - I am also using Sleepy's SEO links mod.

Now for some reason, I am getting an intermittent log in screen, even though I AM still logged into the forum.
  :P


Try clearing your cache, that happens from time to time but if you do get the login screen just press the chat button again and it should take you right in.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 11:20:34 AM
Thanks - now could you help me out just a little bit more?  :P

I am trying to make a stand alone pop up window to show the users in chat...  this is what this neophyte came up with that does not work. :(


<?php

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Who\'s In TNet Chat</title>
<style type="text/css">
<!--
.normal {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: normal;
}
a {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #0000FF;
text-decoration:none;
}
a:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF0000;
}
-->
</style>
</head>

<body background="/images/coinsc.jpg">
'
;
require(
'SSI.php');
function 
whochat()
{
global $context$settings$options$txt$scripturl$modSettings;


// users in chat
if (isset($context['chat_links'])){
if (count($context['chat_links']) == )
  
echo '<br />' $txt['chat_no_user'];
elseif (count($context['chat_links']) == )
   echo '<br />  1' $txt['chat_aUser']. ':<br />'implode($context['chat_links']);
else
  
echo '<br /> ' count($context['chat_links']). $txt['chat_users']. ':<br />'implode(', '$context['chat_links']);
  }
 
 }
whochat();
 echo 
'

 

</body>
</html>'
;

?>






Thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 22, 2009, 11:28:57 AM
I have to run off to work, but I believe the SSI Function is this ssi_chatonline.

Will have to take a look in the next cpl days.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 11:41:44 AM
I got that to work, thanks a bunch.  8)

I seem to have some missing language strings...

I am getting the errors... 

8: Undefined index: permissionname_chat_any
File: /users/Sources/ManagePermissions.php
Line: 1565

and

8: Undefined index: permissionname_chat_own
File: /users/Sources/ManagePermissions.php

But NO WHERE in the mod are those strings....

permissionname_chat_any or permissionname_chat_own


SIGH.


EDIT: I was having a problem with the permissions...  I do not have guests selected, but they are still able to access it. :(

This is what I did in ManagePermissions.php


   $permissionList['membergroup']['chat'] = array(
            'chat_access' => false,
            'chat_mod' => false,
            'shout_view' => false,
            'shout_access' => false,
            'shout_mod' => false,
            );
         
Won't that work?





Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 22, 2009, 12:23:31 PM
Quote from: digit on October 22, 2009, 11:41:44 AM
I got that to work, thanks a bunch.  8)

How you made it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 12:34:14 PM
Quote from: German_AC on October 22, 2009, 12:23:31 PM
Quote from: digit on October 22, 2009, 11:41:44 AM
I got that to work, thanks a bunch.  8)

How you made it?

Are you talking about how did I get chat to work?

I added this to my .htaccess file...  (at the top of the rewrite rules)

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

are you talking about how did I make a popup window to show users?
<?php

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Who\'s In TNet Chat</title>
<style type="text/css">
<!--
body {
background-color: #FFFFFF;
color: #000000;
font-family: Tahoma, arial, helvetica, serif;
margin: 0px;
padding: 0px 0px 0px 0px;

}

a {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #0000FF;
text-decoration:none;
}
a:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF0000;
}
-->
</style>
</head>
<body><blockquote>

'
;
require(
'SSI.php');

ssi_chatOnline();
 echo 
'
</blockquote>

 
 
<center>

</center>
</body>
</html>'
;

?>



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 22, 2009, 12:41:01 PM
Yeah that worked for me too  :) :) :)  thanks guys
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 22, 2009, 12:50:30 PM
where is located the htaccess file? I don't have any on my root or forum folders.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 22, 2009, 12:53:45 PM
Mine is in the Public_html folder along with all the smf files
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 12:58:16 PM
google htaccess - just create a plain text file, and place it in your root folder...  it starts with a "." period...  maybe it's invisible in your ftp program because of that - check your ftp prefs.

Glad to hear it Blah Blah!  8)

You could try this for your htaccess...  remember name it ".htaccess"
<Limit GET>
Options +FollowSymLinks
Options +Indexes
order allow,deny
allow from all
RewriteEngine on
RewriteBase /
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
</Limit>

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 22, 2009, 01:07:50 PM
I just added the rewrite rule to the .htaccess file (wich was renamed) but still nothing. Now I got a "connection error:0" even with the permisions set to 755 in both files named above.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 01:09:14 PM
Quote from: German_AC on October 22, 2009, 01:07:50 PM
I just added the rewrite rule to the .htaccess file (wich was renamed) but still nothing. Now I got a "connection error:0" even with the permisions set to 755 in both files named above.

Use the text I supplied above - rewrite engine needs to be on. (backup your old one though!)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 22, 2009, 04:00:58 PM
So how exactly do you change the background in the chat room? And can you make the custom one for your site the only option for users to choose?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 04:06:17 PM
I would guess you will duplicate one of your files in your css folder, then add the name of it to your config file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 22, 2009, 04:10:35 PM
Didn't know the different chat templates were CSS? I figured they were PHP. I'm not into to doing a whole style sheet so I'll pass LOL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 22, 2009, 04:12:17 PM
looks pretty easy - they import all the shared styles.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 22, 2009, 04:14:40 PM
Yeah Ill gave it a look later. Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 22, 2009, 08:19:12 PM
Well, I can't make it work. I have tried everything you recomend but nothing happens. Also Ajax Chat doesn't work either.

Update: Ajax Chat now opens, but the same happens, all blank. No users, no text displayed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scottdn on October 23, 2009, 02:14:07 PM
When I connect to Chat and anytime I try to type something in chat it displays the following error.

ChatBot: Error: Connection status: 404

Any help would be appreciated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 23, 2009, 02:31:29 PM
Quote from: German_AC on October 22, 2009, 08:19:12 PM
Well, I can't make it work. I have tried everything you recomend but nothing happens. Also Ajax Chat doesn't work either.

Update: Ajax Chat now opens, but the same happens, all blank. No users, no text displayed.

If you want, PM me your site, I'll take a look, I'm not sure if I can help, but I'll try!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Surferbird on October 23, 2009, 06:28:50 PM
Is there another similar operating MOD program, that I dare not install ?

I get such bunch of disaster after trying ajax installation.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 23, 2009, 06:36:56 PM
When you installed the mod originally were there any errors?

Many mods do require at least some manual edits.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Surferbird on October 23, 2009, 06:38:48 PM
One in package install, but i did the index.template.php manually...the the hell broke loose, load.phm, boardindex etc...hade all errors.

Ahh..i remember, i try it once before and it may not uninstalled it compleately, there was double installs in some files.
Could this have screew up my install, maybe is should give it a try...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 23, 2009, 06:41:02 PM
The best thing to do is re install the mod note any errors then mention them in the mods topic. This applies to all mods.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Surferbird on October 23, 2009, 06:43:27 PM
ok. I'll try once more.
Title: Re: BUMP AjaxChat Integration (latest version 3.2.1)
Post by: leowife on October 23, 2009, 08:10:04 PM
Okay, I'm still at a loss here and though I paid someone to install it for me, I'm not able to get a reply from him.

The only two members who are able to even see the chatbox are myself (Admin) and my other Admin. 

I have gone through the Permissions over and over again, thinking I'm just missing it somewhere, but there's nothing there.

If ANYONE can help me, I'd appreciate it. 

Thank You!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 23, 2009, 08:23:45 PM
Have the folder permissions been set to 755?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ihton on October 23, 2009, 08:47:53 PM
Where i can get Spanish Translation?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 24, 2009, 01:28:40 AM
Perhaps a brand new thread, with the FAQ and latest download at the beginning is in order for this mod.  8)

Just a thought.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 24, 2009, 01:30:04 AM
Quote from: digit on October 24, 2009, 01:28:40 AM
Perhaps a brand new thread, with the FAQ and latest download at the beginning is in order for this mod.  8)

Just a thought.

That would be down to the forums mods.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 24, 2009, 03:23:06 AM
Well, the first page of this thread links the current version as far as I can see.

We are not able to allow a second thread for this mod at this time. As you may be aware, it isn't just a simple matter of starting a new thread; the mod site is geared to working a certain way (like creating the thread when the mod is approved)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: paulmagno on October 24, 2009, 03:24:02 AM
Hi Guys...Just pulling out my hair here...

I installed the AjaxChat Integration Mod, the chat button appears, but when I try to access the chat function, it just says:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.


I'm using 1.1.10 and am sure I downloaded the right package...I tried uninstalling and re-installing it, but an error then came up...I also tried another chat mod and had similar results...for what it's worth, I AM using the pretty url mod...

What can I do to fix this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 24, 2009, 03:27:42 AM
Quote from: paulmagno on October 24, 2009, 03:24:02 AM
Hi Guys...Just pulling out my hair here...

I installed the AjaxChat Integration Mod, the chat button appears, but when I try to access the chat function, it just says:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.


I'm using 1.1.10 and am sure I downloaded the right package...I tried uninstalling and re-installing it, but an error then came up...I also tried another chat mod and had similar results...for what it's worth, I AM using the pretty url mod...

What can I do to fix this?

Look for a post made by mrtrc266 and you should see a link to ajax chat hints and tips. There is one for people who are having trouble with this mod and have the pretty urls mod installed also.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 24, 2009, 03:30:23 AM
Here are the hints and things...

This SHOULD be the beginning of this or a new thread...  IMHO.  It might have saved me a few hours!

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 24, 2009, 03:33:29 AM
Then .HuNTeR. should make that change or ask us to do it on his behalf.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 24, 2009, 03:35:58 AM
I made that suggestion to Hunter whom said it was up to the moderators to start a new topic.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scottdn on October 24, 2009, 04:11:06 AM
I am having an odd issue.    Whenever a user types a ' or a \ in the chat window and hits enter it displays  like this:  \' and \\.   See the screen shot.  Any ideas?  Thanks.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi17.photobucket.com%2Falbums%2Fb86%2Fscottdn%2Fchatissue.jpg&hash=2d6569de3741154bd1e9ce18f4df26b0425fabda)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: paulmagno on October 24, 2009, 04:13:00 AM
Um...Thanks for the help, guys, but I'm right where I was before...all it said was to dosconnect Pretty URL or add a line to the SMF htaccess file...well, what is an SMF htaccess file and where do I find it...I'd like to keep Pretty URL more than I want to chat...

Now, I'm not even being allowed to re-apply my chat mod because I get error messages...

Does anyone know of a chat mod that doesn't require a Masters from MIT?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sukmama on October 24, 2009, 06:04:47 AM
Please can someone tell me if this mod would work on my Kelo-itv1110v1 theme because the other one i installed only work with the default theme. i use smf 1.1.10. thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 24, 2009, 09:59:53 AM
Here is the translation to Spanish_latin. Just add this to the end of your Modifications.spanish_latin.php (or just to Modifications.spanish.php) so you can see the options in admin panel and in permissions section.

//Inegración con AjaxChat
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' usuarios en chat';
$txt['chat_users'] = ' usuarios est&aacute;n en el chat:';
$txt['chat_no_user'] = 'No hay usuarios en el chat.';
$txt['enableShoutBox'] = 'Habilitar ShoutBox?';
$txt['enableChatButtonNo'] = 'Mostrar numero de usuarios en el boton de chat?';
$txt['enableChatBelowPM'] = 'Mostrar usuarios en chat debajo de los usuarios en linea?';
$txt['anyPageShoutBox'] = 'Marcar para mostrar la ventana de ShoutBox en todas las p&aacute;ginas o desamarcar solo para el indice:';
$txt['chatPopUp'] = 'Chat en una pagina aparte?';
$txt['miniChat'] = 'Integrar shout box y sala de chat?';
$txt['permissionname_chat_access'] = 'Acceso al chat';
$txt['permissionhelp_chat_access'] = 'Los usuarios pueden usar o no el chat.';
$txt['permissionname_shout_access'] = 'Puede participar';
$txt['permissionhelp_shout_access'] = 'Da permiso a escribir en el shout box.';
$txt['permissionname_shout_view'] = 'Ver shoutBox';
$txt['permissionhelp_shout_view'] = 'Da permiso para ver el shoutBox';
$txt['permissionname_shout_mod'] = 'Moderar shoutBox';
$txt['permissionhelp_shout_mod'] = 'Da permiso a moderar el shoutBox.';
$txt['permissionname_chat_mod'] = 'Moderar chat';
$txt['permissionhelp_chat_mod'] = 'Da permiso a moderar el chat.';
$txt['permissiongroup_chat'] = 'Chat';
//Fin de AjaxChat Integration
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 24, 2009, 10:01:13 AM
I got apparently everything working, but userslist is empty, and nothing shows in chat screen. I don't now what else to do...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scottdn on October 24, 2009, 10:16:48 AM
Quote from: paulmagno on October 24, 2009, 04:13:00 AM
Um...Thanks for the help, guys, but I'm right where I was before...all it said was to dosconnect Pretty URL or add a line to the SMF htaccess file...well, what is an SMF htaccess file and where do I find it...I'd like to keep Pretty URL more than I want to chat...

Now, I'm not even being allowed to re-apply my chat mod because I get error messages...

Does anyone know of a chat mod that doesn't require a Masters from MIT?

I struggled with the same issues.  Here are a few bullet points that may help.

1.  File/Directory permissions to the Chat Directory must be set to 755 on some hosts.  My host requires this as it will not serve pages with permissions greater then 666.   Incorrect file permissions will result in a 500 error when you attempt to launch the Chat link

2.  If you have a .htaccess file with mod rewrites but DO NOT have Pretty URLS or Seach engine friendly urls this will cause 404 errors in the chat window when you launch chat. 

3.  If you have Pretty URLS or Search Engine Friendly Urls turned on you will have an .htaccess file most likely in the root of your forum directory on your host.    Given that scenario if you are using chat with Pretty URL's for example you will need to add a RewriteRule to the .htaccess for your chat page.   Without the rewrite rule you will end up with the symptom of a blank user list,  text not posting,  etc...

Below is an example of the default pretty url .htaccess with the chat rewriterule at the bottom of the actions rules.    Please don't copy and paste this .htaccess as it may not work with your system.  This is just an example of what it should look like.  You can copy and paste the chat portion and add it to the action rules in your own .htaccess.


RewriteRule ^chat/?$ ./chat/index.php [L,QSA]




# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: October 5, 2009, 12:02

RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|globalhf)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(helpadmin|im|jsoption|jsmodify|lock|lockVoting|login|login2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(logout|maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mergetopics|mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notify|notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post|post2|postsettings|printpage|profile|profile2|quotefast|quickmod)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod2|recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removepoll|repairboards|reporttm|reports|requestmembers|search|search2|sendtopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings|serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(theme|trackip|admod|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewmembers|viewprofile|verificationcode|vote|viewquery|who|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS


Hope that helps.  Maybe it doesn't but it was my observations and the scenerios I ran into.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 24, 2009, 10:27:40 AM
Hi scottdn, the "RewriteBase /forum" line is the location of the forum? Should I replace that whith my forum directory??

Thanks


UPDATE:
I found this error file in the Shoutbox directory:

[24-oct-2009 09:56:10] PHP Warning:  Invalid argument supplied for foreach() in /home/hvpsn/public_html/foro/shoutBox/lib/class/AJAXChat.php on line 1461

Here is the line in AJAXChat.php:
function isAllowedToWriteMessage($id) {
foreach($this->_onlineUsersData as $userData){
//move to find user
if($userData['userID'] != $id)
continue;
//found him ;)



Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scottdn on October 24, 2009, 11:38:47 AM
Quote from: German_AC on October 24, 2009, 10:27:40 AM
Hi scottdn, the "RewriteBase /forum" line is the location of the forum? Should I replace that whith my forum directory??

Thanks



The /forum is the path to your forum directory assuming that your forum is installed into a directory called forum off the root of your hosting home directory.   If that makes sense.   The Rewritebase path should of been automatically generated with the pretty url install.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: akl on October 24, 2009, 02:29:43 PM
It installed seamlessly with no errors on SMF RC 1.2 Forum using Overview, but when I [admin] try to type a message, it sometimes shows up sometimes doesn't but logs me out back to the log in screen of the chat and when I log back in it gives the message:
user has been logged out (Invalid IP address).

I haven't tried with a normal member as it's getting late, but I hope there is a fix to this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SpeedForums on October 24, 2009, 04:09:55 PM
I cannot install it, simply when i click apply mod it returns to package site..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 24, 2009, 05:16:52 PM
Quote from: SpeedForums on October 24, 2009, 04:09:55 PM
I cannot install it, simply when i click apply mod it returns to package site..

Check the error log, if its full of errors, clear it, then try to install the mod again, then check the error log again, report back! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 24, 2009, 05:27:49 PM
Quote from: TheListener on August 05, 2009, 01:17:14 PM
Add a Word Filter to the chat room.

This modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
return text;
}


This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}

Adds a replacement for the word "foo".

This addition works.

I can't get this to work - it's driving me - forgive the halloween analogy - a bit BATTY!

Any idea why? Permissions on chat/js/custom.js are set to 755...

I can't get it to replace ANY words.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Surferbird on October 24, 2009, 05:29:06 PM
After read all this messages in this thread, it show me that this MOD is not made for use at all.

If MOD is usable it should work without tons of problems and errors. Author should take it back and build a 100% working mod, who need this kind
of things, nobody!

I have try to install it in default theme 3 times and all has been disaster. Garbage i should say!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 24, 2009, 06:25:09 PM
Quote from: Surferbird on October 24, 2009, 05:29:06 PM
After read all this messages in this thread, it show me that this MOD is not made for use at all.

If MOD is usable it should work without tons of problems and errors. Author should take it back and build a 100% working mod, who need this kind
of things, nobody!

I have try to install it in default theme 3 times and all has been disaster. Garbage i should say!

It would help if you explained the errors rather than blast the mods author
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Surferbird on October 24, 2009, 06:39:56 PM
I dont think it's needed. If you look back on this thread, you must observe that in this MOD is something wrong,
or do you you mean this is okay mod and work as it should?

When not even installing it will work correctly it should be put on some early beta stage. Why can i not blast author,
i think it is the correct way to tell him that something is seriously wrong with his mod.

222 messages, mostly only about problems this and that proof it wery well, if you not observe it, something is wrong with you too?
Dont come here and be some hero and tell me to explain something instead, read the thread, there is all explanations you need.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 24, 2009, 06:42:26 PM
The majority of the threads is people who don't realise that others have had the same problems before.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Surferbird on October 24, 2009, 06:50:29 PM
If you make mod, and upload it here for less experienced normal users it should work, this is not the place for workground
where you start to develope the mod. It is better to keep it away on own computer as long as it not work correctly. You must
agre to the above, otherway you are supporting bad mods.

Here is much mod files made by authors that work immediatly when you install it, i'll prise them. Should i prise this too, no way
because it cause so much harm on my forum (and others forum) 3 times that i never ever try it again. I'm not stupid to use half made mod.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 24, 2009, 06:51:16 PM
Quote from: Surferbird on October 24, 2009, 06:39:56 PM
I dont think it's needed. If you look back on this thread, you must observe that in this MOD is something wrong,
or do you you mean this is okay mod and work as it should?

When not even installing it will work correctly it should be put on some early beta stage. Why can i not blast author,
i think it is the correct way to tell him that something is seriously wrong with his mod.

222 messages, mostly only about problems this and that proof it wery well, if you not observe it, something is wrong with you too?
Dont come here and be some hero and tell me to explain something instead, read the thread, there is all explanations you need.


Its working fine for me, how can there be anything wrong with it.
Many people who download the mod and use it only even look here, let alone post here if there is a problem, now look at the amount of times the mod has been downloaded and how many people are complaining, you will see there are a lot more people using this mod successfully than there are having problems.

The mod is fine, instead of blaming other things, you should post your errors with detail and then we can see whats up.

FYI, mods are inspected by the Customizer's before they can be released to the public on the mod site.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Surferbird on October 24, 2009, 06:53:45 PM
Hey, you must be worlds luckiest user. What are you thinking about the tons of problems other have experienced with this mod?

If mod is so excellent you claim, SMF must contain bugs?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on October 24, 2009, 06:56:15 PM
Im not lucky, If I were, everything would be installed with no problems, I have to make manual edits for mods, this one too I believe.

We can only help you if you provide the following information:

SMF version.
Theme your currently using.
other mods installed.
Errors in log related to ajax shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 24, 2009, 06:56:34 PM
No problem remains a problem if shared with others. There will be someone who will know how to solve the problem.

If you don't like a mod then why not use the proper channels to report to the customiser team whom are the ones responsible for approving the mods.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Surferbird on October 24, 2009, 06:57:15 PM
Ahh.. i dont have interest to discussing this early beta mod anymore, i leave it here, and also the mod uninstalled, this is for sure.

Have a nicre day!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 24, 2009, 07:25:09 PM
I was able to run this mod successfully on my forum; I just didn't use it in the end because it wasn't what I was looking for.

This mod isn't a beta; it has issues because it's conflicting with perhaps other mods you have.

We would like to help you with this; if you want to, please answer the questions above.
Title: Members cant login to chat
Post by: EroticJudge on October 25, 2009, 04:35:04 AM
Hi there i downloaded this mod, i the admin can login to chat but members cant.  Can anybody help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: akl on October 25, 2009, 06:40:21 AM
Quote from: akl on October 24, 2009, 02:29:43 PM
It installed seamlessly with no errors on SMF RC 1.2 Forum using Overview, but when I [admin] try to type a message, it sometimes shows up sometimes doesn't but logs me out back to the log in screen of the chat and when I log back in it gives the message:
user has been logged out (Invalid IP address).

I haven't tried with a normal member as it's getting late, but I hope there is a fix to this.
Any help please...?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 25, 2009, 08:06:00 AM
Quote from: digit on October 24, 2009, 05:27:49 PM
Quote from: TheListener on August 05, 2009, 01:17:14 PM
Add a Word Filter to the chat room.

This modification is short and simple.

Open chat/js/custom.js

Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
return text;
}


This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace(/frug/gi, 'Fruggles');
text=text.replace(/foo/gi, 'Donkey Foo');
return text;
}

Adds a replacement for the word "foo".

This addition works.

I can't get this to work - it's driving me - forgive the halloween analogy - a bit BATTY!

Any idea why? Permissions on chat/js/custom.js are set to 755...

I can't get it to replace ANY words.

bump
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 25, 2009, 10:20:32 AM
Quote from: Surferbird on October 24, 2009, 06:50:29 PM
If you make mod, and upload it here for less experienced normal users it should work, this is not the place for workground
where you start to develope the mod. It is better to keep it away on own computer as long as it not work correctly. You must
agre to the above, otherway you are supporting bad mods.

Here is much mod files made by authors that work immediatly when you install it, i'll prise them. Should i prise this too, no way
because it cause so much harm on my forum (and others forum) 3 times that i never ever try it again. I'm not stupid to use half made mod.



Like many have said, this Mod works fine and it's clearly not a in beta. This is the 2nd most popular Mod on SMF. It's pretty complex and it works fine on THOUSANDS of sites. Of course there are going to be problems and that's what this support board is for. After looking through all you're posts I can't see where you ever asked to help getting this working on your site. As you can see this Mod has very good support where people are willing to help you...FOR FREE!!!

If you look at another very popular chat/shoutbox you'll notice that it has 285 pages of support. Does this mean they are bad Mods? No it simply means that they are popular, work very well and have lots of questions, usually on how to customize to a users liking. About 90% of the time if any Mod doesn't work, it's usually another mod that is interfering with it.

Glad to see that you got it uninstalled though thanks to the "hackers"
http://www.simplemachines.org/community/index.php?topic=344025.msg2324653#msg2324653
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 25, 2009, 10:26:14 AM
@ EroticJudg - Be sure to set the proper permissions for your member groups.

@ akl- how does it work on the default theme, do you have the same problem?

@  digit - this has been covered before somewhere here. I can't find it though. I believe SunKing got this going and that code was a little off. I will have to look around some to see where it's posted. might not even be on SMF, I can't remember LOL.                        
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: akl on October 25, 2009, 10:50:21 AM
FiYes, I checked and it has the same problem with the default theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 25, 2009, 11:39:20 AM
I repeat my question, cause it may be missed with the above discussion about de mod quality.

I found this error log file in the Shoutbox directory:

[24-oct-2009 09:56:10] PHP Warning:  Invalid argument supplied for foreach() in /home/hvpsn/public_html/foro/shoutBox/lib/class/AJAXChat.php on line 1461

Here is the line in AJAXChat.php:

function isAllowedToWriteMessage($id) {
      foreach($this->_onlineUsersData as $userData){
         //move to find user
         if($userData['userID'] != $id)
            continue;
         //found him ;)


Any ideas about what could be wrong?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: paulmagno on October 25, 2009, 04:03:58 PM
Quote from: scottdn on October 24, 2009, 10:16:48 AM
Quote from: paulmagno on October 24, 2009, 04:13:00 AM
Um...Thanks for the help, guys, but I'm right where I was before...all it said was to dosconnect Pretty URL or add a line to the SMF htaccess file...well, what is an SMF htaccess file and where do I find it...I'd like to keep Pretty URL more than I want to chat...

Now, I'm not even being allowed to re-apply my chat mod because I get error messages...

Does anyone know of a chat mod that doesn't require a Masters from MIT?

I struggled with the same issues.  Here are a few bullet points that may help.

1.  File/Directory permissions to the Chat Directory must be set to 755 on some hosts.  My host requires this as it will not serve pages with permissions greater then 666.   Incorrect file permissions will result in a 500 error when you attempt to launch the Chat link

2.  If you have a .htaccess file with mod rewrites but DO NOT have Pretty URLS or Seach engine friendly urls this will cause 404 errors in the chat window when you launch chat. 

3.  If you have Pretty URLS or Search Engine Friendly Urls turned on you will have an .htaccess file most likely in the root of your forum directory on your host.    Given that scenario if you are using chat with Pretty URL's for example you will need to add a RewriteRule to the .htaccess for your chat page.   Without the rewrite rule you will end up with the symptom of a blank user list,  text not posting,  etc...

Below is an example of the default pretty url .htaccess with the chat rewriterule at the bottom of the actions rules.    Please don't copy and paste this .htaccess as it may not work with your system.  This is just an example of what it should look like.  You can copy and paste the chat portion and add it to the action rules in your own .htaccess.


RewriteRule ^chat/?$ ./chat/index.php [L,QSA]




# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: October 5, 2009, 12:02

RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^(activate|admin|announce|ban|boardrecount|buddy|calendar|cleanperms)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|convertentities|convertutf8|coppa|deletemsg|detailedversion|display|dlattach)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(dumpdb|editpoll|editpoll2|featuresettings|featuresettings2|findmember|help|globalhf)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(helpadmin|im|jsoption|jsmodify|lock|lockVoting|login|login2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(logout|maintain|manageattachments|manageboards|managecalendar|managesearch|markasread|membergroups)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mergetopics|mlist|modifycat|modifykarma|modlog|movetopic|movetopic2|news)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notify|notifyboard|optimizetables|packageget|packages|permissions|pgdownload|pm)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(post|post2|postsettings|printpage|profile|profile2|quotefast|quickmod)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod2|recent|regcenter|register|register2|reminder|removetopic2|removeoldtopics2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(removepoll|repairboards|reporttm|reports|requestmembers|search|search2|sendtopic)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(serversettings|serversettings2|smileys|smstats|spellcheck|splittopics|stats|sticky)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(theme|trackip|admod|about:mozilla|about:unknown|unread|unreadreplies|viewErrorLog)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(viewmembers|viewprofile|verificationcode|vote|viewquery|who|\.xml)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS


Hope that helps.  Maybe it doesn't but it was my observations and the scenerios I ran into.

Thanks for your help, but I'm an old man and not a tech person at all. I didn't understand a word of what you just said ..Could there be a simpler way to fix this or another chat mod that is more user-friendly?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: automama on October 25, 2009, 06:20:42 PM
Hi,

I'm trying to install this on a 1.1.10 site but I doesn't seem to be installing properly. No changes occur in the front end and, no 'chat' on the top user menu and the options in the 'Features and Options' section in admin are all blank - just a list on tick boxes  :o

...am I missing something obvious or is something going wrong? I've tried re-installing a number of times and even downloaded the package again...but no change  :( Help!

TIA
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: YogiBear on October 25, 2009, 07:10:13 PM
I had this very same problem, automama. In the Error Log it said the English-British UTF-8 string had failed to upload plus a load of line 653 errors appeared - so I dumped it.

I'm sorry to sound so negative but I wish more mod authors would include UTF-8 strings as standard. Not everyone is good at coding and a Site Admin doesn't have quite the same powers as a Root Admin.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 25, 2009, 07:21:49 PM
@ automama

Quote from: Sabre™ on October 13, 2009, 01:29:45 AM
Install [THIS] (http://custom.simplemachines.org/mods/index.php?mod=615) mod and see if it helps.
It is probably just a language file(utf8 or another language) thing, the above mod will help to cease that happening visually.
If not, you will need to check if the language strings were added to the template(s).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Captain351 on October 25, 2009, 08:47:20 PM
I just can't get this mod to install on 1.1.10. I have redownloaded it and reuploaded it several times. I installed Ajax Chat and it works fine but I have no integration with SMF.

Every time I try to install the package the page flashes and comes right back to where it was. It won't even try to install. Any Ideas

Captain
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: German_AC on October 25, 2009, 09:48:03 PM
Well, NEVERMIND guys. I don't think a mod such problematic is recomended to anybody. And if you pay attention, the 223 pages are about the same few errors, but the real ones still unattended and unsolved. I was asking for help and what did i get? Nothing.

The solution? Uninstall this mod and install HacksPark ShoutBox ( http://custom.simplemachines.org/mods/index.php?mod=1295 ) wich work perfect, without any painful installation as any mod should do.

Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on October 25, 2009, 11:38:45 PM
@ Captain351
Do other mods install ok at the moment?
Are there Any errors in your log? If so, use the code tags( [ code][/ code] ) and insert them here.
When you say
Quote from: Captain351 on October 25, 2009, 08:47:20 PM
I installed Ajax Chat and it works fine but I have no integration with SMF.

Does this mean you uploaded the chat And shoutbox folders to the root of your forum, and that is working ok? Or are you speaking of another mod?

You could try manually installing the mod, by following [THESE] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1319;attach=112578;smf_version=1.1.10) instructions.

@ German_AC
Glad you found an alternative that works for you.
HacksPark ShoutBox is as it states, and this is a Chat Room mod which also adds a Shoutbox if preferred. But what users are looking for here is primarily the Chat Room integration.
So linking to a mod which doesn't provide what they are looking for(although with good intention :) ) is quite useless.
As I read back to see what you were ranting about, it seems your error may have come from a minor lack of insertion of code, quite fixable, but as you've moved on, it is not needed to be discussed.
Next time something similar happens, check that all of the code were inserted into their respective positions and/or templates.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fairytears on October 26, 2009, 01:41:45 AM
Hack's Parks Shoutbox doesn't work perfectly for me  :'(

Neither does this one  :'(
Title: Re: AjaxChat Integration
Post by: digit on October 26, 2009, 06:46:02 AM
Quote from: Chit-Chat ChatterBox Boss on May 27, 2009, 08:55:57 PM

SunKing and I had a question as far as the censor goes. His chat is integrated while mine is not. With the censor setup in both shoutbox and chat files his works in the chat but not in the shoutbox(with integrated chat/shoutbox). While mine works in the shoutbox but not in the chat (with non-integrated shoutbox/chat). Didn't know if you could play with this also and see where the problem was.


OK, I found the post by SunKing, related to the word censor....

http://www.simplemachines.org/community/index.php?topic=257973.msg2077143#msg2077143

However, it is still not working with my integrated chat.... like Chit-Chat ChatterBox Boss said, it IS working with the shout, but not the chat. 

Chit-Chat ChatterBox Boss - did you ever get it to work in your chat?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on October 26, 2009, 06:57:47 AM
I have an oddball thing happening...

I manually installed the chat...  I did NOT move the chat directory to the shoutbox directory...  I have no shoutbox directory!  YET, my shoutbox is working fine! (including the word censor oddly enough!)

I guess it pulls the files from the chat directory, so what is the purpose of moving the chat directory to the shoutbox directory?

from the parser....

Move the included file "Shout.template.php" to "./Themes/default".
Move the included file "Shout.english.php" to "./Themes/default/languages".
Move the included file "Shout.persian.php" to "./Themes/default/languages".
Move the included file "chat/css/shoutbox.css" to "./Themes/default".
Move the included directory "chat" to "the root directory".
Move the included directory "chat/css" to "./shoutBox".
Move the included directory "chat/flash" to "./shoutBox".
Move the included directory "chat/img" to "./shoutBox".
Move the included directory "chat/js" to "./shoutBox".
Move the included directory "chat/lib" to "./shoutBox".
Move the included directory "chat/socket" to "./shoutBox".
Move the included directory "chat/sounds" to "./shoutBox".
Move the included directory "chat/src" to "./shoutBox".
Move the included directory "shoutBox" to "the root directory".
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IngeJones on October 26, 2009, 07:26:21 AM
Yes, I am pretty sure my shoutbox folder is not being used at all.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: akl on October 26, 2009, 07:27:11 AM
Can anyone provide support to me?
I can't chat on the mod!
I have SMF 2 RC1.2 installed, everything's fine, and when I click chat at the nav bar, it opens asks for user pass etc then logs me in and i'm about type and then it logs me out!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: automama on October 26, 2009, 09:31:51 AM
Quote from: Sabre™ on October 25, 2009, 07:21:49 PM
@ automama

Quote from: Sabre™ on October 13, 2009, 01:29:45 AM
Install [THIS] (http://custom.simplemachines.org/mods/index.php?mod=615) mod and see if it helps.
It is probably just a language file(utf8 or another language) thing, the above mod will help to cease that happening visually.
If not, you will need to check if the language strings were added to the template(s).

Brilliant - that's done the trick, I can now see all the admin options. Thanks Sabre  :) ...however I'm getting masses of errors in error log that say: "Unable to load the 'Shout.english-utf8' language file."
Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on October 26, 2009, 09:40:10 AM
In Themes/yourtheme/languages, or Themes/default/languages, there should be a Shout.english.php file. Copy that to Shout.english-utf8.php.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: automama on October 26, 2009, 09:48:06 AM
Quote from: Arantor on October 26, 2009, 09:40:10 AM
In Themes/yourtheme/languages, or Themes/default/languages, there should be a Shout.english.php file. Copy that to Shout.english-utf8.php.

Thanks Arantor  :)

Can this be done from within the SMF admin or do I need to ask the board owner for access to the server admin?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Aleksi "Lex" Kilpinen on October 26, 2009, 09:50:20 AM
FTP or server admin panel's filemanager is probably the way to go.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: akl on October 26, 2009, 10:26:14 AM
Lex, any idea how to solve my problem?
Please :'(
Title: Is there a way to change the Chat button background color.
Post by: EroticJudge on October 26, 2009, 04:13:35 PM
Hi there, i installed AjaxChat Integration and was wondering if there is a way change background color of the Chat button, and only the Chat button?

Can anybody help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fairytears on October 26, 2009, 05:57:17 PM
Hello

I installed the chat and then the mod. I can see the chat box but nothing I post comes up   :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 26, 2009, 06:00:35 PM
Were there any errors on install.

Have the permissions been set ie folders chmodded to 755.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fairytears on October 26, 2009, 09:27:22 PM
Thanks for your reply  :)

There were errors for the Modsettings.php and the ManagePermissions but I edited them manually using the parser.

All folders are set to 755, only the individual files are set to 644

And I added this line to my .htaccess
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


Here's the chat's url

http://www.candycandyonline.com/foro/chat/index.php

user: test
password: pass123
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 26, 2009, 09:34:30 PM
Have you compared the themes files with the default theme?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Captain351 on October 26, 2009, 09:46:30 PM
QuoteDo other mods install ok at the moment?

Yes I have installed a dozen or so other mods and all of them but a few installed and work fine. No mod that I have tried to install has just done nothing after I click on "Install Mod" except this one.

QuoteAre there Any errors in your log? If so, use the code tags( [ code][/ code] ) and insert them here.

None that relate to this mod.

QuoteWhen you say
Quote from: Captain351 on Yesterday at 08:47:20 PM

    I installed Ajax Chat and it works fine but I have no integration with SMF.


Does this mean you uploaded the chat And shoutbox folders to the root of your forum, and that is working ok? Or are you speaking of another mod?

I installed Ajax Chat to a subfolder called "chat" off of the SMF folder. Should it be in the SMF folder? If I point my browser at smf\chat I get the index file and Ajax chat comes up. I can type something in and press enter and I see what I typed on the screen. I'm not really looking for the shout box functionality so I didn't install that.

QuoteYou could try manually installing the mod, by following [THESE] instructions.

I really don't want to try that. ??? O:) My PHP skills are very lacking I just don't think I'm ready to try that yet. I would much rather use the installer!

Captain
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fairytears on October 26, 2009, 09:47:29 PM
The custom theme I use only needs the index.template

I just edited it using the parser but when I saved it I got this

Parse error: syntax error, unexpected $end in index.template.php on line 567

Also, I tried to access the chat after this edit, and I got a pop up that said "object error"


******Edit******

I successfully edited the index.template, no errors now. I can see the chat option on the nav bar, I can see the user count in chat underneath the users online. But I can't post anything on the chat  :'(   :'(   :'(   I write something and the screen goes blank for a second like to refresh, and when it comes back the chat box is still empty  :'(   :'(    :'(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fairytears on October 27, 2009, 12:56:54 AM
Okay I got it to work finally  :D   I had to get rid of Pretty urls completely, this .htaccess line

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

was being ignored I guess.

Now, I would like to know how can I edit the button that says "shout" to make it say something else  O:)

Thank you

****Edit****

Nevermind, I found it  :D

Shoutbox -> lib -> template -> shoutbox.html
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: EroticJudge on October 27, 2009, 01:06:59 AM
Is there a way to change the color of the Chat Button or at least the text color of the chat button so its different from the rest of the buttons?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fairytears on October 27, 2009, 01:14:24 AM
I don't think so, I think it's automatically the same color as your browser  :-\

I have another problem  :'(

I'm getting a pop up that says "object error"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on October 27, 2009, 02:13:47 AM
Quote from: fairytears on October 27, 2009, 01:14:24 AM
I don't think so, I think it's automatically the same color as your browser  :-\

I have another problem  :'(

I'm getting a pop up that says "object error"

That is an IE error, has nothing to do with AJAX Chat
https://www.adaptavist.com/pages/viewpage.action?pageId=27723664
Title: Chat users being dumped from chat
Post by: newtech on October 27, 2009, 04:33:03 AM
Chat Users are randomly being dumped out of the chat room on a regular basis to the point the forum owner is frustrated. Any suggestions on what can be causing users to be dumped?

This happens when there as little as 2 users in the chat room or 5 users in the chat room.
Some of the errors that come up are:
(08:37:17) ChatBot: Error: Connection status: 12031
(09:09:47) ChatBot: Error: Connection status: 12152
(09:10:57) ChatBot: Error: Connection status: 500
(19:55:17) ChatBot: Error: Connection status: 2

One time they got the following error message when they were locked out of the chat room:
Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.

The hosting company is saying the errors are being caused by too many connections. How can there be too many connections when only two people are in the forum and chat room?

Note: I have created a seperate folder for avatars based upon documentation I read about avatars causing extra connections.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: XTR on October 27, 2009, 09:02:28 AM
Looking for some help here.
I'm running tiny portal on my site so my manage.permissions.php looks like this:

'profile_upload_avatar' => false,
'profile_remote_avatar' => false,
),
// TinyPortal
'tinyportal' => array(
'tp_settings' => false,
'tp_blocks' => false,
'tp_articles' => false,
),
'tinyportal_dl' => array(
'tp_dlmanager' => false,
'tp_dlupload' => false,
),
'tinyportal_link' => array(
'tp_linkmanager' => false,
),
'tinyportal_gallery' => array(
'tp_gallery' => false,
),
'tinyportal_team' => array(
'tp_teampage' => false,
)
),
'board' => array(


The install instructions say to mod the file to look like this:

'profile_upload_avatar' => false,
'profile_remote_avatar' => false,
),
'chat' => array(
'chat_access' => false,
'chat_mod' => false,
'shout_view' => false,
'shout_access' => false,
'shout_mod' => false,
)
),
'board' => array(

so, how do I mod this to make it work?  I've tried a couple of edits and so far aI haven't gotten the right combination.  Right now I am the only user who can see the chat window and I can't get into permissions to set it to another configuration.  There may be some other bugs (Like no chat button) but if I can get the permissions right it should be OK.

If I revert to the original manage.permissions.php file everything else seems to be ok.  (With the original permissions file I can see and use the chat shoutbox)

edit: Can someone out there offer some help?  I've tried a number of edits putting the chat=>array in front of and after the tinyportal =>array but I still haven't gotten it to work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SpeedForums on October 28, 2009, 08:46:20 PM
Quote from: ♪ JohnCcCcCc ♫ on October 24, 2009, 05:16:52 PM
Quote from: SpeedForums on October 24, 2009, 04:09:55 PM
I cannot install it, simply when i click apply mod it returns to package site..

Check the error log, if its full of errors, clear it, then try to install the mod again, then check the error log again, report back! :)

Nothing :S, I cannot install it  :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: XTR on October 30, 2009, 08:02:04 AM
I got someone to mod the permissions code for me.  I got it running

Next question...

Error: Connection status: 504


Anyone know what this one means?  I've got one user that can't connect and keeps getting this one.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Harriet on October 31, 2009, 01:35:34 AM
Quote from: SpeedForums on October 28, 2009, 08:46:20 PM
Quote from: ♪ JohnCcCcCc ♫ on October 24, 2009, 05:16:52 PM
Quote from: SpeedForums on October 24, 2009, 04:09:55 PM
I cannot install it, simply when i click apply mod it returns to package site..

Check the error log, if its full of errors, clear it, then try to install the mod again, then check the error log again, report back! :)

Nothing :S, I cannot install it  :(

I'm having the same problem. Tried increasing permissions, checking the error log, nothing reported there. Can anyone help?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Andrew Evenstar on October 31, 2009, 07:45:48 PM
Quote from: Harriet on October 31, 2009, 01:35:34 AM
Quote from: SpeedForums on October 28, 2009, 08:46:20 PM
Quote from: ♪ JohnCcCcCc ♫ on October 24, 2009, 05:16:52 PM
Quote from: SpeedForums on October 24, 2009, 04:09:55 PM
I cannot install it, simply when i click apply mod it returns to package site..

Check the error log, if its full of errors, clear it, then try to install the mod again, then check the error log again, report back! :)

Nothing :S, I cannot install it  :(

I'm having the same problem. Tried increasing permissions, checking the error log, nothing reported there. Can anyone help?

I have the same problem and I am using a custom theme.

Thanks,
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Perrorist on November 02, 2009, 12:58:21 AM
I have integrated Ajax Chat into SMF and it works fine with the default theme. I've also copied over three files (BoardIndex.template.php, index.template.php, and style.css) into the Dilber theme (as recommended by mrtrc266 in response to lundana in March), but an error occurs when I enter the board:

Fatal error: Call to undefined function getChatOnlineUserIDs() in [...]index.template.php

Any idea how to fix this?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kingkingston on November 02, 2009, 01:36:07 AM
Everything installs alright but i can't get it to work
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShawnH on November 02, 2009, 08:28:48 PM
i installed the mod ok, no errors in the install, and when i hit the chat button and the chat window opens i get it
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 Server at www.thefragrack.com Port 80

can you tell me whats going wrong please
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: EroticJudge on November 03, 2009, 02:12:56 AM
Hi there i recently uploaded AjaxChat and have opened ShoutBox for my members.

The shoutbox is located right below my main menu and below the shout box are my recent posts.

Question
Is there a way to make the shoutbox half the width that it already is and move the recent posts beside it on the left side and not below it.

Im new to this smf but learning as i go along.
Take a look at what im talking about. http://EroticLeague.com/welcome.html

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: king kratos on November 03, 2009, 02:43:13 PM
I installed this mod manually because when I attempted to use the package manager, it installed and said that it worked, but it didn't actually make any changes to the code.

That said, ever since I installed it, I continue to get errors in my error log showing "Undefined Index: chat" in my subs.php file. I looked at the link that it provided and this is what I get:

<?php
function setupMenuContext()
{
global $context$modSettings$user_info$txt$scripturl;

// Set up the menu privileges.
$context['allow_search'] = allowedTo('search_posts');
$context['allow_admin'] = allowedTo(array('admin_forum''manage_boards''sp_admin''sp_manage_settings''sp_manage_blocks''sp_manage_articles''sp_manage_pages''sp_manage_shoutbox''manage_permissions''moderate_forum''manage_membergroups''manage_bans''send_mail''edit_news''manage_attachments''manage_smileys'));
$context['allow_edit_profile'] = !$user_info['is_guest'] && allowedTo(array('profile_view_own''profile_view_any''profile_identity_own''profile_identity_any''profile_extra_own''profile_extra_any''profile_remove_own''profile_remove_any''moderate_forum''manage_membergroups''profile_title_own''profile_title_any'));
$context['allow_memberlist'] = allowedTo('view_mlist');
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
$context['allow_moderation_center'] = $context['user']['can_mod'];
$context['allow_pm'] = allowedTo('pm_read');
$num = empty($modSettings['enableChatButtonNo']) ? count(chatOnlineUsers());
$chatButton $txt['chat'];
$chatButton .= ($num 0) ?  ('('.$num.')') : '';
$chatLink str_replace("index.php""chat/index.php"$scripturl);
if (!empty($modSettings['chatPopUp']))
$chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';

$cacheTime $modSettings['lastActive'] * 60;

// All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
if (($buttonData cache_get_data('menu_buttons-' implode('_'$user_info['groups']) . '-' $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
?>



The section that is highlighted as being the error is:

<?php
$chatButton 
$txt['chat'];
?>



I am not sure what to do to correct this error. I have attempted to remove that line, but that removes the chat button from my menu, throws up 'Undefined Variable: chatButton" errors, and messes up the chat pop up window.

How to I correct this issue so my error log isn't filled with hundreds of pages of "Undefined Index: chat" errors. The error is logged every time the page is refreshed.

Thank you,
Kratos
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: king kratos on November 03, 2009, 03:40:40 PM
I now have a suggestion. I suggest that you change the menu button in Subs.php. I suggest that you make the following change:
CHANGE FROM:

<?php
'chat' => array(
'title' => $txt['chat'],
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),
?>


TO

<?php
'chat' => array(
'title' => $txt['chat'],
'href' => $chatLink,
'show' => allowedTo('chat_access'),
'sub_buttons' => array(
),
),
?>



I am making this suggestion because I feel that if a membergroup is not allowed to have access to the Chat Mod, then they should not even be able to see that it exists.

Kratos
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 03, 2009, 04:12:36 PM
Good suggestion there, king kratos, I like that idea :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 03, 2009, 04:14:53 PM
Indeed.
Very good. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShawnH on November 03, 2009, 04:51:30 PM
Quote from: ShawnH on November 02, 2009, 08:28:48 PM
i installed the mod ok, no errors in the install, and when i hit the chat button and the chat window opens i get it
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 Server at www.thefragrack.com Port 80

can you tell me whats going wrong please
anyone have any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: king kratos on November 03, 2009, 06:05:42 PM
Thanks, I have to give credit to Arantor for pointing me to his Permissions documentation, which helped me to learn how to restrict button views like this.

Kratos
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on November 03, 2009, 07:45:22 PM
My ajax chat mod had been working fine. I just tried to load it and now I get this error on a blank screen, and the SSI.php is untouched and where it normally is.

QuoteWarning: require(SSI.php) [function.require]: failed to open stream: No such file or directory in /home/fayt/public_html/Sources/Load.php(1746) : eval()'d code on line 2

Warning: require(SSI.php) [function.require]: failed to open stream: No such file or directory in /home/fayt/public_html/Sources/Load.php(1746) : eval()'d code on line 2

Fatal error: require() [function.require]: Failed opening required 'SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fayt/public_html/Sources/Load.php(1746) : eval()'d code on line 2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hardcase on November 04, 2009, 03:05:21 PM
Guys i know this has happened before and i had the same issue, but i cannot for the life of me find the relevant post or anything related to it!  :(

Anyway my site has been using chat for some months now with very little issue, i have not uploaded any new mods or anything of the sort. But my chatroom no longer displays the text that people type, i have tried it myself both as a normal member and admin, yet nothing is displayed.

Any help appreciated or just point me in the right direction!

Thanks  :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on November 04, 2009, 03:53:11 PM
Quote from: Hardcase on November 04, 2009, 03:05:21 PM
Guys i know this has happened before and i had the same issue, but i cannot for the life of me find the relevant post or anything related to it!  :(

Anyway my site has been using chat for some months now with very little issue, i have not uploaded any new mods or anything of the sort. But my chatroom no longer displays the text that people type, i have tried it myself both as a normal member and admin, yet nothing is displayed.

Any help appreciated or just point me in the right direction!

Thanks  :D

It sounds like something is going on with your htaccess file...  try renaming it to something OTHER than .htaccess and try again.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Perrorist on November 04, 2009, 04:07:20 PM
Quote from: Perrorist on November 02, 2009, 12:58:21 AM
I have integrated Ajax Chat into SMF and it works fine with the default theme. I've also copied over three files (BoardIndex.template.php, index.template.php, and style.css) into the Dilber theme (as recommended by mrtrc266 in response to lundana in March), but an error occurs when I enter the board:

Fatal error: Call to undefined function getChatOnlineUserIDs() in [...]index.template.php

Any idea how to fix this?

Bump.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hardcase on November 05, 2009, 04:06:31 PM
Digit tried renaming the file no such luck, even deleted it but no joy, any other suggestions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ardd on November 05, 2009, 04:34:19 PM
I'm having what is likely a stupid simple problem, although I have already referred to the FAQ and searched the topic I can't seem to find an answer perhaps someone could point me in the right direction.

I installed the mod, the shoutbox works fine in my theme (Anecedota) there is no chat button there in that particular theme though. When I switch to the default theme the chat button is there and works great.   

I can't find thte button code in the default theme and I have not been able to construct a button code that works in that theme, I can get the button visible but it does not fire up chat in a new window as I have checked in the admin panel. I need to get the button code or get pointed at where the code is in default so I can copy it to the theme (if this will work)

Using SMF 1.1.10  Hypercrites.org

Thanks and sorry if this has been asked I just can't find the info :)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 05, 2009, 05:18:09 PM
Search in your themes index.template.php for
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

and add chat to the end like so
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'chat')))

Then look for any place within your button section, I'd look for this
// The [calendar]!
if ($context['allow_calendar'])
echo '<li', $current_action == 'calendar' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';


and place this after it
// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
    echo '<li', $current_action == 'chat' ? ' id="chosen"' : '', '><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a></li>';


See if that works.
If not, you could attach your index.template.php and I or another will have a look at it for you.
Good luck :)

Beneath every mod download section, there is a part which states "Manual Install Instructions for SMF", this is where you'll find what code to add.
Some theme buttons are structured different though, such as yours
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: StarvingRussian on November 05, 2009, 07:51:46 PM
I've been using this mod on my site for about 3 months and it's great.

Today we were chatting and one of the admins noticed that whenever you clicked submit or hit enter, the status bar at the bottom left of the internet browser would say "waiting for scooteringusa.com". It's a scooter blog.

I refreshed and it went away and the chat got a little faster after that. I've never seen it happen before.

Any idea on what could have caused this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 07, 2009, 05:29:54 AM
i install it but what to do next please help me...!!!!!?
i can see the shout box in the simpleport section of the administrator board
when i click on it i have  addshout box and shoutbox list
in the shoutbox list there is the shoutbox i already made i mean add and the status is activated but still don't appear in the forum or portal...
please help me.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mlsred on November 07, 2009, 12:36:55 PM
Hi

Any idea why I don't get any text in the settings area? See attachment.

Thanks
M
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 07, 2009, 12:38:23 PM
mlsred: What language are you using?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hardcase on November 07, 2009, 12:47:27 PM
Ok further to my disappearing text i have now received a members error report when he logged in:

Timestamp: Fri, 6 Nov 2009 21:23:01 UTC


Message: Expected ')'

Line: 12

Char: 73

Code: 0

URI: http://www.hmsresolution.org.uk/forum/chat/js/custom.js


any ideas gents or this just a red herring?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mlsred on November 07, 2009, 01:47:08 PM
Quote from: Arantor on November 07, 2009, 12:38:23 PM
mlsred: What language are you using?

Thanks for the reply, just changed to English and all is working.. Sorry I did search the forum but couldn't find it  :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 07, 2009, 07:38:52 PM
please any help here !??

the ajax don't appear on the forum what to do !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ardd on November 08, 2009, 01:44:51 AM
Quote from: Sabre™ on November 05, 2009, 05:18:09 PM
Search in your themes index.template.php for
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

and add chat to the end like so
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'chat')))

Then look for any place within your button section, I'd look for this
// The [calendar]!
if ($context['allow_calendar'])
echo '<li', $current_action == 'calendar' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';


and place this after it
// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
    echo '<li', $current_action == 'chat' ? ' id="chosen"' : '', '><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a></li>';


See if that works.
If not, you could attach your index.template.php and I or another will have a look at it for you.
Good luck :)

Beneath every mod download section, there is a part which states "Manual Install Instructions for SMF", this is where you'll find what code to add.
Some theme buttons are structured different though, such as yours
Thanks Sabre, the button code didn't quite work but it was a great starting point, it was functional but displayed a tiny button without the right color or size text. A little messing around resulted in this:
// How about the [Chat] button?
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
   echo '<li', $current_action == 'Chat' ? ' id="chosen"' : '', '><a href="', $chatPath, '?action=chat" target="_blank"', $scripturl, '?action=chat"><span>' , Chat , '</span></a></li>';


This seems to be both functional and display right.

I still don't know jack but after getting really lucky with this and the arcade button I am seriously considering stocking up on lotto tickets :)

Anyhow I hope that button code is useful to someone else as well. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 08, 2009, 02:28:54 AM
I had Errors Appears !!!  :(( didn't work and hall forum not working any more!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 08, 2009, 06:33:40 PM
is it because i am new no one gonna help me or what ??   >:(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 08, 2009, 07:23:32 PM
@ ardd
Arrgg, sorry bud, I forgot to add the span tags lol
This should help it perform 'all' of it's designed functions, if you choose to use them.
   // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
    echo '<li', $current_action == 'chat' ? ' id="chosen"' : '', '><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>';


@ NaWaR
digit is correct.
You have not provided any information besides 'I had Errors Appears'.
What were the errors you speak of?
Please take a little time to read [THIS] (http://docs.simplemachines.org/index.php?topic=494.0) and [THIS] (http://docs.simplemachines.org/index.php?topic=493.0).
They will enable people to assist you with more efficiency.

Cheers :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 08, 2009, 11:21:27 PM
Quote from: NaWaR on November 07, 2009, 05:29:54 AM
i install it but what to do next please help me...!!!!!?
i can see the shout box in the simpleport section of the administrator board
when i click on it i have  addshout box and shoutbox list
in the shoutbox list there is the shoutbox i already made i mean add and the status is activated but still don't appear in the forum or portal...
please help me.
thank you
thank you sabre
i posted this before but no answer i had so i will explain more
i did install the ajax shoytbox from packages and then i get new option in the admin panel
and i add new shoutbox as i should, but i didn't get any result, the shout box didn't appear in the forum or in the portal link to the forum is  www.forum.4syr.com
do i have to make any changes to the forum files?
what to do to make the shoutbox appear in the forum?
thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 08, 2009, 11:25:51 PM
You will need to add it to your theme manually, that's why it doesn't appear. This is a common issue in 1.1.x mods. (Please also update to 1.1.10 as soon as convenient for a security patch)

Please see: Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 09, 2009, 12:00:02 AM
can i give you the admin permition and you do it for me ?

if yes : just register please and give me the username then i make you admin

if yes or no , thank you anyway
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ArizerXion on November 09, 2009, 05:32:45 AM
Can you help me?
I have been to instal this mod.. but..
When I enter a chat.. the text not displayed or not function.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 09, 2009, 07:37:22 AM
@ NaWaR
Look [HERE] (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1319;attach=112578;smf_version=1.1.10) to make the edits to your themes BoardIndex.template.php and index.template.php.
For your button, you will need to create an image, name it chat.png and add it to the themes images/english folder.

Here is the code for your button.
     // the [chat] button
     $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
     $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo '<li><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', ' class="kwick opt6">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.png" alt="' . $txt['chat'] . '" style="margin: 0px 0;" border="0" /><span>' : $txt['chat']), '</span></a></li>';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 09, 2009, 07:58:43 AM
where to use the button code? in the board.template or index.template?
and can't find

         // But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 09, 2009, 08:44:02 AM

Parse error: syntax error, unexpected '<' in .../Themes/default/BoardIndex.template.php on line 101

92: // ]]></script>
93:
94: <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/fader.js"></script>
95: </td>
96: </tr>
97: </table>';
98: }
99:
100: // Chat box

101: <div><embed src="http://4syr.st.chatango.com/mini" bgcolor="#F5F5DC" width=600 height=150  type=application/x-shockwave-flash  allowScriptAccess='always' allowNetworking='all' allowFullScreen='true'  flashvars="k=1&c=FF0000&n=00008B&f=11&b=0xF5F5DC"/><br><a href="http://chatango.com/signupmini"><img src="http://st.chatango.com/images/s.gif" border=0></a></div>

102:
103:
104:
105:
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 09, 2009, 08:47:28 AM
Line 101 should be:

echo '<div><embed src="http://4syr.st.chatango.com/mini" bgcolor="#F5F5DC" width="600" height="150"  type="application/x-shockwave-flash"  allowScriptAccess="always" allowNetworking="all" allowFullScreen="true"  flashvars="k=1&c=FF0000&n=00008B&f=11&b=0xF5F5DC"/><br><a href="http://chatango.com/signupmini"><img src="http://st.chatango.com/images/s.gif" border=0></a></div>';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 09, 2009, 09:37:59 AM
The code I mentioned, add it in your index.template.php before this line
  // The [calendar]!

Remember, you must make an image, and name it chat.png
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Daegaladh on November 09, 2009, 10:54:28 AM
How to remove this? I've been searching but cant find where is :S

<div id="ShoutBox">
 <div class="tborder" style="margin: 1px 0pt 0pt;">
<div id="ajaxChatContent">



Wtf is that 

It's weird... @_@

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: malcomxar on November 09, 2009, 01:33:13 PM
Hello! nice mod btw!

Is it posible to restrict urls so they can't be sent in the chat?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 09, 2009, 03:35:22 PM
still have  Template Parse Error!
There was a problem loading the /Themes/extreme61/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected '<'

on the theme extreme6
but when i change to the default theme forum works.. but for sure without the ban link in post or the ajax chat!

thank you all for all your support and help and thank you for replays

P.S : still waiting for answer how to fix this ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 09, 2009, 03:54:58 PM
Attach your boardindex.template.php.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 09, 2009, 04:08:34 PM
thanks man for all your support :) i know i am bothering but what to do i dunno how 2 php!

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: decibel on November 09, 2009, 04:14:32 PM
Hello all,
My Achat is versie 1.04 for SMF 1.1.10, i can see the chat button on the forum, but if a write down some then i got the error no Achat table for database,
Question, how to made this manualy or witsch file have had tot do it for me?

thank you,
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 09, 2009, 04:30:00 PM
NaWaR, there is nothing wrong with that template.
I returned your PM.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 09, 2009, 04:33:55 PM
Decibel.
Did you manually install the mod?
If I'm reading your post correct, upload the Tables_1.1.X.php from the mod package, to the 'root' of your forum, and execute the file from your browser.
eg. http://your site name here.com/Tables_1.1.X.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 09, 2009, 05:04:51 PM
wow thank you everything works perfectly .. i love you man and love smf...

thanks alot man .. for all the fast support

but still not chatbox :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 09, 2009, 05:39:24 PM
Ok buddy.
Everything is functional, you need to change the test image I used for the chat button(use the psd file within the theme package), and you need to contact your host for the error 500, that is a server side issue, they will be better to explain what is going on if they log the errors. Another option is to switch to a host that has their servers configured to your liking.
I also added an .htaccess file to help with other things.
You need to remove the duplicates in your site eg. themes, templates etc..

Good luck :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 09, 2009, 05:55:56 PM
it's working thank you so much .. everything

man you are the one  thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 09, 2009, 06:01:03 PM
Sabre did you add this to his .htaccess? In some cases that gets rid of the 500 error.

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 09, 2009, 06:07:17 PM
After checking, his server does not allow you to add .htaccess
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 09, 2009, 06:08:42 PM
Quote from: NaWaR on November 09, 2009, 05:55:56 PM
it's working thank you so much .. everything

man you are the one  thanks

My pleasure buddy :)
Please take into consideration the information I offered regarding cleaning the duplicates.
It will make things alot easier for you. Even I got lost when I first entered lol

Good luck mate :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 09, 2009, 06:19:57 PM
You are so gentle...  thank you man for your time "RESPECT"
if there is anything i can do for you.. it won't return your favors but anything for sabre...

Sabre the Kind   :-*
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: anto74 on November 10, 2009, 03:40:21 AM
Hi mrtrc266,
thanks again for this mod!
I'm testing my SMF RC2 updated forum and i'm reinstalling MOD....your MOD works ok with RC2?
Sorry for my english!
Antonio
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ardd on November 10, 2009, 04:17:18 AM
Quote from: Sabre™ on November 08, 2009, 07:23:32 PM
@ ardd
Arrgg, sorry bud, I forgot to add the span tags lol
This should help it perform 'all' of it's designed functions, if you choose to use them.
   // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
    echo '<li', $current_action == 'chat' ? ' id="chosen"' : '', '><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>';


Cheers :)
Thanks so much for the help with the button code! I'm learning quite a bit from looking at what works well (the above code works well!) and from my failures lessons :)

I'm working on an arcade button now comparing your code for the chat button with the themes buttons, (Anecdota) both are very different. I'm getting quite a few "lessons" as I try to point the button on the right direction. If I can't get it by tomorrow I'll try to find or post an "arcade button" topic  to ask in.

Best Regards
Ardd
 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: decibel on November 10, 2009, 08:02:40 AM
Hello Sabre,
Yes, i download the mod Achat version 0.21 manually  and tryit to make it works, i have upload it in the smfforum directory like http://www.mysite.nl/smforum/Achat_021

I dont have found Tables_1.1x.php in this package?

The template and index.php are edited like we reading a few post ago,
Maybe ill have to try it via the admin/package page if this works?

Thanks for you attention,

grtx,

Quote from: Sabre™ on November 09, 2009, 04:33:55 PM
Decibel.
Did you manually install the mod?
If I'm reading your post correct, upload the Tables_1.1.X.php from the mod package, to the 'root' of your forum, and execute the file from your browser.
eg. http://your site name here.com/Tables_1.1.X.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 10, 2009, 08:13:51 AM
This is the area for the AjaxChat mod, the area you need to follow and forward questions to is [HERE] (http://www.simplemachines.org/community/index.php?topic=119227.0).
That is a different modification buddy :)
The mod author has returned to assist you with any issues youre having with that mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: decibel on November 10, 2009, 08:25:10 AM
Hello Sabre,

Sorry for my question in this topic here, i dint knowing,  :-[
But  in the other topic they have trobs to, is this topic chat to use with smf1.1.10 ?

grtx,
ttyl,


Quote from: Sabre™ on November 10, 2009, 08:13:51 AM
This is the area for the AjaxChat mod, the area you need to follow and forward questions to is [HERE] (http://www.simplemachines.org/community/index.php?topic=119227.0).
That is a different modification buddy :)
The mod author has returned to assist you with any issues youre having with that mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 10, 2009, 08:35:17 AM
It is ok buddy, I didn't realise that mod existed, so I thought you were in the correct area also lol
The author of AChat is updating and modifying his mod, so many of the errors some are experiencing, may be resolved with the update.
I'd say to wait until it is updated :)
Yes this modification is also for smf 1.1.10.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: decibel on November 10, 2009, 08:51:41 AM
Hello Sabre,
i went to go the 1e message en followed the link to a testversion of 321, i like it and go further here, luckly i have a clean index and templateinde.php here so i started new again, 8)

Thanks again and i hope you never to see again here, because i have trobs with mine chatroom, :D
You doing good things here,
Bye for now,


Quote from: Sabre™ on November 10, 2009, 08:35:17 AM
It is ok buddy, I didn't realise that mod existed, so I thought you were in the correct area also lol
The author of AChat is updating and modifying his mod, so many of the errors some are experiencing, may be resolved with the update.
I'd say to wait until it is updated :)
Yes this modification is also for smf 1.1.10.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 10, 2009, 09:14:36 AM
@ ardd
Just mirror the other buttons code, and change the action and text, if it has permissions, modify it accordingly(usually doesn't need to be).
eg.
   // The [calendar]!
   if ($context['allow_calendar'])
   echo '<li', $current_action == 'calendar' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';


then modify it to
   // Arcade
   echo '<li', $current_action == 'arcade' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=arcade"><span>' , $txt['arcade'] , '</span></a></li>';


All the required information would be found in its thread, but this is a little guide on how to add buttons to your theme in the future.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 10, 2009, 12:07:37 PM
Quote from: anto74 on November 10, 2009, 03:40:21 AM
Hi mrtrc266,
thanks again for this mod!
I'm testing my SMF RC2 updated forum and i'm reinstalling MOD....your MOD works ok with RC2?
Sorry for my english!
Antonio

LOL thank you, but I didn't make this mod. It hasn't been updated yet on the mod site and I haven't tested it to see if it will work with RC2. It should be updated soon though...we hope.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 10, 2009, 12:18:12 PM
To be honest I doubt it will, not without some serious tweaking because it builds very much a Core-theme look, which doesn't fit in Curve's code very well and even if it did, it'd look ugly IMO.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ardd on November 10, 2009, 01:38:42 PM
Quote from: Sabre™ on November 10, 2009, 09:14:36 AM
@ ardd
Just mirror the other buttons code, and change the action and text, if it has permissions, modify it accordingly(usually doesn't need to be).
eg.
   // The [calendar]!
   if ($context['allow_calendar'])
   echo '<li', $current_action == 'calendar' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=calendar"><span>' , $txt['calendar24'] , '</span></a></li>';


then modify it to
   // Arcade
   echo '<li', $current_action == 'arcade' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=arcade"><span>' , $txt['arcade'] , '</span></a></li>';


All the required information would be found in its thread, but this is a little guide on how to add buttons to your theme in the future.
Thanks Sabre!
The button for the arcade works well, and displays correctly but there,s a fly in the ointment (they put them in the ointment for "texture"):) 

The address above the arcade (and on all pages except "Home") now displays like this "Hypercrites​.OrgÃ� Ã�»Ã� Arcade" in IE and similarly in Firefox. Being the tidy folk we are we don't want anyone to think we left out the domino's when we used the game room.

I have searched for "arcade" posts, most of what I have found either is outdated or doesn't apply. I have several other questions about the Button coding as doing this is leading to a greater overall understanding of how everything works together and may limit future questions on basics. This is very important to me as I don't want the other posters to call me nOOb and give me wedgies.

Is the Mods and Packages forum a good place to post a thread on this?  I don't want to clutter up the Ajax thread with unrelated info or make it hard for someone else who needs this info to find it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ardd on November 10, 2009, 01:46:11 PM
Quote from: mrtrc266 on November 10, 2009, 12:07:37 PM
Quote from: anto74 on November 10, 2009, 03:40:21 AM
Hi mrtrc266,
thanks again for this mod!
I'm testing my SMF RC2 updated forum and i'm reinstalling MOD....your MOD works ok with RC2?
Sorry for my english!

Antonio
I have a 2.0 RC2 test forum up and will let you know how it works when I try an install later today or tomorrow, I'll look at it in core and curve and report back if this would be helpful.

I'm very new to this but willing to give any help I can for the help I have and am receiving. I probably can't offer much technically as I am still low in the learning curve but am willing and able to post error logs and screen shots or whatever you may need in that arena. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 10, 2009, 02:20:47 PM
Quote from: Arantor on November 10, 2009, 12:18:12 PM
To be honest I doubt it will, not without some serious tweaking because it builds very much a Core-theme look, which doesn't fit in Curve's code very well and even if it did, it'd look ugly IMO.

Yeah, it seems like it will take quite a bit for to work with RC2, will just have to wait for Hunter to update it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 10, 2009, 02:25:18 PM
It's only really the look and integration onto the page; the underlying code won't be touched, I expect.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 10, 2009, 02:29:55 PM
Quote from: Arantor on November 10, 2009, 02:25:18 PM
It's only really the look and integration onto the page; the underlying code won't be touched, I expect.

There were a lot of "tests failed" on a fresh upgrade of RC2

./Sources/BoardIndex.php
./Sources/Load.php

and then of course the theme files.
./Themes/default/index.template.php
./Themes/default/BoardIndex.template.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 10, 2009, 02:34:14 PM
Ardd what text editor did you use to edit the file? Some can really screw things up.

Notepad++ (http://sourceforge.net/projects/notepad-plus/files/) seems to be a favorite around here

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ardd on November 10, 2009, 03:38:09 PM
Quote from: mrtrc266 on November 10, 2009, 02:34:14 PM
Ardd what text editor did you use to edit the file? Some can really screw things up.

Notepad++ (http://sourceforge.net/projects/notepad-plus/files/) seems to be a favorite around here


I modified the code in the Themes and layout settings/Edit Theme - index.template.php section of the admin panel by cutting and pasting in the code Sabre graciously provided.

I have made MANY attempts with various buttons, some work well such as the Music button that links to an HTML page, some have worked in a dysfunctional manner,  some worked well but generated errors in the error log, some where just kaput. It takes a while to ftp the file I'm working with up and down so I have just stuck with using the on board editor...so far. 

The paste of the Arcade button code didn't add anything I can see. Does this method sometimes add things you can't see or produce "wonky" results such as I am having?

I'm going to get notepad++ from source forge (lol@ "reducing the world carbon dioxide emissions" in the descritption.) and use it for edting when needed. Thanks for the link.

I have a zillion questions about the button coding, what points what to where and what the function of specific expressions are. I may be up to my 10,00th post before my curiosity quenched.  Is there a good forum here for this?

Thanks for the heads up on the editors!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Robert F on November 10, 2009, 04:33:16 PM
I just installed the chat box within my 1.1.10 forum.

So far I like it. But it would be even better if I could tweak the colour a little.

I would like to change the main content screen from pure white to another colour which matches my forum. Can this be done and how?

Thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 10, 2009, 04:46:58 PM
Quote from: forbescreatives on November 10, 2009, 04:33:16 PM
I just installed the chat box within my 1.1.10 forum.

So far I like it. But it would be even better if I could tweak the colour a little.

I would like to change the main content screen from pure white to another colour which matches my forum. Can this be done and how?

Thank you.

You can play with the colors by editing .../chat/css/shoutbox.css

You will also have to do the same to .../shoutBox/css/shoutbox.css if your dont have the shout and shout intergrated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 10, 2009, 04:48:44 PM
@ Ardd, looks like something went awry, do you happen to have a backup to replace your edited file with to see if that fixes it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 10, 2009, 04:56:16 PM
Quote from: mrtrc266 on November 10, 2009, 02:20:47 PM
Yeah, it seems like it will take quite a bit for to work with RC2, will just have to wait for Hunter to update it.

Briefly looking at it, there doesn't seem to be a large amount to change, but I guess we can ask if he is working on it. If not, I'm sure he wont mind if somebody updates it to work for RC2, until he officially releases the package.

@ ardd
That's a pretty strange issue.
You can create a topic in [THIS] (http://www.simplemachines.org/community/index.php?board=60.0) board for support for it, or in its official thread located [HERE] (http://www.simplemachines.org/community/index.php?topic=29619.0).
I and others will follow it there buddy, so as to not flood this section :)
For now, remove that code, then point to the arcade in your browser..
eg. h**p://your site name.com/index.php?action=arcade

Still the same?
I suspect it will be, but you never know.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 10, 2009, 05:02:05 PM
Quote from: Sabre™ on November 10, 2009, 04:56:16 PM
Quote from: mrtrc266 on November 10, 2009, 02:20:47 PM
Yeah, it seems like it will take quite a bit for to work with RC2, will just have to wait for Hunter to update it.

Briefly looking at it, there doesn't seem to be a large amount to change, but I guess we can ask if he is working on it. If not, I'm sure he wont mind if somebody updates it to work for RC2, until he officially releases the package.

I'm sure he would be grateful to have someone port it and attach here until he can get around to it

I've had to do that in the past for a cpl versions. I wouldn't know what to do w/ this one though.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Robert F on November 10, 2009, 05:24:09 PM
Thank you.

Problem fixed. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on November 10, 2009, 05:30:45 PM
Quote from: mrtrc266 on November 10, 2009, 05:02:05 PM
I'm sure he would be grateful to have someone port it and attach here until he can get around to it
I've had to do that in the past for a cpl versions. I wouldn't know what to do w/ this one though.

Yeah, I do this quite often for mods that have been left to the side, then remove the package once it is officially ported, or another takes over the mod.
I removed my smf2 version of a mod when another took over to update it, but they have yet to port it, and I forgot to save a copy of my version for myself lol
So I'm waiting for them to update it, as re-writing it was a hell of a job! And I'm saving myself the headache lol
(brain spurt)
Just realised that I can ask one of the members that downloaded my version lol
Back to bed I roll..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Donnie_K on November 10, 2009, 05:44:47 PM
When you port it, make sure the shoutbox works... lol, My members have been throwing a fit since I upgraded because there's no shoutbox now...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on November 10, 2009, 05:49:54 PM
Quote from: Donnie_K on November 10, 2009, 05:44:47 PM
When you port it, make sure the shoutbox works... lol, My members have been throwing a fit since I upgraded because there's no shoutbox now...

I dont think anybody would make it "not work".
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ardd on November 10, 2009, 05:50:28 PM
Quote from: mrtrc266 on November 10, 2009, 04:48:44 PM
@ Ardd, looks like something went awry, do you happen to have a backup to replace your edited file with to see if that fixes it?
No (kick me now) but I can edit it out and see if it stops.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Donnie_K on November 10, 2009, 05:57:50 PM
Quote from: ♪ JohnCcCcCc ♫ on November 10, 2009, 05:49:54 PM
I dont think anybody would make it "not work".

I would imagine not... But I know before the latest version it never worked on my 2.0 rc1.2 either. Chatroom still works on mine, just the shoutbox and buttons are gone now that I upgraded to RC2.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ardd on November 10, 2009, 06:52:38 PM
Quote from: Sabre™ on November 10, 2009, 04:56:16 PM
@ ardd
That's a pretty strange issue.
You can create a topic in [THIS] (http://www.simplemachines.org/community/index.php?board=60.0) board for support for it, or in its official thread located [HERE] (http://www.simplemachines.org/community/index.php?topic=29619.0).
I and others will follow it there buddy, so as to not flood this section :)
For now, remove that code, then point to the arcade in your browser..
eg. h**p://your site name.com/index.php?action=arcade

Still the same?
I suspect it will be, but you never know.
You read the tea leaved correctly still the problem persists, I'll start a thread in the " SMF Coding Discussion " forum called "SMF 1.1.10 button coding" to continue from there. Thanks to you and mrtrc266 for the help. I think I found it but it's still very, very strange I'll post about it there shortly.

PS please feel free to move or have moved any clutter from here to the new thread :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: VSG on November 11, 2009, 03:23:31 AM
Hi, guys!

I took the liberty of adjusting the AjaxChat add-on for RC2 - at least I think I did.
Running two websites I have to say I'm no programmer and no coder, although I know a little about PHP and HTML. I took a look at the version differences between RC1-2 and RC2, especially with the files that posed the problem with the package.

My package installed fine here on my local installation using XAMPP and I plan on uploading this to my server on the weekend. Other Mods previously installed were the "Favorite Boards" and "Hide Tag Special", both for RC2.

Feel free to try it, although I would recommend opening the chat-window in a popup-page - haven't tested the shoutbox yet.

Best regards,
VSG
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nachtfalke on November 11, 2009, 08:34:31 AM
Sorry but nothing happens...  No action to find.... :(

Still need it as soon as possible because the chat-function is the most important mod at my forum...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: derelicta on November 11, 2009, 01:43:20 PM
Hi there, can anyone help me to understand if there is a way to keep more lines inside the shoutbox. I mean on average on my shoutbox appear only a few of the last messages written by members. There's no such "max chronology messsages" parameter to set.
AjaxChat works fine on all themes, and shoutbox too, it's a great MOD, just the shoutbox has this problem.
Thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: VSG on November 11, 2009, 04:09:47 PM
Quote from: Nachtfalke on November 11, 2009, 08:34:31 AM
Sorry but nothing happens...  No action to find....

Sorry, forgot to update the installer-info - you would have to select compatibility-mode in package-installer.
I modified this for easier install. See attachment - tried it again here, works like a charm, including the shoutbox.

Best regards,
VSG
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Donnie_K on November 11, 2009, 04:29:54 PM
Works perfectly! thank you!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Carlos Gandra on November 11, 2009, 04:37:17 PM
Hi there,

Well, after I was unsuccessful with Hark's Park Shoutbox, now it appears that this Ajax Chat doesn't like me either... the problem is that shoutbox shows blank and nothing i can write appears on it. I've tried 4 different browsers, didn't work.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thecraftyforum.com%2Fimagens%2Fchatproblem%2F01.jpg&hash=099f03e9f695e164a520f9b9efbc2e38d5967788)

And nothing...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thecraftyforum.com%2Fimagens%2Fchatproblem%2F02.jpg&hash=1678211c9f87077aa99d40bbcedafd8d78ac1c3f)

...and nothing...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thecraftyforum.com%2Fimagens%2Fchatproblem%2F03.jpg&hash=133081861264c242a181361160404584566bd1d8)

Damn :(

Below is my configs:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thecraftyforum.com%2Fimagens%2Fchatproblem%2F04.jpg&hash=f9fd4f7305f731af3c0bdaa5523461d2d20ae3de)

I'll try also the modification for Pretty URL's (which I use in fact):
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thecraftyforum.com%2Fimagens%2Fchatproblem%2F05.jpg&hash=1cd58f8590eda5b2c946972ccbe704e3cd2d2902)

I've checked permissions to and changed chat/index.php and shoutbox/index.php to 755

Please give me an hand :)


EDIT:
Well... forget, already solved. That line on .htaccess shouldn't be at the end but at the top, above all other Pretty URL's "instructions". Weird, but true :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fairytears on November 11, 2009, 09:04:56 PM
Hello

When using the shoutbox sometimes the name of the member doesn't display, instead some numbers in parenthesis display. How can I solve this problem. Only members are supposed to have permissions for using the shoutbox.

Sorry if this has been asked before but the thread is too long and I already used the search box and can't find anything.

Thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 12, 2009, 01:37:30 AM
Quote from: derelicta on November 11, 2009, 01:43:20 PM
Hi there, can anyone help me to understand if there is a way to keep more lines inside the shoutbox. I mean on average on my shoutbox appear only a few of the last messages written by members. There's no such "max chronology messsages" parameter to set.
AjaxChat works fine on all themes, and shoutbox too, it's a great MOD, just the shoutbox has this problem.
Thank you.

If I understand you question correctly you want more messages to appear when a user logs into the chat?

If so I believe this is it....

Find and change your liking... /chat/lib/config.php

// Defines how many logs are returned on each logs request:
$config['logsRequestMessagesLimit'] = 10;


Also look at many other custom edits in there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 12, 2009, 01:40:59 AM
Quote from: fairytears on November 11, 2009, 09:04:56 PM
Hello

When using the shoutbox sometimes the name of the member doesn't display, instead some numbers in parenthesis display. How can I solve this problem. Only members are supposed to have permissions for using the shoutbox.

Sorry if this has been asked before but the thread is too long and I already used the search box and can't find anything.

Thank you

You are sure that guests do not have permission to access the chat/shout?

If they are unchecked in your permissions then also try to play with these settings

/chat/lib/config.php try changing to false
// Enable/Disable guest logins:
$config['allowGuestLogins'] = true;
// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
$config['allowGuestWrite'] = true;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nachtfalke on November 12, 2009, 02:17:24 AM
Fantastic but one error: I wanted the chat to open in a new window but after klicking nothing happens.

http://www.findet-tanjagraeff.de/smf2/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 12, 2009, 02:20:24 AM
Quote from: Nachtfalke on November 12, 2009, 02:17:24 AM
Fantastic but one error: I wanted the chat to open in a new window but after klicking nothing happens.

http://www.findet-tanjagraeff.de/smf2/index.php

It just opened in a popup window for me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nachtfalke on November 12, 2009, 02:23:59 AM
Thanks for support - it was my mistake... fu***ing windows 7 :)

EVERYTHING IS FINE - THANK YOU SO MUCH !!!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: derelicta on November 12, 2009, 12:55:52 PM
Quote from: mrtrc266 on November 12, 2009, 01:37:30 AM
Quote from: derelicta on November 11, 2009, 01:43:20 PM
Hi there, can anyone help me to understand if there is a way to keep more lines inside the shoutbox. I mean on average on my shoutbox appear only a few of the last messages written by members. There's no such "max chronology messsages" parameter to set.
AjaxChat works fine on all themes, and shoutbox too, it's a great MOD, just the shoutbox has this problem.
Thank you.

If I understand you question correctly you want more messages to appear when a user logs into the chat?

If so I believe this is it....

Find and change your liking... /chat/lib/config.php

// Defines how many logs are returned on each logs request:
$config['logsRequestMessagesLimit'] = 10;


Also look at many other custom edits in there.

thank you very much but for the shoutbox it didn't solve the issue.
It worked for the chat after changing not the parameters inside the chat but another code, before the one you showed me.

Here:
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;


So it's good for the chat but not for the shoutbox, when I exit the forum and go back it shows only the last 10 messages.
Anyone else knows a solution?
Do you all have only 10 messages left  inside the shoutbox?

Thank you for paying attention.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on November 12, 2009, 01:44:19 PM
Quote from: Nachtfalke on November 12, 2009, 02:23:59 AM
Thanks for support - it was my mistake... fu***ing windows 7 :)

EVERYTHING IS FINE - THANK YOU SO MUCH !!!!

I also had no problem, it opened in new Window (On Windows 7) with IE and Firefox.

I dont think Windows 7 had anything to do with the error before, since its working now, who cares! lol.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: glennk on November 12, 2009, 05:52:25 PM
Hi There,

I have a serious error and cant get into admin to uninstall. Could you please offer some advice on how best to proceed

QuoteFatal error: require() [function.require]: Failed opening required '/home/glennk/public_html/holderness-coast-fishing.co.uk/forum/shoutBox/lib/class/AJAXChat.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/glennk/public_html/holderness-coast-fishing.co.uk/forum/shoutBox/lib/classes.php on line 11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fairytears on November 12, 2009, 11:37:57 PM
Thank you mrtrc, that solved the problem  :)

Any idea why someone can't see the conversations, the shoutbox is blank and she can't post either. She uses IE 6. She is the only one with the problem  :-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 13, 2009, 12:31:08 AM
Quote from: fairytears on November 12, 2009, 11:37:57 PM
Thank you mrtrc, that solved the problem  :)

Any idea why someone can't see the conversations, the shoutbox is blank and she can't post either. She uses IE 6. She is the only one with the problem  :-\

Are you sure her member group has permissions set?

Also see if she can try it in FF and see what happens
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on November 13, 2009, 12:50:29 PM
SMF v-1.1.10

ok.... here goes... just switched servers and reinstalled the chat.... now in the pop up window i'm getting this error:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


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

Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at graaywolfsgrowboards.com Port 80

is this a server problem or my problem?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: derelicta on November 13, 2009, 02:26:12 PM
Quote from: derelicta on November 12, 2009, 12:55:52 PM
Quote from: mrtrc266 on November 12, 2009, 01:37:30 AM
Quote from: derelicta on November 11, 2009, 01:43:20 PM
Hi there, can anyone help me to understand if there is a way to keep more lines inside the shoutbox. I mean on average on my shoutbox appear only a few of the last messages written by members. There's no such "max chronology messsages" parameter to set.
AjaxChat works fine on all themes, and shoutbox too, it's a great MOD, just the shoutbox has this problem.
Thank you.

If I understand you question correctly you want more messages to appear when a user logs into the chat?

If so I believe this is it....

Find and change your liking... /chat/lib/config.php

// Defines how many logs are returned on each logs request:
$config['logsRequestMessagesLimit'] = 10;


Also look at many other custom edits in there.

thank you very much but for the shoutbox it didn't solve the issue.
It worked for the chat after changing not the parameters inside the chat but another code, before the one you showed me.

Here:
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;


So it's good for the chat but not for the shoutbox, when I exit the forum and go back it shows only the last 10 messages.
Anyone else knows a solution?
Do you all have only 10 messages left  inside the shoutbox?

Thank you for paying attention.

I quote myself because I solved the issue.
Thanks mrtrc, it wasn't the chat folder,  it was just the shoutbox folder, but you were right, same path config.php in lib folder

// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;


number messages changed to 40 it works.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Zirc on November 13, 2009, 07:32:06 PM
Okay I know this problem has been addressed many times before, and I've read through over 40 pages of replies in this thread but no matter what I try to solve it I still cannot get the number of users to display on the chat button, in my user's online block or in User's Online at the bottom of the forum page.  Chat works great!! All the custom buttons display right, open up chat flawlessly transfer the user name to the Ajax chat but for some reason there must be a missing link between Ajax and SMF or SimplePortal as far as telling each other who is actually in chat.

Here's what I have.
SMF 1.1.10
SimplePortal 2.3.1
AjaxChat Integration 3.2.1
AjaxChat 0.8.3

The website is www .tholeweb.com/forums (won't let me post links so had to modify :D )
login: test
password: test

I have other mods but unless needed I won't list those.  Can anybody help me troubleshoot why chat works, all the texts/buttons are there but they don't register that somebody is actually in chat?

Thanks in advance.

***Edit *** I am using a modified custom theme but I have tried it on the Default theme with the same results.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hardcase on November 13, 2009, 07:50:46 PM
Guys can you please offer advice or a fix for the following problem.

When i try and install this mod i get the following error messages on the mod check:

Quote1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/ManagePermissions.php Test failed
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./SSI.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
7. Execute Modification ./Themes/default/index.template.php Test failed
8. Execute Modification ./Themes/default/languages/Help.english.php Test successful
9. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
10. Execute Modification ./Themes/default/languages/Help.persian.php Skipping file
11. Execute Modification ./Themes/default/languages/Modifications.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

As you can see it fails on two files these are ManagePermissions.php and index.Template.php

Now i have had this mod running nicely before but it will not work now:

Forum setup:
SMF 1.1.10
Theme BlackRainv2
TinyPortal is installed as are several other mods as they were when it run ok.

Now when i have gone back to basics and installed AjaxChat 0.8.3 which works fine under the default board then when i switch to the custom theme, non of the written text in chat appears or user names etc which was the question i asked about a couple off days ago but got buried in the other questions.

No new mods had been installed before it failed, the only thing that would of happened with the forum would be the update to 1.1.10

Some help and advice would therefore be appreaciated.

I have attached the two files which are failing the test, hopefully someone can find an error as my php knowledge is limited.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: testlab on November 13, 2009, 09:45:16 PM
Hello, All

Im new to all of this and I really want to install this in my new forum.
I have installed the Ajaxchat by downloading it from the site and uploading it by using the admin.

Now I cant find it in the from. How can I start the Ajaxchat? What do I have to do to star it?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: purper on November 14, 2009, 05:50:44 AM
you might want to give us some more info about the version smf you use, and what mods, what theme.

Keep in mind AjaxChat is NOT available for version 2 RC2 (yet)!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: timmytimmy on November 14, 2009, 01:34:45 PM
Hi,

I must not have completely uninstalled the previous version of this mod because now that I have installed the latest version (3.2.1) i am having an issue with the "CHAT" link appearing twice on the top tab menu. 

Can anyone tell me what edit to make so that I don't have two of the same links showing?

I am using SMF version 1.1.10 and the default core theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Zirc on November 14, 2009, 07:19:27 PM
Quote from: greg04 on November 14, 2009, 01:34:45 PM
Hi,

I must not have completely uninstalled the previous version of this mod because now that I have installed the latest version (3.2.1) i am having an issue with the "CHAT" link appearing twice on the top tab menu. 

Can anyone tell me what edit to make so that I don't have two of the same links showing?

I am using SMF version 1.1.10 and the default core theme.
'

Look in your index.template.php file located in the Theme/default folder and see if the following code appears twice...

// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';


It should be near the end of the document.  If there are two instances just delete one of them and save the file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TW1ST3D on November 15, 2009, 02:10:44 PM
Quote from: graaywolf on November 13, 2009, 12:50:29 PM
SMF v-1.1.10

ok.... here goes... just switched servers and reinstalled the chat.... now in the pop up window i'm getting this error:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


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

Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at graaywolfsgrowboards.com Port 80

is this a server problem or my problem?



I'm getting the same error for 2.0 RC1.2 , anyone have a solution?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShawnH on November 15, 2009, 05:33:59 PM
Maybe we could all chip in and pay him to update this mod :) it would be worth it to me!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ronnyboy on November 16, 2009, 07:34:32 AM
Hi,
I installed the package for SMF 1.1.10 with no errors. However when I click the chat button in SMF I get an error in the chat window (ChatBot: Error: Connection status: 403).
Think this might be an access restiction error, but what ever I try in the Config.php, nothing seems to help.
The initial settings for database connection in the Config.php have not been changed (they should work) and are set to:
// Database connection values:
$config['dbConnection'] = array();
// Database hostname:
$config['dbConnection']['host'] = null;
// Database username:
$config['dbConnection']['user'] = null;
// Database password:
$config['dbConnection']['pass'] = null;
// Database name:
$config['dbConnection']['name'] = null;
// Database type:
$config['dbConnection']['type'] = null;
// Database link:
$config['dbConnection']['link'] = null;

I am running it on my own IIS server.
Any ideas about this ? Pleas help !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Paul_Pauline on November 16, 2009, 03:39:51 PM
I had this problem too Ronnyboy when I had it installed on my forum !

The replies I got were that this was a common fault, and basically to live with it as it didn't effect how it worked  ..........

I did like it, but I personally couldn't live with it, it irritated the hell out of me so i uninstalled it !!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ronnyboy on November 17, 2009, 04:04:02 AM
Hi Paul_Pauline. Sounds a bit stupid the reply you got. Any error should be able to solve.
Anyway when I log into to chat I get the error message "ChatBot: Error: Connection status: 403" and when I try to chat I get the error message "ChatBot: Error: Connection status: 405".
So, this mod is not working at all ! I am strugling for days now with this...
If anyone else has some ideas about this, please let me know.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 17, 2009, 01:06:28 PM
Quote from: ronnyboy on November 17, 2009, 04:04:02 AM
Hi Paul_Pauline. Sounds a bit stupid the reply you got. Any error should be able to solve.
Anyway when I log into to chat I get the error message "ChatBot: Error: Connection status: 403" and when I try to chat I get the error message "ChatBot: Error: Connection status: 405".
So, this mod is not working at all ! I am strugling for days now with this...
If anyone else has some ideas about this, please let me know.

Here you go check this out. http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Error_405 (http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Error_405)

Also do some googling about your 405 error, you'll see that it's more that likely server side.

Here is some more info from Microsoft... http://support.microsoft.com/kb/318380
Quote405 – Method not allowed.  This error can occur when a clientsends an HTTP request to the server that is running IIS, and therequest contains an HTTP verb that the server does not recognize. Toresolve the issue, make sure that the client's request uses an HTTPverb that is compliant with the HTTP rfc. See the "References" sectionfor information about the HTTP rfc.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ronnyboy on November 17, 2009, 01:41:34 PM
Quote from: mrtrc266 on November 17, 2009, 01:06:28 PM
Quote from: ronnyboy on November 17, 2009, 04:04:02 AM
Hi Paul_Pauline. Sounds a bit stupid the reply you got. Any error should be able to solve.
Anyway when I log into to chat I get the error message "ChatBot: Error: Connection status: 403" and when I try to chat I get the error message "ChatBot: Error: Connection status: 405".
So, this mod is not working at all ! I am strugling for days now with this...
If anyone else has some ideas about this, please let me know.

Here you go check this out. http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Error_405 (http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Error_405)

Also do some googling about your 405 error, you'll see that it's more that likely server side.

Here is some more info from Microsoft... http://support.microsoft.com/kb/318380
Quote405 – Method not allowed.  This error can occur when a clientsends an HTTP request to the server that is running IIS, and therequest contains an HTTP verb that the server does not recognize. Toresolve the issue, make sure that the client's request uses an HTTPverb that is compliant with the HTTP rfc. See the "References" sectionfor information about the HTTP rfc.

Thanks mrtrc266 !
I added the index.php as a default content page on my IIS server website and it works great now :-)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 17, 2009, 01:42:41 PM
Awesome! Glad you got it sorted...Enjoy the Mod :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Krandall on November 17, 2009, 06:04:48 PM
Anyone available for smoe quick help?

How do you disable the shoutbox sounds

I tried editing the line that says:
audio: true,
// Defines the sound volume (0.0 = mute, 1.0 = max):
audioVolume: 0.0,


no dice.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Krandall on November 17, 2009, 06:16:50 PM
Quote from: Krandall on November 17, 2009, 06:04:48 PM
Anyone available for smoe quick help?

How do you disable the shoutbox sounds

I tried editing the line that says:
audio: true,
// Defines the sound volume (0.0 = mute, 1.0 = max):
audioVolume: 0.0,


no dice.

dang cookies got me :( I got it working lol.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Krandall on November 17, 2009, 06:37:31 PM
Okay, I have one for real now. A few :)

1: Is there a way I can disable certain commands within the shout box? Specifically the changing the nickname feature?

2: I've searched but I swear there's nothing about it.. Only someone else saying "blah blah blah search" History? Is it an option to view?

3: Member colors? My forum is based a lot on the color of users (specific colors for sponsors ect...) is there a way to use what is set on the forum for the chat member colors?

Thanks for your help!
-Randy
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AcidFMHQ on November 19, 2009, 09:31:57 AM
When I try to install this from the package manager it doesn't load the install page when I click apply mod it just goes back to the browse packages page any clue why its doing this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 19, 2009, 09:58:48 AM
Quote from: Krandall on November 17, 2009, 06:37:31 PM
Okay, I have one for real now. A few :)

1: Is there a way I can disable certain commands within the shout box? Specifically the changing the nickname feature?

2: I've searched but I swear there's nothing about it.. Only someone else saying "blah blah blah search" History? Is it an option to view?

3: Member colors? My forum is based a lot on the color of users (specific colors for sponsors ect...) is there a way to use what is set on the forum for the chat member colors?

Thanks for your help!
-Randy

1. http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2162148 (http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2162148)

2. http://yoursite.com/chat/?view=logs (http://yoursite.com/chat/?view=logs)

3. At the moment you can't pull all your member groups colors but you can tweak it a little. Find something like this in you yousite/chat/css/yourstyle.css and change the following to you liking. If you use more than 1 style then you'll have to do it to all of them.

Also do the shoutbox yousite/chat/css/shoutbox.css if it's not intergrated.

    #content .guest {
        color:gray;
    }
    #content .user {
        color:#FFF;
    }
    #content .moderator {
        color:#00AA00;
    }
    #content .admin {
        color:red;
    }
    #content .chatBot {
        color:#FF6600;
    }
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 19, 2009, 10:04:00 AM
Quote from: AcidFMHQ on November 19, 2009, 09:31:57 AM
When I try to install this from the package manager it doesn't load the install page when I click apply mod it just goes back to the browse packages page any clue why its doing this?

The Mod isn't updated to RC2 yet but you can try this one.
http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Krandall on November 19, 2009, 06:48:32 PM
Quote from: mrtrc266 on November 19, 2009, 09:58:48 AM
Quote from: Krandall on November 17, 2009, 06:37:31 PM
Okay, I have one for real now. A few :)

1: Is there a way I can disable certain commands within the shout box? Specifically the changing the nickname feature?

2: I've searched but I swear there's nothing about it.. Only someone else saying "blah blah blah search" History? Is it an option to view?

3: Member colors? My forum is based a lot on the color of users (specific colors for sponsors ect...) is there a way to use what is set on the forum for the chat member colors?

Thanks for your help!
-Randy

1. http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2162148 (http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2162148)

2. http://yoursite.com/chat/?view=logs (http://yoursite.com/chat/?view=logs)

3. At the moment you can't pull all your member groups colors but you can tweak it a little. Find something like this in you yousite/chat/css/yourstyle.css and change the following to you liking. If you use more than 1 style then you'll have to do it to all of them.

Also do the shoutbox yousite/chat/css/shoutbox.css if it's not intergrated.

    #content .guest {
        color:gray;
    }
    #content .user {
        color:#FFF;
    }
    #content .moderator {
        color:#00AA00;
    }
    #content .admin {
        color:red;
    }
    #content .chatBot {
        color:#FF6600;
    }



1. Awesome! Thanks!!!!! Those were the 2 I wanted to get rid of!
2. It brings me to a logon box when I go to: http://www.raptorsource.com/forum/chat/?view=logs  It brings me a logon box. but doesn't do anything even though I know my password.
3. Bummer on the groups :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AcidFMHQ on November 20, 2009, 12:15:31 AM
Im not running 2.0 Im running 1.1.10 and the other one still didn't work for me
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: chaky! on November 20, 2009, 12:44:29 PM
It is possible to send automatic messages from admin?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrstime on November 20, 2009, 09:11:11 PM
For some reason I keep getting a 500 error.  Any suggestions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 20, 2009, 09:50:01 PM
Quote from: mrstime on November 20, 2009, 09:11:11 PM
For some reason I keep getting a 500 error.  Any suggestions?

~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 20, 2009, 09:51:32 PM
Quote from: chaky! on November 20, 2009, 12:44:29 PM
It is possible to send automatic messages from admin?

Not sure what you mean
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 20, 2009, 09:52:26 PM
Quote from: AcidFMHQ on November 20, 2009, 12:15:31 AM
Im not running 2.0 Im running 1.1.10 and the other one still didn't work for me

Hmmm...Have you tried clearing your forum browser and forum cache?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Quexinos on November 21, 2009, 03:09:00 AM
Okay so... I installed it.. I told it not to install on other themes because it was showing errors, yet it's showing up on the other themes just fine.  DO I still need to edit them or am I good?  I mean it's obviously showing up but Im wondering if there's going to be problems down the line.  I'm using RC2.0 BTW.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrstime on November 21, 2009, 09:55:45 AM
Quote from: mrtrc266 on November 20, 2009, 09:50:01 PM
Quote from: mrstime on November 20, 2009, 09:11:11 PM
For some reason I keep getting a 500 error.  Any suggestions?

~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Do I do this in the php file or elsewhere?  I am not totally savvy on this.  Thank you for your help. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 21, 2009, 10:44:16 AM
Quote from: mrstime on November 21, 2009, 09:55:45 AM
Quote from: mrtrc266 on November 20, 2009, 09:50:01 PM
Quote from: mrstime on November 20, 2009, 09:11:11 PM
For some reason I keep getting a 500 error.  Any suggestions?

For AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

You can do this via either your FTP, just right click on the file and you should see "file permissions" or "CHMOD" enter the value of 755

Or you can do it though your servers control panel, navigate to those file and you should see a similar option.

~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Do I do this in the php file or elsewhere?  I am not totally savvy on this.  Thank you for your help. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 21, 2009, 10:46:00 AM
Quote from: Quexinos on November 21, 2009, 03:09:00 AM
Okay so... I installed it.. I told it not to install on other themes because it was showing errors, yet it's showing up on the other themes just fine.  DO I still need to edit them or am I good?  I mean it's obviously showing up but Im wondering if there's going to be problems down the line.  I'm using RC2.0 BTW.

You should be good, the edits to the themes are for the options to show how many users are in chat, list of users in chat etc. No edits are needed to make the shoutbox work though.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hatari on November 21, 2009, 03:41:57 PM
Sorry if this has been covered before, but I have tried searches without success.  I have downloaded the file  AjaxChat Integration_3.2.1.zip , but it does not contain an install.php file in the chat directory as indicated in readme.txt .  Any help would be appreciated

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: minos on November 21, 2009, 04:55:11 PM
hello how to eliminate styles and channels i only need public channel


thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mysticmind on November 22, 2009, 02:13:03 AM
no update for RC2 yet :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 22, 2009, 03:32:22 AM
Quote from: minos on November 21, 2009, 04:55:11 PM
hello how to eliminate styles and channels i only need public channel


thanks

~AJAX Chat Intergration FAQ's & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 22, 2009, 03:34:08 AM
Quote from: mysticmind on November 22, 2009, 02:13:03 AM
no update for RC2 yet :(

Check a few pages back, someone ported it to RC2. You can download the package from his post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShawnH on November 22, 2009, 11:38:19 AM
Is there away i can keep people out of the chat until they reach a certain post count ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 22, 2009, 11:44:10 AM
Quote from: ShawnH on November 22, 2009, 11:38:19 AM
Is there away i can keep people out of the chat until they reach a certain post count ?

You can make a Post Based Member Group (Membership based on post count) that and then set the permissions for all your member groups accordingly.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on November 22, 2009, 07:52:31 PM
SMF version 1.1.10

ok i fixed the 500 error thanks to the faq section... now i have these poping up above the chat window and the chat is non-functional:

Notice: Use of undefined constant localhost - assumed 'localhost' in /home/graay/public_html/chat/lib/config.php on line 30

Notice: Use of undefined constant graay_chat - assumed 'graay_chat' in /home/graay/public_html/chat/lib/config.php on line 32

Notice: Use of undefined constant chat - assumed 'chat' in /home/graay/public_html/chat/lib/config.php on line 34

Notice: Use of undefined constant graay_chat - assumed 'graay_chat' in /home/graay/public_html/chat/lib/config.php on line 36

nothing in the faq section fixes this problem


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hatari on November 23, 2009, 09:49:34 AM
I have followed the manual install instructions for this, but when I run the file Tables_1.1.X.php I get the following error


Warning: Cannot modify header information - headers already sent by (output started at /home/broadba1/public_html/hatari.org/Test forum/Tables_1.1.X.php:1) in /home/broadba1/public_html/hatari.org/Test forum/Sources/Subs.php on line 3196

Warning: Cannot modify header information - headers already sent by (output started at /home/broadba1/public_html/hatari.org/Test forum/Tables_1.1.X.php:1) in /home/broadba1/public_html/hatari.org/Test forum/Sources/Subs.php on line 3197

Warning: Cannot modify header information - headers already sent by (output started at /home/broadba1/public_html/hatari.org/Test forum/Tables_1.1.X.php:1) in /home/broadba1/public_html/hatari.org/Test forum/Sources/Subs.php on line 3203

Warning: Cannot modify header information - headers already sent by (output started at /home/broadba1/public_html/hatari.org/Test forum/Tables_1.1.X.php:1) in /home/broadba1/public_html/hatari.org/Test forum/Sources/Subs.php on line 3206

Can anyone please advise a solution?

Thanks in advance :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hatari on November 23, 2009, 10:58:43 AM

Running SMF 1.1.10.

Also when I log in to the forum I get

Table 'broadba1_testforum2.broadba1_ajaxchat_online' doesn't exist
File: /home/broadba1/public_html/hatari.org/Test forum/Sources/Load.php
Line: 2243

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.10, while your database is at version 1.1.9. The above error might possibly go away if you execute the latest version of upgrade.php.

Help we have tried three or four times, starting from a clean install of SMF 1.1.10.

Many thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 23, 2009, 12:11:05 PM
@ graaywolf & Hatari

Did you have problems installing it via the package manager?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShawnH on November 24, 2009, 06:51:54 AM
i installed it using the package man.. it installed fine but when i go to use it, and when it pops up where the chat should be, all i get is the 500 error?

is there a way to fix this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 24, 2009, 06:57:39 AM
ShawnH: Use the search facility to search this topic; it has come up before, including how to fix it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hatari on November 24, 2009, 08:24:22 AM
Quote from: mrtrc266 on November 23, 2009, 12:11:05 PM
@ graaywolf & Hatari

Did you have problems installing it via the package manager?

Thanks, I have now managed to install it using the package manager, but can only get it to work on the SMF Default Theme.  I have tried copying the modified files for ./Themes/default to ./Themes/babylon but to no effect.

TIA for any further advice :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 24, 2009, 10:48:38 AM
Quote from: Hatari on November 24, 2009, 08:24:22 AM
Quote from: mrtrc266 on November 23, 2009, 12:11:05 PM
@ graaywolf & Hatari

Did you have problems installing it via the package manager?

Thanks, I have now managed to install it using the package manager, but can only get it to work on the SMF Default Theme.  I have tried copying the modified files for ./Themes/default to ./Themes/babylon but to no effect.

TIA for any further advice :)

You'll have to do the edits manually for other themes. Using a Package Parser (http://sleepy-arcade.ath.cx/parser/package.php) is very helpful. Upload the Mod, select your SMF Version and check "Theme Only" and it will show you the edits to make.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShawnH on November 24, 2009, 05:15:10 PM
i did the search on the 500 error and follwed what to do and now the chat window opens but i no get this:)

Notice: Undefined index: mytab_Custom_URL in /home2/thefragr/public_html/forum/Sources/Subs.php on line 3922

Notice: Undefined index: mytab_Custom_URL in /home2/thefragr/public_html/forum/Sources/Subs.php on line 3924

could you help me on there?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 24, 2009, 05:15:33 PM
Ask the author of the custom tab mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShawnH on November 24, 2009, 05:24:37 PM
after uninstalling that mod the chat is ok..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rotinhellorg on November 24, 2009, 09:30:03 PM
Is there a way to change the shoutbox background color and text colors?  I tried doing this in the shoutbox/css/shoutbox.css but it doesn't actually change anything.  I want to make it match the color of my board's template.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 24, 2009, 10:54:56 PM
Quote from: rotinhellorg on November 24, 2009, 09:30:03 PM
Is there a way to change the shoutbox background color and text colors?  I tried doing this in the shoutbox/css/shoutbox.css but it doesn't actually change anything.  I want to make it match the color of my board's template.

Change this instead chat/css/shoutbox.css

shoutbox/css/shoutbox.css will be only if you don't have the chat/shout intergrated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on November 24, 2009, 11:32:54 PM
Hello,

I recently upgraded to SMF 2.0 RC2.
I installed the RC2 version created by VGS, but I get this error in my chat box as well, I when I open chat it gives me a blank box...
This is the error: ChatBot: Error: Connection status: 500
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 24, 2009, 11:35:23 PM
Quote from: Vyache on November 24, 2009, 11:32:54 PM
Hello,

I recently upgraded to SMF 2.0 RC2.
I installed the RC2 version created by VGS, but I get this error in my chat box as well, I when I open chat it gives me a blank box...
This is the error: ChatBot: Error: Connection status: 500

Click the link in my signature

~AJAX Chat Intergration FAQ's & Tips-N-Tricks~
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on November 24, 2009, 11:43:56 PM
Nah, I checked the chmod. It is set to 755 for both instances. I tried 666 as well...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: annikk.exe on November 25, 2009, 07:18:20 AM
Hello everyone.
I have successfully installed and customised AjaxChat Integration, but I have an issue with the maximum username length.

Some of my users have very long display names, but Ajax only displays the first 16 characters.
So for example, a user called "QueenOfTheBlackRoses" shows up as "QueenOfTheBlackR"

I have searched at length through this thread and through the code itself, and cannot work out how I can fix this issue.  Is anyone able to help?


My info:
AjaxChat Integration v3.2.1
SMF 1.1.10
Running as combined shoutbox & chat



[edit] Found solution.

Edit the following file (I found notepad.exe corrupts it, so use notepad++ or something)
yourforum/chat/lib/config.php

Find:
// Max userName length:
$config['userNameMaxLength'] = 16;


Change the 16 to whatever number of letters you would like.  :>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: annikk.exe on November 25, 2009, 08:36:18 AM
Some of my users are reporting that Chrome doesn't autoscroll properly.  When a new message arrives in the shoutbox (integrated with chat) it either briefly scrolls down, then back up again, or it doesn't scroll at all.

Firefox and Internet Explorer do not display this behaviour; it is unique to Google Chrome.

Anyone got any idea of a fix for this, or had the same issue ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rowdy on November 25, 2009, 10:13:58 AM
The file attachment package for SMF2RC2 works but generates countless errors in log like this:

http://mysite.com/smf/index.php?topic=5105.0;wap2
8: Undefined index: chat
File: /home/mysite/public_html/smf/Sources/Subs.php
Line: 3839

Line 3839 of Subs.php reads:

$chatButton = $txt['chat'];

Any ideas for a fix? My error log is filled 40 pages of this so is useless really for anything else.

Thanks very much
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 25, 2009, 10:14:58 AM
What language does your forum use?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 25, 2009, 10:16:30 AM
Quote from: Vyache on November 24, 2009, 11:43:56 PM
Nah, I checked the chmod. It is set to 755 for both instances. I tried 666 as well...

Try add this to your .htaccess file
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

This has solved the issue for many users
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rowdy on November 25, 2009, 10:27:00 AM
Quote from: ArantorWhat language does your forum use?

utf-8.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 25, 2009, 10:56:25 AM
What language though?

And more specifically, is there a matching file in the languages folder for Shout? E.g. Shout.yourlanguage-utf8.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Juan Carlos on November 25, 2009, 10:59:20 AM
Quote from: RowdyMusician on November 25, 2009, 10:13:58 AM
The file attachment package for SMF2RC2 works but generates countless errors in log like this:

http://mysite.com/smf/index.php?topic=5105.0;wap2
8: Undefined index: chat
File: /home/mysite/public_html/smf/Sources/Subs.php
Line: 3839

Line 3839 of Subs.php reads:

$chatButton = $txt['chat'];

Any ideas for a fix? My error log is filled 40 pages of this so is useless really for anything else.

Thanks very much


I had the same problem and fix it by inserting $txt['chat'] in modifications.your_languaje.php file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rowdy on November 25, 2009, 11:04:43 AM
I'm using English, utf8.

QuoteI had the same problem and fix it by inserting $txt['chat'] in modifications.your_languaje.php file

That worked, with the ; at the end of course.

Thanks very much!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TurtleKicker on November 25, 2009, 11:16:15 AM
Hello. I'm using AjaxChat Integration 1.2.2 on SMF 1.1.10 with AjaxChat 0.8.1.2. Everything has been working fine. However, sometime recently something happened to cause all apostrophe's to be escaped with a backslash. So when someone types Brad's it comes out as Brad\'s.

I know I am several versions behind but I'm preparing to upgrade to SMF2 RC2 soon at which point I'll be doing a full update of all my mods, so I don't want to go through the hassle of upgrading the chat mod on SMF1 (where upgrading mods is a big pain in the butt) just for the sake of a month or 2. So I'm wondering: what sorts of things might cause this cosmetic nuisance and is there an easy fix I can apply?

I'm hoping there's just a quick manual edit I can do to a file to straighten this out for the time-being until the RC2 upgrade.

Thanks. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on November 26, 2009, 01:01:01 AM
Quote from: mrtrc266 on November 25, 2009, 10:16:30 AM
Quote from: Vyache on November 24, 2009, 11:43:56 PM
Nah, I checked the chmod. It is set to 755 for both instances. I tried 666 as well...

Try add this to your .htaccess file
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

This has solved the issue for many users
I found it and added that line. It didn't fix issue...
Can you take a look at it ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 26, 2009, 07:29:44 AM
Hello  , please check the picture.. i wanna remove this chat box and replace it with another code emped .. how to do that and where ? in index.template.php or where ?

1- remove the box
2- replace it with another chat script

thank you so much

Greets NaWaR
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 26, 2009, 07:40:35 AM
i want to add this kind of chats please  it's flash chat

the code to replace is :

p align="center">
<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyNTkzNTkwMzUzMTMmcHQ9MTI1OTM1OTA*MDY2MCZwPTUzMTUxJmQ9Jmc9MSZvPTA3YTMxOTAyZTU4ZDQ4MGY4ZTY4OGM*NTYwY2JlNjQ*.gif" /><embed src="http://www.xatech.com/web_gear/chat/chat.swf" quality="high" width="600" height="250" name="chat" FlashVars="id=77530479" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.shtml" /><br>
<small>&nbsp;<a target="_BLANK" href="http://xat.com/web_gear/chat/go_large.php?id=77530479"><font size="3">Go Large!</font></a></small><br>
</p>


can i do that ??
to test the chat on page  www.4syr.com

thank you for replay
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 26, 2009, 07:42:29 AM
You could uninstall this mod and install the Flash Chat integratoin (I believe you have to pay for FlashChat though, it's a paid-for product)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 26, 2009, 07:49:28 AM
i already have this chat and own it ...  , i just want to add it to the forum .. !!
how do i replace it with ajax ?!  where is ajax code located..? please help me...  i saw the same on many other forums and they did it !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 26, 2009, 07:50:57 AM
You could remove the code from your forum by using the Package Manager to uninstall it.

As for adding FlashChat, there's a mod on the mod site for it - you could try searching for it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 26, 2009, 08:19:35 AM
i found it...  but it's not working ..  anyway i posted for him on his topic.. and i hope he will answer cause seems his topic is dead..

anyway i will wait for The One >>> Sabre he is the Man.

Sabre give the right correct easy answer  :P

Thank you Arantor for ur Replays but i can't do it like that i need more help

Greets NaWaR
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 26, 2009, 08:21:04 AM
So what's stopping you using the package manager? Do you get errors if you do that?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 26, 2009, 08:37:18 AM
i get this package is not compateble with this version ..  but on the mode page it says that the mod compatible with 1.1.10 .. so i am like o_0 ...
i really dunno what to do ... , i just want to post a code on my forum and thats like impossible..
can u pls add it for me ? i will upload all needed files to you..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rowdy on November 26, 2009, 10:12:52 AM
It appears I am still having this language error in the logs after all. In fact, I am actually getting another error from the attempt to fix it.

Original error:
http://mysite.com/smf/index.php?topic=5469.5;wap2
8: Undefined index: chat
File: /home/mysite/public_html/smf/Sources/Subs.php
Line: 3839

Line 3839 of Subs.php reads:
$chatButton = $txt['chat'];

So, I added (at line 31) the following code with and without a ; on the end as advised and it now generates a new error either way:
$txt['chat']

New error:
http://mysite.com/smf/index.php?topic=5469.5;wap2
8: Undefined index: chat
File: /home/mysite/public_html/smf/Themes/default/languages/Modifications.english.php
Line: 31

I do not see a Modifications.english.php file, and I am using utf-8.

Thanks very much for the help. Happy Thanksgiving!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 26, 2009, 10:29:35 AM
You needed to have added:
$txt['chat'] = 'Chat';

The file definitely must exist otherwise you'd get a different error entirely. Though if you're using UTF-8, you will also need to modify Modifications.english-utf8.php.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rowdy on November 26, 2009, 10:47:23 AM
Sweet. I'm having some copy and paste issues- not sure if it is mouse or browser or what. That seems to have fixed it, though I still don't see the utf8 modifications file.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 26, 2009, 10:48:45 AM
Where are you looking?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 26, 2009, 11:00:26 AM
can you please send me another mode!  cause i just want to run flash on the forum is it that hard?!?!?!!??!!?!?!?!?!?!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rowdy on November 26, 2009, 11:23:01 AM
The errors appear to be gone, but I was looking in themes/default/languages.

Thanks for the help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 26, 2009, 12:17:59 PM
Quote from: NaWaR on November 26, 2009, 11:00:26 AM
can you please send me another mode!  cause i just want to run flash on the forum is it that hard?!?!?!!??!!?!?!?!?!?!

What exactly is the problem you're having?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 26, 2009, 12:28:32 PM
check before i wrote everything  up up...
and again , i just want flash chat on my forum !!  is that impossible !!

please check the posts before i posted already the forum link and chat box link ... and tryed everything nothingis working..!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 26, 2009, 01:41:58 PM
If you want to use FlashChat you will have to remove this one, then install FlashChat after. This will be done via the Package Manager (http://docs.simplemachines.org/index.php?board=49.0;sort=subject).

All we can really help you with in this thread is removing AJAX Chat, unfortunately.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 26, 2009, 01:47:01 PM
Quote from: NaWaR on November 26, 2009, 12:28:32 PM
check before i wrote everything  up up...
and again , i just want flash chat on my forum !!  is that impossible !!

please check the posts before i posted already the forum link and chat box link ... and tryed everything nothingis working..!!

You're on the wrong thread...this is AJAX Chat Intergration!

For Flash Chat support go here Flash Chat Support Topic (http://www.simplemachines.org/community/index.php?topic=139769.0)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NaWaR on November 26, 2009, 08:30:21 PM
thank you all for the replays , but nothing help .. and the topic about the flashchat i am already there and asked about help but the creator of the mode not sure about this , and some one else says it's impossible :( yeah thats great, Seems no one want to help or all of u against the flash chat ! i dunno the reason.
thank you all for trying help me ;)

Greets NaWaR
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 27, 2009, 12:32:46 AM
Quote from: NaWaR on November 26, 2009, 08:30:21 PM
thank you all for the replays , but nothing help .. and the topic about the flashchat i am already there and asked about help but the creator of the mode not sure about this , and some one else says it's impossible :( yeah thats great, Seems no one want to help or all of u against the flash chat ! i dunno the reason.
thank you all for trying help me ;)

Greets NaWaR

Sorry but I'm really confused, looking at all you posts you have A LOT of post on AJAX Chat Intergration and A LOT on Flash Chat. These are 2 COMPLETELY different Mods

I would suggest that you decide which one you want to use and then if you have problems post your issue on the appropriate board.

If you want AJAX Chat post here, if you want Flash Chat post on their support board.

There are plenty of people who are willing to help you for FREE but please use the support boards for whichever you decide. If you have installed both, then completely uninstall both and then decide which one you want to use.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rowdy on November 27, 2009, 02:34:16 AM
I am getting an internal server error when trying to enter the chatroom now after uninstalling temporarily and reinstalling. Any ideas?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on November 27, 2009, 03:18:16 AM
RowdyMusician: have a search of this thread; it's that the file permissions are incorrect for the chat box's files.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rowdy on November 27, 2009, 10:51:46 AM
Yes, I changed the file permission in "chat" and "shoutbox" and all subdirectories to 755 and still am getting the ISE.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zijO on November 27, 2009, 03:56:48 PM
Hello,
I installed mod for RC2.

It works ok when I just log in.
If after some time I come back to forum, I am logged in, but I can't see messages in shout box or I can't write anything. If I log  out/in then it works again.  :-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: topbuyer on November 27, 2009, 05:22:24 PM
I saw someone asked same question but looks like no answer as of now. When I type message and click submit button, message is not shown on screen. I tried this on firefox, IE, Chrome.

SMF Version - 1.1.10
AjaxChat Integration      3.2.1

Please suggest
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rotinhellorg on November 27, 2009, 08:20:14 PM
Thanks for your quick reply into my question.  I have one more little request that I hope you can help me with.

I was trying to find where, exactly, the width of the shoutbox window is defined.  The reason why I ask, is because I would like to make it less wide, and include next to it a banner, say width=200px and as tall as the shoutbox.  Is this possible?

I know it's kind of a weird request.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kerbob on November 28, 2009, 12:10:06 AM
I've read a post saying that this works on 2.0 RC2.  Should I just follow the manual install instructions for RC1.2?  I had this on 1.1 and it was fantastic.  Hoping that I can install again on 2.0 RC2.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 28, 2009, 12:57:56 AM
Quote from: rotinhellorg on November 27, 2009, 08:20:14 PM
Thanks for your quick reply into my question.  I have one more little request that I hope you can help me with.

I was trying to find where, exactly, the width of the shoutbox window is defined.  The reason why I ask, is because I would like to make it less wide, and include next to it a banner, say width=200px and as tall as the shoutbox.  Is this possible?

I know it's kind of a weird request.

Look in /chat/css/shoutbox.css
#ajaxChatContent #ajaxChatChatList {
    font-family: tahoma;
    height:163px;
    overflow:auto;
}


Possibly add width: for the width that you desire
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on November 28, 2009, 01:03:46 AM
@ zijO have you tried just refreshing after you've been away for awhile?

@ topbuyer have you taken a look at the FAQ's? (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

@ kerbob take a look a few pages back there is a download that someone ported to RC2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zijO on November 28, 2009, 07:07:31 AM
Few posts back, there was attached file for downloading (RC2)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: derby on November 28, 2009, 02:15:46 PM
Unable to load the 'shout_above' template.[/quote]
It shows the header of the forum, but nothing else, locks it up. I searched for shout_above in all the scripts and there isn't one. How do I fix this? I am on version 1.1.10 using the smf default theme....help plz
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kerbob on November 28, 2009, 03:53:29 PM
Whooo hooo.. AjaxChat working great in SMF 2.0 RC2 using VSG's mod from Reply #4572.

Thanks VSG.. thanks all!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: derby on November 29, 2009, 07:25:01 AM
can someone help me out plz
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zijO on November 29, 2009, 07:59:55 AM
Quote from: mrtrc266 on November 28, 2009, 01:03:46 AM
@ zijO have you tried just refreshing after you've been away for awhile?




Yes i did try, no change.

I also tried to change height, also nothing changes.

Quote"    height:163px;
    overflow:auto;"

@ kerbob take a look a few pages back there is a download that someone ported to RC2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: xtrapx on November 29, 2009, 12:20:07 PM
please help me i download this mod and i get error connection :0 or something like that how can i fix it please =( i really need help with this i really need a shoutbox on my forum =(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sleepwalker985 on November 29, 2009, 12:27:39 PM
I want to add ajax chat as a separate page, example mywebiste.com/chat, and to make a connection with smf database to use smf's users for login. How this can be done without installing all this mod settings?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eternalism on December 02, 2009, 12:42:00 AM
I need help I installed this 2x and now my site is all screwed up for more info read this post http://www.simplemachines.org/community/index.php?topic=350994.0
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sfreak on December 02, 2009, 02:07:06 AM
great mod

I installed this on my smf 1.1.10 using package manager

can this slow down page loading if i enable shout box ?

i am feeling slower loading of my page
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: master_of_jellyfish on December 02, 2009, 09:01:19 AM
will this mod work on smf rc2?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 02, 2009, 11:29:21 AM
master_of_jellyfish: please read the last few pages of this topic; there is a RC2 compliant version attached.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rowdy on December 02, 2009, 11:53:11 AM
Still getting an internal server error, if anyone has any tips.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CrazyTech on December 02, 2009, 10:23:12 PM
I'm unable to get this to work on SMF 2.0 RC2 w/ pretty URLs. I tried a mod_rewrite rule that I thought would work, but no dice. Anyone been able to get this setup to work?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Angie on Dialysis on December 02, 2009, 11:58:43 PM
I have a question for the creator of AjaxChat Integration.

Looking for an updated shoutbox that uses emoticons. This one does but I have to ask, will it conflict with having FlashChat in stalled? I would rather have FlashChat but my members like to have a simple shoutbox but just with emoticons. I  was thinking of this until I saw it was a chat integration.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 03, 2009, 03:19:31 AM
I don't know if the creator actually visits here much, certainly I haven't seen him in the thread.

I would say that it is not recommended to have multiple shoutboxes installed; the additional load on the server will be surprisingly high, especially on an active forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Angie on Dialysis on December 03, 2009, 07:25:31 AM
Quote from: Arantor on December 03, 2009, 03:19:31 AM
I don't know if the creator actually visits here much, certainly I haven't seen him in the thread.

I would say that it is not recommended to have multiple shoutboxes installed; the additional load on the server will be surprisingly high, especially on an active forum.

I think you mis understand. Not multiple shoutboxes but one shoutbox that doesn't do chat, just shouts, as I already have FlashChat and a shoutbox but my members want a shoutbox that shows emoticons and was the only reason I was looking at this one.

I currently already have Flash Chat and a shoutbox running simultaneously no problem but want to replace the existing Shoutbox for this one if it is possible. If not then I will stick with what is currently working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 03, 2009, 07:27:00 AM
I thought you were asking if FlashChat and this would co-exist, whether they would conflict, to which the answer is probably yes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Xarcell on December 03, 2009, 01:33:30 PM
Anyone have a fix for the shoutbox in the 2.0 RC2 version? It breaks the default template just a tad...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BarfBag on December 03, 2009, 01:47:30 PM
Hey guys, how do you enable flood control in AJAX?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: souloftruth on December 03, 2009, 02:44:27 PM
Forums : SMF 2.0 RC1.2 with Ajax Chat
Method : Iframes

I'm in need of some help getting this to work correctly.

I've got my forums and chat each in it's own iframe which works perfect almost if it wasn't for the chat wanting to load into the iframe of the forums.

I think it's due to the target isn't on the chat. target="chat"

I know you can switch forums to launch in popup which basicly tells it to target="_blank" so how can i switch that to  target="chat"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Angie on Dialysis on December 03, 2009, 02:59:45 PM
Quote from: Arantor on December 03, 2009, 07:27:00 AM
I thought you were asking if FlashChat and this would co-exist, whether they would conflict, to which the answer is probably yes.

Thank you :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: topbuyer on December 05, 2009, 03:17:48 AM
I had a look to FAQ earlier as well, just had read now again. But, I couldn't find the answer. Please suggest or point me specifically to FAQ section, if I  missed something in FAQ.

Adding my question here again, so that you don't have go back to look for my question

-----

I saw someone asked same question but looks like no answer as of now. When I type message and click submit button, message is not shown on screen. I tried this on firefox, IE, Chrome.

SMF Version - 1.1.10
AjaxChat Integration      3.2.1

Please suggest

-----
Quote from: mrtrc266 on November 28, 2009, 01:03:46 AM
@ zijO have you tried just refreshing after you've been away for awhile?

@ topbuyer have you taken a look at the FAQ's? (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

@ kerbob take a look a few pages back there is a download that someone ported to RC2

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scottdn on December 05, 2009, 01:00:05 PM
When I log into chat it updates the number of users in chat properly and displays my name at the bottom on the index page.   If I close the chat window it still shows on the index page that I am logged into chat. 

Any ideas are appreciated .
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on December 05, 2009, 04:08:57 PM
Quote from: souloftruth on December 03, 2009, 02:44:27 PM
Forums : SMF 2.0 RC1.2 with Ajax Chat
Method : Iframes

I'm in need of some help getting this to work correctly.

I've got my forums and chat each in it's own iframe which works perfect almost if it wasn't for the chat wanting to load into the iframe of the forums.

I think it's due to the target isn't on the chat. target="chat"

I know you can switch forums to launch in popup which basicly tells it to target="_blank" so how can i switch that to  target="chat"
a link to your site would help

Quote from: topbuyer on December 05, 2009, 03:17:48 AM
I had a look to FAQ earlier as well, just had read now again. But, I couldn't find the answer. Please suggest or point me specifically to FAQ section, if I  missed something in FAQ.

Adding my question here again, so that you don't have go back to look for my question

-----

I saw someone asked same question but looks like no answer as of now. When I type message and click submit button, message is not shown on screen. I tried this on firefox, IE, Chrome.

SMF Version - 1.1.10
AjaxChat Integration      3.2.1

Please suggest

-----
Quote from: mrtrc266 on November 28, 2009, 01:03:46 AM
@ zijO have you tried just refreshing after you've been away for awhile?

@ topbuyer have you taken a look at the FAQ's? (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

@ kerbob take a look a few pages back there is a download that someone ported to RC2

what other mods are installed are you using a custom theme and are there any errors in your error log.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jjzx2sr on December 05, 2009, 07:43:56 PM
Quote from: Vyache on November 26, 2009, 01:01:01 AM
Quote from: mrtrc266 on November 25, 2009, 10:16:30 AM
Quote from: Vyache on November 24, 2009, 11:43:56 PM
Nah, I checked the chmod. It is set to 755 for both instances. I tried 666 as well...

Try add this to your .htaccess file
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

This has solved the issue for many users
I found it and added that line. It didn't fix issue...
Can you take a look at it ?

I'm having the same issue, tried these fixes listed with still no fix.

I also cannot SEE the text in the administration control panel, so I used the screenshots posted on the mod to make sure I had the correct boxes checked. The boxes from the features and options matched up, but the global permissions boxes did not.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 05, 2009, 07:46:42 PM
jjzx2sr: What language do you use on your forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jjzx2sr on December 05, 2009, 07:59:48 PM
english
us based
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 05, 2009, 08:04:04 PM
Is that English-UTF8 or just English?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jjzx2sr on December 05, 2009, 08:06:23 PM
switched to plain english, now I can read the boxes in the admin

got the chmod permissions straightened out with the server...

The separate pop out chat allows the volume to be turned off...but how do I get it to be able to be turned off on the index page?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BarfBag on December 06, 2009, 06:28:36 PM
I am in dire need of help with this mod.  It installed fine; no errors.

1.  Whenever anybody clicks on anything or refreshes the forum while in the chat, it times us out and logs us back in.  It's absolutely chaotic when the chat is full of users.  I know there's a way to hide log-in/out messages, but I would prefer to keep them.  Is there a way to fix this problem without disabling them?

2.  I'm on a very good server.  There is no noticeable performance hit to the forum or to the chat when users are in chat.  However, the forum times out on those less fortunate with slower connections (particularly, when trying to post messages).  What is going on here?  An uninstallation of AJAX fixes the problem.

3.  Whenever a word such as "I'm" is used, it appears as "I/m."  This is incredibly annoying.  Is there a way to fix it?

4.  This isn't really a problem, but a question I have been searching everywhere to get to the bottom of.  Flood control is listed on the feature list, but I can't seem to figure out how to enable it.

Thanks in advance.

Forum Information

SMF 1.1.11
1.  SMF Arcade
2.  CountDown BBC
3.  Ultimate Profile
4.  Spoiler Show And Hide
5.  Redirection Boards
6.  SimplePortal
7.  Downloads System
8.  Anti-Bot Registration Puzzles
9.  Aligned and Bilateral Child Boards
10.  SMF Gallery Lite
11.  Ad Managment
12.  YouTube BBCode
13.  Stop Spammer
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TurtleKicker on December 07, 2009, 09:35:55 AM
Quote from: BarfBag link=topic=257973.msg2393305#msg2393305
3.  Whenever a word such as "I'm" is used, it appears as "I/m."  This is incredibly annoying.  Is there a way to fix it?

Bug has been around over a year, not fixed yet.

Solution:
http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2263005
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hagbard_Celine on December 07, 2009, 03:10:10 PM
Having installed the RC2 upgrade, the shoutbox is no longer updated by the chatroom, though updating the other way works. In order to update shoutbox, we have to refresh the page.

Is there a solution?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyriel on December 07, 2009, 09:46:28 PM
Quote from: CrazyTech on December 02, 2009, 10:23:12 PM
I'm unable to get this to work on SMF 2.0 RC2 w/ pretty URLs. I tried a mod_rewrite rule that I thought would work, but no dice. Anyone been able to get this setup to work?

add

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d

before every rewrite rule in your .htaccess file

sample:

# Rules for: boards
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RVAFreak on December 08, 2009, 01:00:12 PM
I've had this installed for a few months, 3.2.1 version. Working great, then all of a sudden 2 days ago it just stopped working (it stopped loading the smileys, but loads an empty shoutbox window with the shout button). what can I do to fix this? seems like it's just not connecting to the server.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on December 08, 2009, 08:35:46 PM
Worked fine until i upgraded to 1.1.11  Now all i get when i attempt to goto my forum is a white page with an error in the top left corner

Unable to load the 'Shout.english-utf8' language file.

Any help would be appreciated
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nvcnvn on December 09, 2009, 03:16:42 AM
I see that the Mods auto clean up the chat data after a few days, how can I edit to keep the data longer!?
Title: Re: AjaxChat Integration
Post by: joseflor on December 09, 2009, 09:53:21 PM
Well in that case here is the Portuguese version:


//Users in chat
$txt['user_in_chat']='Usuário no Chat:';
$txt['users_in_chat']='Usuários no Chat:';
$txt['no_user_in_chat']='Não há usuários no chat';


José Flor
OzFlor.com
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on December 10, 2009, 01:14:32 AM
@ Vyriel Please look at the FAQ's Page (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766), the correct rule is there. Put the rule at the top...before the pretty URL's

@ RVA and Bernie have you recently upgraded your forum? If so try the solutions in the  FAQ's Page (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766).

@ nvc look in /chat/lib/config.php you will the the setting for how long to keep the data.

@ Hagbard have you installed this version for RC2? http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297 (http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: z3rongod on December 10, 2009, 02:16:41 AM
Can someone help me installing  Ajax Chat New Reply Notification ?

I'm getting the following error:

Fatal error: Function name must be a string in /............/forum/Sources/Post.php on line 1972

This is the code that i have edited in post.php


sendNotifications($topic, 'reply');

// Ajax Chat New Reply Notification
global $user_info, $board, $scripturl, $boardName, $topic;
global $smcFunc;
$smcFunc['db_insert']('',
      'ajax_chat_messages',
      array(
         'userID' => 'int', 'userName' => 'string-255', 'userRole' => 'int', 'channel'=> 'int', 'ip' => 'string-255', 'text' => 'string-255',
         ),
      array(
         $posterOptions['id'], $user_info['name'], 1, 0, $posterOptions['ip'], '[color=red][b]New Reply: [url='.$scripturl . '?topic=' . $topic . '.new;topicseen#new'.']'.html_entity_decode($_POST['subject']).'[/url][/b][/color]'
         ),
      array('autopost')
   );
    // End Ajax Chat New Reply Notification
     }
//sendNotifications($topic, 'reply');

// Returning to the topic?




// Notify members of a new post.
function notifyMembersBoard()
{
// Ajax Chat New Topic Notification
global $user_info, $board, $scripturl, $boardName, $topic;
global $smcFunc;
    $smcFunc['db_insert']('',
      'ajax_chat_messages',
      array(
         'userID' => 'int', 'userName' => 'string-255', 'userRole' => 'int', 'channel'=> 'int', 'ip' => 'string-255', 'text' => 'string-255',
         ),
      array(
         $posterOptions['id'], $user_info['name'], 1, 0, $posterOptions['ip'], '[color=red][b]New Topic: [url='.$scripturl . '?topic=' . $topic . '.new#new'.']'.html_entity_decode($_POST['subject']).'[/url][/b][/color]'
         ),
      array('autopost')
   );
    // End Ajax Chat New Topic Notification
global $board, $topic, $txt, $scripturl, $db_prefix, $language, $user_info;
global $ID_MEMBER, $modSettings, $sourcedir;

// Can't do it if there's no board. (won't happen but let's check for safety and not sending a zillion email's sake.)



Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sgsharetalk on December 10, 2009, 07:14:55 AM
Hi there, I would like to know any user has used Ajaxchat on SMF version 1.1.11 successfully ?

and if possible pls help to list-up all the necessary mod and resource for the Ajaxchat Mod installation.

ps: I have browsed the thread and didn't find any discussion on SMF 1.1.11. Forgive me if my miss anything. thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jjzx2sr on December 10, 2009, 10:03:08 AM
im using it on version 1.1.11 works flawlessly i might add  if you want ot check it out in action check out my site www.fordpowerms.com (http://www.fordpowerms.com) make an account and try it out..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: qubbah on December 10, 2009, 10:31:26 AM
how about the code to put in tp blockto show who is online?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sgsharetalk on December 10, 2009, 10:50:57 AM
when I am using package manager to install the Ajax Chat here is the error message I got . The package you tried to upload either is not a valid package or has become corrupted   
the file I downloaded is  ajax_chat-0.8.3_SMF.zip . is it the correct file? 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on December 10, 2009, 10:57:25 AM
Quote from: sgsharetalk on December 10, 2009, 10:50:57 AM
when I am using package manager to install the Ajax Chat here is the error message I got . The package you tried to upload either is not a valid package or has become corrupted   
the file I downloaded is  ajax_chat-0.8.3_SMF.zip . is it the correct file? 

The correct file is here http://custom.simplemachines.org/mods/index.php?mod=1319 (http://custom.simplemachines.org/mods/index.php?mod=1319)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sgsharetalk on December 10, 2009, 11:03:07 AM
Thank you for the quick response. but I read the earlier thread I need to install the Ajax Chat first before the MOD..  I download it from here https://blueimp.net/ajax/ however was unable to install.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on December 10, 2009, 11:22:46 AM
Quote from: sgsharetalk on December 10, 2009, 11:03:07 AM
Thank you for the quick response. but I read the earlier thread I need to install the Ajax Chat first before the MOD..  I download it from here https://blueimp.net/ajax/ (https://blueimp.net/ajax/) however was unable to install.

The first thing it says on the mods front page is
QuoteThis mod will install AjaxChat on your smf.

Tested on freshly installed smf 1.1.10/2.0 RC1.2

If you have already attempted to manually install the chat by itself remove all the files and simply upload the mod via the package manager
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: topbuyer on December 12, 2009, 11:35:21 PM
Any help for me please !


Quote from: topbuyer on December 05, 2009, 03:17:48 AM
I had a look to FAQ earlier as well, just had read now again. But, I couldn't find the answer. Please suggest or point me specifically to FAQ section, if I  missed something in FAQ.

Adding my question here again, so that you don't have go back to look for my question

-----

I saw someone asked same question but looks like no answer as of now. When I type message and click submit button, message is not shown on screen. I tried this on firefox, IE, Chrome.

SMF Version - 1.1.10
AjaxChat Integration      3.2.1

Please suggest

-----
Quote from: mrtrc266 on November 28, 2009, 01:03:46 AM
@ zijO have you tried just refreshing after you've been away for awhile?

@ topbuyer have you taken a look at the FAQ's? (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

@ kerbob take a look a few pages back there is a download that someone ported to RC2

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on December 13, 2009, 02:08:25 AM
Are the any errors in your error log and did you get any errors when you installed it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scimmiotto on December 13, 2009, 01:32:19 PM
is it this mod discontinued? are there pans to support rc2?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 13, 2009, 02:29:16 PM
It looks like the author has been busy and not had time to update this officially for RC2 though if you read the last few days, unofficial versions have been published here.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on December 13, 2009, 03:35:01 PM
Quote from: scimmiotto on December 13, 2009, 01:32:19 PM
is it this mod discontinued? are there pans to support rc2?
Quote from: Arantor on December 13, 2009, 02:29:16 PM
It looks like the author has been busy and not had time to update this officially for RC2 though if you read the last few days, unofficial versions have been published here.

http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RydiaFromFF2 on December 14, 2009, 01:04:32 AM
Hello there. I've gotten the chat mod to install perfectly onto my 1.1.11 but I have a slight problem. I'm able to log into the chat room but any one else who uses their forums log in info (or even guest) are denied entry. How may I go about fixing this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 14, 2009, 03:10:29 AM
Did you set permissions in Admin > Permissions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RydiaFromFF2 on December 14, 2009, 03:49:51 AM
Quote from: Arantor on December 14, 2009, 03:10:29 AM
Did you set permissions in Admin > Permissions?

uhm. Where would that be exactly hun? The forum or the files?

Edit: oop. I think I found it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 14, 2009, 03:51:21 AM
In the forum. Admin panel > Permissions. You have to enable permissions for the groups you want to be able to see the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RydiaFromFF2 on December 14, 2009, 03:59:09 AM
Nice it worked. now when Log out is clicked in the chat it doesn't log them out lol. I logged in with a test account and my main is still there. oh also, how do I get a "Status" changer like type /away and it'll go "rydiafromff2_afk"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 14, 2009, 04:01:58 AM
I don't know about those, I'm afraid :(

Hopefully someone else who knows this mod (like someone who used it for more than a few minutes) will be able to help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RydiaFromFF2 on December 14, 2009, 04:12:45 AM
Oh ok. Thanks for the push in the right direction though! it really helped me out. I was at a dead end there for a moment. now to fine tune it a tad more and it'll be all peachy!

There is one more question I do have.. i haven't been able to find it in ANY file. how do I change the AJAX Chat in the top left of my page?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TaTaM on December 14, 2009, 09:07:25 AM
how can i change date format like this "Wed Aug 12, 2009 6:52 pm"

i tried to search in this topic but i not found solution

big thanks...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Petee on December 14, 2009, 02:15:38 PM
Quote from: RydiaFromFF2 on December 14, 2009, 04:12:45 AM
There is one more question I do have.. i haven't been able to find it in ANY file. how do I change the AJAX Chat in the top left of my page?

/lib/lang/en.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RydiaFromFF2 on December 14, 2009, 09:21:01 PM
everything is working great now but down side is I'm having a wierd glitch... every time someone types a ' or " it'll put a \ before it (like I\'ll). How may I fix this?

Petee -> Oh sweet. Thanks. I'll get on that ^_^
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on December 14, 2009, 11:09:24 PM
anyway to get this to work on RC2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on December 14, 2009, 11:15:03 PM
Quote from: sattninja on December 14, 2009, 11:09:24 PM
anyway to get this to work on RC2

http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on December 14, 2009, 11:50:12 PM
omg you are a hero works great thank you so much
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on December 14, 2009, 11:52:48 PM
one ??? is there a way i could move the menu bar under the shoutbox so i have my home and forum buttons under it on default theme
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DUNBAR on December 15, 2009, 03:24:07 AM
i just installed this mod and something went completely wrong in the process, and I have no access to uninstall this.

Here is the error page I get now when I go to the site:

Fatal error: Cannot redeclare getshoutboxcontent() (previously declared in /home/plumbing/public_html/DUNBAR/Sources/Load.php:2208) in /home/plumbing/public_html/DUNBAR/Sources/Load.php on line 2286


I just installed/upgraded the latest version of SMF right before I installed this mod.


Can anyone tell me where I go from here to remove this mod?


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: a4sum on December 15, 2009, 05:46:12 AM
I am trying to get this to work and have no understanding of programing at all

I am using 1.1.11

this is what i get before i hit install.

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/BoardIndex.php    Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./SSI.php    Test successful
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
7.    Execute Modification    ./Themes/default/index.template.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.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_1.1.X.php

I click install and then i can never fin it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blokey on December 15, 2009, 05:51:21 AM
Error 500 - Internal Server Error 
The server encountered an unexpected condition which prevented it from fulfilling the request. 
Requested URL: http://www.coffee-break.fancya-chat.com/chat/index.php 

uh
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 15, 2009, 05:53:26 AM
blokey: So what version of SMF, what version of the mod, and what other mods do you have installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AntonioP on December 15, 2009, 07:19:38 AM
Quote from: blokey on December 15, 2009, 05:51:21 AM
Error 500 - Internal Server Error 
The server encountered an unexpected condition which prevented it from fulfilling the request. 
Requested URL: http://www.coffee-break.fancya-chat.com/chat/index.php 

uh

Index.php in Chat and Shoutbox must have 755 permission.
I have the same error and fix the problem.

Best Regards
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Xarcell on December 15, 2009, 09:49:29 AM
I keep getting this error in my error log:

Quote8: Undefined index: chatFile: /home/xxx/xxx.com/Sources/Subs.php
Line: 3812

But it works fine.

Here is the code around 3812:

$num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
$chatButton = $txt['chat'];
$chatButton .= ($num > 0) ?  ('('.$num.')') : '';
$chatLink = str_replace("index.php", "chat/index.php", $scripturl);
if (!empty($modSettings['chatPopUp']))
$chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';


I'm using SMF 2.0 RC2. Any ideas on how to correct it?

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kernelstackdump on December 15, 2009, 12:24:32 PM
can't setting up permission in 1.1.11... Not stated anything about ajaxchat.... TQ

3.     Execute Modification     ./Sources/ManagePermissions.php     Test failed
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blokey on December 15, 2009, 02:33:58 PM
Sorry was not being rude mums have a funny way of making you do things when your busy.
Antonio your nearly a star,,, its solved half my probs.
I have an existing mgal de install causing me probes,,, so off to fix I hope...


Thanks anyway people you have been great

just stripped out the offending array and would not shout,, it would not even whisper,,,,,,,

/Sources/Subs.php  changed to 755 and works brill. thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Topek on December 16, 2009, 01:00:42 PM
Hi everyone, i have easy question but i'm searchin for it since morning and i can't find it.
I need to change color of down part of the shoutbox

Please somebody know where should i look?
Thx for reply :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fivex on December 16, 2009, 04:48:44 PM
Is it possible to get it so that you can turn the shoutbox on for every page of just the index  by modifying your profile?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: A_r_N_e_ on December 16, 2009, 04:56:02 PM
I have a realy big problem!
I did all the changes on the maps and files...
and when I run Tables_1.1.X.php
it says this

Database Error
No database selected
File: /home/vol12/1free.ws/freew_4530174/5tee.1free.ws/htdocs/Tables_1.1.X.php
Line: 12 


Wath must I do?
Plz help me!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nnick on December 17, 2009, 04:25:23 AM
Hello,

Will the latest version work with 1.1.11? At it's description it stops on 1.1.10
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RydiaFromFF2 on December 17, 2009, 07:15:22 AM
Quote from: nnick on December 17, 2009, 04:25:23 AM
Hello,

Will the latest version work with 1.1.11? At it's description it stops on 1.1.10

yes. I'm running it now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nnick on December 17, 2009, 08:05:18 AM
Installed it too, and it works :)

How can I make it to only have link for the popup chat instead of the shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on December 17, 2009, 12:53:18 PM
Quote from: nnick on December 17, 2009, 08:05:18 AM
Installed it too, and it works :)

How can I make it to only have link for the popup chat instead of the shoutbox?

Simply disable the shoutbox from your admin panel
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: h78509 on December 17, 2009, 05:52:11 PM
This mod is awesome and works like a charm.

Has anyone succeeded in putting an Adsense banner in the chat window, below everything else?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on December 17, 2009, 08:39:28 PM
hello ok i upgraded from 1.1.11 to 2.0RC2 and downloaded the ajax chat for 2.0 RC2 i installed it and i see the shout header with the +- signs but there is no shout box i also see the chat button in the menu but when i click it it just loads a white page

any ideas
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Atheos23 on December 17, 2009, 09:12:44 PM
Hello. I have this mod installed on rc2 in a portamx block and I'm looking for a way to change the size of the text input box. Ultimately I'd like to have this field a few lines long and the text wrap under but inwould be more than happy just shrinking the size a bit. Thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nnick on December 18, 2009, 04:04:30 AM
Quote from: mrtrc266 on December 17, 2009, 12:53:18 PM
Quote from: nnick on December 17, 2009, 08:05:18 AM
Installed it too, and it works :)

How can I make it to only have link for the popup chat instead of the shoutbox?

Simply disable the shoutbox from your admin panel


I did that but can't find the link :( Is it maybe because I use another theme from the default?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: playdiune on December 18, 2009, 09:18:47 PM
I just installed and i get this error on shout box (smf v. 1.1.11)

"(02:18:16) ChatBot: Error: Connection status: 500"

how can i solve that ? thanks...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 19, 2009, 06:00:27 AM
That's been documented in this thread before - you can use the search topic option in the upper right of the screen to search for it here.

I even think the FAQ page linked from the mod's own page has this documented too.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: topbuyer on December 19, 2009, 07:20:51 PM
@ mrtrc266, you are not responding to my query. Did I asked something wrong. Your thoughts would be help. Thanks for your time.


@smp420

Mate, Thanks for reply.

No errors while installing it. Tried installing again !

Pls suggest.




Quote from: topbuyer on December 12, 2009, 11:35:21 PM
Any help for me please !


Quote from: topbuyer on December 05, 2009, 03:17:48 AM
I had a look to FAQ earlier as well, just had read now again. But, I couldn't find the answer. Please suggest or point me specifically to FAQ section, if I  missed something in FAQ.

Adding my question here again, so that you don't have go back to look for my question

-----

I saw someone asked same question but looks like no answer as of now. When I type message and click submit button, message is not shown on screen. I tried this on firefox, IE, Chrome.

SMF Version - 1.1.10
AjaxChat Integration      3.2.1

Please suggest

-----
Quote from: mrtrc266 on November 28, 2009, 01:03:46 AM
@ zijO have you tried just refreshing after you've been away for awhile?

@ topbuyer have you taken a look at the FAQ's? (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

@ kerbob take a look a few pages back there is a download that someone ported to RC2

Quote from: smp420 on December 13, 2009, 02:08:25 AM
Are the any errors in your error log and did you get any errors when you installed it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RydiaFromFF2 on December 20, 2009, 12:52:39 AM
hey guys. Thanks for the help. I'd love to have this question answered please.

I've noticed if you stay in the chat room for a little bit it won't update after so long (My chatroom seems to stop collecting update data after a few mins of not sending a message) and was wondering how I could provent it from "timing" someone out.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: z3rongod on December 20, 2009, 01:38:43 AM
I can't set permissions so that guests can only view the shoutbox and not be able to post any messages.

If i only enable view shoutbox the shoutbox is not visible for guests.

Guests permissions:
Access to chat  - NO
Moderate chat    - NO
View shoutBox - YES
Can shout - NO
Moderate shoutBox - NO

Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: deciph3red on December 20, 2009, 01:52:07 AM
I have installed this mod, and straight up can't figure out how to use it.

I am using a custom theme. . . however ive scimmed through these posts and can't find and answer to my question. . . how do you use it?

EDIT:  Added the link manually in my forum, however im hearing every single sound multiple times.  Any idea how to fix this, its very annoying and loud.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jjzx2sr on December 20, 2009, 02:29:52 AM
i was thinking about deleting the sound files myself once i find them the only thing i dont like about this chat is that it scrolls from the bottom up, id perfer from the top down and also to be able to edit something i wrote, aka fix mispelled words.  An archive wouldnt be a bad function.  I used minichat or Mchat on phpbb3 and it worked well, but i perfer SMF any day over phpbb3 so i wont complain to much lol... i did however increase how many lines are dispayed before they are cleared for 10 to 30 and that was an improvement.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: deciph3red on December 20, 2009, 03:33:45 AM
Quote from: jjzx2sr on December 20, 2009, 02:29:52 AM
i was thinking about deleting the sound files myself once i find them the only thing i dont like about this chat is that it scrolls from the bottom up, id perfer from the top down and also to be able to edit something i wrote, aka fix mispelled words.  An archive wouldnt be a bad function.  I used minichat or Mchat on phpbb3 and it worked well, but i perfer SMF any day over phpbb3 so i wont complain to much lol... i did however increase how many lines are dispayed before they are cleared for 10 to 30 and that was an improvement.

Where are the features.  It would be nice to be able to initiate a chat with online users. . . or ateast see that someone is in chat (maybe a "Chat(1)" in the menu so I don't have to tell the guys to join chat. . . .)

A few problems I have.  There is no "Chat (#) or Chat (1)" in my theme, there is simply a button to incorporate "chat".  Its actually pretty pointless to use unless I go to my SMF site and see people chatting so I can jump in (I do game server support).  In options (features and options) the "popup chat" is confusing.  I had to modify my theme to open it in a target="_blank" window so it does not totally take out my site and overwrite it with the chat itself.  Using popup chat does nothing, however modifying the button actually makes it load a new window.

Im hoping im doing something wrong here, because in essence its a greate feature to have, however configuring it to work is absolutely retarded for something that does not code in PHP (which I actually do a little) and impossible to setup without having 180 questions on how to set it up in a custom theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: iacomac on December 20, 2009, 03:56:40 PM
Hello,

someone tested on SMF 2.0 RC2?




thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 20, 2009, 04:18:12 PM
iacomac: Go back the last page or so. Someone made an RC2 version and attached it to this thread.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: iacomac on December 20, 2009, 04:54:34 PM
Thank you, The Grinch!

Here (http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297) I'm solved!


[it works!]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 20, 2009, 04:58:35 PM
Awesome to hear :)

/me thinks when he returns to being Arantor after the festive jollity is over, people might get a little confused ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: deciph3red on December 20, 2009, 11:49:33 PM
How do I fix this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.clangoat.com%2Fajax.jpg&hash=4850426de2d81bdd4f012ce81d62f23594c20ad9)

Also, I cant seem to change the bg color of the shoutbox. . . I did edit the config.php file and change the default theme to black, but I see no changes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: skyliner2 on December 22, 2009, 05:27:58 AM
Thanks for the RC2 version!

I've made a german translation for the AjaxChat Integration, see attachment.

Regards
sky
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: joseflor on December 22, 2009, 07:12:34 AM
Hello all, I am new here.

The members in my forum vv vv vv.ozflor.com/electriforum/ cant access the chat or shout box. On the chat box windows it reads in red 'You can't access the chat.'.
As a Admin loged in all the admin can access the chat box and sometimes there is a error 0.
Before I had error 500. But after I read here I solved the problem using permission 755
Any suggestions to what to do?
Thank you in advance
Happy Christmas
José Flor

Later edit
Sorry I just found the answer on a very long thread
it reads
Quote
As has been said many times through this thread: "You must set permissions per membergroup to access the chat."

Later on:
Still producing erro 0
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: playdiune on December 22, 2009, 01:13:56 PM
hello,

how can i increase the visible number of messages on shoutbox, from 10 to 20, or other number ?

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NeverWind on December 22, 2009, 05:15:25 PM
There's no install.php inside it? =(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: iacomac on December 22, 2009, 06:20:25 PM
Quote from: playdiune on December 22, 2009, 01:13:56 PM
hello,

how can i increase the visible number of messages on shoutbox, from 10 to 20, or other number ?

thanks

Good question! I make it too. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: deciph3red on December 23, 2009, 01:06:13 AM
Anyone?  It can't be a hard fix, and ive spent 3 hours screwing stuff up trying to fix it LOL.

How can I fix the button, and how do you change the bg in the shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on December 23, 2009, 02:10:43 AM
Some of the more common issues you guys are having can be found in this link.

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

or you can go to the AjaxChat Wiki

http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Main_Page
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NeverWind on December 23, 2009, 09:56:15 AM
Quote from: LadyChaos on December 23, 2009, 02:10:43 AM
Some of the more common issues you guys are having can be found in this link.

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

or you can go to the AjaxChat Wiki

http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Main_Page
Doesnt say anything about a missing install.php : /
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 23, 2009, 10:00:07 AM
Probably because it's called Tables_1.1.X.php or Tables_2.php depending on whether you want the 1.1.x or 2.0 version.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: EuroHack on December 23, 2009, 01:00:26 PM
ERROR
El paquete que estás tratando de descargar o instalar está corrupto o bien no es compatible con esta versión de SMF.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RydiaFromFF2 on December 23, 2009, 01:15:36 PM
Quote from: LadyChaos on December 23, 2009, 02:10:43 AM
Some of the more common issues you guys are having can be found in this link.

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

or you can go to the AjaxChat Wiki

http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Main_Page

Doesn't say anything about my chat room stop refreshing after so long without talking
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 23, 2009, 02:17:25 PM
Quote from: EuroHack on December 23, 2009, 01:00:26 PM
ERROR
El paquete que estás tratando de descargar o instalar está corrupto o bien no es compatible con esta versión de SMF.

What SMF do you have?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: joseph21 on December 23, 2009, 02:41:12 PM
I'm getting 500 Internal Server after installing the latest 3.2.1 into SMF 1.1.11

Any idea how to fix this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 23, 2009, 02:43:34 PM
Please see the FAQ on the mod's page, explains how to fix that.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: deciph3red on December 23, 2009, 05:27:00 PM
Quote from: LadyChaos on December 23, 2009, 02:10:43 AM
Some of the more common issues you guys are having can be found in this link.

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

or you can go to the AjaxChat Wiki

http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Main_Page

Thanks, but thats actually how I had to install it due to a custom theme.
Nothing there solves my issue.  Im just going to uninstall it and mess with it later on. . . seems to be to many issues with it right now.

I appreciate the help though.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on December 23, 2009, 05:31:41 PM
The last resource aside from the mod author is this page:

http://sourceforge.net/projects/ajax-chat/support

Frug is really nice and helpful if you are asking for support about something that hasn't been answered before. You can search for issues, post about them, etc.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: playdiune on December 23, 2009, 09:32:13 PM
Quote from: playdiune on December 22, 2009, 01:13:56 PM
hello,

how can i increase the visible number of messages on shoutbox, from 10 to 20, or other number ?

thanks


please help me...

i didnt find the solution for this question anywhere....

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: EuroHack on December 25, 2009, 10:37:25 AM
Quote from: The Grinch on December 23, 2009, 02:17:25 PM
Quote from: EuroHack on December 23, 2009, 01:00:26 PM
ERROR
El paquete que estás tratando de descargar o instalar está corrupto o bien no es compatible con esta versión de SMF.

SMF 2.0 RC2

What SMF do you have?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 25, 2009, 03:55:02 PM
Did you use the mod from earlier in this thread?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: z3rongod on December 25, 2009, 06:43:06 PM
I have modified config.php from shoutbox.lib

// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 50;
// Defines how many logs are returned on each logs request:
$config['logsRequestMessagesLimit'] = 50;

If i refresh the page i still see only 10 messages in the shoutbox.
How can i fix this?

Please try not to ignore my 3rd inquiry!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on December 25, 2009, 10:18:59 PM
Quote from: z3rongod on December 25, 2009, 06:43:06 PM
I have modified config.php from shoutbox.lib

// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 50;
// Defines how many logs are returned on each logs request:
$config['logsRequestMessagesLimit'] = 50;

If i refresh the page i still see only 10 messages in the shoutbox.
How can i fix this?

Please try not to ignore my 3rd inquiry!


Do the same edits in .../chat/lib/config.php

The edits in /shoutBox/lib/config.php are only required if your don't have chat/shout integrated in your Admin Settings.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on December 25, 2009, 10:21:36 PM
Quote from: deciph3red on December 23, 2009, 01:06:13 AM
Anyone?  It can't be a hard fix, and ive spent 3 hours screwing stuff up trying to fix it LOL.

How can I fix the button, and how do you change the bg in the shoutbox.

...chat/css/shoutbox.css
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: chico200987 on December 26, 2009, 02:14:36 PM
I've ported it to SMF 2 RC2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 26, 2009, 05:28:58 PM
It had already been ported to RC2 earlier in this topic, but thank you for your effort.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: feelingshehides on December 27, 2009, 08:36:26 AM
I downloaded the version that works with RC2, but i seem to getting this messages:

(21:33:56) ChatBot: Error: Connection status: 500
(21:34:41) ChatBot: Error: Connection status: 500
(21:34:42) ChatBot: Error: Connection status: 500
(21:34:43) ChatBot: Error: Connection status: 500

i already set permission in packages/ajaxchat both index.php to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 27, 2009, 09:06:32 AM
Please see the FAQ linked on the mod page, it covers the solution for this, also please try searching the thread using the search facility in the top right corner of the page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: feelingshehides on December 27, 2009, 09:08:00 AM
i already searched and read the FAQ, the only solution was to change the permission which i already did, still having the same problem
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rowdy on December 27, 2009, 09:40:51 AM
Quotei already searched and read the FAQ, the only solution was to change the permission which i already did, still having the same problem
Had the same problem. Gave up.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: raven85 on December 27, 2009, 12:28:43 PM
I'm using smf 2 rc2 and im getting ChatBot: Error: Connection status: 500. How do I fix it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 27, 2009, 01:41:48 PM
raven85: Did you read the FAQ and try the steps it covers?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: feelingshehides on December 28, 2009, 12:25:01 AM
permissions are already set properly, still 500 error.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 28, 2009, 08:06:11 AM
I was hoping raven85 would try it though.

Note that is another support resource as documented in the mod page that might be of use to you.

(One day I might even try this mod again, though it worked fine for me originally)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: raven85 on December 28, 2009, 10:32:47 AM
Quote from: Arantor on December 27, 2009, 01:41:48 PM
raven85: Did you read the FAQ and try the steps it covers?

OMG... it worked perfectly  8) But how do I fix this line?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2Fwaio9u.jpg&hash=c92500e443eccdb30c51f6793bbefb2b2e951466)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sman1400 on December 28, 2009, 05:19:28 PM
Works good but I was wondering if there's a way to edit it so that while its loading the messages a white space isnt displayed

Basically before messages fill up the area and before it loads on a refresh first it loads this white background that looks bad on my dark theme, do you know where I can edit this?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg682.imageshack.us%2Fimg682%2F1001%2Fshoutboxx.jpg&hash=f8e22e31af1488185dd7feae064c75e88de2ccef)
Example, the white space is shown(cause the messages dont fill it up yet, but if they did it would show white the whole area where the messages are while loading)

I just want to change it to a dark gray, but I cant seem to change it anywhere in the CSS, any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Fabius85 on December 28, 2009, 05:30:45 PM
if i set "requestMessagesPriorChannelEnter" to false in config.php of my chat, not only previous messages dont show up, but the messages i write dont show up too!
if i set it back to true, all the messages i wrote show up again.

any solution?
thanks in advance
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SwissRed on December 29, 2009, 02:08:07 AM
Hi There

Guess this is more of a question than a problem.

I have installed the AjaxChat Mod in my site and it works great. My question is, i want to have 2 Shout Box for two different Membergroups. So  membergroup A can shout in ShoutBox 1 and can only see ShoutBox 2, whereas Membergroup B cannot see Shoutbox 1 but can only shout in ShoutBox 2.

How can i have 2 Instances of Ajax Chat Mod in my site?

Thanks in advance

Cecil
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: z3rongod on December 29, 2009, 06:18:04 AM
Quote from: mrtrc266 on December 25, 2009, 10:18:59 PM
Quote from: z3rongod on December 25, 2009, 06:43:06 PM
I have modified config.php from shoutbox.lib

// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 50;
// Defines how many logs are returned on each logs request:
$config['logsRequestMessagesLimit'] = 50;

If i refresh the page i still see only 10 messages in the shoutbox.
How can i fix this?

Please try not to ignore my 3rd inquiry!


Do the same edits in .../chat/lib/config.php

The edits in /shoutBox/lib/config.php are only required if your don't have chat/shout integrated in your Admin Settings.

Thank you for the response and I'm sorry for the late reply, as I've been busy with holidays.

I have made the modifications in ../chat/lib/config.php as follows:
$config['requestMessagesLimit'] = 50;
$config['logsRequestMessagesLimit'] = 50;

I refreshed the board index and the previous messages were not saved, but from now on it displays the last 50 messages. Might want to fix that in the next release.

Thank you for the support mrtrc266 !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sman1400 on December 29, 2009, 01:13:10 PM
Quote from: Sman1400 on December 28, 2009, 05:19:28 PM
Works good but I was wondering if there's a way to edit it so that while its loading the messages a white space isnt displayed

Basically before messages fill up the area and before it loads on a refresh first it loads this white background that looks bad on my dark theme, do you know where I can edit this?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg682.imageshack.us%2Fimg682%2F1001%2Fshoutboxx.jpg&hash=f8e22e31af1488185dd7feae064c75e88de2ccef)
Example, the white space is shown(cause the messages dont fill it up yet, but if they did it would show white the whole area where the messages are while loading)

I just want to change it to a dark gray, but I cant seem to change it anywhere in the CSS, any ideas?

Nevermind I figured it out
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blokey on December 30, 2009, 01:44:55 AM
Wonder  if it is possible to make the shoutbox collapsed it is always expanded as normal
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TLVALK on December 30, 2009, 08:55:14 PM
I installed on SMF 1.1.11 however it did not shop up in my admin area to activate it.  Nothing was added on that I see.  What else do I need to do so everything shows up so I can get it running?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on December 30, 2009, 09:26:40 PM
I recently re-installed this mod but now i get a 404 connection error in the shout box and when you click my chat button it takes you to my websites 404 page.... Whats wrong? It was working yesterday but i had a bunch of errors and reinstalled the forum files so had to delete an dreinstall the mod. Now i get this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on December 30, 2009, 09:28:40 PM
Quote from: TLVALK on December 30, 2009, 08:55:14 PM
I installed on SMF 1.1.11 however it did not shop up in my admin area to activate it.  Nothing was added on that I see.  What else do I need to do so everything shows up so I can get it running?
I had that problem and i believe the "load standard language" mod solved the problem. I had the check boxes but no words to the left that told you what they did.  try that mod then look at the admin/features and options page for the options to check
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jimv8673 on December 30, 2009, 09:44:55 PM
why wont the Mod install on 1,1,11 ??? throws a error message
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 30, 2009, 09:46:00 PM
Quote from: jimv8673 on December 30, 2009, 09:44:55 PM
why wont the Mod install on 1,1,11 ??? throws a error message

What error message? There are all kinds of reasons it might not install.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: haito on December 30, 2009, 10:12:21 PM
hi,
i have installed this mod, and i use kainan theme...
i modify manual the navigation menu to add chat button and make it pop up, but the position is not correct..  :'(
and then the online chat user in user online cant appear...

what should i do?  :-\ i give the screenshoot and attchment below..
thanks before
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on December 30, 2009, 10:59:27 PM
is there a way to alter the refresh rate?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: harryxyz on December 31, 2009, 02:28:15 AM
I am using Ajax chatroom on my forum, but the thing is even guests can access my chatroom. Ofcourse I went in the permissions section and made sure that guests dont access the chatroom. But still they can. Can you please suggest a remedy to this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on December 31, 2009, 02:50:08 AM
you need to modify the code in the  "chat/lib/config.php"   there is a piece of code for guests that you need to change from true to false
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zijO on December 31, 2009, 04:12:52 AM
Can we add shoutbox as an ezportal block.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on December 31, 2009, 04:25:58 AM
This works in simpleportal should work in ezportal as well make a custom php block with <?php

global $txt,$context,$boarddir;
//Ajax Chat | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!

if (file_exists($boarddir '/chat/lib/'))
{
if (allowedTo('shout_access'))
{
echo'
<div id="ShoutBox"> '
getShoutBoxContent() ,' </div>';
}
}
//YSHOUT HERE | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir '/yshout/yshout.php'))
{
   if(
allowedTo('yshout_view'))
   {
     
echo '<div id="yshout">';
      include_once(
$boarddir.'/yshout/yshout.php');
      echo 
'</div>';
   }
   elseif(
$context['user']['is_guest'])
      echo 
$txt['yshout_no_guests'];
}

?>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on December 31, 2009, 05:29:31 AM
i was having issues earlier with my forum and uninstalled and reisntalled this mode several times and had problems but finally got it to work but now hostgator is telling me it is eating too much resources and shut it down.  Any clues on what might be going on and how to fix it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Cudamine on December 31, 2009, 09:02:48 AM
Only admins can see my shoutbox... why?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on December 31, 2009, 09:05:45 AM
Are permissions set up appropriately in the permissions area?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Cudamine on December 31, 2009, 09:36:48 AM
Silly me. thanks Ara,

I have new problem though, can you please check it?
http://cudamine.com/santa-maria/forum.php

For some reason, when members shout something, their name gets misplaced all over the page.. why?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Xarcell on December 31, 2009, 10:03:26 AM
Quote from: Cudamine on December 31, 2009, 09:36:48 AM
Silly me. thanks Ara,

I have new problem though, can you please check it?
http://cudamine.com/santa-maria/forum.php

For some reason, when members shout something, their name gets misplaced all over the page.. why?

This is something you may want  to take a look at: http://validator.w3.org/check?uri=http://cudamine.com/santa-maria/forum.php&amp;doctype=Inline

You have alot of errors, but the thing I want you to see is that you have a mismatching div somewhere in your template. That could cause the misalignment in your shoutbox. I recommend disabling your shoutbox and blocks, then track down your missing/extra div. Fix the template and re-enable everything.

If you disable everything, then check the validating again in that link I gave you, then it's a block that may have the missing div. Your just have to track it down through trail & error.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Cudamine on December 31, 2009, 10:26:15 AM
I see.

So its something in the forum template? As it still happens if I go to  he forum page alone:
http://cudamine.com/santa-maria/forumsmf/

I downloaded the template off smf website, so i have no idea what to look for.

EDIT:
http://validator.w3.org/check?uri=http%3A%2F%2Fcudamine.com%2Fsanta-maria%2Fforumsmf%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.654

Ajax chat does have an error or some sort...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on December 31, 2009, 09:51:02 PM
There was a mod in this thread that i cant find even using the search topic.... Can someone help me....  I cant remember which file you edit but you change the text between the <title> tags to change the name that appears on the chat So it doesnt say AJAX Chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zijO on January 01, 2010, 09:00:43 AM
@ smp420

Thanks for the code!
It looks as it is for SMF 1 (it didn't work) and i need it for SMF2.0
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on January 01, 2010, 09:02:05 AM
Try it, I think you'll find it'll work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Cudamine on January 01, 2010, 09:49:16 AM
Ok guys, i really have no idea what to do.

The noumenon theme from the website bugs Ajaxchat, and i jsut have no clue what to do...

http://validator.w3.org/check?uri=http%3A%2F%2Fcudamine.com%2Fsanta-maria%2Fforumsmf%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.654
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: that_not_me on January 01, 2010, 10:07:41 AM
Ok, wow. I totally did not want a chat box, but a few members on our forums have requested one.

So, installed this mod on the forums manually.. double checked all the code and its fine.

So the problem is, that I can type a message, but when I click Shout.. it does nothing, also does the same in the forum/chat/index.php one too.. no error messages or anything..
Although, on my laptop IE:8 it says "ChatBot: Error: Connection timeout. Please try again."

Do you have any suggestions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Cudamine on January 01, 2010, 10:10:15 AM
Mine also doesn't send a message the first time we try to type something...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on January 01, 2010, 03:57:58 PM
im using smf 1.1.10  and it seems that firefox is the only browser this is working with. other browsers show an empty chat box and you cannot see your messages you send or logout. And clues for making it compatible with ie8 or google chrome 3?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on January 01, 2010, 04:14:49 PM
Quote from: zijO on January 01, 2010, 09:00:43 AM
@ smp420

Thanks for the code!
It looks as it is for SMF 1 (it didn't work) and i need it for SMF2.0
I think its for both but anyways I am using it for 2.0 rc2. I will try it on a test site with ezportal.
edit- I tried it with ezportal and I got a PHP syntax error so I guess it is for simpleportal only.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on January 01, 2010, 05:20:03 PM
Heres what the chat looks like in google chrome3 and ie8 ( also opera and aol browser) any clues? works fine in firefox and navigator.  I moved the forum to a new web address and reisntalled the mod maybe this has something to do with it. Never doen anything like that before so i may not have done it quite right. I should ad that it is functioning in those browsers ie. you can type and others can see what you type. You just cant see any messages nor can you see any of the online users.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.nanovor101.com%2Fieerror.jpg&hash=2300bd3ece8dfbdc49bf2296424bef82f43b702e)


I followed the FAQ directions for the problem of a Blank Chat and added the rewrite command to an haccess file and now it looks like this ( it allowed me to see the bot welcome message )


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.nanovor101.com%2Fieerror2.jpg&hash=ac0eeb2f38488cf133b63c88dc851042405d6ec0)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Xarcell on January 01, 2010, 09:11:35 PM
It works fine for me in chrome and IE.

Take a look at your forum's error log and see if everything related to the mod is working properly. Also try a hard refresh (CTRL F5)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on January 01, 2010, 10:01:20 PM
it worked fine before the move, now its messed up...

and i have a million of these errors

Unable to load the 'Shout.english-utf8' language file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on January 01, 2010, 10:09:48 PM
Quote from: zijO on January 01, 2010, 09:00:43 AM
@ smp420

Thanks for the code!
It looks as it is for SMF 1 (it didn't work) and i need it for SMF2.0

Ok I got it to work with ezportal use the code below


global $txt,$context,$boarddir;
//Ajax Chat | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!

if (file_exists($boarddir . '/chat/lib/'))
{
if (allowedTo('shout_access'))
{
echo'
<div id="ShoutBox"> ', getShoutBoxContent() ,' </div>';
}
}
//YSHOUT HERE | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir . '/yshout/yshout.php'))
{
   if(allowedTo('yshout_view'))
   {
      echo '<div id="yshout">';
      include_once($boarddir.'/yshout/yshout.php');
      echo '</div>';
   }
   elseif($context['user']['is_guest'])
      echo $txt['yshout_no_guests'];
}


Title: Re: AjaxChat Integration | Portal Integration
Post by: Vyache on January 01, 2010, 10:29:59 PM
Tried the portal integration, but I can't get it to look like the one's Blue has on his portal...
here is what I have...

and I used this code in a php block...
<?php

global $txt,$context,$boarddir;
//Ajax Chat | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!

if (file_exists($boarddir '/chat/lib/'))
{
   if (
allowedTo('shout_access'))
{
      echo
'
         <div id="ShoutBox">            '
getShoutBoxContent() ,'         </div>';
   }
}
//YSHOUT HERE | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir '/yshout/yshout.php'))
{
   if(
allowedTo('yshout_view'))
   {
        echo 
'<div id="yshout">';
      include_once(
$boarddir.'/yshout/yshout.php');
      echo 
'</div>';
   }
   elseif(
$context['user']['is_guest'])
      echo 
$txt['yshout_no_guests'];
}

?>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cassiecw on January 02, 2010, 06:35:21 PM
Is there is a finnish-utf8 version of the shout language file available at all?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Joseppi on January 02, 2010, 07:51:42 PM
I've been getting an error that I posted in this thread: http://www.simplemachines.org/community/index.php?topic=357481.0 and they seem to think it has something to do with this mod.

Here is the error message:
Quote8: Undefined index: action
File: /home/sonicrom/public_html/SRForums/index.php
Line: 300

And here is line 300 where the error takes place.
Quoteif (!empty($modSettings['hitStats']) && $_REQUEST['action'] != 'shoutbox')
As you can see, the error does contain the PHP action for the shoutbox.

Can anyone help me out with this? Thank you in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zijO on January 03, 2010, 02:30:38 AM
Quote from: smp420 on January 01, 2010, 04:14:49 PM
Quote from: zijO on January 01, 2010, 09:00:43 AM
@ smp420

Thanks for the code!
It looks as it is for SMF 1 (it didn't work) and i need it for SMF2.0
I think its for both but anyways I am using it for 2.0 rc2. I will try it on a test site with ezportal.
edit- I tried it with ezportal and I got a PHP syntax error so I guess it is for simpleportal only.


Thanks it works, I forgot to change settings  in admin.



Does anybody knows how to remove smiley icons?



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nina-nina on January 03, 2010, 10:58:57 AM
I installed this mod and I followed all the instructions. I set the permissions etc.  I can see the mod but the members of my forum can't.   :(  What could I have missed?  Thank you.

(I would like to remove the smileys too. I removed them using my c/panel and can still see them.) :-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on January 03, 2010, 12:17:15 PM
@nina-nina

Check member permissions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jimv8673 on January 03, 2010, 06:16:08 PM
  Ive been trying to install Ajax chat, as well as a few others that frequent this forum, and no-one can or will provide a step by step solution to the problem. In my opinion if there is a troublesome Mod being put out there, it should be corrected, If for no other reason, than to just aleviate these problems for the smf users. i run 1.1.11 and Cant have a chat on my forum mainly because i dont know how to make a manual adjustment to the code, and no-one here is willing to help. I only get vague answers and run-around. Hrere is the problem i have, and it seems to be quite quite common.

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Installation Readme
By Shahriar Gholami
This mod will install AjaxChat on your smf.

Tested on freshly installed smf 1.1.10/2.0 RC1.2

Features:
Adds a button to chat system in default theme.
Access/Moderate permission.
chat in a pop up page or a regular page.
Shows the number of chating users in:
    1. Online Users section.
    2. Beside of chat button.
    3. Below of total time logged in.
    number 2 and 3 can disabled.

adds a shoutbox.(you can disable it)
    View/Shout/Moderate permission.
    can set to only in index page or all pages.
    compatible with your theme.
    Bold Italic Underline bb codes and smiley.
    collapsible.
    can integrate shout box and chat room to work together and show same conversation.

Install Actions
Installations actions for "AjaxChat Integration":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/BoardIndex.php    Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./SSI.php    Test successful
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
7.    Execute Modification    ./Themes/default/index.template.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.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_1.1.X.php   
Powered by MySQL Powered by PHP    Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC    Valid XHTML 1.0! Valid CSS!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nina-nina on January 03, 2010, 11:43:24 PM
Quote from: Vyache on January 03, 2010, 12:17:15 PM
@nina-nina
Check member permissions.

I did and set member's permission so they can see it but still they can't see it.   :-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on January 03, 2010, 11:45:57 PM
jimv8673 attach the files that failed and I will edit it for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: supahben on January 04, 2010, 06:47:55 AM
When I try to install "AjaxChat integration" http://www.simplemachines.org/community/index.php?topic=257973.0 using Package Manager, it just redirects to PM itself, not on the installation page of the mod. Why is it like that? On other mods it works..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 04, 2010, 01:36:14 PM
Ok, so I've perused the thread, and gone to the Wiki, and generally searched on the error I'm getting and have found nothing other than one opaque reference to it.

I have SMF 1.1.11 with no relevant modifications.  I'm serving it out of Apache 2.2.14, running on WinXP Pro, SP3, with PHP 5.3.0 and MySQL 5.0.5

When I install AjaxChat everything seems to work just fine, until I try to actually "shout" something or "chat" something, at which point I get this error:
QuoteChatBot: Error: Connection status: 404

I've tried to see what, exactly, it's not finding when I'm hitting the "shout" button, but to no avail.  The error logs for my webserver have entries that appear to correspond to my hitting those buttons, and they each look more or less like this:
QuoteAttempt to serve directory: <server-root>/<my-forum>/shoutBox/, referer: http://<my-domain>/<my-forum>/index.php

Any elucidation on what I'm doing wrong, or what I'm missing, would be greatly appreciated!


EDIT:  Some more (hopefully) useful info:  If I just do a simple "GET" action to url: http://<my-domain>/<my-forum>/shoutBox/
I get the standard Apache index served back, and the server logs reflect a successful response, with nothing in the error logs.  I receive the same successful response if I do a simple "GET" action to url: http://<my-domain>/<my-forum>/shoutBox/?ajax=true&shoutbox=true
that is, I get the standard Apache index page served back at me.

So, is it possible that there is some missing/erroneous data going through when the POST method is used that could be causing a 404 status code error?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on January 04, 2010, 08:56:05 PM
Have you changed the permissions for the /chat/index.php and the /shoutbox/index.php to 755?


Quote from: Oceander on January 04, 2010, 01:36:14 PM
Ok, so I've perused the thread, and gone to the Wiki, and generally searched on the error I'm getting and have found nothing other than one opaque reference to it.

I have SMF 1.1.11 with no relevant modifications.  I'm serving it out of Apache 2.2.14, running on WinXP Pro, SP3, with PHP 5.3.0 and MySQL 5.0.5

When I install AjaxChat everything seems to work just fine, until I try to actually "shout" something or "chat" something, at which point I get this error:
QuoteChatBot: Error: Connection status: 404

I've tried to see what, exactly, it's not finding when I'm hitting the "shout" button, but to no avail.  The error logs for my webserver have entries that appear to correspond to my hitting those buttons, and they each look more or less like this:
QuoteAttempt to serve directory: <server-root>/<my-forum>/shoutBox/, referer: http://<my-domain>/<my-forum>/index.php

Any elucidation on what I'm doing wrong, or what I'm missing, would be greatly appreciated!


EDIT:  Some more (hopefully) useful info:  If I just do a simple "GET" action to url: http://<my-domain>/<my-forum>/shoutBox/
I get the standard Apache index served back, and the server logs reflect a successful response, with nothing in the error logs.  I receive the same successful response if I do a simple "GET" action to url: http://<my-domain>/<my-forum>/shoutBox/?ajax=true&shoutbox=true
that is, I get the standard Apache index page served back at me.

So, is it possible that there is some missing/erroneous data going through when the POST method is used that could be causing a 404 status code error?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on January 04, 2010, 08:57:34 PM
In every instance i have encountered of it failing it was due to a previous installed mod. Try uninstalling a mod/s and then installing the chat. You can then reinstall the othe rmods after this chat installs


Quote from: jimv8673 on January 03, 2010, 06:16:08 PM
  Ive been trying to install Ajax chat, as well as a few others that frequent this forum, and no-one can or will provide a step by step solution to the problem. In my opinion if there is a troublesome Mod being put out there, it should be corrected, If for no other reason, than to just aleviate these problems for the smf users. i run 1.1.11 and Cant have a chat on my forum mainly because i dont know how to make a manual adjustment to the code, and no-one here is willing to help. I only get vague answers and run-around. Hrere is the problem i have, and it seems to be quite quite common.

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Installation Readme
By Shahriar Gholami
This mod will install AjaxChat on your smf.

Tested on freshly installed smf 1.1.10/2.0 RC1.2

Features:
Adds a button to chat system in default theme.
Access/Moderate permission.
chat in a pop up page or a regular page.
Shows the number of chating users in:
    1. Online Users section.
    2. Beside of chat button.
    3. Below of total time logged in.
    number 2 and 3 can disabled.

adds a shoutbox.(you can disable it)
    View/Shout/Moderate permission.
    can set to only in index page or all pages.
    compatible with your theme.
    Bold Italic Underline bb codes and smiley.
    collapsible.
    can integrate shout box and chat room to work together and show same conversation.

Install Actions
Installations actions for "AjaxChat Integration":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/BoardIndex.php    Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./SSI.php    Test successful
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
7.    Execute Modification    ./Themes/default/index.template.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.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_1.1.X.php   
Powered by MySQL Powered by PHP    Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC    Valid XHTML 1.0! Valid CSS!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on January 04, 2010, 08:58:38 PM
Anyone know a way to change the refresh rate of the chat? Maybe make it so the user has to click to refresh?

My host continues to take the script down because its using too much resouces.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tripl3r on January 04, 2010, 09:05:37 PM
I get extra character come up when I type things in the chat... say when i type ' it will come up as \'
how can i fix this issue?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on January 04, 2010, 10:32:49 PM
Quote from: tripl3r on January 04, 2010, 09:05:37 PM
I get extra character come up when I type things in the chat... say when i type ' it will come up as \'
how can i fix this issue?
From the AjaxChat Wiki:

This bug appears to occur when PHP's magic_quotes_gpc is set to off in your server configuration.
You can fix this by changing the following line in AJAXChat.php:
Find:
if(get_magic_quotes_gpc()) {
Replace:
if(true) {
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on January 04, 2010, 10:39:33 PM
Quote from: Oceander on January 04, 2010, 01:36:14 PM
Ok, so I've perused the thread, and gone to the Wiki, and generally searched on the error I'm getting and have found nothing other than one opaque reference to it.

I have SMF 1.1.11 with no relevant modifications.  I'm serving it out of Apache 2.2.14, running on WinXP Pro, SP3, with PHP 5.3.0 and MySQL 5.0.5

When I install AjaxChat everything seems to work just fine, until I try to actually "shout" something or "chat" something, at which point I get this error:
QuoteChatBot: Error: Connection status: 404

I've tried to see what, exactly, it's not finding when I'm hitting the "shout" button, but to no avail.  The error logs for my webserver have entries that appear to correspond to my hitting those buttons, and they each look more or less like this:
QuoteAttempt to serve directory: <server-root>/<my-forum>/shoutBox/, referer: http://<my-domain>/<my-forum>/index.php

Any elucidation on what I'm doing wrong, or what I'm missing, would be greatly appreciated!


EDIT:  Some more (hopefully) useful info:  If I just do a simple "GET" action to url: http://<my-domain>/<my-forum>/shoutBox/
I get the standard Apache index served back, and the server logs reflect a successful response, with nothing in the error logs.  I receive the same successful response if I do a simple "GET" action to url: http://<my-domain>/<my-forum>/shoutBox/?ajax=true&shoutbox=true
that is, I get the standard Apache index page served back at me.

So, is it possible that there is some missing/erroneous data going through when the POST method is used that could be causing a 404 status code error?
From the AjaxChat Support Forums by Frug:

http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/3251680?message=7423805

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on January 04, 2010, 10:46:13 PM
Quote from: ErnieB on January 04, 2010, 08:58:38 PM
Anyone know a way to change the refresh rate of the chat? Maybe make it so the user has to click to refresh?

My host continues to take the script down because its using too much resouces.
From AjaxChat Support Forums by Frug:
http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/3060284?message=6601490

Also from Frug:
To make things clear: HTTP is not the ideal protocol for a Chat.
If you want to have a real chat server you should go for IRC or Jabber.
While not overcoming the limitations of a stateless protocol, the AJAX technology at least made it possible to implement a web chat that does not bring down the server.
This AJAX Chat is implemented to be as resource efficient as possible:
The operations the server has to do are not complex, the queries to the database held simple
Most of the work is done on client side: The language handling, the BBCode, Hyperlinks, Emoticons and Commands replacement is all done by JavaScript.
Only updated data is sent to the clients to keep the traffic low.

Source: http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Server_load
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on January 05, 2010, 01:50:16 AM
Thanks a TON LC. i searched and couldnt find anything.... Would you happen to know what this line of code does exactly if you change it to false.....

// If set to false the chat update is delayed until the event defined in ajaxChat.setStartChatHandler():
   startChatOnLoad: true,
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tripl3r on January 05, 2010, 10:05:38 AM
Thanks for you help LC that worked ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tripl3r on January 05, 2010, 11:16:26 AM
OK sorry for the noob questions but how can I set the chat to view only one theme and default that theme so everyone uses only that theme... also where can i customise that theme?
Also is there a way to show only 2 rooms. I want public and private that is all... thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Chair on January 05, 2010, 12:21:43 PM
I have three questions:

1. How do I change the colour of the shoutbox?
2. Is there a way I can make it display underneath a portal block?
3. How can I make it display on certain pages only?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 05, 2010, 02:05:41 PM
Quote from: LC on January 04, 2010, 10:39:33 PM
Quote from: Oceander on January 04, 2010, 01:36:14 PM
Ok, so I've perused the thread, and gone to the Wiki, and generally searched on the error I'm getting and have found nothing other than one opaque reference to it.

I have SMF 1.1.11 with no relevant modifications.  I'm serving it out of Apache 2.2.14, running on WinXP Pro, SP3, with PHP 5.3.0 and MySQL 5.0.5

When I install AjaxChat everything seems to work just fine, until I try to actually "shout" something or "chat" something, at which point I get this error:
QuoteChatBot: Error: Connection status: 404

I've tried to see what, exactly, it's not finding when I'm hitting the "shout" button, but to no avail.  The error logs for my webserver have entries that appear to correspond to my hitting those buttons, and they each look more or less like this:
QuoteAttempt to serve directory: <server-root>/<my-forum>/shoutBox/, referer: http://<my-domain>/<my-forum>/index.php

Any elucidation on what I'm doing wrong, or what I'm missing, would be greatly appreciated!


EDIT:  Some more (hopefully) useful info:  If I just do a simple "GET" action to url: http://<my-domain>/<my-forum>/shoutBox/
I get the standard Apache index served back, and the server logs reflect a successful response, with nothing in the error logs.  I receive the same successful response if I do a simple "GET" action to url: http://<my-domain>/<my-forum>/shoutBox/?ajax=true&shoutbox=true
that is, I get the standard Apache index page served back at me.

So, is it possible that there is some missing/erroneous data going through when the POST method is used that could be causing a 404 status code error?
From the AjaxChat Support Forums by Frug:

http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/3251680?message=7423805

As I am a novice, and quite thick-headed to boot, would you be so kind as to point out for me where the solution (or guidance) as to my problem lies in the text of the message you linked to, which I quote as follows:
QuoteI think looking for issues with your router is a red herring. The chat requests are handled on the same port using the same protocol as regular http traffic so if you can see the page, chat data (which is passed as xml) will be going through just fine.

I have it running on a server with a similar setup with no problems. And I reinstalled it recently from scratch.

Why do you need a .htaccess file with your setup?

"If I am not logged in it will request me to login, which I do, it authenticates me, then it gives me an index of the /chat directory. When I click on index.php chat I again have no one online in the online users area and get the 404 error."

There's definitely something wrong with your server setup then. I don't know why it's listing directory contents.

Also you can't get authenticated with the login page if you have an integrated version. You're supposed to log in via the forum, and only guest logins are possible from the chat login screen (the password field should not be there and I'll remove it one of these days probably).

Again, as I am quite the dunderhead, your elucidation would be most welcome.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 05, 2010, 02:09:01 PM
Regrettably, that cannot be the source of the problem, as this is on an insulated test server and I generally run with extremely liberal permissions on the relevant files (but, to be sure, I verified that all permissions are the same across all of the files, both old and new).

Quote from: ErnieB on January 04, 2010, 08:56:05 PM
Have you changed the permissions for the /chat/index.php and the /shoutbox/index.php to 755?


Quote from: Oceander on January 04, 2010, 01:36:14 PM
Ok, so I've perused the thread, and gone to the Wiki, and generally searched on the error I'm getting and have found nothing other than one opaque reference to it.

I have SMF 1.1.11 with no relevant modifications.  I'm serving it out of Apache 2.2.14, running on WinXP Pro, SP3, with PHP 5.3.0 and MySQL 5.0.5

When I install AjaxChat everything seems to work just fine, until I try to actually "shout" something or "chat" something, at which point I get this error:
QuoteChatBot: Error: Connection status: 404

I've tried to see what, exactly, it's not finding when I'm hitting the "shout" button, but to no avail.  The error logs for my webserver have entries that appear to correspond to my hitting those buttons, and they each look more or less like this:
QuoteAttempt to serve directory: <server-root>/<my-forum>/shoutBox/, referer: http://<my-domain>/<my-forum>/index.php

Any elucidation on what I'm doing wrong, or what I'm missing, would be greatly appreciated!


EDIT:  Some more (hopefully) useful info:  If I just do a simple "GET" action to url: http://<my-domain>/<my-forum>/shoutBox/
I get the standard Apache index served back, and the server logs reflect a successful response, with nothing in the error logs.  I receive the same successful response if I do a simple "GET" action to url: http://<my-domain>/<my-forum>/shoutBox/?ajax=true&shoutbox=true
that is, I get the standard Apache index page served back at me.

So, is it possible that there is some missing/erroneous data going through when the POST method is used that could be causing a 404 status code error?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 05, 2010, 03:09:22 PM
Quote from: ErnieB on January 04, 2010, 08:56:05 PM
Have you changed the permissions for the /chat/index.php and the /shoutbox/index.php to 755?


Quote from: LC on January 04, 2010, 10:39:33 PM

From the AjaxChat Support Forums by Frug:

http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/3251680?message=7423805



My thanks to both of you for taking the time to consider my problem.  While reflecting on your kind answers, I went back and looked at the packet captures I had made and realized that my problem - and my answer - were literally staring me in the face.  As I have said before, I am quite the novice, so I apologize if this seems trivial or trite to anyone else.

My problem, in a nutshell, was forgetting that, when Apache (my server) is confronted with a naked directory request - that is, a url that does not specifically name the document file to be served up - it will "helpfully" serve up a listing of the directory requested, and further, if the DirectoryIndex directive is set, will serve up only the file named therein as the index file.

Why was that my problem?  Because, the DirectoryIndex directive is tucked into the default httpd.conf file and specifies that only files named "index.html" are to be served up as directory indexes.  That presents a problem because when the "Shout" button on the shoutbox is clicked, it sends an HTTP POST request with a url that ends as follows: "/shoutBox/?ajax=true&shoutbox=true" (or "/chat/?ajax=true&shoutbox=true" if chat is integrated with shout - apparently).

The clue here is that this url really represents two components (as all of you know, just please bear with me as I just lo-o-o-ve to hear the sound of my keyboard clicking  ;D ), the relative path of the document requested, and an attached query string that follows the "?".  Thus, in the case above, the effect of the HTTP POST request is to ask that the "document" /shoutBox/ be served up, and to provide a query string containing "ajax=true&shoutbox=true" which Apache will interpret as a request for the index of the /shoutBox/ directory (which may, or may not involve the query string).  In my case, because I had not changed the default httpd.conf DirectoryIndex directive, that meant that the poor old Apache server was vainly looking for this document: "/shoutBox/index.html" and, when it couldn't find it - logically enough - it sent back the 404 error.

The fix, as is probably blindingly obvious to the rest of you, was to simply specify that, for all of my forum-related directories, Apache should serve the document "index.php" in response to any requests for a directory index.  That I did, and I am now happily chatting/shouting away to myself on my little testbed forum.

So, to sum up for posterity, and to provide some grist for the search mill for future newbies with the same problem (and you know they will be here, sooner or later), I state for the record:

If you're getting a 404 Status Code from your webserver when you try to use the chat or shoutbox function, double-check to make sure that your webserver is set up to serve the document "index.php" in response to any directory index requests, which would include a GET or POST request for a url that ends with a directory only and does not specify any particular document file.

How's that sound?

Again, thank you for your patience and your willingness to entertain my questions.

Regards to all, particularly ErnieB and LC,

Oceander
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 05, 2010, 03:55:52 PM
LC,

Thank you very much for this pointer; after I got my "big" problem solved, this one cropped up, but thanks to you, I got it solved in less than 5 minutes!

-Oceander

Quote from: LC on January 04, 2010, 10:32:49 PM
Quote from: tripl3r on January 04, 2010, 09:05:37 PM
I get extra character come up when I type things in the chat... say when i type ' it will come up as \'
how can i fix this issue?
From the AjaxChat Wiki:

This bug appears to occur when PHP's magic_quotes_gpc is set to off in your server configuration.
You can fix this by changing the following line in AJAXChat.php:
Find:
if(get_magic_quotes_gpc()) {
Replace:
if(true) {
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 05, 2010, 04:11:41 PM
Quote from: ErnieB on January 04, 2010, 08:58:38 PM
Anyone know a way to change the refresh rate of the chat? Maybe make it so the user has to click to refresh?

My host continues to take the script down because its using too much resouces.

Have you tried changing the value of the variable TimerRate in the file config.js?

The 14th and 15th lines of text in that file should read as follows: // The time in ms between update calls to retrieve new chat messages:
timerRate: 2000,


which would appear to cause the chat (and the shoutbox as well) to refresh themselves every 2 seconds.  As a very simple quickie fix, you could try increasing that value, e.g., to 4000 (4 seconds), to see if that sufficiently reduces the load on your server without ruining the experience of your users.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 05, 2010, 04:58:54 PM
Quote from: ErnieB on January 05, 2010, 01:50:16 AM
Thanks a TON LC. i searched and couldnt find anything.... Would you happen to know what this line of code does exactly if you change it to false.....

// If set to false the chat update is delayed until the event defined in ajaxChat.setStartChatHandler():
   startChatOnLoad: true,

I just tried playing around with that value, and it didn't seem to reduce the amount of updating once chat was started.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mikeach on January 05, 2010, 05:30:07 PM
I just installed this mod on a Win2k Advanced server using SMF 1.1.11.  I had to uninstall the GoogleBot and Spiders mod first due to an error, but it tested/installed fine after that and I then reinstalled the GoogleBot mod.

When I click on the chat button I get a login page, after logging in I get a 405 error.  I've checked IIS and index.php is the default document, and when going to the forum it always comes up fine.  If I add in the index.php to the url the chat opens but then I get the Error: Connection status: 405 when trying to chat.  Guess I'm lost, I just don't understand why this would happen with index.php being the default document on the site, I even check the folder to make sure that it was the default there also.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 05, 2010, 06:52:11 PM
Quote from: mikeach on January 05, 2010, 05:30:07 PM
I just installed this mod on a Win2k Advanced server using SMF 1.1.11.  I had to uninstall the GoogleBot and Spiders mod first due to an error, but it tested/installed fine after that and I then reinstalled the GoogleBot mod.

When I click on the chat button I get a login page, after logging in I get a 405 error.  I've checked IIS and index.php is the default document, and when going to the forum it always comes up fine.  If I add in the index.php to the url the chat opens but then I get the Error: Connection status: 405 when trying to chat.  Guess I'm lost, I just don't understand why this would happen with index.php being the default document on the site, I even check the folder to make sure that it was the default there also.

Well, the first thing to note is that the error you're getting - 405 - is not the same as the error that arises when the server cannot find the document you requested (as in my problem).  A 405 status code means that the document you requested is there, but that your browser used the wrong HTTP method to ask for it.  For example, using the POST method is generally not allowed for a static html page.

In your case, since the initial "chat" request is sent using the POST method (because you clicked on a button to submit form data), it's a good bet that for some reason your server has decided that your index.php document is not a document that can be handled using the POST method.

First I would check to see if the php engine has the proper permissions to use the directories you have for the chat/shoutbox stuff - if the index.php document is not in one of the directories the php engine can access, then it's possible that the server just sees the document as a "static html document" and thus ineligible for the POST method.

Beyond that, I don't know your particular server, so I don't know if you can restrict the use of the various HTTP methods, but that would be another thing to check into.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Zirc on January 06, 2010, 12:50:09 PM
Okay i'm gonna post this here first and see if anybody has any ideas before looking elsewhere.
I have AjaxChat Integration 3.2.1, SMF 1.1.10 and SimplePortal 2.3.1 and am looking for some sort of custom code I guess.

What I would like to do is display in the Who's Online block of SimplePortal (chatting) next to a users name if they are in AjaxChat.  I think this should be fairly simple but since my php knowledge is limited I can't figure out the code.  I imagine all it needs to do is get the UserID for the person online and then query the ajaxchat_online table to see if they are the same then output the text (chatting) and if the UserID is not in ajaxchat_online it would not display anything.  Seems pretty straightforward but i'm not sure how to go about it.

Any help would be great! Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on January 06, 2010, 05:41:41 PM
Quote from: Zirc on January 06, 2010, 12:50:09 PM
Okay i'm gonna post this here first and see if anybody has any ideas before looking elsewhere.
I have AjaxChat Integration 3.2.1, SMF 1.1.10 and SimplePortal 2.3.1 and am looking for some sort of custom code I guess.

What I would like to do is display in the Who's Online block of SimplePortal (chatting) next to a users name if they are in AjaxChat.  I think this should be fairly simple but since my php knowledge is limited I can't figure out the code.  I imagine all it needs to do is get the UserID for the person online and then query the ajaxchat_online table to see if they are the same then output the text (chatting) and if the UserID is not in ajaxchat_online it would not display anything.  Seems pretty straightforward but i'm not sure how to go about it.

Any help would be great! Thanks
You might get more help if you go here. http://simpleportal.net/index.php?board=39.0

Also you should look into upgrading your forum, as there were security bugs found in 1.1.10
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: C_Murder on January 06, 2010, 05:50:41 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2Fauibvb.png&hash=53b50a82db4a60f9f48b63627d36996368ef4447)

How i can fix that it wont show the messages 2 times?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Liam. on January 06, 2010, 07:39:30 PM
I've read through the FAQ and alot of the posts.
SMF 2.0 RC2 (using modified package). The shoutbox has all appeared as normal, but it seems to not be working. It started off with a ChatBot: Error connecting status: 500 error, so I fixed that by editing the two files to CHMOD 755, then it came up with an error connecting: 0, so I went through and disabled that (as said in the FAQ), but now nothing is happening. No ChatBot, can't shout, nothing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PiGuy on January 06, 2010, 08:46:56 PM
Excuse me for not reading the thread, but I need some help on;

How to kick people, it says i don't have permission to
and it would be appreciated if someone could provide me with a full list of commands.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 06, 2010, 11:31:03 PM
Quote from: Piguy on January 06, 2010, 08:46:56 PM
Excuse me for not reading the thread, but I need some help on;

How to kick people, it says i don't have permission to
and it would be appreciated if someone could provide me with a full list of commands.

On the first point, have you checked your SMF member permissions to make sure that the class of members you belong to has permission to moderate chat as well as to moderate the shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 06, 2010, 11:43:00 PM
I don't know if this is the proper protocol for this, but ...

I just modified my BoardIndex.template.php and index.template.php documents for the Classic theme so that the chat button (I used a custom button that I knocked together on GIMP), and the href link for opening up the chat would work on the Classic theme.  Would anyone care to see the revisions I've made?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SebaS on January 07, 2010, 02:02:34 AM
Quote from: iKorp on January 06, 2010, 07:39:30 PM
I've read through the FAQ and alot of the posts.
SMF 2.0 RC2 (using modified package). The shoutbox has all appeared as normal, but it seems to not be working. It started off with a ChatBot: Error connecting status: 500 error, so I fixed that by editing the two files to CHMOD 755, then it came up with an error connecting: 0, so I went through and disabled that (as said in the FAQ), but now nothing is happening. No ChatBot, can't shout, nothing.

x2 , the same problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Liam. on January 07, 2010, 06:03:59 AM
Quote from: sebas on January 07, 2010, 02:02:34 AM
Quote from: iKorp on January 06, 2010, 07:39:30 PM
I've read through the FAQ and alot of the posts.
SMF 2.0 RC2 (using modified package). The shoutbox has all appeared as normal, but it seems to not be working. It started off with a ChatBot: Error connecting status: 500 error, so I fixed that by editing the two files to CHMOD 755, then it came up with an error connecting: 0, so I went through and disabled that (as said in the FAQ), but now nothing is happening. No ChatBot, can't shout, nothing.

x2 , the same problem.

Stranger thing is, it's working on my local (Windows) server, and another live (Linux) server, same package, no edits. I don't see whats gone wrong.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: C_Murder on January 07, 2010, 06:53:53 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2Fauibvb.png&hash=53b50a82db4a60f9f48b63627d36996368ef4447)

How i can fix that it wont show the messages 2 times?
Please help me
[/quote]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: greenberet on January 07, 2010, 07:43:59 AM
Ok I´m still getting a Blank Screen, this is what I did to try to fix it:

Add the htaccess line to the file, (btw, there are 2 files, one in chat folder and one in shoutbox folder, add it on both)

Also, fixed the permissions to 755 on both Index.php files.

I was getting the 500 error, but i fixed it with the previous methods, now i only get the blank screen.

Anything else I can try?

Thanks a bunch!


UPDATE: I´m using a theme called GREEN_LEAF, which it doesnt have a Display_template file, on the original Default theme works good, but no on these one, what can i do to make it work?


thanks again
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 07, 2010, 02:08:41 PM
Quote from: greenberet on January 07, 2010, 07:43:59 AM
Ok I´m still getting a Blank Screen, this is what I did to try to fix it:

Add the htaccess line to the file, (btw, there are 2 files, one in chat folder and one in shoutbox folder, add it on both)

Also, fixed the permissions to 755 on both Index.php files.

I was getting the 500 error, but i fixed it with the previous methods, now i only get the blank screen.

Anything else I can try?

Thanks a bunch!


UPDATE: I´m using a theme called GREEN_LEAF, which it doesnt have a Display_template file, on the original Default theme works good, but no on these one, what can i do to make it work?


thanks again

What browser are you using?  If you're using IE8, try it in compatibility mode and see if that makes a difference.

Also, if you have a packet capture utility, see if you can capture any of the HTTP packets for the shoutbox so maybe you can get a better idea of what's going on.

Also, check in your access logs and error logs for your server, if there are other (hidden) errors happening, you may find them in those logs.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 07, 2010, 02:09:34 PM
Quick question:  does anyone know how to set the dateFormat so that it will read out in 12-hour clock format?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Oceander on January 07, 2010, 11:00:23 PM
Quote from: Oceander on January 07, 2010, 02:09:34 PM
Quick question:  does anyone know how to set the dateFormat so that it will read out in 12-hour clock format?

Hopefully someone knows of a less kludgy way of doing this, but after patiently wading through the javascripts, I've found that the dateFormat gets set in the cookie, and doesn't appear to get unset if you want to change it later on.  So my simple-minded, novice kludge was to specify that, in filling in configuration settings from the cookie, if the key is equal to 'dateFormat' then the configuration setting is not changed, and otherwise all other configuration settings put into the cookie are still copied over and override whatever other config settings there are.

Also, I had to add two lines to the dateFormat parsing routine (in the formatDate function) so that it would properly parse more than just a 24-hour-based clock.  Specifically, I added a replace subfunction that would parse the dateFormat string for "%h" and properly determine a 12-hour time (i.e., if H>12, H -= 12), and would parse the string for "%a" and determine am or pm.  Still very much a kludge, I will be the first to admit, but it gets me what I need for the time being.

I would make one humble little suggestion that, if the mod is going to give users the option to set a variety of time formats (which is the way it appears to work), that the formatDate routine incorporate the full PHP-style set of date/time formats, instead of the very limited formatting that is permitted now.  I suppose, now that I've opened my big, fat mouth, that I ought to be the one to come forward with a proposed comprehensive date/time formatting module to be used in the next revision/upgrade to this otherwise wonderful mod, no?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lt Storm on January 08, 2010, 11:28:12 AM
Never mind, it finally released me, I guess you just say "logged" in for awhile.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lt Storm on January 08, 2010, 04:39:34 PM
Ran into a little problem, I have a member who's user name is too long to log into the chat.  How do I fix that?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: playdiune on January 08, 2010, 10:26:27 PM
if i apply pretty urls also to boards, the shoutbox and chat stops working.

what can i do ? (using version 1.1.11)

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: playdiune on January 08, 2010, 10:57:48 PM
Quote from: playdiune on January 08, 2010, 10:26:27 PM
if i apply pretty urls also to boards, the shoutbox and chat stops working.

what can i do ? (using version 1.1.11)

thanks

Solved !!

edited .htaccess file and added a new rule on top;

RewriteRule ^chat/?$ /chat/index.php [L,QSA]
know is working great ;)

thanks
Title: Re: AjaxChat Integration
Post by: Vyache on January 09, 2010, 01:10:12 AM
Quote from: mrtrc266 on June 12, 2009, 01:24:57 AM
Quote from: allumius on June 11, 2009, 03:45:48 PM
Quote from: Youngiiie on June 11, 2009, 01:04:07 PM
Quote from: allumius on June 11, 2009, 12:43:36 PM
Well, i'm change my theme. Now i use BlackRainV2118
The chat work fine, but.... is posibble chat show only the last 10 lines? And the other whit scroll

I tink you need to find the guide by mrtrc266 - http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

:)

Loads of info in there
i have read this thread, but i dont see the solution, and muy ShoutBox is very big and have now 35 lines!!!!!

I take it that you mean everytime you type a message the shoutbox just keeps getting bigger and bigger? If that it the case then you need to do this edit

Open yourforum/Themes/yourtheme/style.css

In the very first line of that file put
@import url(../../shoutBox/css/shoutbox.css);

In SMF 2.0 RC 2 is that in index.css ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on January 09, 2010, 04:18:18 AM
@iKorp,@sebas
I installed this thing first before any mods on SMF 2.0 RC2. Also, check if your missing any files after the install. For example I was missing some files in shoutBox, such as in lib->lang (should be a folder) was corrupt(in my case).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lrodri7418 on January 09, 2010, 01:09:01 PM
HI...

I would appreciate if someone may help me out solving an issue I have with the ajax chat

When I first install it, the shoutout box worked perfectly fine first when we test it and then when we made it available to our users.

Nonetheless, after downloaded some mods, the shoutout box stopped working as it does not display what people is typing.

It also does not show the chat button.... I am using SMF 1.1.11Theme Extreme10

Well...I really appreciate if someone can help me out
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on January 09, 2010, 02:42:10 PM
@lrodri7418
Try uninstalling the mods you installed and pin point which mod is conflicting with it.

Anyone know how to clear AjaxChat conversations ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: weeman007 on January 09, 2010, 06:37:03 PM
Guys i cant install the shoutbox i get this:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Im using the latest smf 2.0

Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: topbuyer on January 09, 2010, 06:45:58 PM
Anyone please suggest - one month now - no help.

Pls suggest


Quote from: topbuyer on December 19, 2009, 07:20:51 PM
@ mrtrc266, you are not responding to my query. Did I asked something wrong. Your thoughts would be help. Thanks for your time.


@smp420

Mate, Thanks for reply.

No errors while installing it. Tried installing again !

Pls suggest.




Quote from: topbuyer on December 12, 2009, 11:35:21 PM
Any help for me please !


Quote from: topbuyer on December 05, 2009, 03:17:48 AM
I had a look to FAQ earlier as well, just had read now again. But, I couldn't find the answer. Please suggest or point me specifically to FAQ section, if I  missed something in FAQ.

Adding my question here again, so that you don't have go back to look for my question

-----

I saw someone asked same question but looks like no answer as of now. When I type message and click submit button, message is not shown on screen. I tried this on firefox, IE, Chrome.

SMF Version - 1.1.10
AjaxChat Integration      3.2.1

Please suggest

-----
Quote from: mrtrc266 on November 28, 2009, 01:03:46 AM
@ zijO have you tried just refreshing after you've been away for awhile?

@ topbuyer have you taken a look at the FAQ's? (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

@ kerbob take a look a few pages back there is a download that someone ported to RC2

Quote from: smp420 on December 13, 2009, 02:08:25 AM
Are the any errors in your error log and did you get any errors when you installed it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on January 10, 2010, 03:05:21 AM
Check your server error logs there might be something helpful there also make sure all the files uploaded correctly. Could I have a link to your site.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 10, 2010, 10:29:36 AM
@topbuyer

Have you read this (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)? Or this (http://www.simplemachines.org/community/index.php?topic=257973.msg1998551#msg1998551)? Or any of this (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: weeman007 on January 10, 2010, 11:51:41 AM
I still cant install it. I tryed too fake the smf version and now i get this:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.   

   Type     Action     Description
*    1.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add After    ./Sources/Admin.php    Test successful
      2.    Add After    ./Sources/Admin.php    Test successful
*    2.    Execute Modification    ./Sources/BoardIndex.php    Test failed
      1.    Replace    ./Sources/BoardIndex.php    Test failed
      2.    Add After    ./Sources/BoardIndex.php    Test successful
*    3.    Execute Modification    ./Sources/Load.php    Test failed
      1.    Add After    ./Sources/Load.php    Test failed
      2.    Add After    ./Sources/Load.php    Test successful
      3.    Add Before    ./Sources/Load.php    Test successful
*    4.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Add After    ./Sources/ManagePermissions.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add After    ./Sources/ManageSettings.php    Test successful
      3.    Add Before    ./Sources/ManageSettings.php    Test successful
*    6.    Execute Modification    ./SSI.php    Test successful
      1.    Add Before    ./SSI.php    Test successful
*    7.    Execute Modification    ./Sources/Subs.php    Test successful
      1.    Add After    ./Sources/Subs.php    Test successful
      2.    Add After    ./Sources/Subs.php    Test successful
*    8.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
      1.    Add Before    ./Themes/default/BoardIndex.template.php    Test failed
*    9.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Add Before    ./Themes/default/index.template.php    Test failed
*    10.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
      1.    Add Before    ./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    
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: societyofrobots on January 10, 2010, 11:43:10 PM
I'm using v1.1.11, but can't seem to install AjaxChat Integration v3.2.1.

I click 'Apply Mod' in packages, but nothing happens. Same for 'List Files' - nothing. All my other mods installed just fine. I haven't had problems installing AjaxChat in previous SMF versions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SwissRed on January 11, 2010, 06:06:59 AM
I have set up a shout box and added a lot of Smileies (>100) of my own. Now whenever i refresh the page, The shoutbox takes a long time to show. The page will freeze until The shoutbox is shown.

Anyone has a solution other than take away some smileys?

Thanks in advance
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on January 11, 2010, 08:43:43 AM
@weeman007
That's right, you need the modified edition for smf 2.0 RC 2.
@chico200987 has the download (http://www.simplemachines.org/community/index.php?topic=257973.msg2422548#msg2422548).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SwissRed on January 11, 2010, 08:54:23 AM
Regarding the Loading time of the Shoutbox when there is a lot of Smileys in the JS file.

Can i change it to load the smiley from the DB rather than from config.js? Maybe it will be quicker. Anyone knows how to do this?

Thanks in advance
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: weeman007 on January 11, 2010, 11:47:51 AM
Quote from: Vyache on January 11, 2010, 08:43:43 AM
@weeman007
That's right, you need the modified edition for smf 2.0 RC 2.
@chico200987 has the download (http://www.simplemachines.org/community/index.php?topic=257973.msg2422548#msg2422548).

Thank you!! i searched the last pages of this topic many times but i never found out that there is a new version for 2.0

Thanks again!!

I have another question i installed it in my default theme and it works good in the custome theme

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi47.tinypic.com%2Fqn09pi.jpg&hash=c68499f4043cab0f6c5abe8d37a90cff6b073093)

Do i still need too use Package Parser?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on January 11, 2010, 05:12:49 PM
@weeman007,
"well if it ain't broke, don't try to fix it" or something like that...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: weeman007 on January 11, 2010, 05:20:25 PM
True it ain't broken hehe:P

Can you confirm that you can see the shoutbox in the correct way like you have on your own forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: linette97 on January 11, 2010, 09:43:52 PM
Hi all, The Mod installed fine & it works great! Mostly using this for the Shoutbox!

But I need help on a few things...
I'm trying to add my own smileys but when I try to install them I get permission denied
I tried to change permissions to /chat/index.php and /shoutbox/index.php to 755 & 777
& get this...

EDIT: I finally got the permissions to work.. I asked for help from my server & this is what they said
QuoteIt appears you created this folder and files using a script. When a script is used to create files, scripts must be used to change permissions due to the ownership of the files. There are many file management scripts you can use.

Another thing... The timestamp in the shoutbox - How can I add the date?

Yet another.... How can I change the Name of the Shoutbox?... Instead of it saying "Shoutbox" I wanted to change it to my site name or whatever.


Last one  ;D - Same like "mrtrc266 has it, How can I change the colors to match my site...Basically the same function it has in "Chat" when you change the style.

Any help is appreciated THANKS ALL!!I'm going to keep searching through the pages & see if I can fix some of this stuff myself... but would like to still have help.  :D

Oh BTW.. using 2.0 RC2 with a custom Theme (Curvy Caramel)  that only uses index.template




Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: meniinem on January 12, 2010, 09:42:17 AM
Hi,

I installed the Shoutbox and it works fine.

But is there a possibility to get a 'disable sound'-button for the shoutbox?

Greetings from Munich
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: linette97 on January 12, 2010, 06:44:43 PM
Quote from: Oceander on January 07, 2010, 11:00:23 PM
Quote from: Oceander on January 07, 2010, 02:09:34 PM
Quick question:  does anyone know how to set the dateFormat so that it will read out in 12-hour clock format?

Hopefully someone knows of a less kludgy way of doing this, but after patiently wading through the javascripts, I've found that the dateFormat gets set in the cookie, and doesn't appear to get unset if you want to change it later on.  So my simple-minded, novice kludge was to specify that, in filling in configuration settings from the cookie, if the key is equal to 'dateFormat' then the configuration setting is not changed, and otherwise all other configuration settings put into the cookie are still copied over and override whatever other config settings there are.

Also, I had to add two lines to the dateFormat parsing routine (in the formatDate function) so that it would properly parse more than just a 24-hour-based clock.  Specifically, I added a replace subfunction that would parse the dateFormat string for "%h" and properly determine a 12-hour time (i.e., if H>12, H -= 12), and would parse the string for "%a" and determine am or pm.  Still very much a kludge, I will be the first to admit, but it gets me what I need for the time being.

I would make one humble little suggestion that, if the mod is going to give users the option to set a variety of time formats (which is the way it appears to work), that the formatDate routine incorporate the full PHP-style set of date/time formats, instead of the very limited formatting that is permitted now.  I suppose, now that I've opened my big, fat mouth, that I ought to be the one to come forward with a proposed comprehensive date/time formatting module to be used in the next revision/upgrade to this otherwise wonderful mod, no?

Ummm ok :o Please explain in dummy terms ;).. I'm totally lost!! Where & how did you change the Date.. I want to add the date next to the time in the "ShoutBox"..If that's what you were talking about. Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: legoracer on January 12, 2010, 07:55:43 PM
Please help....

I go install the Ajax Chat  http://custom.simplemachines.org/mods/index.php?mod=1319

Apply mod... no failed tests I proceed...

Now when i go to VIEW the forum I get an error saying I'm 1.1.11 and my forum database is 1.1.9.... it suggests I do the upgrade... So i do...

Now I have this error

Table 'saveys.smf_ajaxchat_online' doesn't exist
File: /home/www/saveyourskin.ca/htdocs/forum/Sources/Load.php
Line: 2244

I still can't bring my forum up...

www.saveyourskin.ca/forum

This is a very important forum to some people. Your help will be appricated!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: slopcek on January 12, 2010, 08:14:21 PM
I don't. I've already got one


cinemakulubu
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SoKoOLz on January 13, 2010, 12:32:29 AM
Hi, the mod looks great,

However, I can't seem to apply the mod ( there is no Install choice available), when I clicked on it , it just reload the page. Also when I tried parsing it manually, I can't run the file Tables_1.1.X.php, it outputs "No Database Selected".

Please help I really need the new replacement of my shoutbox.

Thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kizo on January 13, 2010, 01:41:34 AM
hello !

i really like your mod, it is just what i need.

but !

i don't seem to get the "show as mini chat" option and cha always appears on top of the forum, i would like it to be on the bottom.

what do i do ?

thx and best !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: legoracer on January 13, 2010, 11:41:52 AM
Any help would be great please
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Miguel86 on January 13, 2010, 01:42:05 PM
Is possible to dont wait until all site loads to load ajaxchat? messages are shown after all site loaded and on a forum that has external images on signatures that can take some time (sometimes 10 seconds) is there any way to make it normal without waiting?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SwissRed on January 13, 2010, 02:43:46 PM
Quote from: linette97 on January 11, 2010, 09:43:52 PM
Yet another.... How can I change the Name of the Shoutbox?... Instead of it saying "Shoutbox" I wanted to change it to my site name or whatever.[/b][/size]

Go to Themes/default, open Shout.template.php

And search for "ajax_shoutbox_collapse".

one of the result will look like this:

<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a> ', $txt['shoutBox'], '

Either change the variable $txt['shoutBox'] to a new one you declare yourself
or
add some text in front like:

<a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>Member Only ', $txt['shoutBox'], '

I have only SMF 1.11, but i think it should be the same.

Cecil




[/quote]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SwissRed on January 13, 2010, 02:46:49 PM
Quote from: linette97 on January 11, 2010, 09:43:52 PM
They do not show up!! I was wondering if the 1st edit to  yourforum/Themes/yourtheme/index.template.php

Just a silly suggestion. Do you see a button called "Insert Smiley"? You have to click the button to show the smiley after implementing the changes to ADD MORE SMILEY

If not i will see further.

Cecil
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BarfBag on January 13, 2010, 04:27:20 PM
How do I reduce the stress that this modification puts on the database?  It slows down my forum so much, people aren't even able to post whenever it's enabled.  I was thinking of creating a database devoted to AJAX.  Is this possible, while keeping the forum integration?  Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on January 13, 2010, 04:38:10 PM
Wouldn't actually make a lot of difference putting it in its own database; it already occupies part of the existing SMF database. (If anything unless you have a VPS or better and have direct control over what the DB does, you can't change it anyway)

The problem is any AJAX system will tax a server hard - no way around it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: neo2504 on January 13, 2010, 05:18:34 PM
I tried installed this mod 2 times:
1. The last official mod, simulating whit my RC2 forum the oldest RC1.2 - then after Uninstalling it,
2. The not official update by chico200987
http://www.simplemachines.org/community/index.php?topic=257973.msg2422548#msg2422548

The chat looks good but I have 1 BIG problem:
Only me, the founder, can login to the chat. The other members, even the gMod can't login to the chat, looks like they aren't registered.
How can I solve this????
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on January 13, 2010, 06:05:15 PM
FAQS (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on January 13, 2010, 07:22:48 PM
I wish people would use the search feature to find the answers to their questions. I think the main mod page even has the FAQ linked there.  Every day this thread is plagued with different people who ask the same questions over and over.

Come on people. Stop being so lazy.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on January 13, 2010, 07:28:47 PM
Yes it is on the mod page just nobody looks there. And that question has probably been answered at least 10 times in this thread.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: legoracer on January 13, 2010, 07:51:15 PM
I do not know WHO you guys are talking to? If you are talking to me about my problem message Reply #4914 I have looked through that FAQ... nothing there. I can not even OPEN my forum anymore.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on January 13, 2010, 08:01:42 PM
See that's the thing Lego, when people flood this topic with basic issues that CAN be solved in the FAQ, questions like yours get missed.

I have some suggestions to pinpoint what went wrong with your issue, I hope this helps.

The template was somehow altered (probably during upgrade). You should look at your database and also, check this site's community support topics for similar issues.

"Table 'saveys.smf_ajaxchat_online' doesn't exist" means the table was not created in your database, therefore when you uninstalled and reinstalled, something went wrong.

When you uninstalled or when you reinstalled, there were errors that most likely came up. If not in your admin panel, I would say your server most likely has a log of errors that will show the source of the issue.

If you can pinpoint the errors and post them here, you will most likely get better help. Saying something is broke but not telling what exactly happened when you reinstalled aside from a table error means you missed something when you installed the first time or when you installed again. 

The best thing to do is have the server's error log and if you can turn on the server error system that will show what exact error codes come up on loading your site.

Also if you have a custom theme, this will also be different then if you are using the default theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: legoracer on January 13, 2010, 08:31:09 PM
Thank you LC for responding! I agree with you as in researching questions before asking. I have read over the 247 pages... and there are stuff that is close to my problem but not exactly the same as my problem; more junk than i needed to read. But who am i to say that?

I will ask for the server log and see what I can find and report back. But looking through the admin panel error log this is the only log that doesn't have the load.php problem.

http://www.saveyourskin.ca/forum/index.php?action=packages;sa=install2;package=AjaxChatIntegration_3.2.1.zip 
Database Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8
File: /home/www/saveyourskin.ca/htdocs/forum/Packages/temp/Tables_1.1.X.php


I installed on the default theme. I have loaded and working on another theme but no one is using it as i have it turned off right now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on January 13, 2010, 09:16:48 PM
what version of mysql are you using. If you can upgrade it that might fix it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SwissRed on January 13, 2010, 10:32:42 PM
Quote from: LC on January 13, 2010, 07:22:48 PM
I wish people would use the search feature to find the answers to their questions. I think the main mod page even has the FAQ linked there.  Every day this thread is plagued with different people who ask the same questions over and over.

Come on people. Stop being so lazy.



Do you know that if i use the search feature on the top of this page, i always only get one result from the search. I give up this search feature, and just go through nearly 247 pages of replies. I would suggest to use the search for our problems if it works
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on January 13, 2010, 10:38:45 PM
What were you searching for?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Miguel86 on January 14, 2010, 03:14:11 AM
I'm searching how to make that ajax chat dont need to wait until all page load to load messages.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Pupo on January 14, 2010, 09:04:10 AM
How to move chat from top to bottom of the forum index page?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: legoracer on January 14, 2010, 11:45:51 AM
Quote from: smp420 on January 13, 2010, 09:16:48 PM
what version of mysql are you using. If you can upgrade it that might fix it.

I couldn't tell you.... Sounds bad yes but this is the first host I have used that didn't allow me to setup the sql.... But I will have that answer for you soon.

I think that question was directed to me right?

Thank you for your response!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: derby on January 14, 2010, 02:14:44 PM
When i open the chat menu i get this error..PLEASE HELP


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at einstienworld.net Port 80
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: derby on January 14, 2010, 02:35:04 PM
When i open the chat menu i get this error..PLEASE HELP


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at einstienworld.net Port 80
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: topbuyer on January 15, 2010, 05:17:27 PM
No one will read full thread mate. I did search but didn't make it work. Already read FAQ as said in my previous post.

Your link 1, 2 helped. Thanks everything working now.

Help can be given politely also.

-------
Edit:
Just noticed I ran Run maintenance task of pretty urls. And rewrite rule from .htaccess is gone. Any suggestion for this.

Quote from: SunKing on January 10, 2010, 10:29:36 AM
@topbuyer

Have you read this (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)? Or this (http://www.simplemachines.org/community/index.php?topic=257973.msg1998551#msg1998551)? Or any of this (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)?
Title: AjaxChat Integration (latest version 3.2.1) - Time Zone
Post by: -Maximus- on January 15, 2010, 05:21:24 PM
First of all - big thanks to author. The Chat works great. One little question - looks like the chat shows a wrong time (not local). But my SMF shows it correct (not a server problem, I mean). So: where can I find needed settings (I understand - it must be one short string in some place. But where?) Help me PLEASE O:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: topbuyer on January 15, 2010, 05:58:48 PM
Sabre, are you still around.

Followed your suggestion to add chat in menu bar of dilbermc them. Its not aligned properly, pls see attach and suggest.

And in Chrome a chat pop up window comes. But in firefox new tab opens for chat. What changes need to open popup in firefox as well.

Others, pls suggest.


Quote from: Sabre™ on November 08, 2009, 07:23:32 PM
@ ardd
Arrgg, sorry bud, I forgot to add the span tags lol
This should help it perform 'all' of it's designed functions, if you choose to use them.
   // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
    echo '<li', $current_action == 'chat' ? ' id="chosen"' : '', '><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>';


@ NaWaR
digit is correct.
You have not provided any information besides 'I had Errors Appears'.
What were the errors you speak of?
Please take a little time to read [THIS] (http://docs.simplemachines.org/index.php?topic=494.0) and [THIS] (http://docs.simplemachines.org/index.php?topic=493.0).
They will enable people to assist you with more efficiency.

Cheers :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rex Zac on January 15, 2010, 06:19:57 PM
Hi everyone, its me again ^^
i just installed new 2.0 rc2 and i wanna this chat again, cos its gr8!

i have few questions and i ll order by priority for me :)

1.  how can i move my shoutbox up the menu? now is placed between news rotator and link navigation  so its... bad like that ..
i have smf 2.0 rc2 on default theme with ajax for rc2 (x.3 if am right, non official version for rc2 :D )

2. is it posible to make somehow that shoutbox refresh himself when i click anywhere, because now is only when i click on that textbox where i write - and chat is updated untill i dont click somewhere else.

3.//offtopic// can i somehow easly add external link in regular menu ?

thx everyone!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: linette97 on January 17, 2010, 09:18:59 PM
Quote from: SwissRed on January 13, 2010, 02:46:49 PM
Quote from: linette97 on January 11, 2010, 09:43:52 PM
They do not show up!! I was wondering if the 1st edit to  yourforum/Themes/yourtheme/index.template.php

Just a silly suggestion. Do you see a button called "Insert Smiley"? You have to click the button to show the smiley after implementing the changes to ADD MORE SMILEY

If not i will see further.

Cecil

:o lol yea I see the button there..  :D I tried installing the smileys that came with the Add Ons & I see them there but when I click on a smiley only the words show up not the image..

EDIT: I GOT IT TO WORK THANKS!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: raven85 on January 18, 2010, 01:05:54 PM
How do i fix this gray line?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi49.tinypic.com%2F1948x2.jpg&hash=875f9c48a1ee7b67a8aa460712b8cf1b4d255f1d)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: n3Xtlvl on January 18, 2010, 10:50:08 PM
Quote from: raven85 on January 18, 2010, 01:05:54 PM
How do i fix this gray line?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi49.tinypic.com%2F1948x2.jpg&hash=875f9c48a1ee7b67a8aa460712b8cf1b4d255f1d)

Not Worked on SMF2.0 RC2 ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: raven85 on January 19, 2010, 10:19:30 AM
Quote from: n3Xtlvl on January 18, 2010, 10:50:08 PM
Quote from: raven85 on January 18, 2010, 01:05:54 PM
How do i fix this gray line?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi49.tinypic.com%2F1948x2.jpg&hash=875f9c48a1ee7b67a8aa460712b8cf1b4d255f1d)

Not Worked on SMF2.0 RC2 ;)

What are you talking about? Is working fine but I need to remove that gray line.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: n3Xtlvl on January 19, 2010, 11:13:11 AM
Just think about it, why is the line as well ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Patriot89 on January 19, 2010, 04:34:51 PM
Hey, just installed it with the version for 2.0 RC2 great mod, just one issue. It seems that the height is messed up as it continues to just go through the entire page instead of having a set height using scroll bars? Any fix?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: foxlakefishing on January 19, 2010, 07:12:26 PM
need some help please 
I tried to install AjaxChat Integration (latest version 3.2.1)
and it says i have some sort of permission error  and doesnt recommend  me to continue
I am currently using smf 1.1.5

i really need this chat   any help would be appreciated
here my site
http://foxlakefishing.com/forum/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 19, 2010, 07:16:22 PM
Firstly you would be advised to upgrade to 1.1.11 and also the latest version for the mod is 3.3.3 which can be found a few posts back.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: foxlakefishing on January 19, 2010, 09:09:53 PM
I try to update to 1.1.11 but it wont let me saying ssi failed??  plus i do not see the latest version 3.3.3
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Patriot89 on January 19, 2010, 09:41:41 PM
Continuing with my post here is what I'm talking about

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcn-solalliance.com%2Fshoutboxerror.jpg&hash=4f6591d695f2cbe1d5a308c6e9478ec68887c73e)


I fixed my original issue with the style not working. Now my issue is the grey bar inbetween.

And is there a way to get the membergroup colors to work in the shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 20, 2010, 02:10:36 AM
Quote from: foxlakefishing on January 19, 2010, 09:09:53 PM
I try to update to 1.1.11 but it wont let me saying ssi failed??  plus i do not see the latest version 3.3.3

My apologies I mistyped.

It should say 3.2.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 20, 2010, 02:12:14 AM
Quote from: Patriot89 on January 19, 2010, 09:41:41 PM
Continuing with my post here is what I'm talking about

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcn-solalliance.com%2Fshoutboxerror.jpg&hash=4f6591d695f2cbe1d5a308c6e9478ec68887c73e)


I fixed my original issue with the style not working. Now my issue is the grey bar inbetween.

And is there a way to get the membergroup colors to work in the shoutbox?

Before we continue may I ask why your link points to a non smf forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maseonary on January 20, 2010, 10:37:48 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.moddersnation.co.uk%2Fmodderstest%2FCapture.JPG&hash=d8aa9d9469bb14d146edf8cdccff297369531229)

I'm having same problem with with the missing bit/blue line above shoutbox. any ideas?

My Forum = moddersnation.co.uk/modderstest
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gerlandog on January 20, 2010, 12:54:29 PM
sorry guys, if someone already post it, but... i tried mny times to mak this mod work, until i finnaly got the 3.2.2.
i installed and the chat works great, but i can not get the shout box to work, it appears on the screen but if i write something it doesn`t appear on the shoutbox itself... and i have an error on the page:
Detalles de error de página web

Agente de usuario: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3)
Fecha: Wed, 20 Jan 2010 17:36:42 UTC


Mensaje: Object expected
Línea: 122
Carácter: 27
Código: 0
URI: http://www.gsmteam.net/SMF2/index.php

I someone can help it would be appreciated!!!

Thanks, Gerlando
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Patriot89 on January 20, 2010, 09:24:57 PM
Quote from: Brack1 on January 20, 2010, 02:12:14 AM
Quote from: Patriot89 on January 19, 2010, 09:41:41 PM
Continuing with my post here is what I'm talking about

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcn-solalliance.com%2Fshoutboxerror.jpg&hash=4f6591d695f2cbe1d5a308c6e9478ec68887c73e)


I fixed my original issue with the style not working. Now my issue is the grey bar inbetween.

And is there a way to get the membergroup colors to work in the shoutbox?

Before we continue may I ask why your link points to a non smf forum?

?? My forum is running SMF 2.0 RC2... http://cn-solalliance.com is the forum... which if you openend the image it would go to that site /shoutboxerror.jpg
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jdvarner on January 20, 2010, 10:02:48 PM
how do you make a private room and invite a person to a private room?

i see private room as an option, but appears only the one person goes in there and you can't invite anyone to it? maybe i am doing it wrong?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dungeon1uk on January 21, 2010, 05:06:16 AM
Hi, can someone please help me out.

I just installed the RC2 version linked a few pages back onto my forum and its all working great apart from one thing, i dont want the chat feature, only the shoutbox so i have been through all the permissions and disabled Chat Access to all groups (apart from admins) however the chat button is still on the menu bar of my forum, is there any way i can remove it completly??

Thanks in advance
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maseonary on January 21, 2010, 07:11:16 AM
dungeon1uk
./Sources/Subs.php
Find:

$context['allow_pm'] = allowedTo('pm_read');

Remove After:



$num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
$chatButton = $txt['chat'];
$chatButton .= ($num > 0) ?  ('('.$num.')') : '';
$chatLink = str_replace("index.php", "chat/index.php", $scripturl);
if (!empty($modSettings['chatPopUp']))
$chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';


Find:

'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
),
),
),


Remove After:

'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),


that will remove the chat button
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dungeon1uk on January 21, 2010, 07:41:30 AM
Thank You :)

==EDIT==

That worked perfectly, thanks again

For anyone who like me wants to use this as a shoutbox only i have attached the edited subs.php which removes the chat button from the menu bar.

Remember to backup your original subs.php before replacing with this version.

Thanks go to maseonary for instructions on how to do it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on January 21, 2010, 06:30:15 PM
Hey all,
I have a very simple question.  I'd like to be able to change where the Chat button shows users as Chat(1) to look like Chat [1] to match how my media gallery looks.

I know I'm anal retentive. :P But its bugging the hell outta me, and I cant seem to find that for sure, for fear of changing an actual PHP usage of '(' and borking it up.

Can someone direct me to what to edit?  I just want to change ( ) to be [ ]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on January 21, 2010, 06:44:57 PM
Quote from: Stigmartyr on January 21, 2010, 06:30:15 PM
Hey all,
I have a very simple question.  I'd like to be able to change where the Chat button shows users as Chat(1) to look like Chat [1] to match how my media gallery looks.

I know I'm anal retentive. :P But its bugging the hell outta me, and I cant seem to find that for sure, for fear of changing an actual PHP usage of '(' and borking it up.

Can someone direct me to what to edit?  I just want to change ( ) to be [ ]


...and I figured it out on my own :P

Fix:

Go to ../Sources/Subs.php

Find:
$chatButton .= ($num > 0) ?  ('('.$num.')') : '';

Replace with:
$chatButton .= ($num > 0) ?  (' ['.$num.']') : '';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hadesflames on January 21, 2010, 08:04:10 PM
has anyone been able to get it to look like this yet?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi46.tinypic.com%2Fdf7pkx.png&hash=5dcafbb3a2e641a7ac921842ed2c446ebef880d9)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kirsten07734 on January 21, 2010, 10:16:26 PM
The AJAX Chat module uses boards (names and permissions) for the channels in the chat room.  This is actually pretty cool because the same permissions that work on the board work on the corresponding chat channel, ie if a person has permission to access board X then he can also access the corresponding channel X.

However, I have a LOT of boards.  In fact I have many more boards (50+) than I need chat channels.  Is there a way to restrict which boards appear as channels in the chat room?  Five channels would be more than sufficient and much easier for my members to navigate.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 21, 2010, 10:27:24 PM
Quote from: Kirsten07734 on January 21, 2010, 10:16:26 PM
The AJAX Chat module uses boards (names and permissions) for the channels in the chat room.  This is actually pretty cool because the same permissions that work on the board work on the corresponding chat channel, ie if a person has permission to access board X then he can also access the corresponding channel X.

However, I have a LOT of boards.  In fact I have many more boards (50+) than I need chat channels.  Is there a way to restrict which boards appear as channels in the chat room?  Five channels would be more than sufficient and much easier for my members to navigate.

The following is from a previous post ( page 140).

Edit/Remove the channels that are currently boards.
Open.....yourforum/chat/lib/config.php
Find

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;


And replace with the code below and just change the numbers to the number of the boards for the boards you want to have as channels

EXAMPLE: If "General Discussion" was board #1 and you had another board "SMF Talk" was board #2 then your code would look like this. This would make it so ONLY General Discussion and SMF Talk would appear in the channel list.


// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(1,2);


To have ONLY the Public Room avaliable in the Channel List, change the array to 0


// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = array(0);


You can also change the name of the Public Channel to something like "YourForums Lounge" Find and change Public to whatever you like


// Default channelName used together with the defaultChannelID if no channel with this ID exists:
$config['defaultChannelName'] = 'Public';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: linette97 on January 22, 2010, 02:26:16 AM
Quote from: linette97 on January 11, 2010, 09:43:52 PM
Hi all, The Mod installed fine & it works great! Mostly using this for the Shoutbox!

But I need help on a few things...
I'm trying to add my own smileys but when I try to install them I get permission denied
I tried to change permissions to /chat/index.php and /shoutbox/index.php to 755 & 777
& get this...

EDIT: I finally got the permissions to work.. I asked for help from my server & this is what they said
QuoteIt appears you created this folder and files using a script. When a script is used to create files, scripts must be used to change permissions due to the ownership of the files. There are many file management scripts you can use.

Another thing... The timestamp in the shoutbox - How can I add the date?

Yet another.... How can I change the Name of the Shoutbox?... Instead of it saying "Shoutbox" I wanted to change it to my site name or whatever.
Can be changed under Admin>Configuration>Language>Edit Language

Last one  ;D - Same like "mrtrc266 has it, How can I change the colors to match my site...Basically the same function it has in "Chat" when you change the style.

Any help is appreciated THANKS ALL!!I'm going to keep searching through the pages & see if I can fix some of this stuff myself... but would like to still have help.  :D

Oh BTW.. using 2.0 RC2 with a custom Theme (Curvy Caramel)  that only uses index.template


It's amazing how I posted this almost 2 weeks ago & NO ONE helped me :-[. I actually figured out how to do this all by my little self ;D.

The only thing I still can't figure out is the time. I would like the date showing next to the time. any ideas??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maseonary on January 22, 2010, 10:25:43 AM
whoohooo!!!!

i've figured out how to get rid of the missing gap/blue line/grey line that people have experienced.
in - Themes/default/Shout.template.php

Locate:
if ($flag){
echo '


Add After:

<br class="clear" />

So it looks like this:

                if ($flag){
echo '
                <br class="clear" />



Please post your results, as it worked for me lets hope it works for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Patriot89 on January 22, 2010, 04:52:49 PM
Quote from: maseonary on January 22, 2010, 10:25:43 AM
whoohooo!!!!

i've figured out how to get rid of the missing gap/blue line/grey line that people have experienced.
in - Themes/default/Shout.template.php

Locate:
if ($flag){
echo '


Add After:

<br class="clear" />

So it looks like this:

                if ($flag){
echo '
                <br class="clear" />



Please post your results, as it worked for me lets hope it works for you.

Awesome bro good job.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Patriot89 on January 22, 2010, 11:56:29 PM
Question.

Is there a way to get the user colors to be the membergroup colors?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 23, 2010, 12:05:25 AM
Quote from: Patriot89 on January 22, 2010, 11:56:29 PM
Question.

Is there a way to get the user colors to be the membergroup colors?

This has been experimented with before with no success.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Andrei Cantey on January 23, 2010, 04:35:32 AM
Alright, i have managed to uninstall this and now it has knocked
my complete site off. I can't view any other parts of my site.
Can someone please explain what i can do or to retrace.
I have done a backup on the themes but i can't even view the
different types of themes I have. I can access the main page
only because it isn't connected to the SMF folder.

God Bless America.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vertese on January 23, 2010, 10:49:29 AM
Hi,
We have downloaded the Ajax chat to our forum.

SMF 1.1.11 with Dilber MC

It works fine, but we can't access any admin for the chat.  It asks me to log in and then takes me straight to the chat room and not an admin page.
Any ideas please
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BeachBum3668 on January 23, 2010, 12:30:32 PM
I'm at my wits' end. I've installed (or tried to) Ajax Chat on a test forum. I've got NOTHING.

I went through and double-checked all the file functions listed to manually install and all files seem to be correct. Again, I've got nothing on my forums to indicate a chat exists.

I KNOW this is just something stupid on my part, but I'm desperate. I'm using 1.1.11 and have triple checked that I'm using the DEFAULT theme. any ideas what I'm doing wrong?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maseonary on January 23, 2010, 12:49:58 PM
beachbum3668, whats the link to your forum? i could possibly take a quick look.

have you enabled it in admin?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 23, 2010, 01:06:35 PM
Quote from: Brack1 on January 23, 2010, 12:05:25 AM
Quote from: Patriot89 on January 22, 2010, 11:56:29 PM
Question.

Is there a way to get the user colors to be the membergroup colors?

This has been experimented with before with no success.

With no success? This isn't entirely true. There are instructions here for both adding membergroups as well as specifying colors. The downfall though is if, like me, you have many membergroups, it can be quite a pain to implement as you have to manually add each group with it's corresponding color. It isn't going to grab the colors automatically from SMF yet (as far as I know).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 23, 2010, 01:09:53 PM
Quote from: Andrei2000PC on January 23, 2010, 04:35:32 AM
Alright, i have managed to uninstall this and now it has knocked
my complete site off. I can't view any other parts of my site.
Can someone please explain what i can do or to retrace.
I have done a backup on the themes but i can't even view the
different types of themes I have. I can access the main page
only because it isn't connected to the SMF folder.

God Bless America.

If you could post a link to your site along with any errors that might be showing and what version of SMF.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 23, 2010, 01:12:24 PM
Quote from: vertese on January 23, 2010, 10:49:29 AM
Hi,
We have downloaded the Ajax chat to our forum.

SMF 1.1.11 with Dilber MC

It works fine, but we can't access any admin for the chat.  It asks me to log in and then takes me straight to the chat room and not an admin page.
Any ideas please

If I'm not mistaken, the admin for the chat is simply located in SMF's normal admin area. The login is purely for logging into the chat itself. (You have permission to kick me if I am way off...lol...it has been a while since I have used this particular chat system.)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vertese on January 23, 2010, 01:31:31 PM
Sunking, thank you for the answer, I would not dream of kicking you xx

I looked in smf admin and could find nothing.

I want to disable the facility for users to change their name and a few more bits like timing, but at the moment have no admin at all.

thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Johnnyvermont on January 23, 2010, 02:07:25 PM
I could use some help on this.

I just tried to install Ajax Chat on my busy board and it eseentially crashed my board.

I now get error :  Database Error
Table 'hiking.smf_ajaxchat_online' doesn't exist
File: /home/content/n/a/k/nakedinvt/html/hiking/forum/Sources/Load.php
Line: 2250


How can I completely remove Ajax Chat and get this board working again.

Any help would be appreciated very much!

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 23, 2010, 02:23:11 PM
@vertese

http://custom.simplemachines.org/mods/index.php?mod=1319

Have a look at the images there. It is showing the admin stuff located under Features and Options. If you don't see that there, it may be possible that you are simply missing some language strings (a common issue with custom themes). You would simply need to find all of the edits made to language files for this mod and make the same edits to the corresponding language files in DilberMC. (Note: If a particular language file cannot be found in DilberMC, then SMF will call that language file from the default folder anyway, so no need to create a new one.) Hopefully, this will help you out. ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 23, 2010, 02:28:13 PM
Quote from: Johnnyvermont on January 23, 2010, 02:07:25 PM
I could use some help on this.

I just tried to install Ajax Chat on my busy board and it eseentially crashed my board.

I now get error :  Database Error
Table 'hiking.smf_ajaxchat_online' doesn't exist
File: /home/content/n/a/k/nakedinvt/html/hiking/forum/Sources/Load.php
Line: 2250


How can I completely remove Ajax Chat and get this board working again.

Any help would be appreciated very much!

Thanks.

If you cannot access your board through a browser, then you will need to get to the files using an FTP program or your host's account panel/file manager. Once there, you can open the Load.php and either remove the code from line 2250 or comment it out. Take note that this can cause parse errors if you do not remove/comment out the entire line or block of code. Also be aware that this will only take care of that specific error and that there may be a few more you'll need to do before being able to again access your board using a browser. Once you can access with a browser again, then simply navigate to the package manager in the admin area and uninstall the package manually. You may need to ignore any errors in the uninstall since you manually deleted/commented out code and therefor the uninstaller cannot find it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Johnnyvermont on January 23, 2010, 02:40:25 PM
I got it working but this is what I did...

Deleted load.php and replaced it with the backup load.php~

That created a different error so i deleted the Boardindex.php and replaced it with the backup file. All seems to be ok now.

Thank you for your effort. I DO appreciate it!!

Too bad the people that create these mods don't do it correctly. It would save a lot of trouble and anxiety!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BeachBum3668 on January 23, 2010, 02:43:36 PM
Quote from: maseonary on January 23, 2010, 12:49:58 PM
beachbum3668, whats the link to your forum? i could possibly take a quick look.

have you enabled it in admin?

Here's a link to my test forum:  http://j7faction.com/bbtest/index.php

USER ID: SMFSupport
PW:  Support

That account will get you in as an administrator
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 23, 2010, 02:46:15 PM
Quote from: Johnnyvermont on January 23, 2010, 02:40:25 PM
I got it working but this is what I did...

Deleted load.php and replaced it with the backup load.php~

That created a different error so i deleted the Boardindex.php and replaced it with the backup file. All seems to be ok now.

Thank you for your effort. I DO appreciate it!!

Too bad the people that create these mods don't do it correctly. It would save a lot of trouble and anxiety!

Glad you got it sorted.

I don't think is a matter of whether or not the mod was created properly. There are almost uncountable variables when installing mods from custom themes to other mods that have made changes, even to server settings differing. But I also agree that it can really be frustrating when the simple process of adding a mod can render an entire site inoperable.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maseonary on January 23, 2010, 04:24:04 PM
beachbum3668

you have a problem with the install of packages, its probably your file permissions.
you need to change the permissions on the files that ajaxchat modify's.
also theres an error where you are Unable to load the 'Shout.english-utf8' language file, so i assume you don't have that file, this could be due to a permission problem on the language folder.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: topbuyer on January 23, 2010, 07:27:45 PM
Anyone. Please suggest.


Quote from: topbuyer on January 15, 2010, 05:58:48 PM
Sabre, are you still around.

Followed your suggestion to add chat in menu bar of dilbermc them. Its not aligned properly, pls see attach and suggest.

And in Chrome a chat pop up window comes. But in firefox new tab opens for chat. What changes need to open popup in firefox as well.

Others, pls suggest.


Quote from: Sabre™ on November 08, 2009, 07:23:32 PM
@ ardd
Arrgg, sorry bud, I forgot to add the span tags lol
This should help it perform 'all' of it's designed functions, if you choose to use them.
   // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
    echo '<li', $current_action == 'chat' ? ' id="chosen"' : '', '><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>';


@ NaWaR
digit is correct.
You have not provided any information besides 'I had Errors Appears'.
What were the errors you speak of?
Please take a little time to read [THIS] (http://docs.simplemachines.org/index.php?topic=494.0) and [THIS] (http://docs.simplemachines.org/index.php?topic=493.0).
They will enable people to assist you with more efficiency.

Cheers :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 23, 2010, 07:58:33 PM
If you want to attach your file here for the menu, I'll fix it. As far as having Firefox open it in a popup, that may take a touch of javascript.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: topbuyer on January 23, 2010, 08:14:46 PM
Thank You !

Attached image and index file.

Right now. Menu configuration is not in index file, I removed as alignment was not proper.

Quote from: SunKing on January 23, 2010, 07:58:33 PM
If you want to attach your file here for the menu, I'll fix it. As far as having Firefox open it in a popup, that may take a touch of javascript.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 23, 2010, 08:55:36 PM
Here you go, topbuyer. This should work like you want. I don't have SMF1.1.x installed anywhere nor do I have DilberMC anywhere. :D I did, however, just copy how the other buttons were coded and just applied the necessary changes such as number of chatters.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: topbuyer on January 23, 2010, 10:08:11 PM
Thank You. In one shot its working.

I have similar problem with tags mod. If possible, can you please convert following for proper menu button for tag

// the [tags] button
      echo ($current_action == 'tags' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'tags' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=tags">' , $txt['smftags_menu']  , '</a>
            </td>' , $current_action == 'tags' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Quote from: SunKing on January 23, 2010, 08:55:36 PM
Here you go, topbuyer. This should work like you want. I don't have SMF1.1.x installed anywhere nor do I have DilberMC anywhere. :D I did, however, just copy how the other buttons were coded and just applied the necessary changes such as number of chatters.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 24, 2010, 01:53:05 AM
Would someone please attach their custom.js file so I can compare it with mine.

Am trying to add a profanity filter to the file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BliXem on January 24, 2010, 06:57:37 AM
Hi there, this is really an awesome mod!  I however have a few problems, my Chat button is missing.  I have manually installed the files as required on both my default and custom theme.  The button still wont show in the navigation menu.

I am running smf 1.1.11

Packages installed:

Mod Name                                  Version     
1.    SMF 1.0.19 / 1.1.11 Update    1.0    
2.    Steam Freinds Status Mod    1.0    
3.    SMF Gallery Lite                    2.0.12    
4.    AjaxChat Integration            3.2.1    
5.    SimplePortal                            2.3.1

Could someone plz assist me in this regard. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 24, 2010, 11:57:36 AM
@topbuyer
Probably better to ask in the thread for that mod next time. ;) PM'd you the code.

@brack1
Why not just grab a clean custom.js from the package? Asking for a random file to compare to yours really does nothing as you have no idea what edits they may have made to it.

@blixem
Make sure the language strings are in the correct files for your custom theme. That is generally the reason behind missing menu buttons after a successful install when using custom themes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jetli68 on January 24, 2010, 12:10:11 PM
hi got a prob i had this mod working  spot on with  blackrain theme on smf 1.1.11 but then   it stop showing up  so no shoutbox was there so i unistalled the mod  and was going to install it  again but now i get this error  all the time on my main index.php  and  it will not let me  clok in to admin cp to change the theme the error is

Unable to load the 'shout_above' template   can somebosy help me with this so i can  veiw  my forum again

thank you

jet
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Patriot89 on January 24, 2010, 12:11:17 PM
I have this issue.
Quote
Usersays: i'll eat that

Output is: i\'ll eat that
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 24, 2010, 12:20:34 PM
@jetli68
Are you just wanting to restore the site to a point where you can again access to the admin area? If so, you may want to see which template files the mod altered and either manually remove any residual code or replace those files with backups/clean versions.

@Patriot89
Somewhere in this massive thread is the answer to the escaped quotes. Unfortunately, I'm not exactly sure where. I know that's not a big help really, but it at least points you in a direction. If I remember right, I had the same issue and was given a way to resolve it. That, hopefully, will at least narrow down your search to my posts in the thread. ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jetli68 on January 24, 2010, 12:22:00 PM
how do i find out which  template the mod changes m8

tia

jet
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 24, 2010, 12:34:05 PM
The easiest way is to just use SMF's parser on the main page for the mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: radu81 on January 24, 2010, 01:42:47 PM
I have some problems with this mod, I installed, I changed the permission, I add the command in -htaccess but still I get a blank board. Can anyone help me, pls?

my forum is  sharkracingclub.it/forum/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 24, 2010, 01:49:47 PM
Do you have a test account so we can use the chat, or can you set it so that guests can use it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BeachBum3668 on January 24, 2010, 02:11:44 PM
Quote from: BeachBum3668 on January 23, 2010, 02:43:36 PM
Quote from: maseonary on January 23, 2010, 12:49:58 PM
beachbum3668, whats the link to your forum? i could possibly take a quick look.

have you enabled it in admin?

Here's a link to my test forum:  http://j7faction.com/bbtest/index.php

USER ID: SMFSupport
PW:  Support

That account will get you in as an administrator


Quote from: maseonary on January 23, 2010, 04:24:04 PM
beachbum3668

you have a problem with the install of packages, its probably your file permissions.
you need to change the permissions on the files that ajaxchat modify's.
also theres an error where you are Unable to load the 'Shout.english-utf8' language file, so i assume you don't have that file, this could be due to a permission problem on the language folder.

So could somebody help me with discovering HOW to change these permissions? And I DO have English-UTF8
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BeachBum3668 on January 24, 2010, 02:13:21 PM
Quote from: BeachBum3668 on January 23, 2010, 02:43:36 PM
Quote from: maseonary on January 23, 2010, 12:49:58 PM
beachbum3668, whats the link to your forum? i could possibly take a quick look.

have you enabled it in admin?

Here's a link to my test forum:  http://j7faction.com/bbtest/index.php

USER ID: SMFSupport
PW:  Support

That account will get you in as an administrator


Quote from: maseonary on January 23, 2010, 04:24:04 PM
beachbum3668

you have a problem with the install of packages, its probably your file permissions.
you need to change the permissions on the files that ajaxchat modify's.
also theres an error where you are Unable to load the 'Shout.english-utf8' language file, so i assume you don't have that file, this could be due to a permission problem on the language folder.

How do I change permissions on folders?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vertese on January 24, 2010, 02:14:48 PM
Sunking,
Thank you for replying, I will reply soon.  Got a bit further, but still more to do.
Thanks for your help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 24, 2010, 02:17:53 PM
The permissions would be the chmod permissions on files and folders which can be changed via your host's control panel or an FTP program. I use FTP and simply right click on the files in questions and "change permissions".
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: radu81 on January 24, 2010, 02:19:25 PM
Quote from: SunKing on January 24, 2010, 01:49:47 PM
Do you have a test account so we can use the chat, or can you set it so that guests can use it?
i send you a PM with the user & password, if you might take a look.. I also set the forum in english, so it would be easier for you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 24, 2010, 02:50:12 PM
It seems that in your particular case, you just needed to integrate the shoutbox and the chat to get the shoutbox working. As long as you are alright with that, then everything is solved for you. :) Enjoy!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: radu81 on January 24, 2010, 02:50:18 PM
Quote from: radu81 on January 24, 2010, 01:42:47 PM
I have some problems with this mod, I installed, I changed the permission, I add the command in -htaccess but still I get a blank board. Can anyone help me, pls?

my forum is  sharkracingclub.it/forum/index.php

It was my mistake, thanks to Sunking which enebled the option "integrate shout box and chat room"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jetli68 on January 24, 2010, 03:01:49 PM
hi have checked it m8 and  copyied the  files from  a backup of  my forum i made yesterday when the forum was working m8

but it is still the same m8  getting the same error Unable to load the 'shout_above' template.
tia for any help with this m8

jet
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 24, 2010, 05:01:31 PM
Post or PM me a link to your site please, jetli68.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cassiecw on January 24, 2010, 07:03:01 PM
Our forum has crashed this evening...I think due to this mod...and I'm having real trouble getting back into it as is our host. Is there a way of disabling it through the files via ftp?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CrankyOldguy on January 24, 2010, 08:06:43 PM
cassiecw, the CHAT part shouldn't blow your forum, but the shoutbox part might if the code was mangled.  Was it working before this evening (yeah, that's an important tidbit)?  What all did you integrate into the forum?  We need more details other than "it's broke"...

I regularly modify our files via FTP, you merely need to DL the relevant file(s), edit and upload again.  Use a GOOD text editor like Notepad++ or another pure text editor.  Don't use MS Word or funky doc editors, and if you're on a Mac it'll mess up the lines.

The quickest way to turn everything off is to set all of the relevant fields in the smf_settings table to zero (in your SQL database, if you're comfortable with phpMyAdmin).  They'll likely be on the last page of the settings.
'enableShoutBox'
'enableChatButtonNo'
'enableChatBelowPM'
'anyPageShoutBox'
'chatPopUp'
'miniChat'
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cassiecw on January 24, 2010, 08:19:40 PM
Sorry that wasn't a very useful post was it...having a panic moment...

Basically we've been running ajax chat (not the shoutbox, the chat in a window part) for a couple of months no probs...today chat was veerrryy slow (with only 5 people in there) and then suddenly the whole thing froze and the whole site went down and no-one can get into the forum at all. It tries to load for about 10 minutes then you get a 500 error page. I checked Cpanel immediatly and saw we were running 27 processes (max is 25)...so presumably that was the problem...although I have no clue what that actually means LOL

Host doesn't know why we can't get in...seems to think if we disable some mods it would help....

clutching at straws tbh...if anyone has any suggestions for getting our forum back and running I'd be very grateful  :D ...I'm wondering if I need to clear anything in the database? The ajaxchat_online table is still showing everyone who was in chat before it crashed....can I/should I clear it or anything else?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CrankyOldguy on January 24, 2010, 08:32:11 PM
Your server may have been compromised... I generally only show between 1 and 3 processes running on ours, never more than that.

I edited the earlier message, you can turn 'em off that way, not sure if the repair_settings.php file gives you access to add-on SMF settings... sec and I'll check.  Nope!  no direct access to that table.  However, you can turn off the board from there.  BEWARE!  Change the name to something hard to figure out, 'cos it coughs up the table user and password!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m_nature on January 25, 2010, 04:08:25 AM
AjaxChat+Integration_3.2.1, SMF 1.8  (use in the office| Intranet)

I have few questions after install and used it.

1) How can I set to more line for showing(in the picture)?

2) How can I set to make the  shoutbox  to auto refresh ? Because now is only when i click somewhere, after that will be update.

3) How can I set to keep the  line wording more ?  Because  I want to keep 30 line wording (over and above can delete).

Thanks
P.S. Sorry my english not good please try to understanding
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on January 25, 2010, 04:11:35 AM
Please see the FAQ.


/me mumbles
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cassiecw on January 25, 2010, 06:16:42 AM
Quote from: CrankyOldguy on January 24, 2010, 08:32:11 PM
Your server may have been compromised... I generally only show between 1 and 3 processes running on ours, never more than that.

I edited the earlier message, you can turn 'em off that way, not sure if the repair_settings.php file gives you access to add-on SMF settings... sec and I'll check.  Nope!  no direct access to that table.  However, you can turn off the board from there.  BEWARE!  Change the name to something hard to figure out, 'cos it coughs up the table user and password!
...well in the end I gave up and went to bed and came back this morning to try out your suggestions....only to find the site is back up again like nothing had happened  :o

When you say our server may have been compromised...what does that actually mean? Is there something we can do to prevent it happening again? ...maybe chat wasn't the problem after all...it just showed the symptoms of it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: topbuyer on January 25, 2010, 06:53:30 PM
Sunking,

Thanks mate for reply. Provided code is not working it. Tried to to attach modified file via pm. But there is no option. So, I replied in original mod thread http://www.simplemachines.org/community/index.php?topic=135761.msg2474675#msg2474675

Please suggest there  or via pm.


Quote from: SunKing on January 24, 2010, 11:57:36 AM
@topbuyer
Probably better to ask in the thread for that mod next time. ;) PM'd you the code.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Deadairdave on January 25, 2010, 08:12:55 PM
Hi, anyone able to suggest what I'm supposed to alter to get the chat up and running?

QuoteWarning: require(/home/fazakstu/public_html/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/fazakstu/public_html/chat/index.php on line 17

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

I'm running SMF 2.0 RC2 with AjaxChat Integration_3.2.2. installed.  I used the smf package installer to load the mod.

All the files/check boxes are visible in the cPanel, as is the 'chat' tab on the forum index, except on clicking the 'chat' tab, I get the above error code.

Any help would be appreciated, as I seem to be going around in circles reading one topic after the next in trying to find a solution.

Dave.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 25, 2010, 08:26:50 PM
What is on line 17 of the ..../public_html/chat/index.php?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Deadairdave on January 25, 2010, 09:01:17 PM
It's not just that problem now.

When I clicked on the 'home' tab, I got the following error code -

QuoteFatal error: require() [function.require]: Failed opening required '/home/fazakstu/public_html/shoutBox/lib/class/AJAXChat.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fazakstu/public_html/shoutBox/lib/classes.php on line 11

The above code replaces where the forums were visible on the index.

This is the full error code on the index.php file from my 1st post -

Quote
1 <?php
2 /*
3  * @package AJAX_Chat
4  * @author Sebastian Tschan
5 * @copyright (c) Sebastian Tschan
6  * @license GNU Affero General Public License
7  * @link https://blueimp.net/ajax/
8  */
9
10 // Show all errors:
11 error_reporting(E_ALL);
12
13 // Path to the chat directory:
14 define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
15
16 // Include custom libraries and initialization code:
17 require(AJAX_CHAT_PATH.'lib/custom.php');
18
19 // Include Class libraries:
20 require(AJAX_CHAT_PATH.'lib/classes.php');
21
22 // Initialize the chat:
23 $ajaxChat = new CustomAJAXChat();
24 ?>

*edit:  sorry typo, it's not an error code, just the code copied from the index.php fille. ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 25, 2010, 09:37:30 PM
Can you post or PM me a link to your site please? Also, you may want to check the chmod permissions of the files and folders and make sure they are set properly (on mine it's 644 for files and 755 for folders). These can be accessed from your host's control panel or from your FTP program. My program allows me to right click on a file/folder in the server pain and view "properties".
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Deadairdave on January 25, 2010, 10:35:17 PM
Well, I have no idea what I have done, but after a couple of uninstalls/reinstalls (and a cup of coffee) the shoutbox/chat loads; and the forums are back as normal.

Downside, I can't seem to be able to post anything.  I can type in the text line, including clicking on the smilies, etc, but on hitting the enter key/pressing shout, nothing happens.  Well, I say nothing, whatever I type into the text box vanishes when pressing the 'shout button' but then doesn't appear in the actual shoutbox or chat room - I've tried both.

Any ideas?  I'm working off of the 'admin' acount, so all permissions one would think are set to work.  Other than enabling the shoutbox/chat via Modification Settings>Chat  ...is there any other sections within the cPanel that needs setting? 

Thanks for your help.

Dave.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Deadairdave on January 25, 2010, 11:05:29 PM
Hi, I've taken a couple of screen shots if they help.

http://img8.imageshack.us/img8/2825/ajax2i.png
http://img709.imageshack.us/img709/2193/ajax1.png

The website link is http://www.Fazakstudios.co.uk
I've set-up a guest a/c if you wish to test the chat yourself.

Username:  test (case sensitive).
Pass:          test (case sensitive).

Thanks again for your help,

Dave.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 26, 2010, 12:48:44 AM
I would first have a read here for the .htaccess fix. I believe that may be your main issue. Also, you may need to integrate the chat and shoutbox to get the shoutbox to display properly. Keep in mind, integrating the two means that anything typed in the chat will also display in the shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m_nature on January 26, 2010, 02:30:34 AM
Quote from: m_nature on January 25, 2010, 04:08:25 AM
AjaxChat+Integration_3.2.1, SMF 1.8  (use in the office| Intranet)

I have few questions after install and used it.

1) How can I set to more line for showing(in the picture)?

2) How can I set to make the  shoutbox  to auto refresh ? Because now only update when i click somewhere of forums or chating in shoutbox.

3) How can I set to keep the  line wording more ?  Because  I want to keep 30 line wording (over and above can delete).

Thanks
P.S. Sorry my english not good please try to understanding

I can modify already but only set auto refresh I cannot.

Could you suggest me for modify it?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vertese on January 26, 2010, 05:42:08 AM
Can anyone suggest how members can make font bigger in chat and bold if they wish (permanently) and I still can't access admin for logs.
Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Deadairdave on January 26, 2010, 07:25:28 AM
Quote from: SunKing on January 26, 2010, 12:48:44 AM
I would first have a read here for the .htaccess fix. I believe that may be your main issue. Also, you may need to integrate the chat and shoutbox to get the shoutbox to display properly. Keep in mind, integrating the two means that anything typed in the chat will also display in the shoutbox.

Hi, I seem to be going around in circles and finding more than one topic in searching for the htaccess fix.  Do you know the direct link to the 'fix' that you talk of, please?  I had a brief (what I think said) 500 connection error flash up in the shoutbox in red print then vanish, but haven't seen it since.

I also cannot see any users 'online' including myself, in the chat room.  I've tried it both with the admin a/c; and a member (test) a/c.  Yet, there's a button that says 'logout' at the top left of the chat room.

I noticed last night in the chat room, the green light flicked to orange for a few seconds.  Does that represent a connection issue? 

Any suggestions, please?

Dave.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Deadairdave on January 26, 2010, 07:53:37 AM
Scrub the above, I have it working!!!

I found the .htaccess file you were on about in the /public_html folder.  I couldn't see where exactly to add the file, so on the first attempt, I added it in between -

Quote# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
>>new code<<RewriteRule ^chat/?$ ./chat/index.php [L,QSA]<<<new code<<
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

I was gonna give up, but went back and added the code to the 1st line -

Quote# Rules for: boards
>>new code<<RewriteRule ^chat/?$ ./chat/index.php [L,QSA]<<<new code<<
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

....and voila, on refreshing the forums (pressing F5 twice) the chat allows me to post in both the shoutbox and chat room - I also see what you mean about what you type in the chat room appears a second later in the shoutbox; and vice versa.

One question though, something I've notice with both the admin and member account.  On the 'channel' drop down tab, it lists 'public' then every available forum for that member, then what appears to be a 'private' room for that member.  Is it possible to remove all the forum headings from the 'channel' as I only have the shoutbox visible on the main forum index; and I cannot see why any member would need to see these forums?

I've attached a screen shot of what I mean....

http://img204.imageshack.us/img204/893/ajax3.png

Thanks again.

Dave.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Deadairdave on January 26, 2010, 09:11:24 AM
Please mark my issues as solved.  I came across these codes on my travels....

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

They've done the trick nicely.

Thanks for all your help.

Dave.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PedroM on January 26, 2010, 11:05:34 AM
Buenas, tengo un problema ya que al integral este mod, me queda en error 500 les dejo el link para que vean el error y me puedan ayudar, gracias!
http://foro.viciosmu.com.ve/index.php (http://foro.viciosmu.com.ve/index.php)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 26, 2010, 12:38:47 PM
@m_nature and vertese
I am not ignoring your questions, they are just best answered by someone who knows this mod a bit better.  :P Sorry.

@deadairdave
Glad you got it all sorted. In my post about the .htaccess fix, I meant to have the word "here" point to the exact post. Looking back at that post now, I see that I forgot to. LOL. I apologize for making your eyes bleed in all of the searching.

@pedroM
aquí: http://www.simplemachines.org/community/index.php?board=101.0
y aquí: http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

The first link is to the Spanish support boards.

The second link is to the FAQ for this mod. There are solutions for the error 500 in there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: virtualdave on January 26, 2010, 02:35:28 PM
I've been snooping around for a couple days looking for something to help out with a prob I have. It doesn't seem to be addressed anywhere so here goes. I have 2 SMF forums based in one hosting account. the first has a successfully operating Ajax Chat Room (AjaxChat Integration 3.2.1). This is an SMF 1.1.10 forum. Yesterday morning I uploaded and installed an instance of the same version of Ajax Chat on the 2nd forum (SMF 1.1.11). At first I was getting the,  Error: Connection status: 404, message. After looking around a bit i found the htaccess fixes and tried this one.
RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


I recalled having an htaccess file issue, involving having the domain open up an index.html file instead of the forum's index.php file. We solved that with the htaccess with this little bit.

DirectoryIndex index.htm


htaccess now looks like this:


DirectoryIndex index.htm

   RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


This did accomplish something but not exactly what I wanted.

What seems to be happening is that the second instance of chat is now seeing the first instance. I can log into the chat happening on forum 1 from forum 2. all the settings from forum 1 are applied and I can see and chat with guys on the other forum. I figure that the second install didn't get its own data base or that something didn't get pointed right when the second forum was installed. I would like to have two independant chat rooms one associated with each forum. Any suggestions?
thanks
virtualdave
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Road Rash Jr. on January 26, 2010, 03:00:16 PM
Now that is really weird. I have this mod install on several forums, seperated by their individual folders in the main root and they DO NOT see each other.
My SMF version for all is 2.0 RC1.2 updated from SMF 1.1.10
Maybe you should update your SMF version.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vertese on January 27, 2010, 09:13:24 AM
Thank you Sunking
Is anyone able to help please
Can anyone suggest how members can make font bigger in chat and bold if they wish (permanently) and I still can't access admin and see Realtime monitoring and logs viewer
Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: virtualdave on January 27, 2010, 11:38:28 AM
I love it when I can figure some of this jazz out for my self. I got it!

It was in the htaccess file as I was convinced.


RewriteEngine on
RewriteBase /forum
# Rules for: actionsRewriteRule ^chat/?$ ./chat/index.php [L,QSA]


In the example above I noticed that the bit of htaccess file I had copied had /forum in it. that happens to be one of my folder designations, forum #1 in fact. I changed forum to f247 the name of forum #2's root folder and all was good. :) So simple!
virtualdave

Quote from: virtualdave on January 26, 2010, 02:35:28 PM
I've been snooping around for a couple days looking for something to help out with a prob I have. It doesn't seem to be addressed anywhere so here goes. I have 2 SMF forums based in one hosting account. the first has a successfully operating Ajax Chat Room (AjaxChat Integration 3.2.1). This is an SMF 1.1.10 forum. Yesterday morning I uploaded and installed an instance of the same version of Ajax Chat on the 2nd forum (SMF 1.1.11). At first I was getting the,  Error: Connection status: 404, message. After looking around a bit i found the htaccess fixes and tried this one.
RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


I recalled having an htaccess file issue, involving having the domain open up an index.html file instead of the forum's index.php file. We solved that with the htaccess with this little bit.

DirectoryIndex index.htm


htaccess now looks like this:


DirectoryIndex index.htm

   RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


This did accomplish something but not exactly what I wanted.

What seems to be happening is that the second instance of chat is now seeing the first instance. I can log into the chat happening on forum 1 from forum 2. all the settings from forum 1 are applied and I can see and chat with guys on the other forum. I figure that the second install didn't get its own data base or that something didn't get pointed right when the second forum was installed. I would like to have two independant chat rooms one associated with each forum. Any suggestions?
thanks
virtualdave
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TNoob on January 28, 2010, 07:35:56 PM
Where is a list of commands?

How do I ban users from the chatbox? Or clear the chatbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LisaNY on January 28, 2010, 10:36:29 PM
I have SMF version 1.1.11 and uploaded the mod through my admin panel.  It installed with no problems.  I got the Connection status error: 500, and set my chat, shout and index.php file permissions to 755 as per the instructions in the FAQ  section.  I am still getting the same error.

I have also checked all of the necessary options in my features/options panel.

Any other suggestions?

Thanks!

ETA: Also, the shoutbox appears at the top of the forum.  The chat appears with the other icons at the top, but when I click on it I get a server error 500.

UPDATE: I fixed it. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Saulbadguy on January 29, 2010, 10:36:39 AM
I'm still getting ChatBot: Error: Connection status: 0 quite a bit.  I did the mod to the chat.js that was recommended earlier in this thread but still no dice. 

I'm on SMF 1.1.11 and using the latest ajax chat package.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vertese on January 29, 2010, 11:07:38 AM
Saulbadguy I am still waiting for help re my problem but I know that someone had error on the shoutbox and it was cleared once they did a disk clean on their comp.
Can someone please help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: n3Xtlvl on January 29, 2010, 11:15:45 AM
is. HUNTER. the chat still SMF2.0 update to RC2, or not?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 29, 2010, 01:48:25 PM
Quote from: n3Xtlvl on January 29, 2010, 11:15:45 AM
is. HUNTER. the chat still SMF2.0 update to RC2, or not?

If you look through the posts you will see that there is a RC2 version of this mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: KensonPlays on January 29, 2010, 01:58:59 PM
Quote from: Patriot89 on January 19, 2010, 09:41:41 PM
Continuing with my post here is what I'm talking about

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcn-solalliance.com%2Fshoutboxerror.jpg&hash=4f6591d695f2cbe1d5a308c6e9478ec68887c73e)


I fixed my original issue with the style not working. Now my issue is the grey bar inbetween.

And is there a way to get the membergroup colors to work in the shoutbox?
I had that same problem, but I don't use the shoutbox anymore...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: n3Xtlvl on January 29, 2010, 02:19:25 PM
Quote from: Brack1 on January 29, 2010, 01:48:25 PM
Quote from: n3Xtlvl on January 29, 2010, 11:15:45 AM
is. HUNTER. the chat still SMF2.0 update to RC2, or not?

If you look through the posts you will see that there is a RC2 version of this mod.

when i upload the mod:

--> It defines no actions!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on January 29, 2010, 07:36:56 PM
500 error sounds like you're just not loading the page...  Assumung it did extract all the tables in your database, then perhaps its a matter of file permissionson related subs files?  Sometimes other browsers will display more information that just a 500 error.

When I first installed this mod, I have Aeva Media installed first.  I was getting errors from subs files in /sources that needed permissions upgraded.

But I am also using SMF2 RC2 with this build..
Title: Pop-up window
Post by: LisaNY on January 30, 2010, 04:55:32 PM
Hi,

I installed Ajax chat and it is working fine.  I also made the necessary changes which allows me to use Ajax on custom themes as well.  The only problem I am having now is the pop-up window for chat is not small, so that you can still see the forum.  It  takes over the whole screen.

Any suggestions as to how I can fix this? 

Thanks!

ETA: I found this in the Ajax chat wiki:

Chat in popup window

How to open the chat in a popup window

To access the chat you just need a link to the chat directory.
To open a link in a new window with a predefined size centered on the screen (and without location/menu/toolbar) you just need JavaScript.

Add the following code to the head of all pages displaying the chat link (the template file used for the header): Q: Where do I find that template file? And, where to I insert the code?

   <script type="text/javascript">
      // <![CDATA[
         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>

Adjust the link to the chat using the function defined above: Q: Where would I insert this?

<a href="chat/" onclick="openWindow(this.href);this.blur();return false;">Chat</a>

This will open the chat window with a width of 800px and a height of 600px centered on the screen and without locationbar, toolbar or menubar. It will still be resizable, so users can decide to use the full width of their screen.
Q: Where would I insert this?
To open the chat window with a different size you would use the following link:

<a href="chat/" onclick="openWindow(this.href,1024,768);this.blur();return false;">Chat</a>




Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 30, 2010, 05:36:20 PM
Did you tick the pop up window in the admin area for chat?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 30, 2010, 05:37:19 PM
Quote from: Brack1 on January 24, 2010, 01:53:05 AM
Would someone please attach their custom.js file so I can compare it with mine.

Am trying to add a profanity filter to the file.

Anyone??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 30, 2010, 06:53:37 PM
Quote from: SunKing on January 24, 2010, 11:57:36 AM
@brack1
Why not just grab a clean custom.js from the package? Asking for a random file to compare to yours really does nothing as you have no idea what edits they may have made to it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LisaNY on January 30, 2010, 10:43:33 PM
Quote from: Brack1 on January 30, 2010, 05:36:20 PM
Did you tick the pop up window in the admin area for chat?

Hi,

Yes, I ticked the pop-up window.  The pop-up works fine in the default SMF theme, but it takes over the whole window in custom themes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TNoob on January 30, 2010, 11:31:19 PM
Where's the list of commands?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on January 30, 2010, 11:42:58 PM
Typically, you can get a list of commands by typing /help or /?. I think there is also an icon in the lower right corner for this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LisaNY on January 31, 2010, 10:23:43 AM
Quote from: Oceander on January 06, 2010, 11:43:00 PM
I don't know if this is the proper protocol for this, but ...

I just modified my BoardIndex.template.php and index.template.php documents for the Classic theme so that the chat button (I used a custom button that I knocked together on GIMP), and the href link for opening up the chat would work on the Classic theme.  Would anyone care to see the revisions I've made?

Hi,

Yes, I would like to see the changes you made.  Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vertese on January 31, 2010, 11:12:49 AM
Hi, I am sorry to keep on, but is there anyone able to help.
Can anyone suggest how members can make their 'font bigger 'in chat or 'bold' if they wish (permanently) and I still can't access admin for logs.
I want to remove the facility to enter private room and remove 'change user name',  but there is no admin to do any of these things.

Any ideas, we would really appreciate your help.
We have 1.1.11 and Dilber MC and we have integrated Ajax chat but obviously something is not right.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vertese on January 31, 2010, 02:23:06 PM
some things work in default.
but can we make the font bigger for the members and how can we get things to work with Dilber?
I thought I had better tell you the latest, and I will wait until you have time to answer.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cornchip on January 31, 2010, 05:50:04 PM
Just installed Ajax Chat using the package manager, it's pretty cool. I understand that there is a config.php file located in the /chat/lib/ directory. When I go to it, it ask for a username and password.

I have tried every username and password I have and I get nothing, is there some sorta default I don't know about?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 72 454 on January 31, 2010, 06:54:38 PM
Here's that v3.2.2 if anyone's looking. Worked great on my RC2.


http://www.simplemachines.org/community/index.php?topic=360047.msg2455085#msg2455085 (http://www.simplemachines.org/community/index.php?topic=360047.msg2455085#msg2455085)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 72 454 on February 01, 2010, 01:20:26 AM
This driving me crazy. Edits to the lib/config.php file are not being reflected (such as changing the bot name, or anything else). Tried clearing browser and smf caches. Apparently the config.php file is not being read? Ideas? Tnx!

Never mind. Saw where the config.js file also needed much of the same edits to work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tripl3r on February 01, 2010, 06:59:10 AM
How can I change the title of the chat to my forum?
Where it says Ajax chat in big bold letters?




Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: InsaneMustang on February 01, 2010, 11:35:12 AM
I am experiencing something I have not seen in this thread, or anywhere else.  Users who post in the shoutbox are showing up as random numbers instead of usernames.

Attached is a screenshot.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Saulbadguy on February 02, 2010, 09:27:51 AM
Quote from: Saulbadguy on January 29, 2010, 10:36:39 AM
I'm still getting ChatBot: Error: Connection status: 0 quite a bit.  I did the mod to the chat.js that was recommended earlier in this thread but still no dice. 

I'm on SMF 1.1.11 and using the latest ajax chat package.
Still seeing this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LisaNY on February 02, 2010, 10:00:46 AM
Hi,

I have installed Ajaxchat and modified several of my themes successfully.  However, I am having a problem with DilberMC. 

The package parser for 1.1.11 says this:

In the index.template.php file, find:

// But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }


Replace with:

// But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      if (!empty($modSettings['enableChatBelowPM'])){
         $count = count(chatOnlineUsers());
         if ($count == 0 )
            echo '<br />' . $txt['chat_no_user'];
         elseif ($count == 1 )
           echo '<br />  1' . $txt['chat_aUser']. '.<br />';
         else
           echo '<br /> ' . $count . $txt['chat_users']. '<br />';
      }
      echo '            </span>';
   }


However, in the actual index.template.php file for DilberMC, it reads:

// But, let's always show minutes - Time wasted here: 0 minutes ;).
                     echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
                  }


I know if I add the code as directed, I will get template parsing errors.

Is there any way to enter this code without problems? 

Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 02, 2010, 12:12:21 PM
if (!empty($modSettings['enableChatBelowPM'])){
         $count = count(chatOnlineUsers());
         if ($count == 0 )
            echo '<br />' . $txt['chat_no_user'];
         elseif ($count == 1 )
           echo '<br />  1' . $txt['chat_aUser']. '.<br />';
         else
           echo '<br /> ' . $count . $txt['chat_users']. '<br />';
      }
      echo '            </span>';
   }


If I have read it right then I would add the above to the text already there.

Obviously make a back up of the file before editing in case.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LisaNY on February 02, 2010, 02:27:25 PM
Quote from: Brack1 on February 02, 2010, 12:12:21 PM
if (!empty($modSettings['enableChatBelowPM'])){
         $count = count(chatOnlineUsers());
         if ($count == 0 )
            echo '<br />' . $txt['chat_no_user'];
         elseif ($count == 1 )
           echo '<br />  1' . $txt['chat_aUser']. '.<br />';
         else
           echo '<br /> ' . $count . $txt['chat_users']. '<br />';
      }
      echo '            </span>';
   }


If I have read it right then I would add the above to the text already there.

Obviously make a back up of the file before editing in case.

Thank you.  Just so I am clear - are you telling me to add the above code right below the current code in the theme that begins with "But lets always show minutes..."?  The code in DilberMC does not contain :
 
  echo '            </span>';
   }

- and that is why I get parsing errors.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 02, 2010, 03:36:15 PM
Quote from: LisaNY on February 02, 2010, 02:27:25 PM
The code in DilberMC does not contain :
 
  echo '            </span>';
   }

- and that is why I get parsing errors.

Simply replace what IS there with this:

// But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      if (!empty($modSettings['enableChatBelowPM'])){
         $count = count(chatOnlineUsers());
         if ($count == 0 )
            echo '<br />' . $txt['chat_no_user'];
         elseif ($count == 1 )
           echo '<br />  1' . $txt['chat_aUser']. '.<br />';
         else
           echo '<br /> ' . $count . $txt['chat_users']. '<br />';
      }


Notice all that was done here was the echo '            </span>';
   }
was removed from the new block of code also.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LisaNY on February 02, 2010, 03:59:36 PM
Quote from: SunKing on February 02, 2010, 03:36:15 PM
Quote from: LisaNY on February 02, 2010, 02:27:25 PM
The code in DilberMC does not contain :
 
  echo '            </span>';
   }

- and that is why I get parsing errors.

Simply replace what IS there with this:

// But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      if (!empty($modSettings['enableChatBelowPM'])){
         $count = count(chatOnlineUsers());
         if ($count == 0 )
            echo '<br />' . $txt['chat_no_user'];
         elseif ($count == 1 )
           echo '<br />  1' . $txt['chat_aUser']. '.<br />';
         else
           echo '<br /> ' . $count . $txt['chat_users']. '<br />';
      }


Notice all that was done here was the echo '            </span>';
   }
was removed from the new block of code also.

Thank you.  I did add that code, exactly as you stated, and I get a template parsing error.  I have tried this several times, and I get the same error.  That is why I thought there was a problem inherent in the differences between the two codes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 02, 2010, 04:09:24 PM
Attach the file here and I will gladly make the changes for you. What does the error say exactly?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LisaNY on February 02, 2010, 05:21:16 PM
Thank you, Sunking.

Hi,

I have to go from memory.  It said "Template parsing error!", and named the theme.  It gave me options to switch to default, refresh the page, and something else.  Sorry I could not be more helpful.

I have attached the index.template.php file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 02, 2010, 05:43:12 PM
Here you go. This has the code in it.

Should you still get the parse error, simply open the file I uploaded and find $count = count(chatOnlineUsers()); and put a // in front of that line only so that line would read //$count = count(chatOnlineUsers()); then post back here with the details of the parse error please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LisaNY on February 02, 2010, 07:23:43 PM
Quote from: SunKing on February 02, 2010, 05:43:12 PM
Here you go. This has the code in it.

Should you still get the parse error, simply open the file I uploaded and find $count = count(chatOnlineUsers()); and put a // in front of that line only so that line would read //$count = count(chatOnlineUsers()); then post back here with the details of the parse error please.


Thank you!  Are you saying that I should take my index template file and replace it with yours? 
Quote from: SunKing on February 02, 2010, 05:43:12 PM
Here you go. This has the code in it.

Should you still get the parse error, simply open the file I uploaded and find $count = count(chatOnlineUsers()); and put a // in front of that line only so that line would read //$count = count(chatOnlineUsers()); then post back here with the details of the parse error please.


It worked!  Thank you so much! I must have had a serious brain cramp, because I truly thought I entered the code exactly as I should have.  But, I've been working on several themes, so maybe I got confused.  I have never worked so much on stuff like this as I have for the past three days.  I would I could take a "Forum Code for Dummies" class, because I think I would find it very interesting. 

BTW - since I have 1.1.11 version, will I have problems trying to add the chat feature to other themes that I have that are not the same version?  I have themes from earlier versions and they have been working fine, but I'm not sure they would if I tried to mess with the codes for the chat feature.

Thank you again for your kind, patient help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 02, 2010, 07:36:44 PM
Glad it's working for you.

The best rule of thumb I have found is to keep within versions of SMF, meaning keep 1.1.x with 1.1.x and 2.x with 2.x. Also, themes can vary greatly from author to author and even from theme to theme, so trial and error (and a test site ;)) seem to work best for me.

Enjoy your new toy!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LisaNY on February 02, 2010, 08:34:06 PM
Quote from: SunKing on February 02, 2010, 07:36:44 PM
Glad it's working for you.

The best rule of thumb I have found is to keep within versions of SMF, meaning keep 1.1.x with 1.1.x and 2.x with 2.x. Also, themes can vary greatly from author to author and even from theme to theme, so trial and error (and a test site ;)) seem to work best for me.

Enjoy your new toy!

Yes.  I tried to parse the code for DefaultMC and got parsing errors.  I guess it is because it is 1.1.5.  Trial and error.  I have a lot less themes now, but my members really want to keep the chat feature.  Tradeoffs. :)

Thank you!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on February 02, 2010, 11:22:47 PM
How do I change the default timeout period?  It seems to timeout and log out users from chat too quickly for my taste.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LC on February 02, 2010, 11:25:40 PM
Read the FAQ on the first page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: slider11111 on February 05, 2010, 12:58:54 PM
I have SMF1.1.11 and Ajax Chat installed with default theme. The Chat works fine BUT one of my Mods is unable to log into the chat? He has NEVER been able to login he just gets redirected back to the Chat Login screen. He has his cookies enabled. Some people have fixed this problem with V Bulliten by changing their cookies in their admin section of their Forum? But I have found no one that has fixed the same problem with SMF? Any ideas? Thanx
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on February 05, 2010, 05:04:20 PM
Quote from: slider11111 on February 05, 2010, 12:58:54 PM
I have SMF1.1.11 and Ajax Chat installed with default theme. The Chat works fine BUT one of my Mods is unable to log into the chat? He has NEVER been able to login he just gets redirected back to the Chat Login screen. He has his cookies enabled. Some people have fixed this problem with V Bulliten by changing their cookies in their admin section of their Forum? But I have found no one that has fixed the same problem with SMF? Any ideas? Thanx

I've had at least one user who had a problem with chat, it was because in IE they were using accelerators.  When he turned that off it worked.

Have you tried to repro the issue using his account?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rebus on February 05, 2010, 06:16:13 PM
Hello! The MOD seems great, but I can't install it into my theme. I got the usual

Parse error: syntax error, unexpected T_ELSE

and this is the part of code that should be fixed (in fact, if I comment it, I don't get the error)


// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';


but I don't know PHP well enough to get it done... may anyone please help? I attach my index.template file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wildmck8 on February 06, 2010, 10:19:22 AM
trying to apply mod on 1.1.11 and getting following error:
7.     Execute Modification     ./Themes/default/index.template.php     Test failed

any ideas?

TIA
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 06, 2010, 10:20:40 AM
Quote from: wildmck8 on February 06, 2010, 10:19:22 AM
trying to apply mod on 1.1.11 and getting following error:
7.     Execute Modification     ./Themes/default/index.template.php     Test failed

any ideas?

TIA

The file in question requires a manual edit.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wildmck8 on February 06, 2010, 10:25:17 AM
Quote from: Brack1 on February 06, 2010, 10:20:40 AM
Quote from: wildmck8 on February 06, 2010, 10:19:22 AM
trying to apply mod on 1.1.11 and getting following error:
7.     Execute Modification     ./Themes/default/index.template.php     Test failed

any ideas?

TIA

The file in question requires a manual edit.

so if I "install now", will it just skip that file and then I'll just have to manually edit it or will it nuke it and jack up my board?

What would you do?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 06, 2010, 10:27:08 AM
I usually manually edit the file which requires an edit then install the mods.

Remember to backup first tho.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scimmiotto on February 08, 2010, 03:05:56 AM
hi to all

in my shoutbox time zone is about one hour less then the real one...i'v tried to change the config.php in both chat and shoutbox folders, but nothing happens...some help would be great, tnx guys!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Vyache on February 08, 2010, 03:39:46 AM
Hello,

In the setting of Chat, one has the ability to integrate the chat into any part of the forum.
Does anyone know where I can look or know a function that I can call to display the chat in a partuler place or even modify the code for the box so I can perhaps add it manually into SimplePortal.

PS. I cannot get the following to work right on my forum using SimplePortal, its missing a lot of stuff when I try this.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg72.imageshack.us%2Fimg72%2F332%2Fajaxchatspblock.png&hash=5a5fe289a4f37b8c4cd9780ae6dda12b3051ba74)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg378.imageshack.us%2Fimg378%2F9783%2Ftopbottomajaxchatspblocy.png&hash=7f498f3f3ca5f081ee61e09be792f6ef2919ae36)

Using the following Code for the PHP block...

global $txt,$context,$boarddir;

//Ajax Chat | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir . '/chat/lib/'))
{
   if (allowedTo('shout_access')){
      echo'
         <div id="ShoutBox">
            ', getShoutBoxContent() ,'
         </div>';
   }
}


The question is how to use that information to fix this issue...

If anyone had this problem and knows a solution please let me know.

Thank You.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: More-to-life on February 08, 2010, 10:06:22 AM
Quote from: ncvettes on January 31, 2010, 06:54:38 PM
Here's that v3.2.2 if anyone's looking. Worked great on my RC2.


http://www.simplemachines.org/community/index.php?topic=360047.msg2455085#msg2455085 (http://www.simplemachines.org/community/index.php?topic=360047.msg2455085#msg2455085)
Downloaded & install
I had a 500 error
Any ideas?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Goad on February 08, 2010, 10:37:07 AM
installed this for smf 1.1.11 and everything installed fine....mod opens up ok....but when you type in the box and submit, nothing happens....doesnt even show myself as an online user. any suggestions on what i should check?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drav on February 08, 2010, 02:28:15 PM
Quote from: welshbikers on February 08, 2010, 10:06:22 AM
Quote from: ncvettes on January 31, 2010, 06:54:38 PM
Here's that v3.2.2 if anyone's looking. Worked great on my RC2.


http://www.simplemachines.org/community/index.php?topic=360047.msg2455085#msg2455085 (http://www.simplemachines.org/community/index.php?topic=360047.msg2455085#msg2455085)
Downloaded & install
I had a 500 error
Any ideas?

Thanks

CHMOD chat/index.php to 755  ;D

Do the same with shoutbox/index.php to avoid chatbot connection error (if you're using shoutbox, that is  ;))
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: More-to-life on February 09, 2010, 06:05:53 AM
Quote from: drav on February 08, 2010, 02:28:15 PM
Quote from: welshbikers on February 08, 2010, 10:06:22 AM
Quote from: ncvettes on January 31, 2010, 06:54:38 PM
Here's that v3.2.2 if anyone's looking. Worked great on my RC2.


http://www.simplemachines.org/community/index.php?topic=360047.msg2455085#msg2455085 (http://www.simplemachines.org/community/index.php?topic=360047.msg2455085#msg2455085)
Downloaded & install
I had a 500 error
Any ideas?

Thanks

CHMOD chat/index.php to 755  ;D

Do the same with shoutbox/index.php to avoid chatbot connection error (if you're using shoutbox, that is  ;))
Thanks for the info & the chat box is now showing but i have another problem now
It doesnt show me or any other member that logs in to chat or show any posts
I also get this error in the error log

8: Undefined index: chatFile: /var/www/html/forum/Sources/Subs.php
Line: 4001

Thanks for all help guys
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tbk22 on February 09, 2010, 05:30:11 PM
The chat just seems perfect for me :D

Just want to ask something

Is it possible to add  (rock, paper , scissor) to the chat  ? XD Like rolling dices

Also Can I make a channel with a Topic Like IRC or something?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RVNRaven on February 09, 2010, 05:44:45 PM
Quote from: Johnnyvermont on January 23, 2010, 02:07:25 PM
I could use some help on this.

I just tried to install Ajax Chat on my busy board and it eseentially crashed my board.

I now get error :  Database Error
Table 'hiking.smf_ajaxchat_online' doesn't exist
File: /home/content/n/a/k/nakedinvt/html/hiking/forum/Sources/Load.php
Line: 2250


How can I completely remove Ajax Chat and get this board working again.

Any help would be appreciated very much!

Thanks.

I'm having this same problem, however I'm not willing to give up on this  ;)

I was going to make a table in MySQL, however I'm not sure what I need to include.  Any suggestions on how to get it to work?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: More-to-life on February 10, 2010, 05:30:29 PM
Quote from: welshbikers on February 09, 2010, 06:05:53 AM
Quote from: drav on February 08, 2010, 02:28:15 PM
Quote from: welshbikers on February 08, 2010, 10:06:22 AM
Quote from: ncvettes on January 31, 2010, 06:54:38 PM
Here's that v3.2.2 if anyone's looking. Worked great on my RC2.


http://www.simplemachines.org/community/index.php?topic=360047.msg2455085#msg2455085 (http://www.simplemachines.org/community/index.php?topic=360047.msg2455085#msg2455085)
Downloaded & install
I had a 500 error
Any ideas?

Thanks

CHMOD chat/index.php to 755  ;D

Do the same with shoutbox/index.php to avoid chatbot connection error (if you're using shoutbox, that is  ;))
Thanks for the info & the chat box is now showing but i have another problem now
It doesnt show me or any other member that logs in to chat or show any posts
I also get this error in the error log

8: Undefined index: chatFile: /var/www/html/forum/Sources/Subs.php
Line: 4001

Thanks for all help guys
Hi Guys I know your all busy so just a little bump with this

Any ideas please?

Thanks in advance
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 10, 2010, 06:13:55 PM
Are all of the language edits for the mod in place? If you're using a custom theme, double check that the strings are where they should be.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kkattfish on February 11, 2010, 02:40:23 PM
i have been reading for an hour how do i turn off the damn beep or sound after typing something in the chat? 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drav on February 11, 2010, 05:59:53 PM
Does anyone know what is wrong with this line of code in ./sources/subs.php for the menu chat button?

==>3953:  $chatButton = $txt['chat'];

It's causing these errors:

http://www.[MYSITE].com/index.php?action=post2;board=24;preview;xml
8: Undefined index: chat
File: /home/www/[MYSITE].com/Sources/Subs.php
Line: 3953


http://www.[MYSITE].com/index.php?action=quotefast;quote=1281;fdfd8da=389a2b7ef2d74abc340f0f9bce5dd9c2;xml
8: Undefined index: chat
File: /home/www/[MYSITE].com/Sources/Subs.php
Line: 3953


Any suggestions would be appreciated  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 11, 2010, 06:27:59 PM
Easy fix?

Change $chatButton = $txt['chat']; to $chatButton = 'Chat';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drav on February 11, 2010, 06:59:10 PM
Thanks very much SunKing  ;D

I will test it out

EDIT: Seems to have done the trick. Thanks again :)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zushiba on February 12, 2010, 01:34:04 AM
Anyone have any idea why the shouldbox would suddenly stop functioning?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kkattfish on February 12, 2010, 10:16:36 AM
so i assume there is no way to turn off the annoying notifications when replying in the shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 12, 2010, 01:46:43 PM
I haven't used this mod for some time now, but isn't there a speaker icon in the lower right corner to toggle sound?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kkattfish on February 12, 2010, 01:58:53 PM
unfortunately not, unless its not showing up.  my chat is working though
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 12, 2010, 02:10:26 PM
Can you post or PM a link to your site, please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kkattfish on February 12, 2010, 02:16:44 PM
i do see a speaker icon in the chat room but not for the shoutbox. 

pm coming your way
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kkattfish on February 12, 2010, 05:21:58 PM
Quote from: neo2504 on January 13, 2010, 05:18:34 PM
I tried installed this mod 2 times:
1. The last official mod, simulating whit my RC2 forum the oldest RC1.2 - then after Uninstalling it,
2. The not official update by chico200987
http://www.simplemachines.org/community/index.php?topic=257973.msg2422548#msg2422548

The chat looks good but I have 1 BIG problem:
Only me, the founder, can login to the chat. The other members, even the gMod can't login to the chat, looks like they aren't registered.
How can I solve this????

Thank you for this.  i installed this and it seemed to go ok.  i can get into chat and chat, however my shoutbox is just white and i can't post anything. 
i made sure both index.php files were set to 755.  it was working prior to upgrading to smf 2.0 rc2

any help is appreciated.  would like to get this working soon.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 12, 2010, 05:28:25 PM
The only fix I know of for the blank shoutbox is to integrate the chat and shoutbox (as posted about here (http://www.simplemachines.org/community/index.php?topic=257973.msg2472750#msg2472750)). I remember from talking to you earlier that you wanted them separate. Maybe integrate them until a real fix is made available?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kkattfish on February 12, 2010, 05:56:06 PM
i would do that but i don't have any options for the sb or chat in features and options anymore. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 12, 2010, 06:01:24 PM
Double check that your language files are in the language folder for your theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 12, 2010, 07:23:35 PM
i just transfered my site to a new hos and i am getting error 500 in the shoutbox can someone tell me how to fix this
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 12, 2010, 07:29:38 PM
Check the chmod permissions on the files and folders. Read the ~~FAQ~~ linked to in the very first post in this thread.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 12, 2010, 07:41:21 PM
it just says check permissions i dont see what permissions to check or what they should be
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 12, 2010, 07:50:54 PM
That's only about 12 lines into that first post. Try reading a little further.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tbk22 on February 13, 2010, 04:45:35 AM
Quote from: tbk22 on February 09, 2010, 05:30:11 PM
The chat just seems perfect for me :D

Just want to ask something

Is it possible to add  (rock, paper , scissor) to the chat  ? XD Like rolling dices

Also Can I make a channel with a Topic Like IRC or something?

Is this possible?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nier on February 13, 2010, 10:48:36 AM
Hey, it looks sweet. But when I uploaded the package mod. I cant install it: ''Er zijn geen installatie-acties gedefinieerd! '' Their nog installation actions defined. I cant click on ''install''
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on February 13, 2010, 03:34:11 PM
whether is a version compatible with smf 2.0 rc2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rgecy on February 13, 2010, 03:56:01 PM
I have been having a problem with my Chat room.  It had been working fine and now its not showing any text or being able to post, etc.  I get the screen below, and you can see there is no Chat Bot saying user logged in or any user text on the right panel.  It will not Log the user out either.  Pretty strange.

Any ideas? 

Thanks,

RGecy
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Runevald on February 14, 2010, 07:38:15 AM
Hi there,

I am having problem with Pretty URLs mod compatibility.

In this topic I've found RewriteRule that needs to be added in .htaccess but it doesn't work.

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

On the fresh installation, I've installed Ajax Chat first, and everything is fine.
Then I install Pretty URLs, and both Chat and ShoutBox stays blank.
I add RewriteRule and nothing changes.
Then I turn off Pretty URLs and still nothing changes.
Only removing all the rewriting rules from the .htaccess file brings Chat/ShoutBox back to life.
So, what to do to have both Chat and Pretty URLs installed?
Those are actually two mods that I need the most.

Sorry if there was answer for my question somewhere in the deeps of this thread, but obviously I cannot read it all. Thanks for any advice.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 14, 2010, 07:54:36 AM
I don't know if this will help, but I had the exact same issue only to find out I had been adding the line to the wrong .htaccess file. It needs to be the .htaccess located in your forum's root folder.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Runevald on February 14, 2010, 09:30:35 AM
Yeah, that's what I have been doing.
The one where all the other rewrite rules are.
Am I the only one with such a problem? That would be strange.

SunKing, I see you have a nice TalkBox at your site.
It looks better than this AjaxChat as a ShoutBox.
Are you going to share with it? I see translations and something at the tremendousfailure.com (not really a good domain for a project to be successful...), but I don't see any downloads or even a nice info. Or maybe I have something with my eyes (or brain ;p)?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: YogiBear on February 14, 2010, 09:54:53 AM
I installed version 3.2.2 and all went fine until I clicked on Chat in the menu and got a Server 500 Error. OK, this for me is a 'nice to have' as against a 'must have' mod but I'm curious as to why that happened.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 14, 2010, 10:10:42 AM
Quote from: Runevald on February 14, 2010, 09:30:35 AM
Yeah, that's what I have been doing.
The one where all the other rewrite rules are.
Am I the only one with such a problem? That would be strange.

SunKing, I see you have a nice TalkBox at your site.
It looks better than this AjaxChat as a ShoutBox.
Are you going to share with it? I see translations and something at the tremendousfailure.com (not really a good domain for a project to be successful...), but I don't see any downloads or even a nice info. Or maybe I have something with my eyes (or brain ;p)?

The site started as a joke between friends. Then I figured I would make some good use of it. ;) I have PM'd you some info.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 14, 2010, 11:54:37 AM
hi i am trying to add bb code and the extra simliey's in my sohutbox howerver the first thing in the intructions is to find this code in your themes index.template.php

      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


i cannot find that anywhere in any of my themes i have looked 3 times

i am on RC2

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: prymagen on February 16, 2010, 03:44:51 AM
I have a question

How do I edit the css so the button appears and the background is not white???

site: fuco marketing dot com

I want it to look my site. The theme colors and all. How do I do it?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gitchuone on February 16, 2010, 12:33:27 PM
I see there is a supposed update coming to this soon. Is it possibly integration for SMF 2.0 RC2? That would be swell as I do not see any other shoutbox/chat mod available for this version yet.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 16, 2010, 12:35:23 PM
This mod is already 2.0 RC2 friendly.

There is an updated version within a post
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 16, 2010, 12:50:14 PM
Quote from: Brack1 on February 16, 2010, 12:35:23 PM
This mod is already 2.0 RC2 friendly.

There is an updated version within a post

???

....within a post.................here (http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gitchuone on February 16, 2010, 01:02:32 PM
Quote from: SunKing on February 16, 2010, 12:50:14 PM
Quote from: Brack1 on February 16, 2010, 12:35:23 PM
This mod is already 2.0 RC2 friendly.

There is an updated version within a post

???

....within a post.................here (http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297)

;D

Thank you! Is working good so far!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 16, 2010, 01:16:35 PM
Fantastic!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gitchuone on February 16, 2010, 01:37:18 PM
I can't figure out how to get my custom loaded smileys to work in the shoutbox. Any ideas?

EDIT: Still don't have this working as I want it to, as I want it to work with the smileys I've loaded to the rest of the forum, but here is what I have found.

The smileys available to the shoutbox are located in /SMFinstallDirectory/shoutBox/img/emoticons
I still haven't found which file works with the shoutbox to specify the image name, but by uploading my custom smiley directly to this directory, and swapping out the name of my custom smiley to the name of an existing smiley, my custom one works.

Now, I either want one of the two things to work. In this preference order...

1) As I upload custom smileys to my SMF install, I can use the code I specify to show my smileys in the shoutbox

and/or

2) be able to "add" lines of code to let the shoutbox know I have more smileys and let me use them.

The second option is not great because I like to have more "Hidden" smileys in use than ones that are visible.

That's what I know for now.........
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 16, 2010, 02:08:45 PM
If I remember correctly, you have to add each smiley code separately into one of the chat files. I wish I could be more specific, but it has been a while since I have used this mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gitchuone on February 16, 2010, 02:18:24 PM
Quote from: SunKing on February 16, 2010, 02:08:45 PM
If I remember correctly, you have to add each smiley code separately into one of the chat files. I wish I could be more specific, but it has been a while since I have used this mod.

Well... it seems that the smileys "emoticons" for both the chat and the shoutbox are predefined in the packaging of this mod. Which stinks imo. But I am trying to figure out how it works as is before I try to fix it to read the theme loaded smileys.

In any case, here's what I have found so far that has to be done completely manually.

Upload the images you want to use to the /path/to/chat(shoutBox)/img/emoticons/

Edit the javascript config file to tell the system you intend on using the new smiley
[/path/to/chat(shoutBox)/js/config.js]

// Defines the list of allowed emoticon codes:
        emoticonCodes: new Array(
                ':)',
                ':(',
                ';)',
                ':P',
                ':D',
                ':|',
                ':O',
                ':?',
                '8)',
                '8o',
                'B)',
                ':-)',
                ':-(',
                ':-*',
                'O:-D',
                '>:-D',
                ':o)',
                ':idea:',
                ':important:',
                ':help:',
                ':error:',
                ':warning:',
                ':favorite:',
                ':yoda:'
        ),


See I put ':yoda:' at the end of the list

Then, edit the line below that...

// Defines the list of emoticon files associated with the emoticon codes:
        emoticonFiles: new Array(
                'smile.png',
                'sad.png',
                'wink.png',
                'razz.png',
                'grin.png',
                'plain.png',
                'surprise.png',
                'confused.png',
                'glasses.png',
                'eek.png',
                'cool.png',
                'smile-big.png',
                'crying.png',
                'kiss.png',
                'angel.png',
                'devilish.png',
                'monkey.png',
                'idea.png',
                'important.png',
                'help.png',
                'error.png',
                'warning.png',
                'favorite.png',
                'yoda.gif'
        ),


That gives me my "custom" Yoda smiley in the shoutbox list of available smileys.

Here he is in all his glory.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpissdrunks.skatecc.net%2FshoutBox%2Fimg%2Femoticons%2Fyoda.gif&hash=daecae4abb9efced045cd102074d8f691efae8fa)

This only partially solves this riddle for me as I have 100+ random smileys on my site that I want to make available through my shoutbox. On my live site, I have the majority of my smileys set as Hidden, so I'm not sure yet what I am going to do.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: prymagen on February 16, 2010, 11:49:14 PM
Hi,

I still wanna know how to get it to look like my site....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 17, 2010, 12:01:00 AM
Quote from: prymagen on February 16, 2010, 11:49:14 PM
Hi,

I still wanna know how to get it to look like my site....

chat/css/shoutbox.css and/or shoutbox/css/shoutbox.css
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gitchuone on February 17, 2010, 01:04:17 AM
I thought SunKing was going to come to my rescue, but maybe I've stumped everyone? No?

I don't want to list all my smileys in the shoutBox and/or chat smiley list, but I want to use all my site loaded smileys in both the chat and the shoutBox.   :P

;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 17, 2010, 01:46:07 PM
 :o

Rescue you? I threw you some floaties....

I have no idea how to implement what you want other than the manual approach you already know about. As far as having hidden smileys, I'm really not sure of a quick way. I would have to install the mod and dig through all of the code.

Having the ability to draw the smileys from SMF (which would also then allow hiding some) has been a request for a while now, and as far as I know code for doing so has yet to be made available. If I get some free time (don't hold your breath), I may reinstall the mod on my test site and see what I can come up with.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: morokat on February 17, 2010, 02:08:57 PM
Quote from: .HuNTeR. on August 27, 2008, 12:59:06 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1319)
By Shahriar Gholami
This mod will install AjaxChat (https://blueimp.net/ajax/) on your smf.

Tested on freshly installed smf 1.1.10/2.0 RC1.2

~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Demo (http://chat.ecobytes.net/)
username:admin
password:admin

Features:
Adds a button to chat system in default theme.
Access/Moderate permission.(https://www.simplemachines.org/community/Themes/smsite/images/english-utf8/new.gif)
chat in a pop up page or a regular page.
Shows the number of chating users in:
    1. Online Users section.
    2. Beside of chat button.
    3. Below of total time logged in.
    number 2 and 3 can disabled.

adds a shoutbox.(you can disable it)
    View/Shout/Moderate permission.(https://www.simplemachines.org/community/Themes/smsite/images/english-utf8/new.gif)
    can set to only in index page or all pages.
    compatible with your theme.
    Bold Italic Underline bb codes and smiley.
    collapsible.
    can integrate shout box and chat room to work together and show same conversation.


thanks mrtrc266 (http://index.php?action=profile;u=178448) for his great support on this mod.

sorry can u help me with this error in my web when i'm install

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg23.imageshack.us%2Fimg23%2F4398%2F5555rp.jpg&hash=d22343d6978c15f0968ce302cd9b5d992191305e)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 17, 2010, 02:11:48 PM
Quote from: morokat on February 17, 2010, 02:08:57 PM
........~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)............
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gitchuone on February 17, 2010, 04:04:37 PM
Quote from: SunKing on February 17, 2010, 01:46:07 PM
:o

Rescue you? I threw you some floaties....

I have no idea how to implement what you want other than the manual approach you already know about. As far as having hidden smileys, I'm really not sure of a quick way. I would have to install the mod and dig through all of the code.

Having the ability to draw the smileys from SMF (which would also then allow hiding some) has been a request for a while now, and as far as I know code for doing so has yet to be made available. If I get some free time (don't hold your breath), I may reinstall the mod on my test site and see what I can come up with.

That's cool. I have like 2.5 months before I launch, so we'll figure something out.
:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on February 17, 2010, 07:04:38 PM
Quote from: gitchuone on February 17, 2010, 01:04:17 AM
I thought SunKing was going to come to my rescue, but maybe I've stumped everyone? No?

I don't want to list all my smileys in the shoutBox and/or chat smiley list, but I want to use all my site loaded smileys in both the chat and the shoutBox.   :P

;D
Unfortunately AJAX Chat Smileys and SMF Smileys aren't integrated.

Here is a detailed explanation on how to get more functionality for the Smileys though, they are somewhat hidden, when you hit the smiley button they will pop up in a container, you were on the right track.
http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

Whatever smileys you use for you forum just add those to the edits for the AJAX Chat Smileys.

You can see it in action here (the "ShoutBox" not the "TalkBox")
http://monsters-mansion.com/testsmf2/ (http://monsters-mansion.com/testsmf2/)

If you like the "TalkBox" (recommended) you can find it here   http://www.empireofthesun.net
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gitchuone on February 17, 2010, 07:33:37 PM
Quote from: mrtrc266 on February 17, 2010, 07:04:38 PM
Quote from: gitchuone on February 17, 2010, 01:04:17 AM
I thought SunKing was going to come to my rescue, but maybe I've stumped everyone? No?

I don't want to list all my smileys in the shoutBox and/or chat smiley list, but I want to use all my site loaded smileys in both the chat and the shoutBox.   :P

;D
Unfortunately AJAX Chat Smileys and SMF Smileys aren't integrated.

Here is a detailed explanation on how to get more functionality for the Smileys though, they are somewhat hidden, when you hit the smiley button they will pop up in a container, you were on the right track.
http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

You can see it in action here
http://monsters-mansion.com/testsmf2/

Excellent. It's not entirely what I thought it would do, but I guess it'll work.

I haven't gone all the way through your post explaining how to do it yet, but I just wanted to say "thanks".

EDIT: I put the nunchucks smiley on your shoutbox. That means, the BBCode update will allow me to embed from anywhere else. Which, solves my issue 100%. Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on February 17, 2010, 07:52:48 PM
Quote from: gitchuone on February 17, 2010, 07:33:37 PM
Quote from: mrtrc266 on February 17, 2010, 07:04:38 PM
Quote from: gitchuone on February 17, 2010, 01:04:17 AM
I thought SunKing was going to come to my rescue, but maybe I've stumped everyone? No?

I don't want to list all my smileys in the shoutBox and/or chat smiley list, but I want to use all my site loaded smileys in both the chat and the shoutBox.   :P

;D
Unfortunately AJAX Chat Smileys and SMF Smileys aren't integrated.

Here is a detailed explanation on how to get more functionality for the Smileys though, they are somewhat hidden, when you hit the smiley button they will pop up in a container, you were on the right track.
http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

You can see it in action here
http://monsters-mansion.com/testsmf2/ (http://monsters-mansion.com/testsmf2/)

Excellent. It's not entirely what I thought it would do, but I guess it'll work.

I haven't gone all the way through your post explaining how to do it yet, but I just wanted to say "thanks".

No problem, it should work out good if you just download and copy all those files overwriting what is there, but use the smileys that you want (from your SMF Forum) then make the changes accordingly to the /chat/js/config.js file.

It's a tedious task but it will work LOL  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gitchuone on February 17, 2010, 09:17:54 PM
I've seen you've been doing some other testing there. You have a similar error popping up which is my next task to take on.... turning "Off" the sound when using the shoutbox. I figured an easy way to shut it down was to rename the .mp3 files that make the sounds. It eventually shut the sound down, but now it throws the error "ChatBot: Error: Failed to load sound file (Flash IO Error)."

Any ideas on that one?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on February 17, 2010, 09:29:22 PM
For now find....

/chat/lib/template/shoutbox.html

<input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" />


Add After
<input type="image" src="img/pixel.gif" id="audioButton" alt="[LANG]toggleAudio[/LANG]" title="[LANG]toggleAudio[/LANG]" onclick="ajaxChat.toggleSetting('audio', 'audioButton');"/>

It won't toggle an image or anything but it will turn the sound on/off in the shoutbox
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 17, 2010, 09:35:29 PM
Please please remind this old fossil how to change ajax chat to the name of the forum.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on February 17, 2010, 09:55:49 PM
Quote from: Brack1 on February 17, 2010, 09:35:29 PM
Please please remind this old fossil how to change ajax chat to the name of the forum.



It's somewhere located in one of the files in /chat

I can't remember LOL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 17, 2010, 10:00:53 PM
Sheesh another one with an old memory eh?

Thanks bud.

Hows California lately? Still doing them long work shifts?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Melanie Fine on February 18, 2010, 02:37:04 PM
Error message 'Unable to load the 'Shout.english-utf8' language file.'

The mod loaded successfully - it says it is installed, but I have lots of these error messages and cannot see any features/options of the chat at all.

Any ideas?

thank you!
-Melanie
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jetli68 on February 18, 2010, 03:48:06 PM
when will this be updated for  SMF 2.0 RC2  tia
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: More-to-life on February 18, 2010, 04:08:22 PM
Quote from: ac99 on November 11, 2009, 04:37:17 PM
Hi there,

Well, after I was unsuccessful with Hark's Park Shoutbox, now it appears that this Ajax Chat doesn't like me either... the problem is that shoutbox shows blank and nothing i can write appears on it. I've tried 4 different browsers, didn't work.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thecraftyforum.com%2Fimagens%2Fchatproblem%2F01.jpg&hash=099f03e9f695e164a520f9b9efbc2e38d5967788)

And nothing...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thecraftyforum.com%2Fimagens%2Fchatproblem%2F02.jpg&hash=1678211c9f87077aa99d40bbcedafd8d78ac1c3f)

...and nothing...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thecraftyforum.com%2Fimagens%2Fchatproblem%2F03.jpg&hash=133081861264c242a181361160404584566bd1d8)

Damn :(

Below is my configs:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thecraftyforum.com%2Fimagens%2Fchatproblem%2F04.jpg&hash=f9fd4f7305f731af3c0bdaa5523461d2d20ae3de)

I'll try also the modification for Pretty URL's (which I use in fact):
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thecraftyforum.com%2Fimagens%2Fchatproblem%2F05.jpg&hash=1cd58f8590eda5b2c946972ccbe704e3cd2d2902)

I've checked permissions to and changed chat/index.php and shoutbox/index.php to 755

Please give me an hand :)


EDIT:
Well... forget, already solved. That line on .htaccess shouldn't be at the end but at the top, above all other Pretty URL's "instructions". Weird, but true :)

Im quoting this & making it bigger so other members dont miss it because its so important as it took me 3 days to work out that this was the problem with the .htaccess file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 18, 2010, 04:39:07 PM
The RC2 version is attached to a post here (http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297).

(That font looks so tiny following the post above....)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: More-to-life on February 18, 2010, 04:52:16 PM
http://www.simplemachines.org/community/index.php?topic=257973.msg2506573#msg2506573

If your having a problem with the chat mod RC2 install & cant see members or any posts the link above might help you solve this issue
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on February 19, 2010, 01:08:45 AM
Quote from: welshbikers on February 18, 2010, 04:52:16 PM
http://www.simplemachines.org/community/index.php?topic=257973.msg2506573#msg2506573 (http://www.simplemachines.org/community/index.php?topic=257973.msg2506573#msg2506573)

If your having a problem with the chat mod RC2 install & cant see members or any posts the link above might help you solve this issue

Thank you welshbikers , I have added to the FAQ's to specifically add that edit to the top of the .htaccess file
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration
Post by: gitchuone on February 19, 2010, 02:16:26 AM
I'm sure I'm missing this somewhere, and/or this is not entirely updated for use in SMF 2.0 RC2. I've seen your site, and it works like a charm there, so I KNOW it does work.

I'm having trouble getting started.

My index.template.php does not contain the lines I'm supposed to find and replace from step 1.... so... uh, now what?  :o lol

Quote from: mrtrc266 on May 11, 2009, 12:24:51 AM
Finally Adding the BBC Buttons, adding Custom Smileys and MAKING SMILEYS POPUP in your Chat Room and ShoutBox for AJAX Chat Intergration 3.0 is here(https://www.simplemachines.org/community/Smileys/simple/cheesy.gif)

The edits below will add the following to your AJAX Chat Room & Shoutbox.
       

  • Adds all of the BBC Buttons to your Shoutbox.
  • Adds the Font Color Palette to your Shoutbox.
  • Adds custom Smileys to your Chat Room and Shoutbox.
  • Makes the Font Color Palette PopUp in the Shoutbox.
  • Makes the Smileys PopUp in your Chat Room & Shoutbox.
  • Adds 60 Custom Smileys to your Chat Room & Shoutbox.
Here we go.....First just do a couple edits to these files.

yourforum/Themes/yourtheme/index.tempalte.php
Find
      <div class="tborder" style="margin: 10px 0 10px 0;">
         <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;" /></a>', $txt['shoutBox'], '
         </div>
         <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>


Replace with

      <div class="tborder" style="margin: 10px 0 10px 0;">
         <table width="100%" class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
            <tr>
            <td width="50%">
                  <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 5px;"  /></a>', $txt['shoutBox'], '
         </div>
      </td>
         <td width="50%" align="right">
      <div id="ajaxChatCopyright"><a href="https://blueimp.net/ajax/">
          <font size="1">AJAX Chat</font></a><font size="1"> &copy; <a href="https://blueimp.net">blueimp.net</a> |
          </font> <a href="http://4tmu.ir/forum/index.php"><font size="1">Integrated with SMF</font></a></div>
               </td>
            </tr>
         </table>
      <div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Morfus on February 19, 2010, 09:56:38 AM
Enable online chat users numbering on chat button, how do i get it to work on a custom theme?
I have a menu in a "TP block" and like to add it into a "div" if it any help :)

EDIT: or just how intregrate the "user online counter"

SMF 1.1.11
TP 1.0 Beta 4
Theme: Noize

Sorry for my bad english.

Regards
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on February 19, 2010, 09:49:42 PM
@ gitchuone

There were a cpl minor changes to the edits for SMF 2's curve, you can simply upload and overwrite you files with these if you like

For the layout
Upload positions.css to yourforum/chat/css/
Upload shoutbox.css to yourforum/chat/css/
Upload loggedIn.html to yourforum/chat/lib/template/
Upload shoutbox.html to yourforum/chat/lib/template/
Upload Shout.template.php yourforum/Themes/default/

For the smileys
To use the Smileys in this .zip....
Upload config.js to yourforum/chat/js/
Unzip and upload to youforum/chat/img/emoticon

To use your own Smileys
Look at the code here, upload your own Smileys and make the edits to chat/js/config.js accordingly.
http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

For the Mute Button in the Shoutbox
Find yourforum/chat/lib/template/shoutbox.html
                <input type="image" src="http://monsters-mansion.com/testsmf2/chat/img/audio.png" class="button" id="audioButton" alt="[LANG]toggleAudio[/LANG]" title="[LANG]toggleAudio[/LANG]" onclick="ajaxChat.toggleSetting('audio', 'audioButton');" name="audioButton" align="absmiddle"/>

Replace this link with the link to your forum
http://monsters-mansion.com/testsmf2/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on February 19, 2010, 09:54:01 PM
Quote from: Morfus on February 19, 2010, 09:56:38 AM
Enable online chat users numbering on chat button, how do i get it to work on a custom theme?
I have a menu in a "TP block" and like to add it into a "div" if it any help :)

EDIT: or just how intregrate the "user online counter"

SMF 1.1.11
TP 1.0 Beta 4
Theme: Noize

Sorry for my bad english.

Regards

You'll have to see where the edits go in the default theme and then find the code close to that in your custom theme. It might take a few tries but you just have to play around with it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gitchuone on February 20, 2010, 12:51:39 AM
You reference the following file...

Quoteyourforum/Themes/yourtheme/index.tempalte.php

and that's where I got stuck because I found that the file is actually, /yourforum/Themes/theme/Shout.template.php

So far so good. The only thing I've noticed so far is that although I can "see" the new smileys in the popup, when I select them it just prints the code and not the image. I might be missing something in the config.js which I uploaded from your first post on a fresh install of the forum. Will keep hammering at it from this end. Thanks again!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on February 20, 2010, 01:36:14 PM
i have error 500? need hep.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 20, 2010, 01:48:57 PM
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gitchuone on February 20, 2010, 07:34:35 PM
QuoteHere some known issues and fixes caused by either other Mods or some servers

    * If you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please READ THIS

Where this links to gives pretty vague instructions on how to resolve this issue. The post references a .htaccess file, but no path information so I have no idea what .htaccess file to be editing. If someone can clarify this, that would be great.
Title: Re: AjaxChat Integration
Post by: [unplugged] on February 20, 2010, 07:56:50 PM
Quote from: SunKing on May 11, 2009, 12:12:37 AM
...Put (the edits) in the .htaccess file inside the same folder as the SSI.php is in (the forum root, not necessarily the site root)...

That is the .htaccess file I edited to solve my issues with this mod.
Title: Re: AjaxChat Integration
Post by: gitchuone on February 20, 2010, 08:17:07 PM
Quote from: SunKing on February 20, 2010, 07:56:50 PM
Quote from: SunKing on May 11, 2009, 12:12:37 AM
...Put (the edits) in the .htaccess file inside the same folder as the SSI.php is in (the forum root, not necessarily the site root)...

That is the .htaccess file I edited to solve my issues with this mod.

Thanks for getting back to me on this.

At that path there was no .htaccess file, which is why I questioned the post where you mentioned the SSI.php file. And so, I have created a .htaccess file at this path, but all I've concluded to have in it is this.


RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


Am I missing other parts of
Quote(the edits)
?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 20, 2010, 08:24:13 PM
In theory, having just that line in the .htaccess should in fact work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gitchuone on February 20, 2010, 09:01:26 PM
You mind giving this a look and even see if I am following instructions to resolve the correct issue?

http://skatecc.net/communitycenter/index.php
Username: testUser
Password: password

Just try the shoutBox, nothing is posting.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 20, 2010, 09:04:51 PM
I do not see a shoutbox at all, only a button for the chat, which says "No database selected" when clicked.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gitchuone on February 20, 2010, 10:35:51 PM
Quote from: SunKing on February 20, 2010, 09:04:51 PM
I do not see a shoutbox at all, only a button for the chat, which says "No database selected" when clicked.

Whoops. Forgot to enable that users' permissions. That's fixed. You should now see what I'm talking about.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DVDRiper on February 21, 2010, 03:15:42 AM
How to fix this?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg704.imageshack.us%2Fimg704%2F8378%2F98240341.png&hash=db97d2b634119291e5a215d75ec6e6dba049086d)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 21, 2010, 05:44:46 AM
To be perfectly honest, I don't think there are a lot of people who just want to try to install something said to have issues. Would it not be easier to just state the problem you are having? (That would provide a much faster solution as well, I would imagine.)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DVDRiper on February 21, 2010, 05:57:57 AM
I was install Ajax chat intergration 3.2.1 (modified for SMF 2 RC2) and how to fix this problem?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg704.imageshack.us%2Fimg704%2F8378%2F98240341.png&hash=db97d2b634119291e5a215d75ec6e6dba049086d)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 21, 2010, 06:18:24 AM
Yeah...I saw your post just 2 posts up from 2 and a half hours ago. No need to bump a question so soon. I am sure as soon as someone with the answer reads the post, they will gladly reply.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bugo on February 21, 2010, 07:07:16 AM
Quote from: DVDRiper on February 21, 2010, 05:57:57 AM
I was install Ajax chat intergration 3.2.1 (modified for SMF 2 RC2) and how to fix this problem?
Special for you => read it http://www.simplemachines.org/community/index.php?topic=257973.msg2509726#msg2509726
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 21, 2010, 07:23:29 AM
EDIT:[payed more attention] ;)


Thanks for the pic. It is a bit hard o tell exactly what the issue is from that though? What error exactly are you getting? Is it not loading? Is there an error message in the browser?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 21, 2010, 03:07:21 PM
hi i just switched hosts and i am getting this error 

ChatBot: Error: Failed to load sound file (Flash IO Error).

can someone tell me what is wrong
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 21, 2010, 03:11:40 PM
Have you checked to see that the chat.mp3 is in fact where it is supposed to be? I believe that error comes up as a result of it not existing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 21, 2010, 03:16:21 PM
yes files are all there it works fine on my other host and the files are mirrored actually it is asking me to download the sound files
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 21, 2010, 03:21:10 PM
Link?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 21, 2010, 03:25:56 PM
link for what my site?

it has something to do with permissions i have played with them and was getting the 500 error i fixxed that but still not working keeps wanting me to download the sounds
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 21, 2010, 03:32:37 PM
Yes, a link to your site so that someone may take a look at the actual errors and be better able to assist you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 21, 2010, 04:42:16 PM
okm i got the download sound gone however if

both my chat and shoutbox folder are set to 755 if i set them to 777 i get error 500 i have tried every combination of permissions and none work i am lost
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 21, 2010, 04:52:29 PM
Typically, folders are set to 755 and files set to 644.

You can PM me a link to your site (if you'd rather not post it publicly) so I can take a look at the actual errors and be better able to assist you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 21, 2010, 05:04:41 PM
my host is asking me if there is a specific port that the shoutbox runs on it may be blocked  does that sound right??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 21, 2010, 05:09:27 PM
also when i log into the chat room it says this across the top

Notice: Undefined variable: scripturl in /home/appfuzio/public_html/Themes/default/languages/Modifications.english.php  on line 525
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 21, 2010, 05:20:29 PM
That's not necessarily a critical error, it's just saying that the global above that line needs $scripturl added to it


If the site in question is the same as in your profile,
QuoteThe server at www.your_listed_site.com is taking too long to respond
meaning, you have other, more pressing issues.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 21, 2010, 05:23:33 PM
yeah i agree i am having alot of problems i am going back to my original hot till i get this sorted

but back to the ?? could it be a port issue
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 21, 2010, 05:24:26 PM
Not that I know of.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 21, 2010, 05:26:35 PM
ok thanks i didnt think so
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on February 21, 2010, 08:53:34 PM
It runs on port 80, same as your website.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 22, 2010, 02:46:03 PM
ok here is what is happening

i am referring to the 2 folders in my public_html chat and shoutbox

if i have both folder permissions set to 755 and all the file inside set to 755 i get no errors however the shoutbox remains blank nothing shows up when typed

if i set chat to 777 and shoutbox to 755 and i type something i get 500 error

if i set chat to 755 and shoutbox to 777 i get the blank shoutbox again

keep in mind i have just started using a different host on my last host the permissions were set to chat 777 and all filed inside are set to 755 and the same on shoutbox and it works fine

when i set everytong on the new host like the old host that the shoutbox worked on i get error 500
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 22, 2010, 02:58:32 PM
just noticed something else when i try to go to chat i get this

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at appfuzion.com Port 80

but if i change the chat permission back to 755 i can get into chat logs me in and everything but whatever i type does not show up this is crazy
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cat farmer on February 22, 2010, 10:59:47 PM
have an issue I have not seen answered yet, though 260 pages of reading.. might be hidden in there some where. anyway..
running 1.1.11
installed pretty urls and broke shout, did a couple of other mods that same day, never noticed that shout was broken, until later that day. so .. I uninstalled axjx chat and tried reinstalling,
found the post on pretty URL's and applied that fix, still did not work.
uninstalled again, removed DB entries, manually went through amd removed any traces of what was left over from the chat uninstall. 
reinstalled 3.2.1 and it all went great, had to set permissions on the the index.php(both shout and chat) and it fired right up.. or so I thought.

the issue is CHAT works great, no problems, or non I've found.
But SHOUTBOX only works if I have the "Integrate shout box and chat room?" selected, something I do not want as I don't want chat filling the shoutbox.
the SHOUTBOX just stays blank with with the Integrate shout box and chat room? not selected
no connection errors, no errors in the logs.

what advice can you give me?

Thanks CF
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m_nature on February 23, 2010, 05:38:18 AM
When my shoutbox to update screen, why sometime to blank screen or white screen?


How to solve this problem?

=======================
AjaxChat+Integration_3.2.1, SMF 1.8
=======================
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 23, 2010, 02:23:19 PM
anyone??? like i said i still have a working site on my old host and if i set all the permissions exactly the same on both host servers the old host works fine and the new host i get that error page if i change the permission on the new host chat folder to 755 then i can access chat but anything i type does not show up and i get the error across the top of the page

Notice: Undefined variable: scripturl in /home/appfuzio/public_html/Themes/default/languages/Modifications.english.php  on line 525

there is no error on the working host

anyone please got any idea something isnt right
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 23, 2010, 02:54:13 PM
ok i was able to do some edits and uninstall the shoutbox and i reinstalled it and now i get 500 error no matter what the permissions are set to i get 500 error
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on February 23, 2010, 03:01:12 PM
Quote from: sattninja on February 23, 2010, 02:54:13 PM
ok i was able to do some edits and uninstall the shoutbox and i reinstalled it and now i get 500 error no matter what the permissions are set to i get 500 error

/chat/index.php
/shoutBox/index.php

These are set to 755....Not just the folders but the actual files?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 23, 2010, 03:05:42 PM
ok they were not i changed them to 755 and i am back at square 1 have the shoutbox and the chat room but whatever i type doesnt show up there are no errors just it is like i never typed anything and i have this error across the top of the chat room

Notice: Undefined variable: scripturl in /home/appfuzio/public_html/Themes/default/languages/Modifications.english.php  on line 525
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 23, 2010, 03:09:35 PM
it is so weird everything works i can change the theme in the chat and everything i can pick smileys but whatever i type just doesnt show up in the box

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sodathief on February 23, 2010, 03:35:17 PM
I tried editing the htaccess AND my SMF filemanger wotn let me change CHMOD on those two files. Any workaround? I'm at work and forgot ftp info
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 23, 2010, 05:01:07 PM
one thing i just noticed also is when i log into chat on the working host is shows me in the online box and some other info

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi47.tinypic.com%2F14uxdzq.jpg&hash=9accf6ab0f00f70316b5075da9c0010082fe9939)

this is the non working host

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi47.tinypic.com%2F1z4eele.jpg&hash=6ff42f27c5ad59b22ec16d25a2d38c47c6bf74c3)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on February 23, 2010, 06:30:30 PM
Stand alone FTP program to change the files is the only other way I know. If they weren't changed then when you get home that should do the trick.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cat farmer on February 24, 2010, 11:00:09 AM
Quote from: cat farmer on February 22, 2010, 10:59:47 PM
have an issue I have not seen answered yet, though 260 pages of reading.. might be hidden in there some where. anyway..
running 1.1.11
installed pretty urls and broke shout, did a couple of other mods that same day, never noticed that shout was broken, until later that day. so .. I uninstalled axjx chat and tried reinstalling,
found the post on pretty URL's and applied that fix, still did not work.
uninstalled again, removed DB entries, manually went through amd removed any traces of what was left over from the chat uninstall. 
reinstalled 3.2.1 and it all went great, had to set permissions on the the index.php(both shout and chat) and it fired right up.. or so I thought.

the issue is CHAT works great, no problems, or non I've found.
But SHOUTBOX only works if I have the "Integrate shout box and chat room?" selected, something I do not want as I don't want chat filling the shoutbox.
the SHOUTBOX just stays blank with with the Integrate shout box and chat room? not selected
no connection errors, no errors in the logs.

what advice can you give me?

Thanks CF

digging a little deeper into my problem, seems that I have a permissions problem. guests can shout, though they do not have the rights. I can take the shoutbox completely away from them, so some selections work. but it seems that premissions is messed up. where are those permissions stored? I have a back up that I can compare to but I could not track down where those are set/held, I found the config file. but it seems to be uneffected by changing options in premissions. 

thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 24, 2010, 12:20:29 PM
ok i have switched to another host not related to this chat issue however it still doesnt work whatever i type does not show up however i can set both folders to 777 like they were on the working host and i get no 500 error anymore but wether they are set to 777 or 755 nothing i type shows up and it shows no users in chat

i would like to completely uninstall this mod then reinstall it however the parser does not give what is edited on RC2 so i have no reference to look at to delete everything manually
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 24, 2010, 02:16:40 PM
well i have been using firefox i decided to try IE and when i type it is giving me an error maybe this will help

(13:14:47) ChatBot: Error: Connection timeout. Please try again.
(13:14:50) ChatBot: Error: Connection timeout. Please try again.
(13:14:53) ChatBot: Error: Connection timeout. Please try again.
(13:14:56) ChatBot: Error: Connection timeout. Please try again.
(13:14:58) ChatBot: Error: Connection timeout. Please try again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sodathief on February 24, 2010, 05:01:01 PM
Quote from: mrtrc266 on February 23, 2010, 06:30:30 PM
Stand alone FTP program to change the files is the only other way I know. If they weren't changed then when you get home that should do the trick.

Yes that was it and it works, just not in my theme. I ran the package parser but there is one line that doesn't not show up in my index.template.php
:

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}



Also I have tried other custom templates and they all worked. It's just this one I am using  XD-Reborn

Does it possibly have something to do with the flash?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on February 24, 2010, 06:20:57 PM
let me ask you this could this be something to do with me switching name servers like a dns issue cause it is odd that it works on the old host but does not work on either of the new hosts but all the files are exactly the same i mean the site was transfered which basicly is just copying everything so i cant see the code getting messed up

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 24, 2010, 09:21:18 PM
On my test forum I have this error:

Warning: require(/home/xxxxx/public_html/forum/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/xxxxx/public_html/forum/chat/index.php on line 17


Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 24, 2010, 10:28:02 PM
What's on line 17 of your index.php?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 24, 2010, 10:32:31 PM
require(AJAX_CHAT_PATH.'lib/custom.php');
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: noahc on February 25, 2010, 07:39:42 PM
Hello, I recently setup a simple machines forum and am trying to get it just perfect.

I installed AJAX chat and it worked fine until I installed Pretty URL's and now chat loads...kinda, but no one is in the room nor is there any error.  Any ideas?

noahc.net/forum is the URL if you need it.

Much Appreciated!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 25, 2010, 11:30:11 PM
@naohc

Welcome to SMF!

Start reading here: http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536
Your problem has to do with the .htaccess in the forum's root folder.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m_nature on February 25, 2010, 11:35:05 PM
Quote from: m_nature on February 23, 2010, 05:38:18 AM
When my shoutbox to update screen, why sometime to blank screen or white screen?


How to solve this problem?
=======================
AjaxChat+Integration_3.2.1, SMF 1.8
=======================

I waiting anyone to suggert
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 25, 2010, 11:37:56 PM
~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Diagram on February 26, 2010, 01:38:21 AM
Still no versions for 2.0 RC2, I think?
Then I'll need a converter for 2.0 RC2 to 1.1.11  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 26, 2010, 01:40:33 AM
To use chat on rc2 you want version 3.2.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Diagram on February 26, 2010, 02:46:15 AM
Quote from: Brack1 on February 26, 2010, 01:40:33 AM
To use chat on rc2 you want version 3.2.2
Forgive me for asking, but where's the link posted at?

EDIT : Found it. No official one, actually?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 26, 2010, 02:47:30 AM
Quote from: SunKing on February 16, 2010, 12:50:14 PM
Quote from: Brack1 on February 16, 2010, 12:35:23 PM
This mod is already 2.0 RC2 friendly.

There is an updated version within a post

???

....within a post.................here (http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297)

@ Brack1
You really need to include the link to that if you are going to keep suggesting it...

@Diagram
The link is in that quote. ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sodathief on February 26, 2010, 03:02:39 PM
Ok so It's 100% workign with my theme now. The reason why it wasn't working was because of the favicon code at the top of the index.template.php !  Weird how something like that had anything to do with it.

So now I am wondering.... is there a way I can embed HTML like we do in forums? So I can slap in a dirty video or something.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sodathief on February 26, 2010, 05:26:57 PM
Quote from: SunKing on May 19, 2009, 12:23:29 PM

Next, open Sources/Post.php and search for
notifyMembersBoard($notifyData);


This is nowhere to be found for me, i only see notifyMembersBoard();


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 26, 2010, 05:31:23 PM
I just looked in my own /Sources/Post.php and the block that it is referring to looks like this (at least in my file it does):

// Notify any members who have notification turned on for this topic - only do this if it's going to be approved(!)

if ($becomesApproved)

{

if ($newTopic)

{

$notifyData = array(

'body' => $_POST['message'],

'subject' => $_POST['subject'],

'name' => $user_info['name'],

'poster' => $user_info['id'],

'msg' => $msgOptions['id'],

'board' => $board,

'topic' => $topic,

);

notifyMembersBoard($notifyData);

(the notifyMembersBoard being at the very bottom of that block.)

Hopefully, that will help you locate where the edits need to be placed.
Also, what version of SMF are you running?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sodathief on February 26, 2010, 05:34:12 PM
1.1.8 with tiny portal
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 26, 2010, 05:57:24 PM
You could try adding the edits just under your notifyMembersBoard() but make sure to make a backup of the file first, just in case.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on February 26, 2010, 06:37:04 PM
http
Quote://www.simplemachines.org/community/index.php?topic=367926.0

I'm running a website for football supporters and we're kinda anti Ajax... and the name of the chat is AJAX Chat so we would like to change that.
Anyway to change it? I don't know where to start looking :P
And how do i make it so that there is only 1 channel so people don't go into other channels on accident.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 26, 2010, 07:12:32 PM
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration
Post by: DVDRiper on February 27, 2010, 06:19:59 AM
Quote from: Jiveturkey on March 31, 2009, 03:03:54 PM
I added this piece of code to the SMF htaccess file

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

I added under the actions set of rules.  Everything works perfectly now.  If anyone else has a problem like mine feel free to shoot me a note and I'll help out.

I cant find htacces in my root?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on February 27, 2010, 11:18:21 AM
Quote from: SunKing on February 26, 2010, 07:12:32 PM
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

Doesn't say anywhere how to change the name AJAX :|
I hate the word so where do i change the name of the tab and in the chat itself?
Title: Pretty URLs and Chat
Post by: in5d on February 27, 2010, 07:28:51 PM
I tried using Pretty URLs with the Chat and obviously, the chat didn't work.  I tried using the  "fix" that was suggested on the SMF forum by creating a ".htaccess"  and chmoding the permissions to 755.  That obviously didn't work, so I deleted the .htaccess. file, then got rid of Pretty URLs.

The chat still wasn't working so I deleted the chat and was gonna reinstall it.  There was one file that wouldn't delete and I didn't think it was a big deal so I deleted the chat anyhow and now I received the following message:

Fatal error: Call to undefined function chatOnlineUsers() in /home/tokyoban/public_html/maya12-21-2012/2012forum/Sources/Load.php(1748) : eval()'d code on line 301

I did backup the forum beforehand, but the file is too big to import on phpmyadmin

any suggestions?
Title: Re: Pretty URLs and Chat
Post by: [unplugged] on February 27, 2010, 07:57:24 PM
Quote from: in5d on February 27, 2010, 07:28:51 PM
I tried using Pretty URLs with the Chat and obviously, the chat didn't work.  I tried using the  "fix" that was suggested on the SMF forum by creating a ".htaccess"  and chmoding the permissions to 755.  That obviously didn't work, so I deleted the .htaccess. file, then got rid of Pretty URLs.

The chat still wasn't working so I deleted the chat and was gonna reinstall it.  There was one file that wouldn't delete and I didn't think it was a big deal so I deleted the chat anyhow and now I received the following message:

Fatal error: Call to undefined function chatOnlineUsers() in /home/tokyoban/public_html/maya12-21-2012/2012forum/Sources/Load.php(1748) : eval()'d code on line 301

I did backup the forum beforehand, but the file is too big to import on phpmyadmin

any suggestions?

Quick fix for you:
Open either index.template.php or BoardIndex.template.php (I forget which) and search for chatOnlineUsers() on line 301 (don't worry about it saying that it's in the Load.php - that's just where it's being called from). Once you've found that, put a // in front of it. Save. Upload. Enjoy.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on February 27, 2010, 08:25:06 PM
thanks for the reply.  I tried what you said on the BoardIndex.php but I'm still getting the same error.

I wasn't exactly sure where you meant when you said in front, so I tried it in two places, to no avail.

//$userIDs = chatOnlineUsers();

and

$userIDs = //chatOnlineUsers();

any other ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 27, 2010, 08:36:21 PM
BoardIndex.php or BoardIndex.template.php?

and the // go at the very beginning of the line like in your first example.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on February 27, 2010, 08:45:53 PM
I appreciate your help.  I went to Themes/default and searched within BoardIndex.template.php but there wasn't anything in there named chatOnlineUsers();

Out of curiosity, I checked line 301 and it was for my calendar
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 27, 2010, 09:15:40 PM
Sorry about all of the run-around, but I haven't used this mod in quite a while. I went through the parser and I think I have found the part that needs to be commented out.

Open index.template.php and find: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>';
}


add a /* before and a */ after so it looks like:/*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>';
}*/


See if that clears that error out for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on February 27, 2010, 09:35:10 PM
That made it worse...now, I'm getting a white page with a warning:

Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------

syntax error, unexpected $end
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on February 27, 2010, 09:43:49 PM
I backed up my forum beforehand, but the file is too big to upload on phpmyadmin

perhaps if you, or anyone who knows how,  could tell me how to upload an oversized backup, that would clear the problem?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 27, 2010, 10:04:09 PM
You don't need to redo the database. You simply need to undo the changes made to the files by the mod. Do you have other mods installed? If not, you could just upload fresh copies of the files this mod changed.

Attach your BoardIndex.php, BoardIndex.template.php and index.template.php here please. We'll get you back on track.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on February 27, 2010, 10:22:55 PM
thanks again for your help!

I have a lot of other mods on my forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 27, 2010, 10:29:50 PM
I still need your index.template.php from your theme folder. ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on February 27, 2010, 10:35:05 PM
thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 27, 2010, 10:52:30 PM
Upload these. I have removed all of the Chat mod changes. That should fix it, but if not, we'll go from there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on February 27, 2010, 11:18:22 PM
Board Index:

Error
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unknown Punctuation String @ 1
STR: <?
SQL: <?php

Board Index Template:

There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unknown Punctuation String @ 1
STR: <?
SQL: <?php

Index Template

Error
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unknown Punctuation String @ 1
STR: <?
SQL: <?php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 27, 2010, 11:27:23 PM
Those are being caused by something causing everything to be on 1 line. Hmmmm.....

wait....SQL??

Those files just need to be uploaded to their corresponding folders...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on February 27, 2010, 11:40:32 PM
I uploaded them with phpmyadmin the first time...I'm pretty much a novice at this.  The 2nd time, I uploaded them to the appropriate folders with my File Manager, and I'm still getting the same message:

Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------

syntax error, unexpected $end
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 28, 2010, 01:01:18 AM
Here you go. The } was mistakenly removed along with the ChatUsers block.  :o
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on February 28, 2010, 01:05:50 AM
that did it, my friend.

many, many thanks to you, your help is greatly appreciated by all of my members and guests!!!
'
should I be able to add chat again at this point?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 28, 2010, 01:08:55 AM
You *should* be able to. I removed all traces from those files, but there may be traces left elsewhere. I am off to bed now, but I'll check first thing in the morning, just in case you still have issues.

Enjoy.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on February 28, 2010, 01:15:07 AM
good night SunKing, thanks again!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .Crazy.Face. on February 28, 2010, 02:14:03 AM




awesome mod, bro! Keep making them like this, the code is clean and I was easily able to upload it. If I had my way, all my mods would be made by you! :]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on February 28, 2010, 02:55:14 AM
I'm getting an error when I try to reinstall the Chat:

7. Execute Modification ./Themes/default/index.template.php Test failed

When I initially installed Chat, I had to uninstall most of my mods beforehand.

This time I tried uninstalling some of the same mods, but I ended up getting errors on them as well.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nycopols on February 28, 2010, 06:09:35 AM
My problem with AjaxChat 3.2.1 for 2.0 RC2.

Connection Status: 0


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg148.imageshack.us%2Fimg148%2F6063%2Fimmagineqb.png&hash=792000804e0db7881fa96fc868d06dff0be7b396)


Can you help me? Because there aren't others shoutbox compatible with 2.0 RC2 :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 28, 2010, 11:21:53 AM
@in5d
You can just install the mod anyway and then manually make the needed edits in your index.template.php (or attach it here and I can).

@nycopols
Check the very first page of this thread. There are a couple of reasons (and fixes) for the connection status 0.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Cutter65 on February 28, 2010, 12:02:52 PM
Most of the time my chat works ok. Some times of the day the server seems to get slow and the chat starts losing connection and giving the 500 error.

I have reported the slow issues to the host but they say theres nothing wrong!  ::)

My question is there a way to set the chat to auto reconnect or try to?

Thanks!
Cutter
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on February 28, 2010, 07:22:50 PM
Quote from: SunKing on February 28, 2010, 11:21:53 AM
@in5d
You can just install the mod anyway and then manually make the needed edits in your index.template.php (or attach it here and I can).


thank you, SunKing!!

should I upload the  Pretty URL mod again or should I wait until chat is up and running?  This is where I ran into trouble initially and tried to follow a quick fix that ultimately shut down my forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on February 28, 2010, 07:48:18 PM
Here's your index.template.php. That one block (the one that had no place to go) may need to be moved slightly. I don't have SMF 1.1.x to test it on. I also marked the beginning and end of the block so you can move/remove it if you wish.

As far as adding Pretty URLs back to it, post or PM me a link to the site, and I will help you through that part.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 01, 2010, 01:14:53 AM
@in5d
It seems adding RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the top of your .htaccess file in the forum root (as re-suggested by mrtrc266) has fixed you all up. Enjoy your chat!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: in5d on March 01, 2010, 12:01:34 PM
MASSIVE PROPS go out to SunKing and mrtrc

My site looks amazing...thank you!!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on March 02, 2010, 02:01:01 AM
By default Admins and Mods have a different colored name. How can i get a different colored name for a specific membergroup?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Cutter65 on March 02, 2010, 07:50:49 AM
Quote from: Cutter65 on February 28, 2010, 12:02:52 PM
Most of the time my chat works ok. Some times of the day the server seems to get slow and the chat starts losing connection and giving the 500 error.

I have reported the slow issues to the host but they say theres nothing wrong!  ::)

My question is there a way to set the chat to auto reconnect or try to?

Thanks!
Cutter

Bump
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jezsikat on March 02, 2010, 05:33:58 PM
Ok im going nuts i need some help

Im fairly new at board mods but i have followed what you have said i have tried to use the package parser and all it asks me to do is alter something for pretty quotes for my template.

When i install the chat its not showing the words stating what the check box is for in the admin section.

I wanted to use this for competitions for members and its just not working at its annoying me now.

Can you please advise what i need to do?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.exquisitebaby.co.nz%2Fforum%2FUntitled.jpg&hash=479e4fae10af43e47b735b0b5e66a33ccc5fdfd1)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on March 02, 2010, 06:21:41 PM
Quote from: Jezsikat on March 02, 2010, 05:33:58 PM
Ok im going nuts i need some help

Im fairly new at board mods but i have followed what you have said i have tried to use the package parser and all it asks me to do is alter something for pretty quotes for my template.

When i install the chat its not showing the words stating what the check box is for in the admin section.

I wanted to use this for competitions for members and its just not working at its annoying me now.

Can you please advise what i need to do?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.exquisitebaby.co.nz%2Fforum%2FUntitled.jpg&hash=479e4fae10af43e47b735b0b5e66a33ccc5fdfd1)

That happened to me, the cure was installing the "Load Standard Language" mod.  Hope that helps
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 02, 2010, 06:26:50 PM
Quote from: Jezsikat on March 02, 2010, 05:33:58 PM
Ok im going nuts i need some help

Im fairly new at board mods but i have followed what you have said i have tried to use the package parser and all it asks me to do is alter something for pretty quotes for my template.

When i install the chat its not showing the words stating what the check box is for in the admin section.

I wanted to use this for competitions for members and its just not working at its annoying me now.

Can you please advise what i need to do?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.exquisitebaby.co.nz%2Fforum%2FUntitled.jpg&hash=479e4fae10af43e47b735b0b5e66a33ccc5fdfd1)


Seems like a language issue and you probably have you forum set to UTF-8?

Open Themes/default/languages/Modifications.english-utf8.php
Add this to the top right after <?php

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Can shout';
$txt['permissionhelp_shout_access'] = 'Give access to write in shout box.';
$txt['permissionname_shout_view'] = 'View shoutBox';
$txt['permissionhelp_shout_view'] = 'Give access to view the shoutBox';
$txt['permissionname_shout_mod'] = 'Moderate shoutBox';
$txt['permissionhelp_shout_mod'] = 'Give access to moderate the shoutBox.';
$txt['permissionname_chat_mod'] = 'Moderate chat';
$txt['permissionhelp_chat_mod'] = 'Give access to moderate the chat.';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 02, 2010, 06:30:21 PM
Quote from: ErnieB on March 02, 2010, 02:01:01 AM
By default Admins and Mods have a different colored name. How can i get a different colored name for a specific membergroup?

By default you can only change the colors for the "chat" admins, mods, users and guests

/chat/css/whatever.css depending on the style your using

for the shoutbox
chat/css/shoutbox.css
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on March 02, 2010, 06:51:18 PM
Quote from: mrtrc266 on March 02, 2010, 06:30:21 PM
Quote from: ErnieB on March 02, 2010, 02:01:01 AM
By default Admins and Mods have a different colored name. How can i get a different colored name for a specific membergroup?

By default you can only change the colors for the "chat" admins, mods, users and guests

/chat/css/whatever.css depending on the style your using

for the shoutbox
chat/css/shoutbox.css

could you just add a line of some sort of code to add color for a certain membergroup?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 02, 2010, 06:56:38 PM
Have got this error on my private test forum.

Any ideas?


Fatal error: require() [function.require]: Failed opening required '/home/xxx/public_html/forum/chat/lib/custom.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/forum/chat/index.php on line 17
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jezsikat on March 02, 2010, 08:28:25 PM
I got the Package parser working and i changed the files needed but i get to the index.template.php file and its missing this that i need to change:


Find:
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}


Replace with:
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
if (!empty($modSettings['enableChatBelowPM'])){
$count = count(chatOnlineUsers());
if ($count == 0 )
echo '<br />' . $txt['chat_no_user'];
elseif ($count == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' . $count . $txt['chat_users']. '<br />';
}
echo ' </span>';
}


And if i add it in i get an error with the load.php file.

This is my index.template.php file:

<?php
// Version: 1.1.5; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1.5';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = false;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = false;
$settings['use_image_buttons'] = true;
/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;

}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$language$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?finll part of this link is just here to make sure browsers don't cache it wrongly.
 
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />

<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/ie6lte.css?fin11" />
<![endif]-->'
;

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
{
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>
  <div id="wrapper">
<div id="header-l">
<div id="header-r">
<div id="header">
         <div id="logo">'
;
  if (empty($settings['header_logo'])){
echo '<a href="'.$scripturl.'" title="" class="logo-txt">'$context['forum_name'], '</a>';
}
else {
echo '<a href="'.$scripturl.'" title="" class="logo">&nbsp;</a>';
}
echo'
</div>
</div>
</div>
</div>
<div id="mainnav-l">
<div id="mainnav-r">
<div id="mainnav">
'
,template_menu(),'
</div>
</div>
</div>'
;

echo'
<div id="userbar-l">
<div id="userbar-r">
   <div id="userbar">
     <div id="topbar">'
;
      // The information that will be shown to the member when he/she is logged on
        if($context['user']['is_logged'])
        {
echo '
<div id="loggedin">
<b>'
$txt[248], '</b> '$context['user']['name'];
        
// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo ',<br />'$txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'], '.';

echo '
</div>
<div id="loggedin2">
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a>
</div>'
;
        }

        // The login box which will only be shown to the guests
        else
        {
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>           
<input name="user" type="text" onfocus="if(this.value==\''
$txt[35], '\')value=\'\';" onblur="if(this.value==\'\')value=\''$txt[35], '\';" value="'$txt[35], '" />
<input name="passwrd" type="password" onfocus="if(this.value==\''
$txt[36], '\')value=\'\';" onblur="if(this.value==\'\')value=\''$txt[36], '\';" value="'$txt[36], '" />
<input name="sa" class="submit" src="'
$settings['images_url'], '/custom/go_icon.png" type="image" value="'$txt[34], '" />
<input type="hidden" name="cookielength" value="-1" />
</form>'
;
        }
  echo'
     </div>
     <div id="searcharea">
       <form action="'
$scripturl'?action=search2" method="post">
<input name="search" type="text" onfocus="if(this.value==\''
$txt[182], '\')value=\'\';" onblur="if(this.value==\'\')value=\''$txt[182], '\';" value="'$txt[182], '" />
<input name="sa" class="submit" src="'
$settings['images_url'], '/custom/go_icon.png" type="image" value="'$txt[182], '"/>';

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
     </div>
   </div>
</div>
</div>'
;

 }

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;
 echo'
<div id="footer-l">
<div id="footer-r">
<div id="footer">
,theme_copyright(),' | Theme kelo-lt by <a href="http://padexx.de">padexx</a>
</div>
</div>
</div>'
;

echo'
<div id="footer2">'
;
// Show the load time?
if ($context['show_load_time'])
{
echo '
<p class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</p>';
}

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</div>

</div>
</body>
</html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$txt$options;

echo '
<div class="pathway-l">
<div class="pathway-r">
<div class="pathway">'
;
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '">' $tree['name'] . '</a>' $tree['name'] , '&nbsp;&raquo;&nbsp;';
else
echo $tree['name'];

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

}

echo '</div></div></div><span style="display: none">kelo-lt Theme designed by <a href="http://padexx.de/" target="_blank" title="SMF Themes &amp; webdesign solutions">padexx</a></span>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...

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

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Start of the tab section.
echo '
<ul>'
;

// Show the default [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'home' 'current' '' '"><a href="'$scripturl'">' $txt[103] , '</a></li>';

// Show the [help] button.
echo ($current_action=='help' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'help' 'current' '' '"><a href="'$scripturl'?action=help">' $txt[119] , '</a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action=='search' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'search' 'current' '' '"><a href="'$scripturl'?action=search">' $txt[182] , '</a></li>';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action=='admin' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'admin' 'current' '' '"><a href="'$scripturl'?action=admin">' $txt[2] , '</a></li>';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action=='profile' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'profile' 'current' '' '"><a href="'$scripturl'?action=profile">' $txt[79] , '</a></li>';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action=='pm' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'pm' 'current' '' '"><a href="'$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a></li>';


// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action=='calendar' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'calendar' 'current' '' '"><a href="'$scripturl'?action=calendar">' $txt['calendar24'] , '</a></li>';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action=='mlist' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'mlist' 'current' '' '"><a href="'$scripturl'?action=mlist">' $txt[331] , '</a></li>';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action=='login' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'login' 'current' '' '"><a href="'$scripturl'?action=login">' $txt[34] , '</a></li>';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action=='register' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'register' 'current' '' '"><a href="'$scripturl'?action=register">' $txt[97] , '</a></li>';

// the [chat] button
$chatPath str_replace("index.php""chat/index.php"$scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' $first '">&nbsp;</td>' '''
<td valign="top" class="maintab_back">
<a href="'
$chatPath'"', empty($modSettings['chatPopUp']) ? 'target="_blank"' ' onclick="openWindow(this.href);this.blur();return false;"''>'$txt['chat'], ($num 0) ?  ('('.$num.')') : '' '</a>
</td>'
;

// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action=='logout' || $context['browser']['is_ie4']) ? '' '' '
<li class="' 
$current_action == 'logout' 'current' '' '"><a href="'$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></li>';

echo '</ul>';

// The end of tab section.
}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="buttons">'
implode('</td><td class="buttons">'$button_strip) , '</td>';
}

function 
showcase()
{
global $settings$buttons$context$txt$scripturl;
// personal info etc.
echo '
   <div class="userinfo">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '<h3>'$txt['hello_member_ndt'], ' '$context['user']['name'], '</h3>';

echo '
<div id="useropts">
<ul>'
;
// Only tell them about their messages if they can read their messages!
if ($context['allow_pm'])
echo '<li>'$txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a> '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'];
echo '.</li>';

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '<li><b>'$txt[616], '</b></li>';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '<li>'$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '</li>';

echo '
<li><a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a></li>
<li><a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a></li>
</ul>
</div>'
;
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
'
$txt['welcome_guest'], '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user"  size="10" />
<input type="password" name="passwrd"  size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" />
<input type="hidden" name="hash_passwrd" value="" />
</form>'
$txt['smf52'], '<br /><br />';
}

  echo 
' </div>';

echo '
         <div class="searchfield">
<form action="'
$scripturl'?action=search2" method="post" style="margin: 4px 0;">
<input type="text" name="search" value="" size="30" style="margin-bottom: 4px;"  />&nbsp;
<input type="submit" name="submit" value="'
$txt[182], '" style="margin-bottom: 4px;"  /><br />
<b><a href="'
$scripturl'?action=search;advanced">'$txt['smf298'], '</a></b>
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form><br />
<b>'
$context['common_stats']['total_posts'], '</b> '$txt[95], ' '$txt['smf88'], ' <b>'$context['common_stats']['total_topics'], '</b> '$txt[64], '- '$txt[525], ' <span style="white-space: nowrap;"><b>'$context['common_stats']['total_members'], '</b> '$txt[19], '</span> -
'
$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>
</div>
<div class="clr"></div>
  '
;
}

?>



Can someone pleeeease help me im so close :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on March 02, 2010, 09:31:09 PM
Quote from: mrtrc266 on March 02, 2010, 06:30:21 PM
Quote from: ErnieB on March 02, 2010, 02:01:01 AM
By default Admins and Mods have a different colored name. How can i get a different colored name for a specific membergroup?

By default you can only change the colors for the "chat" admins, mods, users and guests

/chat/css/whatever.css depending on the style your using

for the shoutbox
chat/css/shoutbox.css

What file designates what membergroup make up these 4 choices? Like where does it tell the program that "admin" refer to everyone that is in the  Membergroup "1" and mods are membergroup "2".  ( ie since i dont allow guests could I change the membergroup designation for guests to the membergroup i want to have a specific color? )
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 02, 2010, 11:05:11 PM
@Jezsikat
Welcome to SMF!

Try the attached file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jezsikat on March 02, 2010, 11:27:14 PM
Thank you sunking i have had so many awesome comments from my members regarding the ease of SMF :)

Its still not working :( i get this

Fatal error: Call to undefined function chatOnlineUsers() in /home/tag15621/public_html/forum/Sources/Load.php(1733) : eval()'d code on line 426
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 02, 2010, 11:33:27 PM
SMF is by far the easiest to use, both from an admin standpoint as well as a regular user's standpoint.

Here's a temporary fix for now. This will get your site up and running, but simply won't show the number of chatters active beside your avatar. I will look into that shortly.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jezsikat on March 02, 2010, 11:55:36 PM
Its still not working :( Is it a combination of the other file too? I will post and show you:

Thank you for helping me SunKing i really appreciate it :)

<?php
// Version: 1.1; BoardIndex

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

// Show some statistics next to the link tree if SP1 info is off.
echo '
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom">'
theme_linktree(), '</td>
<td align="right">'
;
if (!$settings['show_sp1_info'])
echo '
'
$txt[19], ': '$context['common_stats']['total_members'], ' &nbsp;&#38;#8226;&nbsp; '$txt[95], ': '$context['common_stats']['total_posts'], ' &nbsp;&#38;#8226;&nbsp; '$txt[64], ': '$context['common_stats']['total_topics'], '
'
, ($settings['show_latest_member'] ? ' ' $txt[201] . ' <b>' $context['common_stats']['latest_member']['link'] . '</b>' $txt[581] : '');
echo '
</td>
</tr>
</table>'
;
// Show a random news item? (or you could pick one from news_lines...)
    
if (!empty($settings['enable_news'])) 
 {
    
echo '
<div class="greenbg-l">
<div class="greenbg-r">
<div class="greenbg">
'
$txt[102], '
</div>
</div>
</div>
<div class="border-l">
<div class="border-r">
<div class="newsfader">
<div class="newsbox">
'
$context['random_news_line'] , '
</div>
</div>
</div>
</div>

<div class="greenbgbottom-l">
<div class="greenbgbottom-r">
<div class="greenbgbottom">
&nbsp;
</div>
</div>
</div>'
;
    }
// Show the news fader?  (assuming there are things to show...)
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
{
// Prepare all the javascript settings.
echo '
<div class="greenbg-l">
<div class="greenbg-r">
<div class="greenbg">
'
$txt[102], '
</div>
</div>
</div>
<div class="border-l">
<div class="border-r">
<div class="newsfader">
<div id="smfFadeScroller">
<p>'
$context['news_lines'][0], '</p>
</div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
var smfFadeFrom = {"r": 0, "g": 0, "b": 0}, smfFadeTo = {"r": 255, "g": 255, "b": 255};
// Surround each item with... anything special?
var smfFadeBefore = "<b>", smfFadeAfter = "<\/b>";

var foreColor, backEl, backColor;

if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
{
foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
backEl = backEl.parentNode;

backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
}
else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
{
foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

backEl = document.getElementById(\'smfFadeScroller\');
while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
backEl = backEl.parentNode;

backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
}

// List all the lines of the news for display.
var smfFadeContent = new Array(
"'
implode('",
"'
$context['fader_news_lines']), '"
);
// ]]></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>
</div>
</div>
</div>

<div class="greenbgbottom-l">
<div class="greenbgbottom-r">
<div class="greenbgbottom">
&nbsp;
</div>
</div>
</div>'
;
}

/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */
$first true;
foreach ($context['categories'] as $category)
{
echo '
<div class="bluebg-l">
<div class="bluebg-r">
<div class="bluebg">'
;
$first false;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a class="collapse_img" href="'
$category['collapse_href'], '">'$category['collapse_image'], '</a>';

echo '
'
$category['link'], '
</div>
</div>
</div>'
;

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<div class="border-l">
<div class="border-r">
<div class="border">

<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">'
;

/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td ' 
, !empty($board['children']) ? 'rowspan="2"' '' ' class="windowbg" width="6%" align="center" valign="top"><a href="'$scripturl'?action=unread;board='$board['id'], '.0">';

// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2">
<b><a href="'
$board['href'], '" name="b'$board['id'], '">'$board['name'], '</a></b><br />
'
$board['description'];

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
'
$board['posts'], ' '$txt[21], ' <br />
'
$board['topics'],' '$txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">'
;

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>'
$txt[22], '</b>  '$txt[525], ' '$board['last_post']['member']['link'] , '<br />
'
$txt['smf88'], ' '$board['last_post']['link'], '<br />
'
$txt[30], ' '$board['last_post']['time'];
echo '
</span>
</td>
</tr>'
;
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg'
, !empty($settings['seperate_sticky_lock']) ? '3' '''">
<span class="smalltext"><b>'
$txt['parent_boards'], '</b>: 'implode(', '$children), '</span>
</td>
</tr>'
;
}
}
echo '
</table>

</div>
</div>
</div>'
;
}
echo '
<div class="bluebgbottom-l">
<div class="bluebgbottom-r">
<div class="bluebgbottom">
&nbsp;
</div>
</div>
</div>'
;
}

if ($context['user']['is_logged'])
{
echo '
<div class="buttonbar-l">
<div class="buttonbar-r">
<div class="buttonbar">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="'
, !$context['right_to_left'] ? 'left' 'right''">
<span class="new_some">'
$txt[333], '</span>
<span class="new_none">'
$txt[334], '</span>
</td>
<td align="'
, !$context['right_to_left'] ? 'right' 'left''" nowrap="nowrap" class="postbuttons">';
// Mark read button.
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '
<a href="'
$scripturl'?action=markasread;sa=all;sesc=' $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/markread.gif" alt="' $txt[452] . '" border="0" />' $txt[452]), '</a>';
echo '
  </td>
  </tr>
  </table>
</div>
</div>
</div>'
;
}

// Here's where the "Info Center" starts...
echo '<br />
<div class="greenbg-l">
<div class="greenbg-r">
<div class="greenbg">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="'
$settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' 'expand.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 10px 10px 0 0;" align="right" /></a>
'
$txt[685], '
</div>
</div>
</div>
<div id="upshrinkHeaderIC"'
, empty($options['collapse_header_ic']) ? '' ' style="display: none;"''>
<div class="border-l">
<div class="border-r">
<div class="border">

<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">'
;

// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[214], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=recent"><img src="'$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" /></a>
</td>
<td class="windowbg2">'
;

// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>
<div class="smalltext">
'
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />
</div>'
;
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="0" width="100%" border="0">'
;

/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<tr>
<td class="middletext" valign="top"><b>'
$post['link'], '</b> '$txt[525], ' '$post['poster']['link'], ' ('$post['board']['link'], ')</td>
<td class="middletext" align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>
</tr>'
;
echo '
</table>'
;
}
echo '
</td>
</tr>'
;
}

// Show information about events, birthdays, and holidays on the calendar.
if ($context['show_calendar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=calendar"><img src="'$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="smalltext">'
;

// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
if (!empty($context['calendar_holidays']))
echo '
<span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';

// People's birthdays. Like mine. And yours, I guess. Kidding.
if (!empty($context['calendar_birthdays']))
{
echo '
<span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
/* Each member in calendar_birthdays has:
id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
foreach ($context['calendar_birthdays'] as $member)
echo '
<a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';
}
// Events like community get-togethers.
if (!empty($context['calendar_events']))
{
echo '
<span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
/* Each event in calendar_events should have:
title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
foreach ($context['calendar_events'] as $event)
echo '
'
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';

// Show a little help text to help them along ;).
if ($context['calendar_can_edit'])
echo '
(<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';
}
echo '
</span>
</td>
</tr>'
;
}


// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="'
$scripturl'?action=stats"><img src="'$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$context['common_stats']['total_posts'], ' '$txt[95], ' '$txt['smf88'], ' '$context['common_stats']['total_topics'], ' '$txt[64], ' '$txt[525], ' '$context['common_stats']['total_members'], ' '$txt[19], '. '$txt[656], ': <b> '$context['common_stats']['latest_member']['link'], '</b>
<br /> ' 
$txt[659] . ': <b>&quot;' $context['latest_post']['link'] . '&quot;</b>  ( ' $context['latest_post']['time'] . ' )<br />
<a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />
<a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</span>
</td>
</tr>'
;
}

// "Users online" - in order of activity.
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[158], '</td>
</tr><tr>
<td rowspan="2" class="windowbg" width="20" valign="middle" align="center">
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" />'$context['show_who'] ? '</a>' '''
</td>
<td class="windowbg2" width="100%">'
;

echo '
'
$context['show_who'] ? '<a href="' $scripturl '?action=who">' ''$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];

// Handle hidden users and buddies.
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
{
echo ' (';

// Show the number of buddies online?
if ($context['show_buddies'])
echo $context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];

// How about hidden users?
if (!empty($context['num_users_hidden']))
echo $context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];

echo ')';
}

echo $context['show_who'] ? '</a>' '''
<div class="smalltext">'
;

// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
if (!empty($context['users_online']))
echo '
'
$txt[140], ':<br />'implode(', '$context['list_users_online']);

// users in chat
if (isset($context['chat_links'])){
if (count($context['chat_links']) == )
  
echo '<br />' $txt['chat_no_user'];
elseif (count($context['chat_links']) == )
   echo '<br />  1' $txt['chat_aUser']. ':<br />'implode($context['chat_links']);
else
  
echo '<br /> ' count($context['chat_links']). $txt['chat_users']. ':<br />'implode(', '$context['chat_links']);
  }

echo '
<br />
'
$context['show_stats'] && !$settings['show_sp1_info'] ? '<a href="' $scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
</div>
</td>
</tr>
<tr>
<td class="windowbg2" width="100%">
<span class="middletext">
'
$txt['most_online_today'], ': <b>'$modSettings['mostOnlineToday'], '</b>.
'
$txt['most_online_ever'], ': '$modSettings['mostOnline'], ' (' timeformat($modSettings['mostDate']), ')
</span>
</td>
</tr>'
;

// If they are logged in, but SP1 style information is off... show a personal message bar.
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
{
 echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[159], '</td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
'
$context['allow_pm'] ? '<a href="' $scripturl '?action=pm">' '''<img src="'$settings['images_url'], '/message_sm.gif" alt="'$txt[159], '" />'$context['allow_pm'] ? '</a>' '''
</td>
<td class="windowbg2" valign="top">
<b><a href="'
$scripturl'?action=pm">'$txt[159], '</a></b>
<div class="smalltext">
'
$txt[660], ' '$context['user']['messages'], ' '$context['user']['messages'] == $txt[471] : $txt[153], '.... '$txt[661], ' <a href="'$scripturl'?action=pm">'$txt[662], '</a> '$txt[663], '
</div>
</td>
</tr>'
;
}

// Show the login bar. (it's only true if they are logged out anyway.)
if ($context['show_login_bar'])
{
echo '
<tr>
<td class="titlebg" colspan="2">'
$txt[34], ' <a href="'$scripturl'?action=reminder" class="smalltext">(' $txt[315] . ')</a></td>
</tr>
<tr>
<td class="windowbg" width="20" align="center">
<a href="'
$scripturl'?action=login"><img src="'$settings['images_url'], '/icons/login.gif" alt="'$txt[34], '" /></a>
</td>
<td class="windowbg2" valign="middle">
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"><tr>
<td valign="middle" align="left">
<label for="user"><b>'
$txt[35], ':</b><br />
<input type="text" name="user" id="user" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="passwrd"><b>'
$txt[36], ':</b><br />
<input type="password" name="passwrd" id="passwrd" size="15" /></label>
</td>
<td valign="middle" align="left">
<label for="cookielength"><b>'
$txt[497], ':</b><br />
<input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="'
$modSettings['cookieTime'], '" /></label>
</td>
<td valign="middle" align="left">
<label for="cookieneverexp"><b>'
$txt[508], ':</b><br />
<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="check" /></label>
</td>
<td valign="middle" align="left">
<input type="submit" value="'
$txt[34], '" />
</td>
</tr></table>
</form>
</td>
</tr>'
;
}

echo '
</table>

</div>
</div>
</div>
</div>
<div class="greenbgbottom-l">
<div class="greenbgbottom-r">
<div class="greenbgbottom">
&nbsp;
</div>
</div>
</div>'
;
}

?>

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 02, 2010, 11:58:31 PM
Can you post or PM a link to your site please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jezsikat on March 03, 2010, 12:41:28 AM
Hi i have messaged you :) Thank you :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 04, 2010, 12:48:46 AM
Hello,
I want to change Ajax chat name something different, is it possible?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 04, 2010, 03:38:58 AM
Easily done. Navigate to /chat/lib/lang/{your lang}.php. Open that file and the first line should say $lang['title'] = 'AJAX Chat';.

Change  AJAX Chat to whatever you want.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hatari on March 04, 2010, 03:41:40 AM
Hi,

I have Chat Box 3.2.1 installed on SMF 1.1.11 and have a problem with sound on Firefox.

On IE, Chrome etc the sounds play OK.

On firefox, sound from Utube etc play OK. Yet from the Shout box nothing just the error "ChatBot: Error: Failed to load sound file (Flash IO Error)."

Any ideas :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 04, 2010, 03:43:37 AM
Have you tried clearing Firefox's cache? Also, do you have flash enabled for Firefox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hatari on March 04, 2010, 03:57:50 AM
Yes cache clear and I assume must be flash enabled to view and hear the Utube clips. They work perfectly well
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 04, 2010, 04:04:15 AM
Quote from: SunKing on March 04, 2010, 03:38:58 AM
Easily done. Navigate to /chat/lib/lang/{your lang}.php. Open that file and the first line should say $lang['title'] = 'AJAX Chat';.

Change  AJAX Chat to whatever you want.

It works, thank you! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 04, 2010, 04:16:38 AM
@Hatari
I'll look into it. Do you have Firebug addon installed? You may be able to use it to pinpoint a problem. Also, can you post or PM a link to your site, so I can see if it works in my Firefox?

@jarska
Glad I could help. Enjoy.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: [unplugged] on March 04, 2010, 05:23:59 AM
Quote from: mrtrc266 on July 09, 2009, 12:23:05 AM
That is a known FireFox issue, ATM there I don't know of a fix for it but it only happens when you first type in a message, then it doenst appear again until you logon to your forum again.

SourceForge is current workin on finding a fix for it.

Hey mrtrc bud, any update on this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 05, 2010, 04:46:12 PM
Quote from: RoyalMess on February 26, 2010, 06:37:04 PM
http
Quote://www.simplemachines.org/community/index.php?topic=367926.0

I'm running a website for football supporters and we're kinda anti Ajax... and the name of the chat is AJAX Chat so we would like to change that.
Anyway to change it? I don't know where to start looking :P
And how do i make it so that there is only 1 channel so people don't go into other channels on accident.

I tried changing it as a title but then we got like a white line at the top of the chat and we want to remove the AJAX chat words on the right as well.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 05, 2010, 05:32:38 PM
You tried doing this?

Quote from: SunKing on March 04, 2010, 03:38:58 AM
Easily done. Navigate to /chat/lib/lang/{your lang}.php. Open that file and the first line should say $lang['title'] = 'AJAX Chat';.

Change  AJAX Chat to whatever you want.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 05, 2010, 05:38:36 PM
Quote from: SunKing on March 05, 2010, 05:32:38 PM
You tried doing this?

Quote from: SunKing on March 04, 2010, 03:38:58 AM
Easily done. Navigate to /chat/lib/lang/{your lang}.php. Open that file and the first line should say $lang['title'] = 'AJAX Chat';.

Change  AJAX Chat to whatever you want.

I tried changing it as a title but then we got like a white line at the top of the chat and we want to remove the AJAX chat words on the right as well.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 05, 2010, 06:09:07 PM
That wasn't really helpful two posts ago, nor is it now. ;)
All of the text strings for the chat are going to be in that same file, so what you want is in there somewhere. As far as the white line.... how about a link to the site so we can see what's going on? Or maybe a screenshot?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on March 05, 2010, 11:32:05 PM
It seems he may be asking you how to also remove the copyright in the chat room...
tsk tsk (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.getsmile.com%2Femoticons%2Fsmileys-91853%2Faiw%2Fnono.gif&hash=5a5f60babeab905d207f63a418c2664b6ff0ddd3)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 06, 2010, 12:56:23 AM
 :o Indeed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: joseflor on March 06, 2010, 06:04:08 AM
My menu is also missed and the Admin area does not show the text for the ajaxchat. See image...
How did you fix this problem

Quote from: BliXem on January 24, 2010, 06:57:37 AM
Hi there, this is really an awesome mod!  I however have a few problems, my Chat button is missing.  I have manually installed the files as required on both my default and custom theme.  The button still wont show in the navigation menu.

I am running smf 1.1.11

Packages installed:

Mod Name                                  Version     
1.    SMF 1.0.19 / 1.1.11 Update    1.0    
2.    Steam Freinds Status Mod    1.0    
3.    SMF Gallery Lite                    2.0.12    
4.    AjaxChat Integration            3.2.1    
5.    SimplePortal                            2.3.1

Could someone plz assist me in this regard.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 06, 2010, 06:15:37 AM
You need to make sure all of the language strings were added to your theme's language files.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: joseflor on March 06, 2010, 06:18:23 AM
Thank you,
How do I do that your I do I see that?

Quote from: SunKing on March 06, 2010, 06:15:37 AM
You need to make sure all of the language strings were added to your theme's language files.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 06, 2010, 06:23:10 AM
Open your default theme's language folder and copy Shout.english.php over to your custom theme's language folder.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: joseflor on March 06, 2010, 06:54:51 AM
It is in the default theme's language folder, see  the image. I use the default theme in my forum. I may not understand it well.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.divshare.com%2Fimg%2F10677157-732.jpg&hash=28d621c010b02fce75cdb3d9d142c141d987a8e9)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 06, 2010, 07:06:51 AM
The only other thing I can think of would be clearing your site's cache from within the admin area. I know sometimes you have to do this to get new language strings to show up by flushing the old ones.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: joseflor on March 06, 2010, 07:10:10 AM
Quote from: SunKing on March 06, 2010, 07:06:51 AM
The only other thing I can think of would be clearing your site's cache from within the admin area. I know sometimes you have to do this to get new language strings to show up by flushing the old ones.
Is it safe to do? Or may I risk to loss anything?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 06, 2010, 07:15:39 AM
Clearing the cache will not harm your site. Everything that is in the cache currently, will be replaced again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: joseflor on March 06, 2010, 07:17:58 AM
I have no cache level. I am going to select it to level one to see.


Later edit:
O SMF não conseguiu detectar nenhum acelerador compatível no seu servidor.
This means that my server does not have any compatible accelerator. More or less this words.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 06, 2010, 07:32:12 AM
You want to go to Admin > Maintenance > Routine > Empty File Cache (or something very similar to that). I am not exactly sure where this can be found in SMF1.1.11.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 06, 2010, 07:34:36 AM
Quote from: Sabre™ on March 05, 2010, 11:32:05 PM
It seems he may be asking you how to also remove the copyright in the chat room...
tsk tsk (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.getsmile.com%2Femoticons%2Fsmileys-91853%2Faiw%2Fnono.gif&hash=5a5f60babeab905d207f63a418c2664b6ff0ddd3)

Ajax is a bad word.
We're all football supporters here in this city and on my site hate Ajax so yes, we would like  to remove any Ajax word even if possible in the root files.
Ajax is just ******, so if it means removing the copyright etc. yes we want it to be gone.
Nothing is worse then the word Ajax.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 06, 2010, 07:44:40 AM
Quote from: RoyalMess on March 06, 2010, 07:34:36 AM
Ajax is a bad word.
We're all football supporters here in this city and on my site hate Ajax so yes, we would like  to remove any Ajax word even if possible in the root files.
Ajax is just ******, so if it means removing the copyright etc. yes we want it to be gone.
Nothing is worse then the word Ajax.

Bad word or not, it's the copyright, which cannot legally be removed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 06, 2010, 08:06:40 AM
Quote from: SunKing on March 06, 2010, 07:44:40 AM
Quote from: RoyalMess on March 06, 2010, 07:34:36 AM
Ajax is a bad word.
We're all football supporters here in this city and on my site hate Ajax so yes, we would like  to remove any Ajax word even if possible in the root files.
Ajax is just ******, so if it means removing the copyright etc. yes we want it to be gone.
Nothing is worse then the word Ajax.

Bad word or not, it's the copyright, which cannot legally be removed.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg706.imageshack.us%2Fimg706%2F9724%2Fnaamloosbbf.jpg&hash=71c9ae862c6006603e50ed92c32cd3f3e625193b)

Blegh ah well i'll just ignore it then :(
As you can see we get a white line at the top when i change the name in the Language File.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hatari on March 06, 2010, 12:10:43 PM
Quote from: SunKing on March 06, 2010, 07:32:12 AM
You want to go to Admin > Maintenance > Routine > Empty File Cache (or something very similar to that). I am not exactly sure where this can be found in SMF1.1.11.

1.1.11 does not have a File cache in maintenance it has

Optimize all tables to improve performance.
Check all files against current versions.
Find and repair any errors.
Recount all forum totals and statistics.
Empty out unimportant logs.
Convert the database and data to UTF-8

Hope that helps SunKing :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 06, 2010, 12:16:22 PM
Thank you very much Hatari! I am spoiled with 2.0 RC2...hehehehe
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Glowbot on March 06, 2010, 01:00:35 PM
 :)
Hi.
I have installed this packages, looked around in all the areas in the admin panel to no avail for ways to enable it (I see shoutbox, but that's it) I can't see and 'permissions' to check like the FAQ says.
I still cannot see a button or get into the chat, or see any change in the forum.

I use smf 1.1.11 and Dilber MC Theme by HarzeM if that makes a difference.

What should I do please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 06, 2010, 01:15:46 PM
The permissions are going to be in the regular SMF permissions area, not a chat admin area. Have you made the manual edits to the template files for DilberMC? The package installer only installs to the default theme, so any .template.php that the mod edits, you'll have to manually make those same edits to the .template.php of your custom theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hatari on March 06, 2010, 01:16:57 PM
Quote from: SunKing on March 06, 2010, 12:16:22 PM
Thank you very much Hatari! I am spoiled with 2.0 RC2...hehehehe

Not had the guts to move to RC2 too worried about problems on the conversion. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Glowbot on March 06, 2010, 04:05:25 PM
Quote from: SunKing on March 06, 2010, 01:15:46 PM
The permissions are going to be in the regular SMF permissions area, not a chat admin area. Have you made the manual edits to the template files for DilberMC? The package installer only installs to the default theme, so any .template.php that the mod edits, you'll have to manually make those same edits to the .template.php of your custom theme.

ah, no I haven't. I am scared to lol. I know that there is something about 'parse' but I don't know how to get into the manual edits for DilberMC... is this in the "current theme" css area?

I switched to the default core theme and it was working btw, so this is probably the problem right?
So, I clicked on the drop down box that said parse for smf 1.1.11... and what do I do now with this stuff? do I post ALL of this into the areas?
I notice it is just for 1.1.11, and nothing to do with DilberMC (my theme) is something else required for a custom theme?

re: the permissions area
there is nothing in this area, members>permissions... what am I supposed to do there?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hatari on March 06, 2010, 04:20:19 PM
Quote from: Glowbot on March 06, 2010, 04:05:25 PM
Quote from: SunKing on March 06, 2010, 01:15:46 PM
The permissions are going to be in the regular SMF permissions area, not a chat admin area. Have you made the manual edits to the template files for DilberMC? The package installer only installs to the default theme, so any .template.php that the mod edits, you'll have to manually make those same edits to the .template.php of your custom theme.

ah, no I haven't. I am scared to lol. I know that there is something about 'parse' but I don't know how to get into the manual edits for DilberMC... is this in the "current theme" css area?

I switched to the default core theme and it was working btw, so this is probably the problem right?
So, I clicked on the drop down box that said parse for smf 1.1.11... and what do I do now with this stuff? do I post ALL of this into the areas?
I notice it is just for 1.1.11, and nothing to do with DilberMC (my theme) is something else required for a custom theme?

re: the permissions area
there is nothing in this area, members>permissions... what am I supposed to do there?

I have found it easier to setup a test forum where I try all the mods and tweaks first, when I am happy with them I move them across to the live Forum. Doing that might make life easier as them if you kill the test forum it does not matter, you just take a step back and have another go. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 06, 2010, 04:20:46 PM
Quote from: RoyalMess on March 06, 2010, 08:06:40 AM
Quote from: SunKing on March 06, 2010, 07:44:40 AM
Quote from: RoyalMess on March 06, 2010, 07:34:36 AM
Ajax is a bad word.
We're all football supporters here in this city and on my site hate Ajax so yes, we would like  to remove any Ajax word even if possible in the root files.
Ajax is just ******, so if it means removing the copyright etc. yes we want it to be gone.
Nothing is worse then the word Ajax.

Bad word or not, it's the copyright, which cannot legally be removed.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg706.imageshack.us%2Fimg706%2F9724%2Fnaamloosbbf.jpg&hash=71c9ae862c6006603e50ed92c32cd3f3e625193b)

Blegh ah well i'll just ignore it then :(
As you can see we get a white line at the top when i change the name in the Language File.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: joseflor on March 06, 2010, 10:34:02 PM
Yes, it has all that and not clean cach. This is one thing I do regularlly
I have onother fórum with no problem for this issue. But the one I am tolking about not only misses the Ajax, it all misses all MODs that I install. AEVA and Admin Notpad are examples.

And about good or bad words, please, those are spoken words and copyrights. Respect it if you want to be respected. Friends, OK?

Quote from: Hatari on March 06, 2010, 12:10:43 PM
Quote from: SunKing on March 06, 2010, 07:32:12 AM
You want to go to Admin > Maintenance > Routine > Empty File Cache (or something very similar to that). I am not exactly sure where this can be found in SMF1.1.11.

1.1.11 does not have a File cache in maintenance it has

Optimize all tables to improve performance.
Check all files against current versions.
Find and repair any errors.
Recount all forum totals and statistics.
Empty out unimportant logs.
Convert the database and data to UTF-8

Hope that helps SunKing :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 07, 2010, 01:57:13 AM
Quote from: SunKing on March 04, 2010, 05:23:59 AM
Quote from: mrtrc266 on July 09, 2009, 12:23:05 AM
That is a known FireFox issue, ATM there I don't know of a fix for it but it only happens when you first type in a message, then it doenst appear again until you logon to your forum again.

SourceForge is current workin on finding a fix for it.

Hey mrtrc bud, any update on this?

I don't believe so, I haven't checked in awhile but will dig around a bit to see what I can find.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 07, 2010, 02:02:56 AM
Quote from: joseflor on March 06, 2010, 06:04:08 AM
My menu is also missed and the Admin area does not show the text for the ajaxchat. See image...
How did you fix this problem

Quote from: BliXem on January 24, 2010, 06:57:37 AM
Hi there, this is really an awesome mod!  I however have a few problems, my Chat button is missing.  I have manually installed the files as required on both my default and custom theme.  The button still wont show in the navigation menu.

I am running smf 1.1.11

Packages installed:

Mod Name                                  Version     
1.    SMF 1.0.19 / 1.1.11 Update    1.0    
2.    Steam Freinds Status Mod    1.0    
3.    SMF Gallery Lite                    2.0.12    
4.    AjaxChat Integration            3.2.1    
5.    SimplePortal                            2.3.1

Could someone plz assist me in this regard.

http://www.simplemachines.org/community/index.php?topic=257973.msg2521125#msg2521125
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 07, 2010, 02:21:37 AM
Have endless pages with this error which is related to this mod.

Apply Filter: Only show the error messages of this URL
http://www.xxxxx/index.php?action=portal;sa=shoutbox;shoutbox_id=1;time=1267944674;xml
Apply Filter: Only show the errors with the same message
8: Undefined index: chat
Apply Filter: Only show the errors from this file
File: /home/xxxxx/public_html/Sources/Subs.php
Line: 4017


3999:     
// Set up the menu privileges.
4000:    
$context['allow_search'] = allowedTo('search_posts');
4001:    
$context['allow_admin'] = allowedTo(array('admin_forum', 'manage_boards', 'sp_admin', 'sp_manage_settings', 'sp_manage_blocks', 'sp_manage_articles', 'sp_manage_pages', 'sp_manage_shoutbox', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_attachments', 'manage_smileys'));
4002:    
$context['usercp_enable'] = !$user_info['is_guest'] && $modSettings['usercp_enable'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups'));
4003:    
$context['allow_edit_profile'] = !$user_info['is_guest'] && !$modSettings['usercp_enable'] && allowedTo(array('profile_view_own', 'profile_view_any', 'profile_identity_own', 'profile_identity_any', 'profile_extra_own', 'profile_extra_any', 'profile_remove_own', 'profile_remove_any', 'moderate_forum', 'manage_membergroups'));
4004:    
$context['allow_memberlist'] = allowedTo('view_mlist');
4005:    
$context['allow_calendar'] = allowedTo('calendar_view') && !empty($modSettings['cal_enabled']);
4006:    
$context['allow_view_treasury'] = allowedTo('view_treasury');
4007:    
$context['allow_admin'] .= allowedTo('admin_treasury');
4008:  Blank Line   
4009:     Blank Line   
$context['allow_view_contact'] = allowedTo('view_contact');
4010:     Blank Line   
4011:    
$context['allow_moderation_center'] = $context['user']['can_mod'];
4012:    
$context['allow_pm'] = allowedTo('pm_read');
4013:     Blank Line   
4014:    
$context['show_mytab'] = allowedTo('user_mytab');
4015:    
4016:    
$num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
==>4017:    
$chatButton = $txt['chat'];
4018:    
$chatButton .= ($num > 0) ?  ('('.$num.')') : '';
4019:    
$chatLink = str_replace("index.php", "chat/index.php", $scripturl);
4020:    
if (!empty($modSettings['chatPopUp']))
4021:    
$chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: joseflor on March 07, 2010, 03:21:06 AM
Thank you
I have that code on my language file (Modifications.portuguese-utf8.php). I also add it to the Modifications.english-utf8.php.
Still not working.
Regards
José


Quote from: mrtrc266 on March 02, 2010, 06:26:50 PM
Seems like a language issue and you probably have you forum set to UTF-8?

Open Themes/default/languages/Modifications.english-utf8.php
Add this to the top right after <?php

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Can shout';
$txt['permissionhelp_shout_access'] = 'Give access to write in shout box.';
$txt['permissionname_shout_view'] = 'View shoutBox';
$txt['permissionhelp_shout_view'] = 'Give access to view the shoutBox';
$txt['permissionname_shout_mod'] = 'Moderate shoutBox';
$txt['permissionhelp_shout_mod'] = 'Give access to moderate the shoutBox.';
$txt['permissionname_chat_mod'] = 'Moderate chat';
$txt['permissionhelp_chat_mod'] = 'Give access to moderate the chat.';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 07, 2010, 10:05:44 AM
@joseflor try renaming Shout.english.php to Shout.portuguese.php or Shout.portuguese-utf8.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 07, 2010, 10:41:46 AM
@ Brack, I've been getting that same error since day 1. Not sure how to get rid of it but it's harmless.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 07, 2010, 10:49:12 AM
Easy solution? Change that line to this:

$chatButton = 'AJAX Chat';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 07, 2010, 10:52:16 AM
Quote from: SunKing on March 07, 2010, 10:49:12 AM
Easy solution? Change that line to this:

$chatButton = 'AJAX Chat';

LOL, tyvm!

Ooops, that also changes the name of the button to AJAX Chat instead of just Chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 07, 2010, 10:58:36 AM
Hey, you can't win them all.  :P

Try changing it to just $chatButton = 'Chat';.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 07, 2010, 11:05:35 AM
Quote from: SunKing on March 07, 2010, 10:58:36 AM
Hey, you can't win them all.  :P

Try changing it to just $chatButton = 'Chat';.


Think I've tried that before, but will change it again and see what happens.

I'll be on your site tonight, have cpl days off and trying to kick the damn flu LOL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 07, 2010, 11:08:36 AM
Yeah. Doing that doesn't fix the problem, so much as it avoids the problem...hehehe

The flu huh? Excuses excuses...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cryingsoul on March 07, 2010, 11:53:50 AM
 "The package you are trying to download or install is either corrupt or not compatible with this version of SMF.  "

I use Forum version: SMF 2.0 RC2..

Trying to install by package installer
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Andrew Evenstar on March 07, 2010, 11:54:42 AM
I have a question. I've already installed ajax chat and the integration.

For some reason when I try to enter the chat, it says:

Error: Invalid channel name: Public

I dont know if I screwed something up in the chat config file.... but it DOES work when I switch the channel to a board forum name.

Can anyone help? Thanks.


Can I just have it where it defaults to login to the name of a forum board?

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: joseflor on March 07, 2010, 06:39:34 PM
Quote from: mrtrc266 on March 07, 2010, 10:05:44 AM
@joseflor try renaming Shout.english.php to Shout.portuguese.php or Shout.portuguese-utf8.php

I've done it. I end up with the three files there, but didn't solve the problem.
This www.ozflor.com/xx/ works fine with it but the www.ozflor.com/xx/ and www.ozflor.com/xx/ does not work. In the last fórum, I have others mods that have the same problem. It seams (in my opinion and I don't understand webmaster nor php) that it is other problem other them Ajax.

Thank you




Later edit:
Problem solved.
I looked the other forum files and I found that the problem was the file name. It is Shout.portuguese_pt-utf8.php to differentiate from the Brazilian language.

Many thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on March 07, 2010, 11:11:13 PM
 Simple fix is to use the mod "load standard language"   this will then show the text for what each check box is for.



Quote from: joseflor on March 06, 2010, 06:04:08 AM
My menu is also missed and the Admin area does not show the text for the ajaxchat. See image...
How did you fix this problem

Quote from: BliXem on January 24, 2010, 06:57:37 AM
Hi there, this is really an awesome mod!  I however have a few problems, my Chat button is missing.  I have manually installed the files as required on both my default and custom theme.  The button still wont show in the navigation menu.

I am running smf 1.1.11

Packages installed:

Mod Name                                  Version     
1.    SMF 1.0.19 / 1.1.11 Update    1.0    
2.    Steam Freinds Status Mod    1.0    
3.    SMF Gallery Lite                    2.0.12    
4.    AjaxChat Integration            3.2.1    
5.    SimplePortal                            2.3.1

Could someone plz assist me in this regard.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on March 07, 2010, 11:13:23 PM
Sorry for the double post, i thought i had seen somewhere but now i cant find it. How would we give chat mod capabilities to individual members?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Diagram on March 07, 2010, 11:15:16 PM
Anyone got modifications for the chat that prevents flooding?
I'm thinking about captcha, or a 60 second automatic ban everytime someone's gives a shout for 3 times with a duration of 1 second per shout (kinda like copy pasting)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 07, 2010, 11:22:58 PM
Quote from: joseflor on March 07, 2010, 06:39:34 PM
Quote from: mrtrc266 on March 07, 2010, 10:05:44 AM
@joseflor try renaming Shout.english.php to Shout.portuguese.php or Shout.portuguese-utf8.php

I've done it. I end up with the three files there, but didn't solve the problem.
This www.ozflor.com/electroforum/ works fine with it but the www.ozflor.com/ep/ and www.ozflor.com/G7Forum/ does not work. In the last fórum, I have others mods that have the same problem. It seams (in my opinion and I don't understand webmaster nor php) that it is other problem other them Ajax.

Thank you




Later edit:
Problem solved.
I looked the other forum files and I found that the problem was the file name. It is Shout.portuguese_pt-utf8.php to differentiate from the Brazilian language.

Many thanks

Glad you got it sorted, enjoy the Mod!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 07, 2010, 11:23:35 PM
Quote from: ErnieB on March 07, 2010, 11:13:23 PM
Sorry for the double post, i thought i had seen somewhere but now i cant find it. How would we give chat mod capabilities to individual members?

in your membergroup permission
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 07, 2010, 11:26:37 PM
Quote from: Diagram on March 07, 2010, 11:15:16 PM
Anyone got modifications for the chat that prevents flooding?
I'm thinking about captcha, or a 60 second automatic ban everytime someone's gives a shout for 3 times with a duration of 1 second per shout (kinda like copy pasting)

chat/lib/config.php

Find
// Defines the max number of messages a user may send per minute:
$config['maxMessageRate'] = 20;


Change 20 to your preference
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 02:34:07 AM
Quote from: cryingsoul on March 07, 2010, 11:53:50 AM
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF.  "

I use Forum version: SMF 2.0 RC2..

Trying to install by package installer

Here is a version ported to RC2
http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on March 08, 2010, 04:07:31 AM
Quote from: mrtrc266 on March 07, 2010, 11:23:35 PM
Quote from: ErnieB on March 07, 2010, 11:13:23 PM
Sorry for the double post, i thought i had seen somewhere but now i cant find it. How would we give chat mod capabilities to individual members?

in your membergroup permission

By default it gives chat mod capabilities to the forum membergroups of global mods and admins. I want to give chat mod capabilities and NOT forum mod abilities to specific members.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on March 08, 2010, 05:04:26 AM
Add more groups, one just for using chat, then give that group to users (users can have multiple groups)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 08, 2010, 08:13:09 AM
Quote from: RoyalMess on March 06, 2010, 04:20:46 PM
Quote from: RoyalMess on March 06, 2010, 08:06:40 AM
Quote from: SunKing on March 06, 2010, 07:44:40 AM
Quote from: RoyalMess on March 06, 2010, 07:34:36 AM
Ajax is a bad word.
We're all football supporters here in this city and on my site hate Ajax so yes, we would like  to remove any Ajax word even if possible in the root files.
Ajax is just ******, so if it means removing the copyright etc. yes we want it to be gone.
Nothing is worse then the word Ajax.

Bad word or not, it's the copyright, which cannot legally be removed.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg706.imageshack.us%2Fimg706%2F9724%2Fnaamloosbbf.jpg&hash=71c9ae862c6006603e50ed92c32cd3f3e625193b)

Blegh ah well i'll just ignore it then :(
As you can see we get a white line at the top when i change the name in the Language File.
Bump?
As you can see we get a white line at the top when i change the name in the Language File.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on March 08, 2010, 10:30:33 AM
I doubt anyone will help you remove the copyright. If you don't like the name use a different chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 10:57:30 AM
Quote from: RoyalMess on March 08, 2010, 08:13:09 AM
Quote from: RoyalMess on March 06, 2010, 04:20:46 PM
Quote from: RoyalMess on March 06, 2010, 08:06:40 AM
Quote from: SunKing on March 06, 2010, 07:44:40 AM
Quote from: RoyalMess on March 06, 2010, 07:34:36 AM
Ajax is a bad word.
We're all football supporters here in this city and on my site hate Ajax so yes, we would like  to remove any Ajax word even if possible in the root files.
Ajax is just ******, so if it means removing the copyright etc. yes we want it to be gone.
Nothing is worse then the word Ajax.

Bad word or not, it's the copyright, which cannot legally be removed.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg706.imageshack.us%2Fimg706%2F9724%2Fnaamloosbbf.jpg&hash=71c9ae862c6006603e50ed92c32cd3f3e625193b)

Blegh ah well i'll just ignore it then :(
As you can see we get a white line at the top when i change the name in the Language File.
Bump?
As you can see we get a white line at the top when i change the name in the Language File.

You can change the portion to the left to whatever you want, the portion (copy rights) to the right you MUST leave there.

To change the header / rename your chat room
http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/1982688

To change the Title of your shoutbox change this in your shout.english.php file to whatever you want it to say.
$txt['shoutBox'] = 'ShoutBox';

There's your help but smp420 said it well, if your forum just can't stand the word "AJAX" then this probably isn't the right chat for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 08, 2010, 11:52:19 AM
I already did that...
I'll quote it again.
This is what happens if i change the name.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg706.imageshack.us%2Fimg706%2F9724%2Fnaamloosbbf.jpg&hash=71c9ae862c6006603e50ed92c32cd3f3e625193b)

Big white bar above the chat.. :|
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 08, 2010, 12:04:29 PM
I registered at your site so I can see what is causing the white bar (waiting on the email now).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 08, 2010, 12:44:38 PM
Thank you Sunking for helping me get rid of the white stripe on top ;)

#content {
margin-top:-30px;
background-color:#2A2A2A;
color:#D4D4D4;

Thats how to fix it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 08, 2010, 12:59:25 PM
Glad I could help. I am currently waiting on a reply over at SourceForge as to whether it would be OK to simply change the name of the copyright so that it no longer has "AJAX" in it. I personally do not see why that would be a problem because the site name and link would all still be there, but it's obviously up to them to decide. I will post the results of that question here as soon as I receive it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 08, 2010, 01:28:03 PM
Quote from: SunKing on March 08, 2010, 12:59:25 PM
Glad I could help. I am currently waiting on a reply over at SourceForge as to whether it would be OK to simply change the name of the copyright so that it no longer has "AJAX" in it. I personally do not see why that would be a problem because the site name and link would all still be there, but it's obviously up to them to decide. I will post the results of that question here as soon as I receive it.

Oke then ;)

By the way does anybody know when someone uses a " or a ' there will be a / or \ infront of it?
And how do i remove the _ in usernames, usually there are spaces but it shows a _ and how do i enable guests to view the chat but not be able to chat?

EDIT: Sun King IE explorers now have their whole Chat like 30 pixels moved upwards, anyway to make like IE users use the old .css style and FF the new one?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 08, 2010, 03:10:49 PM
Something you could try for the IE issue would be to add two more lines to your css:

#content {
margin-top:-30px;
*margin-top:0px;
_margin-top:0px;
background-color:#2A2A2A;
color:#D4D4D4;


The * is for IE7 and the _ for IE6 (I believe). I'm not sure how it affects IE8 or even if there is an issue with IE8, and I have no way of testing IE.

Note: I do not believe the CSS will validate using this, but that's not going to bring a site down.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 08, 2010, 03:21:28 PM
Quote from: SunKing on March 08, 2010, 03:10:49 PM
Something you could try for the IE issue would be to add two more lines to your css:

#content {
margin-top:-30px;
*margin-top:0px;
_margin-top:0px;
background-color:#2A2A2A;
color:#D4D4D4;


The * is for IE7 and the _ for IE6 (I believe). I'm not sure how it affects IE8 or even if there is an issue with IE8, and I have no way of testing IE.

Note: I do not believe the CSS will validate using this, but that's not going to bring a site down.

Well i have IE8 and for me it showed the site was scrolled upwards like 30 pixels but you couldn't scroll down now its fixed ;)
Hopefully the IE6/7 users can see the chat normally as well, thanks ;)
If someone uses IE6/7 can you please check out my site: www.topsportleeuwarden.nl and click on Chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 03:45:11 PM
QuoteBy the way does anybody know when someone uses a " or a ' there will be a / or \ infront of it?

This might help
http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2774612 (http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2774612)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 08, 2010, 04:18:11 PM
Quote from: mrtrc266 on March 08, 2010, 03:45:11 PM
QuoteBy the way does anybody know when someone uses a " or a ' there will be a / or \ infront of it?

This might help
http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2774612 (http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2774612)

I use PLESK as a CPanel of my Webserver and i don't know where to find such a option :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 04:22:20 PM
Quote from: RoyalMess on March 08, 2010, 04:18:11 PM
Quote from: mrtrc266 on March 08, 2010, 03:45:11 PM
QuoteBy the way does anybody know when someone uses a " or a ' there will be a / or \ infront of it?

This might help
http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2774612 (http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2774612)

I use PLESK as a CPanel of my Webserver and i don't know where to find such a option :(

Ok there was another fix by editing a file, I'll see if I can dig it up
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on March 08, 2010, 04:50:36 PM
In AJAXChat.php find if(get_magic_quotes_gpc()) { change this to if(true) {
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 05:38:36 PM
Cool, ty smp420
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: navjotjsingh on March 08, 2010, 08:54:30 PM
Will anybody update it for 2.0 RC3?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 09:02:59 PM
Quote from: navjotjsingh on March 08, 2010, 08:54:30 PM
Will anybody update it for 2.0 RC3?

Updated to RC3

Curve Friendly (thanks to SunKing's TalkBox Layout (http://www.empireofthesun.net/forum/index.php?topic=5583.0))
Connection Status 0 error will not appear
The dateTime field of ajax_chat_messages has already been change to timestamp for SunKings Post Notification Tweak (http://www.simplemachines.org/community/index.php?topic=257973.msg2067337#msg2067337)

Package updated to fix the menu button not installing, ty smp420
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: navjotjsingh on March 08, 2010, 09:08:36 PM
You rock. :)) That was fast and awesome.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 09:15:11 PM
Quote from: navjotjsingh on March 08, 2010, 09:08:36 PM
You rock. :)) That was fast and awesome.

Let me know how it goes, I only tested on a local test site.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: navjotjsingh on March 08, 2010, 09:23:03 PM
Sure I will test soon. Just waiting for other mods also to follow suit.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MCK on March 08, 2010, 10:01:48 PM
Great job!!! It is working well. I seem to have lost the top menu link to Chat though. Not sure if that is a settings issue.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 10:51:14 PM
Quote from: MCK on March 08, 2010, 10:01:48 PM
Great job!!! It is working well. I seem to have lost the top menu link to Chat though. Not sure if that is a settings issue.

It worked like a charm on my test site, let me know if you have probs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MCK on March 08, 2010, 11:00:24 PM
Works like a charm on my side too. Only problem is that I don't see the link to Chat as a popup window on the top menu in SMF. Shoutbox works well.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 11:10:23 PM
Quote from: MCK on March 08, 2010, 11:00:24 PM
Works like a charm on my side too. Only problem is that I don't see the link to Chat as a popup window on the top menu in SMF. Shoutbox works well.

Link to your site please? PM if you don't want it public.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MCK on March 08, 2010, 11:25:29 PM
Here its. You've helped me couple times in the past! http://www.futureguitarnow.com/forum/index.php

Thanks once again
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on March 08, 2010, 11:28:51 PM
Good job mrtrc266 and SunKing the shoutbox really matches curve alot better now. MCK attach your Subs.php file from the sources folder.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 11:30:33 PM
Quote from: MCK on March 08, 2010, 11:25:29 PM
Here its. You've helped me couple times in the past! http://www.futureguitarnow.com/forum/index.php (http://www.futureguitarnow.com/forum/index.php)

Thanks once again

Hmm, did you get a error on the install?

attach you /Sources/Subs.php file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 11:31:32 PM
LOL, no lack of support here
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MCK on March 08, 2010, 11:33:44 PM
Thanks guys! You are simply amazing. Here's the subs.php. Also attaching subs.php~ which was in there. Perhaps its existence will tell you something. I did not get an error while installing. Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on March 08, 2010, 11:38:15 PM
Try this let me know if you want the button somewhere else on the menu

Quote from: mrtrc266 on March 08, 2010, 11:31:32 PM
LOL, no lack of support here
There is from the mod author.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 11:43:33 PM
Quote from: smp420 on March 08, 2010, 11:38:15 PM
Try this let me know if you want the button somewhere else on the menu

Quote from: mrtrc266 on March 08, 2010, 11:31:32 PM
LOL, no lack of support here
There is from the mod author.
You can say that again LOL

That's odd that it didn't install the button the operation is in the install_2.xml file
<operation>
<search position="before"><![CDATA[ 'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
'is_last' => true,
),
),
),]></search>
<add><![CDATA[
'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),]]></add>
</operation>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MCK on March 08, 2010, 11:44:17 PM
Super! That did it. Thank you very much! So what caused it? Something I need to watchout for each time I upgrade? Permissions on the file were 644 I think. Can that be the reason for not being updated?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on March 08, 2010, 11:47:14 PM
Quote from: mrtrc266 on March 08, 2010, 11:43:33 PM
Quote from: smp420 on March 08, 2010, 11:38:15 PM
Try this let me know if you want the button somewhere else on the menu

Quote from: mrtrc266 on March 08, 2010, 11:31:32 PM
LOL, no lack of support here
There is from the mod author.
You can say that again LOL

That's odd that it didn't install the button the operation is in the install_2.xml file
<operation>
<search position="before"><![CDATA[ 'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
'is_last' => true,
),
),
), here-> ]></search>
<add><![CDATA[
'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),]]></add>
</operation>

Missing a ] see above.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 08, 2010, 11:54:29 PM
LMAO, didn't even notice it missing on my test site, ty...package updated
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on March 08, 2010, 11:56:08 PM
No problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MCK on March 08, 2010, 11:56:49 PM
Great! So it wasn't something I did eh? For a change that feels good! Usually I make a fine mess ;D Thanks once again for all the help as well as the great mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: parvaz on March 09, 2010, 01:20:02 PM
Salam guys. I just installed the brand new update of Ajaxchat on a test site. the installation process went smooth. permissions are all set. But there happens nothing! when i open the chat and i write a PM there comes nothing. i dont know what i did wrong. but it is very important for me and my people in Iran to get this mod work. for us, in the time of heavy censorship and massive repression it becomes more than just a "chat". because all we have right now is citizen journalism. this mod can provide us with a kind of real time report of whats going on in the country. finally it doesnt matter if it functions for me and my community or not, because i know it does for others, so i just want to thank all of you guys, who develope this mod and give support. you did something for freedom. even if it was not your intention.
but after all...i need this damn mod. and i need it badly.
I'll appreciate any help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 09, 2010, 01:26:16 PM
Hit the FAQ's link in my signature, the fix for your problem should be posted there. If not report back here and we can take a look.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: parvaz on March 09, 2010, 02:09:18 PM
before i came here to cry for help, i've searched for a solution in almost the entire site. I had the same problem with smf 1.1.11 and the earlier version of Ajaxchat. SunKing had an Error: Connection status: 0, which i have not but everything else is the same: i have a blank shoutbox and chat room. anyway i checked if there is a htaccess file in the same directory as the ssi.php at the root should be, but there is not. I must confess although i went through all docs and posts here, i could not understand everything (lack of knowledg). 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 09, 2010, 02:18:04 PM
I have installed an extended version of SunKing's Post Notification tweak for SMF 1.1.X and I have smf version 1.1.11.
I have done every needed changes to sources/post.php , modification.english.php and my own language modification.finnish.php

It´s not working.

Only task I didn´t understand is (and I think I should do) :
"The dateTime field of ajax_chat_messages needs the type changed to timestamp"
Where is ajax_chat_messages -file?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 09, 2010, 02:28:33 PM
Quote from: jarska on March 09, 2010, 02:18:04 PM
I have installed an extended version of SunKing's Post Notification tweak for SMF 1.1.X and I have smf version 1.1.11.
I have done every needed changes to sources/post.php , modification.english.php and my own language modification.finnish.php

It´s not working.

Only task I didn´t understand is (and I think I should do) :
"The dateTime field of ajax_chat_messages needs the type changed to timestamp"
Where is ajax_chat_messages -file?

You need to goto you your database using phpMyAdmin and change the ajaxchat_messages table from DATETIME to TIMESTAMP

When you see the table, click on it, then hit the lil' pencil image to edit it, the you'll see the pull down menu to change it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JMarsden92 on March 09, 2010, 02:46:05 PM
I installed this, and want to know a few things...
I don't get a popup window.
It connects I think, but nothing shows up.
How do I get a button in the menu...

here is the site...
http://forums.myblogshome.com
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 09, 2010, 02:48:01 PM
Quote from: parvaz on March 09, 2010, 02:09:18 PM
before i came here to cry for help, i've searched for a solution in almost the entire site. I had the same problem with smf 1.1.11 and the earlier version of Ajaxchat. SunKing had an Error: Connection status: 0, which i have not but everything else is the same: i have a blank shoutbox and chat room. anyway i checked if there is a htaccess file in the same directory as the ssi.php at the root should be, but there is not. I must confess although i went through all docs and posts here, i could not understand everything (lack of knowledg).

Welcome to SMF!

If you do not already have an .htaccess in the same folder as the SSI.php, you can add one. Make a simple text file called file.htaccess and open it with notepad. Add the changes to the very top of it as described in the Connection status: 0 details. Upload that file to the server to the same folder as SSI.php and then rename it to .htaccess by removing the "file" part of the name.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 09, 2010, 02:50:06 PM
Quote from: JMarsden92 on March 09, 2010, 02:46:05 PM
I installed this, and want to know a few things...
I don't get a popup window.
It wont connect. Error Connection Status 500
How do I get a button in the menu...

here is the site...
http://forums.myblogshome.com

You have the button there, just no text on it. I think all of your problems lie in file/folder permissions (chmod). The files need to be set to 644 and the folders to 755.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JMarsden92 on March 09, 2010, 02:53:31 PM
I checked...
the 2 index.php files are set to 644
the 2 folders are set to 755
I am getting a
Notice: Undefined index: ss_chat in /home/myblogs4/public_html/forums.myblogshome.com/Sources/Subs.php on line 3883
when i click the button with no name on it.
i think i see it, but how do i put a name on it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 09, 2010, 02:58:38 PM
Quote from: JMarsden92 on March 09, 2010, 02:53:31 PM
I checked...
the 2 index.php files are set to 644
the 2 folders are set to 755
I am getting a
Notice: Undefined index: ss_chat in /home/myblogs4/public_html/forums.myblogshome.com/Sources/Subs.php on line 3883
when i click the button with no name on it.
i think i see it, but how do i put a name on it?

Actually I believe that the 2 index.php files need to be 755

QuoteFor AJAX Chat Intergration Version 3 "Folders" be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 09, 2010, 03:00:37 PM
Having no name on it is a language file issue. You can quick fix that by opening Subs.php and finding 'title' => $chatButton, and changing it to 'title' => 'Chat', and as for the file permissions, as mrtrc has just pointed out (and I always forget), the index.php files need to be 755. ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 09, 2010, 03:02:10 PM
Quote from: mrtrc266 on March 09, 2010, 02:28:33 PM
Quote from: jarska on March 09, 2010, 02:18:04 PM
I have installed an extended version of SunKing's Post Notification tweak for SMF 1.1.X and I have smf version 1.1.11.
I have done every needed changes to sources/post.php , modification.english.php and my own language modification.finnish.php

It´s not working.

Only task I didn´t understand is (and I think I should do) :
"The dateTime field of ajax_chat_messages needs the type changed to timestamp"
Where is ajax_chat_messages -file?

You need to goto you your database using phpMyAdmin and change the ajaxchat_messages table from DATETIME to TIMESTAMP

When you see the table, click on it, then hit the lil' pencil image to edit it, the you'll see the pull down menu to change it.

Now it´s working, thank you very much!  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 09, 2010, 03:04:46 PM
You're welcome, enjoy the mod!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JMarsden92 on March 09, 2010, 03:16:09 PM
OK...the folders and index.php files are all 755.
I still see nothing when i go to the site...
I did get the button fixed...tia.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 09, 2010, 03:18:55 PM
Quote from: JMarsden92 on March 09, 2010, 03:16:09 PM
OK...the folders and index.php files are all 755.
I still see nothing when i go to the site...
I did get the button fixed...tia.

What's the url to your site? PM if you don't want it public.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 09, 2010, 03:20:14 PM
Can you attach your Subs.php? I have registered at your site and see an error in the chat window.

EDIT: You may also want to check the permissions for your membergroups within the admin area.

EDIT2: I see you have fixed the Subs.php error. ;) Now you just need to set permissions to allow membergroups to view the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JMarsden92 on March 09, 2010, 03:37:34 PM
I got it...found all the problems...
the error was from a chat program that never worked, and didn't fully remove when i installed this.

you guys are great here, and the mods, and forums are great.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 09, 2010, 03:40:43 PM
SunKing (http://www.simplemachines.org/community/index.php?action=profile;u=82405) says "Glad you got it sorted! Enjoy the Mod!"  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 09, 2010, 03:50:50 PM
Glad it's fixed. Enjoy!

[mumble]someone keeps stealing my lines....[/mumble]

;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 09, 2010, 03:59:10 PM
Read again, I was just saying it for you  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 09, 2010, 04:16:39 PM
/me ignores the "Last edit..."

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kerbob on March 10, 2010, 02:46:35 AM
Thank you thank you thank you!!  I upgraded to RC3 and THEN found out the official version is no longer being updated.  I remembered this forum from when I was on RC2 and luckily.. you guys are on TOP OF IT!!!!11  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: parvaz on March 10, 2010, 05:41:11 AM
Thank you SunKing for your help. But it's still not working. I made the .htaccess file with the addition RewriteRule ^chat/?$ ./chat/index.php [L,QSA] and uploaded it. the permission is on 755.
it is still blank and nothing has changed.
I really have no idea why it doesnt function :-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 10, 2010, 05:45:12 AM
The permissions need to be set as follows:

All Folders need to be set at 755.
All files need to be set at 644.*

*The index.php from both the chat folder and the shoutBox folder need to be set at 755.

Also, can you post or PM a link to your site so that I can take a look at it please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 10, 2010, 05:54:55 AM
Quote from: mrtrc266 on March 09, 2010, 02:28:33 PM
Quote from: jarska on March 09, 2010, 02:18:04 PM
I have installed an extended version of SunKing's Post Notification tweak for SMF 1.1.X and I have smf version 1.1.11.
I have done every needed changes to sources/post.php , modification.english.php and my own language modification.finnish.php

It´s not working.

Only task I didn´t understand is (and I think I should do) :
"The dateTime field of ajax_chat_messages needs the type changed to timestamp"
Where is ajax_chat_messages -file?

You need to goto you your database using phpMyAdmin and change the ajaxchat_messages table from DATETIME to TIMESTAMP

When you see the table, click on it, then hit the lil' pencil image to edit it, the you'll see the pull down menu to change it.

This is an excellent mod, thank's
But I still wandering, could that notifier appear somewhere else than between the lines in chat room, is it possible to do? :-[(I dont know where, pop up window or something like that)
Sorry my bad english, if you still understand what I mean?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 10, 2010, 06:07:24 AM
@parvaz

I'm on my way.  ;D

@jarska

It could be done that way but not very easily, at least not with my limited knowledge. The way that the notifier works is it simply makes a post, just as you would, every time the "requirements" of that notification are met. There might be a fairly simple way of turning the notifications into popups using javascript, but that would have to be left for someone else to do. As I type this, I think I can make them appear elsewhere (though not a popup). I am upgrading my site to RC3 currently (woohoo) but i'll look into this for you in the next day or two.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 10, 2010, 06:45:35 AM
Okei SunKing, I tried to study english in the meantime. ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: More-to-life on March 10, 2010, 10:53:18 AM
Just a heads up Ive just installed this mod after upgrading to RC3 & for some reason all when well except when I entered chat I could not post Ive had this problem before so when straight to the  .htaccess file & spotted for some reason it never installed this line.

RewriteRule ^chat/?$ ./chat/index.php [L,QSA] so copied it from my backup file & everythings OK

As I say just a heads up to save members time if they have the same problem (P.S I did install pretty URLs before this mod)

Thanks Guys
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 10, 2010, 10:57:57 AM
Thank you for the heads up! I don't believe the mod installs that line by default. I think it's a tweak added after the mod has been installed. Good to know it works on RC3 though.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tanyril on March 10, 2010, 11:44:45 AM
Can anyone help me make a change?

I need to make it so that when a user closes the window they are logged out of the chat room.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 10, 2010, 07:01:34 PM
http://venatusdefero.net/index.php?page=chat

The chat won't let you login/logout anymore and it doesn't display any text in it :(
Does anybody know why?

EDIT: Fixed it it was that Connection Error 0

By the way i forgot how to remove the _ between names, anyway to make them spaces again instead of _?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hvyhitter on March 10, 2010, 09:09:44 PM
Quote from: tanyril on March 10, 2010, 11:44:45 AM
Can anyone help me make a change?

I need to make it so that when a user closes the window they are logged out of the chat room.

and they are sent back to the forum home page automatically? I am looking for the EXACT same thing but I am going to go back about 20 pages in this thread starting from here. I imagine the answer is somewhere in there because that HAS to be a VERY common request I will post a link to the actual post if I find it. I cant really get searches in and SMF board to work right.. I love it.. but that is a big issue.. whatever.. not enough to switch to an inferior product.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hvyhitter on March 10, 2010, 09:13:43 PM
hahaha took me literally 3 seconds to find it.. I clicked the link under mrtrc266 signature the FAQ one.

it led me to.


"Redirect the Logout back to your forum when you log out of the Chat Room"


ROFL
FAQ FTW!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 10, 2010, 09:20:09 PM
LOL hvyhitter, you'd be surprised at how many people refuse to read the manual....

Glad it's sorted for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 11, 2010, 01:23:41 AM
Glad you found it so quick hvyhitter

Wish more people would read the....

~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Posted on the Mods Download Page LOL

This thread would only be about 50 pages instead of 270 if more people would read it like you did.. thank you!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Diagram on March 11, 2010, 03:17:24 AM
Quote from: mrtrc266 on March 11, 2010, 01:23:41 AM
This thread would only be about 50 pages instead of 270 if more people would read it like you did.. thank you!
Don't be like that, if the thread has 270 pages then people use this mod a lot  :P

By the way another question, since my hosting provider talks much about this high CPU load when someone abused the chatbox..

Is there some way I can move the chatbox files into another place, and link it to my forum?
Let's say my forum's in A, and my chat and shoutbox files are in B. What codes must I change, add, or subtract on the config files and else?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 11, 2010, 07:07:27 AM
On another forum i run i have the same issue with the spaces in users names and i forgot how to fix it...
So how do i remove the _ and replace them with Spaces again?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hvyhitter on March 11, 2010, 07:18:35 AM
Quote from: mrtrc266 on March 11, 2010, 01:23:41 AM
Glad you found it so quick hvyhitter

Wish more people would read the....

~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Posted on the Mods Download Page LOL

This thread would only be about 50 pages instead of 270 if more people would read it like you did.. thank you!


The FAQ is good.. I found one thing that I had to do to get the new posts to work the table was of course named something funky. 'ajax_chat_messages isnt what mine was called mine was called

mydbname_ajaxchat_messages

the template threw an error when I posted a new post. I looked at the error said.. lets look at the table..

well look at that.. it isnt CALLED ajax_chat_messages

it is called
mydbname_ajaxchat_messages
so yeah fixed that in the 2 places it was referenced and shazam it worked.

thing is.. I like the mod.. but I wonder if these two things are possible.

1. I have a secret area of the forum where my wife and I post :) (muhahah yes) and if I post a in a topic in there it posts THAT in the shoutbox..
also admin areas those ALSO are shown there as well. So if an admin on my forum posts "This user is being a complete pain my @#$%" well that is in the shoutbox.

So that being said.. is there a way to limit that. (I Have NOT searched yet (the whole 270 oages but I did look at the FAQ as you well know)

also is there way just to post NEW topics? not new posts in any topic.

I will accept the answer of "Those are in the faq" or "they are in the 270 pages" to which I will happliy go off in search of.

Ajaxchat is so powerful I love it. once I extended my shoutbox to show the last 150 messages things started working as I liked.

:D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hvyhitter on March 11, 2010, 07:21:37 AM
In the FAQ the link to

General Modifications

that points to

http://sourceforge.net/docman/?group_id=214758

see I WAS looking deep :D


Comes up with

404 Error – Page Not Found

We apologize. The page you were looking for cannot be found. You may want to try one of the options listed below.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 11, 2010, 07:31:57 AM
Quote from: hvyhitter on March 11, 2010, 07:18:35 AM
I have a secret area of the forum where my wife and I post :) (muhahah yes) and if I post a in a topic in there it posts THAT in the shoutbox..
also admin areas those ALSO are shown there as well. So if an admin on my forum posts "This user is being a complete pain my @#$%" well that is in the shoutbox.

So that being said.. is there a way to limit that. (I Have NOT searched yet (the whole 270 oages but I did look at the FAQ as you well know)

also is there way just to post NEW topics? not new posts in any topic.

Yes, and yes.

To prevent certain boards from having notifications, wrap the entire notification code in an if statement like:    if(!in_array($board, array(1,2,3))) {

NOTIFICATION CODE

}


where 1, 2 and 3 are the board IDs you want to ignore. You can have as many of these as you want.

To prevent the new replies notifications, simple remove the SECOND block of notification code.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 11, 2010, 10:09:34 AM
Quote from: hvyhitter on March 11, 2010, 07:21:37 AM
In the FAQ the link to

General Modifications

that points to

http://sourceforge.net/docman/?group_id=214758

see I WAS looking deep :D


Comes up with

404 Error – Page Not Found

We apologize. The page you were looking for cannot be found. You may want to try one of the options listed below.

Thank you for pointing that out Link removed

SourceForge changed quite a few things around since I posted that. They now have everything on the Wiki's Home Page. The content of that broken link has been moved to  HERE (http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=General_Modifications)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: parvaz on March 11, 2010, 10:34:36 AM
Dear SunKing, i'm lost in joy... :D it works now!
Nothing was wrong with the mod or the way i installed it. it was just the host provider!
Thank you, thank you, thank you!
i tried the installation on another host provider and it was so easy as it should be:
uploaded the mod
installed it
used it!
just like this
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 11, 2010, 10:48:20 AM
Very glad it's all sorted now. Enjoy the mod!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimnix on March 11, 2010, 10:56:12 AM
So this works for RC3 now?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 11, 2010, 10:58:15 AM
Quote from: Westlund on March 11, 2010, 10:56:12 AM
So this works for RC3 now?

Hit the link in my Signature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimnix on March 11, 2010, 11:19:25 AM
Quote from: mrtrc266 on March 11, 2010, 10:58:15 AM
Quote from: Westlund on March 11, 2010, 10:56:12 AM
So this works for RC3 now?

Hit the link in my Signature.

Much lub to you. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on March 11, 2010, 11:23:02 AM
mrtrc266: I think you should ask the Cust Team and the mod's original author to be listed as an additional author on the mod's page, that way you'd be able to get the package files updated on the mod's own page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 11, 2010, 11:29:20 AM
+1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kerbob on March 11, 2010, 01:08:04 PM
I'm getting a lot of errors in my error log after installation on RC3.  Is this a simple one?

Example below:

   Guest
66.249.71.27   
    Today at 12:27:14 PM
63b5c7a8acf151067e204a8c63724223
Type of error: Undefined 
http://www.westknoxrc.com/index.php?topic=75.0;wap28: Undefined index: chatFile: /homepages/7/d289446499/htdocs/Sources/Subs.php
Line: 3898 
   Guest
65.55.51.15   
    Today at 12:18:26 PM
680c5f0642fe37b1823ca8aa494db4b3
Type of error: Undefined 
http://www.westknoxrc.com/index.php?topic=678.0;wap8: Undefined index: chatFile: /homepages/7/d289446499/htdocs/Sources/Subs.php
Line: 3898 
   Guest
65.55.51.15   
    Today at 12:18:25 PM
73783d98ca17a5b39d6541edb1398c4a
Type of error: Undefined 
http://www.westknoxrc.com/index.php?action=profile;u=5;area=showposts;wap;start=208: Undefined index: chatFile: /homepages/7/d289446499/htdocs/Sources/Subs.php
Line: 3898 
   Guest
65.55.51.15   
    Today at 12:18:25 PM
51a5b8658698fd6c0c110d2d9eb8190a
Type of error: Undefined 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimnix on March 11, 2010, 01:31:33 PM
I don't find any settings for AjaxChat Integration on the RC3 fix.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 11, 2010, 04:05:39 PM
Hello again,

I have one seacret area for administrators and I don´t want to have the notifier to post new message information from that area.

How do I stop the notifier action with that area only?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 11, 2010, 05:01:31 PM
@jarska

Quote from: SunKing on March 11, 2010, 07:31:57 AM
Quote from: hvyhitter on March 11, 2010, 07:18:35 AM
I have a secret area of the forum where my wife and I post :) (muhahah yes) and if I post a in a topic in there it posts THAT in the shoutbox..
also admin areas those ALSO are shown there as well. So if an admin on my forum posts "This user is being a complete pain my @#$%" well that is in the shoutbox.

So that being said.. is there a way to limit that. (I Have NOT searched yet (the whole 270 oages but I did look at the FAQ as you well know)

also is there way just to post NEW topics? not new posts in any topic.

Yes, and yes.

To prevent certain boards from having notifications, wrap the entire notification code in an if statement like:    if(!in_array($board, array(1,2,3))) {

NOTIFICATION CODE

}


where 1, 2 and 3 are the board IDs you want to ignore. You can have as many of these as you want.

To prevent the new replies notifications, simple remove the SECOND block of notification code.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 11, 2010, 05:40:27 PM
Quote from: SunKing on March 11, 2010, 05:01:31 PM
@jarska

Quote from: SunKing on March 11, 2010, 07:31:57 AM
Quote from: hvyhitter on March 11, 2010, 07:18:35 AM
I have a secret area of the forum where my wife and I post :) (muhahah yes) and if I post a in a topic in there it posts THAT in the shoutbox..
also admin areas those ALSO are shown there as well. So if an admin on my forum posts "This user is being a complete pain my @#$%" well that is in the shoutbox.

So that being said.. is there a way to limit that. (I Have NOT searched yet (the whole 270 oages but I did look at the FAQ as you well know)

also is there way just to post NEW topics? not new posts in any topic.

Yes, and yes.

To prevent certain boards from having notifications, wrap the entire notification code in an if statement like:    if(!in_array($board, array(1,2,3))) {

NOTIFICATION CODE

}


where 1, 2 and 3 are the board IDs you want to ignore. You can have as many of these as you want.

To prevent the new replies notifications, simple remove the SECOND block of notification code.

I read that, but didn,t understand where is that code and what to do, replace something or what, sorry? :-[
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 11, 2010, 06:16:14 PM
Attach your Post.php along with the IDs of the boards you wish to ignore.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Andrew Evenstar on March 11, 2010, 11:31:37 PM
Quote from: Andrew Evenstar on March 07, 2010, 11:54:42 AM
I have a question. I've already installed ajax chat and the integration.

For some reason when I try to enter the chat, it says:

Error: Invalid channel name: Public

I dont know if I screwed something up in the chat config file.... but it DOES work when I switch the channel to a board forum name.

Can anyone help? Thanks.


Can I just have it where it defaults to login to the name of a forum board?

Thanks.


edit: i think i got it working for now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: beau1943 on March 12, 2010, 12:10:20 AM
Hello I am having a problem with this chat mod..... it will not recognize the user chat even when signed in to the forum.  I don't get any error messages.......I have 1.1.11 ......strange.......the popup window opens and the bbc appears but it does not allow you to post or recognize you entered chat.........my site url is

http://usworldforum.com

Any help would be appreciated.........

thanks....Beau



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 12, 2010, 12:12:52 AM
Quote from: beau1943 on March 12, 2010, 12:10:20 AM
Hello I am having a problem with this chat mod..... it will not recognize the user chat even when signed in to the forum.  I don't get any error messages.......I have 1.1.11 ......strange.......the popup window opens and the bbc appears but it does not allow you to post or recognize you entered chat.........my site url is

http://usworldforum.com

Any help would be appreciated.........

thanks....Beau

Your link showed a server not found error




Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 12, 2010, 12:44:51 AM
Quote from: beau1943 on March 12, 2010, 12:10:20 AM
Hello I am having a problem with this chat mod..... it will not recognize the user chat even when signed in to the forum.  I don't get any error messages.......I have 1.1.11 ......strange.......the popup window opens and the bbc appears but it does not allow you to post or recognize you entered chat.........my site url is

http://usworldforum.com

Any help would be appreciated.........

thanks....Beau

The link to your site is dead, please hit the link in my signature you should find the solution to your problem there. If not post back with a screen shot of what the the problem looks like plus a list of Mods. If you have Pretty URLs installed this should fix it.....
http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 12, 2010, 12:54:47 AM
Quote from: Arantor on March 11, 2010, 11:23:02 AM
mrtrc266: I think you should ask the Cust Team and the mod's original author to be listed as an additional author on the mod's page, that way you'd be able to get the package files updated on the mod's own page.

Quote from: SunKing on March 11, 2010, 11:29:20 AM
+1

That's a great idea, I've PM'd the author a cpl time over the last several months regarding other issues / requests but I've never received a response. I'm not a coder by any means but I have figured this damn chat out like the back of my hand with the help of the community.  Of course SunKing would be a great addition as well, he's the guru when it comes to the technical stuff and has supported this Mod very extensively. I couldn't do it without him.

It would be great to have the ability to update the packages and information provided by the community on the Mods Homepage. I'll try again to contact the Mod Author and see what we can do to keep this awesome Mod alive and well.

Thank you for the suggestion.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 12, 2010, 12:58:40 AM
Quote from: Westlund on March 11, 2010, 01:31:33 PM
I don't find any settings for AjaxChat Integration on the RC3 fix.

Admin/Modification Settings/Chat

or

www.yourforum/index.php?action=admin;area=modsettings;sa=chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 12, 2010, 01:00:05 AM
Contacting the mod author? Good luck.

+1 on the author addition by the way.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 12, 2010, 01:02:29 AM
@ kerbob

I've never seen that error before but it looks like the error is being thrown from a mobile user. I will have to dig some or better yet hopefully SunKing knows off the top of his head  ;)

Will get back to you though.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ThomasLindgren on March 12, 2010, 01:45:07 AM
Have installed AjaxChat Integration 3.2.1 to my new SMF forum. The problem is that nothing happens. They install okay but no button or chats show up. What can be wrong? I'm using SMF 1.1.11. Do I have to activate it in some way?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 12, 2010, 01:56:00 AM
Quote from: ThomasLindgren on March 12, 2010, 01:45:07 AM
Have installed AjaxChat Integration 3.2.1 to my new SMF forum. The problem is that nothing happens. They install okay but no button or chats show up. What can be wrong? I'm using SMF 1.1.11. Do I have to activate it in some way?

Please hit the link in my signature you should find the solution to your problem there. If not post back with a screen shot of what the the problem looks like plus a link to your site and a list of Mods. If you have Pretty URLs installed this should fix it.....
http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 12, 2010, 02:08:10 AM
Quote from: SunKing on March 11, 2010, 06:16:14 PM
Attach your Post.php along with the IDs of the boards you wish to ignore.

I am truly sorry -  I just don´t get it.
When I did this, the whole screen was empty.
So I thought it was my mistake: I wrote
if(!in_array($board, array(3))) {
before the notification code

and then I put
}
after the notification code.
Not working that way.

Second time I put this code(starting if) to different spot of the code,
then it stopped all the notifications from all boards.

Third time I couldn´t write to forum  :)
And so on.

Here is my notification code from my post.php
Could you please show me exact place...  *blushing*



// ***** Ajax Chat New Topic Notification *****
      {
      notifyMembersBoard();

global $user_info, $board, $scripturl, $boardName, $topic;
         
    db_query("INSERT INTO `smf_ajaxchat_messages` (`userID` ,`userName` ,`userRole` ,`channel` ,`ip` ,`text`)
         VALUES (".$posterOptions['id']." , '".$txt['chatbot_name']."' , 4 , 0 , '".$posterOptions['ip']."', '".$user_info['name']." " . $txt['chatbot_msg_new_topic'] . " ".html_entity_decode($_POST['subject'])." (http://".$scripturl%20.%20"?topic="%20.%20$topic%20.%20".new#new".")[/b][/color]')", __FILE__, __LINE__);
  }         

// ******* End Ajax Chat New Topic Notification *******
   
   elseif (empty($_REQUEST['msg']))
             
// ****** Ajax Chat New Reply Notification ******
{
sendNotifications($topic, 'reply');

global $user_info, $board, $scripturl, $boardName, $topic;
    db_query("INSERT INTO `smf_ajaxchat_messages` (`userID` ,`userName` ,`userRole` ,`channel` ,`ip` ,`text`)
       VALUES (".$posterOptions['id']." , '".$txt['chatbot_name']."' , 4 , 0 , '".$posterOptions['ip']."', '".$user_info['name']." " . $txt['chatbot_msg_new_reply'] . " ".html_entity_decode($_POST['subject'])." (http://".$scripturl%20.%20"?topic="%20.%20$topic%20.%20".new;topicseen#new".")[/b][/color]')", __FILE__, __LINE__);
     }
// ***** End Ajax Chat New Reply Notification
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ThomasLindgren on March 12, 2010, 02:25:49 AM
Quote from: mrtrc266 on March 12, 2010, 01:56:00 AM
Please hit the link in my signature you should find the solution to your problem there. If not post back with a screen shot of what the the problem looks like plus a link to your site and a list of Mods. If you have Pretty URLs installed this should fix it.....
http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)
I have just installed AjaxChat and Table from CSV through Admin-->Packages. Everything installs fine but there's absolutely no difference after installning them. Have not installed anything else than these. I was under the impression that I just had to install them and then they would be working straight away, seems I was wrong.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShadoWind on March 12, 2010, 06:50:24 AM
I'm having a problem in that I've tried to install this Mod on a 1.1.11-based forum and it won't work as I'm getting the
following error:

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./Sources/BoardIndex.php Test successful
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/ManagePermissions.php Test successful
4. Execute Modification ./Sources/ModSettings.php Test successful
5. Execute Modification ./SSI.php Test successful
6. Execute Modification ./Themes/default/BoardIndex.template.php Test successful
7. Execute Modification ./Themes/default/index.template.php Test failed
8. Execute Modification ./Themes/default/languages/Help.english.php Test successful
9. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
10. Execute Modification ./Themes/default/languages/Help.persian.php Skipping file
11. Execute Modification ./Themes/default/languages/Modifications.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_1.1.X.php
-----------------------------------------------------
These are the following Mods that I'm using in case there might be a clash with this Mod:

Mod Name Version 
1. Xbox LIVE GamerTag BBC 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
2. Ultimate Profile 0.9   [ Uninstall ] [ List Files ] [ Delete ] 
3. FontandSizeDropdown_1.3 1.3  [ Apply Mod ] [ List Files ] [ Delete ] 
4. Enhanced Profile 1.1.5  [ Apply Mod ] [ List Files ] [ Delete ] 
5. Profile Comments 2.0  [ Apply Mod ] [ List Files ] [ Delete ] 
6. MySpace Field 2.5  [ List Files ] [ Delete ] 
7. Aeva Media 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
8. Akismet Spam Blocking 1.2 Beta 2   [ Uninstall ] [ List Files ] [ Delete ] 
9. OS & Browser Detection 1.4  [ Apply Mod ] [ List Files ] [ Delete ] 
10. Clickable Avatars 1.1.0   [ Uninstall ] [ List Files ] [ Delete ] 
11. httpBL 2.3.4   [ Uninstall ] [ List Files ] [ Delete ] 
12. Enhanced Profile Header Language Pack 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
13. Lay out change 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
14. Advanced XFire Field 2.0a  [ Apply Mod ] [ List Files ] [ Delete ] 
15. Ad Managment 2.3.6.1   [ Uninstall ] [ List Files ] [ Delete ] 
16. reCAPTCHA for SMF 0.9.7   [ Uninstall ] [ List Files ] [ Delete ] 
17. Advanced Popup Xbox Gamertag 1.2   [ Uninstall ] [ List Files ] [ Delete ] 
18. Last Post On MemberList 1.01  [ List Files ] [ Delete ] 
19. Social Bookmarks 2.0   [ Uninstall ] [ List Files ] [ Delete ] 
20. PM Popup - Uses Active Window 1.4   [ Uninstall ] [ List Files ] [ Delete ] 
21. Audible PM 1.5   [ Uninstall ] [ List Files ] [ Delete ] 
22. Skype Integration 2.1.1   [ Uninstall ] [ List Files ] [ Delete ] 
23. Enhanced Profile Header 1.2.3   [ List Files ] [ Delete ] 
24. Admin color in topic view 0.1   [ Uninstall ] [ List Files ] [ Delete ] 
25. BK-SMF StatCounter 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
26. Unread and Replies Tabs in Main Menu 3.0   [ Uninstall ] [ List Files ] [ Delete ] 
27. Board Notification Mod 1.1.6   [ Uninstall ] [ List Files ] [ Delete ] 
28. Search Board and Topic texts 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
29. Twitter and Facebook Publisher mod 2.2   [ Uninstall ] [ List Files ] [ Delete ] 
30. Pm Number in All Pages 1.0  [ List Files ] [ Delete ] 
31. Timezone Select 1.1.2  [ List Files ] [ Delete ] 
32. Favicon 1.3   [ Uninstall ] [ List Files ] [ Delete ] 
33. Caps_Lock_Detection_on_Login 1.1.0.1   [ Uninstall ] [ List Files ] [ Delete ] 
34. TinyPortal 1.083  [ Apply Mod ] [ List Files ] [ Delete ] 
35. Ban Link in Post 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
36. Link Thumbnail 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
37. Remove MySQL, PHP & W3C images to minimize footer size 1.2  [ Apply Mod ] [ List Files ] [ Delete ] 
38. AjaxChat Integration 3.2.1  [ Apply Mod ] [ List Files ] [ Delete ] 
39. Blabberizer 2.1u   [ Uninstall ] [ List Files ] [ Delete ] 
40. Select All And Copy 'Code' To Clipboard [BETA] 1.3  [ List Files ] [ Delete ] 
41. PM Readed 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
42. Auto Complete Search 1.0  [ List Files ] [ Delete ] 
43. Enhanced Dropdown 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
44. Enhanced PM Warning Message 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
45. Advanced Reputation System 0.1.5  [ Apply Mod ] [ List Files ] [ Delete ] 
46. Twitter Profile Field 2.2  [ List Files ] [ Delete ] 
47. AJAX Personal Text 1.0.2  [ List Files ] [ Delete ] 
48. SMF 1.0.19 / 1.1.11 Update 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
49. BK-SMF Sub-Board 1.5   [ Uninstall ] [ List Files ] [ Delete ] 
50. cbi, 1.0 1.5.7  [ Apply Mod ] [ List Files ] [ Delete ] 
51. AJAX Instant Quick Reply 1.0.2  [ Apply Mod ] [ List Files ] [ Delete ] 
52. No More Ugly Avatar Scrollbars 1.0  [ Apply Mod ] [ List Files ] [ Delete ] 
53. SimplePortal 2.3.1  [ Apply Mod ] [ List Files ] [ Delete ] 
54. Country Flags 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
55. PSN GamerCard BBC 1.5  [ List Files ] [ Delete ]

If anyone can help me out with my problem, please let me know...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 06:51:24 AM
@kerbob
What is line 3898 of your Subs.php? Or better yet, can you attach your Subs.php?

@beau1943
Follow the instructions for the blank chat in the FAQ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766).

@jarska
Glad it's sorted!

@ThomasLindgren
Are you using a custom theme? Can you post or PM a link to your site so we can take a look?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 06:54:29 AM
@ShadoWind

If that's the only error when trying to install, it'd be fairly simple to fix. That error just means one of the other mods has changed part of what the Chat mod is looking for. If you want to, you can attach your index.template.php here and i'll make the needed changes manually, then install the mod, skipping that one error, and upload the modified index.template.php.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Diagram on March 12, 2010, 06:56:01 AM
Quote from: Diagram on March 11, 2010, 03:17:24 AM
By the way another question, since my hosting provider talks much about this high CPU load when someone abused the chatbox..

Is there some way I can move the chatbox files into another place, and link it to my forum?
Let's say my forum's in A, and my chat and shoutbox files are in B. What codes must I change, add, or subtract on the config files and else?

Still unsolved  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShadoWind on March 12, 2010, 07:01:09 AM
Quote from: SunKing on March 12, 2010, 06:54:29 AM
@ShadoWind

If that's the only error when trying to install, it'd be fairly simple to fix. That error just means one of the other mods has changed part of what the Chat mod is looking for. If you want to, you can attach your index.template.php here and i'll make the needed changes manually, then install the mod, skipping that one error, and upload the modified index.template.php.

Thanks, I'll upload a copy of the index.template file when I get home as I'm at the library at the moment...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 07:02:18 AM
Quote from: Diagram on March 12, 2010, 06:56:01 AM
Quote from: Diagram on March 11, 2010, 03:17:24 AM
By the way another question, since my hosting provider talks much about this high CPU load when someone abused the chatbox..

Is there some way I can move the chatbox files into another place, and link it to my forum?
Let's say my forum's in A, and my chat and shoutbox files are in B. What codes must I change, add, or subtract on the config files and else?

Still unsolved  ;D

Moving the chat to another location wouldn't solve the resource issue unless you mean moving it to another host. There are other ways to help with high CPU load, but, as with any chat type mod, heavy resources is just part of the price you pay. Check the FAQ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) as I think there is a section in there for improving the resource usage a bit.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 07:05:09 AM
Quote from: ShadoWind on March 12, 2010, 07:01:09 AM
Quote from: SunKing on March 12, 2010, 06:54:29 AM
@ShadoWind

If that's the only error when trying to install, it'd be fairly simple to fix. That error just means one of the other mods has changed part of what the Chat mod is looking for. If you want to, you can attach your index.template.php here and i'll make the needed changes manually, then install the mod, skipping that one error, and upload the modified index.template.php.

Thanks, I'll upload a copy of the index.template file when I get home as I'm at the library at the moment...

Sounds great ShadoWind. (You'll be able to do the same thing with the other mods that seem to be failing on just one file  -  OS Detection mod  -  attach the failing file on that thread;))
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 12, 2010, 07:30:25 AM
I am truly sorry -  I just don´t get it.
When I did this, the whole screen was empty.
So I thought it was my mistake: I wrote
if(!in_array($board, array(3))) {
before the notification code

and then I put
}
after the notification code.
Not working that way.

Second time I put this code(starting if) to different spot of the code,
then it stopped all the notifications from all boards.

Third time I couldn´t write to forum 
And so on.

Here is my notification code from my post.php
Could you please show me exact place...  *blushing*



// ***** Ajax Chat New Topic Notification *****
      {
      notifyMembersBoard();

global $user_info, $board, $scripturl, $boardName, $topic;
         
    db_query("INSERT INTO `smf_ajaxchat_messages` (`userID` ,`userName` ,`userRole` ,`channel` ,`ip` ,`text`)
         VALUES (".$posterOptions['id']." , '".$txt['chatbot_name']."' , 4 , 0 , '".$posterOptions['ip']."', '".$user_info['name']." " . $txt['chatbot_msg_new_topic'] . " ".html_entity_decode($_POST['subject'])."[/b][/color]')", __FILE__, __LINE__);
  }         

// ******* End Ajax Chat New Topic Notification *******
   
   elseif (empty($_REQUEST['msg']))
             
// ****** Ajax Chat New Reply Notification ******
{
sendNotifications($topic, 'reply');

global $user_info, $board, $scripturl, $boardName, $topic;
    db_query("INSERT INTO `smf_ajaxchat_messages` (`userID` ,`userName` ,`userRole` ,`channel` ,`ip` ,`text`)
       VALUES (".$posterOptions['id']." , '".$txt['chatbot_name']."' , 4 , 0 , '".$posterOptions['ip']."', '".$user_info['name']." " . $txt['chatbot_msg_new_reply'] . " ".html_entity_decode($_POST['subject'])."[/b][/color]')", __FILE__, __LINE__);
     }
// ***** End Ajax Chat New Reply Notification
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 07:53:04 AM
Attach your Post.php. Is "3" the board you wish to hide from?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ThomasLindgren on March 12, 2010, 08:25:28 AM
Quote from: SunKing on March 12, 2010, 06:51:24 AM
@ThomasLindgren
Are you using a custom theme? Can you post or PM a link to your site so we can take a look?
Haven't touched the themes.
The forum is at http://www.jolie.nu/forum/ but it's a closed forum, so I guess it won't help much.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Diagram on March 12, 2010, 08:40:57 AM
Quote from: SunKing on March 12, 2010, 07:02:18 AM
Quote from: Diagram on March 12, 2010, 06:56:01 AM
Quote from: Diagram on March 11, 2010, 03:17:24 AM
By the way another question, since my hosting provider talks much about this high CPU load when someone abused the chatbox..

Is there some way I can move the chatbox files into another place, and link it to my forum?
Let's say my forum's in A, and my chat and shoutbox files are in B. What codes must I change, add, or subtract on the config files and else?

Still unsolved  ;D

Moving the chat to another location wouldn't solve the resource issue unless you mean moving it to another host. There are other ways to help with high CPU load, but, as with any chat type mod, heavy resources is just part of the price you pay. Check the FAQ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) as I think there is a section in there for improving the resource usage a bit.

Yeah I mean moving to another host :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 09:10:54 AM
@ThomasLindgren
Are all of the permissions (chmod) set correctly for files and folders?

@Diagram
It would just be a matter of pointing a few things to the new location of the chat. Doing this would force your members to login to the chat every time they want to use it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ThomasLindgren on March 12, 2010, 09:15:17 AM
Quote from: SunKing on March 12, 2010, 09:10:54 AM
@ThomasLindgren
Are all of the permissions (chmod) set correctly for files and folders?
I  have no idea, do I have to change anything?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 09:19:19 AM
Check that the folders are set to 755, and the files are set to 644 for both the chat and shoutBox folders. The index.php file in each of those folders needs to be set at 755.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Diagram on March 12, 2010, 09:32:17 AM
Quote from: SunKing on March 12, 2010, 09:10:54 AM
@Diagram
It would just be a matter of pointing a few things to the new location of the chat. Doing this would force your members to login to the chat every time they want to use it.
And why's that?
Can't I somehow use a cookie or install another SMF on the other host that has chat and use the database of the original one?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on March 12, 2010, 09:34:08 AM
No, that won't work. It would actually increase the total load through serving the DB across the internet.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 12, 2010, 11:31:50 AM
Quote from: SunKing on March 12, 2010, 07:53:04 AM
Attach your Post.php. Is "3" the board you wish to hide from?

Yes it is
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 11:34:52 AM
You forgot the "Attach your Post.php" part. :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 12, 2010, 07:48:23 PM
I got a issue for all the IE/Chrome/Safari users.
They don't see any text, just the words like Online Users but for the rest nothing.
I heard it was something with .htaccess but how do i fix that?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 08:14:21 PM
Quote from: SunKing on March 01, 2010, 01:14:53 AM
@in5d
It seems adding RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the top of your .htaccess file in the forum root (as re-suggested by mrtrc266) has fixed you all up. Enjoy your chat!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: beau1943 on March 12, 2010, 08:34:05 PM
Hello......thanks........the subs.php is two large to cut and paste........what part of the subs do you need....thanks for answering
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on March 12, 2010, 08:38:17 PM
Quote from: beau1943 on March 12, 2010, 08:34:05 PM
Hello......thanks........the subs.php is two large to cut and paste........what part of the subs do you need....thanks for answering

Use the attachment function - press the Reply button and use the Additional Options to attach the whole file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 12, 2010, 08:42:48 PM
Quote from: SunKing on March 12, 2010, 08:14:21 PM
Quote from: SunKing on March 01, 2010, 01:14:53 AM
@in5d
It seems adding RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the top of your .htaccess file in the forum root (as re-suggested by mrtrc266) has fixed you all up. Enjoy your chat!
I don't know where to find that file/how to add it.
I checked every folder on my site but i can't find it. :s
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MidnighToker on March 12, 2010, 08:48:02 PM
Problem installing in SMF 2.0 RC3

Sorry.  N00b to SMF.

I am trying to integrate with my forum and I keep getting an error when running /Tables_2.php.
QuoteDatabase Error

No database selected
File: /home/midni385/public_html/trailer/Tables_2.php
Line: 12
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 12, 2010, 09:00:57 PM
Installing the mod onto my newest forum.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/curvemavi/BoardIndex.template.php on line 540


540:  if (isset($context['chat_links'])){
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 09:08:33 PM
@RoyalMess
create a text file on your computer called temp.htaccess and add RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the very top of it using notepad. Upload this file to the same folder as the SSI.php. Once uploaded, remove "temp" from the file name so that the file is now called .htaccess.

@MidnighToker
First, welcome to SMF!

Have you tried just installing the mod from the package manager in the admin area?

@Brack1
Most likely, you need a '; at the end of the line 539.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 12, 2010, 09:16:40 PM
I shoulda posted more than one line.

535:             if($addaffiliates)
536:                 {
537:             echo '   | <a href="', $scripturl, '?action=affiliates;sa=addafflink">', $txt['Addlink'], '</a>]';}echo'</span>;
538:          </h4>
539: // users in chat

540:  if (isset($context['chat_links']))}

541:  if (count($context['chat_links']) == 0 )
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 09:19:36 PM
You need a '; at the end of line 538.

EDIT: And remove the ; at the end of line 537.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 12, 2010, 09:35:45 PM
Chat is working except the user in chat text isn't showing in the Users Online section.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MidnighToker on March 12, 2010, 10:01:09 PM
Thanks.  Hadn't thought of taking the easy route :)

Tried that, but won't run on RC3 and I'm not sure which files need to be tweaked to make it work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 10:03:37 PM
Try the package attached here:

http://www.simplemachines.org/community/index.php?topic=257973.msg2529311#msg2529311
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MidnighToker on March 12, 2010, 10:17:45 PM
Thanks man!  That did it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 12, 2010, 10:19:25 PM
Glad it's sorted for you....now go enjoy it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 13, 2010, 06:15:46 AM
Quote from: SunKing on March 12, 2010, 09:08:33 PM
@RoyalMess
create a text file on your computer called temp.htaccess and add RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the very top of it using notepad. Upload this file to the same folder as the SSI.php. Once uploaded, remove "temp" from the file name so that the file is now called .htaccess.

The SSI.php is located in my httpdocs but added the .htaccess doesn't do a thing. :(
I just DLed the Ajax Chat installation rar/zip and i see that the .htaccess is located in that in the Chat/Lib should i upload it there?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ThomasLindgren on March 13, 2010, 08:08:41 AM
Quote from: SunKing on March 12, 2010, 09:19:19 AM
Check that the folders are set to 755, and the files are set to 644 for both the chat and shoutBox folders. The index.php file in each of those folders needs to be set at 755.
It seems that everything is set to 777, is that a problem?

The files are in "forum\packages\temp\", is that correct? Seems strange that they are in a temp folder?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 13, 2010, 09:12:28 AM
Quote from: RoyalMess on March 13, 2010, 06:15:46 AM
Quote from: SunKing on March 12, 2010, 09:08:33 PM
@RoyalMess
create a text file on your computer called temp.htaccess and add RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the very top of it using notepad. Upload this file to the same folder as the SSI.php. Once uploaded, remove "temp" from the file name so that the file is now called .htaccess.

The SSI.php is located in my httpdocs but added the .htaccess doesn't do a thing. :(
I just DLed the Ajax Chat installation rar/zip and i see that the .htaccess is located in that in the Chat/Lib should i upload it there?

Every folder on your server can have an .htaccess in it, and each one can have it's own set of rules. I learned this the hard way after about 3 or 4 months of trying to find a solution. (You can follow that timeline here in the earlier posts of this thread.) If adding the RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the top of the .htaccess that is located in the same folder as the SSI.php didn't work, then that's simply not the right solution to your particular problem.

Quote from: ThomasLindgren on March 13, 2010, 08:08:41 AM
Quote from: SunKing on March 12, 2010, 09:19:19 AM
Check that the folders are set to 755, and the files are set to 644 for both the chat and shoutBox folders. The index.php file in each of those folders needs to be set at 755.
It seems that everything is set to 777, is that a problem?

The files are in "forum\packages\temp\", is that correct? Seems strange that they are in a temp folder?


The permissions need to be set as described above. The temp folder simply holds the files until they have been installed, and is perfectly normal to have files in it during such an installation
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 13, 2010, 09:55:21 AM
Quote from: SunKing on March 13, 2010, 09:12:28 AM
Quote from: RoyalMess on March 13, 2010, 06:15:46 AM
Quote from: SunKing on March 12, 2010, 09:08:33 PM
@RoyalMess
create a text file on your computer called temp.htaccess and add RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the very top of it using notepad. Upload this file to the same folder as the SSI.php. Once uploaded, remove "temp" from the file name so that the file is now called .htaccess.

The SSI.php is located in my httpdocs but added the .htaccess doesn't do a thing. :(
I just DLed the Ajax Chat installation rar/zip and i see that the .htaccess is located in that in the Chat/Lib should i upload it there?

Every folder on your server can have an .htaccess in it, and each one can have it's own set of rules. I learned this the hard way after about 3 or 4 months of trying to find a solution. (You can follow that timeline here in the earlier posts of this thread.) If adding the RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the top of the .htaccess that is located in the same folder as the SSI.php didn't work, then that's simply not the right solution to your particular problem.

The chatbox only gets lets say "broken" when i change the default language/theme and rename the chatbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: beau1943 on March 13, 2010, 10:07:14 AM
Sunking.............subs.php attached.........thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 13, 2010, 12:01:11 PM
Quote from: SunKing on March 12, 2010, 11:34:52 AM
You forgot the "Attach your Post.php" part. :D

Oops, sorry, there you go: ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 13, 2010, 12:56:40 PM
Quote from: beau1943 on March 13, 2010, 10:07:14 AM
Sunking.............subs.php attached.........thank you

There are a lot of posts here recently. Can you please remind this old brain what it is you need done to the Subs.php?  ::)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 13, 2010, 01:04:06 PM
@jarska

The attached file should have you all set. If you decide to ignore more boards, simply add the board ID to the array (comma separated).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: beau1943 on March 13, 2010, 01:09:28 PM
Sunking............chat and shout does not allow any posting......popup opens but shout box and chat does not recognize user.  I am signed in to my forum.......remember I am using 1.1.11 ......you asked that I send you the subs.php file......for what reason I don't know.....the url of my forum is http://usworldforums.com........

Thanks
beau1943
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 13, 2010, 01:20:54 PM
Well I apologize then. I must have been half asleep. ;)

You need to check a few things for me and then we can go from there.

Check the permissions (chmod) of the files and folders. Make sure all of the folders in both chat and shoutBox folders are set to 755 and the files are set to 644 (except for the index.php in the chat and shoutBox folders which needs to also be 755). Check to see if there is an .htaccess file in the same folder as the SSI.php. If there is, then add RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the very top of the file, on its own line. If there's not an .htaccess file, you need to create one. To do this, create a simple text file on your computer using notepad. Name it temp.htaccess and add the RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the very first line. Save the file. Upload it to the same folder as the SSI.php and remove the "temp" from the file so it is named .htaccess by itself.

If none of the above fixes your issue, you can also PM me your FTP details and I can make the changes for you. This is by no means necessary, and I will not be offended if you decline.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 13, 2010, 01:45:20 PM
Quote from: SunKing on March 13, 2010, 01:04:06 PM
@jarska

The attached file should have you all set.

But it is not working. It prevents all notifications now. :(

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: beau1943 on March 13, 2010, 02:04:15 PM
Quote from: SunKing on March 13, 2010, 01:20:54 PM
Well I apologize then. I must have been half asleep. ;)

You need to check a few things for me and then we can go from there.

Check the permissions (chmod) of the files and folders. Make sure all of the folders in both chat and shoutBox folders are set to 755 and the files are set to 644 (except for the index.php in the chat and shoutBox folders which needs to also be 755). Check to see if there is an .htaccess file in the same folder as the SSI.php. If there is, then add RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the very top of the file, on its own line. If there's not an .htaccess file, you need to create one. To do this, create a simple text file on your computer using notepad. Name it temp.htaccess and add the RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to the very first line. Save the file. Upload it to the same folder as the SSI.php and remove the "temp" from the file so it is named .htaccess by itself.

If none of the above fixes your issue, you can also PM me your FTP details and I can make the changes for you. This is by no means necessary, and I will not be offended if you decline.

I don't have a SSI.php in any file........I have a .htaccess in the socket file...I redid the permissions and made a temp.htaccess file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 13, 2010, 02:09:57 PM
@jarska
Try if(!in_array($board, array(0, 3))){ in your Post.php in place of the line that's there (two times).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 13, 2010, 02:11:35 PM
Quote from: beau1943 on March 13, 2010, 02:04:15 PM
I don't have a SSI.php in any file........I have a .htaccess in the socket file...I redid the permissions and made a temp.htaccess file

It should be located at /usworld/forum/SSI.php

That is also where the .htaccess file needs to be.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: beau1943 on March 13, 2010, 02:19:49 PM
Quote from: SunKing on March 13, 2010, 02:11:35 PM


It should be located at /usworld/forum/SSI.php

That is also where the .htaccess file needs to be.

Sunking........working like a charm....will take care of you and would like you to be my smf advisor in future........Beau
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 13, 2010, 02:26:30 PM
Quote from: beau1943 on March 13, 2010, 02:19:49 PM
Quote from: SunKing on March 13, 2010, 02:11:35 PM


It should be located at /usworld/forum/SSI.php

That is also where the .htaccess file needs to be.

Sunking........working like a charm....will take care of you and would like you to be my smf advisor in future........Beau

I'm glad you have it sorted. Enjoy!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShadoWind on March 13, 2010, 03:15:37 PM
Here's the index.template file that you requested along with a copy of the updated list of Mods that I've installled just in case any of them affected this file:

Mod Name   Version   
1.   Xbox LIVE GamerTag BBC    1.0     [ Uninstall ] [ List Files ] [ Delete ]
2.   Google Translator Flags    1.0     [ Uninstall ] [ List Files ] [ Delete ]
3.   Skype Integration    2.1.1     [ Uninstall ] [ List Files ] [ Delete ]
4.   Member NotePad    1.0.0     [ Uninstall ] [ List Files ] [ Delete ]
5.   Best 3    0.1     [ Uninstall ] [ List Files ] [ Delete ]
6.   New Topic Button    1.0     [ Uninstall ] [ List Files ] [ Delete ]
7.   Ultimate Profile    0.9     [ Uninstall ] [ List Files ] [ Delete ]
8.   Attachments in Topics    1.0     [ Uninstall ] [ List Files ] [ Delete ]
9.   FontandSizeDropdown_1.3    1.3   [ Apply Mod ] [ List Files ] [ Delete ]
10.   Guest Attachment Preview    1.0.1     [ Uninstall ] [ List Files ] [ Delete ]
11.   Change Forum Cursor    1.1     [ Uninstall ] [ List Files ] [ Delete ]
12.   Enhanced Profile    1.1.5   [ Apply Mod ] [ List Files ] [ Delete ]
13.   SMF Archive    2.0     [ Uninstall ] [ List Files ] [ Delete ]
14.   Reason For Editing Mod    2.3.2     [ Uninstall ] [ List Files ] [ Delete ]
15.   Profile Comments    2.0   [ Apply Mod ] [ List Files ] [ Delete ]
16.   Team Page    3.5.4     [ Uninstall ] [ List Files ] [ Delete ]
17.   Moderator and Administrator Comment Tags    1.8     [ Uninstall ] [ List Files ] [ Delete ]
18.   MySpace Field    2.5   [ List Files ] [ Delete ]
19.   Aeva Media    1.1     [ Uninstall ] [ List Files ] [ Delete ]
20.   Akismet Spam Blocking    1.2 Beta 2     [ Uninstall ] [ List Files ] [ Delete ]
21.   OS & Browser Detection    1.4   [ Apply Mod ] [ List Files ] [ Delete ]
22.   Clickable Avatars    1.1.0     [ Uninstall ] [ List Files ] [ Delete ]
23.   Inline Hover Spoiler    1.5     [ Uninstall ] [ List Files ] [ Delete ]
24.   httpBL    2.3.4     [ Uninstall ] [ List Files ] [ Delete ]
25.   Enhanced Profile Header Language Pack    1.2     [ Uninstall ] [ List Files ] [ Delete ]
26.   Lay out change    0.1     [ Uninstall ] [ List Files ] [ Delete ]
27.   Advanced XFire Field    2.0a   [ Apply Mod ] [ List Files ] [ Delete ]
28.   SMF Links    2.1.2   [ Apply Mod ] [ List Files ] [ Delete ]
29.   Ad Managment    2.3.6.1     [ Uninstall ] [ List Files ] [ Delete ]
30.   Redirect Error 404    1.0     [ Uninstall ] [ List Files ] [ Delete ]
31.   Amazon Search    1.1     [ Uninstall ] [ List Files ] [ Delete ]
32.   Amazon MP3    1.1     [ Uninstall ] [ List Files ] [ Delete ]
33.   Enhanced Side Menus    1.1     [ Uninstall ] [ List Files ] [ Delete ]
34.   reCAPTCHA for SMF    0.9.7     [ Uninstall ] [ List Files ] [ Delete ]
35.   Google Analytics Code    1.1     [ Uninstall ] [ List Files ] [ Delete ]
36.   Advanced Popup Xbox Gamertag    1.2     [ Uninstall ] [ List Files ] [ Delete ]
37.   Last Post On MemberList    1.01   [ List Files ] [ Delete ]
38.   ZuneCard    1.2     [ Uninstall ] [ List Files ] [ Delete ]
39.   Social Bookmarks    2.0     [ Uninstall ] [ List Files ] [ Delete ]
40.   Share This Topic    1.4     [ Uninstall ] [ List Files ] [ Delete ]
41.   PM Popup - Uses Active Window    1.4     [ Uninstall ] [ List Files ] [ Delete ]
42.   Space Between Posts    2.0   [ Apply Mod ] [ List Files ] [ Delete ]
43.   Audible PM    1.5     [ Uninstall ] [ List Files ] [ Delete ]
44.   RSS Feed Icon    1.1     [ Uninstall ] [ List Files ] [ Delete ]
45.   Skype Integration    2.1.1     [ Uninstall ] [ List Files ] [ Delete ]
46.   Enhanced Profile Header    1.2.3     [ List Files ] [ Delete ]
47.   Admin color in topic view    0.1     [ Uninstall ] [ List Files ] [ Delete ]
48.   BK-SMF StatCounter    1.0     [ Uninstall ] [ List Files ] [ Delete ]
49.   Unread and Replies Tabs in Main Menu    3.0     [ Uninstall ] [ List Files ] [ Delete ]
50.   Discourage IE6    2.1     [ Uninstall ] [ List Files ] [ Delete ]
51.   Board Notification Mod    1.1.6     [ Uninstall ] [ List Files ] [ Delete ]
52.   Topic_Locked_Message    2.1   [ Apply Mod ] [ List Files ] [ Delete ]
53.   Search Board and Topic texts    1.1     [ Uninstall ] [ List Files ] [ Delete ]
54.   Twitter and Facebook Publisher mod    2.2     [ Uninstall ] [ List Files ] [ Delete ]
55.   Pm Number in All Pages    1.0   [ List Files ] [ Delete ]
56.   Timezone Select    1.1.2   [ List Files ] [ Delete ]
57.   Fix Message Empty Error For Embed Video Mods    1.0   [ Apply Mod ] [ List Files ] [ Delete ]
58.   Favicon    1.3     [ Uninstall ] [ List Files ] [ Delete ]
59.   Delete Spam Posts    1.3     [ Uninstall ] [ List Files ] [ Delete ]
60.   Caps_Lock_Detection_on_Login    1.1.0.1     [ Uninstall ] [ List Files ] [ Delete ]
61.   TinyPortal    1.083   [ Apply Mod ] [ List Files ] [ Delete ]
62.   Tagging System    2.2.1   [ Apply Mod ] [ List Files ] [ Delete ]
63.   Ban Link in Post    1.1     [ Uninstall ] [ List Files ] [ Delete ]
64.   Top 10 Posters and Topic Starters Stats (Today, This Week, This Month)    2.4.2     [ Uninstall ] [ List Files ] [ Delete ]
65.   Forum Name as Prefix for Forum Title    1.0   [ Apply Mod ] [ List Files ] [ Delete ]
66.   Copyright & Footer Links | S-Ace    3.0   [ Apply Mod ] [ List Files ] [ Delete ]
67.   Link Thumbnail    1.0     [ Uninstall ] [ List Files ] [ Delete ]
68.   Profile Comments    2.0   [ Apply Mod ] [ List Files ] [ Delete ]
69.   Anti-Bot Registration Puzzles    1.2.0.1     [ Uninstall ] [ List Files ] [ Delete ]
70.   Remove MySQL, PHP & W3C images to minimize footer size    1.2   [ Apply Mod ] [ List Files ] [ Delete ]
71.   AjaxChat Integration    3.2.1   [ Apply Mod ] [ List Files ] [ Delete ]
72.   Blabberizer    2.1u     [ Uninstall ] [ List Files ] [ Delete ]
73.   Select All And Copy 'Code' To Clipboard [BETA]    1.3   [ List Files ] [ Delete ]
74.   PM Readed    1.1     [ Uninstall ] [ List Files ] [ Delete ]
75.   Auto Complete Search    1.0   [ List Files ] [ Delete ]
76.   Enhanced Dropdown    1.1     [ Uninstall ] [ List Files ] [ Delete ]
77.   Google Search Your Site    1.0.0     [ Uninstall ] [ List Files ] [ Delete ]
78.   Enhanced PM Warning Message    1.0     [ Uninstall ] [ List Files ] [ Delete ]
79.   Amazon DVD    1.0     [ Uninstall ] [ List Files ] [ Delete ]
80.   Advanced Reputation System    0.1.5   [ Apply Mod ] [ List Files ] [ Delete ]
81.   Twitter Profile Field    2.2   [ List Files ] [ Delete ]
82.   AJAX Personal Text    1.0.2   [ List Files ] [ Delete ]
83.   SMF 1.0.19 / 1.1.11 Update    1.0     [ Uninstall ] [ List Files ] [ Delete ]
84.   Tidy Child Boards    1.3     [ Uninstall ] [ List Files ] [ Delete ]
85.   BK-SMF Sub-Board    1.5     [ Uninstall ] [ List Files ] [ Delete ]
86.   cbi, 1.0    1.5.7   [ Apply Mod ] [ List Files ] [ Delete ]
87.   AJAX Instant Quick Reply    1.0.2   [ Apply Mod ] [ List Files ] [ Delete ]
88.   No More Ugly Avatar Scrollbars    1.0   [ Apply Mod ] [ List Files ] [ Delete ]
89.   SimplePortal    2.3.1   [ Apply Mod ] [ List Files ] [ Delete ]
90.   Country Flags    1.1     [ Uninstall ] [ List Files ] [ Delete ]
91.   SMF Staff Page    1.7     [ Uninstall ] [ List Files ] [ Delete ]
92.   PSN GamerCard BBC    1.5   [ List Files ] [ Delete ]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 13, 2010, 03:26:59 PM
Here you go ShadoWind.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShadoWind on March 13, 2010, 03:35:53 PM
I've replaced the index.template file with the one you gave me and now it's saying that it's failed the test as well as the managepermissions template file which i've enclosed here...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 13, 2010, 03:48:41 PM
The file I attached is still going to fail the test, but you can skip that error because I have already made the changes to the file....but install the mod BEFORE you upload my edited version or you'll end up with some duplicate code. Also, the mod does not modify the ManagePermissions.template.php, it modifies the ManagePermissions.php located in your /Sources/ folder. You can attach that file here. Keep in mind, both files will still fail the modification test in the package manager. Skip the errors and then upload the files.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShadoWind on March 14, 2010, 03:10:12 AM
Here's the correct ManagePermissions.php file as requested...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 14, 2010, 06:07:39 AM
I contacted the host but everything was fine so it has to do something with the mod :( but the host did fix some permissions for the FTP.
I'll reinstall it later today when i get back, and make the changes then.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on March 14, 2010, 09:27:54 AM
Quote from: SunKing on March 13, 2010, 02:09:57 PM
@jarska
Try if(!in_array($board, array(0, 3))){ in your Post.php in place of the line that's there (two times).

Still not working. :(

Could you do the changes in post.php and attach it back? ::)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 14, 2010, 10:03:10 AM
Quote from: ShadoWind on March 14, 2010, 03:10:12 AM
Here's the correct ManagePermissions.php file as requested...

File attached.

Quote from: RoyalMess on March 14, 2010, 06:07:39 AM
I contacted the host but everything was fine so it has to do something with the mod :( but the host did fix some permissions for the FTP.
I'll reinstall it later today when i get back, and make the changes then.

Keep me informed if the changes made any difference this go round.

Quote from: jarska on March 14, 2010, 09:27:54 AM
Quote from: SunKing on March 13, 2010, 02:09:57 PM
@jarska
Try if(!in_array($board, array(0, 3))){ in your Post.php in place of the line that's there (two times).

Still not working. :(

Could you do the changes in post.php and attach it back? ::)

I have sent you a PM. ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 14, 2010, 11:39:08 AM
Quote from: SunKing on March 14, 2010, 10:03:10 AM
Quote from: RoyalMess on March 14, 2010, 06:07:39 AM
I contacted the host but everything was fine so it has to do something with the mod :( but the host did fix some permissions for the FTP.
I'll reinstall it later today when i get back, and make the changes then.

Keep me informed if the changes made any difference this go round.


Oke so when i'm in the Chat and the default language is EN the chat will be named AJAX Chat instead of TSLWD Chat since i changed this line
$lang['title'] = 'TSLWD Chat';
But when i change to Dutch (NL) the chat will be named TSLWD Chat as i want it to be, but then the chat kinda gets broken.
The menu like Info or Users etc. doesn't load properly or just stretches out over the whole page.
I just tested on Safari, Firefox, Internet Explorer and Google Chrome and only on Firefox that chat gets displayed properly in Dutch but in other browser it doesn't, but if i change the language to English in the other browsers the chat is normal so i think something is wrong with the Language files.

I'll make some Screenshots.

EDIT: In Firefox the English language file kinda messes up the chat but the Dutch language is fine somehow, so thats a good thing :P

Firefox:
Dutch
http://img361.imageshack.us/img361/8236/ffnl.jpg
English
http://img361.imageshack.us/img361/2820/ffen.jpg

Google Chrome:
Dutch
http://img3.imageshack.us/img3/7501/chromenl.jpg
English
http://img3.imageshack.us/img3/927/chromeen.jpg

Internet Explorer:
Dutch
http://img294.imageshack.us/img294/7297/ienl.jpg
English
http://img3.imageshack.us/img3/9654/ieen.jpg

Dutch kind of causes the chat to malfunction in all browsers except Firefox, and English works fine in every browser except Firefox.

Safari is on my iPhone and the chat shows fine on that in English but on Dutch it doesn't.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on March 15, 2010, 05:36:04 PM
I REALLY like this chat MOD.  The main problem is, No matter what options I select in the adminCP (except for disabling) the ShoutBox appears on the main page.

All I want it the chat menu button that links to the chat room, and the big chat room itself.  That's the only chat I want.  How can I remove the small ShoutBox from the top of the categories on the main page?

I'm on SMF 1.1.11

Thank You.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 15, 2010, 08:08:21 PM
Quote from: hcfwesker on March 15, 2010, 05:36:04 PM
I REALLY like this chat MOD.  The main problem is, No matter what options I select in the adminCP (except for disabling) the ShoutBox appears on the main page.

All I want it the chat menu button that links to the chat room, and the big chat room itself.  That's the only chat I want.  How can I remove the small ShoutBox from the top of the categories on the main page?

I'm on SMF 1.1.11

Thank You.

Like you said "disable the shoutbox." Then you will only have the Chat Room.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: beau1943 on March 15, 2010, 09:07:47 PM
Attn SunKing

That was fast......... please tell me what you did also as I do understand some of this.....If I want to change it again I won't have to bother you.......

The attachment  boardindex
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: beau1943 on March 15, 2010, 09:08:49 PM
That was fast.........please  tell me what you did also as I do understand some of this.....If I want to change it again I won't have to bother you.......

The attachment  index
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: KidCactus on March 16, 2010, 04:09:51 PM
I'm trying to move the shoutbox down to the information center on the index page, is there an easy way to do this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 16, 2010, 04:27:59 PM
I am looking into exactly that for beau1943 (just above your post). I installed the mod to my test site today, but am backed up on a few things. I'll get it sorted in the next day or two.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: KidCactus on March 16, 2010, 04:30:40 PM
Sweet, great timing. :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ThomasLindgren on March 16, 2010, 05:06:20 PM
I'm giving up my problems, uninstalling all mods (that never shows up anyway) and will probably switch to some other forum software instead.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 16, 2010, 05:49:52 PM
Quote from: KidCactus on March 16, 2010, 04:09:51 PM
I'm trying to move the shoutbox down to the information center on the index page, is there an easy way to do this?

http://www.simplemachines.org/community/index.php?topic=257973.msg2107351#msg2107351 (http://www.simplemachines.org/community/index.php?topic=257973.msg2107351#msg2107351)

open Sources/Load.php
Find array_splice($context['template_layers'], 2, 0, 'shout');
Replace with
//array_splice($context['template_layers'], 2, 0, 'shout');

open your index.template.php or boardindex.termplate.php and place
template_shout_above();

anywhere you want.

I haven't tested it but that's what the Author says to do :D

EDIT: Tested and it works, you just have to play with template_shout_above(); to get it where you want.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 16, 2010, 05:58:35 PM
Which file will I need to edit so the number of users in chat shows in the info center?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 16, 2010, 06:07:08 PM
BoardIndex.template.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 16, 2010, 06:17:54 PM
Thought so but had no luck after trying it.

Will have another go if I get time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 16, 2010, 06:45:05 PM
@KidCactus
See mrtrc266's post above.

@beau1943
Also see mrtrc266's post above about adding the // in front of array_splice($context['template_layers']... and then replace your BoardIndex.template.php with the one I edited and attached below.
Title: Re: AjaxChat Integration (latest version 3.2.1) Attn Sunking
Post by: beau1943 on March 16, 2010, 07:41:24 PM
Thank You Sunking.........now shout box does not work without being intwined with chat......I want shout box and chat to work seperate of each other.  I know I can intergrate them through ADMIN but I want to keep them separate.........it is probably a permission ......... please advise......what premissions needed in htaccess shoutbox..........Ray Beau
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: beau1943 on March 17, 2010, 01:44:34 AM
Hey SunKing.........shout box still does not work on site........it works if intergrated with Chat but not on it's own........I took shout down through admin but I will put it up again tonight so you can observe.  Funny it works when intergrated but not on it own......please check ........  here is the htacess in shoutBox/lib and socket......

RewriteRule ^shoutBox/?$ ./shoutBox/index.php [L,QSA]

AuthType Basic
AuthName "Forbidden"
AuthUserFile /dev/null
require user nobody

Site URL is http://usworldforums.com

thanks.........Beau
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: KidCactus on March 17, 2010, 04:45:54 AM
Great, I will look into that today.  :)

By the way, I'm using this as a shoutbox only, is there any way I can turn off the audio?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dozer379 on March 17, 2010, 08:31:57 AM
Hello,

Is anyone getting a error 500 message!  And if so how do you fix it ???


Thanks
Dozer
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on March 17, 2010, 08:57:23 AM
 FAQ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 17, 2010, 10:17:13 AM
Quote from: KidCactus on March 17, 2010, 04:45:54 AM
Great, I will look into that today.  :)

By the way, I'm using this as a shoutbox only, is there any way I can turn off the audio?

Find chat/lib/template/shoutbox.html
                                                    ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

Replace with
                                                    ajaxChatConfig.settings.audio = false;
                                                    ajaxChatConfig.nonPersistentSettings.push('autoFocus','autoScroll','wordWrap','maxWordLength','blink','audio');
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: KidCactus on March 17, 2010, 10:26:34 AM
Thanks, but I had to do that in ./shoutbox/lib/template/shoutbox.html.  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 17, 2010, 10:32:08 AM
Quote from: KidCactus on March 17, 2010, 10:26:34 AM
Thanks, but I had to do that in ./shoutbox/lib/template/shoutbox.html.  :)

Ahhh, you must not have them Integrated....I should have mentioned that LOL. Glad you got it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 17, 2010, 12:24:38 PM
ATTENTION!
For anyone still experiencing blank chat (it looks like it installed fine, but you cannot shout and it doesn't list chatters online), there are a few possible fixes for this that has been added to the updated post found here:

http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529

There is also an option that seems to fix the problem where some users were forced to integrate the shoutbox and chat to get the shoutbox working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: beau1943 on March 17, 2010, 12:42:41 PM
(12:39:02) ChatBot: Error: Connection status: 401

This is the error I am getting in shout box......chat works but shout box has some error ....

Message is for sunking or mrtrc266......at one time shoutbox worked fine
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: burton8012 on March 17, 2010, 11:16:37 PM
ok guys i installed the chat but i want to use it on my COLORS theme does anyone have the mod zip file already changed so i can use it on my theme   keep in mind im new to all this not even 24 yet ...i can't figure out where to change the code
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 18, 2010, 01:04:27 AM
Quote from: burton8012 on March 17, 2010, 11:16:37 PM
ok guys i installed the chat but i want to use it on my COLORS theme does anyone have the mod zip file already changed so i can use it on my theme   keep in mind im new to all this not even 24 yet ...i can't figure out where to change the code

The code to change the colors in the shout box are in this file...
Open yourforum/chat/css/shoutbox.css

everything below this section will let you change the colors to match your theme
/*
* Colors
*/


For the chat room just select any of the style sheets then make that your default or make it the only one available
EXAMPLE: you can edit yourforum/chat/css/prosilver.css

For more info on how to make it default or make it the only one available please see ~AJAX Chat Integration FAQ's   & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 18, 2010, 01:13:29 AM
@ SunKing THANK YOU VERY MUCH for the updated fix!

@Beau have you tried the edit that SunKing posted above? I believe that's one of the error we were getting last night before SunKing nailed it.

Also
Quoteat one time shoutbox worked fine
has anything changed since it was working, any new edits, any new mods installed, etc?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: burton8012 on March 18, 2010, 01:45:21 AM
ohh im sorry the name of the THEME is  COLORS not trying to change colors  i just what the chat to work with  a differnt theme and i went to  the code where to edit themes but nothing match up to what i was supposed to add from the instructions i have no clue what to do

http://www.heliaddictsrc.com/       want just the chat to work like it is now but with a nother theme
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 18, 2010, 02:10:15 AM
Quote from: burton8012 on March 18, 2010, 01:45:21 AM
ohh im sorry the name of the THEME is  COLORS not trying to change colors  i just what the chat to work with  a differnt theme and i went to  the code where to edit themes but nothing match up to what i was supposed to add from the instructions i have no clue what to do

http://www.heliaddictsrc.com/ (http://www.heliaddictsrc.com/)       want just the chat to work like it is now but with a nother theme

Oh ok LOL, sorry for the misunderstanding. So you're saying it works in the default theme but not you're colors theme?

What errors are you getting or what is it not doing?

It looks like it's installed correctly http://www.heliaddictsrc.com/chat/index.php (http://www.heliaddictsrc.com/chat/index.php)

The edits that are required may differ from theme to theme as the code it looks for might be slightly different.

I do see that you're missing the "chat" button, if you attach you index.template file I can take a look in the morning. Also post a link to the theme that you're using .

I'm off to bed for now, thank you for your patience
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: burton8012 on March 18, 2010, 02:30:32 AM
http://custom.simplemachines.org/themes/index.php?lemma=1633


here the link of the theme  yeah i just want the chat icon so member can click on it  if you could do that it be great  might be easier for me if you d/l the theme from link and then e-mail the zip file when u done.....   [email protected]   that be awesome if you could do that
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 18, 2010, 11:06:19 AM
Quote from: burton8012 on March 18, 2010, 02:30:32 AM
http://custom.simplemachines.org/themes/index.php?lemma=1633 (http://custom.simplemachines.org/themes/index.php?lemma=1633)


here the link of the theme  yeah i just want the chat icon so member can click on it  if you could do that it be great  might be easier for me if you d/l the theme from link and then e-mail the zip file when u done.....   [email protected]   that be awesome if you could do that

Should be just a cpl edits in 2 files
In yourforum/Themes/Colors_/index.template.php
Find
        <td class="loginbg">
        <center>
            ';

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


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

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


Find
        echo '<li><a href="', $scripturl, '?action=register"><span>' , $txt[97] , '</span></a></li>';
Add After
    // the [chat] button
    $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
    $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
    echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
        <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>';       


Also open yourforum/Themes/Colors_/style.css and look for
/* The main body of the entire forum. */

Change the width of the forum a little so the chat button fits
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Wiejeben on March 18, 2010, 11:45:32 AM
mrtrc266, why don't you add your Ajaxchat for RC3 into the modifications site :P
Or make your own forum, this topic is a bit to big.  :-[
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on March 18, 2010, 12:13:11 PM
Quote from: Wiejeben on March 18, 2010, 11:45:32 AM
mrtrc266, why don't you add your Ajaxchat for RC3 into the modifications site :P
Or make your own forum, this topic is a bit to big.  :-[

Because he's not listed as the official or additional author - only the author or listed additional authors can change the files there.

He can't make his own topic on it here because it's created automatically by the site, but a separate forum would fragment support and mean people have to check two places for support.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: burton8012 on March 18, 2010, 08:57:24 PM
MRTRC     when you save place after do u mean the next line under it or right after it...i did all u said but i got a error when i tried saving it so i thing i did it right but just not in the right spot
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: burton8012 on March 18, 2010, 09:26:16 PM
to add code to themes i go to  ADMIN then click themes and layout settings  then click  modify themes and then go to the one i i wanna do a manual install on and then just go to to right file to add the code????  that sound right?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 19, 2010, 12:42:45 AM
Quote from: Arantor on March 18, 2010, 12:13:11 PM
Quote from: Wiejeben on March 18, 2010, 11:45:32 AM
mrtrc266, why don't you add your Ajaxchat for RC3 into the modifications site :P
Or make your own forum, this topic is a bit to big.  :-[

Because he's not listed as the official or additional author - only the author or listed additional authors can change the files there.

He can't make his own topic on it here because it's created automatically by the site, but a separate forum would fragment support and mean people have to check two places for support.

As suggested by Arantor I have PM'd the Mod Author and the Support Lead requesting the ability to have access to the Mods Page in order to provide updates as they are released (from the members of SMF LOL.) I haven't received a response yet.

mrtrc266=anxiously waiting for a reply.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 19, 2010, 12:56:43 AM
@ burton this is something that will come in handy as you install more Mods and begin your venture using SMF.

Download an FTP Program like FileZilla (http://filezilla-project.org/download.php?type=client) and use that to download your files that will need editing. You will need you FTP login information from your host.

Download a text editor like Notepad++ (http://sourceforge.net/projects/notepad-plus/files/) to make the edits to your files, it's suggested that you don't use the Notepad provided with Windows.

Now you can easily edit your files using Notepad++ and upload them back to your server using your FTP Program to see the changes.

For now though when you hit reply here, below you will see "Additional Options" click on that and then "Attatch" the following files.

yourforum/Themes/Colors_/index.template.php
yourforum/Themes/Colors_/style.css
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: turboguy on March 19, 2010, 11:59:53 AM
I have looked through about 30 pages of this thread looking for my problem and decided to just post in the hopes that someone can help me. 

I installed Ajax Chat 3.2.1 yesterday in my forum which is running SMF 1.1.11   Everything seemed to be ok and I and my other administrators can access the chat and it works fine.  However members can not log in.   When they enter their user name and password they get a warning "You can't access the chat"

I am not the brightest or most experienced guy in working with SMF and mods but it seems to me that I just need to set their permissions.  I have spent hours in the control panel looking for a place to do this to no avail.   I can find a place to allow the shoutbox and one to show the number of people in the chat but no where to set permissions for someone to enter the chat.   I saw one reference to some menu item like "manage mods" but I don't have that anywhere in my control panel. 

If someone would be so kind as to give me a step by step run down on what I need to do I would greatly appreciate it.   Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 19, 2010, 12:02:06 PM
Bump..

Quote from: SunKing on March 14, 2010, 10:03:10 AM
Quote from: RoyalMess on March 14, 2010, 06:07:39 AM
I contacted the host but everything was fine so it has to do something with the mod :( but the host did fix some permissions for the FTP.
I'll reinstall it later today when i get back, and make the changes then.

Keep me informed if the changes made any difference this go round.


Oke so when i'm in the Chat and the default language is EN the chat will be named AJAX Chat instead of TSLWD Chat since i changed this line
$lang['title'] = 'TSLWD Chat';
But when i change to Dutch (NL) the chat will be named TSLWD Chat as i want it to be, but then the chat kinda gets broken.
The menu like Info or Users etc. doesn't load properly or just stretches out over the whole page.
I just tested on Safari, Firefox, Internet Explorer and Google Chrome and only on Firefox that chat gets displayed properly in Dutch but in other browser it doesn't, but if i change the language to English in the other browsers the chat is normal so i think something is wrong with the Language files.

I'll make some Screenshots.

EDIT: In Firefox the English language file kinda messes up the chat but the Dutch language is fine somehow, so thats a good thing :P

Firefox:
Dutch
http://img361.imageshack.us/img361/8236/ffnl.jpg
English
http://img361.imageshack.us/img361/2820/ffen.jpg

Google Chrome:
Dutch
http://img3.imageshack.us/img3/7501/chromenl.jpg
English
http://img3.imageshack.us/img3/927/chromeen.jpg

Internet Explorer:
Dutch
http://img294.imageshack.us/img294/7297/ienl.jpg
English
http://img3.imageshack.us/img3/9654/ieen.jpg

Dutch kind of causes the chat to malfunction in all browsers except Firefox, and English works fine in every browser except Firefox.

Safari is on my iPhone and the chat shows fine on that in English but on Dutch it doesn't.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jirsh on March 19, 2010, 01:52:30 PM
First off, I love this mod. Works great and looks good. Couple issues, first off is there a way to set auto refresh so you dont have to F5 to refresh the page and see new shouts? Also, on the shoutbox, underneath the bar where you input text there is a link that says "integrated with smf" and its linked to a foreign site. Is there are way to remove that link or make it a diffrent color? I cant find it anywhere in the code. Thanks in advance and keep up the good work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rlh2006 on March 20, 2010, 12:36:14 AM


mrtrc266,

Over at 1up Forum we can't even get this to install. The first time we went past all error messages and gave it a go. It gave us the "chat" button, but that was it --dead and internal server errors. There are no other mods installed. It is our test area to see if our upgrade from RC1.2 to RC3 will work or not. The second time around we tried it on the core theme and see 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 failed
      2.    Add Before    ./Themes/core/index.template.php    Test failed

A little help please if you have time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 20, 2010, 12:40:39 AM
I tend to find the majority of mods are like that on the core theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rlh2006 on March 20, 2010, 12:44:47 AM
Quote from: Brack1 on March 20, 2010, 12:40:39 AM
I tend to find the majority of mods are like that on the core theme.

This is a clean install of RC3 onto a test site. Nothing else is there. What gives? All permissions are set correctly.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 20, 2010, 12:56:45 AM
@ turboguy - yes it seems to be the permissions for your Member Groups need to be set /yourforum/index.php?action=permissions (http://yourforum/index.php?action=permissions)

Then select click the "Modify" link and you should see the options to give them permissions to access chat, moderate chat, etc.

@ Jirsh - Look at the FAQ's in my signature and increase the time to log out inactive members, with AJAX you should see instant results unless you become idle. The config.php file has many settings that you can play with.

The "Integrates With SMF" is a link to the Mod Authors site and MUST remain intact for copy right purposes as well as the other link to blueimp. You can change the colors though, look in yourforum/chat/shoutbox.html

@Royal, I have no idea. I only speak one language so even if I try to figure it out I won't have a clue LOL. Source Forge (http://sourceforge.net/projects/ajax-chat/forums/forum/774132) would be a great place to ask for your particular problem. Or even try a few searches there. I will dig around as well.

@rlh2006 - please see the link in my signature for the RC3 version for AJAX Chat Integration for SMF   RC3 (http://www.simplemachines.org/community/index.php?topic=257973.msg2529311#msg2529311)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rlh2006 on March 20, 2010, 01:09:39 AM
mrtrc266,

This is our error in the shoutbox: Error: Connection status: 500
We have chomd chat/index.php and shout/index.php to 775 as instructed.

Now when we try to manually open the chat window in a new window we get generic internal server error: Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mdj on March 20, 2010, 05:40:50 AM
ive just tried to upload the new chat which is re-programmed to 2.0 rc3 and it loaded fine, when i clicked on the chat link on my site tool bar it just says 500 internal server error, im not very clued up on computer programming, what do i need to do to get the chat running?

many thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mdj on March 20, 2010, 05:44:48 AM
according to my error log the reason is premature end of script?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: turboguy on March 20, 2010, 06:53:48 AM
Quote from: mrtrc266 on March 20, 2010, 12:56:45 AM
@ turboguy - yes it seems to be the permissions for your Member Groups need to be set /yourforum/index.php?action=permissions (http://yourforum/index.php?action=permissions)

Then select click the "Modify" link and you should see the options to give them permissions to access chat, moderate chat, etc.


Thanks mrtrc266.   When I go there I have a million options to set permissions but don't have any options to moderate the chat.  I am thinking now that I will delete it and do a fresh install that perhaps something didn't install right.

I really like this chat and have been using it on another forum I visit (moderate actually) and look forward to having it on my forum.  Thanks again for the help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wildmck8 on March 20, 2010, 09:38:39 AM
Looks like a wonderful mod.  Question though, when I try to apply it, I get this error:
Execute Modification     ./Themes/default/index.template.php     Test failed

Thoughts?

Thanks,
Luap
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 20, 2010, 09:43:02 AM
Quote from: mrtrc266 on March 20, 2010, 12:56:45 AM
@Royal, I have no idea. I only speak one language so even if I try to figure it out I won't have a clue LOL. Source Forge (http://sourceforge.net/projects/ajax-chat/forums/forum/774132) would be a great place to ask for your particular problem. Or even try a few searches there. I will dig around as well.

Its weird if you change the default language to Dutch the chat gets broken partially...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 20, 2010, 10:10:32 AM
Quote from: rlh2006 on March 20, 2010, 01:09:39 AM
mrtrc266,

This is our error in the shoutbox: Error: Connection status: 500
We have chomd chat/index.php and shout/index.php to 775 as instructed.

Now when we try to manually open the chat window in a new window we get generic internal server error: Internal Server Error. The server encountered an internal error or misconfiguration and was unable to complete your request.

I'm not sure if that is just a typo in your post, but those files should be chmodded to 755, not 775.

Quote from: mdj on March 20, 2010, 05:40:50 AM
ive just tried to upload the new chat which is re-programmed to 2.0 rc3 and it loaded fine, when i clicked on the chat link on my site tool bar it just says 500 internal server error, im not very clued up on computer programming, what do i need to do to get the chat running?

many thanks.


according to my error log the reason is premature end of script?

Check the FAQ on the first page of this thread. The 500 error can be caused by several things, and the solutions listed in the FAQ.

Quote from: turboguy on March 20, 2010, 06:53:48 AM
Quote from: mrtrc266 on March 20, 2010, 12:56:45 AM
@ turboguy - yes it seems to be the permissions for your Member Groups need to be set /yourforum/index.php?action=permissions (http://yourforum/index.php?action=permissions)

Then select click the "Modify" link and you should see the options to give them permissions to access chat, moderate chat, etc.


Thanks mrtrc266.   When I go there I have a million options to set permissions but don't have any options to moderate the chat.  I am thinking now that I will delete it and do a fresh install that perhaps something didn't install right.

I really like this chat and have been using it on another forum I visit (moderate actually) and look forward to having it on my forum.  Thanks again for the help.

You may want to double check that all of the edits were made, in particular, the language strings.

Quote from: wildmck8 on March 20, 2010, 09:38:39 AM
Looks like a wonderful mod.  Question though, when I try to apply it, I get this error:
Execute Modification     ./Themes/default/index.template.php     Test failed

Thoughts?

Thanks,
Luap

That's a fairly simple issue to fix. You can attach your index.template.php here, and we can make those changes. Then, install the mod (ignoring that error), and finally, upload the manually modded index.template.php to your theme's folder.

Quote from: RoyalMess on March 20, 2010, 09:43:02 AM
Quote from: mrtrc266 on March 20, 2010, 12:56:45 AM
@Royal, I have no idea. I only speak one language so even if I try to figure it out I won't have a clue LOL. Source Forge (http://sourceforge.net/projects/ajax-chat/forums/forum/774132) would be a great place to ask for your particular problem. Or even try a few searches there. I will dig around as well.

Its weird if you change the default language to Dutch the chat gets broken partially...

I cannot seem to reproduce the error. Can you attach both your English and Dutch language files please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wildmck8 on March 20, 2010, 10:32:16 AM
I ignored the error and installed it.  Then, manually modified the index and uploaded it.  Changed the permissions and voila, it works.  What a great mod.  Donation on the way.

Thanks,
Luap
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 20, 2010, 10:36:57 AM
Glad you got it sorted.  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wildmck8 on March 20, 2010, 11:34:31 AM
Where does one change the timeout option?  I get folks that sit dormant for a minute or two and it logs them out.

Thanks,
Luap
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 20, 2010, 11:38:20 AM
Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM
Set how long you want members to be idle before they are timed out.
Open.....yourforum/chat/lib/config.php (Change to whatever you like.)
Find
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;
           
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wildmck8 on March 20, 2010, 11:51:11 AM
Quote from: SunKing on March 20, 2010, 11:38:20 AM
Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM
Set how long you want members to be idle before they are timed out.
Open.....yourforum/chat/lib/config.php (Change to whatever you like.)
Find
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;
           

Thanks.  That did it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rlh2006 on March 20, 2010, 12:09:15 PM
Okay. We got the chat working now on our test board.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: xyzed on March 20, 2010, 10:31:44 PM
Hi There

Have a bit of a problem getting this to work. It works perfect on my test server via manual and package manager install (that I have control of) but for the live site I only have basic subversion access to upload then push the files (I can't install via package manager).

Now I've got it to show the shoutbox in the forum and standalone chat page, at first both were totally blank, nothing would show (though does in the DB). I tried SunKings tricks with .htaccess but that just resulted in ChatBot saying 404 every time you try to say something.

I then removed the .htaccess and instead of going back to blank ChatBot still says error 404.

Any suggestions ???


SMF 1.1.11/Ajaxchat 3.2.1 - pretty URL's are off.



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 20, 2010, 10:52:54 PM
Welcome to SMF! Can you post or PM a link to your site?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: khera on March 21, 2010, 05:04:43 AM
hi
i am use 2.0 rc3 and today i install this mod install sucess full

but i face little problem

i write for shout box but writen files not show in shoutbox why?

Plz Help Me Any 1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: taktiken on March 21, 2010, 07:20:56 AM
Thanks for the mod! I've just installed version for 2.0 RC3
Maybe the answers we given already, but....
- how can I move the shoutbox to footer section (above the Information Centre)?
- how can I disable the chat and keep the shoutbox running?
Thanks,

I've went thru: http://www.simplemachines.org/community/index.php?topic=257973.5480 but it doesn't do anything.

Well, I've done moving to the bottom  8)

Just please help with 2nd Q.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: turboguy on March 21, 2010, 08:17:35 AM
Well, I figured out why I can't change the permissions.  I had installed a number of mods at the same time and I recalled that one had an error message.  It was the Ajax Chat and my error message was that

Execute Modification ./Sources/ManagePermissions.php Test failed  

So that is why I can't modify permissons. 

How do I deal with that?

I did try a fresh install and got the same error message.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ThomasLindgren on March 21, 2010, 09:04:53 AM
Been trying my hardest to get this working, so I uninstalled it, removed every files and installed it again.

This is what happens at first:

Installations actions for "AjaxChat Integration":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/BoardIndex.php    Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./SSI.php    Test successful
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
7.    Execute Modification    ./Themes/default/index.template.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.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_1.1.X.php

Everything okay so far?

After installing I get this:
The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.

Seems okay?

Checked the forum and everything is just as it was before, nothing has changed.
Checked the forum error log and I have now 69 pages of errors, like this:

http://www.jolie.nu/forum/index.php?action=packages;sa=install2;package=AjaxChat_Integration_3.2.1.zip

2: unlink(d:\customers\jolie.nu\wwwroot\forum/Packages/temp/Tables_2.php) [<a href='function.unlink'>function.unlink</a>]: Permission denied
File: d:\customers\jolie.nu\wwwroot\forum\Sources\Subs-Package.php
Line: 1157

What is wrong and what can I do about it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 21, 2010, 10:32:06 AM
Just for kicks try the package attached here.
http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ThomasLindgren on March 21, 2010, 10:46:57 AM
Quote from: mrtrc266 on March 21, 2010, 10:32:06 AM
Just for kicks try the package attached here.
http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297
If it was an answer to me, it didn't help, the same errors and nothing happens.

Worth noting that no mods does anything to my forum, so I guess there's some bigger problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 21, 2010, 10:53:59 AM
Quote from: ThomasLindgren on March 21, 2010, 10:46:57 AM
Quote from: mrtrc266 on March 21, 2010, 10:32:06 AM
Just for kicks try the package attached here.
http://www.simplemachines.org/community/index.php?topic=257973.msg2353297#msg2353297
If it was an answer to me, it didn't help, the same errors and nothing happens.

Worth noting that no mods does anything to my forum, so I guess there's some bigger problem.

Ohhhhhh.....then yes it seems like you might have a bigger problem. You should be able to get the proper support here SMF 1.x Support (http://www.simplemachines.org/community/index.php?board=9.0)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: xyzed on March 21, 2010, 11:26:02 AM
Quote from: xyzed on March 20, 2010, 10:31:44 PM
Have a bit of a problem getting this to work. It works perfect on my test server via manual and package manager install (that I have control of) but for the live site I only have basic subversion access to upload then push the files (I can't install via package manager).

Now I've got it to show the shoutbox in the forum and standalone chat page, at first both were totally blank, nothing would show (though does in the DB). I tried SunKings tricks with .htaccess but that just resulted in ChatBot saying 404 every time you try to say something.

I then removed the .htaccess and instead of going back to blank ChatBot still says error 404.

Any suggestions ???

SMF 1.1.11/Ajaxchat 3.2.1 - pretty URL's are off.

Slight update. I realised url/forum/shoutBox/ as returning saying serverpath/forum/shoutBox/index.php cannot be found. Yet manually append index.php on hte end and the file came up.

So added DirectoryIndex index.php to .htacess for chat and shoutBox folders.

Great now the path works fine by the folder name/ only and the ChatBot 404 errors went away and shoutBox/?ajax=true&shoutbox=true pops up with a XML page with:
<infos>
<info type="channelID">0</info>
<info type="channelName">Public</info>
</infos>

<users>
<user userID="6" userRole="3" channelID="0">XXXX</user>
</users>
<messages/>
</root>

But still a totally blank shoutBox and Chat :-(

Retried SunKings RewriteRule ^/?$ ./index.php [L,QSA] but that 404's again :-(

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: turboguy on March 21, 2010, 12:24:08 PM
Quote from: turboguy on March 21, 2010, 08:17:35 AM
Well, I figured out why I can't change the permissions.  I had installed a number of mods at the same time and I recalled that one had an error message.  It was the Ajax Chat and my error message was that

Execute Modification ./Sources/ManagePermissions.php Test failed  

So that is why I can't modify permissons. 

How do I deal with that?

I did try a fresh install and got the same error message.

Just to let everyone know my problem is fixed now.  Thanks for the help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stkee on March 21, 2010, 12:36:23 PM
I got the same problem with my chatbox and shoutbox. Everything looks fine but unable to write anything on it. When I click the chatbox, it just keeps loging itself out everytime I tried to login.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: taktiken on March 21, 2010, 01:22:22 PM
... and few more questions:
3. How to set the number of messages in the shoutbox? At the moment it is 10 visible and the rest is available from the log file...
4. How to disable - for some groups of users - deletion or editing the message?
5. How to increase the height of the Shoutbox window?

Thanks
J
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 21, 2010, 10:16:00 PM
@ turboguy glad you got it sorted

@ stkee the you set the chat/index.php and /shoutbox/index.php to 755?

@ xyzed it's RewriteRule ^chat/?$ ./chat/index.php [L,QSA] also make sure that it's at the top of your .htaccess file

@ taktiken please read ~AJAX Chat Integration FAQ's  & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: emanuelpietri on March 22, 2010, 12:02:28 AM
i found that all index.php in chat and shoutbox directories must be setted to 755 and is working for me finaly!!!
if somebody need help just pm me for this problem :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 22, 2010, 12:08:06 AM
Quote from: mrtrc266 on March 21, 2010, 10:16:00 PM
@ stkee the you set the chat/index.php and /shoutbox/index.php to 755?

That's from the post above yours. ;)

Glad you got it sorted though! Enjoy the great mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MothMan on March 22, 2010, 12:19:57 AM
I've got an issue with this mod, installed on 2.0 RC3.

Everything seems to work more or less fine, but the forum error log is filling up with:




http://othersi.com/index.php?action=register;sa=usernamecheck;xml;username=ac

8: Undefined index: chat

File: /home/content/o/t/h/othersi/html/Sources/Subs.php
Line: 4104


The user in question is different in different log entries, but otherwise, I've got dozens and dozens of identical entries.

Line 4104 of Subs.php, as pointed to in the error log, is:

$chatButton = $txt['chat'];
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 12:46:14 AM
Been buggin everyone for years LOL

I think the fix was to change
$chatButton = $txt['chat'];
to
$chatButton = $txt['Chat'];
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stkee on March 22, 2010, 02:20:38 AM
Quote from: mrtrc266 on March 21, 2010, 10:16:00 PM
@ stkee the you set the chat/index.php and /shoutbox/index.php to 755?

Yes. It is already set to 755. But it is still the same. Shout box whatever I type, doesn't appear. Chatbox, once open it will go thru the loading than refresh itself to the login screen...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 02:24:02 AM
@ stkee post a link to your site or PM me if you don't want it pubic.

For further assistance if needed create a temp admin account and PM me the login info, I'll see what I can do.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Scaala on March 22, 2010, 05:07:49 AM
This is probably too little info for effective help... Anyway...

I just tried installing your mod and it seems to install correctly.  The option settings and permission settings all appear and are adjustable.  The tab for the chat appears just fine (I'm not interested in the shoutbox...).

Anyway, I click on the chat tab, and it opens a popup window for the chat...  The request hesitates for about 3/4 of a second, and then it provides this error message on a completely white background:

[an error occurred while processing this directive]

* * * * *

Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 22, 2010, 07:57:48 AM
Quote from: mrtrc266 on March 22, 2010, 12:46:14 AM
Been buggin everyone for years LOL

I think the fix was to change
$chatButton = $txt['chat'];
to
$chatButton = $txt['Chat'];

Change the line to:
$chatButton = 'Chat';

Quote from: Scaala on March 22, 2010, 05:07:49 AM
This is probably too little info for effective help... Anyway...

I just tried installing your mod and it seems to install correctly.  The option settings and permission settings all appear and are adjustable.  The tab for the chat appears just fine (I'm not interested in the shoutbox...).

Anyway, I click on the chat tab, and it opens a popup window for the chat...  The request hesitates for about 3/4 of a second, and then it provides this error message on a completely white background:

[an error occurred while processing this directive]

* * * * *

Any ideas?

PM or post a link to your site please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pipo_il_primero on March 22, 2010, 11:08:14 AM
hello all,
i've installed the mod on a 1.1.11 forum and it works great.
However, I would like to do a couple of changes and need your help:

1) I don't want everybody logging into the forum to be logged in as a chat user as well. This makes me have too many members in the chat but they don't chat...

2) I don't want to have the "shoutbox" on any of the forum pages.

any ideas/help?
Thanks!
PiP
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 22, 2010, 11:11:30 AM
1.  Use the membergroup permissions.

2.If you don't want the shoutbox visible then don't enable it in the admin area.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pipo_il_primero on March 22, 2010, 11:14:32 AM
thnsk for quick reply Brack but:

1) this will mean that I will have to limit access to the chat, while all I want to do if force a "manual login" to it.

2) In admin I only have option to enable the chat, not the shoutbox...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 22, 2010, 11:16:06 AM
Any errors on install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pipo_il_primero on March 22, 2010, 11:17:44 AM
none...
what's the screen I should see in admin panel in 1.1.11 version?
Cause the only option I have for shoutbox is to "link it" to chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 22, 2010, 11:21:27 AM
Not sure.

I have never used 1.1.11

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 11:42:54 AM
Quote from: Brack1 on March 22, 2010, 11:16:06 AM
Any errors on install?


I think you were talking about only being able to set "permissions" that is specific for allow your members to chat.

You need to go to Admin/Features and Options/ then uncheck "Enable the ShoutBox?"

In the FAQ's (link in my signature) you can set how long you want to wait for your chatters to be timed out, setting low will removed them from "Users in Chat" list after however many minutes you specify.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pipo_il_primero on March 22, 2010, 11:50:49 AM
thanks for the reply, but I have I think different problem:
Actually, when someone logs into the forum, is he/she automatically logged in the chat as well? Because I have the impression that he/she is.
If this is the case, I would like it so that when a member logs into the forum does NOT login automatically to the chat, but that he/she still has to go to the chat login screen and "manually" login...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 22, 2010, 11:53:59 AM
Gotcha

In that case the answer is no.

The members of the forum have to log into the chat themselves.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 12:00:35 PM
Quote from: pipo_il_primero on March 22, 2010, 11:50:49 AM
thanks for the reply, but I have I think different problem:
Actually, when someone logs into the forum, is he/she automatically logged in the chat as well? Because I have the impression that he/she is.
If this is the case, I would like it so that when a member logs into the forum does NOT login automatically to the chat, but that he/she still has to go to the chat login screen and "manually" login...


I'm not sure of away to force them type in their name and password, but they are NOT logged into chat until they actually click the "Chat" button.

Or if they start chatting in the shoutbox then they will be considered logged in as well, but that won't apply if you disable your shoutbox. (Did you figure that out BTW?)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pipo_il_primero on March 22, 2010, 12:01:57 PM
allright, then I have no problem ;)
thanks for the great support guys!

ps: I found the box to tick for the shoutbox, it was right there, but u know...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 12:08:46 PM
No problem....Enjoy! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MothMan on March 22, 2010, 12:51:33 PM
Quote from: SunKing on March 22, 2010, 07:57:48 AM
Quote from: mrtrc266 on March 22, 2010, 12:46:14 AM
Been buggin everyone for years LOL

I think the fix was to change
$chatButton = $txt['chat'];
to
$chatButton = $txt['Chat'];

Change the line to:
$chatButton = 'Chat';


Thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 22, 2010, 03:16:47 PM
@MothMan
You are quite welcome!

@mrtrc266
Congrats on the status change!

@Everyone
mrtrc266 is now listed as an additional author for this mod, meaning there won't be such massive waits between updates. I think a "thank you" is in order.

Thanks mrtrc266!  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on March 22, 2010, 03:18:06 PM
Indeed, congratulations :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 03:24:19 PM
Quote from: SunKing on March 22, 2010, 03:16:47 PM
@MothMan
You are quite welcome!

@mrtrc266
Congrats on the status change!

@Everyone
mrtrc266 is now listed as an additional author for this mod, meaning there won't be such massive waits between updates. I think a "thank you" is in order.

Thanks mrtrc266!  ;D


Quote from: Arantor on March 22, 2010, 03:18:06 PM
Indeed, congratulations :)

Thank you both as well for your contributions and support! The latest version already has 115 downloads in just a cpl days, well not anymore cuz I just updated it again  :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 03:25:27 PM
While SunKing was assisting a SMF Member the other night trying to get the chat going on his site a couple things were experimented with and a solution was discovered for that particular member.

It seems that some members install the AJAX Chat Integration without any errors and it visually looks like it installed fine, yet when they try to type something nothing happens. This is a known issue if you have Pretty URL's installed but in some cases it happens even if you don't have Pretty URL's installed (as in SunKings original find and recently updated find posted HERE (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)), I'm assuming that's do to some server configurations.

After SunKing discovered the solution I did some playing around, trying every possible scenario I could think of in regards to where the .htaccess needs to go and what needs to be in the .htaccess file.

The only way I can reproduce the error is to install Pretty URL's so here we go....

Experiment...
Installed Pretty URL's
Results: Chat and Shout fails

Added the following to the top line of the .htaccess file located in the same folder as SSI.php
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
With "Integrate shout box and chat room?" disabled...
Results: Chat works but ShoutBox fails.
With "Integrate shout box and chat room?" enabled...
Results: Chat and ShoutBox both work.

Next removed the following from the top line of the .htaccess file located in the same folder as SSI.php
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
Results: Chat and ShoutBox fails (LOL)

Created .htaccess file with the following lines and placed it in the /chat folder
RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

With "Integrate shout box and chat room?" disabled...
Results: Chat works but ShoutBox fails.
With "Integrate shout box and chat room?" enabled...
Results: Chat and ShoutBox both work.

Created .htaccess file with the following lines and placed it in the /shoutBox folder
RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

With "Integrate shout box and chat room?" disabled...
Results: Chat and ShoutBox both work.
With "Integrate shout box and chat room?" enabled...
Results: Chat and ShoutBox both work.

This was tested SMF 1.1.11 and RC3, so it seems that nothing needs to be added to the .htaccess file in same folder that your SSI.php is and that only an .htaccess file needs to be created and added to the /chat and /shoutBox folders with 2 lines of code in it.
RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


The package AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip (http://custom.simplemachines.org/mods/index.php?mod=1319) on the Mod Home Page has been updated

HOPEFULLY this is prevent any future problems of this nature whether anyone has Pretty URL's installed or not and whether anyone has their Chat / Shout Integrated or not. A HUGE THANKS to SunKing for his contributions as always!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: khera on March 22, 2010, 03:43:26 PM
AjaxChat Integration (latest version 3.2.1) not work with 2.0 RC3
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 03:46:12 PM
Quote from: khera on March 22, 2010, 03:43:26 PM
AjaxChat Integration (latest version 3.2.1) not work with 2.0 RC3

Download the other one AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on March 22, 2010, 03:46:44 PM
Quote from: khera on March 22, 2010, 03:43:26 PM
AjaxChat Integration (latest version 3.2.1) not work with 2.0 RC3

Did you try:    AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip


EDIT: Ninja'd
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: khera on March 22, 2010, 03:50:59 PM
yes brother i already try this
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: khera on March 22, 2010, 03:54:24 PM
bro i write in shoutbox but post not show in shoutbox
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 03:56:34 PM
try a hard refresh ctrl+f5
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Scaala on March 22, 2010, 04:03:51 PM
I just updated to your newest version and my problem still lingers, so we know it wasn't that. :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 22, 2010, 04:14:46 PM
Everything I have found so far for [an error occurred while processing this directive] points to SSI malfunctions. This can still be caused by a number of things, but at least it's a place for us to start looking.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 04:49:52 PM
LMAO disregard the post I just removed that was @ khera not Scalla

Anyway khera you had Ez Portals shout enabled along with nneonneo's AJAX ShoutBox and AJAX Chat Integration installed, there might a conflict. I disabled Ez Portals shout but please try uninstalling nneonneo's.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: powaserv on March 22, 2010, 05:07:49 PM
Hi all,


I just installed the version to rc3.
My first problem was the 500 error, I resolved by applying the permissions 644 / 755 adequate.
Now, I may write whatever is tonight, nothing appears.

Can you tell me where the problem could come.


Thanks.

PowA
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 05:22:42 PM
Quote from: powaserv on March 22, 2010, 05:07:49 PM
Hi all,

I just installed the version to rc3.
My first problem was the 500 error, I resolved by applying the permissions 644 / 755 adequate.
Now, I may write whatever is tonight, nothing appears.

Can you tell me where the problem could come.

Thanks.

PowA

Uhg, so much for my post above LOL

Is it just the Chat Room, ShoutBox or both that's not working?

What Mods do you have installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 05:44:40 PM
Quote from: mrtrc266 on March 22, 2010, 04:49:52 PM
LMAO disregard the post I just removed that was @ khera not Scalla

Anyway khera you had Ez Portals shout enabled along with nneonneo's AJAX ShoutBox and AJAX Chat Integration installed, there might a conflict. I disabled Ez Portals shout but please try uninstalling nneonneo's.



You ShoutBox and Chat Room are working fine, uninstalling the other Chat Mods worked. You can see it working here on the default Curve theme www.yoursite/forum/?theme=1

You will have to manually uninstall the other Chat Mod for the theme that you're using
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Welovea1 on March 22, 2010, 05:48:02 PM
We just upgraded our test forum to 2.0 RC 3 with no mods installed.  Ajax then successfully installed but the shoutbox displays this error:

Fatal error: require() [function.require]: Failed opening required '/home/welovea2/public_html/jagr/shoutBox/lib/class/AJAXChat.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/welovea2/public_html/jagr/shoutBox/lib/classes.php  on line 11

We'd love to use this shoutbox but need help resolving this.  Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 22, 2010, 07:48:45 PM
Quote from: mrtrc266 on March 22, 2010, 06:13:47 PM
Quote from: Welovea1 on March 22, 2010, 05:48:02 PM
We just upgraded our test forum to 2.0 RC 3 with no mods installed.  Ajax then successfully installed but the shoutbox displays this error:

Fatal error: require() [function.require]: Failed opening required '/home/welovea2/public_html/jagr/shoutBox/lib/class/AJAXChat.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/welovea2/public_html/jagr/shoutBox/lib/classes.php  on line 11

We'd love to use this shoutbox but need help resolving this.  Thanks!

Link to your site please? PM if you don't want it public.

You're all set, I'm not sure what the prob was all I did was uninstall then reinstall and it worked LOL.

Enjoy the Mod :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Welovea1 on March 22, 2010, 10:55:41 PM
Problem solved! Thanks SO much mrtrc266 for all your wonderful help!!! ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 23, 2010, 10:30:23 AM
Quote from: khera on March 22, 2010, 03:54:24 PM
bro i write in shoutbox but post not show in shoutbox

You get this sorted?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesicilian on March 23, 2010, 04:31:21 PM
Installed Ajaxchat on 1.1.11 using Black Rain v2.0 theme.

Chat button is not installed, but not bothered too much about that, I suppose the theme will need to be edited to add that?

What I would like to fix is though is a the error connection:0 bug. It only happens when a moderator/admin deletes a shout or when the shoutbox prunes its messages, I assume its supposed to auto prune the messages? Both chat & shoutbox folders are chmodded 755 inc sub files.

I've added RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to .htaccess in public_html and also added .htaccess files to both chat & shoutbox folders containing the following: -

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

I'd to try and fix this error connection:0 problem, any help is very much appreciated.
Title: Re: AjaxChat Integration
Post by: [unplugged] on March 23, 2010, 06:57:46 PM
Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM
If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing
Open chat/js/chat.js
Find
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
Replace with
if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}

Title: Re: AjaxChat Integration
Post by: thesicilian on March 24, 2010, 03:12:54 AM
Quote from: SunKing on March 23, 2010, 06:57:46 PM
Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM
If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing
Open chat/js/chat.js
Find
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
Replace with
if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}


Thank you for the reply, testing now.

One thing I'd like to know, is it possible to change the shoutbox name? I'd to change it Shoutbox - Only for general chat I've attached a screenshot of the part I'd like to rename.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Faythi on March 24, 2010, 04:49:21 AM
Hello, I just installced SMF 2.0 RC3. Theres no mods on it except for Admin Notes. I downloaded the curve friendly version, installed the mod and enabled the shoutbox.
The shoutbox appears at the top but is blank and anything you try to type won't be entered into the box. I tried editing the .htaccess file with Rewrite On and RewriteRule ^chat/?$ ./chat/index.php [L,QSA] but my whole site and forums gets an Internal Server error O.o

When I first went into the forums folder that had the SSI.php, I didn't even see an .htaccess file so I created one myself and put those two lines inside. I also get the internal server error putting the lines in my site's root.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: noaccess on March 24, 2010, 06:14:01 AM
Quote from: iulisan on March 24, 2010, 05:57:31 AM
Hello.I got installed SMF 1.1.11 and when I try to install ajaxchat I got this message :

Execute Modification ./Sources/ManagePermissions.php Test failed 

What can I do , please advise me.Thank you.
You have to manually add the changes to that file and upload it to your server via ftp.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: iulisan on March 24, 2010, 06:31:45 AM
Quote from: noaccess on March 24, 2010, 06:14:01 AM
Quote from: iulisan on March 24, 2010, 05:57:31 AM
Hello.I got installed SMF 1.1.11 and when I try to install ajaxchat I got this message :

Execute Modification ./Sources/ManagePermissions.php Test failed 

What can I do , please advise me.Thank you.
You have to manually add the changes to that file and upload it to your server via ftp.

I solved the problem by uninstalling other mods and reinstall ajaxchat .Thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 24, 2010, 06:37:55 AM
Quote from: iulisan on March 24, 2010, 06:31:45 AM
Quote from: noaccess on March 24, 2010, 06:14:01 AM
Quote from: iulisan on March 24, 2010, 05:57:31 AM
Hello.I got installed SMF 1.1.11 and when I try to install ajaxchat I got this message :

Execute Modification ./Sources/ManagePermissions.php Test failed 

What can I do , please advise me.Thank you.
You have to manually add the changes to that file and upload it to your server via ftp.

I solved the problem by uninstalling other mods and reinstall ajaxchat .Thank you.

Were there no errors on install? To fix errors like this the files are to be edited manually.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 24, 2010, 07:57:01 AM
Quote from: SunKing on March 20, 2010, 10:10:32 AM
Quote from: RoyalMess on March 20, 2010, 09:43:02 AM
Quote from: mrtrc266 on March 20, 2010, 12:56:45 AM
@Royal, I have no idea. I only speak one language so even if I try to figure it out I won't have a clue LOL. Source Forge (http://sourceforge.net/projects/ajax-chat/forums/forum/774132) would be a great place to ask for your particular problem. Or even try a few searches there. I will dig around as well.

Its weird if you change the default language to Dutch the chat gets broken partially...

I cannot seem to reproduce the error. Can you attach both your English and Dutch language files please?

Sorry about the late reaction :P

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stkee on March 24, 2010, 10:35:41 AM
Quote from: mrtrc266 on March 22, 2010, 02:24:02 AM
@ stkee post a link to your site or PM me if you don't want it pubic.

For further assistance if needed create a temp admin account and PM me the login info, I'll see what I can do.

Link to my site is as follow: http://forum.icabbies.org

I've disable the shoutbox and used the one from ezportal. But the chat is still there and its still not working. Whenever I try to start the chat room, it will load up fine and when its fully loaded, it just log off by itself...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 24, 2010, 10:43:45 AM
Quote from: stkee on March 24, 2010, 10:35:41 AM
Quote from: mrtrc266 on March 22, 2010, 02:24:02 AM
@ stkee post a link to your site or PM me if you don't want it pubic.

For further assistance if needed create a temp admin account and PM me the login info, I'll see what I can do.

Link to my site is as follow: http://forum.icabbies.org

I've disable the shoutbox and used the one from ezportal. But the chat is still there and its still not working. Whenever I try to start the chat room, it will load up fine and when its fully loaded, it just log off by itself...

Have you tried installing the latest one? I was just updated yesterday
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 24, 2010, 10:45:22 AM
Quote from: Faythi on March 24, 2010, 04:49:21 AM
Hello, I just installced SMF 2.0 RC3. Theres no mods on it except for Admin Notes. I downloaded the curve friendly version, installed the mod and enabled the shoutbox.
The shoutbox appears at the top but is blank and anything you try to type won't be entered into the box. I tried editing the .htaccess file with Rewrite On and RewriteRule ^chat/?$ ./chat/index.php [L,QSA] but my whole site and forums gets an Internal Server error O.o

When I first went into the forums folder that had the SSI.php, I didn't even see an .htaccess file so I created one myself and put those two lines inside. I also get the internal server error putting the lines in my site's root.

Try creating an .htaccess file and only put this line in it, then upload it to the same folder where your SSI.php is
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stkee on March 24, 2010, 10:49:32 AM
Quote from: mrtrc266 on March 22, 2010, 02:24:02 AM

Have you tried installing the latest one? I was just updated yesterday


Now I can't even uinstall the one on my site. It prompt error when I click uninstall.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 24, 2010, 10:53:02 AM
@  thesicilian
Usually you can just change the text in the language file but it's not workin for some reason LOL. Here you go though.

Find /yourforum/Themes/default/Shout.template.php
</a>', $txt['shoutBox'], '
Replace with
</a>Shoutbox - Only for general chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 24, 2010, 10:57:07 AM
Quote from: stkee on March 24, 2010, 10:49:32 AM
Quote from: mrtrc266 on March 22, 2010, 02:24:02 AM

Have you tried installing the latest one? I was just updated yesterday

Now I can't even uinstall the one on my site. It prompt error when I click uninstall.

It's cuz you have installed other mods that have moved the code around. You'll have to see what files didn't pass and manually make those edits using the Mods Parser.

I'm off to work, will be back in about 13 hrs or so, post back if you have any probs and someone will be to your rescue.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 24, 2010, 11:01:39 AM
Quote from: thesicilian on March 24, 2010, 03:12:54 AM
Quote from: SunKing on March 23, 2010, 06:57:46 PM
Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM
If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing
Open chat/js/chat.js
Find
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
Replace with
if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}


Thank you for the reply, testing now.

One thing I'd like to know, is it possible to change the shoutbox name? I'd to change it Shoutbox - Only for general chat I've attached a screenshot of the part I'd like to rename.

Open /Themes/default/languages/Shout.english.php and find $txt['shoutBox'] = 'ShoutBox';. Change 'ShoutBox' to whatever you desire.

Quote from: Faythi on March 24, 2010, 04:49:21 AM
Hello, I just installced SMF 2.0 RC3. Theres no mods on it except for Admin Notes. I downloaded the curve friendly version, installed the mod and enabled the shoutbox.
The shoutbox appears at the top but is blank and anything you try to type won't be entered into the box. I tried editing the .htaccess file with Rewrite On and RewriteRule ^chat/?$ ./chat/index.php [L,QSA] but my whole site and forums gets an Internal Server error O.o

When I first went into the forums folder that had the SSI.php, I didn't even see an .htaccess file so I created one myself and put those two lines inside. I also get the internal server error putting the lines in my site's root.

First, welcome to SMF!

Have you chmodded the files and folders as described in the FAQ?

Quote from: RoyalMess on March 24, 2010, 07:57:01 AM
Quote from: SunKing on March 20, 2010, 10:10:32 AM
Quote from: RoyalMess on March 20, 2010, 09:43:02 AM
Quote from: mrtrc266 on March 20, 2010, 12:56:45 AM
@Royal, I have no idea. I only speak one language so even if I try to figure it out I won't have a clue LOL. Source Forge (http://sourceforge.net/projects/ajax-chat/forums/forum/774132) would be a great place to ask for your particular problem. Or even try a few searches there. I will dig around as well.

Its weird if you change the default language to Dutch the chat gets broken partially...

I cannot seem to reproduce the error. Can you attach both your English and Dutch language files please?

Sorry about the late reaction :P

;D I'll take a look at it today and see if I can reproduce that error. Also, I have yet to receive a reply about the copyright stuff from over at SourceForge...

@mrtrc266
You ninja...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 24, 2010, 11:14:45 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fforums.g4tv.com%2Fimages%2Fsmilies%2Fcustom%2Fninja.gif&hash=93ee2fe2ba841b654428957d4dce39923ef6baac)
I tried changing $txt['shoutBox'] = 'ShoutBox'; in the Shout.english.php file but it didn't work for some reason. But then it may be just too early in the morning and I uploaded it to the wrong place or something like that LOL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 24, 2010, 11:23:02 AM
With language files, you have to clear the site cache in the admin panel before those changes will show up.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: noaccess on March 24, 2010, 11:26:50 AM
Anyone thought about making ALICE chatbot work with this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 24, 2010, 11:27:05 AM
Quote from: SunKing on March 24, 2010, 11:23:02 AM
With language files, you have to clear the site cache in the admin panel before those changes will show up.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.kiwibiker.co.nz%2Fforums%2Fimages%2Fsmilies%2Fdoh.gif&hash=8c3d041c4d0de158d69257ad13157d2159cc5099)

LOL, Ok I'm really out this time
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on March 24, 2010, 11:38:11 AM
Quote from: SunKing on March 24, 2010, 11:23:02 AM
With language files, you have to clear the site cache in the admin panel before those changes will show up.
How to do that?
Using SMF 1.1.11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 24, 2010, 11:41:48 AM
I don't think 1.1.x has the option to clear the site cache.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on March 24, 2010, 11:55:01 AM
There's no need to clear the language cache in 1.1, no such thing exists.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 24, 2010, 12:30:17 PM
Yeah, I guess that would explain the lack of the option to clear it.  ;D

Thanks Arantor.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on March 24, 2010, 12:59:23 PM
If language strings are missing, odds are you're using something like English-utf8 which may not have the edits applied, or another language that is missing lang support entirely.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Faythi on March 24, 2010, 04:16:29 PM
QuoteFirst, welcome to SMF!

Have you chmodded the files and folders as described in the FAQ?

Thanks :). I had another account but forgot the user and email hehe. Both the shoutbox and chat folders are 755 and the index.php inside both are 755. I tried the line of code for the .htaccess that mrtrc266 suggested:

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

But this still give my forums an internal server error.

UPDATE: Actually I removed the line from the .htaccess and my chat works but not my shoutbox. Going to play around with the chatbox more and make sure its fully working. The shoutbox is there, it lets you input text but if you submit, nothing happens and the window where it shows all messages is empty.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 7s-1k on March 24, 2010, 05:15:07 PM
Hi there,

I've been working on my RC3 forum with the Overview Light template by Dzinerstudio and 'normal members' only can see a white shoutbox.. they can shout but they don't see anything... only admins can..

How can I fix this?




as admin:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F2w55yz9.jpg&hash=84498fc51d850585b491636ffba1a7f3f25717bf)

as member:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F1zxozki.jpg&hash=d813333c58610451c856b9aef7a855201c6a7226)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Faythi on March 24, 2010, 05:42:38 PM
Quote from: 7s-1k on March 24, 2010, 05:15:07 PM
Hi there,

I've been working on my RC3 forum with the Overview Light template by Dzinerstudio and 'normal members' only can see a white shoutbox.. they can shout but they don't see anything... only admins can..

How can I fix this?




as admin:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F2w55yz9.jpg&hash=84498fc51d850585b491636ffba1a7f3f25717bf)

as member:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F1zxozki.jpg&hash=d813333c58610451c856b9aef7a855201c6a7226)

Hmm, Yeah your shoutbox as a member is the problem I'm having also. Except I'm an admin on my website and it's like that for members as well as admins =/

Also I just noticed that for my shoutbox, none of the smileys show up.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 7s-1k on March 24, 2010, 05:51:36 PM
Hmm, as member, i see this in chat:

Notice: Undefined index: aeva_home in /var/www/vhosts/7s-1k.nl/subdomains/forum/httpdocs/Sources/Subs.php  on line 4376

Notice: Undefined index: aeva_unseen in /var/www/vhosts/7s-1k.nl/subdomains/forum/httpdocs/Sources/Subs.php on line 4381
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 25, 2010, 12:43:27 AM
@7s-1k, if only admins can see the chat hopefully it's something as simple as being sure that gave your members "permission" to chat / shout. Very odd that they can shout but can't see it though?
http://www.yoursite.com/index.php?action=admin;area=permissions (http://www.yoursite.com/index.php?action=admin;area=permissions)

@ Faythi just a couple days ago a member had the same problem where the chat worked fine but the shout didn't. The problem was that there were still some remnants of code from another chat mod in the index.template.php file. By any chance have you had another chat mod installed in the past?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: xyzed on March 25, 2010, 01:10:45 AM
Quote from: mrtrc266 on March 22, 2010, 03:25:27 PM
This was tested SMF 1.1.11 and RC3, so it seems that nothing needs to be added to the .htaccess file in same folder that your SSI.php is and that only an .htaccess file needs to be created and added to the /chat and /shoutBox folders with 2 lines of code in it.
RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


HOPEFULLY this is prevent any future problems of this nature whether anyone has Pretty URL's installed or not and whether anyone has their Chat / Shout Integrated or not. A HUGE THANKS to SunKing for his contributions as always!

Still not working for me :-( - blank shoutbox/chat still showing.

However I think I may have found something.

If I look at domain.com/forum/chat/?ajax=true&shoutbox=true&lastID=XX and view the source on the working server it's:
"<?xml version="1.0" encoding="UTF-8"?><root><infos></infos><users><user userID="6" userRole="3" channelID="0"><![CDATA[.........."
The above appearing on the first line.


However on the server that it is blank on is showing like this:
"   empty line here
<?xml version="1.0" encoding="UTF-8"?><root><infos></infos><users><user userID="6" userRole="3" channelID="0"><![CDATA[........"
The above appearing with a blank first line, so white space.

Only question is how to remove that line of white space to see if that's the problem.

EDIT: YES IT WORKS !!!!!!!!!!!!!!!!!!!

There was whitespace in 2 files.

forum/index.php and;
forum/chat/lib/config.php

both had 1-2 blank lines at the end of the files after ?> so not sure which one or if both were the cause.

Happy Happy Joy Joy  ;D

* Interesting to note that the server that it was working on has those additional lines too, but not affected.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Faythi on March 25, 2010, 01:39:06 AM
Quote from: mrtrc266 on March 25, 2010, 12:43:27 AM
@ Faythi just a couple days ago a member had the same problem where the chat worked fine but the shout didn't. The problem was that there were still some remnants of code from another chat mod in the index.template.php file. By any chance have you had another chat mod installed in the past?

Hmm, at one point I did have a different shoutbox installed.

Not sure how I'd scan it to see what was left over. I'll uninstalling all my mods, redownloading the template im using and replace the index.template.php file. Then I'll try reinstalling AjaxChat. Let's see if that works.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Faythi on March 25, 2010, 01:51:23 AM
Okay, thats what it was ^_^.

I had originally installed another shoutbox to see what it was like. I wasn't fond of it so uninstalled it immediately. You were right, it must have left some sort of remnants that were not uninstalled.

Here's what I did for any future people with the issue:
Uninstalled all my mods (which was like 2), replaced the index.template.php files with fresh copies that were unaltered from the original one provided with the template, had to CHMOD the 2 folders their 2 index.php again.

And now everything works great.
Thanks for all your help :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 25, 2010, 02:00:50 AM
Quote from: Faythi on March 25, 2010, 01:39:06 AM
Quote from: mrtrc266 on March 25, 2010, 12:43:27 AM
@ Faythi just a couple days ago a member had the same problem where the chat worked fine but the shout didn't. The problem was that there were still some remnants of code from another chat mod in the index.template.php file. By any chance have you had another chat mod installed in the past?
Quote from: Faythi on March 25, 2010, 01:51:23 AM
Okay, thats what it was ^_^.

I had originally installed another shoutbox to see what it was like. I wasn't fond of it so uninstalled it immediately. You were right, it must have left some sort of remnants that were not uninstalled.

Here's what I did for any future people with the issue:
Uninstalled all my mods (which was like 2), replaced the index.template.php files with fresh copies that were unaltered from the original one provided with the template, had to CHMOD the 2 folders their 2 index.php again.

And now everything works great.
Thanks for all your help :)

WOOOHOOOO!!! Glad you got it sorted. Enjoy the Mod and please post back if you have anymore questions / problems
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 25, 2010, 02:11:21 AM
@ xyzed
QuoteIt works perfect on my test server via manual and package manager   install (that I have control of) but for the live site I only have basic   subversion access to upload then push the files (I can't install via   package manager).

If you can't install this via the package manager on your live site can whoever does have control try it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: xyzed on March 25, 2010, 07:06:23 AM
Quote from: mrtrc266 on March 25, 2010, 02:11:21 AM
@ xyzed
QuoteIt works perfect on my test server via manual and package manager   install (that I have control of) but for the live site I only have basic   subversion access to upload then push the files (I can't install via   package manager).

If you can't install this via the package manager on your live site can whoever does have control try it?

Finally resolved !!! - it was whitespace. See 5 replies above (http://www.simplemachines.org/community/index.php?topic=257973.msg2554257#msg2554257)

I can now go to sleep :-)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 7s-1k on March 25, 2010, 07:18:59 AM
Quote from: mrtrc266 on March 25, 2010, 12:43:27 AM
@7s-1k, if only admins can see the chat hopefully it's something as simple as being sure that gave your members "permission" to chat / shout. Very odd that they can shout but can't see it though?
http://www.yoursite.com/index.php?action=admin;area=permissions (http://www.yoursite.com/index.php?action=admin;area=permissions)

I know. But all members have the permission to see and 'can' shout/chat. Everyone has the permission to shout/chat. So it's kinda weird..
Title: Fatal error: Cannot redeclare getshoutboxcontent
Post by: LOTL on March 25, 2010, 12:08:56 PM
Just installed version 3.2.1 on SMF 1.1.11. The install said it completed without errors, but now the site is dead and im getting the following error. The only other mod i have installed that was functioning properly is the Aeva Gallery.
Was using the default SMF theme.

Fatal error: Cannot redeclare getshoutboxcontent() (previously declared in /home/xxxx/public_html/MyForum/Sources/Load.php:2217) in /home/xxxx/public_html/MyForum/Sources/Load.php on line 2295

OK got the site back up by renaming the Load.php file to Load.phpbac and then it appears the AjaxChat install renamed the old Load.php file to Load.php~. I renamed it to plain ole Load.php and the site is running again.

Here are lines 2283 to 2298:
// Validate the path to the chat:
  if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php')){
      // Include Class libraries:
      require_once(AJAX_CHAT_PATH.'lib/classes.php');

      // Initialize the shoutbox:
      $ajaxChat = new CustomAJAXChatShoutBox();

      // Parse and return the shoutbox template content:
      return $ajaxChat->getShoutBoxContent($mini); 
  }
   return null;
} (this is all that is on Line 2295)

function chatOnlineUsers(){
   global $db_prefix;

Any ideas on this one?

Ends up there were 2 separate entries with the same info as shown below.
// Validate the path to the chat:
  if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php')){
      // Include Class libraries:
      require_once(AJAX_CHAT_PATH.'lib/classes.php');

      // Initialize the shoutbox:
      $ajaxChat = new CustomAJAXChatShoutBox();

      // Parse and return the shoutbox template content:
      return $ajaxChat->getShoutBoxContent($mini); 
  }
   return null;
}

function chatOnlineUsers(){
   global $db_prefix;
   
   $userIDs = array();
   $result = db_query("SELECT userID
      FROM ${db_prefix}ajaxchat_online   WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)
      ", __FILE__, __LINE__);
   while($row = mysql_fetch_assoc($result)) {
      array_push($userIDs, $row['userID']);
      }
   mysql_free_result($result);
   return array_unique($userIDs);
}

I deleted one of them and was able to view the forum, but only part of it. Under the main forum heading all is is this error message. Unable to load the 'shout_above' template

I download a backup from before the Ajax Mod was installed, unzipped it and im in the process of uploading it now.
Hopefully my forum will be back to normal after.

What could have caused this? And what can i do to prevent it, should i try to install the AjaxChat mod again?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Xarcell on March 25, 2010, 06:24:23 PM
I have TinyPortal installs on my SMF RC3 site.

I installed the curve friendly version and received this error: Undefined index: tp-forum in /home/xxxxxx/xxxxxx.com/Sources/Subs.php on line 3904
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 26, 2010, 01:24:21 AM
@ LOTL anytime you install a Mod any files that are edited are renamed with a ~ which is the back up, that's why you have the Load.php~.

Anyway, sometimes Mods can conflict with each other. Sometimes it might be as simple as reinstalling the Mods in the reversed order that you originally installed them.

In your case it looks like the Mod was installed twice if you have 2 instances of the same code. You can always go to the Mods Parser to see EXACLTY what changes were made, undo to them and try again. On the Mods home page see where it says "Manual Install Instructions for SMF" and select the SMF version you're using.

Hopefully that helps a little

@ Xarcell
Is that error related to AJAX Chat Integration?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LOTL on March 26, 2010, 08:00:12 AM
Thanks mrtrc266,
Now that i know the backup works, i went ahead and reinstalled the Ajax Chat mod again. This time i didnt get the errors, but the button is missing between Members and Logout (although there is a small empty space between them). Also in the Features and Options> Basic Features section there are now 6 new check boxes with no description beside them.

I hate to uninstall the Aeva mod and lose all of the albums, comments etc. the users would get a little pissed if that were to happen. Guess ill have to pass on the  AjaxChat mod unless there is a way to backup the Media Gallery and restore the content after reinstalling it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 26, 2010, 08:03:24 AM
Quote from: LOTL on March 26, 2010, 08:00:12 AM

I hate to uninstall the Aeva mod and lose all of the albums, comments etc. the users would get a little pissed if that were to happen. Guess ill have to pass on the  AjaxChat mod unless there is a way to backup the Media Gallery and restore the content after reinstalling it.

You don't lose the albums etc when you uninstall the aeva mod.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 26, 2010, 08:04:21 AM
LOTL, you just have some language issues. It looks like either the language strings weren't installed, or you are using a custom theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LOTL on March 26, 2010, 08:36:37 AM
Sunking im using the Default SMF theme as i have some unresolved issues trying to use the Black Rain V2 theme with the Aeva mod.
I have now uninstalled the AjaxChat mod via the admin page without issue. Would it be beneficial  to reinstall the AjaxChat mod again and then attach a few of the php files to a post and have someone here review them?

Is it possible that having other themes installed but not enabled could cause this? If so i have no issue uninstalling the themes to try and get AjaxChat working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: macieks on March 26, 2010, 10:56:14 AM
how I can delete text "chat" from menu

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg231.imageshack.us%2Fimg231%2F1592%2Fchattt.jpg&hash=6ef0e7ea690ce64c9d0af2ee42e53f0ad3350b88)


I need chat only for one group.. and dont want to other members know about chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: evilhomer on March 26, 2010, 12:58:35 PM
I'm on SMF 1.1.11.  Is there a way to turn off the sound in the shoutbox and change the color of the shoubox to something darker and the text to white?

Also, can the amount of chat history visible to users in the shoutbox be expanded?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 26, 2010, 04:24:06 PM
Quote from: LOTL on March 26, 2010, 08:36:37 AM
Sunking im using the Default SMF theme as i have some unresolved issues trying to use the Black Rain V2 theme with the Aeva mod.
I have now uninstalled the AjaxChat mod via the admin page without issue. Would it be beneficial  to reinstall the AjaxChat mod again and then attach a few of the php files to a post and have someone here review them?

Is it possible that having other themes installed but not enabled could cause this? If so i have no issue uninstalling the themes to try and get AjaxChat working.

Open Modifications.english.php and check that the following code is there. If you have another language being used, then you may need to just make a copy of that file and name it something like Modifications.dutch.php or whatever your language may be. Either way, the following code needs to be in your language's file: //Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Can shout';
$txt['permissionhelp_shout_access'] = 'Give access to write in shout box.';
$txt['permissionname_shout_view'] = 'View shoutBox';
$txt['permissionhelp_shout_view'] = 'Give access to view the shoutBox';
$txt['permissionname_shout_mod'] = 'Moderate shoutBox';
$txt['permissionhelp_shout_mod'] = 'Give access to moderate the shoutBox.';
$txt['permissionname_chat_mod'] = 'Moderate chat';
$txt['permissionhelp_chat_mod'] = 'Give access to moderate the chat.';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration



Quote from: macieks on March 26, 2010, 10:56:14 AM
how I can delete text "chat" from menu

I need chat only for one group.. and dont want to other members know about chat.

First, welcome to SMF!

Open index.template.php and find and remove the following code:// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';


Quote from: evilhomer on March 26, 2010, 12:58:35 PM
I'm on SMF 1.1.11.  Is there a way to turn off the sound in the shoutbox and change the color of the shoubox to something darker and the text to white?

Also, can the amount of chat history visible to users in the shoutbox be expanded?

First, welcome to SMF also!

I'm not sure if you can turn the sound off in the shoutbox independently of the chatroom. The colors are going to be controlled by shoutbox.css in the default theme's folder. The history question will be better answered by mrtrcc266 or another. ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: evilhomer on March 26, 2010, 04:48:25 PM
Quote from: SunKing on March 26, 2010, 04:24:06 PM
First, welcome to SMF also!

I'm not sure if you can turn the sound off in the shoutbox independently of the chatroom. The colors are going to be controlled by shoutbox.css in the default theme's folder. The history question will be better answered by mrtrcc266 or another. ;)

Thanks!  What file references shoutbox.css to determine the style?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 27, 2010, 01:14:33 AM
Quote from: evilhomer on March 26, 2010, 12:58:35 PM
I'm on SMF 1.1.11.  Is there a way to turn off the sound in the shoutbox and change the color of the shoubox to something darker and the text to white?

Also, can the amount of chat history visible to users in the shoutbox be expanded?

To disable sound in the ShoutBox.
Find /chat/lib/template/shoutbox.html

ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

Replace With

ajaxChatConfig.settings.audio =false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink','audio');


To Expand the amount of chats/shouts visible when users log in.
Find /chat/lib/config.php and change 10 to whatever you like (don't get to crazy, probably no more than 100 or so should be fine)
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;


In addition to that also increase how long the chat/shouts stay visible.
Find /chat/lib/config.php (24 represents hours) increase to 36 - 48
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;


NOTE: If you DO NOT have your Chat and Shout integrated then you'll have to make the same edits to the same files in your /shoutBox folder.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: taktiken on March 27, 2010, 05:29:46 PM
mrtrc266 thanks for all the hints you give!
got some more questions:
- how to disable some of BB codes? (right now my users are pasting [img]s...
- is it possible to add permissions to the admins for editing other user's post?
- is it possible to add "Date and Time" to the message timestamp in shoutbox?
- the removal of Chat from forum menu from SunKing desn't work for me (2.3.1 version, Curve template SMF 2.0 RC3)
Thanks for help,
J
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dharshan on March 28, 2010, 12:18:39 AM
Hi, I'm using simple portal 2.3.1 on my SMF2 RC3, can i intergrate this ajax chat box to simple portal modules?

so that I'm able to place it on a side or in the middle of the portal page...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 28, 2010, 10:30:15 AM
Quote from: taktiken on March 27, 2010, 05:29:46 PM
mrtrc266 thanks for all the hints you give!
got some more questions:

the removal of Chat from forum menu from SunKing desn't work for me (2.3.1 version, Curve template SMF 2.0 RC3)
For SMF 2 it's in a different spot.
Find and remove /Sources/Subs.php
         'chat' => array(
         'title' => $chatButton,
         'href' => $chatLink,
         'show' => true,
         'sub_buttons' => array(
         ),
      ),


how to disable some of BB codes? (right now my users are pasting   
Not sure how to disable the ability insert BB Code into the shout/chat   but you can remove the buttons located in   /chat/lib/template/shoutbox.html
   
is it possible to add permissions to the admins for   editing other user's post?
Only way I know would be to do it via MyphpAdmin

is it possible to add "Date and Time" to the message timestamp in   shoutbox?
The location of the date/time format is in /chat/js/config.js
        // Defines the format of the date and time displayed for each chat message:
        dateFormat: '(%H:%i:%s)',

(http:///chat%20%C2%A0%20but%20you%20can%20remove%20the%20buttons%20located%20in%20%C2%A0%20/chat/lib/template/shoutbox.html%20%C2%A0%20%C2%A0-%20is%20it%20possible%20to%20add%20permissions%20to%20the%20admins%20for%20%C2%A0%20editing%20other%20user%27s%20post?%20%C2%A0Only%20way%20I%20know%20right%20would%20be%20to%20do%20it%20via%20MyphpAdmin)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 28, 2010, 10:36:00 AM
Quote from: Dharshan on March 28, 2010, 12:18:39 AM
Hi, I'm using simple portal 2.3.1 on my SMF2 RC3, can i intergrate this ajax chat box to simple portal modules?

so that I'm able to place it on a side or in the middle of the portal page...

Was just looking at that a little while ago. Might wanna check over at Simple Portal to see if someone's got one going?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Pitagora on March 28, 2010, 11:46:13 AM
I found a bug:

To complete the bug you have not  saved data (user, pwd) in your browser

Now login, and after logoff.

Now login and you will be automatically shown in the Index. messages in the chat are gone?? Yes ! To see them press F5

FIX THE VULNERABILITY

Sorry for my english but I'm italian !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on March 28, 2010, 12:37:57 PM
Pitagora: If I understand you right, you can only see the messages while logged in? Not a vuln. Bug, maybe, but not a vuln.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Pitagora on March 28, 2010, 01:07:27 PM
Quote from: Arantor on March 28, 2010, 12:37:57 PM
Pitagora: If I understand you right, you can only see the messages while logged in? Not a vuln. Bug, maybe, but not a vuln.
no !!!!!!


This is the image:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi39.tinypic.com%2Fo0wfm8.png&hash=f27591f9f3233c0297bca037f7aed16f27d4bc50)

after ...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi42.tinypic.com%2Fwafv35.png&hash=d20fba46678077e18e1866048572bf3d0d6ec990)

reload the page !

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi40.tinypic.com%2Fxaz3a1.png&hash=5e49964b309cd135bf336a86dba6bb17c746b3f0)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Pitagora on March 28, 2010, 01:09:41 PM
FOR SHOW THE MESSAGE AFTER THE LOGIN I CAN PRESS F5 TO RELOAD PAGE AND I CAN  SEE THE MESSAGE
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on March 28, 2010, 01:13:01 PM
But you're LOGGED IN! So it's not a vulnerability. Bug yes, vulnerability no.

I can clearly see you're logged in from the welcome message at the top of the page!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: taktiken on March 28, 2010, 01:48:49 PM
mrtrc266, thanks!
some hints:
- there are 2 config.js files: one for shoutbox and other for chat (separate directories) - changes must be done in both files
- removal of the [IMG] bbcode: in config.js find // Defines if image BBCode is replaced with the associated image HTML code:
bbCodeImages: true,
and change it to false. It will block display of images in the chat/shoutbox, but only in new posts.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ragnawind on March 28, 2010, 06:05:00 PM
I have added the code for adding the away (afk command). How do I add the takeover command for the chat bot and how do I get it to say a Welcome message. I have attached the code I currently have for both files. How would I add these two features?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: InfoStrides on March 28, 2010, 06:50:36 PM
I installed new version for SMF 2.0 RC3 but got the following error when chat is launched:

Notice: Undefined index: time_offset in /home/ixxxxx/public_html/infostridesforum.com/Sources/Subs.php  on line 741
Notice: Undefined index: todayMod in /home/ixxxxx/public_html/infostridesforum.com/Sources/Subs.php on line 753
Notice: Undefined index: news in /home/ixxxxx/public_html/infostridesforum.com/Sources/Subs.php on line 3154

Please help me. You can check confirm it on my forum: http://www.infostridesforum.com

Thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 28, 2010, 07:06:30 PM
I do not believe those errors are caused by the AJAX Chat mod, only displayed by the mod. I have seen similar errors show up in my shoutbox after making modifications to files completely unrelated to the shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Xarcell on March 28, 2010, 08:14:29 PM
Quote from: mrtrc266 on March 26, 2010, 01:24:21 AM
@ LOTL anytime you install a Mod any files that are edited are renamed with a ~ which is the back up, that's why you have the Load.php~.

Anyway, sometimes Mods can conflict with each other. Sometimes it might be as simple as reinstalling the Mods in the reversed order that you originally installed them.

In your case it looks like the Mod was installed twice if you have 2 instances of the same code. You can always go to the Mods Parser to see EXACLTY what changes were made, undo to them and try again. On the Mods home page see where it says "Manual Install Instructions for SMF" and select the SMF version you're using.

Hopefully that helps a little

@ Xarcell
Is that error related to AJAX Chat Integration?

AjaxChat mod curve friendly installed fine. No errors. But when I click on the chat button, this is what I get: view screenshot

There is no theme, there is no SMF. The rest of the site works fine. Ajax admin works fine. It only does that when I click the chat button. maybe some kind of conflict with TP?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 28, 2010, 08:39:08 PM
Quote from: SunKing on March 28, 2010, 07:06:30 PM
I do not believe those errors are caused by the AJAX Chat mod, only displayed by the mod. I have seen similar errors show up in my shoutbox after making modifications to files completely unrelated to the shoutbox.

Xarcell, I think you are having the same issues. These errors aren't caused by the AJAX Chat mod, only displayed by it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 28, 2010, 10:37:58 PM
Quote from: ragnawind on March 28, 2010, 06:05:00 PM
I have added the code for adding the away (afk command). How do I add the takeover command for the chat bot and how do I get it to say a Welcome message. I have attached the code I currently have for both files. How would I add these two features?

Please see the FAQ's link in my signature, the "welcome message" and "takeover command" are explained there. Then simply make edits then upload the files to your server.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 28, 2010, 10:41:00 PM
@ infostrides and Xarcell - I have seen that same thing in the past, about a couple hundred pages back or so LOL. But I can't remember exactly what caused it or what the fix was?

Will have to dig around, do both of you have TP installed by any chance?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zijO on March 29, 2010, 12:59:03 AM
After upgrade i lost chat button form my menu  :o
Shout box still works fine.

Smf 2.0 rc3
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 29, 2010, 01:12:29 AM
Quote from: zijO on March 29, 2010, 12:59:03 AM
After upgrade i lost chat button form my menu  :o
Shout box still works fine.

Smf 2.0 rc3

Did you get any errors when you uninstalled or reinstalled?

If you simply mean that the "chat" button is not showing please be sure to check that this edit was done to the /Sources/Subs.php
Go to the Mods Home Page  (http://custom.simplemachines.org/mods/index.php?mod=1319) and click "parse" to see what edits need to be done.

Or if there is a button but you only see just a sliver of it, then it's a language file issue.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zijO on March 29, 2010, 01:47:19 AM
thanks
yes
/Sources/Subs.php
somehow was missing

'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),



Maybe i did not notice it when installing, because i was doing a lot of work.

THANKS !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 29, 2010, 02:02:38 AM
Glad it's sorted and enjoy the Mod!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zijO on March 29, 2010, 02:41:55 AM
"check for ShoutBox on any page or uncheck for only in index page:"

is it possible, display shout box only at boards but not at index page , it takes longer to load

currently I am using it in one of ezblock modules.
But when I disable shout box to not show at index page , in my shoutbox block all links lose color.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: InfoStrides on March 29, 2010, 03:28:58 AM
Quote from: SunKing on March 28, 2010, 07:06:30 PM
I do not believe those errors are caused by the AJAX Chat mod, only displayed by the mod. I have seen similar errors show up in my shoutbox after making modifications to files completely unrelated to the shoutbox.

Thanks for your prompt response. Please, how do I go about it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 29, 2010, 11:52:49 AM
Quote from: infostrides on March 28, 2010, 06:50:36 PM
Notice: Undefined index: time_offset in /home/ixxxxx/public_html/infostridesforum.com/Sources/Subs.php  on line 741
Notice: Undefined index: todayMod in /home/ixxxxx/public_html/infostridesforum.com/Sources/Subs.php on line 753
Notice: Undefined index: news in /home/ixxxxx/public_html/infostridesforum.com/Sources/Subs.php on line 3154

They all look like language problems. If you are using a custom theme or a language other than English, I would start there. You need to make sure that all of the language edits being placed into the default theme's Modifications.english.php are also being added (manually) to the Modifications.***.php of your custom theme and/or of your site's language file. If one does not already exist, simply copy the default Modifications.english.php to your custom theme and replace "english" with your language.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ragnawind on March 29, 2010, 12:28:01 PM
Quote from: mrtrc266 on March 28, 2010, 10:37:58 PM
Quote from: ragnawind on March 28, 2010, 06:05:00 PM
I have added the code for adding the away (afk command). How do I add the takeover command for the chat bot and how do I get it to say a Welcome message. I have attached the code I currently have for both files. How would I add these two features?

Please see the FAQ's link in my signature, the "welcome message" and "takeover command" are explained there. Then simply make edits then upload the files to your server.
I tried that before. When I add the files with the edits, the Welcome Message never shows up, for me,at least. Also, when I add the takeover command, it says there is some sort of problem in the CustomAJAXChat.php file and doesn't load chat. The line is right at the first line of the takeover command code. I just now thought of something. I may have forgotten a closing bracket on the afk command, though it works.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Pitagora on March 29, 2010, 01:03:04 PM
Quote from: Arantor on March 28, 2010, 01:13:01 PM
But you're LOGGED IN! So it's not a vulnerability. Bug yes, vulnerability no.

I can clearly see you're logged in from the welcome message at the top of the page!
Ok it's a bug :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rebornishard on March 29, 2010, 03:42:00 PM
sir how to make chat box appear in new page
not in index.php
thanks :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madman71 on March 29, 2010, 05:45:35 PM
Im running SMF 2.0 RC3
The background to the shoutbox is white, I would like to change that to a different color.
What file do i need to edit?

I've checked that facts and i didnt see it



Nice job on the chat box.  It's working great!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 29, 2010, 05:48:50 PM
You would be looking for shoutbox.css
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madman71 on March 29, 2010, 05:51:05 PM
excellent!

thanks Barack
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 29, 2010, 05:59:51 PM
Hey I'm no President.

Nice thought tho.

:D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madman71 on March 29, 2010, 09:00:06 PM
LOL, i cant read  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madman71 on March 29, 2010, 10:53:14 PM
If you want to edit the shoutbox, you have to edit the  shoutbox.css found in the CHAT directory and not the SHOUTBOX directory.

path:   http://yoursite.com/forum/chat/css/shoutbox.css
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 29, 2010, 11:56:09 PM
Quote from: madman71 on March 29, 2010, 10:53:14 PM
If you want to edit the shoutbox, you have to edit the  shoutbox.css found in the CHAT directory and not the SHOUTBOX directory.

path:   http://yoursite.com/forum/chat/css/shoutbox.css (http://yoursite.com/forum/chat/css/shoutbox.css)


BUT....for future reference if you DO NOT have your chat and shout integrated then you also have to do the same edits to /shoutBox/css/shoutbox.css.

And the same is true for any other edits that you do as well.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesicilian on March 30, 2010, 08:33:16 AM
Quick question, is there any way to stop the Shoutbox timing out on SMF 1.1.11, if peeps aren't chatting for a little bit, it times out and the chat stays static, members then think that no-one is chatting. Any help would be very much appreciated.

Also are logs created of whats spoken about in the shoutbox?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 30, 2010, 11:14:00 AM
Quote from: thesicilian on March 30, 2010, 08:33:16 AM
Quick question, is there any way to stop the Shoutbox timing out on SMF 1.1.11, if peeps aren't chatting for a little bit, it times out and the chat stays static, members then think that no-one is chatting. Any help would be very much appreciated.

Also are logs created of whats spoken about in the shoutbox?


To adjust the amount time before people remain idle please hit the link in my signature.

To view the logs www.yoursite.com/chat/index.php?view=logs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesicilian on March 30, 2010, 11:34:54 AM
Quote from: mrtrc266 on March 30, 2010, 11:14:00 AM
Quote from: thesicilian on March 30, 2010, 08:33:16 AM
Quick question, is there any way to stop the Shoutbox timing out on SMF 1.1.11, if peeps aren't chatting for a little bit, it times out and the chat stays static, members then think that no-one is chatting. Any help would be very much appreciated.

Also are logs created of whats spoken about in the shoutbox?


To adjust the amount time before people remain idle please hit the link in my signature.

To view the logs www.yoursite.com/chat/index.php?view=logs

I've checked the view=logs link, all I get the chat box with no logs. All the chat has been in the shoutbox. Is there a file on the server that stores all the shoutbox logs?

Regards the idle thing, I found the details in your signature, will they apply to the shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 30, 2010, 11:50:46 AM
Quote from: thesicilian on March 30, 2010, 11:34:54 AM
Quote from: mrtrc266 on March 30, 2010, 11:14:00 AM
Quote from: thesicilian on March 30, 2010, 08:33:16 AM
Quick question, is there any way to stop the Shoutbox timing out on SMF 1.1.11, if peeps aren't chatting for a little bit, it times out and the chat stays static, members then think that no-one is chatting. Any help would be very much appreciated.

Also are logs created of whats spoken about in the shoutbox?


To adjust the amount time before people remain idle please hit the link in my signature.

To view the logs www.yoursite.com/chat/index.php?view=logs (http://www.yoursite.com/chat/index.php?view=logs)

I've checked the view=logs link, all I get the chat box with no logs. All the chat has been in the shoutbox. Is there a file on the server that stores all the shoutbox logs?

Regards the idle thing, I found the details in your signature, will they apply to the shoutbox?

If you DO NOT have your chat & shout integrated then you need to do the edits in the /shoutBox folder for them to have any effect in the shoutbox.

Good question regarding the logs, same thing applied I imaging, if you don't have chat/shout integrated then you might only be able to view the logs for the chat. They are stored in the database though you can see them via phpMyAdmin , you'll be looking for _ajaxshout_messages
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesicilian on March 30, 2010, 12:07:10 PM
Thank you for your reply mrtrc266 :)

I'd like to more or less turn off the timeout, so members will always see activity in the shoutbox. Could I set the inactive timeout to say 600 (10hours). Would this be ok to do? Would I need to change the inactive check interval value?

// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 600;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on March 30, 2010, 12:36:46 PM
Quote from: thesicilian on March 30, 2010, 12:07:10 PM
Thank you for your reply mrtrc266 :)

I'd like to more or less turn off the timeout, so members will always see activity in the shoutbox. Could I set the inactive timeout to say 600 (10hours). Would this be ok to do? Would I need to change the inactive check interval value?

// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 600;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;


I would think that about 60 minutes would be fine. If they haven't done anything in an hr then more than likely their not even there LOL. The Inactive Check Interval simply means that every 5 minutes it will check to see who has been idle for 60 minutes or more then boot them off.

Here are a couple more settings that will probably help to make sure your users don't miss any chat. Max time diff defines how many days the chat will stay visible. Max # of messages defines how many messages will be called every time you log in.

// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesicilian on March 30, 2010, 01:26:45 PM
Thank you for that mrtrc266, changing the settings now :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Twi12561 on March 30, 2010, 10:19:52 PM
Does anyone know why one of my chat users is getting this message?

ChatBot: Error: Connection status: 0

I see messages about 404 and 500, but nothing for a simple zero. Any takers?

Title: Re: AjaxChat Integration
Post by: [unplugged] on March 30, 2010, 10:36:11 PM
Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM
If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing
Open chat/js/chat.js
Find
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
Replace with
if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ryu1revline on March 31, 2010, 01:36:16 AM
Hello there.  :)

I just installed Ajax and the install was successful without any problems. The shout box is working perfect, but I don't know how to access the chat feature.

The forums are SMF 1.1.11 with the Mystic Jade theme. The mods are Tiny Portal, Aeva Media, and now Ajax chat. What I'm looking to do is have the chat button show at the top of the screen, and have the chat integrated without a pop-up window.

My guess is that my theme is blocking the view of the chat mod, so I would really appreciate any help getting this working.  ;)
Title: Re: AjaxChat Integration
Post by: thesicilian on March 31, 2010, 07:20:35 AM
Quote from: SunKing on May 19, 2009, 12:23:29 PM
Alright. Here is the first (of many, I hope) tweak for the AjaxChat mod.
Here's what I did:

Post Notification

The first step is to change a value for one of the database entries, so make backups! I think this could be made a permanent change without ill consequences maybe in future releases. ;)

The dateTime field of ajax_chat_messages needs the type changed to timestamp.

Next, open Sources/Post.php and search for
notifyMembersBoard($notifyData);
add after it:
// Ajax Chat New Topic Notification
global $user_info, $board, $scripturl, $boardName, $topic;
    $smcFunc['db_insert']('',
      'ajax_chat_messages',
      array(
         'userID' => 'int', 'userName' => 'string-255', 'userRole' => 'int', 'channel'=> 'int', 'ip' => 'string-255', 'text' => 'string-255',
         ),
      array(
         $posterOptions['id'], $user_info['name'], 1, 0, $posterOptions['ip'], '[color=red][b]New Topic: [url='.$scripturl . '?topic=' . $topic . '.new#new'.']'.html_entity_decode($_POST['subject']).'[/url][/b][/color]'
         ),
      array('autopost')
   );
    // End Ajax Chat New Topic Notification


search for
sendNotifications($topic, 'reply');

replace it with:

     {
sendNotifications($topic, 'reply');

// Ajax Chat New Reply Notification
global $user_info, $board, $scripturl, $boardName, $topic;
    $smcFunc['db_insert']('',
      'ajax_chat_messages',
      array(
         'userID' => 'int', 'userName' => 'string-255', 'userRole' => 'int', 'channel'=> 'int', 'ip' => 'string-255', 'text' => 'string-255',
         ),
      array(
         $posterOptions['id'], $user_info['name'], 1, 0, $posterOptions['ip'], '[color=red][b]New Reply: [url='.$scripturl . '?topic=' . $topic . '.new;topicseen#new'.']'.html_entity_decode($_POST['subject']).'[/url][/b][/color]'
         ),
      array('autopost')
   );
    // End Ajax Chat New Reply Notification
     }


That's it. Now, every time someone posts, a nice notification will popup in the chat/shoutbox displaying a link to the new post/reply.

This is by no means my creation, but rather a reworking of a tweak for nneonneo's shoutbox that I could not live without. ;)

Many thanks to hiver101 for pointing me in the right direction.

DEMO (http://www.empireofthesun.net)        Enjoy!

If the above mod is applied, will posts in Moderators room be included in the shout box? As only Admin and Mod's have access to that, so wouldn't want the subject title posted in the shoutbox.
Title: Re: AjaxChat Integration
Post by: Twi12561 on March 31, 2010, 01:17:57 PM
Quote from: SunKing on March 30, 2010, 10:36:11 PM
Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM
If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing
Open chat/js/chat.js
Find
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
Replace with
if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}


Thank you, SunKing. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on March 31, 2010, 01:38:09 PM
Quote from: ryu1revline on March 31, 2010, 01:36:16 AM
Hello there.  :)

I just installed Ajax and the install was successful without any problems. The shout box is working perfect, but I don't know how to access the chat feature.

The forums are SMF 1.1.11 with the Mystic Jade theme. The mods are Tiny Portal, Aeva Media, and now Ajax chat. What I'm looking to do is have the chat button show at the top of the screen, and have the chat integrated without a pop-up window.

My site is guildofinfamy.com (won't let me post links for some reason)

My guess is that my theme is blocking the view of the chat mod, so I would really appreciate any help getting this working.  ;)

Welcome to SMF! You just need to add the code for the button to your index.template.php for the Mystic Jade theme. You can find this code listed in the package parser.

Quote from: thesicilian on March 31, 2010, 07:20:35 AM
If the above mod is applied, will posts in Moderators room be included in the shout box? As only Admin and Mod's have access to that, so wouldn't want the subject title posted in the shoutbox.
Every post will be listed. However, there is also a tweak floating around to "ignore" certain boards by wrapping that code in an if statement. I'll see if I can find it for you.

Quote from: Twi12561 on March 31, 2010, 01:17:57 PM
Thank you, SunKing. :)

You are quite welcome.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Faythi on March 31, 2010, 02:35:29 PM
Hi guys, I was wondering if there is code to put this on my homepage of my website. I saw the link of how to put this on your portal, but it looked like that applied to a CMS like Simple Portal. Is there a function I could call or could someone give me somewhat of a hint as to how I can start this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Scaala on March 31, 2010, 10:55:30 PM
Quote from: Scaala on March 22, 2010, 05:07:49 AMI just tried installing your mod and it seems to install correctly.  The option settings and permission settings all appear and are adjustable.  The tab for the chat appears just fine (I'm not interested in the shoutbox...).

Anyway, I click on the chat tab, and it opens a popup window for the chat...  The request hesitates for about 3/4 of a second, and then it provides this error message on a completely white background:

[an error occurred while processing this directive]

I just realized I have a bit of additional information.  The error log of my forum counted a number of errors from Ajaxchat while I had it installed.  The error information:

8: Undefined Index Chat  -  File:  forum/Sources/Subs.php  -  Line 3931

...Which seems to refer to this block of code added by the Ajaxchat mod:

$num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
$chatButton = 'Chat'; $chatButton .= ($num > 0) ? ('('.$num.')') : '';
$chatLink = str_replace("index.php", "chat/index.php", $scripturl);
if (!empty($modSettings['chatPopUp']))
$chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';


Does this suggest a likely cause?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TehCraw on March 31, 2010, 10:58:48 PM
Hi, I installed AjaxChat on my forum running SMF 2.0 RC3, and the install looks good. The button appeared in the menu, but when I click it, it just opens a blank screen. I already looked at this post (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529), but I'm not sure if it applies and I'm afraid to mess something up.

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: exteeyou on March 31, 2010, 11:23:46 PM
Quote from: ScottyBoy on March 31, 2010, 10:58:48 PM
Hi, I installed AjaxChat on my forum running SMF 2.0 RC3, and the install looks good. The button appeared in the menu, but when I click it, it just opens a blank screen. I already looked at this post (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529), but I'm not sure if it applies and I'm afraid to mess something up.

Thanks.

I am having the same issue as well
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TehCraw on March 31, 2010, 11:27:02 PM
Boy, this is a really popular mod. 285 pages to this thread.  :o
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 01, 2010, 01:09:57 AM
@ ScottyBoy,  exteeyou and Scalla have you by any chance tried changing you file permissions (CHMOD) to 755? for

/chat/index.php and /shoutBox/index.php

@ 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?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TehCraw on April 01, 2010, 01:30:30 AM
Nice! Thanks, man.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 01, 2010, 01:51:11 AM
Quote from: ScottyBoy on April 01, 2010, 01:30:30 AM
Nice! Thanks, man.

You're welcome. So I take it that fixed it? If so I will add that as another possible solution for that problem on the FAQ's Page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ryu1revline on April 01, 2010, 06:36:43 AM
Quote from: SunKing on March 31, 2010, 01:38:09 PM
Quote from: ryu1revline on March 31, 2010, 01:36:16 AM
Hello there.  :)

I just installed Ajax and the install was successful without any problems. The shout box is working perfect, but I don't know how to access the chat feature.

The forums are SMF 1.1.11 with the Mystic Jade theme. The mods are Tiny Portal, Aeva Media, and now Ajax chat. What I'm looking to do is have the chat button show at the top of the screen, and have the chat integrated without a pop-up window.

My site is guildofinfamy.com (won't let me post links for some reason)

My guess is that my theme is blocking the view of the chat mod, so I would really appreciate any help getting this working.  ;)

Welcome to SMF! You just need to add the code for the button to your index.template.php for the Mystic Jade theme. You can find this code listed in the package parser.

Thanks for the help. I tried the link for the parser in the FAQ, but it appears to be down. Is there another place to find the parser?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on April 01, 2010, 06:43:29 AM
QuoteIs there another place to find the parser?

http://custom.simplemachines.org/mods/index.php?mod=1319 perhaps...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ryu1revline on April 01, 2010, 07:31:46 AM
Quote from: Arantor on April 01, 2010, 06:43:29 AM
QuoteIs there another place to find the parser?

http://custom.simplemachines.org/mods/index.php?mod=1319 perhaps...

Thanks. :)

Now it's functioning, but the button alignment isn't where it should be. I'm assuming the theme is pushing it out of place. Would anyone know how to get this fixed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on April 01, 2010, 07:39:15 AM
The theme uses quite different code. You'll need to attach your theme's index.template.php file for someone here to modify it for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ryu1revline on April 01, 2010, 07:48:15 AM
Quote from: Arantor on April 01, 2010, 07:39:15 AM
The theme uses quite different code. You'll need to attach your theme's index.template.php file for someone here to modify it for you.

Ok, so I followed the code used in the other buttons the theme had set-up, and I managed to create one for Ajax by just linking the chat directory.

I wonder if there are any negative consequences to doing it this way?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on April 01, 2010, 07:52:45 AM
I don't believe so.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ryu1revline on April 01, 2010, 07:54:40 AM
Quote from: Arantor on April 01, 2010, 07:52:45 AM
I don't believe so.

Well, thanks Arantor and Sunking, another happy user here.  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: exteeyou on April 01, 2010, 08:49:39 AM
Quote from: mrtrc266 on April 01, 2010, 01:09:57 AM
@ ScottyBoy,  exteeyou and Scalla have you by any chance tried changing you file permissions (CHMOD) to 755? for

/chat/index.php and /shoutBox/index.php

@ 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?

Yes, it did not work
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TehCraw on April 01, 2010, 03:54:06 PM
Quote from: mrtrc266 on April 01, 2010, 01:51:11 AM
Quote from: ScottyBoy on April 01, 2010, 01:30:30 AM
Nice! Thanks, man.

You're welcome. So I take it that fixed it? If so I will add that as another possible solution for that problem on the FAQ's Page.

Worked for me. Would this mod install on RC2?

Thanks again!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: exteeyou on April 01, 2010, 09:30:06 PM
Fixed

For some reason my package manager wasn't extracting directories and files from the zip, thus my 'js', 'src', etc directories were blank files. I manually unpacked the chat and shoutBox folders to forum/ and all is well ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TehCraw on April 01, 2010, 09:37:44 PM
Got AjaxChat on RC2 now!

*ScottyBoy thinks this is one of the best mods ever*
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ryu1revline on April 01, 2010, 10:22:52 PM
Back again. :)

I'm getting strange  characters in my directory tree and on the links after each post. Any ideas what might be causing this?

It started after adding the chat button for the mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Scaala on April 01, 2010, 11:22:33 PM
Quote from: mrtrc266 on April 01, 2010, 01:09:57 AM
@ ScottyBoy,  exteeyou and Scalla have you by any chance tried changing you file permissions (CHMOD) to 755?

...Indeed, I hadn't.  That was the ticket.  Thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 02, 2010, 01:31:47 AM
@ ScottyBoy,  exteeyou and Scalla

Glad you all got it sorted, I'll update the FAQ's as that being another fix for the probs you were all having.

Thank you and enjoy the Mod! :-)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Xarcell on April 02, 2010, 01:45:26 AM
Quote from: mrtrc266 on March 28, 2010, 10:41:00 PM
@ infostrides and Xarcell - I have seen that same thing in the past, about a couple hundred pages back or so LOL. But I can't remember exactly what caused it or what the fix was?

Will have to dig around, do both of you have TP installed by any chance?

I have TP installed, yes. I un-installed TP and installed Ajax chat.  It works fine now.

I reckon I need to dig through everything to find out how to fix...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: InfoStrides on April 02, 2010, 02:08:16 AM
Quote from: SunKing on March 29, 2010, 11:52:49 AM
Quote from: infostrides on March 28, 2010, 06:50:36 PM
Notice: Undefined index: time_offset in /home/ixxxxx/public_html/infostridesforum.com/Sources/Subs.php  on line 741
Notice: Undefined index: todayMod in /home/ixxxxx/public_html/infostridesforum.com/Sources/Subs.php on line 753
Notice: Undefined index: news in /home/ixxxxx/public_html/infostridesforum.com/Sources/Subs.php on line 3154

They all look like language problems. If you are using a custom theme or a language other than English, I would start there. You need to make sure that all of the language edits being placed into the default theme's Modifications.english.php are also being added (manually) to the Modifications.***.php of your custom theme and/or of your site's language file. If one does not already exist, simply copy the default Modifications.english.php to your custom theme and replace "english" with your language.

I am using default theme and I only have English. There is no other language.

What next?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: InfoStrides on April 02, 2010, 02:12:16 AM
Quote from: Xarcell on April 02, 2010, 01:45:26 AM
Quote from: mrtrc266 on March 28, 2010, 10:41:00 PM
@ infostrides and Xarcell - I have seen that same thing in the past, about a couple hundred pages back or so LOL. But I can't remember exactly what caused it or what the fix was?

Will have to dig around, do both of you have TP installed by any chance?

I have TP installed, yes. I un-installed TP and installed Ajax chat.  It works fine now.

I reckon I need to dig through everything to find out how to fix...

What is TP?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Xarcell on April 02, 2010, 02:19:06 AM
TP = TinyPortal

I installed Ajaxchat first, then TP, and there were no problems...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Xarcell on April 02, 2010, 02:21:03 AM
Is there a way to place ajaxchat into a block?

I know it has the shoutbox, but it doesn't show users in chat or other options.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 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?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesicilian on April 02, 2010, 05:57:51 AM
Anyone know an answer to this?

http://www.simplemachines.org/community/index.php?topic=257973.msg2562862#msg2562862
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 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?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 02, 2010, 10:12:22 AM
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 (http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=PhpBB3_custom_user_group) if anyone wants to take a stab at it for SMF that would be awesome!  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 02, 2010, 11:10:01 AM
Quote from: thesicilian on April 02, 2010, 05:57:51 AM
Anyone know an answer to this?
http://www.simplemachines.org/community/index.php?topic=257973.msg2562862#msg2562862

SunKing might have the answer for that one
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: trailmyx on April 02, 2010, 01:53:49 PM
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! 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Faythi on April 02, 2010, 03:11:16 PM
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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vlad2 on April 02, 2010, 03:59:07 PM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Xarcell on April 02, 2010, 04:27:08 PM
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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: InfoStrides on April 02, 2010, 04:45:05 PM
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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TurtleKicker on April 02, 2010, 06:14:25 PM
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?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vlad2 on April 03, 2010, 04:23:54 PM
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?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ricorico on April 04, 2010, 05:12:02 AM
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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesicilian on April 04, 2010, 06:22:06 AM
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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Spark753 on April 04, 2010, 09:03:21 AM
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?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: minuway on April 05, 2010, 11:52:31 AM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Saxon044 on April 05, 2010, 05:28:21 PM
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?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NoFeaR / NFSMW on April 05, 2010, 05:49:28 PM
How do i get the the chat box in the main page with simple portal installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 05, 2010, 05:51:12 PM
Do ya mean so it shows on the page itself?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stkee on April 05, 2010, 06:25:36 PM
I've tried all means of getting the chat and shoutbox to work on my smf2 RC3 forum. Now I've given up all hope of getting it to work. Unless there is some new upgraded version.
I've tried to install it even on a freshly installed smf, but it still doesn't work properly.
Anyway, thanks for all the help given.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 05, 2010, 06:28:24 PM
Any errors on install?

Which version are you trying to install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 05, 2010, 08:57:47 PM
Quote from: ricorico on April 04, 2010, 05:12:02 AM
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.

Have you tried the Fixes in the FAQ's?
QuoteHere some known issues and fixes caused by either other Mods or some servers

If you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please READ THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)

If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755
This could possible be the solution for this as well.... "If you install the Mod and it looks like it installs fine but the   shoutbox and chat room are blank"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 05, 2010, 08:59:27 PM
Quote from: Spark753 on April 04, 2010, 09:03:21 AM
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?

Did you do all the manual edits to your custom theme?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 05, 2010, 09:00:43 PM
Quote from: minuway on April 05, 2010, 11:52:31 AM
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

Did you read the FAQ's  (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)to try and fix your issue?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 05, 2010, 09:02:29 PM
Quote from: Saxon044 on April 05, 2010, 05:28:21 PM
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?

You have your  member group permissions set properly?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 05, 2010, 09:04:54 PM
Quote from: stkee on April 05, 2010, 06:25:36 PM
I've tried all means of getting the chat and shoutbox to work on my smf2 RC3 forum. Now I've given up all hope of getting it to work. Unless there is some new upgraded version.
I've tried to install it even on a freshly installed smf, but it still doesn't work properly.
Anyway, thanks for all the help given.

PM me a temp admin account and some FTP details and I'll see what I can do to get this going for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NoFeaR / NFSMW on April 06, 2010, 01:55:26 AM
i am trying to put it on the main page. but with no luck.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Spark753 on April 06, 2010, 05:00:59 AM
Quote from: mrtrc266 on April 05, 2010, 08:59:27 PM
Quote from: Spark753 on April 04, 2010, 09:03:21 AM
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?

Did you do all the manual edits to your custom theme?

Yes i read your FAQ and did the modification to the index.template as stated by the package parser but there was no edit to any style.css??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ricorico on April 06, 2010, 09:34:59 AM
Quote from: mrtrc266 on April 05, 2010, 08:57:47 PM
Quote from: ricorico on April 04, 2010, 05:12:02 AM
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.

Have you tried the Fixes in the FAQ's?
QuoteHere some known issues and fixes caused by either other Mods or some servers

If you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please READ THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)

If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755
This could possible be the solution for this as well.... "If you install the Mod and it looks like it installs fine but the   shoutbox and chat room are blank"

yes sir i followed the FAQ, i ended up removing everyhting and doing a brand new clean install and same thing . the shoutbox options are all checked, and the shoutbox just looks like

(                                                               ) -that small no text. and when i click Chat it gives me the error:

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

*using 000webhost, only free one i could get that had a lot of space and mysql tc..)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 06, 2010, 11:48:28 AM
Quote from: Spark753 on April 06, 2010, 05:00:59 AM
Yes i read your FAQ and did the modification to the index.template as stated by the package parser but there was no edit to any style.css??

AJC Provides it's own .css I have it installed here using your theme and it works fine http://monsters-mansion.com/testsmf2 (http://monsters-mansion.com/testsmf2)

Kinda weird that it works fine on curve but not mystic Do you have any other theme's installed that you can switch to to see if it's only not working on mystic?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 06, 2010, 12:08:16 PM
I noticed you have problems with other Mods as well.

Quote from: ricorico on April 05, 2010, 03:11:49 PM
I cant seem to get this to work, i CHMOD the   required things it asked too:

"this album's directory couldn't be   properly created, please make sure mgal_data/ and mgal_data/albums/ are   chmodded to 0777 or 0755."

im not sure if its my host or   not, i just set up a new thing at 000webhost (anyone have a better   place? I keep getting database connection errors.)

The only way to tell really is try another free hosting service and see if everything you want works there. This is the one I used when I first started and I never had any problems at all. 3 times as much data and twice as much bandwidth that what your current host has.

http://xtreemhost.com/plans/ (http://xtreemhost.com/plans/)

Post a link to your current site or post it when you get done if you decide to switch hosts.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Saxon044 on April 06, 2010, 02:18:28 PM
Quote from: mrtrc266 on April 05, 2010, 09:02:29 PM
Quote from: Saxon044 on April 05, 2010, 05:28:21 PM
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?

You have your  member group permissions set properly?

Oh so simple! I didn't realise an option was added in member permissions. DOH!

Cheers mate  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Console Network on April 06, 2010, 06:29:40 PM
Hello all i just installed this Mod on my forum (1.1.11) And i installed with the Package Manager but when i try to test the shoutbox it isnt posting anything then it says this error in the shoutbox (15:26:42) ChatBot: Error: Connection status: 0 Help please. Also i am running on 000webhost if that makes a difference?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 06, 2010, 06:39:07 PM
Quote from: Console Network on April 06, 2010, 06:29:40 PM
Hello all i just installed this Mod on my forum (1.1.11) And i installed with the Package Manager but when i try to test the shoutbox it isnt posting anything then it says this error in the shoutbox (15:26:42) ChatBot: Error: Connection status: 0 Help please. Also i am running on 000webhost if that makes a difference?
Do you have any other Mods installed?

Find these 2 files and change the permissions (CHMOD) them to 755. See if that helps
/chat/index.php
/shoutbox/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 06, 2010, 06:39:47 PM
The error message is harmless.

Have a look at the FAQs in mrtrc266s posts.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 06, 2010, 06:40:23 PM
Oops ya beat me to it bud.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Console Network on April 06, 2010, 06:48:26 PM
Quote from: mrtrc266 on April 06, 2010, 06:39:07 PM
Quote from: Console Network on April 06, 2010, 06:29:40 PM
Hello all i just installed this Mod on my forum (1.1.11) And i installed with the Package Manager but when i try to test the shoutbox it isnt posting anything then it says this error in the shoutbox (15:26:42) ChatBot: Error: Connection status: 0 Help please. Also i am running on 000webhost if that makes a difference?
Do you have any other Mods installed?

Find these 2 files and change the permissions (CHMOD) them to 755. See if that helps
/chat/index.php
/shoutbox/index.php
Did that nothing happened.  The Mods i have installed are:

1.     SMF Articles      1.0.2      
2.    EzPortal    0.3.9b    
3.    RSS Feed Poster    
4.    RSS Feeder    1.1.4    
5.    AJAX Instant Quick Reply    1.0.3    
6.    AjaxChat Integration    3.2.1    
7.    Hack's Park Shoutbox    2.0.2    
8.    nneonneo's AJAX ShoutBox    1.22    
9.    SimplePortal    2.3.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 06, 2010, 06:59:20 PM
You have 2 other shout boxes installed.

Make sure that you COMPLETELY Uninstall Hack's Park and  nneonneo's.

That should do it, another use had the same problem a few pages back and it was because there were still remnants nneonneo's in the index.template.php file.


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Console Network on April 06, 2010, 07:11:58 PM
Quote from: mrtrc266 on April 06, 2010, 06:59:20 PM
You have 2 other shout boxes installed.

Make sure that you COMPLETELY Uninstall Hack's Park and  nneonneo's.

That should do it, another use had the same problem a few pages back and it was because there were still remnants nneonneo's in the index.template.php file.
I uninstalled the two and still no effect.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 06, 2010, 07:33:41 PM
Attach your index.template.php file for the theme you're using please
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Console Network on April 06, 2010, 08:34:54 PM
Here you go. Im using the Burgundy Theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ricorico on April 06, 2010, 09:04:21 PM
Quote from: mrtrc266 on April 06, 2010, 12:08:16 PM
I noticed you have problems with other Mods as well.

Quote from: ricorico on April 05, 2010, 03:11:49 PM
I cant seem to get this to work, i CHMOD the   required things it asked too:

"this album's directory couldn't be   properly created, please make sure mgal_data/ and mgal_data/albums/ are   chmodded to 0777 or 0755."

im not sure if its my host or   not, i just set up a new thing at 000webhost (anyone have a better   place? I keep getting database connection errors.)

The only way to tell really is try another free hosting service and see if everything you want works there. This is the one I used when I first started and I never had any problems at all. 3 times as much data and twice as much bandwidth that what your current host has.

http://xtreemhost.com/plans/ (http://xtreemhost.com/plans/)

Post a link to your current site or post it when you get done if you decide to switch hosts.

it was the host. everything installed no problem with no problems on this new host thank you!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 06, 2010, 09:24:37 PM
Quote from: Console Network on April 06, 2010, 08:34:54 PM
Here you go. Im using the Burgundy Theme.


Are you sure you removed ALL edits from the other shout Mods on ALL themes? I just uploaded your index.template to my test site and it works fine.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 06, 2010, 09:25:24 PM
@ ricorico

Glad you got it sorted ricorico. Enjoy the Mod! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Spark753 on April 07, 2010, 04:14:30 AM
Quote from: mrtrc266 on April 06, 2010, 11:48:28 AM
Quote from: Spark753 on April 06, 2010, 05:00:59 AM
Yes i read your FAQ and did the modification to the index.template as stated by the package parser but there was no edit to any style.css??

AJC Provides it's own .css I have it installed here using your theme and it works fine http://monsters-mansion.com/testsmf2 (http://monsters-mansion.com/testsmf2)

Kinda weird that it works fine on curve but not mystic Do you have any other theme's installed that you can switch to to see if it's only not working on mystic?

Yea i thought it wasn't a .css problem.

But i did finally figured it out. I had nneonneo's Shoutbox previously installed and had to manually modify my theme's index.template so when i unistalled it there was still left over code so yea i just took a look at your page and cut out the old code and it worked thanks for your help. :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mikungfu on April 07, 2010, 05:51:19 AM
Hello,

I have been trying to install this mod on my SMF 1.1.11.
I haven't succeeded in installing it through the package manager. I click on "install mod" or even "list files" and, all it does is refresh the package manager page.

Also, I have the following packages installed.

1. Aeva Media 1.1b                                                       [ Uninstall ] [ List Files ] [ Delete ] 
2. Babelfish Translater 1.0                                            [ Uninstall ] [ List Files ] [ Delete ] 
3. TinyPortal 1.083                                                                           [ List Files ] [ Delete ] 
4. Version Emulate Dropdown 1.1                                 [ Uninstall ] [ List Files ] [ Delete ] 
5. TinyPortal 1.098                                                        [ Uninstall ] [ List Files ] [ Delete ] 
6. Language Drop 1.5.1                                                [ Uninstall ] [ List Files ] [ Delete ] 
7. Multilingual Board Name and Description 1.1.1         [ Uninstall ] [ List Files ] [ Delete ] 
8. AjaxChat Integration 3.2.1                                       [ Apply Mod ] [ List Files ] [ Delete ] 

I don't know whether this is some conflict with Tiny Portal's lates version or something but anyway, I went ahead for the manual installation.

I did all the manual "File Edits" and File Operations mentioned in the manual install instructions. I have even done the edits in my custom theme files. Everything seems to have gone fine. However I still have this to solve:

a) How do I execute Tables_1.1.X.php?.. Where from and by doing what?
b) would that be all or is there anything else to do for the manual install?


For now, when I click on the chat button I get this error window:

Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM artimedi_501.501_ajaxchat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE) ORDER BY userName; Error-Report: Table 'artimedi_501.501_ajaxchat_online' doesn't exist Error-Code: 1146

Also, when I try to access my Forum, I get:

Database Error
Table 'artimedi_501.501_ajaxchat_online' doesn't exist
File: /home/artimedi/public_html/legiao-501/Sources/Load.php
Line: 2536 


Do you think this will be solved by executing the Tables_1.1.X.php?...

Thans in advance!

Miguel
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesicilian on April 07, 2010, 11:25:01 AM
I've installed Ajaxchat on a fresh install of SMF 1.1.11, board is on a good spec VPS server. No connection errors or anything like that. I'm just experiencing some lag, shouts in the shoutbox not appearing. Also had this error ChatBot: Error: Connection status: 12152

I've added the line in htaccess for prettyurls. The following are the mods installed: -

1.     Pretty URLs      1.0RC       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    Board Viewers Mod    1.2.1    [ Uninstall ] [ List Files ] [ Delete ]
3.    Ad Managment    2.3.6.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    Thank-O-Matic    1.2.5    [ Uninstall ] [ List Files ] [ Delete ]
5.    Karma Buttons    1.1    [ Uninstall ] [ List Files ] [ Delete ]
6.    SMF Multi Quote    1.1.2    [ Uninstall ] [ List Files ] [ Delete ]
7.    Treasury    1.04    [ Uninstall ] [ List Files ] [ Delete ]
8.    AjaxChat Integration    3.2.1    [ Uninstall ] [ List Files ] [ Delete ]
9.    Reason For Editing Mod    2.3.2    [ Uninstall ] [ List Files ] [ Delete ]
10.    AutoKeywords    1.3    [ Uninstall ] [ List Files ] [ Delete ]
11.    Aeva Media    1.1b    [ Uninstall ] [ List Files ] [ Delete ]
12.    Auto Refresh Who Index    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
13.    Unread and Replies Tabs in Main Menu    2.0.1    [ Uninstall ] [ List Files ] [ Delete ]
14.    Reply Button in All Posts    1.1    [ Uninstall ] [ List Files ] [ Delete ]
15.    Search Focus Dropdown    1.44    [ Uninstall ] [ List Files ] [ Delete ]
16.    SMF Sitemap    1.2.2    [ Uninstall ] [ List Files ] [ Delete ]
17.    Attachments in Topics    1.0    [ Uninstall ] [ List Files ] [ Delete ]
18.    Tagging System    2.2.1

Any ideas anyone?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 07, 2010, 11:31:21 AM
Mikungfu

The tiny portals mod looks as tho it hasn't been uninstalled properly.

Before you installed the newer version you should make sure the older version is completely uninstalled then deleted from the mod list.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mikungfu on April 07, 2010, 01:05:37 PM
Quote from: Brack1 on April 07, 2010, 11:31:21 AM
Mikungfu

The tiny portals mod looks as tho it hasn't been uninstalled properly.

Before you installed the newer version you should make sure the older version is completely uninstalled then deleted from the mod list.

Thank you for your headsup but... Never mind that. The TP did not have to be uninstalled before installing the new version. It would have been disastrous: I would loose all my settings, articles and work in general, and would have to restart from scratch. That's unthinkable!
In fact the new version prompts  you to upgrade from the old one during installation. You may read all about that here: http://www.tinyportal.net/index.php?topic=32211.0

My TP installation went smooth as silk and I have no problems with TP whatsoever... Which brings me back to the actual support I requested here, about Ajaxchat Manual Installation:

a) How do I execute Tables_1.1.X.php?.. Where from and by doing what?
b) would that be all or is there anything else to do for the manual install?

Please refer to my first post for more info about my support question.

thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Console Network on April 07, 2010, 01:14:08 PM
Quote from: mrtrc266 on April 06, 2010, 09:24:37 PM
Quote from: Console Network on April 06, 2010, 08:34:54 PM
Here you go. Im using the Burgundy Theme.


Are you sure you removed ALL edits from the other shout Mods on ALL themes? I just uploaded your index.template to my test site and it works fine.
Not sure. Want to see my files? on my FTP thing? See if you may fix it for me because i have tried alot of things and nothing is working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: josipo on April 07, 2010, 01:40:35 PM
Hey guys, started making a new website in quite a while! Anyway I installed smf 2 RC3 and I tried to install the ajax chat thingy. So I did and it said installed but when I go to the mods page i can't find it it etc to turn it on....can anyone help with this...

I did change file permissions and added a temp folder and what not....anyway please help <3

Edit....I think its because it dosent install it to my theme...but when I try and just use default theme it still dosent work...i read the manual install guide Still have no idea >_> When I did do it the auto way i selected my theme but i think it did nothing
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesicilian on April 07, 2010, 05:18:26 PM
Does prettyurl's cause problems for Ajaxchat, even with the htaccess line added?
Is it better to remove pretty url's?

I'm getting lot's of lost shouts in the shoutbox and its driving me mad trying to find out whats causing it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ngoclanbaby86 on April 07, 2010, 10:40:55 PM
I installed on my forums SMF ver 2.0 RC3 but it not work
i see error from windows chat same :

(09:35:34)   ChatBot:   Error: Connection status: 500

My MOD installed:


1. Pretty URLs1.0 
2. AjaxChat Integration
3. AJAX Instant Quick Reply


Who can help me :-(

My hosting is OS Linux, Cpanel X
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 07, 2010, 10:49:58 PM
Have a look through the link.

You will find the answer there.

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 08, 2010, 12:45:27 AM
Quote from: mikungfu on April 07, 2010, 01:05:37 PM
Quote from: Brack1 on April 07, 2010, 11:31:21 AM
Mikungfu

The tiny portals mod looks as tho it hasn't been uninstalled properly.

Before you installed the newer version you should make sure the older version is completely uninstalled then deleted from the mod list.

Thank you for your headsup but... Never mind that. The TP did not have to be uninstalled before installing the new version. It would have been disastrous: I would loose all my settings, articles and work in general, and would have to restart from scratch. That's unthinkable!
In fact the new version prompts  you to upgrade from the old one during installation. You may read all about that here: http://www.tinyportal.net/index.php?topic=32211.0

My TP installation went smooth as silk and I have no problems with TP whatsoever... Which brings me back to the actual support I requested here, about Ajaxchat Manual Installation:

a) How do I execute Tables_1.1.X.php?.. Where from and by doing what?
b) would that be all or is there anything else to do for the manual install?

Please refer to my first post for more info about my support question.

thanks!

It seems that users that have TP installed might have to uninstall TP then install AJAX Chat Intergration then reinstall TP. See the following posts

http://www.simplemachines.org/community/index.php?topic=257973.msg2565667#msg2565667
http://www.simplemachines.org/community/index.php?topic=257973.msg2565649#msg2565649

Regarding the manual install you should just be able to do all the edits then point your browser to where the Tables_1.1.X.php file is located and that will install the tables for you.

I would recommend trying to install via the package manager though. Uninstalling TP should not loose all your settings. (Ask TP first though as I've never used it)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 08, 2010, 12:47:05 AM
Quote from: Console Network on April 07, 2010, 01:14:08 PM
Quote from: mrtrc266 on April 06, 2010, 09:24:37 PM
Quote from: Console Network on April 06, 2010, 08:34:54 PM
Here you go. Im using the Burgundy Theme.


Are you sure you removed ALL edits from the other shout Mods on ALL themes? I just uploaded your index.template to my test site and it works fine.
Not sure. Want to see my files? on my FTP thing? See if you may fix it for me because i have tried alot of things and nothing is working.

You can PM me a link to your site and a temp Admin Account and I can take a look. It might be a couple days though...This is my Monday back to work
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 08, 2010, 12:49:13 AM
Quote from: thesicilian on April 07, 2010, 05:18:26 PM
Does prettyurl's cause problems for Ajaxchat, even with the htaccess line added?
Is it better to remove pretty url's?

I'm getting lot's of lost shouts in the shoutbox and its driving me mad trying to find out whats causing it.

Yes Pretty URL's can be an issue with AJAX Chat Integration. It should be fixed in the RC3 version but you still have to add the rewrite rules to the 1.1.X version. Just disable Pretty URL's and see what happens.

BTW what do you mean by "lost shouts?"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 08, 2010, 12:51:51 AM
Quote from: josipo on April 07, 2010, 01:40:35 PM
Hey guys, started making a new website in quite a while! Anyway I installed smf 2 RC3 and I tried to install the ajax chat thingy. So I did and it said installed but when I go to the mods page i can't find it it etc to turn it on....can anyone help with this...

I did change file permissions and added a temp folder and what not....anyway please help <3

Edit....I think its because it dosent install it to my theme...but when I try and just use default theme it still dosent work...i read the manual install guide Still have no idea >_> When I did do it the auto way i selected my theme but i think it did nothing

What exactly doesn't work in the default theme?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mikungfu on April 08, 2010, 01:19:49 AM
Quote from: mrtrc266 on April 08, 2010, 12:45:27 AM
Regarding the manual install you should just be able to do all the edits then point your browser to where the Tables_1.1.X.php file is located and that will install the tables for you.

I would recommend trying to install via the package manager though. Uninstalling TP should not loose all your settings. (Ask TP first though as I've never used it)

I have tried to execute Tables_1.1.X.php and I have on the correct location with index.php and SSI.php. Get the following error messages on top of my index page:

Warning: Cannot modify header information - headers already sent by (output started at /home/artimedi/public_html/legiao-501/Tables_1.1.X.php:1) in /home/artimedi/public_html/legiao-501/Sources/Subs.php on line 3296

Warning: Cannot modify header information - headers already sent by (output started at /home/artimedi/public_html/legiao-501/Tables_1.1.X.php:1) in /home/artimedi/public_html/legiao-501/Sources/Subs.php on line 3297

Warning: Cannot modify header information - headers already sent by (output started at /home/artimedi/public_html/legiao-501/Tables_1.1.X.php:1) in /home/artimedi/public_html/legiao-501/Sources/Subs.php on line 3303

Warning: Cannot modify header information - headers already sent by (output started at /home/artimedi/public_html/legiao-501/Tables_1.1.X.php:1) in /home/artimedi/public_html/legiao-501/Sources/Subs.php on line 3306


what can be happening?

Edit: You may not remember me but, you already gave me a hell of a help on a similar issue before. I have another website with TP and Ajaxchat and you were as kind as to untiringly help with that one at the time: http://www.simplemachines.org/community/index.php?topic=257973.msg2089450#msg2089450

I will revise that episode to see what I can learn from it and apply in this case. ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 08, 2010, 01:39:14 AM
@ mikungfu

Have you checked your database (phpMyAdmin) to see if the tables are installed? The should look like
_ajaxchat_bans
_ajaxchat_invitations
_ajaxchat_messages
_ajaxchat_online
_ajaxshout_bans
_ajaxshout_invitations
_ajaxshout_messages
_ajaxshout_online

If they're there then executing the Tables_1.1.X.php script worked if not then it didn't work.

Either way it seems that.....

QuoteIt seems that users that have TP installed might have to uninstall TP   then install AJAX Chat Intergration then reinstall TP. See the following   posts

http://www.simplemachines.org/community/index.php?topic=257973.msg2565667#msg2565667 (http://www.simplemachines.org/community/index.php?topic=257973.msg2565667#msg2565667)
http://www.simplemachines.org/community/index.php?topic=257973.msg2565649#msg2565649 (http://www.simplemachines.org/community/index.php?topic=257973.msg2565649#msg2565649)
I would recommend trying to install via the package manager though.   Uninstalling TP should not loose all your settings. (Ask TP first though   as I've never used it)

If you got that route also be sure to UNDO any edits that you did for the Chat Mod
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mikungfu on April 08, 2010, 01:57:40 AM
Quote from: mrtrc266 on April 08, 2010, 01:39:14 AM
@ mikungfu

Have you checked your database (phpMyAdmin) to see if the tables are installed? The should look like
_ajaxchat_bans
_ajaxchat_invitations
_ajaxchat_messages
_ajaxchat_online
_ajaxshout_bans
_ajaxshout_invitations
_ajaxshout_messages
_ajaxshout_online

If they're there then executing the Tables_1.1.X.php script worked if not then it didn't work.

Either way it seems that.....

QuoteIt seems that users that have TP installed might have to uninstall TP   then install AJAX Chat Intergration then reinstall TP. See the following   posts

http://www.simplemachines.org/community/index.php?topic=257973.msg2565667#msg2565667 (http://www.simplemachines.org/community/index.php?topic=257973.msg2565667#msg2565667)
http://www.simplemachines.org/community/index.php?topic=257973.msg2565649#msg2565649 (http://www.simplemachines.org/community/index.php?topic=257973.msg2565649#msg2565649)
I would recommend trying to install via the package manager though.   Uninstalling TP should not loose all your settings. (Ask TP first though   as I've never used it)

If you got that route also be sure to UNDO any edits that you did for the Chat Mod

Hmm... Apparently it didn't work! there are no such tables... The DB is in utf8_general_ci charset. May that have any influence?...
I had to do so many manual edits for TP already and so many tweaks... That I acn't believe I'll have uninstall all that manually and even risk loosing many settings, written articles, etc... All from TP. I rather choose another chat If I have too but... Even having to undo all the manual edits I did for Ajaxchat is something I would like to avoid too!..

I still don't get why I'm getting those warnings while trying to execute the DB... :-\ Is it possible to create the database tables manually on phpmyadmin, and see how it goes?
Also, by going to subs.php I found the following lines which are causing that warning:

Line 3296: header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
Line 3297: header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
Line 3303: header('Content-Type: text/html; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']))
Line 3306: header('Content-Type: text/' . (isset($_REQUEST['xml']) ? 'xml' : 'html') . '; charset=' . (empty($context['character_set']) ? 'ISO-8859-1' : $context['character_set']));;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesicilian on April 08, 2010, 02:52:03 AM
Quote from: mrtrc266 on April 08, 2010, 12:49:13 AM
Quote from: thesicilian on April 07, 2010, 05:18:26 PM
Does prettyurl's cause problems for Ajaxchat, even with the htaccess line added?
Is it better to remove pretty url's?

I'm getting lot's of lost shouts in the shoutbox and its driving me mad trying to find out whats causing it.

Yes Pretty URL's can be an issue with AJAX Chat Integration. It should be fixed in the RC3 version but you still have to add the rewrite rules to the 1.1.X version. Just disable Pretty URL's and see what happens.

BTW what do you mean by "lost shouts?"

You type in a shout and it don't appear in the shoutbox, this happens if there's just 2 or 3 members in the shoutbox.

I gone to Pretty URL's setup and un-checked Enable URL rewriting in Core settings, i'm assuming that what you meant.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesicilian on April 08, 2010, 08:36:24 AM
Quote from: mrtrc266 on April 08, 2010, 12:49:13 AM
Quote from: thesicilian on April 07, 2010, 05:18:26 PM
Does prettyurl's cause problems for Ajaxchat, even with the htaccess line added?
Is it better to remove pretty url's?

I'm getting lot's of lost shouts in the shoutbox and its driving me mad trying to find out whats causing it.

Yes Pretty URL's can be an issue with AJAX Chat Integration. It should be fixed in the RC3 version but you still have to add the rewrite rules to the 1.1.X version. Just disable Pretty URL's and see what happens.

BTW what do you mean by "lost shouts?"

Could log/not posted shouts etc.. becaused by something wrong in my php.ini file?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 08, 2010, 11:04:31 AM
@mikungfu
Yes you could set up the tables manually. Open Tables_1.1.X.php and you'll see the queries that you need to run. (of course make back ups first). After the tables are set then hopefully someone can help find the barrier between TP and AJC

@ sicilian
Didn't you already have this working once?
QuoteI 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: -

Code: [Select]
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.

Now I see that you're asking for support on neonneo's Shoutbox as well. You can't have both of these installed at the same time as they conflict with each other.

Please decide which one you want to use, COMPLETELY uninstall the other and take it from there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scoops09 on April 08, 2010, 07:29:07 PM
What files do I need to change the permissions to get this to work?

I'm getting the 500 Internal Server Error and I can't remember exactly which permissions to change (and haven't been able to find them here).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flapjack on April 08, 2010, 07:37:00 PM
are you using pretty urls?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scoops09 on April 08, 2010, 09:33:14 PM
Nope
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mikungfu on April 08, 2010, 11:38:19 PM
OK, so here is the present situation:

I decided to ask TP support if I could unninstall it withou loosing any setting. they said it was ok so I decided to follow your advise and tried to uninstall TP - Install AC - Install TP again.

So, I undo all the manual edits I had done to try and install Ajax Chat. Then I go for the TP uninstall...

1st problem: errors at TP uninstall - 3 failed tests: index.php, Load.php and subs.php
So, I asked TP support again for this problem... No one replies. I went ahead and uninstalled it despite the 3 failed tests... and then edited the 3 files manually to how they were before TP was installed.

Ok, now it's time to install AC. Problem: Package Manager still doesn't recognize AC package. I click on it and it simply refreshes the Package manager page. suddenly I remember to change the package name from "AjaxChat+Integration_3.2.1.zip" to "AjaxChat-Integration_3.2.1.zip" - BINGO! Now the Package Manager recognizes it!

I try to install AC - 1 error: index.template.php...........Test Failed

So I decide to restore my recently made backup. The backup restores the website to after I reverted my manuãl AC edits. So this leaves us at the following point:

TP installed and no AC whatsoever. - I go for the AC install through package manager.

Again 1 error: index.template.php...........Test Failed

I install it all the same. Then I edit index.template.php manually...

NOW THE MOMENT OF TRUTH!... Lets try the chat: I click on the chat button...

500 INTERNAL SERVER ERROR - Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

WORSE: I have tried making a fresh new smf install on a different directory, using a different DB. Everything from scratch!.. I installed AC as it's first package and had no test failed errors. everything installed smoothly but, when I click in Chat, I get e-x-a-c-t-l-y the same 500 Server Error. So I guess the other installation was probably as good as it gets too.

How do I get out of this? If I try to uninstall TP, I still get a lot of failed tests.

At least at this point my DB tables are created for AC. What can I do from here to overcome this?

HeeEELP!.. :o

PS:

URL from my older most complete install: http://www.artimedia.pt/legiao-501/index.php
URL from second fresh installation: http://www.artimedia.pt/legiao501/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smp420 on April 09, 2010, 12:52:56 AM
For everyone getting 500 server errors take a look at the faqs http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mikungfu on April 09, 2010, 01:18:34 AM
@smp420: Thanks for the headsup! I feel sooooo stupid, I mean... I had been there at least twice today reading diagonally looking for that and never saw it... You had to tell me it was actually there so I could see it. ::)

Now both forum seem to be working fine.

Conclusion: From the very beginning, the problem was the "+" character in the AC package name. I wonder if it wouldn't be a good idea to remove it. As I changed it to "-" the package manager was able to open it promptly.

Other than that, it sems to be working well despite having been installed after Tiny Portal. Maybe this new Beta5 version of TP no longer conflicts with AC.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 09, 2010, 01:28:50 AM
@ mikunfu

I'm soooo glad you finally got this sorted out. I understand going blind reading pages and pages and missing things. The 500 Error is the most common one when it comes to this Mod. I hope the chat mod is everything you hope for and was worth all the trouble.

Please post back if need anymore help.


Quote from: scoops09 on April 08, 2010, 07:29:07 PM
What files do I need to change the permissions to get this to work?

I'm getting the 500 Internal Server Error and I can't remember exactly which permissions to change (and haven't been able to find them here).
Please see......
Quote from: smp420 on April 09, 2010, 12:52:56 AM
For everyone getting 500 server errors take a look at the faqs http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesicilian on April 09, 2010, 02:59:24 AM
Quote from: mrtrc266 on April 08, 2010, 11:04:31 AM
@mikungfu
Yes you could set up the tables manually. Open Tables_1.1.X.php and you'll see the queries that you need to run. (of course make back ups first). After the tables are set then hopefully someone can help find the barrier between TP and AJC

@ sicilian
Didn't you already have this working once?
QuoteI 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: -

Code: [Select]
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.

Now I see that you're asking for support on neonneo's Shoutbox as well. You can't have both of these installed at the same time as they conflict with each other.

Please decide which one you want to use, COMPLETELY uninstall the other and take it from there.

I've had it installed before on previous hosting, was laggy there too and host made me remove it. On my current VPS its been the cause of lag too. Yes I've installed now.

Thing is out of all the shoutbox's available for SMF 1.1.11 I'd like to use this. I think it was the chat feature slowing my forums down, even though users didn't have permission to access. Is there anyway to install shoutbox only? Without the chat room feature?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ricorico on April 09, 2010, 04:08:14 AM
For some reason the other users are not seeing the shoutbox at all on their page? I have it on all pages and when they click Chat it brings them to the login screen instead of an auto login type thing. even if they use their forum info to login it says they cant use the chat?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 09, 2010, 10:09:02 AM
Quote from: ricorico on April 09, 2010, 04:08:14 AM
For some reason the other users are not seeing the shoutbox at all on their page? I have it on all pages and when they click Chat it brings them to the login screen instead of an auto login type thing. even if they use their forum info to login it says they cant use the chat?


Be sure to the CHECK PERMISSIONS! for each member group you want to have access to the chat/shout   ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ricorico on April 09, 2010, 10:46:58 AM
:: slaps head :: i figured this out about an hour after i posted it. sorry its been awhile. thanks for the response though sir :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: amkrisis on April 09, 2010, 10:47:31 AM
Quick question: is it possible to show the date in the shoutbox in addition of the time of the shout?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lakechurch on April 09, 2010, 01:34:45 PM
First of all thanks for this great mod.

I got 3 small questions.

1. After 1 or 2 days the shouts disappear and the shoutbox get's empty. Is there a way to make the time of erasing longer?

2. Every time I want to use the shoutbox the first message/shout doesn't work. The second time I try it works, but never the first time. Any solution for this?

3. Is there a way to disable the sound in the shoutbox?


I use AjaxChat Integration_3.2.1 RC3_Curve_Friendly and SMF 2.0 RC3
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 10, 2010, 12:53:40 AM
Quote from: amkrisis on April 09, 2010, 10:47:31 AM
Quick question: is it possible to show the date in the shoutbox in addition of the time of the shout?

Find /chat/js/config.js and change the format to whatever you like
      // Defines the format of the date and time displayed for each chat message:
      dateFormat: '(%H:%i:%s)',
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 10, 2010, 01:00:23 AM
Quote from: lakechurch on April 09, 2010, 01:34:45 PM
First of all thanks for this great mod.

I got 3 small questions.

1. After 1 or 2 days the shouts disappear and the shoutbox get's empty. Is there a way to make the time of erasing longer?

2. Every time I want to use the shoutbox the first message/shout doesn't work. The second time I try it works, but never the first time. Any solution for this?

3. Is there a way to disable the sound in the shoutbox?

I use AjaxChat Integration_3.2.1 RC3_Curve_Friendly and SMF 2.0 RC3

1. Take a look at /chat/lib/config.php there you'll find all the settings to set how long you want the messages to be displayed, how many messages you want to be displayed etc.

2. Not sure, have never heard of that problem before so it might be hard to reproduce.

3. Find /chat/lib/template/shoutbox.html

ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

Replace With

ajaxChatConfig.settings.audio =false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink','audio');


4. Please see the FAQ's on the Mods Home Page or in my signature to find some more config settings and tweaks.

5. Enjoy the Mod :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lakechurch on April 11, 2010, 09:54:47 AM
Quote from: mrtrc266 on April 10, 2010, 01:00:23 AM

1. Take a look at /chat/lib/config.php there you'll find all the settings to set how long you want the messages to be displayed, how many messages you want to be displayed etc.
2. Not sure, have never heard of that problem before so it might be hard to reproduce.
3. Find /chat/lib/template/shoutbox.html........
4. Please see the FAQ's on the Mods Home Page or in my signature to find some more config settings and tweaks.
5. Enjoy the Mod :)

Thanks for the help and the fast reply. I got everything working now, thanks again.
As for problem 2, when I turned " Integrate shout box and chat room?  " on it seems working good.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Galjoen on April 11, 2010, 11:06:14 AM
get this error, any ideas?

(17:03:13) ChatBot: Error: Connection status: 500

am using smf 1.1.11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on April 11, 2010, 11:10:00 AM
Galjoen: Read the FAQ mentioned in the first page of this thread.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on April 13, 2010, 05:07:32 AM
Currently the chat isn't displaying anything.
I tried to solve it with the .htaccess but it didn't solve anything :(

If anyone knows how to fix it please tell :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: freegod725 on April 13, 2010, 05:23:01 AM
is there a way to put new shouts on top instead of bottom?

and the shout box on top instead of bottom?
(this one solved by editing shoutbox.html)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nachtfalke on April 13, 2010, 07:45:35 AM
Hi there... i have got a prob: Nothing will happen. I have the screen but there are no members mentioned who are in the chatroom.
I got the error:
QuoteNotice: Undefined variable: scripturl in /customers/findet-tanjagraeff.de/findet-tanjagraeff.de/httpd.www/aps/smf2/Themes/default/languages/Modifications.english.php  on line 39
My standart-language is german

Hope that you can help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 13, 2010, 11:24:29 AM
Quote from: RoyalMess on April 13, 2010, 05:07:32 AM
Currently the chat isn't displaying anything.
I tried to solve it with the .htaccess but it didn't solve anything :(

If anyone knows how to fix it please tell :)

Try changing your file permissions to 755 on /chat/index.php and /shoutBox/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AM Woody3 on April 13, 2010, 11:42:55 AM
I've searched for this in this topic for about an hour and I didn't find anything.  It's probably something simple, but I can't find it...

How do I make the input field a little longer?  Right now it's so short that you can only see a few words in there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 13, 2010, 11:47:31 AM
Quote from: freegod725 on April 13, 2010, 05:23:01 AM
is there a way to put new shouts on top instead of bottom?

and the shout box on top instead of bottom?
(this one solved by editing shoutbox.html)

To reverse the direction of the shouts in the Shout Box
Find /chat/js/shoutbox.js
   ajaxChat.handleLogout = function() {
   }

Add after
ajaxChat.addMessageToChatList = function(dateObject, userID, userName, userRole, messageID, messageText, channelID, ip) {
// Prevent adding the same message twice:
      if(this.getMessageNode(messageID)) {
         return;
      }
      if(!this.onNewMessage(dateObject, userID, userName, userRole, messageID, messageText, channelID, ip)) {
         return;
      }
      this.updateDOM(
         'chatList',
      this.getChatListMessageString(
         dateObject, userID, userName, userRole, messageID, messageText, channelID, ip
      ),
      true // This prepends the message instead of appending it to the list
   )
}

      ajaxChat.updateChatlistView = function() {
         if(this.dom['chatList'].childNodes && this.settings['maxMessages']) {
         while(this.dom['chatList'].childNodes.length > this.settings['maxMessages']) {
      // Remove the last child for reverse scroll (instead of the first child):
         this.dom['chatList'].removeChild(this.dom['chatList'].lastChild);
      //this.dom['chatList'].removeChild(this.dom['chatList'].firstChild);
   }
}

      if(this.settings['autoScroll']) {
      // Always scroll to the top for reverse scroll:
         this.dom['chatList'].scrollTop = 0;
      //this.dom['chatList'].scrollTop = this.dom['chatList'].scrollHeight;
   }
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ninermac on April 13, 2010, 11:48:12 AM
Could not find this through search, is there a way I can turn off the shoutbox based on theme?  I have a main theme and then some mobile ones.  I don't want it on the mobile ones.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 13, 2010, 11:52:32 AM
Quote from: Nachtfalke on April 13, 2010, 07:45:35 AM
Hi there... i have got a prob: Nothing will happen. I have the screen but there are no members mentioned who are in the chatroom.
I got the error:
QuoteNotice: Undefined variable: scripturl in /customers/findet-tanjagraeff.de/findet-tanjagraeff.de/httpd.www/aps/smf2/Themes/default/languages/Modifications.english.php  on line 39
My standart-language is german

Hope that you can help
There seems to be an issue in some case with users that have TP installed. Just a couple pages back I think someone got it sorted. Will take a look in a little while.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 13, 2010, 12:02:18 PM
Quote from: AM Woody3 on April 13, 2010, 11:42:55 AM
I've searched for this in this topic for about an hour and I didn't find anything.  It's probably something simple, but I can't find it...

How do I make the input field a little longer?  Right now it's so short that you can only see a few words in there.
Find
<input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/>
Replace with (then change the size to your liking)
<input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" size="45"/>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 13, 2010, 12:12:55 PM
Quote from: ninermac on April 13, 2010, 11:48:12 AM
Could not find this through search, is there a way I can turn off the shoutbox based on theme?  I have a main theme and then some mobile ones.  I don't want it on the mobile ones.

Only way I can think of is to follow the instruction to relocate the shout box, then you can add it to whatever themes index.template or BoardIndex.

Find /Sources/Load.php
array_splice($context['template_layers'], 1, 0, 'shout');
Replace with
//array_splice($context['template_layers'], 1, 0, 'shout');

Find /Themes/YourTheme/index.template.php or BoardIndex.template.php and place it wherever you want.
template_shout_above();

NOTE: Not all themes have their own BoardIndex.template and pulls from SMF's Default theme so if you place it in SMF's Default BoardIndex then it will show on all themes that use it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AM Woody3 on April 13, 2010, 01:03:11 PM
Quote from: mrtrc266 on April 13, 2010, 12:02:18 PM
Quote from: AM Woody3 on April 13, 2010, 11:42:55 AM
I've searched for this in this topic for about an hour and I didn't find anything.  It's probably something simple, but I can't find it...

How do I make the input field a little longer?  Right now it's so short that you can only see a few words in there.
Find
<input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/>
Replace with (then change the size to your liking)
<input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" size="45"/>

Awesome!  Thanks!  One more thing.  When I do that, it pushes the smilies out of the shoutbox area.  How do I go about making that box drop down?  Or maybe just making it a drop down box?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 13, 2010, 01:31:05 PM
A couple things you can try....

1. If your forums theme is narrow you can widen it just a little (forum width can be set in your themes .css)

2. From the edit above try changing the "size" to 40.

3. Play with the table widths in the /chat/lib/template/shoutbox.html to get it to your liking

Something like
Find and adjust
                                        <td width="40%">
                                            <div id="ajaxChatInputFieldContainer">

Find and adjust
                                        <td  width="25%" valign="top">
                                            <div id="bbCodeContainer">

Find and add width="xx%" like the other cells
                                        <td valign="top">
                                            <div id="emoticonsContainer" dir="ltr"></div>


4. If you want the shout button below the input field take it out of the container
Find
                                            <div id="ajaxChatInputFieldContainer">
                                                <input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" size="45"/>
                                                <input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" />
                                            </div>

Replace with
                                            <div id="ajaxChatInputFieldContainer">
                                                <input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" size="45"/>
                                            </div>
                                                <input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" />
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AM Woody3 on April 13, 2010, 03:01:44 PM
I hate to be a pain in the butt.  I almost have it figured out now.  The problem is, all of the emoticons are in 1 big line.  How would I break those up into 2 or 3 lines?  If you want to take a look, go here.

http://www.lousyatgaming.com/test/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 13, 2010, 03:29:38 PM
Quote from: AM Woody3 on April 13, 2010, 03:01:44 PM
I hate to be a pain in the butt.  I almost have it figured out now.  The problem is, all of the emoticons are in 1 big line.  How would I break those up into 2 or 3 lines?  If you want to take a look, go here.

http://www.lousyatgaming.com/test/index.php (http://www.lousyatgaming.com/test/index.php)

At your site now, I see you added the smileys tweak. You can actually make those completely disappear and pop up when you hit the smiley button or just add a couple lines of code to your /chat/css/shoutbox.css to set your height and have the ability to scroll though the smileys.

Try this (see attached)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AM Woody3 on April 13, 2010, 09:04:15 PM
Awesome!  One last thing.  The mute button.  I saw earlier in the thread about how to do it, but I didn't quite get it.  Could you show me that code?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 13, 2010, 09:55:23 PM
Quote from: AM Woody3 on April 13, 2010, 09:04:15 PM
Awesome!  One last thing.  The mute button.  I saw earlier in the thread about how to do it, but I didn't quite get it.  Could you show me that code?
The mute button doesn't work that great in the Shout Box cuz it's not persistent but here is how to disable the sound in the Shout Box

Find /chat/lib/template/shoutbox.html

ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

Replace With

ajaxChatConfig.settings.audio =false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink','audio');
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nachtfalke on April 14, 2010, 02:17:17 AM
Quote from: mrtrc266 on April 13, 2010, 11:52:32 AM
Quote from: Nachtfalke on April 13, 2010, 07:45:35 AM
Hi there... i have got a prob: Nothing will happen. I have the screen but there are no members mentioned who are in the chatroom.
I got the error:
QuoteNotice: Undefined variable: scripturl in /customers/findet-tanjagraeff.de/findet-tanjagraeff.de/httpd.www/aps/smf2/Themes/default/languages/Modifications.english.php  on line 39
My standart-language is german

Hope that you can help
There seems to be an issue in some case with users that have TP installed. Just a couple pages back I think someone got it sorted. Will take a look in a little while.

Hi MRTRC266,
i deleted TP and installed PortaMX but it is still the same error :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on April 14, 2010, 04:28:37 AM
Quote from: mrtrc266 on April 13, 2010, 11:24:29 AM
Quote from: RoyalMess on April 13, 2010, 05:07:32 AM
Currently the chat isn't displaying anything.
I tried to solve it with the .htaccess but it didn't solve anything :(

If anyone knows how to fix it please tell :)

Try changing your file permissions to 755 on /chat/index.php and /shoutBox/index.php

I did but no effect, still a empty chat :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: josipo on April 14, 2010, 08:31:18 AM
How do I change the name ShoutBox...like the bar part....I looked around but can't find it!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 14, 2010, 10:17:13 AM
Quote from: Nachtfalke on April 14, 2010, 02:17:17 AM
Quote from: mrtrc266 on April 13, 2010, 11:52:32 AM
Quote from: Nachtfalke on April 13, 2010, 07:45:35 AM
Hi there... i have got a prob: Nothing will happen. I have the screen but there are no members mentioned who are in the chatroom.
I got the error:
QuoteNotice: Undefined variable: scripturl in /customers/findet-tanjagraeff.de/findet-tanjagraeff.de/httpd.www/aps/smf2/Themes/default/languages/Modifications.english.php  on line 39
My standart-language is german

Hope that you can help
There seems to be an issue in some case with users that have TP installed. Just a couple pages back I think someone got it sorted. Will take a look in a little while.

Hi MRTRC266,
i deleted TP and installed PortaMX but it is still the same error :(

Just for kicks try installing AJAX Chat Integration first then be sure to change the file permissions to 755 on /chat/index.php and /shoutBox/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 14, 2010, 10:17:59 AM
Quote from: RoyalMess on April 14, 2010, 04:28:37 AM
Quote from: mrtrc266 on April 13, 2010, 11:24:29 AM
Quote from: RoyalMess on April 13, 2010, 05:07:32 AM
Currently the chat isn't displaying anything.
I tried to solve it with the .htaccess but it didn't solve anything :(

If anyone knows how to fix it please tell :)

Try changing your file permissions to 755 on /chat/index.php and /shoutBox/index.php

I did but no effect, still a empty chat :P

What the link to your site. PM me if you don't want it public.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 14, 2010, 10:19:33 AM
Quote from: josipo on April 14, 2010, 08:31:18 AM
How do I change the name ShoutBox...like the bar part....I looked around but can't find it!

Find /Themes/defa​ult/languages/Shout.engli​sh.php
$txt['shout​Box'] = 'ShoutBox';

and change the 2nd ShoutBox to what you want to name it. Be sure to clear your forum cache to see the changes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jjzx2sr on April 14, 2010, 04:43:28 PM
I have 2 questions really, can i increase the size of the shoutbox window currently it only shows 8 shouts at a time and say i would like 10-15 is it possible? I just picked a random number for the latter.  Also is it possible to change the direction of scroll. as new shouts at posted to the bottom of the window and older messages move or scroll up, is i possible to have them scroll down and the new shouts get posted to the top.

Also i tried disabling the sound using the above recommended method by mrtrc266 and it seems not to have any effect as the sounds are still there did i miss something.

For the record i'm running Ajax chat on SMF 2.0 RC3 which i may add are both awesome.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: josipo on April 14, 2010, 08:22:29 PM
thanks mrtrc266 it worked :):)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 15, 2010, 01:15:36 AM
Quote from: jjzx2sr on April 14, 2010, 04:43:28 PM
I have 2 questions really, can i increase the size of the shoutbox window currently it only shows 8 shouts at a time and say i would like 10-15 is it possible? I just picked a random number for the latter.  Also is it possible to change the direction of scroll. as new shouts at posted to the bottom of the window and older messages move or scroll up, is i possible to have them scroll down and the new shouts get posted to the top.

Also i tried disabling the sound using the above recommended method by mrtrc266 and it seems not to have any effect as the sounds are still there did i miss something.

For the record i'm running Ajax chat on SMF 2.0 RC3 which i may add are both awesome.

To increase the height of your Shout Box find /chat/css/shoutbox.css and change the height to whatever you like.
#ajaxChatContent #ajaxChatChatList {
   height:169px;
   overflow:auto;
}


To reverse the scroll it was 1 page back http://www.simplemachines.org/community/index.php?topic=257973.msg2583058#msg2583058 (http://www.simplemachines.org/community/index.php?topic=257973.msg2583058#msg2583058)

PLEASE NOTE: For the sound if you DO NOT have your Shout & Chat Integrated then you also have to do the same edits  to /shoutBox/lib/template/shoutbox.html

This will also go for the edits above and any edits in the future, if you DO NOT have your Chat & Shout Integrated then you must do the edits in both of these folders for the same files /chat and /shoutBox
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 15, 2010, 01:18:07 AM
Quote from: josipo on April 14, 2010, 08:22:29 PM
thanks mrtrc266 it worked :) :)
Glad it's sorted...Enjoy!  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on April 15, 2010, 01:44:41 AM
Can I ask a question, not about support.  But what hosts are members using that allows Ajax Chats on their site?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 15, 2010, 02:03:17 AM
Quote from: hcfwesker on April 15, 2010, 01:44:41 AM
Can I ask a question, not about support.  But what hosts are members using that allows Ajax Chats on their site?

I use http://xtreemhost.com/plans/ (http://xtreemhost.com/plans/) (premium plan). I started off using their free plan and it worked great and I still have a couple sites using the free service. The Premium Plan made it 100 times better for my live site.

After helping hundreds of people though I can assure you that there are PLENTY of hosting services that AJAX Chat runs on with out any problems.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on April 15, 2010, 08:09:25 AM
Quote from: mrtrc266 on April 14, 2010, 10:17:59 AM
Quote from: RoyalMess on April 14, 2010, 04:28:37 AM
Quote from: mrtrc266 on April 13, 2010, 11:24:29 AM
Quote from: RoyalMess on April 13, 2010, 05:07:32 AM
Currently the chat isn't displaying anything.
I tried to solve it with the .htaccess but it didn't solve anything :(

If anyone knows how to fix it please tell :)

Try changing your file permissions to 755 on /chat/index.php and /shoutBox/index.php

I did but no effect, still a empty chat :P

What the link to your site. PM me if you don't want it public.

www.topsportleeuwarden.nl

Its a Dutch sports discussion website.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TurtleKicker on April 15, 2010, 09:40:03 AM
Quote from: hcfwesker on April 15, 2010, 01:44:41 AM
Can I ask a question, not about support.  But what hosts are members using that allows Ajax Chats on their site?
"Allow"? I'd think as long as you're staying within your resource terms it shouldn't matter whether those CPU cycles are being used by AJAXchat, a picture gallery, or whatever.

I just went and installed it on mine. Haven't had an issue. My webhost is pretty laid back: MDD Hosting (http://www.mddhosting.com/099).

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nachtfalke on April 15, 2010, 11:02:51 AM
Quote from: mrtrc266 on April 14, 2010, 10:17:13 AM
Quote from: Nachtfalke on April 14, 2010, 02:17:17 AM
Quote from: mrtrc266 on April 13, 2010, 11:52:32 AM
Quote from: Nachtfalke on April 13, 2010, 07:45:35 AM
Hi there... i have got a prob: Nothing will happen. I have the screen but there are no members mentioned who are in the chatroom.
I got the error:
QuoteNotice: Undefined variable: scripturl in /customers/findet-tanjagraeff.de/findet-tanjagraeff.de/httpd.www/aps/smf2/Themes/default/languages/Modifications.english.php  on line 39
My standart-language is german

Hope that you can help
There seems to be an issue in some case with users that have TP installed. Just a couple pages back I think someone got it sorted. Will take a look in a little while.

Hi MRTRC266,
i deleted TP and installed PortaMX but it is still the same error :(

Just for kicks try installing AJAX Chat Integration first then be sure to change the file permissions to 755 on /chat/index.php and /shoutBox/index.php

Still the same :(
http://www.findet-tanjagraeff.de/aps/smf2/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wodema on April 15, 2010, 05:17:07 PM
This mod installed successfuly but when I click on the chat icon the chatscreen comes up with these errors:

Error 500 - Internal Server Error. The server encountered an unexpected condition which prevented it from fulfilling the request.
http:// ladyoftheearth.com/forum-3/sources/a-chat/chat.php

Error 404: Sorry, our server was not able to locate the documents requested.

Can anyone help with this, bearing in mind that I am a neophite with all this stuff?


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 16, 2010, 12:51:53 AM
@ Nachtfalke try renaming the /Themes/default/shout.Shout.english.php to the language your site uses.

@ wodema please see the FAQ's on the Mods homepage or in my signature regarding the 500 Error
Also, this does not have a /chat.php file, have you previously installed another chat mod that still lingers around?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on April 16, 2010, 01:16:11 AM
Quote from: sremick on April 15, 2010, 09:40:03 AM
"Allow"? I'd think as long as you're staying within your resource terms it shouldn't matter whether those CPU cycles are being used by AJAXchat, a picture gallery, or whatever.

I just went and installed it on mine. Haven't had an issue. My webhost is pretty laid back: MDD Hosting (http://www.mddhosting.com/099).

I had mine installed as well with no issues, and never used up 1/3 of my allowed bandwidth or diskspace for that entire month.  But when the end of the first month rolled around, I was asked to remove it by the host.  More Details  Click Here (http://www.simplemachines.org/community/index.php?topic=374133.0)

I'm happy with the host I'm on, but when we use Ajax chat there, it lags badly, sometimes post won't pop up for 20-30 seconds in the chat.  that's why I'm asking what are some hosts members are on, so I can get a clear idea on where maybe I should check out to resolve these issues I keep getting from my Ajax chat.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Caesarrrrr on April 16, 2010, 03:25:30 AM
alright im having an issue
i installed this, had no errors during installation, but nothing is showing up, no button, and nothing to turn on in the admin menu
im using 1.11.1
here is the one i installed
http://custom.simplemachines.org/mods/index.php?mod=1319
im not running a core theme, fyi
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nachtfalke on April 16, 2010, 05:13:22 AM
Now it works! The reason?
One of my mods: Message for your guests
After deleting that mod, the chat works!!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on April 16, 2010, 07:41:05 AM
Quote from: mrtrc266 on April 14, 2010, 10:17:59 AM
Quote from: RoyalMess on April 14, 2010, 04:28:37 AM
Quote from: mrtrc266 on April 13, 2010, 11:24:29 AM
Quote from: RoyalMess on April 13, 2010, 05:07:32 AM
Currently the chat isn't displaying anything.
I tried to solve it with the .htaccess but it didn't solve anything :(

If anyone knows how to fix it please tell :)

Try changing your file permissions to 755 on /chat/index.php and /shoutBox/index.php

I did but no effect, still a empty chat :P

What the link to your site. PM me if you don't want it public.

www.topsportleeuwarden.nl

Its a Dutch sports discussion website.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wodema on April 16, 2010, 09:06:01 AM
Got it working fine now. Just had to change the chmod. One more little question. I can't seem to find any way to delere the test chat I put in there. Can it be deleted?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 16, 2010, 10:01:50 AM
@RoyalMess
Sending PM

@  hcfwesker
Have you asked your host if there's see if they can diagnose what's causing the lag? In 300 pages of support I haven't heard of this issue. It seems that you have a pretty active board so this might just take too much of a load in addition to your forums current activity.

@ Nachtfalke
That's very odd as that Mod does an extremely minor edit to the index.template.php file. Don't see how it could interfere with the Chat. Glad you got it sorted though.

@ Caesarrrrr
Does it work on the Core theme though? If you use a custom theme then you have to manually do the edits to get the button to show up on your theme. Also there are some edits that need to be done to show the # of users in chat on your BoardIndex and User Info area. Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)

For Admin Setting - Admin/Configuration/Features and Options/
Please see FAQ's (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) for more info.


@ wodema
Glad you got it sorted! Ummm where did you put it? LOL
You should have 2 folders yourforum/chat/ and yourforum/shoutBox/ and others you can delete.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wodema on April 16, 2010, 12:07:46 PM
They are in my main forum folders under /chat and /shoutbox. I turned off the shoubox though because I didn't like it. It took up half my screen...lol

Title: Chat in the popup
Post by: ProfDrDenis on April 16, 2010, 12:58:34 PM
I use chat in the popup window, is there any way after logout that the window will close automatically?

thanks for helping
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Caesarrrrr on April 16, 2010, 02:57:15 PM
Quote from: mrtrc266 on April 16, 2010, 10:01:50 AM
@RoyalMess
Sending PM

@  hcfwesker
Have you asked your host if there's see if they can diagnose what's causing the lag? In 300 pages of support I haven't heard of this issue. It seems that you have a pretty active board so this might just take too much of a load in addition to your forums current activity.

@ Nachtfalke
That's very odd as that Mod does an extremely minor edit to the index.template.php file. Don't see how it could interfere with the Chat. Glad you got it sorted though.

@ Caesarrrrr
Does it work on the Core theme though? If you use a custom theme then you have to manually do the edits to get the button to show up on your theme. Also there are some edits that need to be done to show the # of users in chat on your BoardIndex and User Info area. Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)

For Admin Setting - Admin/Configuration/Features and Options/
Please see FAQ's (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) for more info.


@ wodema
Glad you got it sorted! Ummm where did you put it? LOL
You should have 2 folders yourforum/chat/ and yourforum/shoutBox/ and others you can delete.

no it doesnt work on the core theme either
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jjzx2sr on April 16, 2010, 09:25:04 PM
thanks for the tips and help mrtrc266 your always a great help.  I got everything tweaked perfectly. 

JJ
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 16, 2010, 09:36:41 PM
Quote from: wodema on April 16, 2010, 12:07:46 PM
They are in my main forum folders under /chat and /shoutbox. I turned off the shoubox though because I didn't like it. It took up half my screen...lol

You can adjust the height of your shout box in /chat/css/shoutbox.css or just use the chat room like you said. Glad it going for you.
#ajaxChatContent #ajaxChatChatList {
height:169px;
overflow:auto;
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 16, 2010, 09:37:46 PM
Quote from: ProfDrDenis on April 16, 2010, 12:58:34 PM
I use chat in the popup window, is there any way after logout that the window will close automatically?

thanks for helping

Your welcome....
Find /chat/js/custom.js
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
   return text;
}
*/

Add after
ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()",   1);
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 16, 2010, 09:38:43 PM
Quote from: jjzx2sr on April 16, 2010, 09:25:04 PM
thanks for the tips and help mrtrc266 your always a great help.  I got everything tweaked perfectly. 

JJ

Your very welcome, glad you got it to your liking. Enjoy :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 16, 2010, 10:30:38 PM
@  Caesarrrrr
What's the link to your site?
What language are you using?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 17, 2010, 10:43:04 AM
@ RoyalMess it seems that your host does not allow .htaccess files on their server. If you notice when you upload it, it immediately disappears that's why it was not having any effect LOL. Get in contact with them to see if they can fix that for you then create an .htaccess file and try adding this line to it then upload it to your forums root folder (the same place your SSI.php file is located).
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on April 17, 2010, 12:10:50 PM
Quote from: mrtrc266 on April 17, 2010, 10:43:04 AM
@ RoyalMess it seems that your host does not allow .htaccess files on their server. If you notice when you upload it, it immediately disappears that's why it was not having any effect LOL. Get in contact with them to see if they can fix that for you then create an .htaccess file and try adding this line to it then upload it to your forums root folder (the same place your SSI.php file is located).
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

It doesn't show in FTP clients but when i use the build in FTP through PLESK i find a .htaccess file and it has that line in it.

See these 2 screenshots.

http://img685.imageshack.us/img685/1108/94891622.jpg

http://img714.imageshack.us/img714/5290/68837273.jpg
Title: dumb question
Post by: wodema on April 17, 2010, 12:48:24 PM
Is there any way  for the moderator or admin to log in annonimously or invisibly unless they want their name to show?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TurtleKicker on April 17, 2010, 01:13:03 PM
Quote from: mrtrc266 on April 16, 2010, 09:37:46 PM
Your welcome....
Find /chat/js/custom.js
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
   return text;
}
*/

Add after
ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()",   1);
}


A few pages back, I posted that this doesn't always work, and often just logs you out then logs you right back in again without closing the tab. I never got any response.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ProfDrDenis on April 17, 2010, 01:55:05 PM
Quote from: sremick on April 17, 2010, 01:13:03 PM
I never got any response.

sorry I was busy. Before the code was not working. I test the new one
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ProfDrDenis on April 17, 2010, 02:01:18 PM
without */ its working. Means:

Quote
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
   return text;
}

ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()",   1);
}

Thanks so much
Title: Counter
Post by: ProfDrDenis on April 17, 2010, 03:16:36 PM
I have an other problem. In my index.template.php file is inside:

Quote// Chat start
                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>';
                }
        // Chat the end

but its not counting. What can I do?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 18, 2010, 01:03:14 AM
Quote from: sremick on April 17, 2010, 01:13:03 PM
Quote from: mrtrc266 on April 16, 2010, 09:37:46 PM
Your welcome....
Find /chat/js/custom.js
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
   return text;
}
*/

Add after
ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()",   1);
}


A few pages back, I posted that this doesn't always work, and often just logs you out then logs you right back in again without closing the tab. I never got any response.

The logout might happen often if you have the idle time set too short......

Set how long you want members to be idle before they are timed out.
Open.....yourforum/chat/lib/config.php (Change to whatever you like.)
Find
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 18, 2010, 01:08:41 AM
Quote from: ProfDrDenis on April 17, 2010, 03:16:36 PM
I have an other problem. In my index.template.php file is inside:

Quote// Chat start
                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>';
                }
        // Chat the end

but its not counting. What can I do?

That just shows the # of users in chat somewhere around.....

QuoteWillkommen Gast. Bitte einloggen  oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?
18. April 2010 | 07:04:02

....you might have to play with the location of it since every theme is different.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 18, 2010, 01:11:53 AM
@  RoyalMess
I'm getting totally stumped and will have to do some digging on my days off Mon-Tue. Thank you for your patience
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: daked on April 18, 2010, 03:26:13 AM
i installed ajax chat but i cant seem to find a chat link any where,installation went successfully
Neither can i find a control panel for the chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ProfDrDenis on April 18, 2010, 04:04:50 AM
Quote from: mrtrc266 on April 18, 2010, 01:08:41 AM
....you might have to play with the location of it since every theme is different.

yes, but I make a mistake. The counter is in the BoardIndex.template.php:

Quote// users in chat
    if (isset($context['chat_links'])){
        if (count($context['chat_links']) == 0 )
          echo '<br />' . $txt['chat_no_user'];
        elseif (count($context['chat_links']) == 1 )
          echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
        else
          echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }
    // Chat user zähler Ende

and this - I think - is on a correct place. See attach file (Kein Mitglied im Chat)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: daked on April 18, 2010, 04:47:20 AM
change the permissions (got it from faq) and it now works check it out @ teensonlinemeet dot com
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on April 18, 2010, 04:54:07 AM
Quote from: mrtrc266 on April 18, 2010, 01:11:53 AM
@  RoyalMess
I'm getting totally stumped and will have to do some digging on my days off Mon-Tue. Thank you for your patience
I'll ask my host as well why the .htaccess appears in the CPanel its FTP and not in the normal FTP.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wodema on April 18, 2010, 09:07:17 AM

Quote from: wodema on April 16, 2010, 09:06:01 AM
Got it working fine now. Just had to change the chmod. One more little question. I can't seem to find any way to delere the test chat I put in there. Can it be deleted?


Quote from: wodema on April 17, 2010, 12:48:24 PM
Is there any way  for the moderator or admin to log in annonimously or invisibly unless they want their name to show?


Hmmm...seems like my last two questions were ignored. Can I get some answers please?? Guess I'll have to put big long posts to be seen... :'(

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 18, 2010, 10:42:02 AM
QuoteHmmm...seems like my last two questions were ignored. Can I get   some answers please?? Guess I'll have to put big long posts to be   seen... :'(
I did respond to your first question and missed the second....sorry  :(
http://www.simplemachines.org/community/index.php?topic=257973.msg2586483#msg2586483 (http://www.simplemachines.org/community/index.php?topic=257973.msg2586483#msg2586483).
"@ wodema
Glad you got it sorted! Ummm where did you put it? LOL
You  should have 2 folders yourforum/chat/ and yourforum/shoutBox/ any  others you can delete"

Quote from: wodema on April 16, 2010, 09:06:01 AM
Got it working fine now. Just had to change the chmod. One more little question. I can't seem to find any way to delere the test chat I put in there. Can it be deleted?
If your talking about deleting the   test chats that you posted (text) you should see a lil' red X on the   right and you can   delete all the chats as admin. If your talking about deleting the test   Chat Mod itself the just delete the /chat and /shoutBox folders and keep the ones in your main forum.

Quote from: wodema on April 17, 2010, 12:48:24 PM
Is there any way  for the moderator or admin to log in annonimously or invisibly unless they want their name to show?

I don't believe so
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 18, 2010, 10:59:53 AM
@  ProfDrDenis Does it work on the default theme?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ProfDrDenis on April 18, 2010, 12:18:09 PM
Quote from: mrtrc266 on April 18, 2010, 10:59:53 AM
@  ProfDrDenis Does it work on the default theme?

not working with the core theme
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on April 18, 2010, 07:15:55 PM
Quote from: SunKing on March 04, 2010, 03:43:37 AM
Have you tried clearing Firefox's cache? Also, do you have flash enabled for Firefox?

I'm getting the same error: ChatBot: Error: Failed to load sound file (Flash IO Error).

However this happens in 4 browsers, IE, Chrome, Opera and Safari.  Is there an easy fix?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Caesarrrrr on April 19, 2010, 02:06:06 AM
after digging thru the files, i finally got it to work, actually a friend of mine got it work, said there was some missing strings. but its working now
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on April 19, 2010, 02:16:47 PM
Quote from: Stigmartyr on April 18, 2010, 07:15:55 PM
Quote from: SunKing on March 04, 2010, 03:43:37 AM
Have you tried clearing Firefox's cache? Also, do you have flash enabled for Firefox?

I'm getting the same error: ChatBot: Error: Failed to load sound file (Flash IO Error).

However this happens in 4 browsers, IE, Chrome, Opera and Safari.  Is there an easy fix?


Is there anything I'm missing?  This thread references issues with Firefox, but this is not a Firefox issue.  It's broken in all browsers, and it works fine on my SMF 2.0 RC2 site.  Just having issues in SMF 1.1.1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 19, 2010, 03:53:50 PM
Quote from: RoyalMess on April 18, 2010, 04:54:07 AM
Quote from: mrtrc266 on April 18, 2010, 01:11:53 AM
@  RoyalMess
I'm getting totally stumped and will have to do some digging on my days off Mon-Tue. Thank you for your patience
I'll ask my host as well why the .htaccess appears in the CPanel its FTP and not in the normal FTP.
Let me know if / when  they fix it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 19, 2010, 03:55:53 PM
Quote from: ProfDrDenis on April 18, 2010, 12:18:09 PM
Quote from: mrtrc266 on April 18, 2010, 10:59:53 AM
@  ProfDrDenis Does it work on the default theme?

not working with the core theme
Attach your /Themes/default/BoardIndex.template.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 19, 2010, 04:09:00 PM
Quote from: Stigmartyr on April 19, 2010, 02:16:47 PM
Quote from: Stigmartyr on April 18, 2010, 07:15:55 PM
Quote from: SunKing on March 04, 2010, 03:43:37 AM
Have you tried clearing Firefox's cache? Also, do you have flash enabled for Firefox?

I'm getting the same error: ChatBot: Error: Failed to load sound file (Flash IO Error).

However this happens in 4 browsers, IE, Chrome, Opera and Safari.  Is there an easy fix?


Is there anything I'm missing?  This thread references issues with Firefox, but this is not a Firefox issue.  It's broken in all browsers, and it works fine on my SMF 2.0 RC2 site.  Just having issues in SMF 1.1.1
It was an FF issue but it seems that it's crept into other browsers as well? It is a known issue @ SourceForge but there haven't been any updates on how to fix it.

For some reason it says that it fails to load the sound even though the sound loads fine immediately after the error message pops up. I know it's annoying but you only see the error the very first time that you log in, and only you see it. It doesn't show the message to all the other users in chat so it won't interrupt anything.

As soon as there is a solution to prevent the error message from showing it will be posted.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on April 19, 2010, 04:11:29 PM
Quote from: mrtrc266 on April 19, 2010, 03:53:50 PM
Quote from: RoyalMess on April 18, 2010, 04:54:07 AM
Quote from: mrtrc266 on April 18, 2010, 01:11:53 AM
@  RoyalMess
I'm getting totally stumped and will have to do some digging on my days off Mon-Tue. Thank you for your patience
I'll ask my host as well why the .htaccess appears in the CPanel its FTP and not in the normal FTP.
Let me know if / when  they fix it.

The file is fine and they aren't blocking it or doing anything how so ever to it.
Its just hidden in your FTP client and i was able to view it in Filezilla by showing hidden files just like you can do in Windows.

If you use FileZilla;
Version 2.x – View > Show hidden files
Version 3.x – Server > Force showing hidden files

EDIT: The permission for the .htaccess is 644
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ProfDrDenis on April 19, 2010, 04:31:30 PM

Attach your /Themes/default/BoardIndex.template.php


well here is my file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JasonO on April 19, 2010, 04:56:41 PM
Hi,

How would I go about uninstalling this mod?

When I attempt to I get the message:

QuoteThis package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.

If I need to do it manually, would someone be so kind to help me with this.

Thanks,
Jason
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on April 19, 2010, 05:13:32 PM
Quote from: mrtrc266 on April 19, 2010, 04:09:00 PM
Quote from: Stigmartyr on April 19, 2010, 02:16:47 PM
Quote from: Stigmartyr on April 18, 2010, 07:15:55 PM
Quote from: SunKing on March 04, 2010, 03:43:37 AM
Have you tried clearing Firefox's cache? Also, do you have flash enabled for Firefox?

I'm getting the same error: ChatBot: Error: Failed to load sound file (Flash IO Error).

However this happens in 4 browsers, IE, Chrome, Opera and Safari.  Is there an easy fix?


Is there anything I'm missing?  This thread references issues with Firefox, but this is not a Firefox issue.  It's broken in all browsers, and it works fine on my SMF 2.0 RC2 site.  Just having issues in SMF 1.1.1
It was an FF issue but it seems that it's crept into other browsers as well? It is a known issue @ SourceForge but there haven't been any updates on how to fix it.

For some reason it says that it fails to load the sound even though the sound loads fine immediately after the error message pops up. I know it's annoying but you only see the error the very first time that you log in, and only you see it. It doesn't show the message to all the other users in chat so it won't interrupt anything.

As soon as there is a solution to prevent the error message from showing it will be posted.

Yeah that stinks.  You can see it here http://realperformancemustangs.com/chat/index.php  The sound files don't load at all either.  I can't hear anything.  Also the error messages load everytime I go into chat. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 19, 2010, 05:23:42 PM
Quote from: JasonO on April 19, 2010, 04:56:41 PM
Hi,
How would I go about uninstalling this mod?
When I attempt to I get the message:
QuoteThis package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.
If I need to do it manually, would someone be so kind to help me with this.
Thanks,
Jason
What version of SMF and what version of AJAX Chat Integration?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 19, 2010, 05:26:20 PM
Quote from: ProfDrDenis on April 19, 2010, 04:31:30 PM

Attach your /Themes/default/BoardIndex.template.php

well here is my file
Your file works fine on my site (see attached pic). Make sure that all the edits are done in ./Sources/BoardIndex.php as well.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 19, 2010, 05:29:02 PM
@ Stigmartyr yeah the message only appears when you log in then try a hard refresh ctrl+f5 to see if the sound loads. Also does this happen only for you, a few members or everyone?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JasonO on April 19, 2010, 05:38:42 PM
Quote from: mrtrc266 on April 19, 2010, 05:23:42 PM
Quote from: JasonO on April 19, 2010, 04:56:41 PM
Hi,
How would I go about uninstalling this mod?
When I attempt to I get the message:
QuoteThis package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.
If I need to do it manually, would someone be so kind to help me with this.
Thanks,
Jason
What version of SMF and what version of AJAX Chat Integration?

My SMF version is 1.1.11
My Ajax Chat Intergration version is 3.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 19, 2010, 05:46:10 PM
Quote from: JasonO on April 19, 2010, 05:38:42 PM
Quote from: mrtrc266 on April 19, 2010, 05:23:42 PM
Quote from: JasonO on April 19, 2010, 04:56:41 PM
Hi,
How would I go about uninstalling this mod?
When I attempt to I get the message:
QuoteThis package cannot be uninstalled, because there is no uninstaller!
Please contact the mod author for more information.
If I need to do it manually, would someone be so kind to help me with this.
Thanks,
Jason
What version of SMF and what version of AJAX Chat Integration?

My SMF version is 1.1.11
My Ajax Chat Intergration version is 3.2

That's odd, I've never seen that error. I Just installed on my test site and uninstalled on RoyalMess' site (both using 1.1.11 without any probs at all. Are you sure your using this one?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JasonO on April 19, 2010, 06:12:58 PM
Errm, not sure. I installed it about a year ago but I haven't used it for a while so just clearing out and uninstalling all the mods and installing new ones.

How would I know? Also, is there a way I can still go about removing it from the database etc manually? I tried deleting the tables but got a table not found error on the board index. Replaced with backup so not sure what to do now.

Thanks for your help :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on April 19, 2010, 06:51:28 PM
Quote from: mrtrc266 on April 19, 2010, 05:29:02 PM
@ Stigmartyr yeah the message only appears when you log in then try a hard refresh ctrl+f5 to see if the sound loads. Also does this happen only for you, a few members or everyone?

Ok refresh does nothing for me.  I have 2 others testing too.  I have 4 computers (all PCs) I'm using to test and one guy with a Mac, and another with a PC (unknown specs).

It's really odd.  As I said I got this working on my SMF 2 site without drama.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BobHoil on April 19, 2010, 11:46:21 PM
I installed this over at my site here: http://emoballz.info/

Problem is the chat isn't working correctly. I can open it but it doesn't say I have connected and the chat doesn't show up.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 19, 2010, 11:50:09 PM
Quote from: BobHoil on April 19, 2010, 11:46:21 PM
I installed this over at my site here: http://emoballz.info/

Problem is the chat isn't working correctly. I can open it but it doesn't say I have connected and the chat doesn't show up.

Please read the FAQ's...BIG PURPLE LETTERS from the same place you downloaded this mod
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BobHoil on April 19, 2010, 11:55:38 PM
Wow sorry about that! Thanks a ton I got it working correctly  8)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 20, 2010, 12:06:41 AM
Quote from: BobHoil on April 19, 2010, 11:55:38 PM
Wow sorry about that! Thanks a ton I got it working correctly  8)

Cool...glad you got it sorted :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zamg0d1 on April 20, 2010, 04:14:35 AM
Is it possible to load the shoutbox in my site using SSI? O:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ProfDrDenis on April 20, 2010, 05:51:28 AM
Quote from: mrtrc266 on April 19, 2010, 05:26:20 PM
Your file works fine on my site (see attached pic). Make sure that all the edits are done in ./Sources/BoardIndex.php as well.

first let me say thansk for looking. I check my BoardIndex.php everything is ok. Any other idea why the counter is not working?

by the way I look in the DB ajax_chat_online everything is inside  :'(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SnoMan on April 20, 2010, 11:02:16 AM
Hello, I've installed this mod for smf 1.1.11 and I found how to set the chat and shoutbox permissions, but I can't find the chat anywhere on my forum. I also can't find anywhere in the admin to enable the chat or shoutbox. Can someone tell me what admin category it's in? Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 20, 2010, 11:11:13 AM
Quote from: SnoMan on April 20, 2010, 11:02:16 AM
Hello, I've installed this mod for smf 1.1.11 and I found how to set the chat and shoutbox permissions, but I can't find the chat anywhere on my forum. I also can't find anywhere in the admin to enable the chat or shoutbox. Can someone tell me what admin category it's in? Thanks!
yoursite/index.php?action=featuresettings

Then you should see these options

Enable the ShoutBox?     
Check for ShoutBox on any page or uncheck for only in index page:    
Integrate shout box and chat room?    
Chat in popup page?    
Enable online chat users numbering on chat button?    
Show online users below total logged in time section?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: amcapt89 on April 20, 2010, 12:55:52 PM
Hello everyone...!

I installed the shoutbox and chat on my site; actually they work fine and they look very good; it's a great instrument...

By the way, I have a small issue with the shoutbox; Everyone's messages get deleted after a while; last night I had 5 messages on the box, and this afternoon I had only 2...

Any idea anyone?

Anyway, big congrats to mrtrc266 for the great job! :-)

Many thanks for your help!

amcapt89
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SnoMan on April 20, 2010, 01:10:39 PM
OK, thanks, I found that. Now another issue: shoutbox works, but I can't get the chat to work with my theme. I did exactly what it said in the SMF package parser, but that didn't work. I don't know the first thing about coding, so if there's the slightest difference between what the parser assumes and what's actually in my theme files, I have no idea how to fix it.

I'm using the Babylon theme and SMF 1.1.11. Is there anyone willing to take a look at my files and see what needs to be done to get the chat working?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zamg0d1 on April 20, 2010, 01:29:23 PM
Quote from: zamg0d1 on April 20, 2010, 04:14:35 AM
Is it possible to load the shoutbox in my site using SSI? O:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 20, 2010, 01:33:00 PM
Quote from: zamg0d1 on April 20, 2010, 01:29:23 PM
Quote from: zamg0d1 on April 20, 2010, 04:14:35 AM
Is it possible to load the shoutbox in my site using SSI? O:)
I only think you can add the "Users in Chat" via SSI not the shoutbox itself.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 20, 2010, 01:37:31 PM
Quote from: amcapt89 on April 20, 2010, 12:55:52 PM
Hello everyone...!
I installed the shoutbox and chat on my site; actually they work fine and they look very good; it's a great instrument...

By the way, I have a small issue with the shoutbox; Everyone's messages get deleted after a while; last night I had 5 messages on the box, and this afternoon I had only 2...

Any idea anyone?
Anyway, big congrats to mrtrc266 for the great job! :-)

Many thanks for your help!

amcapt89

Thank you, glad I could help.

Take a look at the /chat/lib/config.php file there are many settings in there like the following which says when you login only show the last 10 messages and leave them there for 24 hrs. Change to whatever you like.
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 20, 2010, 01:43:43 PM
Quote from: SnoMan on April 20, 2010, 01:10:39 PM
OK, thanks, I found that. Now another issue: shoutbox works, but I can't get the chat to work with my theme. I did exactly what it said in the SMF package parser, but that didn't work. I don't know the first thing about coding, so if there's the slightest difference between what the parser assumes and what's actually in my theme files, I have no idea how to fix it.

I'm using the Babylon theme and SMF 1.1.11. Is there anyone willing to take a look at my files and see what needs to be done to get the chat working?

For the actual chat room there is a drop down list of pre-made skins that should go with almost any theme, you can change which one you want to be the default in /chat/lib/config.php
// Default style:
$config['styleDefault'] = 'Core';


For the Shout Box you have to edit /chat/css/shoutbox.css to get the colors to coordinate with your theme. Post a link to your site cuz there are a few babylon themes LOL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 20, 2010, 02:02:10 PM
Quote from: Stigmartyr on April 19, 2010, 06:51:28 PM
Quote from: mrtrc266 on April 19, 2010, 05:29:02 PM
@ Stigmartyr yeah the message only appears when you log in then try a hard refresh ctrl+f5 to see if the sound loads. Also does this happen only for you, a few members or everyone?

Ok refresh does nothing for me.  I have 2 others testing too.  I have 4 computers (all PCs) I'm using to test and one guy with a Mac, and another with a PC (unknown specs).

It's really odd.  As I said I got this working on my SMF 2 site without drama.

Found this from a couple years ago....
https://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2086193
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SnoMan on April 20, 2010, 02:14:00 PM
Quote from: mrtrc266 on April 20, 2010, 01:43:43 PM
Quote from: SnoMan on April 20, 2010, 01:10:39 PM
OK, thanks, I found that. Now another issue: shoutbox works, but I can't get the chat to work with my theme. I did exactly what it said in the SMF package parser, but that didn't work. I don't know the first thing about coding, so if there's the slightest difference between what the parser assumes and what's actually in my theme files, I have no idea how to fix it.

I'm using the Babylon theme and SMF 1.1.11. Is there anyone willing to take a look at my files and see what needs to be done to get the chat working?

For the actual chat room there is a drop down list of pre-made skins that should go with almost any theme, you can change which one you want to be the default in /chat/lib/config.php
// Default style:
$config['styleDefault'] = 'Core';


For the Shout Box you have to edit /chat/css/shoutbox.css to get the colors to coordinate with your theme. Post a link to your site cuz there are a few babylon themes LOL

Thanks! I have successfully edited the colors of the shoutbox to match my theme, thanks to your tip.

Here's my web site: http://www.survivalnewsonline.com/snoboards. It uses the Babylon theme with color changes to match my blog.

As to the chat, the problem I have is that I can't find a "chat" button, and I don't know what to do to add it. Once I do that I'll see if I can find a compatible chat skin.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GurusForum.com on April 20, 2010, 03:09:08 PM
Please folks, I have some problems with my Ajax Chat box.

Just go to http://GurusForum.com and click on Chat button to see what I mean.

I need help.

Thanks a lot
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Infitima on April 20, 2010, 03:47:51 PM
Is there any way to make the Shoutbox part refresh realtime?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 20, 2010, 04:09:35 PM
@ SnowMan
Attach these 2 files from /Themes/babylon/

BoardIndex.template.php
index.template.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 20, 2010, 04:10:57 PM
@ Gurus
Don't have access to your chat, what is the problem though?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 20, 2010, 04:12:10 PM
Quote from: Infitima on April 20, 2010, 03:47:51 PM
Is there any way to make the Shoutbox part refresh realtime?

Not sure what you mean, it does update in real time. By default you do get logged out after remaining idle for 2 minutes.

Take a look at /chat/lib/config.php to change the settings
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Infitima on April 20, 2010, 04:19:02 PM
Like, I'll be in the chat, and it updates with responses right away. But for the Shoutbox, I have to refresh the forum page to see the new responses.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SnoMan on April 20, 2010, 04:38:51 PM
OK, here you go:
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Infitima on April 20, 2010, 04:55:14 PM
Oh well. Not important I guess. However I do have one other question.

What are the commands for the chat? Like I know /me and /roll. But is there help, and such? I don't see a admin control for it.

And I found logs, but it seemed to of wiped even those....I set the thing to show 50 at a time, but 100 is too much and takes it too long to load. So I hoped to get the logs from the log viewer. But those seemed to be dissapearing. How can I get those to stay, and record all logs every day, without being erased?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 20, 2010, 05:01:51 PM
Quote from: SnoMan on April 20, 2010, 04:38:51 PM
OK, here you go:
Here you go and also upload the attached image to /Themes/babylon/images/english/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 20, 2010, 05:17:08 PM
Quote from: Infitima on April 20, 2010, 04:55:14 PM
Oh well. Not important I guess. However I do have one other question.

What are the commands for the chat? Like I know /me and /roll. But is there help, and such? I don't see a admin control for it.

And I found logs, but it seemed to of wiped even those....I set the thing to show 50 at a time, but 100 is too much and takes it too long to load. So I hoped to get the logs from the log viewer. But those seemed to be dissapearing. How can I get those to stay, and record all logs every day, without being erased?

For the shoutbox try adjusting the time to boot idle users, if you notice when you put your cursor in the input field it does retrieve all the messages that you missed.

The list of Commands is in the Chat Room, hit the help button (the round question mark on the bottom right).

You mean when you goto yourforum/chat/?view=logs there is nothing there? In that same config file you should see a setting for how long to keep the logs. The default is set to 365 days though.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 20, 2010, 06:07:54 PM
Quote from: RoyalMess on April 19, 2010, 04:11:29 PM
Quote from: mrtrc266 on April 19, 2010, 03:53:50 PM
Quote from: RoyalMess on April 18, 2010, 04:54:07 AM
Quote from: mrtrc266 on April 18, 2010, 01:11:53 AM
@  RoyalMess
I'm getting totally stumped and will have to do some digging on my days off Mon-Tue. Thank you for your patience
I'll ask my host as well why the .htaccess appears in the CPanel its FTP and not in the normal FTP.
Let me know if / when  they fix it.

The file is fine and they aren't blocking it or doing anything how so ever to it.
Its just hidden in your FTP client and i was able to view it in Filezilla by showing hidden files just like you can do in Windows.

If you use FileZilla;
Version 2.x – View > Show hidden files
Version 3.x – Server > Force showing hidden files

EDIT: The permission for the .htaccess is 644

ROTFLMAO!!!! So after the last 2 days of cruising through your site in Dutch with a non working chat and all day today on your test site in English with a working chat,  banging head against the wall I tried EVERYTHING! I tried every edit to every problem here and on Source Forge.

After looking at every file, every file permission every setting to see if I could find a difference I was about to throw my hands up in the air.

The only difference that I could see was that your site is in Dutch and your test site is in English. So on a whim I go to my profile and change my default language to English and WOOOOHOOOOO!!!! That Chat works just fine LOL.

That doesn't mean it's fixed it just means that we know know what the problem is. Will post back with more info as I get it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Infitima on April 20, 2010, 11:38:58 PM
Quote from: mrtrc266 on April 20, 2010, 05:17:08 PM
Quote from: Infitima on April 20, 2010, 04:55:14 PM
Oh well. Not important I guess. However I do have one other question.

What are the commands for the chat? Like I know /me and /roll. But is there help, and such? I don't see a admin control for it.

And I found logs, but it seemed to of wiped even those....I set the thing to show 50 at a time, but 100 is too much and takes it too long to load. So I hoped to get the logs from the log viewer. But those seemed to be dissapearing. How can I get those to stay, and record all logs every day, without being erased?

For the shoutbox try adjusting the time to boot idle users, if you notice when you put your cursor in the input field it does retrieve all the messages that you missed.

The list of Commands is in the Chat Room, hit the help button (the round question mark on the bottom right).

You mean when you goto yourforum/chat/?view=logs there is nothing there? In that same config file you should see a setting for how long to keep the logs. The default is set to 365 days though.

There's no help button. And it seemed to have just erased it.
There was logs from the beginning at first. I hit back and went back to the log viewer, and they're cut off. Tried the day and time thing, nothing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 21, 2010, 12:41:17 AM
You don't see this help button that shows you a list of all the commands? (see attached pic)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Infitima on April 21, 2010, 01:21:37 AM
Nope. None of the emoticons or other images are showing up. Just the regular text options.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on April 21, 2010, 01:49:26 AM
Quote from: mrtrc266 on April 20, 2010, 06:07:54 PM
Quote from: RoyalMess on April 19, 2010, 04:11:29 PM
Quote from: mrtrc266 on April 19, 2010, 03:53:50 PM
Quote from: RoyalMess on April 18, 2010, 04:54:07 AM
Quote from: mrtrc266 on April 18, 2010, 01:11:53 AM
@  RoyalMess
I'm getting totally stumped and will have to do some digging on my days off Mon-Tue. Thank you for your patience
I'll ask my host as well why the .htaccess appears in the CPanel its FTP and not in the normal FTP.
Let me know if / when  they fix it.

The file is fine and they aren't blocking it or doing anything how so ever to it.
Its just hidden in your FTP client and i was able to view it in Filezilla by showing hidden files just like you can do in Windows.

If you use FileZilla;
Version 2.x – View > Show hidden files
Version 3.x – Server > Force showing hidden files

EDIT: The permission for the .htaccess is 644

ROTFLMAO!!!! So after the last 2 days of cruising through your site in Dutch with a non working chat and all day today on your test site in English with a working chat,  banging head against the wall I tried EVERYTHING! I tried every edit to every problem here and on Source Forge.

After looking at every file, every file permission every setting to see if I could find a difference I was about to throw my hands up in the air.

The only difference that I could see was that your site is in Dutch and your test site is in English. So on a whim I go to my profile and change my default language to English and WOOOOHOOOOO!!!! That Chat works just fine LOL.

That doesn't mean it's fixed it just means that we know know what the problem is. Will post back with more info as I get it.

Your right it does work with the site its language on English. :P
Hopefully it is easy to be fixed :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TarikuKun on April 21, 2010, 04:33:37 AM
Users can delete their own chat message ... is there a way to stop users from deleting their messages ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 21, 2010, 10:32:52 AM
Quote from: Infitima on April 21, 2010, 01:21:37 AM
Nope. None of the emoticons or other images are showing up. Just the regular text options.

What the link to your site, PM me if you don't want it public. I'll take a look when I get a sec.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 21, 2010, 10:37:56 AM
Quote from: TarikuKun on April 21, 2010, 04:33:37 AM
Users can delete their own chat message ... is there a way to stop users from deleting their messages ?
I don't think so
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mike Vartan on April 21, 2010, 10:47:29 AM
Hi! I love this chat mod! I moved my forums today, to a different hosing/domain.  Now I get this error whenever the page loads or I attempt to talk.
(07:46:44) ChatBot: Error: Connection status: 500
I have tried re-installing the mod with no luck. Would you have any idea the problem?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 21, 2010, 10:55:00 AM
~AJAX Chat Integration FAQ's   & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Look at the part regarding the 500 Error  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on April 21, 2010, 12:27:48 PM
OK here goes! SMF version 1.1.10 (was unable to install 1.1.11 update)

i come back home and my site is totally down & the error message i get is:

Unable to load the 'Shout.english-utf8' language file.

I can't get into the forums at all

i do have ajax chat installed

(i'm NOT a IT person... don't have a clue how to write any code)



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Infitima on April 21, 2010, 01:43:40 PM
Quote from: mrtrc266 on April 21, 2010, 10:32:52 AM
Quote from: Infitima on April 21, 2010, 01:21:37 AM
Nope. None of the emoticons or other images are showing up. Just the regular text options.

What the link to your site, PM me if you don't want it public. I'll take a look when I get a sec.

http://shatteredplanes.com/index.php We don't really have a theme up at the moment.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cjb204 on April 21, 2010, 04:58:35 PM
Is there a way to make the chat look like it's just another page in the forum, rather than an entirely different thing? Sorry if I'm being a little vague.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on April 21, 2010, 05:14:15 PM
Quote from: cjb204 on April 21, 2010, 04:58:35 PM
Is there a way to make the chat look like it's just another page in the forum, rather than an entirely different thing? Sorry if I'm being a little vague.

There is a custom block code on the simple portal site (if you use simple portal), you can practically put a shoutbox anywhere and several of them too
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 22, 2010, 12:36:00 AM
Quote from: Infitima on April 21, 2010, 01:43:40 PM
Quote from: mrtrc266 on April 21, 2010, 10:32:52 AM
Quote from: Infitima on April 21, 2010, 01:21:37 AM
Nope. None of the emoticons or other images are showing up. Just the regular text options.

What the link to your site, PM me if you don't want it public. I'll take a look when I get a sec.

http://shatteredplanes.com/index.php We don't really have a theme up at the moment.

If you could PM me details for temp Admin Account to your site and  temp FTP access I'll take a look if you like.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 22, 2010, 12:52:22 AM
Quote from: cjb204 on April 21, 2010, 04:58:35 PM
Is there a way to make the chat look like it's just another page in the forum, rather than an entirely different thing? Sorry if I'm being a little vague.

Yeah that was a little vague LOL but I think  ♪ JohnCcCcCc ♫ has the right idea. Not sure if it's the most logical thing to do but creating an HTML page in Simple Portal and then inserting the chat room in to an IFRAME will work too.
<iframe src ="http://www.yoursite.com/chat/index.php" width="100%" height="600px">
  <p>Your browser does not support iframes.</p>
</iframe>


BTW John, long time no see....Hope all is well
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 22, 2010, 12:53:56 AM
Quote from: graaywolf on April 21, 2010, 12:27:48 PM
OK here goes! SMF version 1.1.10 (was unable to install 1.1.11 update)
i come back home and my site is totally down & the error message i get is:
Unable to load the 'Shout.english-utf8' language file.
I can't get into the forums at all
i do have ajax chat installed
(i'm NOT a IT person... don't have a clue how to write any code)

Was there a problem when trying to upgrade to 1.1.11? If so what was the error?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cjb204 on April 22, 2010, 03:33:53 AM
Thanks.
Uh... Stupid, noobish question here, but... How would I set the "Chat" link on the menu to redirect to the page I just made?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 22, 2010, 10:21:08 AM
Quote from: cjb204 on April 22, 2010, 03:33:53 AM
Thanks.
Uh... Stupid, noobish question here, but... How would I set the "Chat" link on the menu to redirect to the page I just made?

Depends on what version of SMF your running
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SnoMan on April 22, 2010, 10:25:31 AM
It's working great! Ginormous thanks to mrtrc for getting this working on my Babylon-theme site. I hope I can return the favor some day, although I doubt it because I'm so computer-ignorant. But at least I can pay back in kind (pm me if you need help with your survival plan ;) ) or pay it forward. In any event, thanks a ton mrtrc. It's a great mod!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 22, 2010, 10:34:22 AM
Quote from: SnoMan on April 22, 2010, 10:25:31 AM
It's working great! Ginormous thanks to mrtrc for getting this working on my Babylon-theme site. I hope I can return the favor some day, although I doubt it because I'm so computer-ignorant. But at least I can pay back in kind (pm me if you need help with your survival plan ;) ) or pay it forward. In any event, thanks a ton mrtrc. It's a great mod!

You're very welcome. I might take you up on that survival plan one day LOL. Glad you got it sorted and enjoy the Mod, please post back if your need anything else.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 22, 2010, 10:44:39 AM
@ SnoMan
One lil' problem on your site. It seems that you could possibly have the template for the shoutbox  for the RC3 version.

Upload this shout template to /Themes/default/

You'll find it much more appealing to the eye and the border will match your theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on April 22, 2010, 10:47:00 AM
Hi,

I have a rather annoying problem, not with the mod, but with some of my "idiot members", for some unknown reason, people keep using the shoutbox as a search box, typing random things into it.

My solution would be to have the form prefilled (erases on click) with some text that states "This is a Shoutbox, not a sear box"
Is this possibly easily?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 22, 2010, 11:23:29 AM
Quote from: ♪ JohnCcCcCc ♫ on April 22, 2010, 10:47:00 AM
Hi,

I have a rather annoying problem, not with the mod, but with some of my "idiot members", for some unknown reason, people keep using the shoutbox as a search box, typing random things into it.

My solution would be to have the form prefilled (erases on click) with some text that states "This is a Shoutbox, not a sear box"
Is this possibly easily?

I like that idea, not sure how to do it but will definitely dig around to figure it out. Kinda like google's custom search bar, it has a watermarked image that say "Google Custom Search" that disappears when you click in it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SnoMan on April 22, 2010, 11:43:49 AM
Quote from: mrtrc266 on April 22, 2010, 10:44:39 AM
@ SnoMan
One lil' problem on your site. It seems that you could possibly have the template for the shoutbox  for the RC3 version.

Upload this shout template to /Themes/default/

You'll find it much more appealing to the eye and the border will match your theme.


You were right, that looks much better. Thanks again!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fairytears on April 22, 2010, 11:58:57 AM
Hello
I installed the shoutbox that came with the AJAX chat in my forum. Recently, one of the members was able to save all the conversation that took place in the shoutbox. The moderators and I are worried that this can be done and we don't even know how. My questions are

-How did he do it????
-Is there a way to prevent this??

Thanks, I really appreciate any help on this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: amcapt89 on April 22, 2010, 12:53:36 PM
Hello mrtrc266,

many thanks for your last advice, that worked perfectly.

Now I have a small issue... And it's about my Account Executions; apparently since I installed the Chat + Shoutbox, the account executions stats form my host, are getting quite high...:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg90.imageshack.us%2Fimg90%2F9532%2F22751218.png&hash=8ddece6336dda840fa4fc51aad63ee03cefa4f1d)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg96.imageshack.us%2Fimg96%2F3734%2F40604957.png&hash=9e6aac525ba188f4551aed4b2db6dd3d23ec29fd)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg340.imageshack.us%2Fimg340%2F9708%2F24807344.png&hash=8a8717436e088f07b055eb377211376c33eb3135)


As you can see from the above images, I have got really high peaks; I sent a ticket to my host, asking were the executions were coming from and this is their exact reply:

Quote
There are few moments in the graph which show temporary peak in the executions but this is not something you should worry about. I have also checked the files which are accessed from your account. There is a module for your website:

wrclan-darkcobra.com/chat/index.php

It generates half of the executions. Please note that it will generate many executions when you have more visitors. Please disable it and search for better module which will not execute a file every time a reply in the chat is posted.



What should I do? I'm really happy on how the chat and the box work; should I just accept the peak? or is there any way to solve the problem?

Just to let you know, the chat is a nice feature, but what I'm really intrested in is just the shoutbx...

Many thanks for your help!!!

Cheers!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SnoMan on April 22, 2010, 01:29:51 PM
Is there a setting that will notify an online member of a chat invitation when he's not logged into the chat?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: !RFAN on April 22, 2010, 01:44:38 PM
i installed the mod.. 2 errors appeared...in boardindex.php and in index.template.php(of custom theme) then i manually installed... now everything is okay.. but i cant see any shoutbox on my forum... chat room is working fine
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ProfDrDenis on April 22, 2010, 02:52:24 PM
Its allow to remeber you ... to look for my counter. Its not working  :'(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cjb204 on April 22, 2010, 04:02:22 PM
Quote from: mrtrc266 on April 22, 2010, 10:21:08 AM
Quote from: cjb204 on April 22, 2010, 03:33:53 AM
Thanks.
Uh... Stupid, noobish question here, but... How would I set the "Chat" link on the menu to redirect to the page I just made?

Depends on what version of SMF your running
Edit-- Nm, I got it working. Thanks for your help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 23, 2010, 01:29:04 AM
Quote from: SnoMan on April 22, 2010, 11:43:49 AM
Quote from: mrtrc266 on April 22, 2010, 10:44:39 AM
@ SnoMan
One lil' problem on your site. It seems that you could possibly have the template for the shoutbox  for the RC3 version.

Upload this shout template to /Themes/default/

You'll find it much more appealing to the eye and the border will match your theme.

You were right, that looks much better. Thanks again!
Looks much better indeed :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 23, 2010, 01:30:57 AM
Quote from: fairytears on April 22, 2010, 11:58:57 AM
Hello
I installed the shoutbox that came with the AJAX chat in my forum. Recently, one of the members was able to save all the conversation that took place in the shoutbox. The moderators and I are worried that this can be done and we don't even know how. My questions are

-How did he do it????
-Is there a way to prevent this??

Thanks, I really appreciate any help on this.

Either he/she has access to the chat logs as an Admin on your site or he/she copied all the chats (public chat, not private chats) ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 23, 2010, 01:40:16 AM
Quote from: amcapt89 on April 22, 2010, 12:53:36 PM
Hello mrtrc266,

many thanks for your last advice, that worked perfectly.

Now I have a small issue... And it's about my Account Executions; apparently since I installed the Chat + Shoutbox, the account executions stats form my host, are getting quite high...:

What should I do? I'm really happy on how the chat and the box work; should I just accept the peak? or is there any way to solve the problem?
Just to let you know, the chat is a nice feature, but what I'm really intrested in is just the shoutbx...
Many thanks for your help!!!

Cheers!

Yes this will can a load on your server especially if you have a lot of users chatting at the same time. If you only want the shoutbox in your admin settings make sure you uncheck "Integrate shout box and chat room?" then remove the chat button from your menu barso members won't enter the chat room.

Then check your spikes and see if that decreases your spikes any
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 23, 2010, 01:41:57 AM
Quote from: SnoMan on April 22, 2010, 01:29:51 PM
Is there a setting that will notify an online member of a chat invitation when he's not logged into the chat?

I believe that they will only see the invite if that member is logged in to the chat room as well, it basically says "Hey you online Chat User, I wanna invite you to private chat"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 23, 2010, 01:50:32 AM
Quote from: amigozone on April 22, 2010, 01:44:38 PM
i installed the mod.. 2 errors appeared...in boardindex.php and in index.template.php(of custom theme) then i manually installed... now everything is okay.. but i cant see any shoutbox on my forum... chat room is working fine

More info please..
What SMF Version?
What AJAX Chat Integration version did you install?
What Theme?
Link to site?

Etc....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 23, 2010, 01:52:00 AM
Quote from: ProfDrDenis on April 22, 2010, 02:52:24 PM
Its allow to remeber you ... to look for my counter. Its not working  :'(

PM Me a temp Admin account and FTP details and I'll take a look for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 23, 2010, 01:57:29 AM
Quote from: cjb204 on April 22, 2010, 04:02:22 PM
Quote from: mrtrc266 on April 22, 2010, 10:21:08 AM
Quote from: cjb204 on April 22, 2010, 03:33:53 AM
Thanks.
Uh... Stupid, noobish question here, but... How would I set the "Chat" link on the menu to redirect to the page I just made?

Depends on what version of SMF your running
2.0 R3

Find /Source/Subs.php
'href' => $chatLink,
Change the link to where you want it to redirect to....
'href' => 'http://www.mysite.example/',
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: xFDragon on April 23, 2010, 10:56:46 AM
This must have been stated before.

However here goes.

Is there a way to increase the ammount of message's in the box before they start to disapear from the shoutbox? Also is there a way to change the ammont of time before they start to disappear?

And I also have a suggestion, is it possible to add some sort of log into the chat so that everything that is ever typed in it is stored in a easy to view log from the admin menu. With a search feature to find by member name, date and keyword's. If it is possible would you implement it into any future realese's?

Thank's for the help in advance,

-Dragon.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 23, 2010, 11:12:02 AM
Quote from: xFDragon on April 23, 2010, 10:56:46 AM
This must have been stated before.

However here goes.

Is there a way to increase the ammount of message's in the box before they start to disapear from the shoutbox? Also is there a way to change the ammont of time before they start to disappear?

And I also have a suggestion, is it possible to add some sort of log into the chat so that everything that is ever typed in it is stored in a easy to view log from the admin menu. With a search feature to find by member name, date and keyword's. If it is possible would you implement it into any future realese's?

Thank's for the help in advance,

-Dragon.

Open /chat/lib/config.php to adjust those settings
See
// Max time difference in hours for messages to display on each request:
And
// Max number of messages to display on each request:

For the logs
http://yoursite.com/chat/?view=logs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ProfDrDenis on April 23, 2010, 11:22:52 AM
Quote from: mrtrc266 on April 23, 2010, 01:52:00 AM
Quote from: ProfDrDenis on April 22, 2010, 02:52:24 PM
Its allow to remeber you ... to look for my counter. Its not working  :'(

PM Me a temp Admin account and FTP details and I'll take a look for you.


I install complete new. its working now thanks for listening
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: xFDragon on April 23, 2010, 12:06:25 PM
Excellent!

Much appreciated good sir.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PDW on April 23, 2010, 12:12:23 PM
im trying to add the smilies to my forum chat.
I goto the shoutbox.html but
"<div class="tborder" style="margin: 10px 0 10px 0;">
   <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
   <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="[AJAX_CHAT_URL/]../Themes/default/images/collapse.gif" alt="*" style="margin-right: 5px;"  /></a>ShoutBox
   </div>
   <div id="ShoutBox">"

is not there. Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: amcapt89 on April 23, 2010, 01:16:42 PM
Many thanks as always mate!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wodema on April 23, 2010, 02:25:00 PM
I uninstalled the chat and poof, my forum buttons were gone. There is no way to move around the forum now. I don't understand what happened, but now when I try to get into my forum it says:

Fatal error: Call to undefined function chatonlineusers() in /home2/ladyofth/public_html/forum-3/Themes/theme1/index.template.php on line 273

Here is a copy of the file. How do I get my forum back?


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on April 23, 2010, 07:28:53 PM
i'm using 1.1.11 and just put the chat in yesterday... just wondering why anytime i use a '      i get a \ next to it.    ???

ps.. my site is www.showtimeforfree.com   a great message board!   with a free ps3 game going away to a member at the end of may!  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 23, 2010, 09:36:54 PM
Quote from: wodema on April 23, 2010, 02:25:00 PM
I uninstalled the chat and poof, my forum buttons were gone. There is no way to move around the forum now. I don't understand what happened, but now when I try to get into my forum it says:

Fatal error: Call to undefined function chatonlineusers() in /home2/ladyofth/public_html/forum-3/Themes/theme1/index.template.php on line 273

Here is a copy of the file. How do I get my forum back?

There is nothing wrong with that index.template.php file it works fine on my site. Go to the parser on the Mods home page and make sure that ALL the edits are reversed for ALL the files.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 23, 2010, 09:39:35 PM
Quote from: PDW on April 23, 2010, 12:12:23 PM
im trying to add the smilies to my forum chat.
I goto the shoutbox.html but
"<div class="tborder" style="margin: 10px 0 10px 0;">
   <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;">
   <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="[AJAX_CHAT_URL/]../Themes/default/images/collapse.gif" alt="*" style="margin-right: 5px;"  /></a>ShoutBox
   </div>
   <div id="ShoutBox">"

is not there. Any ideas?

That bit of code was moved to /Themes/default/Shout.template.php and is for SMF 1.1.XX

I'm not 100% sure about all the other edits but I think they should be the same, I'll have to take a look to update for the most recent versions of SMF when I get time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 23, 2010, 09:41:19 PM
Quote from: miDnIghtEr20C on April 23, 2010, 07:28:53 PM
i'm using 1.1.11 and just put the chat in yesterday... just wondering why anytime i use a '      i get a \ next to it.    ???

ps.. my site is www.showtimeforfree.com   a great message board!   with a free ps3 game going away to a member at the end of may!  :)

This should fix it.....

http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Slashes_before_apostrophes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on April 23, 2010, 10:53:54 PM
Quote from: mrtrc266 on April 22, 2010, 12:52:22 AM

BTW John, long time no see....Hope all is well
Everything is well, Ajax chat is going great still, I modified it a lot though lol. Yea long time no see, Ive been busy, barely got some time to get online a little.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on April 23, 2010, 11:47:35 PM
@ mrtrc266 , I really hate to bother you, and I hate asking for help.  I'm just at a stand still.  On one host, the Chat work PERFECTLY, but the host told me I had to remove it.  So, I had to move host, which told me they would allow it, however, I had to reinstall it.  And maybe some of my configurations are causing serious lag.

My forum hasn't been the same since removing member's access to Ajax.  It's so embarassing having to use an xchat on the site for right now.  :(

If I supplied you with an admin access account, and an FTP account, or even access to my cPanel, would you have time sometime in the future to maybe check it out, and let me know what my options are?

http://www.brawldomain.com/index.php?topic=5950.msg119326#msg119326

^ that post explains the major issue we're having.

I'm happy with my host, and don't want to leave, but we really need the Ajax chat to work.  So, just wondering if maybe you could help, or if maybe it is due to the host not being able to fully utilize the chat.

Than You.




Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 23, 2010, 11:59:57 PM
@ hcfwesker

Yeah send me the details and I can take a look, it might be a couple days till my next days off though. It seems that you have a pretty active forum though so this might be taking a large hit on your server depending on how many users join chat at the same time. In the /Chat/lib/config.php file the default max users is 100, of course you can increase / decrease that to whatever you like.

No promises on increasing performance but I will take a look, PM me the details and I'll have a look in a day or 2.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on April 24, 2010, 12:26:37 AM
Will do, and thank you for your time.  No rush, bud.  I'm very patient. 

And, about the member overload, the problem happens even when only 1 member, meaning me by myself, is in the chat.   The busiest the chat gets is maybe 10-15 members at one time, but usually only about 5-8 are actually chatting at one time.

I'll PM the details now.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: legoracer on April 24, 2010, 02:31:24 AM
I installed the 3.2.1 chat... I'm using 1.1.11 SMF

I can see the chat... but I get this erro ((23:28:57) ChatBot: Error: Connection status: 500)

When I click the "chat" link I get:
*******************************
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
*******************************

Would love to get this to work as I see this is the best chat system to use for SMF

THANKS for your help in advance

cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: legoracer on April 24, 2010, 03:01:41 AM
ok please disregard that last message I had had to read back until page 43 or something to learn the index needed to page 755. :P

Frick support threads get big eh! Great mod by the way! Thanks for taking the time to create and maintain it!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 24, 2010, 10:17:11 AM
Glad you got it sorted legoracer, also be sure to check out the FAQ's (BIG Purple letters) on the Mods Home Page ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on April 24, 2010, 11:13:19 AM
Quote from: mrtrc266 on April 23, 2010, 09:41:19 PM
Quote from: miDnIghtEr20C on April 23, 2010, 07:28:53 PM
i'm using 1.1.11 and just put the chat in yesterday... just wondering why anytime i use a '      i get a \ next to it.    ???

ps.. my site is www.showtimeforfree.com   a great message board!   with a free ps3 game going away to a member at the end of may!  :)

This should fix it.....

http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Slashes_before_apostrophes
thank you sir.    worked like a charm :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: !RFAN on April 24, 2010, 01:33:30 PM
Quote from: mrtrc266 on April 23, 2010, 01:50:32 AM
Quote from: amigozone on April 22, 2010, 01:44:38 PM
i installed the mod.. 2 errors appeared...in boardindex.php and in index.template.php(of custom theme) then i manually installed... now everything is okay.. but i cant see any shoutbox on my forum... chat room is working fine

More info please..
What SMF Version?
What AJAX Chat Integration version did you install?
What Theme?
Link to site?

Etc....

smf 2 rc3
latest version of ajax chat integration
custom theme.. urban by dzinerstudio
http://www.amigozone.tk

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 01:07:34 AM
@  amigozone

Did you enable the shoutbox?

Admin/Modification Settings/Chat/

Then check the options you want
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: !RFAN on April 25, 2010, 04:15:20 AM
yes i did..i have configured everything :O
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FlyBoyUnder on April 25, 2010, 07:45:18 AM
Hello. I installed the chat in my forum. Everything is alright. But I can't send messages. I have follow all the instructions, but I can't find a solution to this problem.

No one can send messages, and if you click on SEND nothing happens. I'm using this theme: http://custom.simplemachines.org/themes/index.php?lemma=2166

Hugs. FBU
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 10:42:49 AM
Quote from: FlyBoyUnder on April 25, 2010, 07:45:18 AM
Hello. I installed the chat in my forum. Everything is alright. But I can't send messages. I have follow all the instructions, but I can't find a solution to this problem.

No one can send messages, and if you click on SEND nothing happens. I'm using this theme: http://custom.simplemachines.org/themes/index.php?lemma=2166 (http://custom.simplemachines.org/themes/index.php?lemma=2166)

Hugs. FBU
~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FlyBoyUnder on April 25, 2010, 10:56:20 AM
Yeah, I saw it. But I didn't understand.

I don't have any .htaccess file in my host. Should I create one and then send to the "Chat" and "Shoutbox" folders?
And what would I write in that .htaccess file?

Something like:

"RewriteEngine on
RewriteRule ^/?$ ./index.php [L,QSA]"

Sorry, i'm trying but I don't understand too much of modifications.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 11:10:12 AM
First try changing your file permissions to 755 on these 2 files /chat/index.php and /shoutBox/index.php

If that doesn't work then yes create an .htaccess file with just this RewriteRule ^/?$ ./index.php [L,QSA] and upload it to the same directory where your /SSI.php files is located
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PDW on April 25, 2010, 03:47:45 PM
Quote from: mrtrc266 on April 23, 2010, 09:39:35 PM
That bit of code was moved to /Themes/default/Shout.template.php and is for SMF 1.1.XX

I'm not 100% sure about all the other edits but I think they should be the same, I'll have to take a look to update for the most recent versions of SMF when I get time.
Cheers! Great chat box this is too!
Ive added my own smilies to it too and its going great nice work.
Ive looked through the settings though and cant seem to find where i can change how long the messages stay in the chat box for or how many to show... I would like my forum to show the last 30 days of mesages if possible... cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on April 25, 2010, 05:06:40 PM
Quote from: mrtrc266 on April 22, 2010, 12:53:56 AM
Quote from: graaywolf on April 21, 2010, 12:27:48 PM
OK here goes! SMF version 1.1.10 (was unable to install 1.1.11 update)
i come back home and my site is totally down & the error message i get is:
Unable to load the 'Shout.english-utf8' language file.
I can't get into the forums at all
i do have ajax chat installed
(i'm NOT a IT person... don't have a clue how to write any code)
Was there a problem when trying to upgrade to 1.1.11? If so what was the error?

ok i've started over with SMF 1.1.11 i've fallowed all the directions to customize the chat room and fix the minor errors except one... when someone clicks the red X to close the chat window without logging out first, it doesn't log them out... i either have to kick their name or wait for them to time out...

excellent mod otherwise thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on April 25, 2010, 05:42:28 PM
Hey, mrtrc266!  Just letting you know, right now, it's running fine on the site.  We got  16 memebrs in right now all chatting, and not much lag.

I think the Aeva Media MOD was causing the lag, I'm not sure, but removing it, testing the chat, it worked fine.  Then, I added it again, to test, and it lagged, along with forum browsing was slowed down.

So far so good, bud.  I appreciate your help in this so far :)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 25, 2010, 05:46:40 PM
Thats an odd one as I have Aeva Media and chat on my forum with no problems at all.
Title: RC3 installation va Package Manager woes and more
Post by: Lou69 on April 25, 2010, 05:47:23 PM
Hi,

I am 7 days new to SMF and would like to install the Ajax integrated chat/shout on 2.0 RC3. When using the resident package manager\download\browse; the download link is missing for the file.

Does the missing link indicate that I must do the copy/paste manual installation?

I did try to download via the URL option, the file was not found. What now? ( scratching noodle )

I am curious to know if the Ajax on SourceForge is installable to SMF?

thanks,

Lou

:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on April 25, 2010, 05:59:54 PM
Quote from: Brack1 on April 25, 2010, 05:46:40 PM
Thats an odd one as I have Aeva Media and chat on my forum with no problems at all.
Trust me, I've tried everything, and this seemed to fix the chat lag and forum browsing delays.  I'd like to have both, but the Ajax is way more important.


And, not sure if we can request anything, but I was wondering if there could be an "afk" (away from keyboard) option memebrs could select under their name.  So, when they are away, something like (afk) would appear before or after their name in the chat.

I have changing display names turned off for memebrs.

Or, is there away to add custom tags like thiese?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 25, 2010, 06:02:36 PM
There is an edit which can be made to add afk to members names

Have a look at the ajax link in mrtrc266s signature.

I am very busy at the mo otherwise I would get it for ya.

:-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on April 25, 2010, 06:07:20 PM
No prob, bud :)

I don't mind doing some research. 

Thank You, I appreciate the point in the right direction.

EDIT:::

I checked, and I know that FAQ poat by heart.  Couldn't find anything, I'll try and search the topic. 

300 pages, here i come ...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 10:26:43 PM
Quote from: PDW on April 25, 2010, 03:47:45 PM
Quote from: mrtrc266 on April 23, 2010, 09:39:35 PM
That bit of code was moved to /Themes/default/Shout.template.php and is for SMF 1.1.XX

I'm not 100% sure about all the other edits but I think they should be the same, I'll have to take a look to update for the most recent versions of SMF when I get time.
Cheers! Great chat box this is too!
Ive added my own smilies to it too and its going great nice work.
Ive looked through the settings though and cant seem to find where i can change how long the messages stay in the chat box for or how many to show... I would like my forum to show the last 30 days of mesages if possible... cheers

30 days will be pushing the limits LOL, that could take quite a load on your server. 3-4 days max is what I'd suggest but the setting is in the /chat/lib/congif.php file for both of the settings you mentioned

// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 10:34:03 PM
Quote from: graaywolf on April 25, 2010, 05:06:40 PM
Quote from: mrtrc266 on April 22, 2010, 12:53:56 AM
Quote from: graaywolf on April 21, 2010, 12:27:48 PM
OK here goes! SMF version 1.1.10 (was unable to install 1.1.11 update)
i come back home and my site is totally down & the error message i get is:
Unable to load the 'Shout.english-utf8' language file.
I can't get into the forums at all
i do have ajax chat installed
(i'm NOT a IT person... don't have a clue how to write any code)
Was there a problem when trying to upgrade to 1.1.11? If so what was the error?

ok i've started over with SMF 1.1.11 i've fallowed all the directions to customize the chat room and fix the minor errors except one... when someone clicks the red X to close the chat window without logging out first, it doesn't log them out... i either have to kick their name or wait for them to time out...

excellent mod otherwise thanks

Not sure if this helps or not, never tried it but.....
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Mod_Remove_Chatters
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 10:36:57 PM
Quote from: hcfwesker on April 25, 2010, 05:42:28 PM
Hey, mrtrc266!  Just letting you know, right now, it's running fine on the site.  We got  16 memebrs in right now all chatting, and not much lag.

I think the Aeva Media MOD was causing the lag, I'm not sure, but removing it, testing the chat, it worked fine.  Then, I added it again, to test, and it lagged, along with forum browsing was slowed down.

So far so good, bud.  I appreciate your help in this so far :)


That's reassuring LOL. Glad it's going smooth for you though. You could possibly ask at the Aeva support site to see if they have heard of similar prob?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 10:38:08 PM
Quote from: Brack1 on April 25, 2010, 05:46:40 PM
Thats an odd one as I have Aeva Media and chat on my forum with no problems at all.

It's a little different, he has well over 100 members + guest on his site at any given time
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 10:39:26 PM
Quote from: hcfwesker on April 25, 2010, 05:59:54 PM
Quote from: Brack1 on April 25, 2010, 05:46:40 PM
Thats an odd one as I have Aeva Media and chat on my forum with no problems at all.
Trust me, I've tried everything, and this seemed to fix the chat lag and forum browsing delays.  I'd like to have both, but the Ajax is way more important.


And, not sure if we can request anything, but I was wondering if there could be an "afk" (away from keyboard) option memebrs could select under their name.  So, when they are away, something like (afk) would appear before or after their name in the chat.

I have changing display names turned off for memebrs.

Or, is there away to add custom tags like thiese?


This isn't in the FAQ's yet but there is info on it here....
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Mod_Away_Command
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 10:42:55 PM
Quote from: Lou69 on April 25, 2010, 05:47:23 PM
Hi,

I am 7 days new to SMF and would like to install the Ajax integrated chat/shout on 2.0 RC3. When using the resident package manager\download\browse; the download link is missing for the file.

Does the missing link indicate that I must do the copy/paste manual installation?

I did try to download via the URL option, the file was not found. What now? ( scratching noodle )

I am curious to know if the Ajax on SourceForge is installable to SMF?

thanks,

Lou

:)

No the AJAX Chat is not installable on SMF, you need this integration Mod.
AjaxChat  Integration_3.2.1 RC3_Curve_Friendly.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=138620)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clevelife on April 25, 2010, 11:15:45 PM
I removed the mod tonight and now this is the error I got when I go to the web page.

theme_template_error

I ran repair_settings.php but no luck.  Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 11:16:56 PM
Quote from: clevelife on April 25, 2010, 11:15:45 PM
I removed the mod tonight and now this is the error I got when I go to the web page.

theme_template_error

I ran repair_settings.php but no luck.  Any ideas?

If you have a custom theme then you must also undo the edits from your custom them as well
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clevelife on April 25, 2010, 11:23:17 PM
Quote from: mrtrc266 on April 25, 2010, 11:16:56 PM


If you have a custom theme then you must also undo the edits from your custom them as well

guess Im screwed than  :P  I didnt make a backup oh well lol
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 11:26:40 PM
Quote from: clevelife on April 25, 2010, 11:23:17 PM
Quote from: mrtrc266 on April 25, 2010, 11:16:56 PM


If you have a custom theme then you must also undo the edits from your custom them as well

guess Im screwed than  :P  I didnt make a backup oh well lol

What theme are you using?
Attach your /Themes/whateverthemeyourusing/index.template.php file please
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clevelife on April 25, 2010, 11:31:00 PM
here it is. I appreciate the help but dont feel obligated.  Its my own dumb fault.  I deleted the last backup zip I had by mistake when I was cleaning up my cpu.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on April 25, 2010, 11:39:29 PM
Quote from: mrtrc266 on April 25, 2010, 10:42:55 PM
Quote from: Lou69 on April 25, 2010, 05:47:23 PM
Hi,

I am 7 days new to SMF and would like to install the Ajax integrated chat/shout on 2.0 RC3. When using the resident package manager\download\browse; the download link is missing for the file.

Does the missing link indicate that I must do the copy/paste manual installation?

I did try to download via the URL option, the file was not found. What now? ( scratching noodle )

I am curious to know if the Ajax on SourceForge is installable to SMF?

thanks,

Lou

:)

No the AJAX Chat is not installable on SMF, you need this integration Mod.
AjaxChat  Integration_3.2.1 RC3_Curve_Friendly.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=138620)

:) Thank you for the reply. As for installing, as the download link is missing, does this mean that I have to do a manual install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 11:43:45 PM
Quote from: clevelife on April 25, 2010, 11:31:00 PM
here it is. I appreciate the help but dont feel obligated.  Its my own dumb fault.  I deleted the last backup zip I had by mistake when I was cleaning up my cpu.

No worries try this one.

BTW what didn't you like about AJAX Chat?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 11:45:33 PM
@ Lou

I'm sorry I don't know what you mean by "the download link is missing" I just provided the link to download it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clevelife on April 25, 2010, 11:49:26 PM
Quote from: mrtrc266 on April 25, 2010, 11:43:45 PM
Quote from: clevelife on April 25, 2010, 11:31:00 PM
here it is. I appreciate the help but dont feel obligated.  Its my own dumb fault.  I deleted the last backup zip I had by mistake when I was cleaning up my cpu.

No worries try this one.

BTW what didn't you like about AJAX Chat?

Oh I liked it.  When I logged in as another user it kept coming up with a login window for chat. When logged in it said not authorized and since I was heading to bed I was just going to remove it for now until I had more time to play with it.  This way my users wouldnt open it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 25, 2010, 11:56:11 PM
Quote from: clevelife on April 25, 2010, 11:49:26 PM
Quote from: mrtrc266 on April 25, 2010, 11:43:45 PM
Quote from: clevelife on April 25, 2010, 11:31:00 PM
here it is. I appreciate the help but dont feel obligated.  Its my own dumb fault.  I deleted the last backup zip I had by mistake when I was cleaning up my cpu.

No worries try this one.

BTW what didn't you like about AJAX Chat?

Oh I liked it.  When I logged in as another user it kept coming up with a login window for chat. When logged in it said not authorized and since I was heading to bed I was just going to remove it for now until I had more time to play with it.  This way my users wouldnt open it.

Ohhh.....you just need to set the permissions for your other membergroups to have access to the chat/shout LOL

Admin/Permissions/ [Select MemberGroup]/Modify....

Then you see these options

Access to chat     
Moderate chat    
View shoutBox    
Can shout    
Moderate shoutBox    

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clevelife on April 25, 2010, 11:58:32 PM
Quote from: mrtrc266 on April 25, 2010, 11:43:45 PM

No worries try this one.

BTW what didn't you like about AJAX Chat?

Well that index file didn't fix it. Im not sure what I did.

Thanks for the note on the permissions.  I looked but I was falling asleep so I must have missed it.  LOL of course now Im awake looking for the problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 26, 2010, 12:05:02 AM
What theme are you using?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clevelife on April 26, 2010, 12:10:51 AM
The default and the one I use is the curve that comes with RC3, other theme installed is darkmodern.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on April 26, 2010, 12:18:07 AM
Quote from: mrtrc266 on April 25, 2010, 11:45:33 PM
@ Lou

I'm sorry I don't know what you mean by "the download link is missing" I just provided the link to download it?

Terribly sorry, I am a bit of a dullard today.   :)  I do see your link now, I completely overlooked it the first go thru.

The 'link' I had referred to as missing had to do with the Package Manager. When browsing for the mod, the link that resides to the right of the AJAX name is missing, therefore, one can not download it.  I thought because of this, the mod had to be manually installed.

I take it that with the link you provided, the file must be expanded and copied to my server and I then point the Package Manager to the url for the file?

I am new at this, so I apologise for being a bit slow about all of it and I do appreciate your help.

Best regards,

Lou

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jtoleric on April 26, 2010, 08:11:29 AM
hi, i tried installing, then i uninstalled and now i get this error on my page:
Unable to load the 'shout_above' template.

it will not allow me to do anything or show any forums...does anyone have any help here? thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on April 26, 2010, 10:29:37 AM
Quote from: mrtrc266 on April 25, 2010, 10:39:26 PM
This isn't in the FAQ's yet but there is info on it here....
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Mod_Away_Command
WOW! WOW! and more WOW!

That's exactly what I needed.  Was able to edit the bottom code and make personalized commands we need for Brawling in the chat.

Very Nice, link, bud.  Should be added to the FAQ post, it's very handy.   If you'd like, I could write up a little editing instruction post, then just link to it? :)

Thank You so much!

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 26, 2010, 10:59:23 AM
Quote from: clevelife on April 25, 2010, 11:58:32 PM
Quote from: mrtrc266 on April 25, 2010, 11:43:45 PM

No worries try this one.

BTW what didn't you like about AJAX Chat?

Im not sure what I did.


Does that mean it's fixed?

LOL, scratch that I miss read it, thought it said "not sure what did." That's what I get for posting before coffee  ;D

Anyway, use the parser on the Mods home page to manually "undo" all the edits that were done on both the default and any custom themes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 26, 2010, 11:01:56 AM
Quote from: jtoleric on April 26, 2010, 08:11:29 AM
hi, i tried installing, then i uninstalled and now i get this error on my page:
Unable to load the 'shout_above' template.

it will not allow me to do anything or show any forums...does anyone have any help here? thank you
Are you using a custom theme? If so please remove the edits from there as well.
Did you get and error "test file failed" on uninstall?
What version of SMF?

When posting with problems it helps to provide as much info as possible.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 26, 2010, 11:03:16 AM
Quote from: hcfwesker on April 26, 2010, 10:29:37 AM
Quote from: mrtrc266 on April 25, 2010, 10:39:26 PM
This isn't in the FAQ's yet but there is info on it here....
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Mod_Away_Command
WOW! WOW! and more WOW!

That's exactly what I needed.  Was able to edit the bottom code and make personalized commands we need for Brawling in the chat.

Very Nice, link, bud.  Should be added to the FAQ post, it's very handy.   If you'd like, I could write up a little editing instruction post, then just link to it? :)

Thank You so much!

You welcome and thanks for the offer. It will be added, the FAQ's will be getting a major overhaul done soon so I'll add it then.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 26, 2010, 11:43:36 AM
Quote from: Lou69 on April 26, 2010, 12:18:07 AM
Quote from: mrtrc266 on April 25, 2010, 11:45:33 PM
@ Lou

I'm sorry I don't know what you mean by "the download link is missing" I just provided the link to download it?

Terribly sorry, I am a bit of a dullard today.   :)  I do see your link now, I completely overlooked it the first go thru.

The 'link' I had referred to as missing had to do with the Package Manager. When browsing for the mod, the link that resides to the right of the AJAX name is missing, therefore, one can not download it.  I thought because of this, the mod had to be manually installed.

I take it that with the link you provided, the file must be expanded and copied to my server and I then point the Package Manager to the url for the file?

I am new at this, so I apologise for being a bit slow about all of it and I do appreciate your help.

Best regards,

Lou


No you don't need to extract the .zip file

Download the Mod from the Mods Home Page or the link above to your desktop.
In your forum go to....
Admin/Packages/Download Packages/Upload a Package/Browse [your desktop]/Upload

That should do it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on April 26, 2010, 02:54:57 PM
Does anyone know which section of code adds the number of users in chat to the button of the forum? So it would look like this?  Chat(3) thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 26, 2010, 03:24:18 PM
Quote from: brion on April 26, 2010, 02:54:57 PM
Does anyone know which section of code adds the number of users in chat to the button of the forum? So it would look like this?  Chat(3) thanks

This is the code that shows the users in chat on the bottom of your forum /Themes/default/BoardIndex.template.php unless your theme has it's own BoardIndex.template.php file.

Look at the Parser on the Mods Home Page to see where to place it
// users in chat
if (isset($context['chat_links'])){
if (count($context['chat_links']) == 0 )
  echo '<br />' . $txt['chat_no_user'];
elseif (count($context['chat_links']) == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '<br />', implode($context['chat_links']);
else
  echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. '<br />', implode(', ', $context['chat_links']);
  }
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on April 26, 2010, 06:43:10 PM
Quote from: mrtrc266 on April 26, 2010, 11:43:36 AM


No you don't need to extract the .zip file

Download the Mod from the Mods Home Page or the link above to your desktop.
In your forum go to....
Admin/Packages/Download Packages/Upload a Package/Browse [your desktop]/Upload

That should do it

Thank you sir, I appreciate your help!  :)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 26, 2010, 07:02:01 PM
Quote from: Lou69 on April 26, 2010, 06:43:10 PM
Quote from: mrtrc266 on April 26, 2010, 11:43:36 AM


No you don't need to extract the .zip file

Download the Mod from the Mods Home Page or the link above to your desktop.
In your forum go to....
Admin/Packages/Download Packages/Upload a Package/Browse [your desktop]/Upload

That should do it

Thank you sir, I appreciate your help!  :)

You're welcome, post back if you need anymore help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on April 27, 2010, 09:48:57 AM
Quote from: mrtrc266 on April 26, 2010, 03:24:18 PM
Quote from: brion on April 26, 2010, 02:54:57 PM
Does anyone know which section of code adds the number of users in chat to the button of the forum? So it would look like this?  Chat(3) thanks

This is the code that shows the users in chat on the bottom of your forum /Themes/default/BoardIndex.template.php unless your theme has it's own BoardIndex.template.php file.

Look at the Parser on the Mods Home Page to see where to place it
// users in chat
if (isset($context['chat_links'])){
if (count($context['chat_links']) == 0 )
  echo '<br />' . $txt['chat_no_user'];
elseif (count($context['chat_links']) == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '<br />', implode($context['chat_links']);
else
  echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. '<br />', implode(', ', $context['chat_links']);
  }


That part is already in my forum, but it doesn't show up
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Abavagada on April 27, 2010, 10:12:09 AM
This is a really great mod! Thanks so much! I love the way it is tied to the forums, with each one getting it's own channel.

I'm trying to make even more of a tie, with each forum having button that opens up the chat in the channel for that forum. However, I can't find a way to set a "default channel". It would just get it from the link passed, like ?chanid=Events.

Can anyone help me with this change?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 27, 2010, 10:30:08 AM
@ brion
Are you using a custom theme? If so does it have it's own BoardIndex.template.php file?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 27, 2010, 10:33:15 AM
Quote from: Abavagada on April 27, 2010, 10:12:09 AM
This is a really great mod! Thanks so much! I love the way it is tied to the forums, with each one getting it's own channel.

I'm trying to make even more of a tie, with each forum having button that opens up the chat in the channel for that forum. However, I can't find a way to set a "default channel". It would just get it from the link passed, like ?chanid=Events.

Can anyone help me with this change?

Thanks

Glad you like the Mod, you can change the default channel in /chat/lib/config.php as explained in the FAQ's on the Mods Home Page (or the link in my signature), please be sure to check them out for future questions. A lot of them are answered there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 27, 2010, 10:34:05 AM
Quote from: clevelife on April 26, 2010, 12:10:51 AM
The default and the one I use is the curve that comes with RC3, other theme installed is darkmodern.

Did you get this sorted?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clevelife on April 27, 2010, 10:46:04 AM
I never did figure out what happened to mine.  I should be able to reinstall SMF and use the old database to bring back my users and posts right?  Im just looking for a yes/no.  I dont want to clog this thread with that discussion when I can just search for the answer.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 27, 2010, 10:48:29 AM
Quote from: clevelife on April 27, 2010, 10:46:04 AM
I never did figure out what happened to mine.  I should be able to reinstall SMF and use the old database to bring back my users and posts right?  Im just looking for a yes/no.  I dont want to clog this thread with that discussion when I can just search for the answer.

yes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Abavagada on April 27, 2010, 11:28:44 AM
Quote from: mrtrc266 on April 27, 2010, 10:33:15 AM
Quote from: Abavagada on April 27, 2010, 10:12:09 AM
This is a really great mod! Thanks so much! I love the way it is tied to the forums, with each one getting it's own channel.

I'm trying to make even more of a tie, with each forum having button that opens up the chat in the channel for that forum. However, I can't find a way to set a "default channel". It would just get it from the link passed, like ?chanid=Events.

Can anyone help me with this change?

Thanks

Glad you like the Mod, you can change the default channel in /chat/lib/config.php as explained in the FAQ's on the Mods Home Page (or the link in my signature), please be sure to check them out for future questions. A lot of them are answered there.

Thanks, but I guess I wasn't clear enough in my explanation.

I want a link on each forum that can open the chat to the chat channel for that forum.
So the link would be something like "...index.php?chanid=Events" for the Events forum.

So I want to pass to the chat a default channel. I have been unable to override that variable in the function for loading a channel... it always get the one stored in the session.

it would be something like this in the code:
$uchanid = $_GET['chanid'];
if ($uchanid !== '') { $channelID = $uchandid; }

but where would the $channelID be gotten so it could be alterred in this way?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on April 27, 2010, 11:31:33 AM
Yes I am using a custom theme, but it only has index.template.php the only boardindex.template is in the default theme folder.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 27, 2010, 12:29:50 PM
@ Abavagada

I wouldn't have a clue as to go about that and I know that this is not what you're wanting but it might give you some insight as to where to look.
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Custom_chat_channels#Adding_additional_chat_channels
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 27, 2010, 12:30:36 PM
Quote from: brion on April 27, 2010, 11:31:33 AM
Yes I am using a custom theme, but it only has index.template.php the only boardindex.template is in the default theme folder.

Attach your BoardIndex.template.php file here please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fairytears on April 27, 2010, 12:39:58 PM
Quote from: mrtrc266 on April 23, 2010, 01:30:57 AM
Quote from: fairytears on April 22, 2010, 11:58:57 AM
Hello
I installed the shoutbox that came with the AJAX chat in my forum. Recently, one of the members was able to save all the conversation that took place in the shoutbox. The moderators and I are worried that this can be done and we don't even know how. My questions are

-How did he do it????
-Is there a way to prevent this??

Thanks, I really appreciate any help on this.

Either he/she has access to the chat logs as an Admin on your site or he/she copied all the chats (public chat, not private chats) ?

Thank you. So if he is not an Admin, the only way is to do a Copy/Paste? We were worried because he is a computer programmer (at least that's what he says) and we thought maybe he is a hacker of some kind.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 27, 2010, 12:53:35 PM
@ fairytears

To my know knowledge yes that's the only way. After reading literally thousands upon thousands of posts here, Source Forge, and on the Internet regarding this chat I have never ran across a post with anyone's concerns about the chat system being hacked. It's secure. Not saying that it's impossible hack, but it's unlikely.

Quoted from the developers site on their features list https://blueimp.net/ajax/ (https://blueimp.net/ajax/)
QuoteDeveloped with Security as integral part - built to prevent Code injections, SQL injections, Cross-site scripting (XSS), Session stealing and other attacks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on April 27, 2010, 07:08:05 PM
Here you go  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on April 27, 2010, 07:11:06 PM
File won't post, so lets try zip
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 27, 2010, 07:30:37 PM
Quote from: brion on April 27, 2010, 07:08:05 PM
Here you go  :)

The code seems to be in there okay I just tried your file on my site and it works fine, not sure why it's not working on your site.

Would it be too much trouble to ask you to uninstall it, delete it from the package manager and try this one?

This has the latest AJAX Chat, with 5 new language supports and some improved performance enhancements as well.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on April 27, 2010, 09:00:57 PM
It took me 2 weeks to get it working, so I'd hate to have to do it all over again. Is there anything I can add in my index.template.php to add to the chatroom link? Something like this

//Whos online code
blah blah blah
$NumOnline = mysql_num_rows($blah);

<li href="chatroom.php">$NumOnline are in Chat</li>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 27, 2010, 09:10:26 PM
Quote from: brion on April 27, 2010, 09:00:57 PM
It took me 2 weeks to get it working, so I'd hate to have to do it all over again. Is there anything I can add in my index.template.php to add to the chatroom link? Something like this

//Whos online code
blah blah blah
$NumOnline = mysql_num_rows($blah);

<li href="chatroom.php">$NumOnline are in Chat</li>


Not sure exactly what you mean, what's not working how would you like it to behave? Send screen shots and a link to your site for clarity, PM if you don't want it public.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on April 27, 2010, 10:11:46 PM
Working with getting this mod running in my SMF 1.1.1 forum using custom theme Ps_Black.  I never figured out the IO Error, so I disabled sound altogether.  Just commented it out.

What I want to know now, is how to make the 'Chat' button show a chat user count like it should.. and how to make the Users Online list show 'User in Chat' properly.

I've attached my theme's index.template.php and BoardIndex.template.php for reference.  I appreciate your time and help.

URL: www.RealPerformanceMustangs.com

Login creds on request or simply login with facebook or register.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on April 27, 2010, 10:44:17 PM
Here is an image of what I mean, the top links like profile, search, home, etc. Would show number of users in chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 27, 2010, 10:47:16 PM
@ Stigmartyr

Find /Themes/Ps_Black/BoardIndex.template.php
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
Add after
    // users in chat
    if (isset($context['chat_links'])){
        if (count($context['chat_links']) == 0 )
          echo '<br />' . $txt['chat_no_user'];
        elseif (count($context['chat_links']) == 1 )
          echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
        else
          echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }


Find /Themes/Ps_Black/index.template.php
function template_menu()
{
    global $context, $settings, $options, $scripturl, $txt;

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


Find
echo '<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br /><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';
Replace with
        echo '<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br /><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a>';

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

Find
// Otherwise, they might want to [logout]...
Replace with
// the [chat] button
    $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
    $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
    echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
        <li><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a></li>';
       
    // Otherwise, they might want to [logout]...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 27, 2010, 10:57:08 PM
Quote from: brion on April 27, 2010, 10:44:17 PM
Here is an image of what I mean, the top links like profile, search, home, etc. Would show number of users in chat.

That should be a default feature for AJAX Integration.

In your Forums Admin Enable online chat users numbering on chat   button?

For SMF 1.1.X Admin/Configuration/Features and Options/
For   SMF 2 RC1  Admin/Configuration/Modifications/Chat/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scooterhog on April 27, 2010, 11:50:44 PM
Is it typical behavior for a user attempting to chat from a different IP Address to be blocked?

SMF 1.1.11
Chat 3.2.1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on April 28, 2010, 01:55:28 PM
Quote from: mrtrc266 on April 27, 2010, 10:57:08 PM
Quote from: brion on April 27, 2010, 10:44:17 PM
Here is an image of what I mean, the top links like profile, search, home, etc. Would show number of users in chat.

That should be a default feature for AJAX Integration.

In your Forums Admin Enable online chat users numbering on chat   button?

For SMF 1.1.X Admin/Configuration/Features and Options/
For   SMF 2 RC1  Admin/Configuration/Modifications/Chat/

Ok I found out the button was unchecked, however it didn't fix it. Here is the two coding places for my chatroom button. I added it manually.

<link rel="chatroom" href="/chat/index.php" target="_BLANK" />

if ($context['allow_search'])
echo '<li', $current_action == 'search' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';
echo '<li', $current_action == 'gallery' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=gallery">Gallery</a></li>';
echo '<li', $current_action == 'chatroom' ? ' class="chosen"' : '', '><a href="/chat/index.php" target="_BLANK">Chatroom</a></li>';
echo '<li', $current_action == 'game' ? ' class="chosen"' : '', '><a href="game.php">Game</a></li>';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on April 28, 2010, 07:28:19 PM
Custom Chat Commands

To add custom chat commands, for member use.  You can check this link, below.

http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Mod_Away_Command

I've worked up a tutorial for some who may be new to the process.

Under the file,  chat/lib/class/CustomAJAXChat.php

At the very bottom of the file, be sure to include the last closing bracket, the edit being inserted must go ABOVE the closing } in the last code listed.
Find
}
?>


Add Above
function parseCustomCommands($text, $textParts) {
switch($textParts[0]) {
// Away from keyboard message:
case '/afk':
// Set the userName:
$this->setUserName('<AFK>_'.$this->getUserName());
// Update the online user table:
$this->updateOnlineList();
// Add info message to update the client-side stored userName:
$this->addInfoMessage($this->getUserName(), 'userName');
// Store AFK status as session variable:
$this->setSessionVar('AwayFromKeyboard', true);
return true;
default:
return false;
}
}

function onNewMessage($text) {
// Reset AFK status on first inserted message:
if($this->getSessionVar('AwayFromKeyboard')) {
$this->setUserName($this->subString($this->getUserName(), 6));
$this->updateOnlineList();
$this->addInfoMessage($this->getUserName(), 'userName');
$this->setSessionVar('AwayFromKeyboard', false);
}
return true;
}


This code creates the custom command function list, which will be used for adding new custom commands.  By default, this adds an "away from keyboard" <AFK>_  in front of each memebrs name that uses it, by typing /afk into the chat.  To remove it, simply type any new message into the chat.


Adding and Creating custom commands.

Now, in the same exact code that was just added for "AFK".  Halfway down it

Find
return true;
default:
return false;


Add After:
case '/away':
$this->insertChatBotMessage($this->getChannel(), $this->getLoginUserName().' has set their status to Away');
$this->setUserName($this->getLoginUserName().'[Away]');
$this->updateOnlineList();
$this->addInfoMessage($this->getUserName(), 'userName');
return true;
case '/online':
$this->insertChatBotMessage($this->getChannel(), $this->getLoginUserName().' has set their status to Online');
$this->setUserName($this->getLoginUserName());
$this->updateOnlineList();
$this->addInfoMessage($this->getUserName(), 'userName');
return true;



You can add any number of these in a row for however many custom commands you want.  They're very entertaining for members to use in the chat.  Just edit certain lines to customize them.  I'll explain my best, down below.

case '/away':
      $this->insertChatBotMessage($this->getChannel(), $this->getLoginUserName().' has set their status to Away');  ***
      $this->setUserName($this->getLoginUserName().'[Away]');
      $this->updateOnlineList();
      $this->addInfoMessage($this->getUserName(), 'userName');
      return true;
   case '/online':
      $this->insertChatBotMessage($this->getChannel(), $this->getLoginUserName().' has set their status to Online');  ***
      $this->setUserName($this->getLoginUserName());
      $this->updateOnlineList();
      $this->addInfoMessage($this->getUserName(), 'userName');
      return true;

When the command is activated by a member in the chat.

/away --  what is typed by a memebr to activate the custom command.

has set their status to Away  -- what the ChatBot message will say when a memebr activates the command.

***  For either activating or deactivating the command by a member, you can delete this line of code so the "ChatBot" does not post the custom command being used in the chat posts.  ( Again, you chose which of the 2 to delete, or just leave them)

[Away] --- what will be displayed at the end of names in the chat member list.


When the command is de-activated by a member in the chat.


/online  --- what is typed by a member to de-activate the custom command ( and remove the added tag at the end of their display name.

has set their status to Online'  --- what the ChatBot message will say when a member de-activates the command.


As an example.  I run a site for the online game SSB Brawl.  When a member is looking for a match, they type /seeking  in the chat.  [Seeking a Match] gets put at the end of their name, and the ChatBot says , "hcfwesker is seeking a Brawl Match".

Then, if I have a match, I'll post /brawling.  Then, [Brawling] will show up in my name, so other know I'm already in a match, and the chatBot will message, "hcfwesker is currently in a Brawl Match".

The possibilites are quite limitless, just depends on forum prefernces.

I'm not a coder, and I explained the best I could.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Ozzie on April 28, 2010, 08:38:47 PM
im open to suggestions....

ive tried just about everything in this thread chmod'ing/new htaccess files manual upload etc etc and for the life of me all i keep geting in the shout is   ChatBot: Error: Connection status: 404...im at my wits end and about to give up anyone got any thing else i can try????
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on April 28, 2010, 11:47:19 PM
Quote from: mrtrc266 on April 27, 2010, 10:47:16 PM
@ Stigmartyr

Find /Themes/Ps_Black/BoardIndex.template.php
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
Add after
    // users in chat
    if (isset($context['chat_links'])){
        if (count($context['chat_links']) == 0 )
          echo '<br />' . $txt['chat_no_user'];
        elseif (count($context['chat_links']) == 1 )
          echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
        else
          echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }


Find /Themes/Ps_Black/index.template.php
function template_menu()
{
    global $context, $settings, $options, $scripturl, $txt;

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


Find
echo '<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br /><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';
Replace with
        echo '<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br /><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a>';

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

Find
// Otherwise, they might want to [logout]...
Replace with
// the [chat] button
    $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
    $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
    echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
        <li><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a></li>';
       
    // Otherwise, they might want to [logout]...


Thank you very much for your help.  I made all the changes as you prescribed, but my chat button in the menu still doesn't show the users in chat count, nor does the Who's Online list indicate a user is in chat..

:( I do thank you in advance again for all the great help you provide here.

If you would like to demo the chat feature for yourself, I made a demo account:

User: test
pwd: test
URL: http://realperformancemustangs.com
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 29, 2010, 01:06:16 AM
Quote from: brion on April 28, 2010, 01:55:28 PM
Quote from: mrtrc266 on April 27, 2010, 10:57:08 PM
Quote from: brion on April 27, 2010, 10:44:17 PM
Here is an image of what I mean, the top links like profile, search, home, etc. Would show number of users in chat.

That should be a default feature for AJAX Integration.

In your Forums Admin Enable online chat users numbering on chat   button?

For SMF 1.1.X Admin/Configuration/Features and Options/
For   SMF 2 RC1  Admin/Configuration/Modifications/Chat/

Ok I found out the button was unchecked, however it didn't fix it. Here is the two coding places for my chatroom button. I added it manually.

<link rel="chatroom" href="/chat/index.php" target="_BLANK" />

if ($context['allow_search'])
    echo '<li', $current_action == 'search' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';
    echo '<li', $current_action == 'gallery' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=gallery">Gallery</a></li>';
    echo '<li', $current_action == 'chatroom' ? ' class="chosen"' : '', '><a href="/chat/index.php" target="_BLANK">Chatroom</a></li>';
    echo '<li', $current_action == 'game' ? ' class="chosen"' : '', '><a href="game.php">Game</a></li>';


You're missing the code that allows you to show the # of user in chat on the chat button in your index.template.php file.
Find
echo '<li', $current_action == 'chatroom' ? ' class="chosen"' : '', '><a href="/chat/index.php" target="_BLANK">Chatroom</a></li>';
Replace with

   // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <li class="chosen">
         <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
      </li>';


Attach your index.template.php file if that doesn't work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 29, 2010, 01:12:11 AM
@ Stigmartyr

Your BoardIndex.php is installed correctly (users in chat is working fine on the bottom of your forum)

Attach your index.template.php file here please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on April 29, 2010, 01:19:54 AM
Quote from: mrtrc266 on April 29, 2010, 01:12:11 AM
@ Stigmartyr

Your BoardIndex.php is installed correctly (users in chat is working fine on the bottom of your forum)

Attach your index.template.php file here please.

O?  I guess I was looking in the wrong place.  I was looking at index.php?action=who and also there is a Users Online block (its that DashBoard block), if you click the servers tab where it shows recent posts.  Attached Ps_Blank/index.template.php file as requested.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 29, 2010, 01:36:00 AM
Quote from: Stigmartyr on April 29, 2010, 01:19:54 AM
Quote from: mrtrc266 on April 29, 2010, 01:12:11 AM
@ Stigmartyr

Your BoardIndex.php is installed correctly (users in chat is working fine on the bottom of your forum)

Attach your index.template.php file here please.

O?  I guess I was looking in the wrong place.  I was looking at index.php?action=who and also there is a Users Online block (its that DashBoard block), if you click the servers tab where it shows recent posts.  Attached Ps_Blank/index.template.php file as requested.


LOL I hope it's as simple as this, attached is a screen shot of the file you just attached (unedited) on my test site that seems to be working fine.

Did you enable these setting in your Admin? ;) Enable the ShoutBox?
Check for ShoutBox on any page or uncheck for only in index page:
Integrate shout box and chat room?
Chat in popup page?
Enable online chat users numbering on chat button?
Show online users below total logged in time section?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 29, 2010, 01:40:36 AM
Quote from: OZZIE on April 28, 2010, 08:38:47 PM
im open to suggestions....

ive tried just about everything in this thread chmod'ing/new htaccess files manual upload etc etc and for the life of me all i keep geting in the shout is   ChatBot: Error: Connection status: 404...im at my wits end and about to give up anyone got any thing else i can try????

Is it just the shoutbox or both that chat and the shout?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 29, 2010, 01:41:42 AM
Very nice hcfwesker and thank you very much.

I will the link to the FAQ's ASAP.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on April 29, 2010, 02:17:47 AM
Quote from: mrtrc266 on April 29, 2010, 01:36:00 AM
Quote from: Stigmartyr on April 29, 2010, 01:19:54 AM
Quote from: mrtrc266 on April 29, 2010, 01:12:11 AM
@ Stigmartyr

Your BoardIndex.php is installed correctly (users in chat is working fine on the bottom of your forum)

Attach your index.template.php file here please.

O?  I guess I was looking in the wrong place.  I was looking at index.php?action=who and also there is a Users Online block (its that DashBoard block), if you click the servers tab where it shows recent posts.  Attached Ps_Blank/index.template.php file as requested.


LOL I hope it's as simple as this, attached is a screen shot of the file you just attached (unedited) on my test site that seems to be working fine.

Did you enable these setting in your Admin? ;)

       
  • Please be sure   to check the following settings in the Admin Panel.
  • For SMF 1.1.X Admin/Configuration/Features and Options/
Enable the ShoutBox?
Check for ShoutBox on any page or uncheck for only in index page:
Integrate shout box and chat room?
Chat in popup page?
Enable online chat users numbering on chat button?
Show online users below total logged in time section?

You are the man.  You have my permission to slap me with a large trout.  I totally forgot to set the features options.  I checked perms.  I think I need a vacation :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 29, 2010, 02:19:14 AM
LOL, glad you got it sorted Stig. Happens to the best of us ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on April 29, 2010, 02:24:13 AM
Quote from: mrtrc266 on April 29, 2010, 02:19:14 AM
LOL, glad you got it sorted Stig. Happens to the best of us ;D

Ive gotten soft on SMF 2.  The layout is so much better for admins.
Title: invite user with pm
Post by: ProfDrDenis on April 29, 2010, 05:02:47 AM
my user want to invite from the chat other forum user with pm  :( for example:

in the chat they write (for example)  /invitepm USERNAME and than a mail goes with a simple text to the forum user with pm. Is this going? and who can help?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Ozzie on April 29, 2010, 05:06:49 AM
Quote from: mrtrc266 on April 29, 2010, 01:40:36 AM
Quote from: OZZIE on April 28, 2010, 08:38:47 PM
im open to suggestions....

ive tried just about everything in this thread chmod'ing/new htaccess files manual upload etc etc and for the life of me all i keep geting in the shout is   ChatBot: Error: Connection status: 404...im at my wits end and about to give up anyone got any thing else i can try????

Is it just the shoutbox or both that chat and the shout?

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


i get the same error on both mrtrc266
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 29, 2010, 10:10:53 AM
Quote from: OZZIE on April 29, 2010, 05:06:49 AM
Quote from: mrtrc266 on April 29, 2010, 01:40:36 AM
Quote from: OZZIE on April 28, 2010, 08:38:47 PM
im open to suggestions....

ive tried just about everything in this thread chmod'ing/new htaccess files manual upload etc etc and for the life of me all i keep geting in the shout is   ChatBot: Error: Connection status: 404...im at my wits end and about to give up anyone got any thing else i can try????

Is it just the shoutbox or both that chat and the shout?

i get the same error on both mrtrc266

What's the link you your site? PM me a temp admin account on your forum and FTP access and I'll take a look when I get a sec if you want.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 29, 2010, 10:11:42 AM
Quote from: ProfDrDenis on April 29, 2010, 05:02:47 AM
my user want to invite from the chat other forum user with pm  :( for example:

in the chat they write (for example)  /invitepm USERNAME and than a mail goes with a simple text to the forum user with pm. Is this going? and who can help?

I don't thing that's possible
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ProfDrDenis on April 29, 2010, 10:23:10 AM
Quote from: mrtrc266 on April 29, 2010, 10:11:42 AM
Quote from: ProfDrDenis on April 29, 2010, 05:02:47 AM
my user want to invite from the chat other forum user with pm  :( for example:

in the chat they write (for example)  /invitepm USERNAME and than a mail goes with a simple text to the forum user with pm. Is this going? and who can help?

I don't thing that's possible

why not? You think its a big deal?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on April 29, 2010, 10:26:58 AM
Possible, sure. Anything's *possible*. It's about whether it's worth the effort of doing it, since sending a PM - as I learned earlier today when adding such a facility into a new area in SimpleDesk - is significantly more complex than it sounds like it should be.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 29, 2010, 10:30:53 AM
Quote from: ProfDrDenis on April 29, 2010, 10:23:10 AM
Quote from: mrtrc266 on April 29, 2010, 10:11:42 AM
Quote from: ProfDrDenis on April 29, 2010, 05:02:47 AM
my user want to invite from the chat other forum user with pm  :( for example:

in the chat they write (for example)  /invitepm USERNAME and than a mail goes with a simple text to the forum user with pm. Is this going? and who can help?

I don't thing that's possible

why not? You think its a big deal?

That would probably be a question for the developers of AJAX Chat. They would have a better idea on how to do it if it can be done.
http://sourceforge.net/projects/ajax-chat/support (http://sourceforge.net/projects/ajax-chat/support)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rajeshn on April 29, 2010, 11:31:32 AM
Hi,
Thanks for the Chat integration. Is it possible to place the chat below all the categories?

Thanks
Rajesh
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Abavagada on April 29, 2010, 12:18:01 PM
I managed to set up a button on each forum to open the chat to the proper channel automatically.

I have a question now which (I hope) is easier to answer.
According to the sourceforge page on setting custom moderators:
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Custom_moderators_and_admins
the forum admins become chat admins, and forum moderators become chat moderators in the forum integration versions of the chat.

However, when a forum moderator becomes a chat moderator, they can moderate ALL channels. I'm wondering if there is a way to restrict them being moderators to just the forums they moderate.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PDW on April 29, 2010, 12:21:34 PM
an idea for a "mod" for this chat that would make it even more awesome,
have a "nudge" function.. it would liek like this.
*say i wanted to talk to someone but there not lookin at the chat, just lookin at the posts and abut to go offline after
*I could type /nudge /personsname/
*a popup would display telling them they have been nudged

OR something like that. would it be possible?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TurtleKicker on April 29, 2010, 01:32:04 PM
Quick question:

I have an older version (1.2.2) of this mod installed in my forum, and due to numerous manual edits it will not uninstall cleanly in order to upgrade. Honestly though I have no issues with the version I'm running (plus I'll get the latest version once I upgrade to SMF2 final)... however I'd like to have that feature where it displays the number of users in the chat up next to the tab. I figured it'd be easier to hack in this one feature than going through the chaos and hassle up upgrading the whole mod and manually editing several files for extra features I don't need.

Having some trouble, though, and am hoping there's a simple fix. Here's the code I tried in my index.template.php:

// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = count(chatOnlineUsers());
if ($context['user']['is_logged'])
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '" target="_blank" title="Chat">', '<img src="' . $settings['images_url'] . '/chat.png" border="0" />', ($num > 0) ?  ('('.$num.')') : '' , '</a></td>';


However, this fails and stops displaying content after the chat tab. Is there anyone who can help me out?
Title: Ajax Chat - download or install is either corrupt or not compatible with version
Post by: Lou69 on April 29, 2010, 10:15:40 PM
Greets all,

I have tried to install Ajax Chat Integration 3.2.1 mod onto 2.0 RC3 and I receive the following warning:

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

According to documents, the two are compatible. I have downloaded several copies, all give the above warning when installed.

What is your advice as to how I should handle this?

Best regards,

Lou

:)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 30, 2010, 12:55:18 AM
Quote from: rajeshn on April 29, 2010, 11:31:32 AM
Hi,
Thanks for the Chat integration. Is it possible to place the chat below all the categories?

Thanks
Rajesh

What version of SMF? If SMF 2 then read this http://www.simplemachines.org/community/index.php?topic=257973.msg2107351#msg2107351
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 30, 2010, 12:59:05 AM
Quote from: Abavagada on April 29, 2010, 12:18:01 PM
I managed to set up a button on each forum to open the chat to the proper channel automatically.

I have a question now which (I hope) is easier to answer.
According to the sourceforge page on setting custom moderators:
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Custom_moderators_and_admins
the forum admins become chat admins, and forum moderators become chat moderators in the forum integration versions of the chat.

However, when a forum moderator becomes a chat moderator, they can moderate ALL channels. I'm wondering if there is a way to restrict them being moderators to just the forums they moderate.

Thanks


I Haven't messed around with this too much but are they Global Mods? If so then they will probably be able to Moderate all the Channels as well. Try to create test account as a local Moderator and give them permission to moderate a certain board and see if it gives them permission to moderate just that channel or all channels as well?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 30, 2010, 01:02:26 AM
Quote from: PDW on April 29, 2010, 12:21:34 PM
an idea for a "mod" for this chat that would make it even more awesome,
have a "nudge" function.. it would liek like this.
*say i wanted to talk to someone but there not lookin at the chat, just lookin at the posts and abut to go offline after
*I could type /nudge /personsname/
*a popup would display telling them they have been nudged

OR something like that. would it be possible?

Not sure if this helps but here is a little info on how to add IRC Style Commands, this is just an example of 1 custom command but maybe someone that knows how to code can get what you like, possibly ask at Source Forge as that's where the developers of AJAX Chat hang out.

http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Custom_IRC_style_commands
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 30, 2010, 01:04:49 AM
Quote from: Lou69 on April 29, 2010, 10:15:40 PM
Greets all,
I have tried to install Ajax Chat Integration 3.2.1 mod onto 2.0 RC3 and I receive the following warning:

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

According to documents, the two are compatible. I have downloaded several copies, all give the above warning when installed.

What is your advice as to how I should handle this?

Best regards,
Lou
:)

You need the one for RC3
AjaxChat   Integration_3.2.1 RC3_Curve_Friendly.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=138620)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 30, 2010, 01:08:19 AM
@ sremick

I don't even see the link to your chat button? What's the URL to the site you're trying to get this working on?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Abavagada on April 30, 2010, 08:02:31 AM
Quote from: mrtrc266 on April 30, 2010, 12:59:05 AM
Quote from: Abavagada on April 29, 2010, 12:18:01 PM
I managed to set up a button on each forum to open the chat to the proper channel automatically.

I have a question now which (I hope) is easier to answer.
According to the sourceforge page on setting custom moderators:
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Custom_moderators_and_admins
the forum admins become chat admins, and forum moderators become chat moderators in the forum integration versions of the chat.

However, when a forum moderator becomes a chat moderator, they can moderate ALL channels. I'm wondering if there is a way to restrict them being moderators to just the forums they moderate.

Thanks


I Haven't messed around with this too much but are they Global Mods? If so then they will probably be able to Moderate all the Channels as well. Try to create test account as a local Moderator and give them permission to moderate a certain board and see if it gives them permission to moderate just that channel or all channels as well?

I've already done that. A moderator of one forum can moderate all chat channels. They become chat admins by default. I can't even find where to make them just chat moderators, instead of admins. That page says this is only done in the integrated version.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rajeshn on April 30, 2010, 09:09:11 AM
Quote from: mrtrc266 on April 30, 2010, 12:55:18 AM
Quote from: rajeshn on April 29, 2010, 11:31:32 AM
Hi,
Thanks for the Chat integration. Is it possible to place the chat below all the categories?

Thanks
Rajesh

What version of SMF? If SMF 2 then read this http://www.simplemachines.org/community/index.php?topic=257973.msg2107351#msg2107351

Hi,

thanks for the reply. I am using version 1.1.1.1.

Rajesh
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 30, 2010, 09:27:40 AM
@ Abavagada
I'll have to take a look when I get some time.

@ rajeshn
Sorry about that, that is how to do it for 1.1.1X as well  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TurtleKicker on April 30, 2010, 10:42:55 AM
Quote from: mrtrc266 on April 30, 2010, 01:08:19 AM
I don't even see the link to your chat button? What's the URL to the site you're trying to get this working on?

The site is the one in my sig. Chat button only appears for logged-in/registered users. Right now I haven't applied the code I posted since it broke things.

I don't really understand PHP all that well so I was hoping I was just making a simple error in the code I posted that someone could identify.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on April 30, 2010, 01:48:01 PM
Quote from: mrtrc266 on April 29, 2010, 01:06:16 AM
Quote from: brion on April 28, 2010, 01:55:28 PM
Quote from: mrtrc266 on April 27, 2010, 10:57:08 PM
Quote from: brion on April 27, 2010, 10:44:17 PM
Here is an image of what I mean, the top links like profile, search, home, etc. Would show number of users in chat.

That should be a default feature for AJAX Integration.

In your Forums Admin Enable online chat users numbering on chat   button?

For SMF 1.1.X Admin/Configuration/Features and Options/
For   SMF 2 RC1  Admin/Configuration/Modifications/Chat/

Ok I found out the button was unchecked, however it didn't fix it. Here is the two coding places for my chatroom button. I added it manually.

<link rel="chatroom" href="/chat/index.php" target="_BLANK" />

if ($context['allow_search'])
    echo '<li', $current_action == 'search' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=search">' , $txt[182] , '</a></li>';
    echo '<li', $current_action == 'gallery' ? ' class="chosen"' : '', '><a href="', $scripturl, '?action=gallery">Gallery</a></li>';
    echo '<li', $current_action == 'chatroom' ? ' class="chosen"' : '', '><a href="/chat/index.php" target="_BLANK">Chatroom</a></li>';
    echo '<li', $current_action == 'game' ? ' class="chosen"' : '', '><a href="game.php">Game</a></li>';


You're missing the code that allows you to show the # of user in chat on the chat button in your index.template.php file.
Find
echo '<li', $current_action == 'chatroom' ? ' class="chosen"' : '', '><a href="/chat/index.php" target="_BLANK">Chatroom</a></li>';
Replace with

   // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <li class="chosen">
         <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
      </li>';


Attach your index.template.php file if that doesn't work.

It now says Chat and link works, but still has no numbers or users online. Attached is the file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on April 30, 2010, 06:14:00 PM
Quote from: mrtrc266 on April 30, 2010, 01:04:49 AM
Quote from: Lou69 on April 29, 2010, 10:15:40 PM
Greets all,
I have tried to install Ajax Chat Integration 3.2.1 mod onto 2.0 RC3 and I receive the following warning:

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

According to documents, the two are compatible. I have downloaded several copies, all give the above warning when installed.

What is your advice as to how I should handle this?

Best regards,
Lou
:)

You need the one for RC3
AjaxChat   Integration_3.2.1 RC3_Curve_Friendly.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=138620)

Ahhhhh .... beat head against the table for silly mistake. Thanks.  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 30, 2010, 10:00:25 PM
Quote from: OZZIE on April 29, 2010, 05:06:49 AM
Quote from: mrtrc266 on April 29, 2010, 01:40:36 AM
Quote from: OZZIE on April 28, 2010, 08:38:47 PM
im open to suggestions....

ive tried just about everything in this thread chmod'ing/new htaccess files manual upload etc etc and for the life of me all i keep geting in the shout is   ChatBot: Error: Connection status: 404...im at my wits end and about to give up anyone got any thing else i can try? ???

Is it just the shoutbox or both that chat and the shout?
-------------------------
i get the same error on both mrtrc266

I got it sorted for you, seems to be the Portal you're using.

I Added this to your .htaccess file (the one in the same directory as your /SSI.php file)
DirectoryIndex portal.php index.php index.html index.htm
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Ozzie on April 30, 2010, 10:17:13 PM
you are my new hero i have been at my wits end with this i cannot thank you enough
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 30, 2010, 10:19:30 PM
Quote from: OZZIE on April 30, 2010, 10:17:13 PM
you are my new hero i have been at my wits end with this i cannot thank you enough

No problem at all, glad I could help. Enjoy the Mod! :-)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 30, 2010, 11:33:02 PM
@ brion

Try this, if it doesn't work please post a link to the theme are you using
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on April 30, 2010, 11:34:48 PM
Quote
Ahhhhh .... beat head against the table for silly mistake. Thanks.  :)

No problem, glad you got it going....Enjoy :-)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Am' on May 01, 2010, 02:23:03 PM
Hi,

what are the commands for the shoutbox? now I just find /me

is that it is possible to adapt the shoutbox with this mod "Member Color Link" please

http://custom.simplemachines.org/mods/index.php?mod=111

???

thx
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on May 01, 2010, 03:56:04 PM
Quote from: mrtrc266 on April 30, 2010, 11:33:02 PM
@ brion

Try this, if it doesn't work please post a link to the theme are you using

I get this error

Parse error: syntax error, unexpected '}' in /home/fayt/public_html/Themes/DPtheme/index.template.php on line 276
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 01, 2010, 10:41:59 PM
Quote from: Am' on May 01, 2010, 02:23:03 PM
Hi,

what are the commands for the shoutbox? now I just find /me

is that it is possible to adapt the shoutbox with this mod "Member Color Link" please

http://custom.simplemachines.org/mods/index.php?mod=111

???

thx

The commands are the same as in the Chat Room, look at the help in the Chat Room and you'll see the commands. Just type them in the shoutbox and they work the same.

No you can't use that Mod to change the membergroup colors, you have to do that in /chat/css/shoutbox.css for the shoutbox and chat/css/youstyle.css for the chat room.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 01, 2010, 10:43:09 PM
Quote from: brion on May 01, 2010, 03:56:04 PM
Quote from: mrtrc266 on April 30, 2010, 11:33:02 PM
@ brion

Try this, if it doesn't work please post a link to the theme are you using

I get this error

Parse error: syntax error, unexpected '}' in /home/fayt/public_html/Themes/DPtheme/index.template.php on line 276
What's the link to your theme please?
Never mind I got it, Reference right?

Try this one I tested it and it works fine.

Also be sure to....
Find /Themes/YourTheme/style.css
#userarea {
   float: right;
   padding: 6.5em 25px 0 0;

Replace with
#userarea {
   float: right;
   padding: 5.5em 25px 0 0;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sutko on May 02, 2010, 03:20:24 PM
Quote from: mrtrc266 on May 01, 2010, 10:41:59 PM
Quote from: Am' on May 01, 2010, 02:23:03 PM
Hi,

what are the commands for the shoutbox? now I just find /me

is that it is possible to adapt the shoutbox with this mod "Member Color Link" please

http://custom.simplemachines.org/mods/index.php?mod=111

???

thx

The commands are the same as in the Chat Room, look at the help in the Chat Room and you'll see the commands. Just type them in the shoutbox and they work the same.

No you can't use that Mod to change the membergroup colors, you have to do that in /chat/css/shoutbox.css for the shoutbox and chat/css/youstyle.css for the chat room.

I have a group called: Driver of the month

Can you please tell me what I need to write  in shoutbox.css so that members of this group were shown blue in shoutbox, for example this color:
#0000FF

P.S.
Sorry for bad english.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brion on May 02, 2010, 05:51:47 PM
Quote from: mrtrc266 on May 01, 2010, 10:43:09 PM
Quote from: brion on May 01, 2010, 03:56:04 PM
Quote from: mrtrc266 on April 30, 2010, 11:33:02 PM
@ brion

Try this, if it doesn't work please post a link to the theme are you using

I get this error

Parse error: syntax error, unexpected '}' in /home/fayt/public_html/Themes/DPtheme/index.template.php on line 276
What's the link to your theme please?
Never mind I got it, Reference right?

Try this one I tested it and it works fine.

Also be sure to....
Find /Themes/YourTheme/style.css
#userarea {
   float: right;
   padding: 6.5em 25px 0 0;

Replace with
#userarea {
   float: right;
   padding: 5.5em 25px 0 0;


SWEET! It works, thank you sooo much. Is it possible to show (0) when no users are in chat? rather than there be nothing there?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: M3ntal on May 03, 2010, 04:49:12 AM
Hello i have just installed and everything installed fine.

My problem is its not adding text from users online or adding anything or showing users online...

Some help here plz am new to this but managed to get everything installed on it working on main page and well posts from users online wont show in text box
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 03, 2010, 11:37:24 AM
@ M3ntal
please read the FAQ's on the Mods Home page (BIG Purple letters). Or the link in my signature.

@ sutko
By default AJAX Chat integrated on Admin, Moderator, User, and Guests colors. There is a tutorial on how to add customer member groups HERE (http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=PhpBB3_custom_user_group) but it's for PhpBB3. Maybe someone can provide info on how to do it for SMF.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: M3ntal on May 04, 2010, 12:13:02 AM
Quote from: mrtrc266 on May 03, 2010, 11:37:24 AM
@ M3ntal
please read the FAQ's on the Mods Home page (BIG Purple letters). Or the link in my signature.

I have tried everything on it it still don't work. The chat system is there i even tried all the 500 error fixes and the connection error problems resulting in still not working
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 04, 2010, 12:20:15 AM
Quote from: M3ntal on May 04, 2010, 12:13:02 AM
Quote from: mrtrc266 on May 03, 2010, 11:37:24 AM
@ M3ntal
please read the FAQ's on the Mods Home page (BIG Purple letters). Or the link in my signature.

I have tried everything on it it still don't work. The chat system is there i even tried all the 500 error fixes and the connection error problems resulting in still not working

What Mods do you have installed?

Post a link to your site (or PM if you don't want it public).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: M3ntal on May 04, 2010, 12:40:02 AM
Quote from: mrtrc266 on May 04, 2010, 12:20:15 AM
Quote from: M3ntal on May 04, 2010, 12:13:02 AM
Quote from: mrtrc266 on May 03, 2010, 11:37:24 AM
@ M3ntal
please read the FAQ's on the Mods Home page (BIG Purple letters). Or the link in my signature.

I have tried everything on it it still don't work. The chat system is there i even tried all the 500 error fixes and the connection error problems resulting in still not working

What Mods do you have installed?

Post a link to your site (or PM if you don't want it public).

I have sent you pm with the url and its this chat mod

AjaxChat Integration (latest version 3.2.1)

its installed i treld to follow to edit files and stuff making no difference to it


Edited

Thx problems sorted and thx for the support there :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Another Rob on May 04, 2010, 10:58:27 AM
Is there a way to disable the /nick command? I don't want users to be able to change their username to someone elses in the chat room to avoid possible confusion and abuse.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 04, 2010, 12:36:34 PM
Quote from: Lou69
Quote from: mrtrc266
Seems like   an easy $1,000 to me  ;D

Just kidding, when you get   to the AJAX Chat Integration (again) ;) just let me know if you need any   help.

:)  Actually, I have been thinking   about you.  I have a hidden  forum for some members that have not yet   accepted the forum, they want a chat/shoutbox that is exclusive to them.   In other words, they want to be able to communicate on a private   chat/shout and not have it displayed to the open forum.

From a   untrained, cursory view of the program, it seems that the Ajax was not   intended for this type of function. Is it possible for you to enable   Ajax to be private to a hidden forum while at the same time the open   forum can use Ajax without knowing what is transpiring on the hidden   chat?

Just assign them to a member group and then only give that or those member groups permissions to the chat/shout.

Or if you want everyone to have chat but these people to have their private chat then yes you can do that too. Create a board and give only this special group access to it. AJAX Chat automatically creates a channel that only those members can see. AJAX Chat is specifically intended for this type of feature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 04, 2010, 01:50:55 PM
Quote from: Another Rob on May 04, 2010, 10:58:27 AM
Is there a way to disable the /nick command? I don't want users to be able to change their username to someone elses in the chat room to avoid possible confusion and abuse.

/chat/lib/config.php (change true to false)
// Allow/Disallow users to change their userName (Nickname):
$config = true; change to: $config['allowNickChange'] = true;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: livedown on May 05, 2010, 01:02:26 AM
Hey, this mod is awesome!
I have two questions:
1) Where are the Chat messages stores? text file or Database?
2) How do i prevent the chat messages from getting deleted after a while? Is there an option which i can adjust the time and where is it?

Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 05, 2010, 01:14:39 AM
Quote from: www.livedown.us on May 05, 2010, 01:02:26 AM
Hey, this mod is awesome!
I have two questions:
1) Where are the Chat messages stores? text file or Database?
2) How do i prevent the chat messages from getting deleted after a while? Is there an option which i can adjust the time and where is it?

Thanks!

Glad you like it

1. They're in the Database www.yourforum.com/chat/?view=logs (http://www.yourforum.com/chat/?view=logs)

2. Check out /chat/lib/config.php to set how many messages you want displayed and for how long

3. Check out the ~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) on the Mods Home Page for that info and much more ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on May 05, 2010, 11:29:10 AM
hojla!

Is there a chance to guests see the shoutbox, but they can not shout?

Sorry my english is bad.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jelle Mees on May 05, 2010, 12:36:35 PM
There is a bug. The messages in the shoutbox are getting deleted for some reason. Message Purge is not enabled, so what gives?

This is my shoutbox config.php file:

<?php
/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 */

global $db_prefix;

// Define AJAX Chat user roles:
if (!defined('AJAX_CHAT_CHATBOT'))
define('AJAX_CHAT_CHATBOT', 4);
if (!
defined('AJAX_CHAT_ADMIN'))
define('AJAX_CHAT_ADMIN', 3);
if (!
defined('AJAX_CHAT_MODERATOR'))
define('AJAX_CHAT_MODERATOR', 2);
if (!
defined('AJAX_CHAT_USER'))
define('AJAX_CHAT_USER', 1);
if (!
defined('AJAX_CHAT_GUEST'))
define('AJAX_CHAT_GUEST', 0);

// AJAX Chat config parameters:
$config = array();

// Database connection values:
$config['dbConnection'] = array();
// Database hostname:
$config['dbConnection']['host'] = null;
// Database username:
$config['dbConnection']['user'] = null;
// Database password:
$config['dbConnection']['pass'] = null;
// Database name:
$config['dbConnection']['name'] = null;
// Database type:
$config['dbConnection']['type'] = null;
// Database link:
$config['dbConnection']['link'] = null;

// Database table names:
$config['dbTableNames'] = array();
$config['dbTableNames']['online'] $db_prefix 'ajaxshout_online';
$config['dbTableNames']['messages'] $db_prefix 'ajaxshout_messages';
$config['dbTableNames']['bans'] $db_prefix 'ajaxshout_bans';
$config['dbTableNames']['invitations'] $db_prefix 'ajaxshout_invitations';

// Available languages:
$config['langAvailable'] = array('ar','bg','bp','ca','cz','de','el','en','es','fi','fr','he','hr','in','it','kr','ja','nl','no','pl','ro','ru','sk','sl','sr','sv','tr','uk','zh','zh-tw');
// Default language:
$config['langDefault'] = 'en';
// Language names:
$config['langNames'] = array('ar'=>'عربي','bg'=>'Български','bp'=>'Português (Brasil)','ca'=>'Català','cz'=>'Česky','de'=>'Deutsch','el'=>'Ελληνικα','en'=>'English','es'=>'Español','fi'=>'Suomi','fr'=>'Français','he'=>'עברית','hr' => 'Hrvatski','in'=>'Bahasa Indonesia','it'=>'Italiano','ja'=>'日本語','kr'=>'한글','nl'=>'Nederlands','no'=>'Norsk','pl'=>'Polski','ro'=>'România','ru'=>'Русский','sk'=>'Slovenčina','sl'=>'Slovensko','sr'=>'Srpski','sv'=>'Svenska','tr'=>'Türkçe','uk'=>'Українська','zh'=>'中文 (简体)''zh-tw'=>'中文 (繁體)');

// Available styles:
$config['styleAvailable'] = array('beige','black','grey','Oxygen','Lithium','Sulfur','Cobalt','Mercury','Radium','prosilver','subsilver2','subblack2','subSilver','Core','MyBB','vBulletin');
// Default style:
$config['styleDefault'] = 'Core';

// The encoding used for the XHTML content:
$config['contentEncoding'] = 'UTF-8';
// The encoding of the data source, like userNames and channelNames:
$config['sourceEncoding'] = 'UTF-8';
// The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null):
$config['contentType'] = "text/html";

// Session name used to identify the session cookie:
$config['sessionName'] = 'ajax_shout';
// Prefix added to every session key:
$config['sessionKeyPrefix'] = 'ajaxShout';
// The lifetime of the language, style and setting cookies in days:
$config['sessionCookieLifeTime'] = 365;
// The path of the cookies, '/' allows to read the cookies from all directories:
$config['sessionCookiePath'] = '/';
// The domain of the cookies, defaults to the hostname of the server if set to null:
$config['sessionCookieDomain'] = null;
// If enabled, cookies must be sent over secure (SSL/TLS encrypted) connections:
$config['sessionCookieSecure'] = null;

// Default channelName used together with the defaultChannelID if no channel with this ID exists:
$config['defaultChannelName'] = 'Public';
// ChannelID used when no channel is given:
$config['defaultChannelID'] = 0;
// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
$config['limitChannelList'] = null;

// UserID plus this value are private channels (this is also the max userID and max channelID):
$config['privateChannelDiff'] = 500000000;
// UserID plus this value are used for private messages:
$config['privateMessageDiff'] = 1000000000;

// Enable/Disable private Channels:
$config['allowPrivateChannels'] = true;
// Enable/Disable private Messages:
$config['allowPrivateMessages'] = true;

// Private channels should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['privateChannelPrefix'] = '[';
// Private channels should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['privateChannelSuffix'] = ']';

// If enabled, users will be logged in automatically as guest users (if allowed), if not authenticated:
$config['forceAutoLogin'] = false;

// Defines if login/logout and channel enter/leave are displayed:
$config['showChannelMessages'] = true;

// If enabled, the chat will only be accessible for the admin:
$config['chatClosed'] = false;
// Defines the timezone offset in seconds (-12*60*60 to 12*60*60) - if null, the server timezone is used:
$config['timeZoneOffset'] = null;
// Defines the hour of the day the chat is opened (0 - closingHour):
$config['openingHour'] = 0;
// Defines the hour of the day the chat is closed (openingHour - 24):
$config['closingHour'] = 24;
// Defines the weekdays the chat is opened (0=Sunday to 6=Saturday):
$config['openingWeekDays'] = array(0,1,2,3,4,5,6);

// Enable/Disable guest logins:
$config['allowGuestLogins'] = true;
// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
$config['allowGuestWrite'] = true;
// Allow/Disallow guest users to choose their own userName:
$config['allowGuestUserName'] = true;
// Guest users should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['guestUserPrefix'] = '(';
// Guest users should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['guestUserSuffix'] = ')';
// Guest userIDs may not be lower than this value (and not higher than privateChannelDiff):
$config['minGuestUserID'] = 400000000;

// Allow/Disallow users to change their userName (Nickname):
$config['allowNickChange'] = true;
// Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['changedNickPrefix'] = '(';
// Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace):
$config['changedNickSuffix'] = ')';

// Allow/Disallow registered users to delete their own messages:
$config['allowUserMessageDelete'] = true;

// The userID used for ChatBot messages:
$config['chatBotID'] = 2147483647;
// The userName used for ChatBot messages
$config['chatBotName'] = 'ChatBot';

// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;

// Defines if messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = true;
// Defines an array of channelIDs (e.g. array(0, 1)) for which the previous setting is always true (will be ignored if set to null):
$config['requestMessagesPriorChannelEnterList'] = null;
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;

// Max users in chat (does not affect moderators or admins):
$config['maxUsersLoggedIn'] = 100;
// Max userName length:
$config['userNameMaxLength'] = 16;
// Max messageText length:
$config['messageTextMaxLength'] = 1040;
// Defines the max number of messages a user may send per minute:
$config['maxMessageRate'] = 20;

// Defines the default time in minutes a user gets banned if kicked from a moderator without ban minutes parameter:
$config['defaultBanTime'] = 5;

// Argument that is given to the handleLogout JavaScript method:
$config['logoutData'] = './?logout=true';

// If true, checks if the user IP is the same when logged in:
$config['ipCheck'] = true;

// Defines the max time difference in hours for logs when no period or search condition is given:
$config['logsRequestMessagesTimeDiff'] = 1;
// Defines how many logs are returned on each logs request:
$config['logsRequestMessagesLimit'] = 10;

// Defines the earliest year used for the logs selection:
$config['logsFirstYear'] = 2007;

// Defines if old messages are purged from the database:
$config['logsPurgeLogs'] = false;
// Max time difference in days for old messages before they are purged from the database:
$config['logsPurgeTimeDiff'] = 365;

// Defines if registered users (including moderators) have access to the logs (admins are always granted access):
$config['logsUserAccess'] = false;
// Defines a list of channels (e.g. array(0, 1)) to limit the logs access for registered users, includes all channels the user has access to if set to null:
$config['logsUserAccessChannelList'] = null;

// Defines if the socket server is enabled:
$config['socketServerEnabled'] = false;
// Defines the hostname of the socket server used to connect from client side (the server hostname is used if set to null):
$config['socketServerHost'] = null;
// Defines the IP of the socket server used to connect from server side to broadcast update messages:
$config['socketServerIP'] = '127.0.0.1';
// Defines the port of the socket server:
$config['socketServerPort'] = 1935;
// This ID can be used to distinguish between different chat installations using the same socket server:
$config['socketServerChatID'] = 0;
?>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on May 05, 2010, 11:14:00 PM
Quote from: mrtrc266 on May 04, 2010, 12:36:34 PM
Quote from: Lou69
Quote from: mrtrc266
Seems like   an easy $1,000 to me  ;D

Just kidding, when you get   to the AJAX Chat Integration (again) ;) just let me know if you need any   help.

:)  Actually, I have been thinking   about you.  I have a hidden  forum for some members that have not yet   accepted the forum, they want a chat/shoutbox that is exclusive to them.   In other words, they want to be able to communicate on a private   chat/shout and not have it displayed to the open forum.

From a   untrained, cursory view of the program, it seems that the Ajax was not   intended for this type of function. Is it possible for you to enable   Ajax to be private to a hidden forum while at the same time the open   forum can use Ajax without knowing what is transpiring on the hidden   chat?

Just assign them to a member group and then only give that or those member groups permissions to the chat/shout.

Or if you want everyone to have chat but these people to have their private chat then yes you can do that too. Create a board and give only this special group access to it. AJAX Chat automatically creates a channel that only those members can see. AJAX Chat is specifically intended for this type of feature.

I had already done as you suggested,  :)  the real problem lies with my not fully understanding the capability of the AJAX software.    :-[  It all was really so simply, all the members needed to do was to select the channel for their hidden forum. I had completely missed that option as had they.

Thanks for your help,

Lou

:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 06, 2010, 01:06:20 AM
Quote from: rocknroller on May 05, 2010, 11:29:10 AM
hojla!

Is there a chance to guests see the shoutbox, but they can not shout?

Sorry my english is bad.
Quote from: rocknroller on May 05, 2010, 11:29:10 AM
hojla!

Is there a chance to guests see the shoutbox, but they can not shout?

Sorry my english is bad.

There is a permission to "View shoutBox" but I see it's not working in RC3, will have to look into that?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 06, 2010, 01:10:13 AM
Quote from: Jelle Mees on May 05, 2010, 12:36:35 PM
There is a bug. The messages in the shoutbox are getting deleted for some reason. Message Purge is not enabled, so what gives?

Are the really being deleted or are they just not staying visible for very long? To see if they're really being deleted check the logs http://yoursite.org/chat/?view=logs

Check these settings here, this will show how many messages to display on each login and for how long they will stay
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 06, 2010, 01:12:31 AM
@ Lou69

Glad you got it sorted and it will suit your needs, post back if you need anymore help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on May 06, 2010, 01:52:26 PM
Quote from: rocknroller on May 05, 2010, 11:29:10 AM
hojla!

Is there a chance to guests see the shoutbox, but they can not shout?

Sorry my english is bad.

There is a permission to "View shoutBox" but I see it's not working in RC3, will have to look into that?
[/quote]

I am using RC2. This mod is great, thank you. Where can I find out if you solve this problem?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Another Rob on May 06, 2010, 04:12:54 PM
Thanks! Is there a way to let folks know you're away? On our old chat you could set it as BRB, Away, etc. We've been just changing names from username to username_away but I don't want folks abusing it. It even let me change my nick to one that was already in the chat room.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Scarecrow7170 on May 06, 2010, 10:41:16 PM
Hello there.. We finally got this to work on our forum.. However I do have one question.

Is there any way to make the typed text larger? Im sure there is.. but where would I find it?  its so tiny... lol ok that's 2 questions
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 07, 2010, 12:35:37 AM
Quote from: rocknroller on May 06, 2010, 01:52:26 PM
Quote from: rocknroller on May 05, 2010, 11:29:10 AM
hojla!

Is there a chance to guests see the shoutbox, but they can not shout?

Sorry my english is bad.

There is a permission to "View shoutBox" but I see it's not working in RC3, will have to look into that?

I am using RC2. This mod is great, thank you. Where can I find out if you solve this problem?
[/quote]

It will be posted here or more than likely added to the next version. Hope you enjoy the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 07, 2010, 12:37:37 AM
Quote from: Another Rob on May 06, 2010, 04:12:54 PM
Thanks! Is there a way to let folks know you're away? On our old chat you could set it as BRB, Away, etc. We've been just changing names from username to username_away but I don't want folks abusing it. It even let me change my nick to one that was already in the chat room.

To add the AFK command take a look at this...
http://www.simplemachines.org/community/index.php?topic=257973.msg2605398#msg2605398

To disable the /nick command here you go...
http://www.simplemachines.org/community/index.php?topic=257973.msg2613237#msg2613237
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 07, 2010, 12:47:57 AM
Quote from: Scarecrow7170 on May 06, 2010, 10:41:16 PM
Hello there.. We finally got this to work on our forum.. However I do have one question.

Is there any way to make the typed text larger? Im sure there is.. but where would I find it?  its so tiny... lol ok that's 2 questions

For the Shout Box
/chat/css/shoutbox.css , look for the code below this and you'll see.
/*
* Fonts
*/


For the Chat Room
chat/css/yourstyle.css (there are many styles so you'll have to edit each one of them or at least the ones you make available in the /chat/lib/congif.php file). You will have to add the size to the sections you want to change the size.

EXAMPLE:
Find
   #content .guest {
      color:gray;

Replace with
   #content .guest {
      color:gray;
      font-size:0.9em;
   }


That should get you started, I hope  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Another Rob on May 07, 2010, 12:43:54 PM
Hi mrtrc266,

thanks for the links! I have no idea where I'm going wrong, I think it may be because i have a /takeover mod already done to the CustomAJAXChat.php and get an error when I try to add the /afk code

here's the end of the file where I'm supposed to add the /afk code (its commented out due to the errors it was producing) Any idea what I need to do to get this to work?

Quotesetcookie(
                        $this->getConfig('sessionName').'_style',
                        $styleName,
                        time()+60*60*24*$this->getConfig('sessionCookieLifeTime'),
                        $this->getConfig('sessionCookiePath'),
                        $this->getConfig('sessionCookieDomain'),
                        $this->getConfig('sessionCookieSecure')
                );
                return;
        }
// Add custom commands
function parseCustomCommands($text, $textParts) {
  switch($textParts[0]) {
    case '/takeover':
    $this->insertChatBotMessage( $this->getChannel(), $text);
    return true;
    default:
    return false;
}
}
//function parseCustomCommands($text, $textParts) {
  //switch($textParts[0]) {

         // Away from keyboard message:
//         case '/afk':
         // Set the userName:
//        $this->setUserName('<AFK>_'.$this->getUserName());
         // Update the online user table:
//         $this->updateOnlineList();
         // Add info message to update the client-side stored userName:
//         $this->addInfoMessage($this->getUserName(), 'userName');
         // Store AFK status as session variable:
//         $this->setSessionVar('AwayFromKeyboard', true);
//         return true;
//         default:
//        return false;
      }
?>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: macieks on May 07, 2010, 12:47:35 PM
hello

I have problem in my chat

in one member I and other see numbers in nick instead nick

is:

(20:03:31) (291716): massage

what is problem?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 07, 2010, 12:49:24 PM
The numbers represent the guests in chat NOT the members.

Title: Re: AjaxChat Integration
Post by: Scarecrow7170 on May 07, 2010, 01:21:09 PM
Quote from: mrtrc266 on May 05, 2009, 12:00:12 PM
Please try setting your file permissions explained here, event though your not getting the 500 error make sure your chat/index.php and shoutbox.index.php are set to 755.

~~~AJAX Chat Intergration FAQ's & Tips-N-Tricks~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)


12029 - A connection with the server could not be established
12031 - The connection with the server was reset

We too have gotten the connection error 12031

Not all of us but one of us gets it every time.. whats causing this & how might we fix it?

Thank you for your time & patience

PS - Thank you for the font size information
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JakeArgent on May 07, 2010, 03:02:15 PM
Hello guys, I have question about this:

I want to move the shoutbox to the lower parts of the page, but I've been unable to find the necessary code parts to do so. My preffered place is just above the info center. How can I do that?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pointalk on May 07, 2010, 10:29:02 PM
solved
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 07, 2010, 10:52:34 PM
Quote from: pointalk on May 07, 2010, 10:29:02 PM
ChatBot: Error: Connection status: 500

SMF 1.1.11
How to fix it?

How to fix it is to PLLLLEEEEEAAAAASSSE!!!!!!!!!!!!!! Read the FAQ's on the Mod's Home Page.....HUGE PURPLE LETTERS THAT SAY FAQ'S, YOU CAN'T MISS IT!!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Scarecrow7170 on May 07, 2010, 11:29:38 PM
Regarding my last message - Found out it was a computer problem.. reformatted & now working great.

Thank you again
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 07, 2010, 11:30:39 PM
Quote from: Scarecrow7170 on May 07, 2010, 11:29:38 PM
Regarding my last message - Found out it was a computer problem.. reformatted & now working great.

Thank you again

Glad you got it sorted, enjoy the Mod :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pointalk on May 08, 2010, 03:40:33 AM
Let ShoutBox position before Info Center.
What should i do?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 08, 2010, 11:01:17 AM
Quote from: pointalk on May 08, 2010, 03:40:33 AM
Let ShoutBox position before Info Center.
What should i do?

Again this has also been covered before.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 12:02:12 PM
@ Rob

You have this code in there twice, I know that's what the tuts say but once this function is in there that's all you need. Then just add the commands.
// Add custom commands
function parseCustomCommands($text, $textParts) {
  switch($textParts[0]) {


The end of your /chat/lib/class/CustomAJAXChat.php file should look like this which has both the Takeover and AFK commands.
function parseCustomCommands($text, $textParts) {
      switch($textParts[0]) {
         // Away from keyboard message:
         case '/afk':
            // Set the userName:
            $this->setUserName('<AFK>_'.$this->getUserName());
            // Update the online user table:
            $this->updateOnlineList();
            // Add info message to update the client-side stored userName:
            $this->addInfoMessage($this->getUserName(), 'userName');
            // Store AFK status as session variable:
            $this->setSessionVar('AwayFromKeyboard', true);
            return true;
         default:
            return false;
   case '/away':
      $this->insertChatBotMessage($this->getChannel(), $this->getLoginUserName().' has set their status to Away');
      $this->setUserName($this->getLoginUserName().'[Away]');
      $this->updateOnlineList();
      $this->addInfoMessage($this->getUserName(), 'userName');
      return true;
   case '/online':
      $this->insertChatBotMessage($this->getChannel(), $this->getLoginUserName().' has set their status to Online');
      $this->setUserName($this->getLoginUserName());
      $this->updateOnlineList();
      $this->addInfoMessage($this->getUserName(), 'userName');
      return true;
  case '/takeover':
   $this->insertChatBotMessage( $this->getChannel(), $text );
         return true;
      default:
         false;
      }
   }

   function onNewMessage($text) {
      // Reset AFK status on first inserted message:
      if($this->getSessionVar('AwayFromKeyboard')) {
         $this->setUserName($this->subString($this->getUserName(), 6));
         $this->updateOnlineList();
         $this->addInfoMessage($this->getUserName(), 'userName');
         $this->setSessionVar('AwayFromKeyboard', false);
      }
      return true;
   }
}
?>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JakeArgent on May 08, 2010, 12:34:45 PM
Quote from: Brack1 on May 08, 2010, 11:01:17 AM
Quote from: pointalk on May 08, 2010, 03:40:33 AM
Let ShoutBox position before Info Center.
What should i do?
Again this has also been covered before.

I searched by using the search function, but only message relevant to word "shoutbox" was your message. For the word "shout" there was again only one message and it's about changing the font size.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: harry66 on May 08, 2010, 12:38:14 PM
Hello,

i have a Problem. When i want to install the mod for other Themes, it says me the following Error:


Find:

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


Add before:

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



But in the index.template.php of my Costum Theme i only find this part:

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';

echo '
</form>
</div>
<div id="time">
', $context['current_time'],'
</div>
<div id="userarea">';
if($context['user']['is_logged'])
{
echo '<div class="loggedin">',$txt['hello_member'] , ' <strong>' , $context['user']['name'] , '</strong>';


so i cannot enter the necessary code? :o

By the way it is 2.0 RC3


regards
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 01:18:49 PM
Quote from: JakeArgent on May 08, 2010, 12:34:45 PM
Quote from: Brack1 on May 08, 2010, 11:01:17 AM
Quote from: pointalk on May 08, 2010, 03:40:33 AM
Let ShoutBox position before Info Center.
What should i do?
Again this has also been covered before.

I searched by using the search function, but only message relevant to word "shoutbox" was your message. For the word "shout" there was again only one message and it's about changing the font size.

It's in the FAQ's "Relocate your ShoutBox for 3.X"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JakeArgent on May 08, 2010, 01:27:47 PM
Quote from: mrtrc266 on May 08, 2010, 01:18:49 PM
Quote from: JakeArgent on May 08, 2010, 12:34:45 PM
Quote from: Brack1 on May 08, 2010, 11:01:17 AM
Quote from: pointalk on May 08, 2010, 03:40:33 AM
Let ShoutBox position before Info Center.
What should i do?
Again this has also been covered before.

I searched by using the search function, but only message relevant to word "shoutbox" was your message. For the word "shout" there was again only one message and it's about changing the font size.

It's in the FAQ's "Relocate your ShoutBox for 3.X"

Thank you!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 01:51:07 PM
@ harry what theme are you using?

Also, i just noticed your post here http://www.simplemachines.org/community/index.php?topic=380417.msg2619107#msg2619107

Did you install the Chat from here  https://blueimp.net/ajax/ (https://blueimp.net/ajax/) or this AjaxChat Integration (http://custom.simplemachines.org/mods/index.php?mod=1319)?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: harry66 on May 08, 2010, 02:15:25 PM
I'm using "urban" from Dzinerstudio (http://demo.dzinerstudio.com/ -> SMF 2.0 Themes "Urban [Premium])

Quote from: mrtrc266 on May 08, 2010, 01:51:07 PM
Did you install the Chat from here  https://blueimp.net/ajax/ (https://blueimp.net/ajax/) or this AjaxChat Integration (http://custom.simplemachines.org/mods/index.php?mod=1319)?

I tried both. But the Error Message i posted above was from AjaxChat Integration Mod.
The Chat from the Homepage blueimp.net was working, but i don't got it to integrate as a shoutbox on the Main Page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 08, 2010, 02:17:24 PM
think you should change the description for this mod
it says This mod WILL install AjaxChat on your smf.
when it obviously doesn't
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CanadianIce on May 08, 2010, 02:18:57 PM
I tried this out on my forum, and I just wanted to say "Thanks!"

Works great, and my members love it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 02:27:10 PM
Quote from: adbrad on May 08, 2010, 02:17:24 PM
think you should change the description for this mod
it says This mod WILL install AjaxChat on your smf.
when it obviously doesn't

Obviously it WILL as it's been installed on 1,000's of Forums. EVERY mod is made to install on a fresh install of SMF for ONLY the default Theme. If you have other Mods installed and/or a custom theme then it could possibly require so manual edits, just like it says in the FAQ's (HUGE PURPLE LETTERS that say ~~~FAQ~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)) on the Mods Home Page and on the very first post of this thread.

Anyway what seems to be the problem you're having?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 02:29:52 PM
Quote from: CanadianIce on May 08, 2010, 02:18:57 PM
I tried this out on my forum, and I just wanted to say "Thanks!"

Works great, and my members love it.

Very glad you like it...Enjoy :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 08, 2010, 02:45:47 PM
when i go to chat all i get is A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 02:48:53 PM
Quote from: adbrad on May 08, 2010, 02:45:47 PM
when i go to chat all i get is A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.

And you've set the file permissions for /chat/index.php and /shoutBox/index.php to 755 ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 02:52:21 PM
Quote from: harry66 on May 08, 2010, 02:15:25 PM
I'm using "urban" from Dzinerstudio (http://demo.dzinerstudio.com/ -> SMF 2.0 Themes "Urban [Premium])

Quote from: mrtrc266 on May 08, 2010, 01:51:07 PM
Did you install the Chat from here  https://blueimp.net/ajax/ (https://blueimp.net/ajax/) or this AjaxChat Integration (http://custom.simplemachines.org/mods/index.php?mod=1319)?

I tried both. But the Error Message i posted above was from AjaxChat Integration Mod.
The Chat from the Homepage blueimp.net was working, but i don't got it to integrate as a shoutbox on the Main Page.

Cool, I have that theme, please make sure you have the AJAX Chat Integration installed and I'll post the edits in a little bit.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 08, 2010, 02:57:06 PM
Quote from: mrtrc266 on May 08, 2010, 02:48:53 PM
Quote from: adbrad on May 08, 2010, 02:45:47 PM
when i go to chat all i get is A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.

And you've set the file permissions for /chat/index.php and /shoutBox/index.php to 755 ?
yes they are both set
i'm using rc3 incase that helps
problem solved i set the chat folder to 755 also and all seems to be working
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 03:03:56 PM
Quote from: adbrad on May 08, 2010, 02:57:06 PM
Quote from: mrtrc266 on May 08, 2010, 02:48:53 PM
Quote from: adbrad on May 08, 2010, 02:45:47 PM
when i go to chat all i get is A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.

And you've set the file permissions for /chat/index.php and /shoutBox/index.php to 755 ?
yes they are both set
i'm using rc3 incase that helps

Can you post a link to the site you're installing this on? I see you have Flash Chat on your lab lovers site.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 08, 2010, 03:12:59 PM
Quote from: adbrad on May 08, 2010, 02:57:06 PM
Quote from: mrtrc266 on May 08, 2010, 02:48:53 PM
Quote from: adbrad on May 08, 2010, 02:45:47 PM
when i go to chat all i get is A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.

And you've set the file permissions for /chat/index.php and /shoutBox/index.php to 755 ?
yes they are both set
i'm using rc3 incase that helps
problem solved i set the chat folder to 755 also and all seems to be working


guess you missed the edit
i trying it on www.caringforhuskies.com/forum3
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: harry66 on May 08, 2010, 03:22:41 PM
Quote from: mrtrc266 on May 08, 2010, 02:52:21 PM
Quote from: harry66 on May 08, 2010, 02:15:25 PM
I'm using "urban" from Dzinerstudio (http://demo.dzinerstudio.com/ -> SMF 2.0 Themes "Urban [Premium])

Quote from: mrtrc266 on May 08, 2010, 01:51:07 PM
Did you install the Chat from here  https://blueimp.net/ajax/ (https://blueimp.net/ajax/) or this AjaxChat Integration (http://custom.simplemachines.org/mods/index.php?mod=1319)?

I tried both. But the Error Message i posted above was from AjaxChat Integration Mod.
The Chat from the Homepage blueimp.net was working, but i don't got it to integrate as a shoutbox on the Main Page.

Cool, I have that theme, please make sure you have the AJAX Chat Integration installed and I'll post the edits in a little bit.

Yep, i have uploaded it. I just need the right changes on index.template.php from the Costum Template
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 03:47:55 PM
Quote from: adbrad on May 08, 2010, 02:17:24 PM
think you should change the description for this mod
it says This mod WILL install AjaxChat on your smf.
when it obviously doesn't
Quote from: adbrad on May 08, 2010, 02:45:47 PM
problem solved i set the chat folder to 755 also and all seems to be working

Huh?

LOL glad you got it sorted, enjoy the Mod :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 08, 2010, 03:52:03 PM
Quote from: mrtrc266 on May 08, 2010, 03:47:55 PM

LOL glad you got it sorted, enjoy the Mod :)

just need to figure out how to configure it now
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 04:17:22 PM
Quote from: adbrad on May 08, 2010, 03:52:03 PM
Quote from: mrtrc266 on May 08, 2010, 03:47:55 PM

LOL glad you got it sorted, enjoy the Mod :)

just need to figure out how to configure it now

chat/lib/config.php is where all the primary settings are at
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 04:18:18 PM
Quote from: harry66 on May 08, 2010, 02:15:25 PM
I'm using "urban" from Dzinerstudio (http://demo.dzinerstudio.com/ (http://demo.dzinerstudio.com/) -> SMF 2.0 Themes "Urban [Premium])

Here you go http://ajcintegration.co.cc/index.php?topic=30 (http://ajcintegration.co.cc/index.php?topic=30)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: harry66 on May 08, 2010, 04:57:55 PM
Thanks its working now. But can i disable the "Chat" Button + Chat? I only want to use the Shoutbox.


I get an Error when i post a message in Chat and then reload the Forum

Fatal error: Function name must be a string in /xxxx/forum/Sources/BoardIndex.php  on line 146

//ajax chat start
$userIDs = chatOnlineUsers();
$context['chat_links'] = array();
if (count($userIDs) > 0){
if (count($userIDs) == 1){
$result = $smcFunc['db_query']('', '
SELECT mem.ID_MEMBER, mem.real_name, mem.ID_GROUP, mg.online_color, mg.ID_GROUP
FROM {db_prefix}members AS mem
LEFT JOIN {db_prefix}membergroups AS mg ON
(mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP)) WHERE mem.ID_MEMBER = {int:the_id}' ,

array(
'the_id' => $userIDs[0],
      )
);
}else{
$result = $smcFunc['db_query']('', '
SELECT mem.ID_MEMBER, mem.real_name, mem.ID_GROUP, mg.online_color, mg.ID_GROUP
FROM {db_prefix}members AS mem
LEFT JOIN {db_prefix}membergroups AS mg ON
(mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP)) WHERE mem.ID_MEMBER IN ({array_int:the_ids})',

array( 'the_ids' => $userIDs,
       )
);
} while ($row =$smcFunc['db_fetch_assoc']($result))
{
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
if($row['online_color'] != ""){
$link.= '" style="color: ' . $row['online_color'];
}
$link.= '">' . $row['real_name'] . '</a>';
array_push($context['chat_links'], $link);
}
$smcFunc['db_free_result']($result);
}
//set the flag true for home page
$context['chat_isHome'] = true;
//end ajax chat


that is line 146:
$result = $smcFunc['db_query']('', '

I only get this error when i post a message in Chat. When i just have it open, nothing happens.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 05:07:09 PM
Quote from: harry66 on May 08, 2010, 04:57:55 PM
Thanks its working now. But can i disable the "Chat" Button + Chat? I only want to use the Shoutbox.

Glad you got it going.

You can't disable the chat cuz that's what runs the shout box but you can remove the button.

Go to /yoursite/index.php?action=admin;area=modsettings;sa=chat and uncheck "Enable online chat users numbering on chat button"

Then Open, Find and Remove the following...

/Sources/Subs.php
   $num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
   $chatButton = 'Chat';
   $chatButton .= ($num > 0) ?  ('('.$num.')') : '';
   $chatLink = str_replace("index.php", "chat/index.php", $scripturl);
   if (!empty($modSettings['chatPopUp']))
      $chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';

And
         'chat' => array(
         'title' => $chatButton,
         'href' => $chatLink,
         'show' => true,
         'sub_buttons' => array(
         ),
      ),
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 08, 2010, 05:16:27 PM
Adbrad

Let me know when you are ready for the edits and I will give ya a hleping paw er I mean a hand.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 05:45:01 PM
@ Harry, attach that file please
Title: Removing Chat button from registration/login page?
Post by: Lou69 on May 08, 2010, 06:05:26 PM
I searched this thread and did not see this covered, apologies if it has been.

No guest accounts are available, so the login/registration screen is first seen.

The Chat button appears between Help and Login. I would like to remove this button from being dispayed. I still want chat to work in other areas and for the Chat button to be visible in the other areas, just do not need this Chat button visible at the login page.

I am using a custom theme, RGBB Curves from Crip.

thanks,

Lou



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on May 08, 2010, 06:18:17 PM
@Lou69: Would help to know what version of SMF you're using. The code's totally different between SMF 1.1.x and 2.0. If you're restricting it on the login page, what about the registration page? In fact, what about whether users are logged in generally?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 06:31:55 PM
QuoteNo guest accounts are available, so the login/registration screen is first seen.
As stated in the FAQ's set permissions to allow guests to access chat

QuoteThe Chat button appears between Help and Login. I would like to remove this button from being dispayed. I still want chat to work in other areas and for the Chat button to be visible in the other areas, just do not need this Chat button visible at the login page.

What Arantor said LOL

I'm not even sure if you can set it to show on a per page basis, from my under standing it's either in the menu or not, but you can remove it / disable it entirely or make it visible on a member group basis.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on May 08, 2010, 06:34:04 PM
Well, actually you can make it on a per page basis with a little work, but it depends more on what version of SMF as to how easy it is.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 06:39:58 PM
Ahhh very nice, will need some help with that one, I wouldn't have a clue
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on May 08, 2010, 06:44:27 PM
Really, it's just PHP, meaning you can trigger it off anything in SMF if you so desire, it's just a case of knowing what to check against. Button visibility is really quite easy in the scheme of things in either version. In 1.1 you just preface the new echo with an if(), in 2.0 you just attach the condition you'd be checking in the if() into 'show' => (condition) in Subs.php.

There's no reason you even have to check normal SMF stuff; in SimpleDesk we have this mean ol' entry for example:
'show' => $modSettings['helpdesk_active'] && shd_allowed_to(array('access_helpdesk', 'admin_helpdesk')),

I've just realised that with the new permissions it doesn't actually need both to be checked now, but the principle holds - you can do anything to check, provided that it returns true or false at the end (or, at least, it's something that can be cast to true/false)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: harry66 on May 08, 2010, 07:06:11 PM
Quote from: mrtrc266 on May 08, 2010, 05:45:01 PM
@ Harry, attach that file please

done.


other question:
Why do Co-Admins or Mods have the same Color as normal Members in Shoutbox? Just the Admin is red. Groups with moderation rights are green in shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 08, 2010, 07:18:03 PM
Here you go, you didn't add to this $smcFunc; to the end of this line.
function BoardIndex()
{
    global $txt, $user_info, $sourcedir, $modSettings, $context, $settings, $scripturl, $smcFunc;


AJAX Chat doesn't integrate Membergroup Colors, it would be AWESOME if it did though.

You have to set the colors for Chat Bot, Guest, Mods, Users and Admins in /chat/css/yourstyle.css and chat/css/shoutbox.css

In yourstyle.css look for
#content .guest

In shoutbox.css look for
#ajaxChatContent .guest
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on May 08, 2010, 07:51:29 PM
Sorry Guys, tried posting twice, but had power failures. Storms in areas. 

My version is 2.0 RC3.  I did go back and check the permissions, the Guest account cannot browse forums and the permissions for Guest were all none/not enabled.

While Guest cannot browse, when on the initial login page, registration agreement or registration form page; the Chat button is visible and can be used to pop up chat box. User obviously cannot login as guest has no viable account. I just want to remove the visibility of Chat button those three pages. I would rather user not access chat unless already logged into via normal method.

Sorry for poor explanation the first time.  :)

thanks,

Lou


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on May 08, 2010, 08:04:26 PM
Nice easy one.

Subs.php
Code (find) Select
'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),


Replace with:
Code (find) Select
'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => allowedTo('chat_access'),
'sub_buttons' => array(
),
),


That makes it driven from the permission, so if they have permission to access the chat, it shows the link.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pointalk on May 08, 2010, 08:10:39 PM
Moderate shoutBox without √.
But member still can delete own shout message?
How to disable it?

And i need this feature: member can only edit own chat message
SMF1.1.11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on May 09, 2010, 12:46:08 AM
Quote from: Arantor on May 08, 2010, 08:04:26 PM
Nice easy one.

Subs.php
Code (find) Select
'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),


Replace with:
Code (find) Select
'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => allowedTo('chat_access'),
'sub_buttons' => array(
),
),


That makes it driven from the permission, so if they have permission to access the chat, it shows the link.



You are an absolute genius! The fact that visiblity is driven by Permission is much more secure and cleaner than just having the button invisible. It works like a charm and was exactly what I needed.

Thank you so very much good sir. 

Lou

:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: psyxeon on May 09, 2010, 04:52:59 AM
I relocated the shoutbox, but now i have no idea how to add padding to it.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2F29wu0de.jpg&hash=cb95867422b681da3445af682f054f4570e65eb6)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 09, 2010, 03:10:13 PM
@ psyxeon

Upload this Shout.template.php to your /Themes/default/

Then find
/chat/css/shoutbox.css
/*
* Positioning
*/

Add After
#sb {
    padding-left:9px;
    padding-right:9px;
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: psyxeon on May 09, 2010, 04:35:56 PM
Thanks a lot mate!
We fixed it writing

Let me try your fix  ;)

Quote

index.template.php

echo '<br class="clear">
<div id="shoutbox_wrapper">';
template_shout_above();
echo '</div>';

index.css

#shoutbox_wrapper
{
padding: 1em;
/*margin: 0 10px;*/
}



We have a big spacing between the link tree and the shout box, any quick fix?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2Fjb0i7b.jpg&hash=a7e28f5e7e03a5c9e6bd20f4d02fd0bd493af19d)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 09, 2010, 04:59:24 PM
What was the result of what I posted above?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: psyxeon on May 09, 2010, 06:05:49 PM
The same  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 09, 2010, 06:52:29 PM
Quote from: psyxeon on May 09, 2010, 06:05:49 PM
The same  ;)

In the pic it looks like the padding on the left and right are ok now?

I think we might be conflicting with <div id="shoutbox_wrapper"> in your index.template and the <div id="sb"> in the Shout.template.php

Get rid of this in your index.css
#shoutbox_wrapper
{
   padding: 1em;
   /*margin: 0 10px;*/
}


In your index.template.php
Find
        // Relocate shoutbox using this code by omg_noob
       
        echo '<br class="clear">
            <div id="shoutbox_wrapper">';
        template_shout_above();
        echo '</div>';
       
    //Below the menu ads
    if (function_exists("show_indexAds"))
    {
        $ads = show_indexAds();   
        if(!empty($ads))
            if($ads['type']==0)
                echo $ads['content'];
            else
                eval($ads['content']);
        unset($ads);
    }   
       


    echo '
            <br class="clear" />';

        // Show the navigation tree.

Replace with
      // Relocate shoutbox using this code by omg_noob
     
      echo '<br class="clear">';

      template_shout_above();
       
    //Below the menu ads
    if (function_exists("show_indexAds"))
    {
        $ads = show_indexAds();   
        if(!empty($ads))
            if($ads['type']==0)
                echo $ads['content'];
            else
                eval($ads['content']);
        unset($ads);
    }   

        // Show the navigation tree.


The you can add some top and bottom padding in the chat/css/shoutbox.css
#sb {
    padding-left:9px;
    padding-right:9px;
    padding-bottom ?px;
    padding-bottom ?px;
}


Hopefully that does it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: psyxeon on May 09, 2010, 07:38:58 PM
Thx for you help.

It does work like a charm but the spacing is there.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi44.tinypic.com%2F9sqiwj.jpg&hash=7fe1630fcd5b0bd8a86587d9129f8c53e7e82fac)

Not a big deal. "just weird"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 09, 2010, 07:51:38 PM
Attach your index.template 1 more time with what you have there please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 09, 2010, 08:46:05 PM
Custom Member Groups & Colors in Chat Room and Shout Box (So far this will add one (1) Custom member Group)

A couple minor tweaks from AJAX Chat Wiki's tut for phpBB3 (http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=PhpBB3_custom_user_group)

Take note of what's edited below to add more Member Groups, this will get you started. You can change all instances of "VIP' to what you like and also take note of the colors used in this tutorial, change the color code to the color code of the Member Group you're adding.

Find /chat/lib/config.php
// Define AJAX Chat user roles:
Replace with
// Define AJAX Chat user roles:
if(!defined('AJAX_CHAT_VIP'))
    define('AJAX_CHAT_VIP',         5);


Find /chat/lib/class/CustomAJAXChat.php
      // Check if we have a valid registered user:
      if($userData['chat_access']) {
         if ($context['user']['is_guest'])
            return $this->getGuestUser($userData);
         else{   
            $userData['userID'] = $context['user']['id'];
               
            $userData['userName'] = $this->trimUserName($context['user']['name']);
     
            if($context['user']['is_admin'])
               $userData['userRole'] = AJAX_CHAT_ADMIN;
            elseif(allowedTo('chat_mod'))
               $userData['userRole'] = AJAX_CHAT_MODERATOR;
            else
               $userData['userRole'] = AJAX_CHAT_USER;

         return $userData;
         }
      }else
         return null;   

Replace with (Thank you Yağız... (http://www.simplemachines.org/community/index.php?action=profile;u=102749) for your help.)
      // Check if we have a valid registered user:
      if($userData['chat_access']) {
         if ($context['user']['is_guest'])
            return $this->getGuestUser($userData);
         else{   
            $userData['userID'] = $context['user']['id'];
               
            $userData['userName'] = $this->trimUserName($context['user']['name']);
     
            if($context['user']['is_admin'])
               $userData['userRole'] = AJAX_CHAT_ADMIN;
            elseif(allowedTo('chat_mod'))
               $userData['userRole'] = AJAX_CHAT_MODERATOR;
            else
            {
               // Check if we have a member of our custom user group
               if(in_array(9, $user_info['groups']))
                  $userData['userRole'] = AJAX_CHAT_VIP;
               else
                  $userData['userRole'] = AJAX_CHAT_USER;
            }

         return $userData;
         }
      }else
         return null;


Find /chat/lib/class/AJAXChat.php
($this->getUserRole() == AJAX_CHAT_MODERATOR || $this->getUserRole() == AJAX_CHAT_USER))
Replace with
($this->getUserRole() == AJAX_CHAT_MODERATOR || $this->getUserRole() == AJAX_CHAT_VIP || $this->getUserRole() == AJAX_CHAT_USER))
Find
if($userData['userRole'] == AJAX_CHAT_USER || $userData['userRole'] == AJAX_CHAT_MODERATOR || $userData['userRole'] == AJAX_CHAT_ADMIN) {
Replace with
if($userData['userRole'] == AJAX_CHAT_USER || $this->getUserRole() == AJAX_CHAT_VIP || $userData['userRole'] == AJAX_CHAT_MODERATOR || $userData['userRole'] == AJAX_CHAT_ADMIN) {
Find
} else if($this->getUserRole() == AJAX_CHAT_USER && $this->getConfig('allowUserMessageDelete')) {
Replace with
} else if(($this->getUserRole() == AJAX_CHAT_USER || $this->getUserRole() == AJAX_CHAT_VIP) && $this->getConfig('allowUserMessageDelete')) {

Find /chat/js/chat.js
if(this.userRole == 1 || this.userRole == 2 || this.userRole == 3) {
Replace with
if(this.userRole == 1 || this.userRole == 2 || this.userRole == 3 || this.userRole == 5) {
Find
if((((this.userRole == 1 && this.allowUserMessageDelete && (userID == this.userID ||
Replace with
if(((((this.userRole == 1 || this.userRole == 5) && this.allowUserMessageDelete && (userID == this.userID ||
Find
return 'chatBot';
Add after
            case 5:
                return 'vip';


Find /chat/css/font.css
#content #chatList span.moderator {
Add before
#content #chatList span.vip {
    font-weight:bold;
}


Find /chat/css/[STYLE_NAME].css (Do this for every style you use)
#content .moderator {
Add before
    #content .vip {
        color: #660099;
    }


Find /chat/css/print.css
#content .moderator {
        color:#00AA00;

Add before
    #content .vip {
        color: #660099;
    }


Find /chat/css/shoutbox.css
#ajaxChatContent #ajaxChatChatList span.moderator {
Add before
#ajaxChatContent #ajaxChatList span.vip {
    font-size: 0.9em;
    font-weight: bold;
}

Find
#ajaxChatContent .moderator {
Add before
#ajaxChatContent .vip {
    color: #660099;
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 09, 2010, 08:50:58 PM
Hey mrt has it been tested? Can we see it working?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 09, 2010, 09:13:21 PM
Quote from: Brack1 on May 09, 2010, 08:50:58 PM
Hey mrt has it been tested? Can we see it working?

Yeah it's been tested and it seems to be working HERE (http://ajcintegration.co.cc/index.php).

The member "test" is in Member Group #9 as in the tutorial and his color in the Member Group is set to  #660099 as in the Tutorial as well.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 09, 2010, 09:19:56 PM
That is great news and  see the post reply notification works too.

*Looks for the edit*
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 09, 2010, 09:25:36 PM
Quote from: Brack1 on May 09, 2010, 09:19:56 PM
That is great news and  see the post reply notification works too.

*Looks for the edit*

Post Notification (http://ajcintegration.co.cc/index.php/topic,18.msg18.html#msg18)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: amcb10 on May 10, 2010, 05:43:31 AM
I have this mod installed and running but I have a question I cannot find. Is there a command to clear the screen or the logs, as it is, when I log in, I see all the previous text and login notificatiobs etc.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: psyxeon on May 10, 2010, 07:34:20 AM
Quote from: mrtrc266 on May 09, 2010, 07:51:38 PM
Attach your index.template 1 more time with what you have there please.

I´m using default curve as theme. We just changed some images.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: skinmi on May 10, 2010, 10:02:37 AM
Hello,

Please help me to do this. that the chat show message when you register a new member.

Use AjaxChat Inegration 3.2.1 to SMF 2.0 RC1.2

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fultraphoto.org%2Fimages%2Fg12cvrxk3gxockanah.jpg&hash=a2fdb2915b2e5584e8ee06f145acb10d94fde052)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 10, 2010, 10:06:05 AM
Hey mrt I found the usericon edit and have applied it to my forums chat.

The only problem I found was the user name shrank and the icon is above the name and not next to it.

Just an observation.

@Skinmi

It looks to me as tho it may be related to the post notification edit which is available.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 10, 2010, 10:08:21 AM
Quote from: psyxeon on May 10, 2010, 07:34:20 AM
Quote from: mrtrc266 on May 09, 2010, 07:51:38 PM
Attach your index.template 1 more time with what you have there please.

I´m using default curve as theme. We just changed some images.

Try this, if it doesn't work create me a temp account to your site, I can't see the shout box only the source code.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 10, 2010, 10:11:17 AM
Quote from: skinmi on May 10, 2010, 10:02:37 AM
Hello,

Please help me to do this. that the chat show message when you register a new member.

Use AjaxChat Inegration 3.2.1 to SMF 2.0 RC1.2

That would require the Welcome   Topic (http://custom.simplemachines.org/mods/index.php?mod=789) Mod and the Post Notification Edit
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 10, 2010, 10:13:34 AM
Any points for being half right?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 10, 2010, 10:22:37 AM
Quote from: Brack1 on May 10, 2010, 10:13:34 AM
Any points for being half right?

LOL 1 full point :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 10, 2010, 10:24:08 AM
 ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: skinmi on May 10, 2010, 10:25:27 AM
This mode makes a new topic when someone registers.
I have not thought of it.
How to show system messages to Shoutbox when registering a new member.
Similar information for the new post or reply.

I have shown in the picture what needs to be seen.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 10, 2010, 10:33:31 AM
skinme, you can't just have a message pop into the shout box when someone registers.

Empire of the Sun uses the Welcome Topic Mod which creates a topic when someone registers. Then it uses the Post Notification in insert that Topic into the Shout Box immediately after the user registers.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: skinmi on May 10, 2010, 10:57:41 AM
And how do I connect this mode with Shoutbox.

If you can help me please.

I assume that there is a solution, but I'm not a programmer. So please help.

I installed this mod. Now I need to connect with Shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 10, 2010, 11:05:26 AM
providing there were no errors on install you should be able to activate the shout in the admin area.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 10, 2010, 11:13:57 AM
on the member group edits will this also work on post based groups
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 10, 2010, 11:22:08 AM
Quote from: adbrad on May 10, 2010, 11:13:57 AM
on the member group edits will this also work on post based groups

Hold off on that, needs some adjustments. I just updated the post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 10, 2010, 11:28:19 AM
ok let me know when its fixed

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: psyxeon on May 10, 2010, 01:28:43 PM
Quote from: mrtrc266 on May 10, 2010, 10:08:21 AM
Quote from: psyxeon on May 10, 2010, 07:34:20 AM
Quote from: mrtrc266 on May 09, 2010, 07:51:38 PM
Attach your index.template 1 more time with what you have there please.

I´m using default curve as theme. We just changed some images.

Try this, if it doesn't work create me a temp account to your site, I can't see the shout box only the source code.

It worked just fine, but there still some unneeded space.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi43.tinypic.com%2F2aes0hs.jpg&hash=aa98842c581bb0647ebb8a2593b23f807c743d77)

I´ll send you a pm with the ftp details in a minute.

thx mate
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bosanci28 on May 10, 2010, 05:02:07 PM
anyone knows why i am getting the
::(13:55:45) ChatBot: Error: Connection status: 500::

error?
after  install it?

thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on May 10, 2010, 05:03:02 PM
Quote from: bosanci28 on May 10, 2010, 05:02:07 PM
anyone knows why i am getting the
::(13:55:45) ChatBot: Error: Connection status: 500::

error?
after  install it?

thanks.

Read the FAQ linked on the page you got the mod from, or the first post in this topic, it tells you ALL about it.

You're not the first to ask. You're also not the first to miss the information on the mod page or first post here that tells you how to fix it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 10, 2010, 05:17:16 PM
Quote from: Arantor on May 10, 2010, 05:03:02 PM
You're also not the first to miss the information on the mod page or first post here that tells you how to fix it.

Nor the last unfortunately LOL.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 10, 2010, 05:17:31 PM
If anyone wants to take a crack at getting the Custom Member Groups going have fun LOL
http://www.simplemachines.org/community/index.php?topic=380763.msg2621993#msg2621993
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 10, 2010, 05:21:03 PM
Quote from: psyxeon on May 10, 2010, 01:28:43 PM
Quote from: mrtrc266 on May 10, 2010, 10:08:21 AM
Quote from: psyxeon on May 10, 2010, 07:34:20 AM
Quote from: mrtrc266 on May 09, 2010, 07:51:38 PM
Attach your index.template 1 more time with what you have there please.

I´m using default curve as theme. We just changed some images.

Try this, if it doesn't work create me a temp account to your site, I can't see the shout box only the source code.

It worked just fine, but there still some unneeded space.

I´ll send you a pm with the ftp details in a minute.

thx mate

You're all set
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: psyxeon on May 10, 2010, 05:28:37 PM
mrtrc266 You are the man!

I´m grateful, incredible support from your side.  :D

cheers!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 10, 2010, 05:34:57 PM
Thanks Psy, glad you it's sorted...Enjoy!  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bosanci28 on May 10, 2010, 07:39:35 PM
thank you,problem fixed, cmd was ...,,
thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 11, 2010, 05:04:29 AM
Quote from: mrtrc266 on April 21, 2010, 10:37:56 AM
Quote from: TarikuKun on April 21, 2010, 04:33:37 AM
Users can delete their own chat message ... is there a way to stop users from deleting their messages ?
I don't think so

is this still the case or is there now a way to stop this
never mind i found it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Another Rob on May 11, 2010, 10:48:36 AM
Thanks mrtrc266! You're the man!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on May 11, 2010, 11:16:57 AM
i have SMF 1.1.11 and everything installed fine... i was able to customize  the chat and smileys...

i just have one problem left... my server does not have cpanel... the permission settings are totally different and you can't CHMOD the index.php's to fix the 500 error... is there some code i could add to the file to change the permissions? and where exactly would i place the code in the file?

thanks for your time
-=(GW)=-
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 11, 2010, 11:56:07 AM
graay, you have FTP access correct?

With an FTP program like File Zilla you can just right click the file and change the permissions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on May 11, 2010, 12:31:19 PM
Quote from: mrtrc266 on May 11, 2010, 11:56:07 AM
graay, you have FTP access correct?

With an FTP program like File Zilla you can just right click the file and change the permissions.

tried that & the free FTP program that comes with the server don't do permissions... i am on a fixed income.... can't afford to buy a program & don't want to pirate one... any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on May 11, 2010, 12:33:15 PM
FileZilla is free software. So is WinSCP. They can both log into the server and let you change permissions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on May 11, 2010, 12:48:20 PM
with those "Custom Member Groups & Colors in Chat Room and Shout Box" how is related to membergroup id? I'm stuck.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 11, 2010, 12:51:41 PM
mrt is still testing the membergroup color edits.

The user icons edit does work as seen in my forums chat at www.mkaware.co.uk

Have a look here for more mod related edits.

http://ajcintegration.co.cc/index.php?action=forum
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 11, 2010, 12:54:26 PM
Quote from: rocknroller on May 11, 2010, 12:48:20 PM
with those "Custom Member Groups & Colors in Chat Room and Shout Box" how is related to membergroup id? I'm stuck.


It allows you to add a custom member group to AJAX Chat and set the color in the same as a member group on your forum.

As explained you just need to change the Group # in the edit to the Group # of your member group.

As of now this is to add one custom member group.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on May 11, 2010, 01:02:47 PM
Quote from: graaywolf on May 11, 2010, 12:31:19 PM
Quote from: mrtrc266 on May 11, 2010, 11:56:07 AM
graay, you have FTP access correct?

With an FTP program like File Zilla you can just right click the file and change the permissions.

tried that & the free FTP program that comes with the server don't do permissions... i am on a fixed income.... can't afford to buy a program & don't want to pirate one... any ideas?

it's free... lol... sorry.... downloading File Zilla now.... thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on May 11, 2010, 01:25:08 PM
Quote from: mrtrc266 on May 11, 2010, 12:54:26 PM
Quote from: rocknroller on May 11, 2010, 12:48:20 PM
with those "Custom Member Groups & Colors in Chat Room and Shout Box" how is related to membergroup id? I'm stuck.


It allows you to add a custom member group to AJAX Chat and set the color in the same as a member group on your forum.

As explained you just need to change the Group # in the edit to the Group # of your member group.

As of now this is to add one custom member group.

In the chat i have two colors, Admin one color and SuperModerator second color. Now i try add color for membergroup Moderator. Where i must make change? i did not get it. I have added membergroup VIP for test. But still nothing.

sry my english is poor.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Shankirili on May 11, 2010, 01:54:09 PM
Hi and thanks for that usefull mod! I've been able to integrate the chat into my smf board and I've found plenty of usefull tips here to help me through!

I have a question though, about the smileys, is it possible to add the smiley from the board (I know I can add the manually) and to keep their settings (hiden or shown)?

If it's not, do you know how to modify the chat code to be able to hide smileys but to allow their use?

To be clear, here is an example : I want to have the smiley :-D but I want to be able to call it by using :D :d :-d and the original :-D but I don't want to see the same smiley four times in the smiley bar.

I'm using SMF 1.1.11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 11, 2010, 02:37:33 PM
@ Shankirili
Quoteis it possible to add the smiley from the board (I know I can add the manually) and to keep their settings (hiden or shown)?
Unfortunately at this time there is no known way to use the Smileys from your SMF Forum, that would be AWESOME if someone figured it out though :P

QuoteIf it's not, do you know how to modify the chat code to be able to hide smileys but to allow their use?
Take a look at this, it should be very close to what you want. I haven't messed with it yet but it sounds exactly like what you're after. Starts at post #5

http://sourceforge.net/projects/ajax-chat/forums/forum/774131/topic/2278701 (http://sourceforge.net/projects/ajax-chat/forums/forum/774131/topic/2278701)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 11, 2010, 02:47:26 PM
Quote from: rocknroller on May 11, 2010, 01:25:08 PM
Quote from: mrtrc266 on May 11, 2010, 12:54:26 PM
Quote from: rocknroller on May 11, 2010, 12:48:20 PM
with those "Custom Member Groups & Colors in Chat Room and Shout Box" how is related to membergroup id? I'm stuck.


It allows you to add a custom member group to AJAX Chat and set the color in the same as a member group on your forum.

As explained you just need to change the Group # in the edit to the Group # of your member group.

As of now this is to add one custom member group.

In the chat i have two colors, Admin one color and SuperModerator second color. Now i try add color for membergroup Moderator. Where i must make change? i did not get it. I have added membergroup VIP for test. But still nothing.

sry my english is poor.

Make sure the custom member group # you want to add matches this # in this portion of the edit
/chat/lib/class/CustomAJAXChat.php
               // Check if we have a member of   our custom user group
               if(in_array(9,   $user_info['groups']))
                  $userData['userRole'] =   AJAX_CHAT_VIP;


EXAMPLE: if your Custom Member Group is #5 then you change the above if(in_array(9 to if(in_array(5
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Shankirili on May 12, 2010, 03:32:05 AM
Thanks for the link, it seems to be exactly what I was looking for! I'll give it a try and tell you if it work!

EDIT : I gave it a quick try and it's not working but the thread is a bit old and it should work with some updates, I'll try to make it work and get you the workaround!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 12, 2010, 11:00:31 AM
Quote from: Shankirili on May 12, 2010, 03:32:05 AM
Thanks for the link, it seems to be exactly what I was looking for! I'll give it a try and tell you if it work!

EDIT : I gave it a quick try and it's not working but the thread is a bit old and it should work with some updates, I'll try to make it work and get you the workaround!

Cool, post it if you get it going and I'll add it to ~AJAX Chat Integration FAQ's   & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on May 12, 2010, 11:43:35 AM
Quote from: graaywolf on May 11, 2010, 01:02:47 PM
Quote from: graaywolf on May 11, 2010, 12:31:19 PM
Quote from: mrtrc266 on May 11, 2010, 11:56:07 AM
graay, you have FTP access correct?

With an FTP program like File Zilla you can just right click the file and change the permissions.

tried that & the free FTP program that comes with the server don't do permissions... i am on a fixed income.... can't afford to buy a program & don't want to pirate one... any ideas?

it's free... lol... sorry.... downloading File Zilla now.... thanks

hey... it's fixed.... thanks for all the good support... i'm new at adminning a forums and chatroom... used to have an informational site but that was all straight html.... again... thanks for the help... the files r set at 755 and no more 500 error...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: olesign on May 12, 2010, 03:33:02 PM
Hello everyone.

I looked thru just about this whole thread and am still having problems with shoutbox and chat.  I just took over the forum when this just "stopped working" and they had me look at it.  I'm stumped.

I've changed the folder permissions (Chat & Shoutbox ) to 755 and the index.php files in those folders as well to 755.
I also tried the RewriteRule ^chat/?$ ./chat/index.php [L,QSA] in the .htaccess file and tried to make new .htaccess files in the "chat" and "shoutbox" folders with not luck.  I've also tried adding RewriteEngine on to the top line of the .htaccess with no luck.

Any help would be great.

I'm running SMF 1.1.11

And have installed these mods.

Enhanced PM Warning Message    1.0     
SMF 1.0.19 / 1.1.11 Update    1.0     
SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0     
vB Style Topic Author Name    1.3     
Enhanced PM Popup    1.0.1   
SMF 1.0.18 / 1.1.10 / 2.0 RC1-2 Update    1.1 
AjaxChat Integration    3.2.1     
Global Headers Footers    1.4.1
SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0     
SMF 1.0.16 / 1.1.8 Update    1.0     
Aeva ~ Auto-Embed Video & Audio    6.2.75 
PM Popup - Uses Active Window    1.4     
AJAX Instant Quick Reply    1.0.2     
Message index like vbulletin    0.1     
XFire Field    1.4     
vB Style Topic Author Name    1.0
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zijO on May 12, 2010, 11:22:24 PM
where do i change size of input container  :o
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 13, 2010, 12:55:05 AM
@ graaywolf
Glad you got it sorted, enjoy!

@ olesign
Thank you for doing your homework and searching before posting. Do you know the last thing that was changed before it "stopped working?" Just for kicks, one other thing you can try whether you have a portal or not.....
http://www.simplemachines.org/community/index.php?topic=257973.msg2608338#msg2608338

Also, have there been any other chat Mods installed? If so make sure that ALL the code has been completely removed.

@ zijO
In the Shout Box or the Chat Room? Check /chat/lib/templates/LoggedIn.html and shoutbox.html
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zijO on May 13, 2010, 02:07:39 AM
Quote from: zijO on May 12, 2010, 11:22:24 PM
where do i change size of input container  :o

no matter waht i do i always have same size InputField, can display only 2 words
Title: Re: Theme's Missing
Post by: mikungfu on May 13, 2010, 02:38:47 PM
Hi,

I haved changed server/domain. I transfered all files to the new server through FTP and then exported/imported the smf database through phpmyadmin.

Everything is perfect on my website (smf, all mods...) so all the migration was successful apparently. However the Chat is the only thing that is having problems. The theme is missing and it is completely white.

I have attached screenshots so you can see what I mean.

Also, here are the URLs of both the previous and the new website:

Previous: http://www.artimedia.pt/legiao501
New: http://www.legiao501.com

What can be happening?

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hbjlee17 on May 13, 2010, 09:17:08 PM
Hi,

I have smf version 1.1.11 and I installed this mod without issues. (on default theme with pretty url)

The chat/shout box displays properly, but i am unable to send or receive any messages. the chat box always says there are no users online even though I have the chat window open.

I tried to find if someone had similar issue but was not able to.

could someone point me in the right direction as to how to troubleshoot this?

Thanks.

the chat window looks like this, its not blank, it has everything loaded, just not allowing me to send/receive message, or showing anyone in the chat.


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dotacash.com%2Fchatwindow.JPG&hash=68b9e156855d0349e0acf385fabb39488d89d589)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Scarecrow7170 on May 14, 2010, 12:18:15 AM
having issues that I did not see before:

[12-May-2010 21:44:00] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/public_html/shoutBox/lib/class/AJAXChat.php on line 1461

It seems to be what is causing a lot of the execution errors we have been getting. please help.

Thank you for your time & patience.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 14, 2010, 12:58:03 AM
@  Offline  hbjlee17 
Try this Pretty URLs (http://ajcintegration.co.cc/index.php/topic,50.msg61.html#msg61)

@ hbjlee17
Try this Blank White Chat Room (http://ajcintegration.co.cc/index.php/topic,51.msg62.html#msg62)

@ mikungfu
That's pretty odd, if you haven't made any edits to the chat, try downloading AjaxChat Integration_3.2.1.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=112578), unzip it, then upload all the files to /chat and /shoutBox overwriting what is there.

This won't affect anything but simply put everything back to it's original state.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 14, 2010, 01:00:43 AM
Quote from: Scarecrow7170 on May 14, 2010, 12:18:15 AM
having issues that I did not see before:

[12-May-2010 21:44:00] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/public_html/shoutBox/lib/class/AJAXChat.php on line 1461

It seems to be what is causing a lot of the execution errors we have been getting. please help.

Thank you for your time & patience.

What seems to be the problem and what's on line 1461 in the AJAXChat.php?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MatrixWD on May 15, 2010, 12:08:18 AM
Hi,

I have looked threw to find a solution for this  but I cant seem to find it. Any help is appreciated.

In both the shout box and chat box it say this: (23:43:48) ChatBot: Cookies are required for this chat.

I have use 2 different computers and insured cookies are on but still the same,

Here is a list of mods I have installed on SMF v1.1.11

H1 BBCode      1.1
Share This Topic    1.5
AutoKeywords    1.3
AjaxChat Integration    3.2.1
NoFollow All Links    1.2.1
Ultimate Profile    0.9.1
Menu Buttons    1.1
Pretty URLs Extras    1.0
cb|Emailogin    0.3
Thank-O-Matic    1.2.5
Reg Bar    1.0.2
Profile Comments    2.0
Member Notepad    1.0
Team Page    3.5.5
RSS Feed Icon    1.1
Reply Button in All Posts    1.1
Pretty URLs    1.0
Enhanced PM Warning Message    1.0
Contact Page    2.0.1
Welcome Topic Mod    2.1
Online status on login

Thanks again,

Eric
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 15, 2010, 12:25:29 AM
@ MatrixWD
In 300 + pages I've never seen that one before. Have you read the Known Issues regarding Pretty URLS's?
http://ajcintegration.co.cc/index.php/topic,50.0.html
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Scarecrow7170 on May 15, 2010, 01:48:44 AM
Quote from: mrtrc266 on May 14, 2010, 01:00:43 AM
Quote from: Scarecrow7170 on May 14, 2010, 12:18:15 AM
having issues that I did not see before:

[12-May-2010 21:44:00] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/public_html/shoutBox/lib/class/AJAXChat.php on line 1461

It seems to be what is causing a lot of the execution errors we have been getting. please help.

Thank you for your time & patience.

What seems to be the problem and what's on line 1461 in the AJAXChat.php?

on line 1461 is the following:

Quoteforeach($this->_onlineUsersData as $userData){

going to give ya the paragraph it is in as well to be redundant.. lol

Quotefunction isAllowedToWriteMessage($id) {
foreach($this->_onlineUsersData as $userData){
//move to find user
if($userData['userID'] != $id)
continue;
//found him;)
else
return true;
if($userData['shout_access'])
return true;
return false;
}

function isAllowedToWriteMessage($id) {
foreach($this->_onlineUsersData as $userData){    <--- Line 1461
//move to find user
if($userData['userID'] != $id)
continue;
//found him;)
else
return true;
if($userData['shout_access'])
return true;
return false;
}

Thank you for your time & effort
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 15, 2010, 03:38:43 AM
either you pasted the code twice or you have the exact code twice in the same file which could be causing the errors
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 15, 2010, 09:46:39 AM
Quote from: adbrad on May 15, 2010, 03:38:43 AM
either you pasted the code twice or you have the exact code twice in the same file which could be causing the errors

Bingo!  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mittal on May 15, 2010, 01:00:08 PM
i tried to install this mod in my 2.0rc3 but i got error.

anybody can help me in this error

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 15, 2010, 01:40:18 PM
you only have errors in the custom themes so just make thos edits manually.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mittal on May 15, 2010, 02:01:42 PM
how to make it manually.

which files i have to edit. and wat code i have to put in that file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 15, 2010, 02:26:55 PM
which theme are you actually using
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mittal on May 15, 2010, 03:04:24 PM
i m using curve_gold now but i have 5 more themes installed in my site.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 15, 2010, 03:06:37 PM
should install fine on that theme
do you allow users to choose their own theme
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mittal on May 15, 2010, 03:37:56 PM
yes i allow them
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on May 15, 2010, 04:15:47 PM
A staff member of mine seen this option on another AjacChat I'd like to have.  It's an extra color command that allows members to use custom HTML color codes as their color font, instead of the basic colors available.  The added button is in an image below.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi39.tinypic.com%2F2u7udty.jpg&hash=b5e087bf639d42b18ada547dab3834d47fd4a16e)

I checked the FAQ and the Wiki, couldn't find anything relevant to this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: new200 on May 15, 2010, 05:19:09 PM
How do you disable other languagew listing and listing for channels?

I only want one channel with English as the language. I've edit some tuff in chat/config.php but doesn't help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 15, 2010, 05:25:58 PM
The following link will help.

Also please have a look at the link to the mod in mrtrc266s signature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 15, 2010, 06:01:01 PM
Quote from: Brack1 on May 15, 2010, 05:25:58 PM
The following link will help.

Also please have a look at the link to the mod in mrtrc266s signature.
errr what link lol
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 15, 2010, 06:07:38 PM
Sheesh I need a new memory upgrade.

http://ajcintegration.co.cc/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adbrad on May 15, 2010, 06:20:00 PM
Quote from: mittal on May 15, 2010, 02:01:42 PM
how to make it manually.

which files i have to edit. and wat code i have to put in that file
go to the mod page http://custom.simplemachines.org/mods/index.php?mod=1319
and parse the manual install instructions and make the edits to the files that failed in your screenshot
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 16, 2010, 01:09:27 AM
Quote from: mittal on May 15, 2010, 01:00:08 PM
i tried to install this mod in my 2.0rc3 but i got error.

anybody can help me in this error

ALL Mods are made to install on the default theme ONLY! If you try to install on other themes then manual edits will be required so go ahead and install the Mod just don't install it on themes that have the "failed test" then do the manual edits for the other themes.
Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 16, 2010, 01:11:41 AM
Quote from: hcfwesker on May 15, 2010, 04:15:47 PM
A staff member of mine seen this option on another AjacChat I'd like to have.  It's an extra color command that allows members to use custom HTML color codes as their color font, instead of the basic colors available.  The added button is in an image below.
I checked the FAQ and the Wiki, couldn't find anything relevant to this.

Someone has added that on their own, please provide a link to the site and I'll take a look.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 16, 2010, 01:14:31 AM
Quote from: new200 on May 15, 2010, 05:19:09 PM
How do you disable other languagew listing and listing for channels?

I only want one channel with English as the language. I've edit some tuff in chat/config.php but doesn't help!

/chat/lib/config.php
Find
$config['langAvailable'] = array('ar','bg','bp','ca','cy','cz','de','el','en','es','et','fi','fr','gl','he','hr','hu','in','it','ka','kr','ja','nl','no','pl','ro','ru','sk','sl','sr','sv','tr','uk','zh','zh-tw');

Replace with
$config['langAvailable'] = array('en');
Find
$config['langNames'] = array('ar'=>'عربي','bg'=>'Български','bp'=>'Português (Brasil)','ca'=>'Català','cy'=>'Cymraeg','cz'=>'Česky','de'=>'Deutsch','el'=>'Ελληνικα','en'=>'English','es'=>'Español','et'=>'Eesti','fi'=>'Suomi','fr'=>'Français','gl'=>'Galego','he'=>'עברית','hr' => 'Hrvatski','hu' => 'Magyar','in'=>'Bahasa Indonesia','it'=>'Italiano','ja'=>'日本語','ka'=>'ქართული','kr'=>'한글','nl'=>'Nederlands','no'=>'Norsk','pl'=>'Polski','ro'=>'România','ru'=>'Русский','sk'=>'Slovenčina','sl'=>'Slovensko','sr'=>'Srpski','sv'=>'Svenska','tr'=>'Türkçe','uk'=>'Українська','zh'=>'中文 (简体)', 'zh-tw'=>'中文 (繁體)');

Replace with
$config['langNames'] = array('English');
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: simply4friends on May 16, 2010, 01:22:34 AM
Hi, I have the 2.0 rc3 installed ..chat box is producing many errors..this is driving me nuts... can someone come on my forum and fix this? i am willing to pay to have this done..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 16, 2010, 01:24:10 AM
Quote from: simply4friends on May 16, 2010, 01:22:34 AM
Hi, I have the 2.0 rc3 installed ..chat box is producing many errors..this is driving me nuts... can someone come on my forum and fix this? i am willing to pay to have this done..

What kind of errors?

PM the details and I'll take a look.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Scarecrow7170 on May 16, 2010, 01:42:55 AM
Sorry guys.. I messed up, original error message is as follows.

Quote[12-May-2010 21:44:00] PHP Warning:  Invalid argument supplied for foreach() in /home/xxxxxx/public_html/shoutBox/lib/class/AJAXChat.php on line 1461

ok, After referring with the rest of my team.. I did accidentally copy it twice.. Sorry for the confusion. It does only appear once.

Quotefunction isAllowedToWriteMessage($id) {
      foreach($this->_onlineUsersData as $userData){  <-- Line 1461
         //move to find user
         if($userData['userID'] != $id)
            continue;
         //found him;)
         else
            return true;
            if($userData['shout_access'])
               return true;
            return false;


Not sure what else you may need.. but I can get it for you.


PS - Simply4Friends is with me :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 16, 2010, 02:02:51 AM
@ Scrarecrow

Off the top of my head I don't have a solution but take a look at this here to see if you experience any of the other issues this user had, I can take a look on Mon-Tue
http://www.simplemachines.org/community/index.php?topic=257973.msg2568812#msg2568812
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mittal on May 16, 2010, 02:06:59 AM
Quote from: adbrad on May 15, 2010, 06:20:00 PM
Quote from: mittal on May 15, 2010, 02:01:42 PM
how to make it manually.

which files i have to edit. and wat code i have to put in that file
go to the mod page http://custom.simplemachines.org/mods/index.php?mod=1319
and parse the manual install instructions and make the edits to the files that failed in your screenshot

i try manually as given info there but i got error

Fatal error: Call to undefined function chatonlineusers() in /home/mysite/public_html/forums/Sources/BoardIndex.php on line 129
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mikungfu on May 16, 2010, 10:29:44 AM
Quote from: mrtrc266 on May 14, 2010, 12:58:03 AM
@ mikungfu
That's pretty odd, if you haven't made any edits to the chat, try downloading AjaxChat Integration_3.2.1.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=112578), unzip it, then upload all the files to /chat and /shoutBox overwriting what is there.

This won't affect anything but simply put everything back to it's original state.

Before trying that...

Is it possible that this is due to different server configurations?... Are there any known minimum server requirements to run this mod?

Also, could it be something that happened in the processes of uploading/downloading through FTP? Like the file transfer mode, etc...

Or could it be something in the Database tables? I noticed that when I backed up/restored the DB between servers, some DB table settings were lost like collation, for instance...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 16, 2010, 10:43:23 AM
Quote from: mikungfu on May 16, 2010, 10:29:44 AM
Quote from: mrtrc266 on May 14, 2010, 12:58:03 AM
@ mikungfu
That's pretty odd, if you haven't made any edits to the chat, try downloading AjaxChat Integration_3.2.1.zip (http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=112578), unzip it, then upload all the files to /chat and /shoutBox overwriting what is there.

This won't affect anything but simply put everything back to it's original state.

Before trying that...

Is it possible that this is due to different server configurations?... Are there any known minimum server requirements to run this mod?

Also, could it be something that happened in the processes of uploading/downloading through FTP? Like the file transfer mode, etc...

Or could it be something in the Database tables? I noticed that when I backed up/restored the DB between servers, some DB table settings were lost like collation, for instance...

Sounds like the best thing do do would uninstall, drop tables from the database, re-install and see if the problem still persists.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mikungfu on May 16, 2010, 11:11:20 AM
But I'm using TinyPortal... As far as I can remember, it is always a headache to do installs/uninstalls of AjaxChat when TP is installed. Last time I had to uninstall AC, uninstall TP, then install AC, then install TP, and all that had loads of tricky manual parsing inbetween. That's something I won't be redoing...

The AC installation interferes with many common files and the more mods you have installed, the more conflicts arise because sometimes the uninstall works badly and fails to undo files edits, etc...

I'll try the files upload from the unzipped file to the server as you first sugested and I'll see how it goes.

But like I was asking, are there are any server requirements? Because if there are, I could ask my webhost if they're installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 16, 2010, 11:15:33 AM
Very minimal server requirements

Requirements 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mikungfu on May 16, 2010, 11:25:09 AM
Quote from: mrtrc266 on May 16, 2010, 11:15:33 AM
Very minimal server requirements

Requirements 

       
  • Server-Side: 

            
    • PHP >= 4
    • MySQL >= 4
  • Client-Side: 

            
    • Enabled JavaScript
    • Enabled Cookies
Ok, I'll check it out and let you know. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Smugller on May 17, 2010, 02:33:51 PM
Hai, i have problem. When someone add shout, in this shout add to strange charakters (probably this is char(63)) How fix them?

Screen:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fiv.pl%2Fimages%2F76895487486458101902.jpg&hash=2d8c19f8601b0c15739ccb5e934cdd62a06a9a8f)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mave on May 18, 2010, 08:35:33 AM
@ mrtrc266

You are a hero.
Your rest and perseverance are really admirable.
 
I am I so gladly nothing more with the chat has to act.
 
But I use him with pleasure.

Continue please thus and let not get down.  :-*

'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => allowedTo('chat_access'),
'sub_buttons' => array(


it really nice to add it at next version.

dear one greets
MAVE
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SilenT`Michael on May 18, 2010, 05:42:27 PM
I installed this shoutbox got this error (17:39:25) ChatBot: Error: Connection status: 500

Any ideals what causes this?

The shoutbox shows up and all just when we try to type in it it gives us that error
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on May 18, 2010, 05:47:10 PM
Michael: Please see the FAQ in the first post, it contains the solution to this problem. It's also linked from the page you downloaded the mod from.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 18, 2010, 05:51:24 PM
Dang and we were going on 2 consecutive pages without that question being asked Grrrr! LOL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 18, 2010, 05:52:32 PM
Quote from: Smugller on May 17, 2010, 02:33:51 PM
Hai, i have problem. When someone add shout, in this shout add to strange charakters (probably this is char(63)) How fix them?

Smuggler does it do it in just that language?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SilenT`Michael on May 18, 2010, 06:47:21 PM
I got it working guys. Thanks for the help :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stkee on May 19, 2010, 08:14:15 AM
I've installed the latest version on my SMF2.0RC3 forum. Installation all completed without error. But whenever I go into the chatbox, it will show the whole layout than just logout itself. Whenever I tried login, it will goes thru the whole process than logout out immediately. As for the shoutbox, all looks fine but whatever I type doesn't appear.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Smugller on May 19, 2010, 08:41:37 AM
Quote from: mrtrc266 on May 18, 2010, 05:52:32 PM
Quote from: Smugller on May 17, 2010, 02:33:51 PM
Hai, i have problem. When someone add shout, in this shout add to strange charakters (probably this is char(63)) How fix them?

Smuggler does it do it in just that language?

No, in all language, but already i have set the polish language. I checked it in English and is the same problem. Do you have solution?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lori-T on May 19, 2010, 09:34:14 AM
Hi i am having a problem after installing the ajax chat mod.  i waded thru alot of these posts and i saw that someone had a similar problem but i still am not sure of the solution.

i have installed the ajax chat mod and  the chat button shows up on the menu.  the chat box will open and i can use it but non of the other forum members can use it.  if i invite someone to the chat it says user not found.  The shoutbox is up and running but again...only i can see it or use it.

i have tried uninstalling it and reinstalling it.  i have gone to settings and tweaked all that i could find.  i have gone into permissions and there isn't anything to set user permissions for the chat or shoutbox...just the forum boards.   the theme i am using is the smf default them.   the forum is smf 1.1.11


i am not very computer literate.. so any help is deeply appreciated.


Lori
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 19, 2010, 10:12:37 AM
Quote from: Lori-T on May 19, 2010, 09:34:14 AM
Hi i am having a problem after installing the ajax chat mod.  i waded thru alot of these posts and i saw that someone had a similar problem but i still am not sure of the solution.

i have installed the ajax chat mod and  the chat button shows up on the menu.  the chat box will open and i can use it but non of the other forum members can use it.  if i invite someone to the chat it says user not found.  The shoutbox is up and running but again...only i can see it or use it.

i have tried uninstalling it and reinstalling it.  i have gone to settings and tweaked all that i could find.  i have gone into permissions and there isn't anything to set user permissions for the chat or shoutbox...just the forum boards.   the theme i am using is the smf default them.   the forum is smf 1.1.11


i am not very computer literate.. so any help is deeply appreciated.

Lori

You set the permission in your Admin panel?
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Navigate to here in your forum
Admin/Permissions/[membergroup]/Modify

Available Options
Access   to chat
Moderate chat
View shoutBox
Can shout
Moderate   shoutBox
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 19, 2010, 10:20:52 AM
Quote from: Smugller on May 19, 2010, 08:41:37 AM
Quote from: mrtrc266 on May 18, 2010, 05:52:32 PM
Quote from: Smugller on May 17, 2010, 02:33:51 PM
Hai, i have problem. When someone add shout, in this shout add to strange charakters (probably this is char(63)) How fix them?

Smuggler does it do it in just that language?

No, in all language, but already i have set the polish language. I checked it in English and is the same problem. Do you have solution?

No I don't have the solution, never seen that prob before. I'm off to work but you can dig around at Source Forge though, I think I remember seeing something about strange characters.
http://sourceforge.net/projects/ajax-chat/forums/forum/774132
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bigredcherokee on May 19, 2010, 10:26:10 AM
I just did a fresh install of SMF 1.1.11 with TP Beta and installed the Ajax chat mod. Everything is working fine except when you go to a users profile and click TP shout.

I get this error: Fatal error: Call to undefined function tpshout_profile() in /*/*/*/*/forum/Sources/Profile.php  on line 339

Other than that its an awesome mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lori-T on May 19, 2010, 01:30:25 PM
Thankyou mrtrc266   ;D

This did the trick

QuoteNavigate to here in your forum
Admin/Permissions/[membergroup]/Modify

Available Options
Access   to chat
Moderate chat
View shoutBox
Can shout
Moderate   shoutBox

everything seems to be working now   ;D

i am grateful for your assistance..thanks again and thankyou for helping so many people.

miles of smiles,
Lori
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 20, 2010, 12:37:02 AM
Quote from: bigredcherokee on May 19, 2010, 10:26:10 AM
I just did a fresh install of SMF 1.1.11 with TP Beta and installed the Ajax chat mod. Everything is working fine except when you go to a users profile and click TP shout.

I get this error: Fatal error: Call to undefined function tpshout_profile() in /*/*/*/*/forum/Sources/Profile.php  on line 339

Other than that its an awesome mod.

That seems to be an issues with the Shout Box provide by Tiny Portal, not AJAX Chat. Post on their board and I'm sure they'll get it sorted for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 20, 2010, 12:38:21 AM
Quote from: Lori-T on May 19, 2010, 01:30:25 PM
Thankyou mrtrc266   ;D

This did the trick

everything seems to be working now   ;D

i am grateful for your assistance..thanks again and thankyou for helping so many people.

miles of smiles,
Lori

You're welcome, enjoy the Mod and "Welcome to SMF." :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: M4juS on May 20, 2010, 10:22:17 AM
Hello.
I have a noobish question...
How i can set date in my shoutbox?
In Chat i have date, but in SB not :P

Thx for help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 20, 2010, 10:31:29 AM
Quote from: M4juS on May 20, 2010, 10:22:17 AM
Hello.
I have a noobish question...
How i can set date in my shoutbox?
In Chat i have date, but in SB not :P

Thx for help

That's odd, by default the time (not date) is shown in both the Chat Room and Shout Box. Do you have this in your /chat/lib/css/shoutbox.css file?
#ajaxChatContent #ajaxChatChatList span.dateTime {
font-size:0.7em;
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: M4juS on May 20, 2010, 10:38:24 AM
Yes i have.
Ok i tried one more time set date in Chat and i have now it in ShoutBox. :)
But thx :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 20, 2010, 10:41:36 AM
Welcome to SMF and Enjoy! :)
Title: Logs and permissions
Post by: mpolo on May 20, 2010, 08:05:46 PM
Hi,
I've two questions on your perfect mod, maybe they are faqs but couldn't find anything related in the topic.

1) I would like to access the chat log/history (messages exchanged by people) and post it daily in a forum topic. Is there any way?

2) I use chat and shoutbox integrated. I'd like to make shoutbox visible by forum guests, so the can just read and not shout.
I tried with the relevant permission but it doesn't work: if I set "View shoutBox = yes" the shoutbox is not visible anyway. It becomes visible just when I also check "Access to chat" but in this way guests can also shout (and chat) even if I keep "Can shout" not checked. So is there any way for having guests just read discussions in the shoutbox without they being able to partecipate?

I use last version of both SMF and AjaxChat Integration with basic Curve theme unmodified, except few mods.


Thank you for your great job! ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 21, 2010, 01:03:04 AM
Quote
1) I would like to access the chat log/history (messages exchanged by people) and post it daily in a forum topic. Is there any way?
http://yoursite/chat/?view=logs (http://yoursite/chat/?view=logs)
Quote
2) I use chat and shoutbox integrated. I'd like to make shoutbox visible by forum guests, so the can just read and not shout.
I tried with the relevant permission but it doesn't work: if I set "View shoutBox = yes" the shoutbox is not visible anyway. It becomes visible just when I also check "Access to chat" but in this way guests can also shout (and chat) even if I keep "Can shout" not checked. So is there any way for having guests just read discussions in the shoutbox without they being able to partecipate?
Try exactly what you did and then also edit /chat/lib/config.php from "true" to false"
// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
$config['allowGuestWrite'] = true;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: manis99 on May 21, 2010, 05:30:22 AM
your chatbox didn't seems to work with RC3 ,
i have successfully installed it but i m not able to shout in it.

i m really sick of it.

i have tried it on my both sites and also on test site but nothing seems to work except the installation.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: manis99 on May 21, 2010, 07:08:41 AM
finally got it working.  8) :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 21, 2010, 10:00:14 AM
Quote from: manis99 on May 21, 2010, 05:30:22 AM
your chatbox didn't seems to work with RC3 ,
i have successfully installed it but i m not able to shout in it.

i m really sick of it.

i have tried it on my both sites and also on test site but nothing seems to work except the installation.
BEFORE your first post you read through all the FAQ's on the Mods Home Page (the page where you downloaded it from)? You know the HUGE PURPLE letters that say ~~~FAQ's~~~ and you read the part where it specifically says....
QuoteHere some known issues and fixes caused by either other Mods or  some servers

       
  • If you install the Mod  and it looks like it installs fine but the shoutbox and chat room are  blank please READ THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)
You tried that and it maybe it didn't work right so then you tried this?
QuoteIf you get a 500 Connection error you might have to set your   file permissions as well.
There are 2 folder for the AJAX   Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat   Intergration Version 3 be sure to change the file permissions (CHMOD)   /chat/index.php and /shoutbox/index.php to 755 (and in some cases CHMOD   the actual "Folders" as well).
This could possible be the solution for this   as well.... "If you install the Mod and it looks like it   installs fine but the   shoutbox and chat room are blank"
Then maybe none of that worked so you asked for some help on this support thread right? ;)   If you did I post a question and it went unanswered I apologize, posts do get missed and buried sometimes but it's okay to re-post after 24 hrs.

Quote from: manis99 on May 21, 2010, 07:08:41 AM
finally got it working.  8) :P
Glad you got it sorted and enjoy the Mod
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sotong17 on May 21, 2010, 12:26:25 PM
Hi.. i had search the post but unable to find the answer for my installation error.

I'm Using SMF 2.0 RC3 to install AJAX Chat but keep getting this error while click on chat button

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

Help me please!!!

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madman71 on May 21, 2010, 02:30:29 PM
can anyone find my error? see attached:


problem solved  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kkattfish on May 21, 2010, 05:09:38 PM
any idea why my shoutbox is doing this all of a suddden?  notice the x's for mods are going horizonatally and will repeat like that
i recently changed my config.php to add more history and the time displayed.  i since reverted back to my original file and i get this. 
i also installed ncode photo image resizer but have since removed.   

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi483.photobucket.com%2Falbums%2Frr191%2Fkkattfish%2Fsbox.jpg&hash=72183d727fb28d6da462e7f504e38851525f897d)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madman71 on May 21, 2010, 05:43:18 PM
katfish,

i only see that happening in IE
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kkattfish on May 21, 2010, 06:03:10 PM
yes it is happening in ie that is correct.  it does not happen to me using google chrome. 

and thanks just by you saying that made me click the compatability icon in ie and now it looks normal. 

should have tried that first i guess.  have a good weekend
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on May 21, 2010, 06:29:10 PM
Quote from: mrtrc266 on May 21, 2010, 01:03:04 AM
Quote
1) I would like to access the chat log/history (messages exchanged by people) and post it daily in a forum topic. Is there any way?
http://yoursite/chat/?view=logs (http://yoursite/chat/?view=logs)


I have seen that answer before, but have not been able to get it to work. Just where do you type this in? Also, where is this chat information stored?

There are some timing issues that we are experiencing. When CR is struck, the sentence is not always put into shoutbox. Sometimes shoutbox seems to loose its 'focus' and users have to refresh or logout and login back in.

Users say that they have cookies enabled and only have one browser tab opened. Any ideas?

All in all, everyone is happy with the shoutbox and the chat.


thanks,

Lou

:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sotong17 on May 21, 2010, 09:33:56 PM
Quote from: sotong17 on May 21, 2010, 12:26:25 PM
Hi.. i had search the post but unable to find the answer for my installation error.

I'm Using SMF 2.0 RC3 to install AJAX Chat but keep getting this error while click on chat button

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

Help me please!!!


Anyone can assist?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 21, 2010, 09:49:43 PM
Quote from: sotong17 on May 21, 2010, 09:33:56 PM
Quote from: sotong17 on May 21, 2010, 12:26:25 PM
Hi.. i had search the post but unable to find the answer for my installation error.

I'm Using SMF 2.0 RC3 to install AJAX Chat but keep getting this error while click on chat button

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

Help me please!!!
Anyone can assist?

Please wait 24 hrs before re-posting the same question.

Have you tried changing your file permissions to 755 for /chat/index.php and /shoutBox/index.php ?

Users posted same problem here....
http://www.simplemachines.org/community/index.php?topic=257973.msg2025752#msg2025752 (http://www.simplemachines.org/community/index.php?topic=257973.msg2025752#msg2025752)

And it was fixed here, he couldn't change the file permissions so his host did it for him...
http://www.simplemachines.org/community/index.php?topic=257973.msg2032686#msg2032686 (http://www.simplemachines.org/community/index.php?topic=257973.msg2032686#msg2032686)

I found it here
http://tinyurl.com/24t6z58  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sotong17 on May 22, 2010, 01:40:22 AM
Quote from: mrtrc266 on May 21, 2010, 09:49:43 PM
Quote from: sotong17 on May 21, 2010, 09:33:56 PM
Quote from: sotong17 on May 21, 2010, 12:26:25 PM
Hi.. i had search the post but unable to find the answer for my installation error.

I'm Using SMF 2.0 RC3 to install AJAX Chat but keep getting this error while click on chat button

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

Help me please!!!
Anyone can assist?

Please wait 24 hrs before re-posting the same question.

Have you tried changing your file permissions to 755 for /chat/index.php and /shoutBox/index.php ?

Users posted same problem here....
http://www.simplemachines.org/community/index.php?topic=257973.msg2025752#msg2025752 (http://www.simplemachines.org/community/index.php?topic=257973.msg2025752#msg2025752)

And it was fixed here, he couldn't change the file permissions so his host did it for him...
http://www.simplemachines.org/community/index.php?topic=257973.msg2032686#msg2032686 (http://www.simplemachines.org/community/index.php?topic=257973.msg2032686#msg2032686)

I found it here
http://tinyurl.com/24t6z58  ;)


I had change chmod to 755 and permission but problem still same..

Any idea? Currently i'm using the default template.

TQ~ ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stkee on May 22, 2010, 10:04:13 AM
Hi, this is a repost because I didn't get any answer for my questions.
I'm currently running SMF 2.0 RC3, with ezportal.
The Ajaxchat install without any error, the shoutbox and chat all looks ok, but whenever I click on the chatbox, it appears and than just logoff itself. I tried to login again but it will go thru the whole process till I see the chatbox layout and than immediately it logoff again.
The shoutbox also works intermittently when I enable integrate shoutbox and chatbox, but doesn't shows anything when I type and tried to shout if it is not integrated with chatbox.
I've ask this questions before but till now I still didn't get any answer.
I've since uninstalled Ajax chat till I can get a proper answer to solved the problems.
I've gone thru all the suggestion posted before but none works.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 22, 2010, 10:24:49 AM
@ stkee

Sorry for missing your post

Try adding this to your .htaccess file (the one in the same directory as your /SSI.php file)
DirectoryIndex portal.php index.php index.html index.htm
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 22, 2010, 10:29:09 AM
@ Lou

You type that in your browser but of course change "yoursite" to the URL of your site.

Yes it will lose focus in however many minutes you have it set to timeout if they're not shouting. The user should simply be able to put their cursor in the input field and it will retrieve the messages cuz now they're back in chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 22, 2010, 10:38:25 AM
@ sotong
Not sure, send me a link to your site and I'll take a look when I get home from work in about 14hrs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stkee on May 22, 2010, 07:08:40 PM
Quote from: mrtrc266 on May 22, 2010, 10:24:49 AM
@ stkee

Sorry for missing your post

Try adding this to your .htaccess file (the one in the same directory as your /SSI.php file)
DirectoryIndex portal.php index.php index.html index.htm

Thanks for the reply.
I've tried it before but it is still the same.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: okae on May 22, 2010, 07:49:07 PM
hi, first at all thx for this great mod, is awesome!! but i have a problem when i install it there is no error messages, all appear to be ok, but mu shoutbox appear like the image


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg687.imageshack.us%2Fimg687%2F1804%2Fsinttulo2me.jpg&hash=f0b3942f849374c17ac71cc4a822e6a2cc16c3dd)

Anyone know how i can solved this issue?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eudemon on May 22, 2010, 09:58:35 PM
i got a problem

when installing the mod i got an error of add after
then i ignored it and continued install
the Chat button shows but when i click on it i got Internal Server Error  ???

im using custom theme n smf version 2.3rc
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 22, 2010, 10:18:04 PM
Have you looked at the FAQs on the very first post for the mod?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 23, 2010, 01:01:07 AM
Quote from: stkee on May 22, 2010, 07:08:40 PM
Quote from: mrtrc266 on May 22, 2010, 10:24:49 AM
@ stkee

Sorry for missing your post

Try adding this to your .htaccess file (the one in the same directory as your /SSI.php file)
DirectoryIndex portal.php index.php index.html index.htm

Thanks for the reply.
I've tried it before but it is still the same.

PM me a link to your site, temp Admin Account and temp FTP access and I'll take a look if you like
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 23, 2010, 01:05:39 AM
Quote from: okae on May 22, 2010, 07:49:07 PM
hi, first at all thx for this great mod, is awesome!! but i have a problem when i install it there is no error messages, all appear to be ok, but mu shoutbox appear like the image
 
Anyone know how i can solved this issue?

Please check out the FAQ's
Here some known issues and fixes caused by either other Mods or   some servers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: okae on May 23, 2010, 05:48:14 AM
Quote from: mrtrc266 on May 23, 2010, 01:05:39 AM
Quote from: okae on May 22, 2010, 07:49:07 PM
hi, first at all thx for this great mod, is awesome!! but i have a problem when i install it there is no error messages, all appear to be ok, but mu shoutbox appear like the image
 
Anyone know how i can solved this issue?

Please check out the FAQ's
Here some known issues and fixes caused by either other Mods or   some servers

       
  • If you install the Mod   and it looks like it installs fine but the shoutbox and chat room are   blank please READ THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)

for sure i already do that, problem still exist, have you any other ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Alyen on May 23, 2010, 09:12:36 AM
Fatal error: require() [function.require]: Failed opening required 'xxxxx/httpdocs/shoutBox/lib/class/AJAXChat.php' (include_path='.:') in xxxxx/httpdocs/shoutBox/lib/classes.php  on line 11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ptmuldoon on May 23, 2010, 09:31:43 AM
I've just discovered this great chat, and am hoping to modify it a little bit to work with  another mod I'm trying to create.

Can someone possibly tell me the following?

What is the code need to display the chat elsewhere?  I see there is the ssi_ChatOnline online function, but that doesn't display the chat.

Also, Is it possible to learn where in the code the chat is learning the various forums used in the chat?  I'd like to learn to modify that to create chats for other non forum areas, but for each active 'game' being played on my site.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 23, 2010, 10:12:27 AM
Quote from: ptmuldoon on May 23, 2010, 09:31:43 AM
I've just discovered this great chat, and am hoping to modify it a little bit to work with  another mod I'm trying to create.

Can someone possibly tell me the following?

What is the code need to display the chat elsewhere?  I see there is the ssi_ChatOnline online function, but that doesn't display the chat.

Also, Is it possible to learn where in the code the chat is learning the various forums used in the chat?  I'd like to learn to modify that to create chats for other non forum areas, but for each active 'game' being played on my site.

Check out the FAQ's and look for "Relocating the ShoutBox" and Adding / Creating custom channels
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 23, 2010, 10:12:52 AM
Quote from: Alyen on May 23, 2010, 09:12:36 AM
Fatal error: require() [function.require]: Failed opening required 'xxxxx/httpdocs/shoutBox/lib/class/AJAXChat.php' (include_path='.:') in xxxxx/httpdocs/shoutBox/lib/classes.php  on line 11
?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 23, 2010, 10:14:13 AM
Quote from: okae on May 23, 2010, 05:48:14 AM
Quote from: mrtrc266 on May 23, 2010, 01:05:39 AM
Quote from: okae on May 22, 2010, 07:49:07 PM
hi, first at all thx for this great mod, is awesome!! but i have a problem when i install it there is no error messages, all appear to be ok, but mu shoutbox appear like the image
 
Anyone know how i can solved this issue?

Please check out the FAQ's
Here some known issues and fixes caused by either other Mods or   some servers

       
  • If you install the Mod   and it looks like it installs fine but the shoutbox and chat room are   blank please READ THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)

for sure i already do that, problem still exist, have you any other ideas?

No more ideas, never seen that one before, what the URL to your site?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 23, 2010, 11:10:39 AM
Quote from: stkee on May 22, 2010, 10:04:13 AM
Hi, this is a repost because I didn't get any answer for my questions.
I'm currently running SMF 2.0 RC3, with ezportal.
The Ajaxchat install without any error, the shoutbox and chat all looks ok, but whenever I click on the chatbox, it appears and than just logoff itself. I tried to login again but it will go thru the whole process till I see the chatbox layout and than immediately it logoff again.
The shoutbox also works intermittently when I enable integrate shoutbox and chatbox, but doesn't shows anything when I type and tried to shout if it is not integrated with chatbox.

Installed on your site, changed file permissions and test both integrated and not integrated and did not experience any of the above.

It seems to be working fine:)

Be sure to give your member groups permissions and you should be all set.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eudemon on May 23, 2010, 11:15:49 AM
Quote from: Brack1 on May 22, 2010, 10:18:04 PM
Have you looked at the FAQs on the very first post for the mod?

oh sorry, i red it now, and the chat room pops up, thx
but i still got some problem with some other members
one when they log into the chat, the whole chat is blank, no nothing, they can't receive any message, the message they type gets sent out, but still nothing show in the chat room, here is error code
otice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 133

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 134

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 135

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 136

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 137

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 138

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 139

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 262


also there is another guy, he doesn't have the problem as the guy above, but when he logs in, he automatically get logged out in 2 seconds, the error message is : invalid ip address

thx
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 23, 2010, 11:21:53 AM
Those errors aren't related to the Chat, this version does not make any edits to the Modifications.english.php file.

You have changed your file permissions to 755 /chat/index.php and /shoutBox/index.php ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eudemon on May 23, 2010, 11:27:06 AM
yes, i did changed the permissions
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mpolo on May 23, 2010, 11:57:09 AM
Quote from: mrtrc266 on May 21, 2010, 01:03:04 AM
Quote
1) I would like to access the chat log/history (messages exchanged by people) and post it daily in a forum topic. Is there any way?
http://yoursite/chat/?view=logs (http://yoursite/chat/?view=logs)

Thank you. I'd like to know if you know of any user mod that can kind of automatize this process to post logs to the forum?

Quote
Quote
2) I use chat and shoutbox integrated. I'd like to make shoutbox visible by forum guests, so the can just read and not shout.
I tried with the relevant permission but it doesn't work: if I set "View shoutBox = yes" the shoutbox is not visible anyway. It becomes visible just when I also check "Access to chat" but in this way guests can also shout (and chat) even if I keep "Can shout" not checked. So is there any way for having guests just read discussions in the shoutbox without they being able to partecipate?
Try exactly what you did and then also edit /chat/lib/config.php from "true" to false"
// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
$config['allowGuestWrite'] = true;


Thanks.  ;) I was trying to deal with the settings but in a different config.php that is under "shoutbox/lib" dir that had no effect (a bit confusing these duplicated files...)

I set also
$config['allowGuestLogins'] = false;
in this way the guests can see the shoutbox but NOT the messages in it.

So I went back to
$config['allowGuestLogins'] = true;
but in this way in the chat window I have thousands of annoying "ChatBot: (350845) enters the Chat." messages, to any pageview of the main forum page.

I could also set
$config['showChannelMessages'] = false;
but in this way I loose these login/logout messages also by registered users, that I'd like to keep.

Summarizing, what I was looking for is a way for having:
- guests see the shoutbox and messages flowing in it, but not shout;
- registered users that are in the chat not being bothered by "guest entering chat" messages every time somebody loads the page where the shoutbox is.
If there is no way for obtaining it with the settings, I'll be very happy if you can suggest me where to modify the code for filtering "enter/leave chat" messages just for guests.

As a suggestion for future releases, would be useful if "View Shoutbox" permission allows the guests to view the shoutbox and ALSO see the messages in it (I understand the problem happens since I have chat and shoutbox integrated).
Otherwise, insert a new setting "Defines if GUEST login/logout and GUEST channel enter/leave are displayed" in the config.php.

Thank you very much!  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Alyen on May 23, 2010, 01:54:52 PM
Fatal error: require() [function.require]: Failed opening required 'xxxxx/httpdocs/shoutBox/lib/class/AJAXChat.php' (include_path='.:') in xxxxx/httpdocs/shoutBox/lib/classes.php  on line 11

this is the error that comes out when I have the mod enabled.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on May 23, 2010, 03:20:30 PM
Quote from: mrtrc266 on May 22, 2010, 10:29:09 AM
@ Lou

You type that in your browser but of course change "yoursite" to the URL of your site.

Yes it will lose focus in however many minutes you have it set to timeout if they're not shouting. The user should simply be able to put their cursor in the input field and it will retrieve the messages cuz now they're back in chat.

Thank you, it is all sorted now. I was looking in disk directory for file that held the log. Now I understand that the messages are stored in sql db and I use the browser to get to them.  I should think more 'out of the box'  than in the box.  :)

Is there a mod, or do you know of a way to delete the chat/shout messages from the db in a bulk fashion? I have been to the SourceForge home for the mod and looked at the online docs, but did not notice a way. Mind you, I know nothing of sql so answer may have been there and I did not recognise it.   ;D

thank you,

Lou  :)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stkee on May 23, 2010, 05:22:30 PM
Quote from: mrtrc266 on May 23, 2010, 11:10:39 AM
Quote from: stkee on May 22, 2010, 10:04:13 AM
Hi, this is a repost because I didn't get any answer for my questions.
I'm currently running SMF 2.0 RC3, with ezportal.
The Ajaxchat install without any error, the shoutbox and chat all looks ok, but whenever I click on the chatbox, it appears and than just logoff itself. I tried to login again but it will go thru the whole process till I see the chatbox layout and than immediately it logoff again.
The shoutbox also works intermittently when I enable integrate shoutbox and chatbox, but doesn't shows anything when I type and tried to shout if it is not integrated with chatbox.

Installed on your site, changed file permissions and test both integrated and not integrated and did not experience any of the above.

It seems to be working fine:)

Be sure to give your member groups permissions and you should be all set.
Hi mrtrc266,
I tried it but it is still the same problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: okae on May 23, 2010, 08:46:39 PM
Quote from: mrtrc266 on May 23, 2010, 10:14:13 AM
Quote from: okae on May 23, 2010, 05:48:14 AM
Quote from: mrtrc266 on May 23, 2010, 01:05:39 AM
Quote from: okae on May 22, 2010, 07:49:07 PM
hi, first at all thx for this great mod, is awesome!! but i have a problem when i install it there is no error messages, all appear to be ok, but mu shoutbox appear like the image
 
Anyone know how i can solved this issue?

Please check out the FAQ's
Here some known issues and fixes caused by either other Mods or   some servers
 

         
  • If you install the Mod   and it looks like it installs fine but the shoutbox and chat room are   blank please READ THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)

for sure i already do that, problem still exist, have you any other ideas?

No more ideas, never seen that one before, what the URL to your site?

first at all, thx for trying to help me, i really apreciate it.

well i install this mod into another smf forum and now works fine, maybe i got that issue because i was trying to install it into an free hosting, dunno, btw now at my true smf forum all works fine.

I have one question, how can i made an auto refresh for shoutbox? because for chat all works fine but for shoutbox i need to refresh the web by pressing the f5 in order to see new shouts; i read some reply to that question but i still dont know how to do that, please can you help me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 23, 2010, 11:01:46 PM
Quote from: Alyen on May 23, 2010, 01:54:52 PM
Fatal error: require() [function.require]: Failed opening required 'xxxxx/httpdocs/shoutBox/lib/class/AJAXChat.php' (include_path='.:') in xxxxx/httpdocs/shoutBox/lib/classes.php  on line 11

this is the error that comes out when I have the mod enabled.


Try it LOL
http://www.simplemachines.org/community/index.php?topic=257973.msg2551006#msg2551006
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 23, 2010, 11:03:25 PM
Quote from: stkee on May 23, 2010, 05:22:30 PM
Quote from: mrtrc266 on May 23, 2010, 11:10:39 AM
Quote from: stkee on May 22, 2010, 10:04:13 AM
Hi, this is a repost because I didn't get any answer for my questions.
I'm currently running SMF 2.0 RC3, with ezportal.
The Ajaxchat install without any error, the shoutbox and chat all looks ok, but whenever I click on the chatbox, it appears and than just logoff itself. I tried to login again but it will go thru the whole process till I see the chatbox layout and than immediately it logoff again.
The shoutbox also works intermittently when I enable integrate shoutbox and chatbox, but doesn't shows anything when I type and tried to shout if it is not integrated with chatbox.

Installed on your site, changed file permissions and test both integrated and not integrated and did not experience any of the above.

It seems to be working fine:)

Be sure to give your member groups permissions and you should be all set.
Hi mrtrc266,
I tried it but it is still the same problem.

This is very odd, I was at your site all morning and I'm there right now it's working fine for me.

How about your other members use it?
What browser are you using?
EDIT: I just changed this from true to false, let me know if that fixed it
// If true, checks if the user IP is the same when logged in:
$config['ipCheck'] = false;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 23, 2010, 11:11:39 PM
Quote from: okae on May 23, 2010, 08:46:39 PM
first at all, thx for trying to help me, i really apreciate it.

well i install this mod into another smf forum and now works fine, maybe i got that issue because i was trying to install it into an free hosting, dunno, btw now at my true smf forum all works fine.

I have one question, how can i made an auto refresh for shoutbox? because for chat all works fine but for shoutbox i need to refresh the web by pressing the f5 in order to see new shouts; i read some reply to that question but i still dont know how to do that, please can you help me?
Yeah, free host could have been the problem.
Actually you shouldn't have to refresh, you should be able to just put your cursor in the input box (where you type) to retrieve the messages. By default after 2 minutes of not typing the user is timed out of chat, you can adjust that here though.....

chat/lib/config.php
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stkee on May 24, 2010, 05:52:34 AM
Quote from: mrtrc266 on May 23, 2010, 11:03:25 PM
Quote from: stkee on May 23, 2010, 05:22:30 PM
Quote from: mrtrc266 on May 23, 2010, 11:10:39 AM
Quote from: stkee on May 22, 2010, 10:04:13 AM
Hi, this is a repost because I didn't get any answer for my questions.
I'm currently running SMF 2.0 RC3, with ezportal.
The Ajaxchat install without any error, the shoutbox and chat all looks ok, but whenever I click on the chatbox, it appears and than just logoff itself. I tried to login again but it will go thru the whole process till I see the chatbox layout and than immediately it logoff again.
The shoutbox also works intermittently when I enable integrate shoutbox and chatbox, but doesn't shows anything when I type and tried to shout if it is not integrated with chatbox.

Installed on your site, changed file permissions and test both integrated and not integrated and did not experience any of the above.

It seems to be working fine:)

Be sure to give your member groups permissions and you should be all set.
Hi mrtrc266,
I tried it but it is still the same problem.

This is very odd, I was at your site all morning and I'm there right now it's working fine for me.

How about your other members use it?
What browser are you using?
EDIT: I just changed this from true to false, let me know if that fixed it
// If true, checks if the user IP is the same when logged in:
$config['ipCheck'] = false;


Hi mrtrc266,

Thanks. It seems to be working fine now.
When I try with my admin account it is working fine.
But my other user reported that whatever they type in chatbox appears on the shoutbox also.
I have already removed integrate chatbox and shoutbox tick.


Thanks very much again for all the assistance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: okae on May 24, 2010, 06:43:54 AM
Quote from: mrtrc266 on May 23, 2010, 11:11:39 PM
Quote from: okae on May 23, 2010, 08:46:39 PM
first at all, thx for trying to help me, i really apreciate it.

well i install this mod into another smf forum and now works fine, maybe i got that issue because i was trying to install it into an free hosting, dunno, btw now at my true smf forum all works fine.

I have one question, how can i made an auto refresh for shoutbox? because for chat all works fine but for shoutbox i need to refresh the web by pressing the f5 in order to see new shouts; i read some reply to that question but i still dont know how to do that, please can you help me?
Yeah, free host could have been the problem.
Actually you shouldn't have to refresh, you should be able to just put your cursor in the input box (where you type) to retrieve the messages. By default after 2 minutes of not typing the user is timed out of chat, you can adjust that here though.....

chat/lib/config.php
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;


but this will not refresh the messages this will only refresh if users are inactive, i want that my shoutbox refresh in real time what users are talking about into the chat, is this possible?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rajeshn on May 24, 2010, 10:11:45 AM
Hi,
I am using headline theme, I installed this mod, but I don't see any chat button ?
Could you pl solve the problem?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 24, 2010, 10:22:42 AM
@ stkee
Did you make sure that membergroup has all the proper permissions?

@ okae
It does refresh in real time, this setting is to save the load on your server especially if you have a very active chat. They way it works is you you cursor is out of the input field to more than 2 minutes you are timed out from the chat so you won't see the updates but everyone that's still chatting will.

Change the 2 to a higher number so you will see the updated messages for a longer period of time.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 24, 2010, 10:49:31 AM
Quote from: rajeshn on May 24, 2010, 10:11:45 AM
Hi,
I am using headline theme, I installed this mod, but I don't see any chat button ?
Could you pl solve the problem?

Thanks
Manual Edits for Headline Theme (http://ajcintegration.co.cc/index.php?topic=53) ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Alyen on May 24, 2010, 11:26:00 AM
Quote from: mrtrc266 on May 23, 2010, 11:01:46 PM
Quote from: Alyen on May 23, 2010, 01:54:52 PM
Fatal error: require() [function.require]: Failed opening required 'xxxxx/httpdocs/shoutBox/lib/class/AJAXChat.php' (include_path='.:') in xxxxx/httpdocs/shoutBox/lib/classes.php  on line 11

this is the error that comes out when I have the mod enabled.


Try it LOL
http://www.simplemachines.org/community/index.php?topic=257973.msg2551006#msg2551006

This problem is solved but now I have another grace does not leave the messages in the chat.

see the image
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 24, 2010, 11:35:34 AM
And you changed the file permissions to 755 again after the reinstall?

/chat/index.php and /shoutBox/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Alyen on May 24, 2010, 03:17:18 PM
yes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 24, 2010, 03:48:26 PM
What mods do you have installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stkee on May 24, 2010, 05:29:04 PM
Quote from: mrtrc266 on May 24, 2010, 10:22:42 AM
@ stkee
Did you make sure that membergroup has all the proper permissions?
.....
Yes, all permissions are set correctly.  Now I noticed that even when I chat in the chatbox it will also appear in the shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 24, 2010, 06:07:20 PM
Quote from: stkee on May 24, 2010, 05:29:04 PM
Quote from: mrtrc266 on May 24, 2010, 10:22:42 AM
@ stkee
Did you make sure that membergroup has all the proper permissions?
.....
Yes, all permissions are set correctly.  Now I noticed that even when I chat in the chatbox it will also appear in the shoutbox.

Just checked and it was doing the same for me, just reinstalled and it seems to be working now
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aaraon on May 24, 2010, 06:33:08 PM
Greetings

I'm a  little problem. My chat is showing some strange errors from a time now.

1º appears  the 403 error when trying to send a link, but I left the option to send  links as permitted.
2º every time I send a " looks like this \" yes it put a \  before

Link to the chat
http://www.falerpg.com.br/forum/chat/index.php (http://www.falerpg.com.br/forum/chat/index.php)

Excuse my English, I'm a  little rusty.

I thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eudemon on May 24, 2010, 06:34:41 PM
Quote from: Eudemon369 on May 23, 2010, 11:15:49 AM

oh sorry, i red it now, and the chat room pops up, thx
but i still got some problem with some other members
one when they log into the chat, the whole chat is blank, no nothing, they can't receive any message, the message they type gets sent out, and i can see what he has sent , but still nothing show in his chat room, here is error code
otice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 133

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 134

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 135

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 136

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 137

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 138

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 139

Notice: Undefined variable: scripturl in /home/kumakun1/public_html/forum/Themes/default/languages/Modifications.english.php on line 262


also there is another guy, he doesn't have the problem as the guy above, but when he logs in, he automatically get logged out in 2 seconds, the error message is : invalid ip address

thx

just additional info
i just found out when i change my forum language to something other than english
the first problem occurs, even tho i have that language installed in my smf forum
any idea what to do?

thx
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 24, 2010, 06:51:19 PM
Quote from: aaraon on May 24, 2010, 06:33:08 PM
Greetings
I'm a  little problem. My chat is showing some strange errors from a time now.

1º appears  the 403 error when trying to send a link, but I left the option to send  links as permitted.
http://ajcintegration.co.cc/index.php/topic,52.msg63.html#msg63 (http://ajcintegration.co.cc/index.php/topic,52.msg63.html#msg63)

Quote2º every time I send a " looks like this \" yes it put a \  before
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Slashes_before_apostrophes (http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Slashes_before_apostrophes)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 24, 2010, 07:44:23 PM
Quote from: Eudemon369 on May 24, 2010, 06:34:41 PM

also there is another guy, he doesn't have the problem as the guy above, but when he logs in, he automatically get logged out in 2 seconds, the error message is : invalid ip address

just additional info
i just found out when i change my forum language to something other than english
the first problem occurs, even tho i have that language installed in my smf forum
any idea what to do?

thx
Regarding the IP issue, see a couple posts back
/chat/lib/config.php change true to false
// If true, checks if the user IP is the same when logged in:
$config['ipCheck'] = true;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aaraon on May 24, 2010, 08:24:51 PM
Problem totally solved by mrtrc266. Thanks a lot man!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 24, 2010, 08:28:27 PM
Quote from: aaraon on May 24, 2010, 08:24:51 PM
Problem totally solved by mrtrc266. Thanks a lot man!

You're very welcome! Hope you and your members enjoy the Chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rajeshn on May 24, 2010, 09:03:13 PM
Quote from: mrtrc266 on May 24, 2010, 10:49:31 AM
Quote from: rajeshn on May 24, 2010, 10:11:45 AM
Hi,
I am using headline theme, I installed this mod, but I don't see any chat button ?
Could you pl solve the problem?

Thanks
Manual Edits for Headline Theme (http://ajcintegration.co.cc/index.php?topic=53) ;)

Hi,
Thanks for the update. I wil check it out.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: taysan on May 24, 2010, 11:44:17 PM
I'm sure it's somewhere in here (although I have searched), but what does this site: http://4tmu.ir/forum/index.php have to do with Ajaxchat?

It is a link 'hidden' in the Shoutbox in the text line 'AJAX Chat © blueimp.net Integrated with SMF" showing right below the text entry box.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 24, 2010, 11:53:10 PM
Quote from: taysan on May 24, 2010, 11:44:17 PM
I'm sure it's somewhere in here (although I have searched), but what does this site: http://4tmu.ir/forum/index.php (http://4tmu.ir/forum/index.php) have to do with Ajaxchat?

It is a link 'hidden' in the Shoutbox in the text line 'AJAX Chat © blueimp.net Integrated with SMF" showing right below the text entry box.

That is the site to the Author of AJAX Chat Integration. .HuNTeR. (http://www.simplemachines.org/community/index.php?action=profile;u=149098)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: millsys123 on May 25, 2010, 12:10:29 AM
Hoq do you feel about using AJAX as an interactive web application?http://www.magicalmind.org/Colloidal_Silver.html (http://www.magicalmind.org/Colloidal_Silver.html). We would to animate the
graphic on the swing. What advantage woúld SM tech bring?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 25, 2010, 12:19:21 AM
Quote from: millsys123 on May 25, 2010, 12:10:29 AM
Hoq do you feel about using AJAX as an interactive web application?http://www.magicalmind.org/Colloidal_Silver.html (http://www.magicalmind.org/Colloidal_Silver.html). We would to animate the
graphic on the swing. What advantage woúld SM tech bring?

Sorry, didn't understand a word of that?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Alyen on May 25, 2010, 02:42:15 AM
Quote from: mrtrc266 on May 24, 2010, 03:48:26 PM
What mods do you have installed?

Member Color Link      3.0.8
SimplePortal      2.3.2
Pretty URLs      1.0
Users Online Today      1.5.4
AjaxChat Integration      3.2.1 (modified for SMF 2 RC3)


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lam0ter0 on May 25, 2010, 04:40:20 AM
Sir i have a problem, i have already installed AjaxChat successfully but i got this error

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F9t0hah.jpg&hash=c7b1bef75654d1e84fdbe16708de818992279610)

I'm using smf 2.0 RC3
what should i do now?.. Thanks. .
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stkee on May 25, 2010, 06:51:44 AM
Quote from: mrtrc266 on May 24, 2010, 06:07:20 PM
Quote from: stkee on May 24, 2010, 05:29:04 PM
Quote from: mrtrc266 on May 24, 2010, 10:22:42 AM
@ stkee
Did you make sure that membergroup has all the proper permissions?
.....
Yes, all permissions are set correctly.  Now I noticed that even when I chat in the chatbox it will also appear in the shoutbox.
Just checked and it was doing the same for me, just reinstalled and it seems to be working now


Thanks. I just check and the old problem of auto logout and shoutbox not showing anything when I type came back again. Please advice.

Ok. I just did the following edit as per your previous post. Seems to be working. Will monitor further.


Code: [Select]
// If true, checks if the user IP is the same when logged in:
$config['ipCheck'] = false;«

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 25, 2010, 10:34:31 AM
Quote from: Alyen on May 25, 2010, 02:42:15 AM
Quote from: mrtrc266 on May 24, 2010, 03:48:26 PM
What mods do you have installed?

Member Color Link      3.0.8
SimplePortal      2.3.2
Pretty URLs      1.0
Users Online Today      1.5.4
AjaxChat Integration      3.2.1 (modified for SMF 2 RC3)

Did you add this to the VERY TOP of your .htaccess file (the same .htaccess where your SSI.php is located) as instructed in the FAQ's?

If you have problems and you also have Pretty URL's installed please READ THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 25, 2010, 10:37:52 AM
Quote from: Lam0ter0 on May 25, 2010, 04:40:20 AM
Sir i have a problem, i have already installed AjaxChat successfully but i got this error


I'm using smf 2.0 RC3
what should i do now?.. Thanks. .

1 page back another user had the same problem, a simply uninstall / re-install seemed to fix it for some reason.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Alyen on May 25, 2010, 12:55:57 PM
Quote from: mrtrc266 on May 25, 2010, 10:34:31 AM
Quote from: Alyen on May 25, 2010, 02:42:15 AM
Quote from: mrtrc266 on May 24, 2010, 03:48:26 PM
What mods do you have installed?

Member Color Link      3.0.8
SimplePortal      2.3.2
Pretty URLs      1.0
Users Online Today      1.5.4
AjaxChat Integration      3.2.1 (modified for SMF 2 RC3)

Did you add this to the VERY TOP of your .htaccess file (the same .htaccess where your SSI.php is located) as instructed in the FAQ's?

If you have problems and you also have Pretty URL's installed please READ THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536)

My .htaccess

# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: May 5, 2010, 7:48

[b]RewriteRule ^chat/?$ ./chat/index.php [L,QSA][/b]

RewriteEngine on
RewriteBase /

# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(findmember|forum|portal|groups|help|helpadmin|im|jseditor)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jsmodify|jsoption|lock|lockvoting|login|login2|logout|markasread)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(notifyboard|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|sendtopic|sitemap|smstats)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(suggest|spellcheck|splittopics|stats|sticky|theme|trackip|about:mozilla)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(who|\.xml|xmlhttp)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

# Sitemap
RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml

# Redirecional error
ErrorDocument 400 /index.php
ErrorDocument 404 /index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 25, 2010, 01:40:10 PM
Put that at the very top (first line) of your .htaccess file

RewriteRule ^chat/?$   ./chat/index.php [L,QSA]
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
#   http://code.google.com/p/prettyurls/
# .htaccess file generated   automatically on: May 5, 2010, 7:48

RewriteEngine on
RewriteBase /

#   Rules for: actions
RewriteRule   ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(findmember|forum|portal|groups|help|helpadmin|im|jseditor)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(jsmodify|jsoption|lock|lockvoting|login|login2|logout|markasread)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(notifyboard|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(reporttm|requestmembers|restoretopic|search|search2|sendtopic|sitemap|smstats)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(suggest|spellcheck|splittopics|stats|sticky|theme|trackip|about:mozilla)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(who|\.xml|xmlhttp)/?$ ./index.php?pretty;action=$1 [L,QSA]

#   Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$   ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule   ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2   [L,QSA]

# Rules for: topics
RewriteRule   ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$   ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule   ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$   ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD   ENDS

# Sitemap
RewriteRule ^sitemap.xml$   /forum/index.php?action=sitemap;xml

# Redirecional error
ErrorDocument   400 /index.php
ErrorDocument 404 /index.php[L,QSA]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Alyen on May 25, 2010, 02:01:49 PM
Quote from: mrtrc266 on May 25, 2010, 01:40:10 PM
Put that at the very top (first line) of your .htaccess file

RewriteRule ^chat/?$   ./chat/index.php [L,QSA]
# PRETTYURLS MOD BEGINS
# Pretty URLs mod
#   http://code.google.com/p/prettyurls/
# .htaccess file generated   automatically on: May 5, 2010, 7:48

RewriteEngine on
RewriteBase /

#   Rules for: actions
RewriteRule   ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(findmember|forum|portal|groups|help|helpadmin|im|jseditor)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(jsmodify|jsoption|lock|lockvoting|login|login2|logout|markasread)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(mergetopics|mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(notifyboard|openidreturn|pm|post|post2|printpage|profile|quotefast)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(quickmod|quickmod2|recent|register|register2|reminder|removepoll|removetopic2)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(reporttm|requestmembers|restoretopic|search|search2|sendtopic|sitemap|smstats)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(suggest|spellcheck|splittopics|stats|sticky|theme|trackip|about:mozilla)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(about:unknown|unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile)/?$   ./index.php?pretty;action=$1 [L,QSA]
RewriteRule   ^(who|\.xml|xmlhttp)/?$ ./index.php?pretty;action=$1 [L,QSA]

#   Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$   ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule   ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2   [L,QSA]

# Rules for: topics
RewriteRule   ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$   ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule   ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$   ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD   ENDS

# Sitemap
RewriteRule ^sitemap.xml$   /forum/index.php?action=sitemap;xml

# Redirecional error
ErrorDocument   400 /index.php
ErrorDocument 404 /index.php[L,QSA]


to being equal, when I click on Shout goes blank table of messages.

if you can by in a list of files that have 777 permissions ter so you can review.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 25, 2010, 02:24:08 PM
It 755 for /chat/index.php and /shoutBox/index.php

Change your language to English and see what happens.

If you like you can send me a temp admin account and temp FTP details and I'll take a look.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lam0ter0 on May 25, 2010, 08:01:16 PM
Quote from: mrtrc266 on May 25, 2010, 10:37:52 AM
Quote from: Lam0ter0 on May 25, 2010, 04:40:20 AM
Sir i have a problem, i have already installed AjaxChat successfully but i got this error


I'm using smf 2.0 RC3
what should i do now?.. Thanks. .

1 page back another user had the same problem, a simply uninstall / re-install seemed to fix it for some reason.

I've already uninstall / re-install it sir, but still there is an error
Fetal error:blah.. blah... blah...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F25ztq42.jpg&hash=2abba3c2dc2994911d86ec5f1fe76c629ec590df)

i don't know how to fix it..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 25, 2010, 08:33:19 PM
@ Lam0ter0

This might be an issue with your free host?

If you like you can send me a temp admin account and temp FTP details   and I'll take a look.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lam0ter0 on May 25, 2010, 09:43:43 PM
ok sir i'll just PM you..

Edit:Sir mrtrc266 do you receive my private message?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 25, 2010, 10:22:35 PM
Go it, will post back in a bit
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 25, 2010, 10:50:04 PM
@ Lam
It's seems something is seriously wrong with your site.

1. I can see that you have mods installed (See pic package_list)

2. There are no mods in your package manager. (See pic installed_packages)

3. For some reason the chat folder won't upload any of the necessary folders (See pic chat_folder) and notice the file size 0, those are all supposed to be folders containing the files required to run the chat.

4. You might wanna contact your host or try a different Free Host

5. I used http://xtreemhost.com/ (http://xtreemhost.com/) for quite some time and still do on a couple test sites, never had any probs.
Title: Clearing Chat and Shout Histories
Post by: Lou69 on May 25, 2010, 11:14:13 PM

mrtrc266


I have seen asked before how to clear histories and have not seen an answer to the question. After searching SourceForge

http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/3344083

it looks like the below can be entered via phpMyAdmin and you can clear the histories of chat and shout.


You have to run a MySQL query on the ajax_chat_messages table in your selected database.

Run the following query to clear all chat messages.

TRUNCATE TABLE `ajax_chat_messages`;
ALTER TABLE `ajax_chat_messages` AUTO_INCREMENT = 1


Are there functions within SMF that will accomplish the same without needing to go to phpMyAdmin? Can SMF be made to clear the chat and shout histories?

Best regards,

Lou

:)
Title: Clearing Chat and Shout Histories
Post by: Lou69 on May 26, 2010, 01:19:36 AM


mrtrc266,

After digging into the bowels of SourceForge for a while and then playing with the phpMyAdmin, which is found in the CP, the following when entered in the box of the SQL tab, will clear the shout histories and rebuild its table. At least for Ajax 3.2.1 for RC 3.

Go to phpMyAdmin

Position on the smf_ajaxshout_messages table first, select the SQL tab, clear the box and then enter the following

TRUNCATE TABLE `smf_ajaxshout_messages`;
ALTER TABLE `smf_ajaxshout_messages` AUTO_INCREMENT = 1

and then click on 'Go'

While I did not try this on the chat messages, I will guess that the same would hold true for the chat histories but use the table named: smf_ajaxchat_messages

and enter the following into the box of the SQL tab

TRUNCATE TABLE `smf_ajaxchat_messages`;
ALTER TABLE `smf_ajaxchat_messages` AUTO_INCREMENT = 1


Do you see any issues with clearing the history this way. Can this be done in SMF and have a click button assigned to perform the function?


Best regards,

Lou   :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: okae on May 26, 2010, 06:58:26 AM
Quote from: mrtrc266 on May 24, 2010, 10:22:42 AM
@ stkee
Did you make sure that membergroup has all the proper permissions?

@ okae
It does refresh in real time, this setting is to save the load on your server especially if you have a very active chat. They way it works is you you cursor is out of the input field to more than 2 minutes you are timed out from the chat so you won't see the updates but everyone that's still chatting will.

Change the 2 to a higher number so you will see the updated messages for a longer period of time.



thx, now i understand how it works.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 26, 2010, 10:02:48 AM
@ Lou
Yes,  you can run that query in phpMyadmin and it will clear the chat.
It would be nice to make a custom /clear command but I'm not sure how?

Also there is a setting in /chat/lib/config.php that will purge your history every X amount of days, change true to false and set for however many days you want.
// Defines if old messages are purged from the database:
$config['logsPurgeLogs'] = false;
// Max time difference in days for old messages before they are purged from the database:
$config['logsPurgeTimeDiff'] = 365;


@ okae
Glad you got it going, Enjoy :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ptmuldoon on May 26, 2010, 01:53:52 PM
I'm sure this should be possibly either through the css or a template edit.  But is it possible increase the height of input area to be multiple lines/text area?  I was able to search and add size="100" to increase the input width, but unsure on the the height.

<input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" size="200"/>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kkattfish on May 26, 2010, 03:48:13 PM
smf 2.0 rc3 with ajax chat 3.2.1 installed

sometimes users and myself will type in a shout and hit enter and nothing goes into the shoutbox but if you type it again it will usually show up in the sb.  sometimes you have to type it 3 or 4 times.  any idea what could be causing this?
also i have changed the default time to display messages and the timeout already so that members can see more shouts. 
i only use the shoutbox the chat is not used.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Shankirili on May 27, 2010, 11:00:27 AM
Quote from: mrtrc266 on May 12, 2010, 11:00:31 AM
Quote from: Shankirili on May 12, 2010, 03:32:05 AM
Thanks for the link, it seems to be exactly what I was looking for! I'll give it a try and tell you if it work!

EDIT : I gave it a quick try and it's not working but the thread is a bit old and it should work with some updates, I'll try to make it work and get you the workaround!

Cool, post it if you get it going and I'll add it to ~AJAX Chat Integration FAQ's   & Tips-N-Tricks~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

I finally had some time to make it work!

I simplified the existing solution and cut off the popup box functionality.

In the end it's almost exactly what I was looking for :
   − multiple code for the same smiley
   − shown and hidden (but still usable) smileys
   
Modifications:

In config.js

Before: // Defines the available sounds loaded on chat start:"
Add:
   // Defines whether the associated emoticon will display (1 will display, 0 is hidden):
emoticonDisplay: new Array(
0,
1,
0,
0,
1,
...
1,
0
),

   
This array defines a smiley should be shown (1) or hidden (0) : you have to define one number for each smiley in the emoticonCodes array.

If you want to have multiple code for the same smiley


Find:

// Defines the list of allowed emoticon codes:

emoticonCodes: new Array(

and

// Defines the list of emoticon files associated with the emoticon codes:

emoticonFiles: new Array(


in these arrays you have the codes (in emoticonCodes) and the files (in emoticonFiles) for each smiley, if you want to have multiple codes for one smiley, add each code and file in the arrays.
A quick example: I have the smiley 'grin.png' associated with the code ':D' and I want it to be associated to ':D', ':−D', ':−d' and ':d'
emoticonCodes array is changed to this:

// Defines the list of allowed emoticon codes:

emoticonCodes: new Array(
...
':D',
':−D',
':−d',
':d',
...

and emoticonFiles to :

// Defines the list of emoticon files associated with the emoticon codes:

emoticonFiles: new Array(
...
'grin.png',
'grin.png',
'grin.png',
'grin.png',
...



END OF If you want to have multiple code for the same smiley

In chat.js

After: emoticonFiles: null,
Add: emoticonDisplay: null,

After: this.emoticonFiles = config['emoticonFiles'];

Add:   this.emoticonDisplay = config['emoticonDisplay'];

Find:
   initEmoticons: function() {
for(var i=0; i<this.emoticonCodes.length; i++) {
// Replace specials characters in emoticon codes:
this.emoticonCodes[i] = this.encodeSpecialChars(this.emoticonCodes[i]);
if(this.dom['emoticonsContainer']) {
this.updateDOM(
'emoticonsContainer',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '"/></a>'
);
}
}
},

   
Replace by:
   initEmoticons: function() {
for(var i=0; i<this.emoticonCodes.length; i++) {
// Replace specials characters in emoticon codes:
this.emoticonCodes[i] = this.encodeSpecialChars(this.emoticonCodes[i]);
if(this.emoticonDisplay[i] == 1){
if(this.dom['emoticonsContainer']) {
this.updateDOM(
'emoticonsContainer',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '"/></a>'
);
}
}
}
},

   
If you want to add space between smileys, you can change
+ '"/></a>'
by
+ '"/></a>&nbsp;'

And that should be ok! Tell me if there is any problem with that!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 27, 2010, 11:44:15 AM
@ ptmuldoon

Try add a height here, /Themes/default/css/index.css
input, button, select, textarea {

@kkattfish
Does this happen after you've been logged in for awhile or does it do it right away?

@
Shankirili
THAT'S AWESOME! I haven't played with it but I will as soon as I get home from work, it will also be added to the FAQ's

Thank you very much for your contributions.

Now....if you could just get the smileys to integrate with SMF's smileys you would be GOD! ;) LOL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kkattfish on May 27, 2010, 12:12:47 PM
Quote from: mrtrc266 on May 27, 2010, 11:44:15 AM
@kkattfish
Does this happen after you've been logged in for awhile or does it do it right away?


i guess usually after i have been logged in for a while since i never log out of my forum really.  for instance when i go to the forum in the morning, i will type and it will usually make me shout twice before showing up.  then later in the day i will get into a conversation and sometimes during that chat i will have to type the shout twice, but most of the time it will go on the first try.  its multiple users as well not just myself. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: netjerk on May 27, 2010, 12:45:57 PM
I am running SMF V2 RC2 with Curve Black theme. Tried install below but getting errors as shown below. Can anyone help to guide me how to resolve this? Should I go ahead with installation? Thanks

AjaxChat Integration 3.2.1
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

AjaxChat Integration 3.2.1 (modified for SMF 2 RC3)
Error in Package Installation
Detail
7.     Execute Modification     ./Sources/Subs.php     Test failed
      1.    Add After    ./Sources/Subs.php             Test successful
      2.    Add After    ./Sources/Subs.php             Test failed

Install in Other Themes
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
CurveBlack
      Execute Modification    ./Themes/Curve_Black/index.template.php    Test successful
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Shankirili on May 27, 2010, 01:00:59 PM
Quote from: mrtrc266 on May 27, 2010, 11:44:15 AM
Thank you very much for your contributions.

Now....if you could just get the smileys to integrate with SMF's smileys you would be GOD! ;) LOL

You're welcome, I'm glad to help, especially because this topic had already help me a lot!

For the SMF's smiley integration it has to be possible but I won't try to do so, I made what I wanted to and that's ok for me!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mem1988 on May 27, 2010, 05:19:58 PM
hello,
i just installed this mod.
it only shows 10 posts in shoutbox.
how can i make that it shows more than 10 posts?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: andrew84uk on May 27, 2010, 06:39:05 PM
Thanks for the great mod, how would I go about reducing the number of lines it shows?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 27, 2010, 06:41:18 PM
Quote from: andrew84uk on May 27, 2010, 06:39:05 PM
Thanks for the great mod, how would I go about reducing the number of lines it shows?

Can you explain a bit more what you are asking. Have you looked the the FAQs in the first post?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: andrew84uk on May 27, 2010, 06:54:39 PM
Quote from: Brack1 on May 27, 2010, 06:41:18 PM
Quote from: andrew84uk on May 27, 2010, 06:39:05 PM
Thanks for the great mod, how would I go about reducing the number of lines it shows?

Can you explain a bit more what you are asking. Have you looked the the FAQs in the first post?

See attached file, 1 to 8 lines can be displayed.  I want only to display lets say 4 lines.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on May 27, 2010, 07:35:45 PM
Quote from: kkattfish on May 27, 2010, 12:12:47 PM
Quote from: mrtrc266 on May 27, 2010, 11:44:15 AM
@kkattfish
Does this happen after you've been logged in for awhile or does it do it right away?


i guess usually after i have been logged in for a while since i never log out of my forum really.  for instance when i go to the forum in the morning, i will type and it will usually make me shout twice before showing up.  then later in the day i will get into a conversation and sometimes during that chat i will have to type the shout twice, but most of the time it will go on the first try.  its multiple users as well not just myself.

I am having the same issue. Even during active, ongoing shouts, there is a delay of 4 or so seconds before message is displayed  or it takes an additional tap on the Enter key.

This occurs even if only two people are in chat.

Lou
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: netjerk on May 27, 2010, 10:21:52 PM
Quote from: netjerk on May 27, 2010, 12:45:57 PM
I am running SMF V2 RC2 with Curve Black theme. Tried install below but getting errors as shown below. Can anyone help to guide me how to resolve this? Should I go ahead with installation? Thanks

AjaxChat Integration 3.2.1
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

AjaxChat Integration 3.2.1 (modified for SMF 2 RC3)
Error in Package Installation
Detail
7.     Execute Modification     ./Sources/Subs.php     Test failed
      1.    Add After    ./Sources/Subs.php             Test successful
      2.    Add After    ./Sources/Subs.php             Test failed

Install in Other Themes
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
CurveBlack
      Execute Modification    ./Themes/Curve_Black/index.template.php    Test successful

After proceed installation with AjaxChat Integration 3.2.1 (modified for SMF 2 RC3) still not able to see the chat... Anyone can help me please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 28, 2010, 01:12:46 AM
Quote from: Shankirili on May 27, 2010, 01:00:59 PM
Quote from: mrtrc266 on May 27, 2010, 11:44:15 AM
Thank you very much for your contributions.

Now....if you could just get the smileys to integrate with SMF's smileys you would be GOD! ;) LOL

You're welcome, I'm glad to help, especially because this topic had already help me a lot!

For the SMF's smiley integration it has to be possible but I won't try to do so, I made what I wanted to and that's ok for me!

Still haven't had a chance to play with it, was a loooong 13 hr day. Will have to mess around on Tue-Wed this week, thanks again for you contributions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 28, 2010, 01:14:45 AM
Quote from: mem1988 on May 27, 2010, 05:19:58 PM
hello,
i just installed this mod.
it only shows 10 posts in shoutbox.
how can i make that it shows more than 10 posts?

/chat/lib/config.php is where you'll find that, how long to display the messages for and many more settings.
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 28, 2010, 01:17:09 AM
Quote from: andrew84uk on May 27, 2010, 06:39:05 PM
Thanks for the great mod, how would I go about reducing the number of lines it shows?

In the Shout Box just play with the height for it to display 4 message
Find /chat/css/shoutbox.css
#ajaxChatContent #ajaxChatChatList {
height:169px;
overflow:auto;
}




Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 28, 2010, 01:20:17 AM
Quote from: netjerk on May 27, 2010, 10:21:52 PM
Quote from: netjerk on May 27, 2010, 12:45:57 PM
I am running SMF V2 RC2 with Curve Black theme. Tried install below but getting errors as shown below. Can anyone help to guide me how to resolve this? Should I go ahead with installation? Thanks

AjaxChat Integration 3.2.1
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

AjaxChat Integration 3.2.1 (modified for SMF 2 RC3)
Error in Package Installation
Detail
7.     Execute Modification     ./Sources/Subs.php     Test failed
      1.    Add After    ./Sources/Subs.php             Test successful
      2.    Add After    ./Sources/Subs.php             Test failed

Install in Other Themes
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
CurveBlack
      Execute Modification    ./Themes/Curve_Black/index.template.php    Test successful

After proceed installation with AjaxChat Integration 3.2.1 (modified for SMF 2 RC3) still not able to see the chat... Anyone can help me please?

For any file that failed the test you will have to manually do the edit, go to the page where you downloaded the Mod, select the version you installed and hit "Parse" it will show you what edits needed to be done. This also goes for any other Mods that you install when the files fail the test. Usually means that other Mods have moved the code.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: andrew84uk on May 28, 2010, 03:46:15 AM
Quote from: mrtrc266 on May 28, 2010, 01:17:09 AM
Quote from: andrew84uk on May 27, 2010, 06:39:05 PM
Thanks for the great mod, how would I go about reducing the number of lines it shows?

In the Shout Box just play with the height for it to display 4 message
Find /chat/css/shoutbox.css
#ajaxChatContent #ajaxChatChatList {
height:169px;
overflow:auto;
}


Thanks, works a treat! 85px = 4 lines!!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abidejaz4u on May 28, 2010, 09:37:35 AM
When i installed this mode and check on the box of shout box then i dont have option of
Modification
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 28, 2010, 11:14:43 AM
Quote from: abidejaz4u on May 28, 2010, 09:37:35 AM
When i installed this mode and check on the box of shout box then i dont have option of
Modification


Seem like that was removed possibly if you from a previously installed Mod?
Goto http://yoursite.com/index.php?action=admin;area=modsettings;sa=chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on May 28, 2010, 12:56:51 PM
Quote from: mrtrc266 on May 13, 2010, 12:55:05 AM
@ graaywolf
Glad you got it sorted, enjoy!

darn... the 500 error is back (in the chat window)... i set the 2 files at 755 (and folders)... and it's still happening... AAAAAAARRRRRGGGGGHHHHHHH!!!!!!!!!

"frustrated"



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 28, 2010, 01:02:05 PM
Quote from: graaywolf on May 28, 2010, 12:56:51 PM
Quote from: mrtrc266 on May 13, 2010, 12:55:05 AM
@ graaywolf
Glad you got it sorted, enjoy!

darn... the 500 error is back (in the chat window)... i set the 2 files at 755 (and folders)... and it's still happening... AAAAAAARRRRRGGGGGHHHHHHH!!!!!!!!!

"frustrated"

What was the last thing you did before this started happening? If I remember correctly you had this sorted?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on May 28, 2010, 01:50:31 PM
Quote from: mrtrc266 on May 26, 2010, 10:02:48 AM
@ Lou
Yes,  you can run that query in phpMyadmin and it will clear the chat.
It would be nice to make a custom /clear command but I'm not sure how?

Also there is a setting in /chat/lib/config.php that will purge your history every X amount of days, change true to false and set for however many days you want.
// Defines if old messages are purged from the database:
$config['logsPurgeLogs'] = false;
// Max time difference in days for old messages before they are purged from the database:
$config['logsPurgeTimeDiff'] = 365;



Ah yes, I see that now. It would be much simpler to let SMF do this work, I can set it to True to enable and to 7 for a weekly purging of the chats.

That is much simpler that using phpMyAdmin.  Though I must admit it was a bit fun being back on SourceForge again and learning some more.    ;D


thanks,

Lou    :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abidejaz4u on May 28, 2010, 03:24:22 PM
Quote from: mrtrc266 on May 28, 2010, 11:14:43 AM
Quote from: abidejaz4u on May 28, 2010, 09:37:35 AM
When i installed this mode and check on the box of shout box then i dont have option of
Modification


Seem like that was removed possibly if you from a previously installed Mod?
Goto http://yoursite.com/index.php?action=admin;area=modsettings;sa=chat

i installed it first time
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 29, 2010, 01:18:08 AM
Quote from: abidejaz4u on May 28, 2010, 03:24:22 PM
Quote from: mrtrc266 on May 28, 2010, 11:14:43 AM
Quote from: abidejaz4u on May 28, 2010, 09:37:35 AM
When i installed this mode and check on the box of shout box then i dont have option of
Modification


Seem like that was removed possibly if you from a previously installed Mod?
Goto http://yoursite.com/index.php?action=admin;area=modsettings;sa=chat

i installed it first time

But what other Mods do you have installed?

What happens when you goto http://yoursite.com/index.php?action=admin;area=modsettings;sa=chat ? Of course change "yoursite.com" to your actual site
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CodeMonkey76 on May 29, 2010, 02:53:00 AM
I seem to be having some issues getting this to work on version 1.1.11. 
The parse instructions had me change these files:
./Sources/BoardIndex.php
./Sources/Load.php
./Sources/ModSettings.php
./Sources/ManagePermissions.php
./SSI.php
./Themes/default/index.template.php
./Themes/default/BoardIndex.template.php
./Themes/default/languages/Help.english.php
./Themes/default/languages/Modifications.english.php

I then copied the 'shoutbox' and 'chat' directories over to the forum root directory.  I also copied the Tables_1.1.X.php file over and gave it execute permissions. 

After those changes, when I go to the forums, I get this error:
"Parse error: syntax error, unexpected T_IF" in ./Sources/Load.php on line 1

Can anyone help me walk through this? 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abidejaz4u on May 29, 2010, 08:24:13 AM
Quote from: mrtrc266 on May 29, 2010, 01:18:08 AM
Quote from: abidejaz4u on May 28, 2010, 03:24:22 PM
Quote from: mrtrc266 on May 28, 2010, 11:14:43 AM
Quote from: abidejaz4u on May 28, 2010, 09:37:35 AM
When i installed this mode and check on the box of shout box then i dont have option of
Modification


Seem like that was removed possibly if you from a previously installed Mod?
Goto http://yoursite.com/index.php?action=admin;area=modsettings;sa=chat

i installed it first time

But what other Mods do you have installed?

What happens when you goto http://yoursite.com/index.php?action=admin;area=modsettings;sa=chat ? Of course change "yoursite.com" to your actual site

this link take me into my Administration Center
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 29, 2010, 09:38:53 AM
Quote from: CodeMonkey76 on May 29, 2010, 02:53:00 AM
I seem to be having some issues getting this to work on version 1.1.11. 
The parse instructions had me change these files:
./Sources/BoardIndex.php
./Sources/Load.php
./Sources/ModSettings.php
./Sources/ManagePermissions.php
./SSI.php
./Themes/default/index.template.php
./Themes/default/BoardIndex.template.php
./Themes/default/languages/Help.english.php
./Themes/default/languages/Modifications.english.php

I then copied the 'shoutbox' and 'chat' directories over to the forum root directory.  I also copied the Tables_1.1.X.php file over and gave it execute permissions. 

After those changes, when I go to the forums, I get this error:
"Parse error: syntax error, unexpected T_IF" in ./Sources/Load.php on line 1

Can anyone help me walk through this? 

Install AJAX Chat Integration via your package manager.

1. Delete the /chat and /shoutBox folders.
2. Undo any manual edits that you did.
3. Download AjaxChat Integration_3.2.1.zip (http://custom.simplemachines.org/mods/index.php?mod=1319) to your desktop.
4. Admin/Packages/Download Packages/Upload a Package and upload AjaxChat Integration_3.2.1.zip.
5. Apply and install the Mod.

That should do it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CodeMonkey76 on May 29, 2010, 11:15:47 AM
Quote from: mrtrc266 on May 29, 2010, 09:38:53 AM
That should do it.
Thanks, that made it so much easier.  I'll have to use that for any other mods I install now. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abidejaz4u on May 29, 2010, 11:31:02 AM
now i sending msg in it ....it giving  that errro
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 29, 2010, 11:34:41 AM
Quote from: abidejaz4u on May 29, 2010, 11:31:02 AM
now i sending msg in it ....it giving  that errro


The answer is in the FAQs which is green on the mods first post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: psyxeon on May 29, 2010, 03:44:42 PM
Hi, How is it going?

I was trying to collapse the shoutbox as SUNKING board E.O.T.S.

I just don´t know what to move to make it work.

Thanks in advance.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg62.imageshack.us%2Fimg62%2F3203%2Fcaptureyzl.th.png&hash=1c83e8fbbd9ea720c63ed6aacff869efd5727e26) (http://img62.imageshack.us/my.php?image=captureyzl.png)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg534.imageshack.us%2Fimg534%2F457%2Fupshrink.th.png&hash=c1d0e4b595af95f7f51566c1700816ed3fa3fbf9) (http://img534.imageshack.us/my.php?image=upshrink.png)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 30, 2010, 12:59:27 AM
Quote from: CodeMonkey76 on May 29, 2010, 11:15:47 AM
Quote from: mrtrc266 on May 29, 2010, 09:38:53 AM
That should do it.
Thanks, that made it so much easier.  I'll have to use that for any other mods I install now. :)

Yeah, that's how you should install any Mod. If you get a file that fails the test, then use the Parser to manually to the edit that fails.

Glad you got this sorted, enjoy! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 30, 2010, 01:01:04 AM
Quote from: psyxeon on May 29, 2010, 03:44:42 PM
Hi, How is it going?

I was trying to collapse the shoutbox as SUNKING board E.O.T.S.

I just don´t know what to move to make it work.

Thanks in advance.


Not sure exactly what you mean, this does collapse like Sunking @ EOTS, it actually uses the same collapse script?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abidejaz4u on May 30, 2010, 02:08:12 AM
Quote from: Brack1 on May 29, 2010, 11:34:41 AM
Quote from: abidejaz4u on May 29, 2010, 11:31:02 AM
now i sending msg in it ....it giving  that errro


The answer is in the FAQs which is green on the mods first post.

sorry did`t get u ... what i can do for fix it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on May 30, 2010, 10:34:04 AM
Quote from: mrtrc266 on May 28, 2010, 01:02:05 PM
Quote from: graaywolf on May 28, 2010, 12:56:51 PM
Quote from: mrtrc266 on May 13, 2010, 12:55:05 AM
@ graaywolf
Glad you got it sorted, enjoy!

darn... the 500 error is back (in the chat window)... i set the 2 files at 755 (and folders)... and it's still happening... AAAAAAARRRRRGGGGGHHHHHHH!!!!!!!!!

"frustrated"

What was the last thing you did before this started happening? If I remember correctly you had this sorted?

it started up the next day... ChatBot: error connection status 500... (happens 2 or 3 times then goes away) i did most of the modifications including the smiley button and my own custom smileys... i did nothing that wasn't in the FAQs post except for using my own custom smileys...

SMF version: 1.1.11

Here's what i have installed

1.     AjaxChat Integration
2.    Remove SMF Logo
3.    Ad Managment
4.    Center the Navagation Bar
5.    Welcome Topic Mod
6.    SMF Arcade
7.    Favicon
8.    Copyright & Footer Links | S-Ace
9.    Order News
10.    YouTube BBCode
11.    Enhanced PM Warning Message

all the latest versions

it's really just an annoyance but it does lag bad when it does it...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 30, 2010, 11:06:33 AM
Quote from: abidejaz4u on May 30, 2010, 02:08:12 AM
Quote from: Brack1 on May 29, 2010, 11:34:41 AM
Quote from: abidejaz4u on May 29, 2010, 11:31:02 AM
now i sending msg in it ....it giving  that errro


The answer is in the FAQs which is green on the mods first post.

sorry did`t get u ... what i can do for fix it

On the page where you downloaded the Mod there are BIG PURPLE letter's that say "FAQ" click that and you'll see a couple options to trouble shoot your problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 30, 2010, 11:09:00 AM
@ graaywolf

What's the URL to your site? If you don't have the chat available to guests make me a temp account to your site and PM me the details so I can take a look. I'm off to work soon but will take a look, if not tonight then on Tue.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 30, 2010, 11:42:46 AM
Oops and I thought the FAQs were in green.

I must be going colour blind.

:-[
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pjn on May 30, 2010, 12:40:31 PM
when i open home page i get eror:

QuoteTable 'pjnet_testn.smf_ajaxchat_online' doesn't exist
files: /home/pjnet/domains/test.pjn-il.com/public_html/Sources/Load.php


when i try to install tables iget eror:
QuoteNo database selected
files: /home/pjnet/domains/test.pjn-il.com/public_html/Tables_2.php


i have a-smf2.0rc3
theme core(i installed to this theme with fixed)

thanx!!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: psyxeon on May 30, 2010, 12:49:01 PM
Quote from: mrtrc266 on May 30, 2010, 01:01:04 AM
Quote from: psyxeon on May 29, 2010, 03:44:42 PM
Hi, How is it going?

I was trying to collapse the shoutbox as SUNKING board E.O.T.S.

I just don´t know what to move to make it work.

Thanks in advance.



Not sure exactly what you mean, this does collapse like Sunking @ EOTS, it actually uses the same collapse script?

Na mate I edited the images with paint, that is what i want to achieve, i can only collapse user info.

I want to make it like sunking´s. Collapse  user info + shoutbox.  ;D

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg38.imageshack.us%2Fimg38%2F3203%2Fcaptureyzl.th.png&hash=149cc915051b83941fef70f87ffc63764eea0e97) (http://img38.imageshack.us/my.php?image=captureyzl.png)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tbk22 on May 30, 2010, 01:52:25 PM
I unninstalled this mod to upgrade my forum from RC2 to RC3 and now that I updated my forum and installed this mod again I cant use the chat I just get this error

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg267.imageshack.us%2Fimg267%2F3749%2F1error.png&hash=9729be880ae2de34fa794a5ccde66a669710336d)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 31, 2010, 12:07:14 AM
Quote from: pjn on May 30, 2010, 12:40:31 PM
when i open home page i get eror:

QuoteTable 'pjnet_testn.smf_ajaxchat_online' doesn't exist
files: /home/pjnet/domains/test.pjn-il.com/public_html/Sources/Load.php

when i try to install tables iget eror:
QuoteNo database selected
files: /home/pjnet/domains/test.pjn-il.com/public_html/Tables_2.php

i have a-smf2.0rc3
theme core(i installed to this theme with fixed)

thanx!!!

Did you install this via the package manager? If not please read this post which in about 8 posts above this one.
http://www.simplemachines.org/community/index.php?topic=257973.msg2647337#msg2647337
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 31, 2010, 12:09:31 AM
Quote from: psyxeon on May 30, 2010, 12:49:01 PM
Quote from: mrtrc266 on May 30, 2010, 01:01:04 AM
Quote from: psyxeon on May 29, 2010, 03:44:42 PM
Hi, How is it going?

I was trying to collapse the shoutbox as SUNKING board E.O.T.S.

I just don´t know what to move to make it work.

Thanks in advance.



Not sure exactly what you mean, this does collapse like Sunking @ EOTS, it actually uses the same collapse script?

Na mate I edited the images with paint, that is what i want to achieve, i can only collapse user info.

I want to make it like sunking´s. Collapse  user info + shoutbox.  ;D


Ohhh, not sure how to do that but that would be more of a Coding Support question not related to the AJAX Chat Integration Mod. I'm sure if you ask @ EOTS they would be more than happy to tell you how it's achieved though.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 31, 2010, 12:10:55 AM
Quote from: tbk22 on May 30, 2010, 01:52:25 PM
I unninstalled this mod to upgrade my forum from RC2 to RC3 and now that I updated my forum and installed this mod again I cant use the chat I just get this error

Please read click the link on the same page that you downloaded this Mod from that say "FAQ's in HUGE purple letters, the solution for the 500 Internal Server error is there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abidejaz4u on May 31, 2010, 01:55:05 AM
Quote from: mrtrc266 on May 30, 2010, 11:06:33 AM
Quote from: abidejaz4u on May 30, 2010, 02:08:12 AM
Quote from: Brack1 on May 29, 2010, 11:34:41 AM
Quote from: abidejaz4u on May 29, 2010, 11:31:02 AM
now i sending msg in it ....it giving  that errro


The answer is in the FAQs which is green on the mods first post.

sorry did`t get u ... what i can do for fix it

On the page where you downloaded the Mod there are BIG PURPLE letter's that say "FAQ" click that and you'll see a couple options to trouble shoot your problem.

no on there no FAQ otpion is there
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: paulmagno on May 31, 2010, 06:55:56 AM
Real newbie question, but when I do a manual install of this mod on my cpanel, will I be using the button that says "edit" or the one that says "code edit?"

I've been working hard to learn this stuff since I was chased from another section here for not knowing even the basics... ;D

Thanks in advance for your response...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 31, 2010, 10:04:55 AM
Quote from: abidejaz4u on May 31, 2010, 01:55:05 AM
Quote from: mrtrc266 on May 30, 2010, 11:06:33 AM
Quote from: abidejaz4u on May 30, 2010, 02:08:12 AM
Quote from: Brack1 on May 29, 2010, 11:34:41 AM
Quote from: abidejaz4u on May 29, 2010, 11:31:02 AM
now i sending msg in it ....it giving  that errro


The answer is in the FAQs which is green on the mods first post.

sorry did`t get u ... what i can do for fix it

On the page where you downloaded the Mod there are BIG PURPLE letter's that say "FAQ" click that and you'll see a couple options to trouble shoot your problem.

no on there no FAQ otpion is there
http://custom.simplemachines.org/mods/index.php?mod=1319
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on May 31, 2010, 10:08:07 AM
Quote from: paulmagno on May 31, 2010, 06:55:56 AM
Real newbie question, but when I do a manual install of this mod on my cpanel, will I be using the button that says "edit" or the one that says "code edit?"

I've been working hard to learn this stuff since I was chased from another section here for not knowing even the basics... ;D

Thanks in advance for your response...

Don't to a manual install...

Install AJAX Chat Integration via your package manager, it's as easy as 1-2-3...

1. Download AjaxChat Integration (http://custom.simplemachines.org/mods/index.php?mod=1319) to your desktop.
2. Admin/Packages/Download Packages/Upload a Package and upload AjaxChat Integration_3.2.1.zip.
3. Apply and install the Mod.

That should do it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eudemon on May 31, 2010, 10:42:09 AM
hi sir, thx for your help last time
is there a way to edit
so the mod itself will only display in english, and no other choice
and it won't affect their overall forum default language?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rs6blades on May 31, 2010, 06:15:51 PM
I have it installed with the Shout box and the settings are as the mod says but I am having difficulty in that I can not get it to DISPLAY the text in the Shout Box or the Chat. What am I doing wrong?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: paulmagno on May 31, 2010, 09:45:17 PM
Quote from: mrtrc266 on May 31, 2010, 10:08:07 AM
Quote from: paulmagno on May 31, 2010, 06:55:56 AM
Real newbie question, but when I do a manual install of this mod on my cpanel, will I be using the button that says "edit" or the one that says "code edit?"

I've been working hard to learn this stuff since I was chased from another section here for not knowing even the basics... ;D

Thanks in advance for your response...

Don't to a manual install...

Install AJAX Chat Integration via your package manager, it's as easy as 1-2-3...

1. Download AjaxChat Integration (http://custom.simplemachines.org/mods/index.php?mod=1319) to your desktop.
2. Admin/Packages/Download Packages/Upload a Package and upload AjaxChat Integration_3.2.1.zip.
3. Apply and install the Mod.

That should do it.

I've installed it, but there appears to be a conflict with another mod I have and it simply won't work...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 31, 2010, 09:48:22 PM
Just saying 'It won't work doesn't tell us anything.

What won't work? Were there any errors on install?

Are there any errors in your error log?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 01, 2010, 01:29:00 AM
Quote from: rs6blades on May 31, 2010, 06:15:51 PM
I have it installed with the Shout box and the settings are as the mod says but I am having difficulty in that I can not get it to DISPLAY the text in the Shout Box or the Chat. What am I doing wrong?


What other Mods do you have installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 01, 2010, 01:32:05 AM
Quote from: paulmagno on May 31, 2010, 09:45:17 PM
Quote from: mrtrc266 on May 31, 2010, 10:08:07 AM
Quote from: paulmagno on May 31, 2010, 06:55:56 AM
Real newbie question, but when I do a manual install of this mod on my cpanel, will I be using the button that says "edit" or the one that says "code edit?"

I've been working hard to learn this stuff since I was chased from another section here for not knowing even the basics... ;D

Thanks in advance for your response...

Don't to a manual install...

Install AJAX Chat Integration via your package manager, it's as easy as 1-2-3...

1. Download AjaxChat Integration (http://custom.simplemachines.org/mods/index.php?mod=1319) to your desktop.
2. Admin/Packages/Download Packages/Upload a Package and upload AjaxChat Integration_3.2.1.zip.
3. Apply and install the Mod.

That should do it.

I've installed it, but there appears to be a conflict with another mod I have and it simply won't work...
Quote from: Brack1 on May 31, 2010, 09:48:22 PM
Just saying 'It won't work doesn't tell us anything.

What won't work? Were there any errors on install?

Are there any errors in your error log?


Exactly, please explain what the problem is so we can better assist you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rs6blades on June 01, 2010, 02:16:58 AM
Quote from: mrtrc266 on June 01, 2010, 01:29:00 AM
Quote from: rs6blades on May 31, 2010, 06:15:51 PM
I have it installed with the Shout box and the settings are as the mod says but I am having difficulty in that I can not get it to DISPLAY the text in the Shout Box or the Chat. What am I doing wrong?


What other Mods do you have installed?
Currently have the following:
   Mod Name 
1   SMF Gallery Lite
2   Stop Forum Spam
3   AjaxChat Integration
4   SMF Sitemap
5   Frustrate Your Guests
6   SMF 1.0.19 / 1.1.11 Update
7   Irritate lurkers with 0 posts
8   SMF Trader System
9   Referrals Mod
10   Ad Managment
11   Auto Embed Video Clips
12   Are You Human? Anti-Bot Registration Check
13   Pretty URLs
14   Auto Email Inactive Users
15   Qucik Register
16   simplemp
17   SMF Classifieds
18   Tapatalk SMF Plugin
19   Tagging System
20   Guests Cursor
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 01, 2010, 02:23:48 AM
As explained in the FAQ's on the Mods Home Page (where you downloaded it from)....
QuoteIf you have any problems after installing on   a clean SMF Forum please see the FAQ's for some quick answers
~~~FAQ's~~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)

Add this to the VERY TOP LINE of you .htaccess file (the same .htaccess file where you SSI.php is located)
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

That should do it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rs6blades on June 01, 2010, 02:36:44 AM
nope.
:o
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 01, 2010, 02:39:56 AM
Quote from: rs6blades on June 01, 2010, 02:36:44 AM
nope.
:o

Did you change your file permissions (CHMOD) on these 2 files?
/chat/index.php and /shoutBox/index.php to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rs6blades on June 01, 2010, 02:48:22 AM
i didn't see that part to change to 755 on those 2 files. but I have changed it and no results as of yet. I am getting no display. on the Shout or Chat but everything seems to be good.

Could Pretty URLS Mod be causing this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rs6blades on June 01, 2010, 03:04:23 AM
Well I have disabled pretty urls and Chat is working but Shout box is not
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 01, 2010, 03:12:34 AM
You sure you did the edit to the correct .htaccess file? Will be somthing like.....

/.htaccess

or

/yourforum/.htaccess

If you do that rewrite edit it should work with Pretty URLS. I'm off to bed for now, if you don't get it sorted PM me a temp Admin Account and FTP access and I can take a look in the morning if you like.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rs6blades on June 01, 2010, 03:13:47 AM
I just hit the make Shout and Chat together and it works. It will not work as standalone SHOUT box.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 01, 2010, 03:15:48 AM
Add this file to both /chat and /shoutBox folders

And disregard the above post if it works LOL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rs6blades on June 01, 2010, 03:33:22 AM
I think so but yeah we could set something up for you. Wow as soon as I set the Filter for Pretty URLS Choutbox goes BLANK.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abidejaz4u on June 01, 2010, 09:46:20 AM
i m facing that error

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=146804;image)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 01, 2010, 12:04:51 PM
Quote from: abidejaz4u on June 01, 2010, 09:46:20 AM
i m facing that error

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=146804;image)

Again

the answer is found within the
FAQs
on the first post .
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rs6blades on June 01, 2010, 12:12:32 PM
Mine still isn't. When I turn OFF Pretty URLS it works. When pretty Urls is ON i get blank screens in Shout Box and Chat.

I have done the REWRITE in the htacess file.

Also does this mod have the ability to ALLOW or Deny Access based on number of POSTS?

I have set in permissions but new users with No posts have full access. we want to restrict this based on levels of Activity.

Can anyone tell me why every Board Topic I have is a room in CHAT section?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 01, 2010, 12:14:27 PM
Just replied to your PM rs6
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kmam on June 01, 2010, 05:02:25 PM
 Call to undefined function getShoutBoxContent() in /home2/mycashfr/public_html/mycashfreebieforum/Sources/Load.php(1891) : eval()'d code on line 48  Running smf 1.1.11 any ideas on how to fix?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eudemon on June 01, 2010, 06:54:24 PM
Quote from: Eudemon369 on May 31, 2010, 10:42:09 AM
hi sir, thx for your help last time
is there a way to edit
so the mod itself will only display in english, and no other choice
and it won't affect their overall forum default language
cuz i have problem when members use other languages

may i quote myself so i won't get left out  :-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 01, 2010, 07:11:32 PM
@ Eudemon369

Yes, sorry about that...
Find /chat/lib/config.php
// Available languages:
$config['langAvailable'] = array('ar','bg','bp','ca','cy','cz','de','el','en','es','et','fi','fr','gl','he','hr','hu','in','it','ka','kr','ja','nl','no','pl','ro','ru','sk','sl','sr','sv','tr','uk','zh','zh-tw');

Replace with
// Available languages:
$config['langAvailable'] = array('en');
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 01, 2010, 07:11:54 PM
Quote from: Kmam on June 01, 2010, 05:02:25 PM
Call to undefined function getShoutBoxContent() in /home2/mycashfr/public_html/mycashfreebieforum/Sources/Load.php(1891) : eval()'d code on line 48  Running smf 1.1.11 any ideas on how to fix?

You get any errors on install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on June 02, 2010, 10:00:15 AM
here is a pic of the 500 error... it only happens once in awhile... happens 3 or 4 times then quits... the chat lags bad when it happens... i set index files at 755 but it's still happening...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BoxingChaos on June 02, 2010, 11:00:57 AM
Just for the record, I had to DELETE the CORE THEME on a FRESHLY INSTALLED 2.0 RC3 to get this to install correctly and after deleting the CORE THEME, I installed the package and then
changed file permissions (CHMOD) on these 2 files
/chat/index.php
and
/shoutBox/index.php to 755

I don't know why I had to delete the CORE theme? But I got it to work and that is all that counts.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 02, 2010, 11:09:55 AM
Quote from: graaywolf on June 02, 2010, 10:00:15 AM
here is a pic of the 500 error... it only happens once in awhile... happens 3 or 4 times then quits... the chat lags bad when it happens... i set index files at 755 but it's still happening...

Hey graaywolf, check your error log immediately after you get it again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 02, 2010, 11:11:16 AM
Quote from: BoxingChaos on June 02, 2010, 11:00:57 AM
Just for the record, I had to DELETE the CORE THEME on a FRESHLY INSTALLED 2.0 RC3 to get this to install correctly and after deleting the CORE THEME, I installed the package and then
changed file permissions (CHMOD) on these 2 files
/chat/index.php
and
/shoutBox/index.php to 755

I don't know why I had to delete the CORE theme? But I got it to work and that is all that counts.

That is very odd indeed, never heard that before. Which package?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BoxingChaos on June 02, 2010, 11:20:23 AM
Quote from: mrtrc266 on June 02, 2010, 11:11:16 AM
Quote from: BoxingChaos on June 02, 2010, 11:00:57 AM
Just for the record, I had to DELETE the CORE THEME on a FRESHLY INSTALLED 2.0 RC3 to get this to install correctly and after deleting the CORE THEME, I installed the package and then
changed file permissions (CHMOD) on these 2 files
/chat/index.php
and
/shoutBox/index.php to 755

I don't know why I had to delete the CORE theme? But I got it to work and that is all that counts.

That is very odd indeed, never heard that before. Which package?

I used the Curve friendly as the other one would not even take as it said package not compatible.
No matter how hard I tried, I kept getting error on core theme and there is no mention in the parse about what files to change so I just deleted everything since I am just working on a test forum so I can afford to start from scratch since it is as I said a new test forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 02, 2010, 11:33:40 AM
Quote from: BoxingChaos on June 02, 2010, 11:20:23 AM
Quote from: mrtrc266 on June 02, 2010, 11:11:16 AM
Quote from: BoxingChaos on June 02, 2010, 11:00:57 AM
Just for the record, I had to DELETE the CORE THEME on a FRESHLY INSTALLED 2.0 RC3 to get this to install correctly and after deleting the CORE THEME, I installed the package and then
changed file permissions (CHMOD) on these 2 files
/chat/index.php
and
/shoutBox/index.php to 755

I don't know why I had to delete the CORE theme? But I got it to work and that is all that counts.

That is very odd indeed, never heard that before. Which package?

I used the Curve friendly as the other one would not even take as it said package not compatible.
No matter how hard I tried, I kept getting error on core theme and there is no mention in the parse about what files to change so I just deleted everything since I am just working on a test forum so I can afford to start from scratch since it is as I said a new test forum.

Ohhh, I thought you were talkin about you had to delete the "Core Theme" in the Chat LOL.

Yes as with most Mods they only designed to install clean on Fresh SMF Default Theme (and some Curve Variants). All other themes will have to be manually edited. The reason you can't find what you need when you parse it is because the code in the Core theme is different than in Curve.

You don't have to delete the theme, just choose not to install it on Core, then manually do the edits if you like. I've actually posted them here RC3 Core Manual Edits (http://ajcintegration.co.cc/index.php/topic,10.0.html)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BoxingChaos on June 02, 2010, 12:05:50 PM
Quote from: mrtrc266 on June 02, 2010, 11:33:40 AM
Quote from: BoxingChaos on June 02, 2010, 11:20:23 AM
Quote from: mrtrc266 on June 02, 2010, 11:11:16 AM
Quote from: BoxingChaos on June 02, 2010, 11:00:57 AM
Just for the record, I had to DELETE the CORE THEME on a FRESHLY INSTALLED 2.0 RC3 to get this to install correctly and after deleting the CORE THEME, I installed the package and then
changed file permissions (CHMOD) on these 2 files
/chat/index.php
and
/shoutBox/index.php to 755

I don't know why I had to delete the CORE theme? But I got it to work and that is all that counts.

That is very odd indeed, never heard that before. Which package?

I used the Curve friendly as the other one would not even take as it said package not compatible.
No matter how hard I tried, I kept getting error on core theme and there is no mention in the parse about what files to change so I just deleted everything since I am just working on a test forum so I can afford to start from scratch since it is as I said a new test forum.

Ohhh, I thought you were talkin about you had to delete the "Core Theme" in the Chat LOL.

Yes as with most Mods they only designed to install clean on Fresh SMF Default Theme (and some Curve Variants). All other themes will have to be manually edited. The reason you can't find what you need when you parse it is because the code in the Core theme is different than in Curve.

You don't have to delete the theme, just choose not to install it on Core, then manually do the edits if you like. I've actually posted them here RC3 Core Manual Edits (http://ajcintegration.co.cc/index.php/topic,10.0.html)

Ok  mrtrc266, thanks for the info, This is good to know for future endeavors. TY for showing the manual edits :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 02, 2010, 12:32:41 PM
You're welcome Chaos, BTW I signed up to your site a little while ago....I Love Boxing :D Just get too tied up to remember to check it out from time to time LOL. Just please tell me pacquiao mayweather is going to happen :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on June 02, 2010, 06:49:29 PM
Just noticed the new version was added a couple weeks ago.  Remember, I'm a noob.  Do i uninstall the old one i have, then install the new one?  Or do i just install the new one on top of the old one?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 02, 2010, 06:57:35 PM
Nothing was update, the the Mods Page was updated with a new link to the FAQ's
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on June 02, 2010, 07:23:18 PM
Like I said, I'm a noob, lol.  thanx for the heads up, bud.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scimmiotto on June 03, 2010, 06:04:53 AM
hi to all..how to enable disable forever the sounds in chatbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vmartpk on June 03, 2010, 08:25:08 AM
I have a problem and i cant make sens of it,

It says BLOCKED PAGE in title when i goto Chat and shoutbox dosent appear on my front page either.

Socket error maybe ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scimmiotto on June 03, 2010, 08:29:46 AM
another problem, in my shoutboxthese 2 caracthers appear..how to delete them?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 03, 2010, 10:06:13 AM
Quote from: scimmiotto on June 03, 2010, 06:04:53 AM
hi to all..how to enable disable forever the sounds in chatbox?

Search is your friend ;) I simply typed "sound" in the search on this topic and I found it posted 3 times on how to disable the sounds in the shout box.
http://www.simplemachines.org/community/index.php?action=search2;search=sound;topic=257973
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 03, 2010, 10:07:55 AM
Quote from: vmartpk on June 03, 2010, 08:25:08 AM
I have a problem and i cant make sens of it,

It says BLOCKED PAGE in title when i goto Chat and shoutbox dosent appear on my front page either.

Socket error maybe ?

Did you change you file permissions (CHMOD) to 755 for these 2 files? /chat/index.php and /shoutBox/index.php?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 03, 2010, 10:08:29 AM
Quote from: scimmiotto on June 03, 2010, 08:29:46 AM
another problem, in my shoutboxthese 2 caracthers appear..how to delete them?


Have you manually edited any files?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scimmiotto on June 03, 2010, 10:12:16 AM
Quote from: mrtrc266 on June 03, 2010, 10:08:29 AM
Quote from: scimmiotto on June 03, 2010, 08:29:46 AM
another problem, in my shoutboxthese 2 caracthers appear..how to delete them?


Have you manually edited any files?



Only the config.php and the shoutbox.HTML
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 03, 2010, 10:15:21 AM
Quote from: scimmiotto on June 03, 2010, 10:12:16 AM
Quote from: mrtrc266 on June 03, 2010, 10:08:29 AM
Quote from: scimmiotto on June 03, 2010, 08:29:46 AM
another problem, in my shoutboxthese 2 caracthers appear..how to delete them?

Have you manually edited any files?


Only the config.php and the shoutbox.HTML

rename your shoutbox.html file to shoutbox.html~ and upload a fresh one from the package and see if that gets rid of it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Atrocious Nightmare on June 03, 2010, 11:24:47 AM
Hello, I'll copy from my previous post (on another thread, a wrong one lol):

Quote
Hello,
I'm the co-admin of "darknessavengers.byethost22.com/forums/index.php" forum and we recently got a problem.
It always went well, but since like 10 days or something more the Shoutbox, powered by AJAX Chat, doesn't work anymore.
We did nothing new to break it in some way, it just disappeared. Well, kinda disappeared, you still can see the box where you write and the "context", but not the actual shoutbox, and even if you write in the box and press "Shout" (send), it doesn't seem to work.
It is important for us, so please try to help us as soon as you can :D

My wife wrote already, if I don't go wrong about it, but don't know where, and she asked me to ask for help in the support forum, so here I am :D
She already tried to re-install the shoutbox but it doesn't work. It doesn't seem a problem from Ajax itself but from the SMF forum. I don't know...it seems like SMF is trying to hide it or something.

We really don't have any idea on how to fix it, and we need your help ^-^
We are using SMF 2.0 RC2.

Thanks in advance,
Atrocious Nightmare.

P.S. If this is not the place to write about it, please excuse me, but I found it pretty confusing to find the right place. Oh and sorry for my bad english.

This said, a mod redirected me to the "Mods" section and I ended up on the FAQs of this mod, and tried EVERYTHING.
The problems is still there, and now we on SMF RC3, not on RC2 anymore (yeah we tried updating and reinstalling everything, still nothing).
Pl0x help my wife's getting crazy! xD
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 04, 2010, 12:34:49 AM
@ Atrocious Nightmare

What's the link to your site (PM if you don't want it public).

Also, what other Mods do you have installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scimmiotto on June 04, 2010, 02:51:31 AM
Quote from: mrtrc266 on June 03, 2010, 10:15:21 AM
Quote from: scimmiotto on June 03, 2010, 10:12:16 AM
Quote from: mrtrc266 on June 03, 2010, 10:08:29 AM
Quote from: scimmiotto on June 03, 2010, 08:29:46 AM
another problem, in my shoutboxthese 2 caracthers appear..how to delete them?

Have you manually edited any files?


Only the config.php and the shoutbox.HTML

rename your shoutbox.html file to shoutbox.html~ and upload a fresh one from the package and see if that gets rid of it.

Nothing solved :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Atrocious Nightmare on June 04, 2010, 01:07:39 PM
Quote from: mrtrc266 on June 04, 2010, 12:34:49 AM
@ Atrocious Nightmare

What's the link to your site (PM if you don't want it public).

Also, what other Mods do you have installed?

The link is in the post o.O, or maybe with "site" u don't mean "forum"?
We got only the forum http://darknessavengers.byethost22.com/forums/index.php

And the only other Mod we got is Aeva Media
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: macieks on June 04, 2010, 02:49:21 PM
Hello

shoutbox deleted massage after some hours.... how I can change this to not delete this massage only show last 15-20?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on June 04, 2010, 07:11:02 PM
Hi there mrtrc266. First of all let me say thanks for the awesome shoutbox / chat mod - I've yet to come across a better solution than yours.

Now for a question: I want to access the history for the shoutbox. I found the url to hit for the chat log, but I want the log for the shoutbox itself. Is there a way to access this, short of writing a custom function?

Also, is there a list of all the commands for the chatroom?

Thanks!

bahgheera
http://www.theflipsideforum.com
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 04, 2010, 07:35:14 PM
When in chat go to the bottom right corner and look for the ?

This is where the commands are.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 05, 2010, 12:57:45 AM
Quote from: Atrocious Nightmare on June 04, 2010, 01:07:39 PM
Quote from: mrtrc266 on June 04, 2010, 12:34:49 AM
@ Atrocious Nightmare

What's the link to your site (PM if you don't want it public).

Also, what other Mods do you have installed?

The link is in the post o.O, or maybe with "site" u don't mean "forum"?
We got only the forum http://darknessavengers.byethost22.com/forums/index.php

And the only other Mod we got is Aeva Media

Yeah, sorry I missed the site in your original post. Anyway when I click on your "Chat" button it redirects me to here http://ifastnet.com/notify/2.php

This is the same exact problem I had when I made my first post back on page 5 LOL. I've never had any problems at all since I now use a paid hosting service for $36 a yr. You might wanna contact your host to see what the issue is.


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 05, 2010, 01:00:26 AM
Quote from: macieks on June 04, 2010, 02:49:21 PM
Hello

shoutbox deleted massage after some hours.... how I can change this to not delete this massage only show last 15-20?


Take a look at your /chat/lib/config.php file and adjust to your liking
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on June 05, 2010, 02:03:54 AM
Quote from: Brack1When in chat go to the bottom right corner and look for the ?

Doh! I can't believe thats not the first thing I noticed... sorry for the newb question. :embarrassed:

As for my other question, the log for the shoutbox, still waiting for an answer. Hopefully it's not right in front of my face.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: macieks on June 05, 2010, 07:31:31 AM
Quote from: mrtrc266 on June 05, 2010, 01:00:26 AM
Quote from: macieks on June 04, 2010, 02:49:21 PM
Hello

shoutbox deleted massage after some hours.... how I can change this to not delete this massage only show last 15-20?


Take a look at your /chat/lib/config.php file and adjust to your liking
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;


yes this help me... but what do I need to write an unlimited time?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 05, 2010, 09:50:22 AM
Quote from: macieks on June 05, 2010, 07:31:31 AM
Quote from: mrtrc266 on June 05, 2010, 01:00:26 AM
Quote from: macieks on June 04, 2010, 02:49:21 PM
Hello

shoutbox deleted massage after some hours.... how I can change this to not delete this massage only show last 15-20?


Take a look at your /chat/lib/config.php file and adjust to your liking
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;


yes this help me... but what do I need to write an unlimited time?

You don't want to do unlimited, it will EXTREMELY bog down your chat after awhile when it tries to retrieve all the chat, but just play with the settings to see.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 05, 2010, 09:52:11 AM
Quote from: bahgheera on June 05, 2010, 02:03:54 AM
Quote from: Brack1When in chat go to the bottom right corner and look for the ?

Doh! I can't believe thats not the first thing I noticed... sorry for the newb question. :embarrassed:

As for my other question, the log for the shoutbox, still waiting for an answer. Hopefully it's not right in front of my face.

I you have your Chat and Shout integrate then the URL will pull both, if it's not integrated then a script might have to be written, I'm not sure. Will take a look though.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on June 05, 2010, 10:43:45 AM
Regards legend!

Is it any way to stop blocking and miss text in the shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on June 05, 2010, 03:45:40 PM
Ok, thanks mrtrc.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 06, 2010, 12:43:00 AM
Quote from: rocknroller on June 05, 2010, 10:43:45 AM
Regards legend!

Is it any way to stop blocking and miss text in the shoutbox?

Not sure exactly what you mean???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Perfecta on June 06, 2010, 05:48:05 AM
i just wanna publically thank mrtrc266 for his help in setting this up on my forum,

THANK YOU from everyone on my site!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 06, 2010, 09:41:22 AM
Quote from: Perfecta on June 06, 2010, 05:48:05 AM
i just wanna publically thank mrtrc266 for his help in setting this up on my forum,

THANK YOU from everyone on my site!

You're very welcome, enjoy the Mod. Please post back if you require anymore assistance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on June 06, 2010, 02:32:39 PM
Quote from: mrtrc266 on June 06, 2010, 12:43:00 AM
Quote from: rocknroller on June 05, 2010, 10:43:45 AM
Regards legend!

Is it any way to stop blocking and miss text in the shoutbox?

Not sure exactly what you mean???
Sometime, shoutbox freeze, and you must press F5 to refresh page.  when you write message and press Enter, message sometime disappears.
Usualy when more than five users on the shoutbox.

This is problem for chat makers, but you may have solution?
syr for my bad english.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mikolak on June 06, 2010, 04:49:26 PM
I really like this chat, but what would be awesome is an archive that shows logs from 'Today', 'Yesterday' and such, coz the http://yoursite.com/chat/?view=logs is a bit too complicated when you just want to see what people were talking a couple hours ago
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zrorox on June 06, 2010, 07:02:53 PM
Site: http://neoncafe.co.cc/
SMF Type: SMF 1.1.11
Issue: Cannot post in chat, both embedded one and windowed (tab) chat.

I tried some of what you said including moving .htaccess file (already adding the 2 lines you said), but moving it to the selected folders didn't do a thing...

Can someone help me please? I'm close, but don't know what to do... I can attach any files you need.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Feriscool on June 06, 2010, 10:42:24 PM
PLEASE HELP:

http://www.simplemachines.org/community/index.php?topic=384623.0

PLEASE HELP!

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eudemon on June 06, 2010, 10:52:30 PM
Quote from: mrtrc266 on June 01, 2010, 07:11:32 PM
@ Eudemon369

Yes, sorry about that...
Find /chat/lib/config.php
// Available languages:
$config['langAvailable'] = array('ar','bg','bp','ca','cy','cz','de','el','en','es','et','fi','fr','gl','he','hr','hu','in','it','ka','kr','ja','nl','no','pl','ro','ru','sk','sl','sr','sv','tr','uk','zh','zh-tw');

Replace with
// Available languages:
$config['langAvailable'] = array('en');


after i changed it to 'en' i got this error msg

Parse error: syntax error, unexpected T_VARIABLE in /home/xxxx/public_html/forum/chat/lib/config.php  on line 52

even if i change it back to what it was originally, the error msg still shows, im using flashfxp to directly edit the file, can this cause a problem?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 07, 2010, 01:12:16 AM
Quote from: Feriscool on June 06, 2010, 10:42:24 PM
PLEASE HELP:

http://www.simplemachines.org/community/index.php?topic=384623.0

PLEASE HELP!


Please post what your problem is in the proper board instead of posting links that were posted in the improper board.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 07, 2010, 01:42:31 AM
Quote from: Eudemon369 on June 06, 2010, 10:52:30 PM
Quote from: mrtrc266 on June 01, 2010, 07:11:32 PM
@ Eudemon369

Yes, sorry about that...
Find /chat/lib/config.php
// Available languages:
$config['langAvailable'] = array('ar','bg','bp','ca','cy','cz','de','el','en','es','et','fi','fr','gl','he','hr','hu','in','it','ka','kr','ja','nl','no','pl','ro','ru','sk','sl','sr','sv','tr','uk','zh','zh-tw');

Replace with
// Available languages:
$config['langAvailable'] = array('en');


after i changed it to 'en' i got this error msg

Parse error: syntax error, unexpected T_VARIABLE in /home/kumakun1/public_html/forum/chat/lib/config.php  on line 52

even if i change it back to what it was originally, the error msg still shows, im using flashfxp to directly edit the file, can this cause a problem?

You can replace the files with the original one from the package to restore it. I'm not familiar with  flashfxp but it is highly recommended to use a text editor like Notepad++ when editing your files.

Just to double check I just used the code you posted above and it works fine.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 07, 2010, 01:46:21 AM
Quote from: rocknroller on June 06, 2010, 02:32:39 PM
Quote from: mrtrc266 on June 06, 2010, 12:43:00 AM
Quote from: rocknroller on June 05, 2010, 10:43:45 AM
Regards legend!

Is it any way to stop blocking and miss text in the shoutbox?

Not sure exactly what you mean???
Sometime, shoutbox freeze, and you must press F5 to refresh page.  when you write message and press Enter, message sometime disappears.
Usualy when more than five users on the shoutbox.

This is problem for chat makers, but you may have solution?
syr for my bad english.

You're using Flash Chat AND AJAX Chat? I would imagine that would create some problems, is there a particular reason you're using both?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 07, 2010, 01:51:45 AM
Quote from: Mikolak on June 06, 2010, 04:49:26 PM
I really like this chat, but what would be awesome is an archive that shows logs from 'Today', 'Yesterday' and such, coz the http://yoursite.com/chat/?view=logs (http://yoursite.com/chat/?view=logs) is a bit too complicated when you just want to see what people were talking a couple hours ago

By default in the chat/lib/config.php initially it retrieves that last 10 chats from the last hour, you use the pull down menu to select more dates, times and hours.

Here is the default
// Defines the max time difference in hours for logs when no period or search condition is given:
$config['logsRequestMessagesTimeDiff'] = 1;
// Defines how many logs are returned on each logs request:
$config['logsRequestMessagesLimit'] = 10;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on June 07, 2010, 05:44:37 AM
Quote from: mrtrc266 on June 07, 2010, 01:46:21 AM
Quote from: rocknroller on June 06, 2010, 02:32:39 PM
Quote from: mrtrc266 on June 06, 2010, 12:43:00 AM
Quote from: rocknroller on June 05, 2010, 10:43:45 AM
Regards legend!

Is it any way to stop blocking and miss text in the shoutbox?

Not sure exactly what you mean???
Sometime, shoutbox freeze, and you must press F5 to refresh page.  when you write message and press Enter, message sometime disappears.
Usualy when more than five users on the shoutbox.

This is problem for chat makers, but you may have solution?
syr for my bad english.

You're using Flash Chat AND AJAX Chat? I would imagine that would create some problems, is there a particular reason you're using both?

Hm? You do not have problem with ajax chat blocking? Reason is because chat blocking sometimes, ajax chat is shoutbox only on site, flash chat is for pivate conversation. Few people told me that they have the same situation, ajax chat is cool and stay on my site, this is not big problem.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 07, 2010, 12:06:05 PM
@ rocknroller

This could be the problem, by default if your cursor is out of the input field to more than 2 minutes you are timed out from the chat so you won't see the updates but everyone that's still chatting will. See if this helps.....

Change the 2 to a higher number so you will see the updated messages for a longer period of time.

/chat/lib/config.php and /shoutBoz/lib/config.php is your chat and shoutbox are not integrated

// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;


Also play with the settings for how long to show the shouts and how many messages to show.

// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on June 07, 2010, 05:47:48 PM
Quote from: mrtrc266 on June 07, 2010, 12:06:05 PM
@ rocknroller

This could be the problem, by default if your cursor is out of the input field to more than 2 minutes you are timed out from the chat so you won't see the updates but everyone that's still chatting will. See if this helps.....

Change the 2 to a higher number so you will see the updated messages for a longer period of time.

/chat/lib/config.php and /shoutBoz/lib/config.php is your chat and shoutbox are not integrated

// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;


Also play with the settings for how long to show the shouts and how many messages to show.

// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;


tnx, popup chat work yust fine,I inserted iframe below boards(look on forum).  and increased the number of inactiveTimeout.

I would like modify css -positions.css I can not find file.
Strange, file is in folder chat/css but not related with "popup chat". i can not figure out where the rabbit.  :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: omega008 on June 07, 2010, 05:56:41 PM
I done this :
http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529) (I  can't put the .htaccess on the folders chat and shoutbox because when I try the ftp says permission dennied. Security, i think)
but the chat still is blank... I added RewriteRule ^chat/?$ ./chat/index.php [L,QSA] in .htaccess. I really like this shoutbox but it is turning me crazy!

can you help me?  I'm saying thanks right now!

sorry for my English that is bad, I'm from Argentina.


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 07, 2010, 06:22:04 PM
Quote from: omega008 on June 07, 2010, 05:56:41 PM
I done this :
http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529) (I  can't put the .htaccess on the folders chat and shoutbox because when I try the ftp says permission dennied. Security, i think)
but the chat still is blank... I added RewriteRule ^chat/?$ ./chat/index.php [L,QSA] in .htaccess. I really like this shoutbox but it is turning me crazy!

can you help me?  I'm saying thanks right now!

sorry for my English that is bad, I'm from Argentina.


You need to make sure your host will allow adding an .htaccess file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 07, 2010, 06:25:51 PM
Quotetnx, popup chat work yust fine,I inserted iframe below boards(look on forum).  and increased the number of inactiveTimeout.

I would like modify css -positions.css I can not find file.
Strange, file is in folder chat/css but not related with "popup chat". i can not figure out where the rabbit.  :D

the posistion.css is in the /chat/css/ folder that will allow you to tweak the style a little. The actual chat room that you put in an iframe is /chat/lib/templates/loggedIn.html
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: omega008 on June 07, 2010, 06:55:30 PM
Quote from: mrtrc266 on June 07, 2010, 06:22:04 PM
Quote from: omega008 on June 07, 2010, 05:56:41 PM
I done this :
http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529) (I  can't put the .htaccess on the folders chat and shoutbox because when I try the ftp says permission dennied. Security, i think)
but the chat still is blank... I added RewriteRule ^chat/?$ ./chat/index.php [L,QSA] in .htaccess. I really like this shoutbox but it is turning me crazy!

can you help me?  I'm saying thanks right now!

sorry for my English that is bad, I'm from Argentina.


You need to make sure your host will allow adding an .htaccess file

But, it don't leave me load files just in that two folders. I tried with the 777 permissions but still don't leave me load files.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 07, 2010, 07:06:28 PM
@ omega008

PM the link to your site as well as a temp FTP account and I'll take a look if you want.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mikolak on June 08, 2010, 09:22:47 AM
Thanks for the archive tip, but my users can't enter the logs - it just sends them to the chat login page and won't even let them login
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 08, 2010, 11:06:25 AM
Quote from: zrorox on June 06, 2010, 07:02:53 PM
Site: http://neoncafe.co.cc/
SMF Type: SMF 1.1.11
Issue: Cannot post in chat, both embedded one and windowed (tab) chat.

I tried some of what you said including moving .htaccess file (already adding the 2 lines you said), but moving it to the selected folders didn't do a thing...

Can someone help me please? I'm close, but don't know what to do... I can attach any files you need.

What Mods you have installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 08, 2010, 11:07:10 AM
Quote from: Mikolak on June 08, 2010, 09:22:47 AM
Thanks for the archive tip, but my users can't enter the logs - it just sends them to the chat login page and won't even let them login

You have to be admin in order to view the logs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mikolak on June 08, 2010, 03:54:37 PM
That's exactly my point... users tend to miss out something on the chat and then they aren't able to find out what it was
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 08, 2010, 03:59:30 PM
Quote from: Mikolak on June 08, 2010, 03:54:37 PM
That's exactly my point... users tend to miss out something on the chat and then they aren't able to find out what it was

Simply play with this setting /chat/lib/config.php

Change 24 to 72 (will leave the chats up for 3 days). Change 10 to 75 (Will retrieve the last 75 chats whenever a user logs in).  Or change it to your liking, there is no need for everyone to view the logs.

// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 24;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eudemon on June 08, 2010, 07:36:37 PM
after changing the language to english only for the mod
when i log into chat while the forum using a language other than english
this error still shows, and the chat freezes, does any one have any solution to this, or have a similar problem? :-\


Notice: Undefined variable: scripturl in /home/xxxx/public_html/forum/Themes/default/languages/Modifications.english.php on line 138

Notice: Undefined variable: scripturl in /home/xxxx/public_html/forum/Themes/default/languages/Modifications.english.php on line 139

Notice: Undefined variable: scripturl in /home/xxxx/public_html/forum/Themes/default/languages/Modifications.english.php on line 262
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on June 08, 2010, 09:05:13 PM
Quote from: sattninja on February 24, 2010, 02:16:40 PM
well i have been using firefox i decided to try IE and when i type it is giving me an error maybe this will help

(13:14:47) ChatBot: Error: Connection timeout. Please try again.
(13:14:50) ChatBot: Error: Connection timeout. Please try again.
(13:14:53) ChatBot: Error: Connection timeout. Please try again.
(13:14:56) ChatBot: Error: Connection timeout. Please try again.
(13:14:58) ChatBot: Error: Connection timeout. Please try again.
was there an aswer to this?
I get the same thing when I first login to my site. after I click on home or anyother button then shoutbox & chat will work
but on the first login they both don't work and i get the same error.
I checked the file permisions on all files & folders in soutbox/chat to 755 as thats what my server supports but still the same thing.
apart from that it's a bit slow but works ok.
I notice as well if a change my theme back to default it all works perfect, it's only with my blackrain theme that I have this problem
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on June 08, 2010, 09:06:02 PM
Did you read the FAQ?

On http://custom.simplemachines.org/mods/index.php?mod=1319, there's a big link in purple with many interesting pieces of information in it...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on June 08, 2010, 09:12:02 PM
yes i did. i have been reading posts for about 3 weeks & now I ask the question as I can't find my answere.
allot of boards go over more then 20 pages like this one and trying to read and find an answere i'm finding
is very hard, along the way I have found out alott of things but not my answere as yet
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Feriscool on June 08, 2010, 09:32:44 PM
Hi, I've been trying to install this mod on my SMF 2.0 RC3 Forum:

http://custom.simplemachines.org/mods/index.php?mod=1319

And, it downloads fine, but when I install it, it shows:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi47.tinypic.com%2F906ij6.png&hash=a4be5ce26e45efad1c247f87cc11cbaa9fb6b409)

What's wrong?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 08, 2010, 09:41:32 PM
The mod works perfect on 2.0 RC3

Below where the mods list is there is a link which says advanced.

Click there and emulate your forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on June 08, 2010, 09:42:27 PM
Feriscool: which version of the mod did you use? If you use the RC3 / Curve Friendly one on the site it should work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 08, 2010, 10:31:08 PM
Thank you Feriscool for finally posting on the correct board, Arantor is correct it seems you have downloaded the wrong package. You need the one for RC3
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 08, 2010, 10:35:33 PM
Quote from: techno489 on June 08, 2010, 09:12:02 PM
yes i did. i have been reading posts for about 3 weeks & now I ask the question as I can't find my answere.
allot of boards go over more then 20 pages like this one and trying to read and find an answere i'm finding
is very hard, along the way I have found out alott of things but not my answere as yet

Did you do the custom edit for your theme?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: omega008 on June 08, 2010, 11:05:43 PM
mrtrc266, I contact with my host and finally I can upload to that two folders. I upload the .htaccess to chat and shoutbox but still is blank :(, what is wrong?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 08, 2010, 11:13:16 PM
Quote from: omega008 on June 08, 2010, 11:05:43 PM
mrtrc266, I contact with my host and finally I can upload to that two folders. I upload the .htaccess to chat and shoutbox but still is blank :( , what is wrong?

Taking a look now

Was going to take a look LOL. PM me the FTP details again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 08, 2010, 11:48:54 PM
You're all set

There was an error in your Modifications.spanish_es-utf8.php file on line 559 so I simply commented it out. I don't know Spanish so you can correct what it supposed to be LOL

I changed...
$txt['pcomments_acomment'] = 'Comentario';
$txt['comentario'];
// END Profile Comments Text Strings


To....
$txt['pcomments_acomment'] = 'Comentario';
//$txt['comentario'];//
// END Profile Comments Text Strings


Finish this string to whatever it's supposed to be $txt['comentario']; and remove the comments //
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: omega008 on June 08, 2010, 11:54:14 PM
Quote from: mrtrc266 on June 08, 2010, 11:48:54 PM
You're all set

There was an error in your Modifications.spanish_es-utf8.php file on line 559 so I simply commented it out. I don't know Spanish so you can correct what it supposed to be LOL

I changed...
$txt['pcomments_acomment'] = 'Comentario';
$txt['comentario'];
// END Profile Comments Text Strings


To....
$txt['pcomments_acomment'] = 'Comentario';
//$txt['comentario'];//
// END Profile Comments Text Strings


Finish this string to whatever it's supposed to be $txt['comentario']; and remove the comments //
O.o sure it hapened when I was translating, i never would found this problem. thanksss, you're great! you really are the support helper of the month!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 08, 2010, 11:56:21 PM
Glad it's sorted for you Omega, enjoy the Mod :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on June 09, 2010, 12:30:07 AM
Quote from: Arantor on June 08, 2010, 09:42:27 PM
Feriscool: which version of the mod did you use? If you use the RC3 / Curve Friendly one on the site it should work.
I just did a fresh uninstall of the mod & reinstall of RC3 / Curve Friendly one
and I still get the error ChatBot: Error: Connection timeout. Please try again.
on my first login, after i click on home profile members or any other button then the chat and shout box will work
and still slow but not to slow just have to wait about 4 seconds before it shows or for your message to show after
clicking on the shout button
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 09, 2010, 12:34:03 AM
Quote from: techno489 on June 09, 2010, 12:30:07 AM
Quote from: Arantor on June 08, 2010, 09:42:27 PM
Feriscool: which version of the mod did you use? If you use the RC3 / Curve Friendly one on the site it should work.
I just did a fresh uninstall of the mod & reinstall of RC3 / Curve Friendly one
and I still get the error ChatBot: Error: Connection timeout. Please try again.
on my first login, after i click on home profile members or any other button then the chat and shout box will work
and still slow but not to slow just have to wait about 4 seconds before it shows or for your message to show after
clicking on the shout button

Please see my last post in regards to your last post....

Quote from: techno489 on June 08, 2010, 09:12:02 PM
yes i did. i have been reading posts for about 3 weeks & now I ask the question as I can't find my answere.
allot of boards go over more then 20 pages like this one and trying to read and find an answere i'm finding
is very hard, along the way I have found out alott of things but not my answere as yet

Did you do the custom edits for your theme?

You mentioned that it works fine in the default theme but not your custom theme, some manual edits may be required.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on June 09, 2010, 12:45:20 AM
yes i did, everything for default theme has also been added to my theme .php files.
in the default theme yes it does work good but I probably should note that it's slow there as well
but no problems with errors when loggin in
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 09, 2010, 02:13:29 AM
Quote from: techno489 on June 09, 2010, 12:45:20 AM
yes i did, everything for default theme has also been added to my theme .php files.
in the default theme yes it does work good but I probably should note that it's slow there as well
but no problems with errors when loggin in

Attach /Themes/YourCustomTheme/index.template.php and I'll take a look in the morning.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on June 09, 2010, 03:17:54 AM
Thankyou so very much for helping like this and having a look at the file for me
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pixeleyes on June 09, 2010, 04:26:07 AM
Below error occurred when click on CHAT Menu
Quote
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Please advise me where is the exactly problem!
.
.
.
.
.
.
Chat Mod:
AjaxChat+Integration_3.2.1+RC3_Curve_Friendly

SMF Version V2.0 RC-3

there was no error during installation, all files were test successfully.

After installation chat settings also appearing in Admin panel.

Should I need to put values manually in config.php such as database name/pass?

// Database connection values:
$config['dbConnection'] = array();
// Database hostname:
$config['dbConnection']['host'] = null;
// Database username:
$config['dbConnection']['user'] = null;
// Database password:
$config['dbConnection']['pass'] = null;
// Database name:
$config['dbConnection']['name'] = null;
// Database type:
$config['dbConnection']['type'] = null;
// Database link:
$config['dbConnection']['link'] = null;

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dougvcd on June 09, 2010, 06:42:38 AM
desprate for some help
have installed this package and the shout box only appears when i sign in as admin
if i login as diff user no shout box and chat does not work
what have i done wrong
cheers
Doug
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on June 09, 2010, 06:49:27 AM
Quote from: dougvcd on June 09, 2010, 06:42:38 AM
if i login as diff user no shout box and chat does not work
what have i done wrong

Did you set permissions up in Admin > Permissions for membergroups other than admin?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dougvcd on June 09, 2010, 08:03:07 AM
cheers arantor
that works ok now
big thanks
Doug
;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 09, 2010, 09:36:22 AM
Uhg!!! @ Pixeleyes, please read the page where you downloaded this mod from or the VERY FIRST post on this board.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 09, 2010, 09:48:35 AM
Quote from: techno489 on June 09, 2010, 03:17:54 AM
Thankyou so very much for helping like this and having a look at the file for me

Looks good, I'm not sure why it works on the default theme but not your custom one, everything seems to be in order. What's the link to your site?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Perfecta on June 09, 2010, 11:40:55 AM
is there a way to stop the sounds it makes?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Reaven87 on June 09, 2010, 01:48:44 PM
I have a problem...shout box and chatroom remains blank! I don't understand what should I do now, I'm not so good in changing files!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aaraon on June 09, 2010, 02:14:48 PM
Hello! (again)

I read that you can have a chat LOG. I saw this in the config file. At least that's what I understood. Unfortunately I do not find the LOG or do not know how to enable it. Could you help me?

Grateful.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Reaven87 on June 09, 2010, 04:50:11 PM
actually...I can't find any .htaccess file!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zrorox on June 09, 2010, 08:53:27 PM
Quote from: mrtrc266 on June 08, 2010, 11:06:25 AM
Quote from: zrorox on June 06, 2010, 07:02:53 PM
Site: http://neoncafe.co.cc/
SMF Type: SMF 1.1.11
Issue: Cannot post in chat, both embedded one and windowed (tab) chat.

I tried some of what you said including moving .htaccess file (already adding the 2 lines you said), but moving it to the selected folders didn't do a thing...

Can someone help me please? I'm close, but don't know what to do... I can attach any files you need.

What Mods you have installed?

I have installed 2 mods with 2 code modifications as well that I did manually.

I installed:
http://custom.simplemachines.org/mods/index.php?mod=977
http://custom.simplemachines.org/mods/index.php?mod=1102

I manually added:
http://custom.simplemachines.org/mods/index.php?mod=619
http://custom.simplemachines.org/mods/index.php?mod=1669




CANCEL THAT... IT WORKED SUDDENLY O.o... yay! I'll tell you if I have any more issues. Thanks for looking at my problem anyways! :) (Apparently the .htacess moving DID work ^^... it just took a day for it to register or something)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on June 09, 2010, 10:40:59 PM
Quote from: techno489 on June 09, 2010, 03:17:54 AM
Thankyou so very much for helping like this and having a look at the file for me
hope you can still help me with this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 10, 2010, 01:05:40 AM
Quote from: Perfecta on June 09, 2010, 11:40:55 AM
is there a way to stop the sounds it makes?

In the chat room hit the sound icon on the bottom right, in the shoutbox disable the sound by...
http://www.simplemachines.org/community/index.php?topic=257973.msg2583690;topicseen#msg2583690
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 10, 2010, 01:07:16 AM
Quote from: Reaven87 on June 09, 2010, 01:48:44 PM
I have a problem...shout box and chatroom remains blank! I don't understand what should I do now, I'm not so good in changing files!

Quote from: Reaven87 link=topic=257973.msg2661175#msg2661175   date=1276116611
  actually...I can't find any .htaccess file!
 

What version of SMF do you have?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 10, 2010, 01:09:25 AM
Quote from: aaraon on June 09, 2010, 02:14:48 PM
Hello! (again)

I read that you can have a chat LOG. I saw this in the config file. At least that's what I understood. Unfortunately I do not find the LOG or do not know how to enable it. Could you help me?

Grateful.

A simple search on this topic resulted in http://www.yoursite/chat/?view=logs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 10, 2010, 01:12:30 AM
Quote from: techno489 on June 09, 2010, 10:40:59 PM
Quote from: techno489 on June 09, 2010, 03:17:54 AM
Thankyou so very much for helping like this and having a look at the file for me
hope you can still help me with this.

Please see my last post, what's the link to your site? PM me if you don't want it public, also send me a temp admin account to your forum and temp FTP access and I can take a look when I get a sec.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on June 10, 2010, 04:57:46 AM
Quote from: mrtrc266 on June 10, 2010, 01:12:30 AM
Quote from: techno489 on June 09, 2010, 10:40:59 PM
Quote from: techno489 on June 09, 2010, 03:17:54 AM
Thankyou so very much for helping like this and having a look at the file for me
hope you can still help me with this.

Please see my last post, what's the link to your site? PM me if you don't want it public, also send me a temp admin account to your forum and temp FTP access and I can take a look when I get a sec.

he again, if you register an account with my forum and send me a pm. I will make you an admin and get ftp details to you in there if thats ok...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Reaven87 on June 10, 2010, 06:24:16 AM
Quote from: mrtrc266 on June 10, 2010, 01:07:16 AM
Quote from: Reaven87 on June 09, 2010, 01:48:44 PM
I have a problem...shout box and chatroom remains blank! I don't understand what should I do now, I'm not so good in changing files!

Quote from: Reaven87 link=topic=257973.msg2661175#msg2661175   date=1276116611
  actually...I can't find any .htaccess file!
 

What version of SMF do you have?


The 1.1.11!!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 10, 2010, 10:13:19 AM
Quote from: techno489 on June 09, 2010, 03:17:54 AM
he again, if you register an account with aussierampage.com/smf and send me a pm my name is {AUR}CML:T3CHN0
you will find me only have about 30 members. I will make you an admin and get ftp details to you in there if thats ok...

Registered
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 10, 2010, 10:15:34 AM
Quote from: Reaven87 on June 10, 2010, 06:24:16 AM
Quote from: mrtrc266 on June 10, 2010, 01:07:16 AM
Quote from: Reaven87 on June 09, 2010, 01:48:44 PM
I have a problem...shout box and chatroom remains blank! I don't understand what should I do now, I'm not so good in changing files!

Quote from: Reaven87 link=topic=257973.msg2661175#msg2661175   date=1276116611
  actually...I can't find any .htaccess file!
 

What version of SMF do you have?

The 1.1.11!!!

Open up a text editor like Notepad++  and add this to it.
RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


Save it as .htaccess then upload it to these 2 folders /chat/ and /shoutBox/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: piplexi on June 10, 2010, 10:23:47 AM
so far the chat works on my SIte. I just have a question. I'm using a different theme (smf 1.10) and I want to show the Number of Users currently in the chat. Not Who is in the chat, just a number.

How can I do this? Thanks

PS: And just in case, how can I show the names of the Ppl currently in chat?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 10, 2010, 10:50:25 AM
Take a look at the parser and do the edits to your themes template. It will show the # of users on the chat button and in your user info section (by your avatar and read/unread link).

Also make sure you enable those options in your admin panel.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: failhorse on June 10, 2010, 04:28:08 PM
EDIT FIGURED IT OUT
I'm using the code to have the chatbot update posts/replies in the chat box.
I'm trying to hide the admin posts on my forum from going to the chat box.
I'm using the
if(!in_array($board, array(18,21,22,35,36,37,38))) {
}

to go around both the new chat  post/ reply code to in post.php.

When i do it, replies no long update in the chat box. Even if I only code it for new topics, new replies won't post.

any ideas?
[/i]

If you're trying to set up the post bot to ignore certain groups. The above code does work. But you have to move the { to before the code starts.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: piplexi on June 10, 2010, 05:35:24 PM
Quote from: mrtrc266 on June 10, 2010, 10:50:25 AM
Take a look at the parser and do the edits to your themes template. It will show the # of users on the chat button and in your user info section (by your avatar and read/unread link).

Also make sure you enable those options in your admin panel.

unfortunately I tried this already. There must be a simple code to show the number of users and I want to add it manually.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aaraon on June 10, 2010, 06:57:46 PM
Hello mrtrc266! I tried! I swear! After you told me I typed to see if I found and not found anything in the search of the forum.

Sorry if it was repeated, but I guarantee it was not for lack of looking. Maybe I just have searched the wrong way.

Anyway, I appreciate the help! This has been resolved and is helping a lot!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Riu Erren on June 10, 2010, 07:27:17 PM
Ah, Hello. I have installed the AJAX chat mod onto my SMF site, and everything installed fine. But every time me or one of my members get onto the chat everything loads but the usernames and what ever we type in doesn't show up on the chats main window, not even the chat bot's messages. Could you help me please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 10, 2010, 07:31:25 PM
Riu Erren

Have you looked at the FAQs in the first post of the mods topic?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uniektekniek on June 10, 2010, 10:20:12 PM
im having a slight issue with installing this mod due to other mods changing my index.template.php....

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


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



basically the code in "find" isnt existant.. is there something i else i can search for? like an "add after"???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Riu Erren on June 11, 2010, 03:27:07 AM
I did and did not see anything for that....but now I'm getting this message. Parse error: syntax error, unexpected T_REQUIRE in /home/a8002164/public_html/chat/index.php on line 20 Any suggestions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on June 11, 2010, 05:49:34 AM
Quote from: mrtrc266 on June 07, 2010, 06:25:51 PM
Quotetnx, popup chat work yust fine,I inserted iframe below boards(look on forum).  and increased the number of inactiveTimeout.

I would like modify css -positions.css I can not find file.
Strange, file is in folder chat/css but not related with "popup chat". i can not figure out where the rabbit.  :D

the posistion.css is in the /chat/css/ folder that will allow you to tweak the style a little. The actual chat room that you put in an iframe is /chat/lib/templates/loggedIn.html

Thank you very much!  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 11, 2010, 10:07:08 AM
Quote from: aaraon on June 10, 2010, 06:57:46 PM
Hello mrtrc266! I tried! I swear! After you told me I typed to see if I found and not found anything in the search of the forum.

Sorry if it was repeated, but I guarantee it was not for lack of looking. Maybe I just have searched the wrong way.

Anyway, I appreciate the help! This has been resolved and is helping a lot!

To view the logs point your browser to where your chat is located then add "?view=logs" behind it, it'll look something like this...

http://www.yoursite.com/chat/?view=logs
or
http://www.yoursite.com/forum/chat/?view=logs

It all depends on where you have your forum installed on your site. Simply click on your chat button and look at the address bar, whatever that url is change /chat.php to /?view=logs.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 11, 2010, 10:09:03 AM
Quote from: Riu Erren on June 10, 2010, 07:27:17 PM
Ah, Hello. I have installed the AJAX chat mod onto my SMF site, and everything installed fine. But every time me or one of my members get onto the chat everything loads but the usernames and what ever we type in doesn't show up on the chats main window, not even the chat bot's messages. Could you help me please?

That is covered in the FAQ's...

Here some known issues and fixes caused by either other Mods or some servers

    * If you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please READ THIS
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimnix on June 11, 2010, 10:59:51 AM
When I installed the mod, I didn't get any chat or shoutbox folder. Now that's weird.

Anyone know what to do? I tried to uninstall and re-install several times but I don't get any chat or shoutbox folder.



PS. Why can't the mod creator just set up a stable working mod instead of having support members to fix everything.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: War Needle on June 11, 2010, 05:23:21 PM
Absolute noob here and it kills me to ask, but what do I do with Tables_1.1.x.php?  Put them in my mysql folder??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 12, 2010, 12:58:44 AM
Quote from: Westlund on June 11, 2010, 10:59:51 AM
When I installed the mod, I didn't get any chat or shoutbox folder. Now that's weird.

Anyone know what to do? I tried to uninstall and re-install several times but I don't get any chat or shoutbox folder.

PS. Why can't the mod creator just set up a stable working mod instead of having support members to fix everything.

Can't get to your site, I keep getting redirecting to page not found.

PS. The Mod creator did make a stable Mod, it has almost 50,000 download and is the #2 rated Mod here @ SMF. It's only made to install on a clean SMF install and on the default theme, just like every other Mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 12, 2010, 01:05:59 AM
Quote from: War Needle on June 11, 2010, 05:23:21 PM
Absolute noob here and it kills me to ask, but what do I do with Tables_1.1.x.php?  Put them in my mysql folder??

You don't do anything with that file, you download the correct .zip file for the version of SMF you have. Then simply go to the Package Manager in your SMF Admin Panel, upload the Mod, Apply (stop is you get any "failed file tests") and Install.

Admin/Packages/Download Package/Upload a Package
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: talk2troy on June 12, 2010, 12:02:26 PM
Quote from: rajeshn on May 24, 2010, 09:03:13 PM
Quote from: mrtrc266 on May 24, 2010, 10:49:31 AM
Quote from: rajeshn on May 24, 2010, 10:11:45 AM
Hi,
I am using headline theme, I installed this mod, but I don't see any chat button ?
Could you pl solve the problem?
Manual Edits for Headline Theme (http://ajcintegration.co.cc/index.php?topic=53) ;)

I am using SMF 1.1.11 & do not get a chat button either
- I tried to apply these edits to my theme "blackandwhite"
- download is here - http://custom.simplemachines.org/themes/index.php?lemma=329
- I get a parse error - I double checked my edits, same error...

Please advise!

PS - I am a gamer - not a coder!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: talk2troy on June 12, 2010, 01:32:16 PM
Videogameracing.com - is the second forum I installed this MOD on.
It is working fine - except - I get NO CHAT BUTTON.

The first site was - motogameracing.com
The forum was set to English-utf8 upon install by hostgator through fantistico

When I installed the mod - it worked... BUT - I only saw checkboxes & no text labels in:
ADMIN > Configuration > Features and Options > Basic Features

After jacking around trying to manually edit files via the PARSE tool & having NO luck, I uninstalled the mod & got an error (which I did not write down) but the shoutbox disappeared & so did the check boxes with no labels...

Using another mod & having problems with that one too (Global Headers and Footers) I discovered I should be set to just ENGLISH (not utf-8) and got it working after removing some duplicate entries.

This was all a huge PITA - but I soldiered on & styled & fleshed out my forum.
- I figured I just could not use the shoutbox or chat...

Since then - I started my second forum & immediately set it to ENGLISH.

One of the first things I tried - before styling or creating forums was the shoutbox & it WORKED!
- I was so happy to see it working - I tried to install it again at my first forum (now - set to ENGLISH).

I got the following - Error in Package Installation
7.     Execute Modification     ./Themes/default/index.template.php     Test failed

I went through the file comparing to the parse tool, but had no luck...

I hope I have provided enough info & you can HELP ME!
- please let me know if you want me to send the file (./Themes/default/index.template.php)

THANKS FOR ANY REPLY!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimnix on June 12, 2010, 02:07:22 PM
Quote from: mrtrc266 on June 12, 2010, 12:58:44 AM
Quote from: Westlund on June 11, 2010, 10:59:51 AM
When I installed the mod, I didn't get any chat or shoutbox folder. Now that's weird.

Anyone know what to do? I tried to uninstall and re-install several times but I don't get any chat or shoutbox folder.

PS. Why can't the mod creator just set up a stable working mod instead of having support members to fix everything.

Can't get to your site, I keep getting redirecting to page not found.

PS. The Mod creator did make a stable Mod, it has almost 50,000 download and is the #2 rated Mod here @ SMF. It's only made to install on a clean SMF install and on the default theme, just like every other Mod.

You sure? http://warzone.site40.net

Everyone I've sent it to can enter.

Anyway, I still don't get any chat or shoutbox folder. Very strange..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: War Needle on June 12, 2010, 05:56:43 PM
Thank you.  I appreciate the help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 13, 2010, 01:33:11 AM
@ talktotroy

Yes please attach your index.template.php file

@ westlund, sorry I was clicking on the link that you provided in your profile which leads to www.metagaming.comlu.com. Anyway After you install do you see the options on your Forums Admin panel to enable the shoutBox and Chat settings?

@ War Needle, glad you got it sorted. Enjoy!


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uninvited13th on June 13, 2010, 04:58:43 AM
I Cannot install the Tables_1.1.X.php using my browser..


Warning: Cannot modify header
information - headers already
sent by (output started at /
www/xxx.org/u/n/i/
uninvited/htdocs/
Tables_1.1.X.php:1) in /www/
xxx.org/u/n/i/uninvited/
htdocs/Sources/Subs.php on
line 3244
Warning: Cannot modify header
information - headers already
sent by (output started at /
www/xxx.org/u/n/i/
uninvited/htdocs/
Tables_1.1.X.php:1) in /www/
xxx.org/u/n/i/uninvited/
htdocs/Sources/Subs.php on
line 3245
Warning: Cannot modify header
information - headers already
sent by (output started at /
www/xxx.org/u/n/i/
uninvited/htdocs/
Tables_1.1.X.php:1) in /www/
xxx.org/u/n/i/uninvited/
htdocs/Sources/Subs.php on
line 3251
Warning: Cannot modify header
information - headers already
sent by (output started at /
www/xxx.org/u/n/i/
uninvited/htdocs/
Tables_1.1.X.php:1) in /www/
xxx.org/u/n/i/uninvited/
htdocs/Sources/Subs.php on
line 3254



Can you teach me how to install it manually? I dont know what number to put in "number of fields" in phpmyadmin..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 13, 2010, 09:32:27 AM
Quote from: uninvited13th on June 13, 2010, 04:58:43 AM
I Cannot install the Tables_1.1.X.php using my browser..

Can you teach me how to install it manually? I dont know what number to put in "number of fields" in phpmyadmin..

You don't need to install this manually, please see the very first post on this page.
http://www.simplemachines.org/community/index.php?topic=257973.msg2664307#msg2664307
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uninvited13th on June 13, 2010, 10:29:37 AM
Quote from: mrtrc266 on June 13, 2010, 09:32:27 AM
Quote from: uninvited13th on June 13, 2010, 04:58:43 AM
I Cannot install the Tables_1.1.X.php using my browser..

Can you teach me how to install it manually? I dont know what number to put in "number of fields" in phpmyadmin..

You don't need to install this manually, please see the very first post on this page.
http://www.simplemachines.org/community/index.php?topic=257973.msg2664307#msg2664307

I cannot install it via package thats why i install it manually.. Im done modifying all the files.. My only problem is the table..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 13, 2010, 11:04:51 AM
Quote from: uninvited13th on June 13, 2010, 10:29:37 AM
Quote from: mrtrc266 on June 13, 2010, 09:32:27 AM
Quote from: uninvited13th on June 13, 2010, 04:58:43 AM
I Cannot install the Tables_1.1.X.php using my browser..

Can you teach me how to install it manually? I dont know what number to put in "number of fields" in phpmyadmin..

You don't need to install this manually, please see the very first post on this page.
http://www.simplemachines.org/community/index.php?topic=257973.msg2664307#msg2664307

I cannot install it via package thats why i install it manually.. Im done modifying all the files.. My only problem is the table..

If you can't install it via the package manager
Quote from: uninvited13th on June 13, 2010, 10:29:37 AM
Quote from: mrtrc266 on June 13, 2010, 09:32:27 AM
Quote from: uninvited13th on June 13, 2010, 04:58:43 AM
I Cannot install the Tables_1.1.X.php using my browser..

Can you teach me how to install it manually? I dont know what number to put in "number of fields" in phpmyadmin..

You don't need to install this manually, please see the very first post on this page.
http://www.simplemachines.org/community/index.php?topic=257973.msg2664307#msg2664307
I cannot install it via package thats why i install it manually.. Im done modifying all the files.. My only problem is the table..

I will have to take a look when I get home, it's been almost 2 yrs since I've had to install this manually.

Out of curiosity why can't you install it via the package manager?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zrorox on June 13, 2010, 11:05:06 AM
Is there a way to add a button to the EMBEDDED shoutbox on top of the pages that mutes sounds? I know there is a way to do it in the main chat page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 13, 2010, 11:10:08 AM
Quote from: zrorox on June 13, 2010, 11:05:06 AM
Is there a way to add a button to the EMBEDDED shoutbox on top of the pages that mutes sounds? I know there is a way to do it in the main chat page.
http://www.simplemachines.org/community/index.php?topic=257973.msg2583690;topicseen#msg2583690
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zrorox on June 13, 2010, 11:21:45 AM
Quote from: mrtrc266 on June 13, 2010, 11:10:08 AM
Quote from: zrorox on June 13, 2010, 11:05:06 AM
Is there a way to add a button to the EMBEDDED shoutbox on top of the pages that mutes sounds? I know there is a way to do it in the main chat page.
http://www.simplemachines.org/community/index.php?topic=257973.msg2583690;topicseen#msg2583690

I tried that. That was what I was talking about. It did not work for an embedded chat, only the main chat page...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 13, 2010, 11:25:31 AM
Quote from: zrorox on June 13, 2010, 11:21:45 AM
Quote from: mrtrc266 on June 13, 2010, 11:10:08 AM
Quote from: zrorox on June 13, 2010, 11:05:06 AM
Is there a way to add a button to the EMBEDDED shoutbox on top of the pages that mutes sounds? I know there is a way to do it in the main chat page.
http://www.simplemachines.org/community/index.php?topic=257973.msg2583690;topicseen#msg2583690

I tried that. That was what I was talking about. It did not work for an embedded chat, only the main chat page...

If you don't have the Chat and Shout Integrated then do the same edit to the same file in the /shoutBox folder instead of the /chat folder...

/shoutBox/lib/template/shoutbox.html
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zrorox on June 13, 2010, 11:36:30 AM
Hm... still not working, although the sound IS mute now (thank goodness).

(Curious, is there anyone who has figured to add a "color of text" button too for this chat?)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uninvited13th on June 13, 2010, 12:05:18 PM
Quote from: mrtrc266 on June 13, 2010, 11:04:51 AM

I will have to take a look when I get home, it's been almost 2 yrs since I've had to install this manually.

Out of curiosity why can't you install it via the package manager?

Thanks..
I cant install because it gives me alot of errors, error parsing blah blah.. Maybe because safe mode is on in my host..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 13, 2010, 12:12:40 PM
What do you mean by error parsing?

Out of curiosity who is your host?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: talk2troy on June 13, 2010, 12:23:05 PM
Quote from: mrtrc266 on June 13, 2010, 01:33:11 AM
@ talktotroy - Yes please attach your index.template.php file

Thank you very much for the reply...

Should I just paste it in here among all this noise, or send it via PM or a download link?

Sincerely,
talk2troy
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 13, 2010, 12:25:13 PM
Quote from: talk2troy on June 13, 2010, 12:23:05 PM
Quote from: mrtrc266 on June 13, 2010, 01:33:11 AM
@ talktotroy - Yes please attach your index.template.php file

Thank you very much for the reply...

Should I just paste it in here among all this noise, or send it via PM or a download link?

Sincerely,
talk2troy

Amongst the 'noise' is the best way.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uninvited13th on June 13, 2010, 12:30:01 PM
Quote from: Brack1 on June 13, 2010, 12:12:40 PM
What do you mean by error parsing?

Out of curiosity who is your host?

"Modification parse error"

Sqweebs, even the .htaccess is not allowed with them..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 13, 2010, 12:34:06 PM
If memory serves me correctly ( best to confirm with mrtrc266) then it looks like it will be the hosts end.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uninvited13th on June 13, 2010, 12:46:48 PM
Quote from: Brack1 on June 13, 2010, 12:34:06 PM
If memory serves me correctly ( best to confirm with mrtrc266) then it looks like it will be the hosts end.

Yeah..
Can you help me how to run Tables_1.1.X.php? coz i got errors..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 13, 2010, 12:49:14 PM
That is to advanced for me bud.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uninvited13th on June 13, 2010, 12:56:46 PM
Quote from: Brack1 on June 13, 2010, 12:49:14 PM
That is to advanced for me bud.

Ok, maybe i'll just wait for mrtrc266
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: talk2troy on June 13, 2010, 01:03:52 PM
Quote from: Brack1 on June 13, 2010, 12:25:13 PM
Amongst the 'noise' is the best way.
Thanks - Brack1...  here is the offending file:
7.     Execute Modification     ./Themes/default/index.template.php     Test failed



<?php
// Version: 1.1.5; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
{
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
$options['collapse_header_ic'] = !empty($_COOKIE['upshrinkIC']);
}

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;

echo '
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">'
;

if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">'
$context['forum_name'], '</span>';
else
{
$domain parse_url($scripturl);
$domain $domain['scheme'].'://'.$domain['host'];
echo '
<center><a href="'
$domain'" target="_blank"><img src="'$settings['header_logo_url'], '" style="margin: 4px;" alt="'$domain'" /></a></center>';
}

echo '
</td>
</tr>
</table>'
;


// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>'
;

if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> '
$txt['hello_member_ndt'], ' <b>'$context['user']['name'] , '</b></span>
</td>'
;

// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' 
$context['current_time'], '</span>';

// this is the upshrink button for the user info section
echo '
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>'
;

if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">'
$context['user']['avatar']['image'], '</td>';

echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">'
;

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

}
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'];

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
if (!empty($modSettings['enableChatBelowPM'])){
$count count(chatOnlineUsers());
if ($count == )
echo '<br />' $txt['chat_no_user'];
elseif ($count == )
  
echo '<br />  1' $txt['chat_aUser']. '.<br />';
else
  
echo '<br /> ' $count $txt['chat_users']. '<br />';
}
echo ' </span>';
}

// ---- Begin modification - Errors on top of page ----
// If they're an admin, show them how many errors we have in the log
if ($context['user']['is_admin'])
{
// Not set? Assume 0, then
if (!isset($context['error_log_count']))
$context['error_log_count'] = 0;
// No querystring set? Assume nothing
if (!isset($_SERVER['QUERY_STRING']))
$_SERVER['QUERY_STRING'] = '';

echo '
<br />'
, ($context['error_log_count'] == $txt['error_log_thereis'] : $txt['error_log_thereare']), ' '$context['error_log_count'], ' ', ($context['error_log_count'] == $txt['error_log_error'] : $txt['error_log_errors']), ' '$txt['error_log_inlog'], '<br />
'
$txt['error_log_thispage'], ' <span id="error_count">0 '$txt['error_log_errors'], ' '$txt['error_log_were'], '</span> '$txt['error_log_encountered'], ' (<a href="'$scripturl'?show_debug=1;'$_SERVER['QUERY_STRING'], '">debug</a>)<br />';
}
// ---- End modification ----
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select>
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</td>
</tr>
</table>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ' style="display: none;"'' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;

// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>'
$txt[102], '</b>: '$context['random_news_line'], '</span>
</td>'
;
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<a href="'
$scripturl'?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />&nbsp;
<input type="submit" name="submit" value="'
$txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />'
;

// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';

echo '
</form>
</td>
</tr>
</table>
</div>'
;


// Show the menu here, according to the menu sub template.
template_menu();


// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

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

echo '
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'right' 'left''">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="'
$settings['images_url'], '/powered-mysql.gif" alt="'$txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="'
$settings['images_url'], '/powered-php.gif" alt="'$txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="'
$settings['images_url'], '/valid-xhtml10.gif" alt="'$txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="'
$settings['images_url'], '/valid-css.gif" alt="'$txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
'
;

// Are we an admin, and do we have any errors?
if ($context['user']['is_admin'] && isset($context['error_count']) && $context['error_count'] != 0)
// Change the error text at the top of the page
echo '
<script type="text/javascript" language="JavaScript">
setInnerHTML(document.getElementById("error_count"), "'
$context['error_count'], ' ', ($context['error_count'] == $txt['error_log_error'] . ' ' $txt['error_log_was']: $txt['error_log_errors'] . ' ' $txt['error_log_were']), '");
</script>'
;

echo '
'
;
global $modSettings;
if(!empty($modSettings['googleAnalyticsCode']))
echo '<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src=\'" + gaJsHost + "google-analytics.com/ga.js\' type=\'text/javascript\'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("'
$modSettings['googleAnalyticsCode'] . '");
pageTracker._trackPageview();
} catch(err) {}</script>
'
;

echo '</body></html>';
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'media')
$current_action 'media';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt[103] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt[119] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt[182] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt[2] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt[79] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Aeva Media
// Recalculate number of unseen items
global $user_info;

if (!empty($user_info['aeva_unseen']) && $user_info['aeva_unseen'] == -1)
{
global $sourcedir;
require_once($sourcedir '/Aeva-Subs.php');
aeva_loadSettings();
}

$aeva_unseen = !allowedTo('aeva_access_unseen') || empty($user_info['aeva_unseen']) || $user_info['aeva_unseen'] == -$user_info['aeva_unseen'];

if (allowedTo('aeva_access'))
echo ($current_action == 'media' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '''
<td valign="top" class="maintab_'
$current_action == 'media' 'active_back' 'back''">
<a href="'
$scripturl'?action=media">', isset($txt['aeva_gallery']) ? $txt['aeva_gallery'] : 'Media'$aeva_unseen '</a> <a href="' $scripturl '?action=media;sa=unseen">[<b>' $aeva_unseen '</b>]' '''</a>
</td>'
$current_action == 'media' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mlist' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mlist">' $txt[331] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt[34] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt[97] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// the [chat] button
$chatPath str_replace("index.php""chat/index.php"$scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' $first '">&nbsp;</td>' '''
<td valign="top" class="maintab_back">
<a href="'
$chatPath'"', empty($modSettings['chatPopUp']) ? 'target="_blank"' ' onclick="openWindow(this.href);this.blur();return false;"''>'$txt['chat'], ($num 0) ?  ('('.$num.')') : '' '</a>
</td>'
;


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zrorox on June 14, 2010, 12:11:19 AM
I have an issue with my shoutbox again. It's not accepting all shouts. It only accepts every other shout made (Like: ACCEPT, REJECT, ACCEPT, REJECT, ACCEPT, etc.)

Help?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ncrobin on June 14, 2010, 06:51:59 AM
Hi, new here. Had a few issues that are probably easily solved. My host doesn't allow me to install packages directly through my forum admin page, so I have to manual install. I did all the edit steps per page, and when I finished moving the files to their proper locations I refreshed my main page and got this error:

Table 'xth_XXXXXXX_XXXXX.smf_ajaxchat_online' doesn't exist
File: /home/vol4/xtreemhost.com/xth_XXXXXXX/htdocs/forums/Sources/Load.php
Line: 2245

Line 2245 says:
", __FILE__, __LINE__);

I'm not sure if I have to create a database within my database, if so I'm not real sure how to do that. (not that this is the right place for that, but yea).

I read elsewhere to point my /chat/lib/config.php to state it's using mysql, I did that and nothing changed.

Any advice would be appreciated, as this is as far as I can get and I'm not even sure what else is wrong. Errors I have on the package installer are:

3.     Execute Modification     ./Sources/ManagePermissions.php     Test failed
7.     Execute Modification     ./Themes/default/index.template.php     Test failed

My forums are smf 1.1.11 and I'm using version 3.2.1 modified.

My users see a chatbox message that it's not working properly, and about half the menu bar, no forums.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: War Needle on June 14, 2010, 08:05:02 AM
I used the package manager to try and install this mod, but I get this error: "You cannot download or install new packages because the Packages directory or one of the files in it are not writable!"

I chmod 777'ed EVERYTHING in and around the packages folder. Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Feriscool on June 14, 2010, 05:05:42 PM
I just installed it on the default theme, everything went fine up until this:

http://i47.tinypic.com/5zgk7k.png

What's wrong?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on June 14, 2010, 05:11:45 PM
it means that your custom theme needs the mod to be installed manually as the string that the package is looking for does not get found.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 14, 2010, 05:15:27 PM
Oh boy

How many mods have you installed on your forum?

This simply means yhe files which state Test Failed

Have to be manually edited for the particular theme (s) being used.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Feriscool on June 14, 2010, 05:47:00 PM
Quote from: Brack1 on June 14, 2010, 05:15:27 PM
Oh boy

How many mods have you installed on your forum?

This simply means yhe files which state Test Failed

Have to be manually edited for the particular theme (s) being used.

I have no mods installed at all. I can never get any to work. Also, I don't even know how to manually install. :/

If I gave you the files needed, would you kindly do it for me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 14, 2010, 05:48:45 PM
Someone will surely help if you add the files as an attachment.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: KrisiS on June 14, 2010, 06:06:13 PM
Hello, can someone please tell me what to edit in order to change the color of the shoutbox 'body' (the box where the text actually appears once submitted)

I have a black theme and at the moment the box is 'white'
I want it to be a dark grey to contrast better with my theme..\

Many thanks in advance.  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Feriscool on June 14, 2010, 06:26:51 PM
Quote from: Brack1 on June 14, 2010, 05:48:45 PM
Someone will surely help if you add the files as an attachment.

Which files are needed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 14, 2010, 06:29:07 PM
Whichever files had test failed next to them.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 14, 2010, 06:42:22 PM
Quote from: Feriscool on June 14, 2010, 05:05:42 PM
I just installed it on the default theme, everything went fine up until this:

http://i47.tinypic.com/5zgk7k.png

What's wrong?

Proceed with the install but don't check the options to install on your custom themes(It will install ok on the default theme). Then you can manually edit the files on your custom using the Parser.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 14, 2010, 06:43:34 PM
Quote from: talk2troy on June 13, 2010, 12:23:05 PM
Quote from: mrtrc266 on June 13, 2010, 01:33:11 AM
@ talktotroy - Yes please attach your index.template.php file

Thank you very much for the reply...

Should I just paste it in here among all this noise, or send it via PM or a download link?

Sincerely,
talk2troy

No attach the actual file, look right below where you type to reply and hit "Additional Option"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 14, 2010, 06:45:14 PM
Is it not posting at all or just lagging?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 14, 2010, 10:32:41 PM
Quote from: KrisiS on June 14, 2010, 06:06:13 PM
Hello, can someone please tell me what to edit in order to change the color of the shoutbox 'body' (the box where the text actually appears once submitted)

I have a black theme and at the moment the box is 'white'
I want it to be a dark grey to contrast better with my theme..\

Many thanks in advance.  ;)

Look at /chat/css/shoutbox.css
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 14, 2010, 10:34:32 PM
Quote from: uninvited13th on June 13, 2010, 12:30:01 PM
Quote from: Brack1 on June 13, 2010, 12:12:40 PM
What do you mean by error parsing?

Out of curiosity who is your host?

"Modification parse error"

Sqweebs, even the .htaccess is not allowed with them..

Find a new host, this is a good one, never had any probs ata ll.

http://xtreemhost.com/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uninvited13th on June 14, 2010, 11:24:55 PM
Quote from: mrtrc266 on June 14, 2010, 10:34:32 PM
Quote from: uninvited13th on June 13, 2010, 12:30:01 PM
Quote from: Brack1 on June 13, 2010, 12:12:40 PM
What do you mean by error parsing?

Out of curiosity who is your host?

"Modification parse error"

Sqweebs, even the .htaccess is not allowed with them..

Find a new host, this is a good one, never had any probs ata ll.

http://xtreemhost.com/

thanks bud.. but how do i install tables?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uniektekniek on June 14, 2010, 11:28:59 PM
Quote from: uniektekniek on June 10, 2010, 10:20:12 PM
im having a slight issue with installing this mod due to other mods changing my index.template.php....

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


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



basically the code in "find" isnt existant.. is there something i else i can search for? like an "add after"???


anyone?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 14, 2010, 11:39:57 PM
Look for $context['current_time'], ['current_time'], time, etc.

Or just install the Mod and don't worry about it, all that edit does is show you how many users are in chat in your user info section.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uniektekniek on June 15, 2010, 12:23:12 AM
nice one.. thank you!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MyJC on June 15, 2010, 01:43:56 AM
As forum administrator would like to be able to turn chat room off and on. Due to my visitors all chats must be monitored. So, I find this $config['chatClosed'] = true; in /chat/lib/config.php

So, can someone help me to figure out how to put a button in SMF that will enable anyone in the administrators group to toggle that variable from "true" to "false" and "false" to "true" as well as show the current state?

All help appreciated!

Thank you.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kartheekb on June 15, 2010, 02:38:54 AM
Problems i have seen in shout box

->There is no refresh button in shout box

-> No option to OFF the sound in shout box.

-> if we enter a message its not appearing untill we enter first message for 3 times

-> Can we customize smilies in shout box.very basic smilies u have provided in the shoutbox

Can i have solutions for this
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: KrisiS on June 15, 2010, 05:26:02 AM
Quote from: mrtrc266 on June 14, 2010, 10:32:41 PM
Quote from: KrisiS on June 14, 2010, 06:06:13 PM
Hello, can someone please tell me what to edit in order to change the color of the shoutbox 'body' (the box where the text actually appears once submitted)

I have a black theme and at the moment the box is 'white'
I want it to be a dark grey to contrast better with my theme..\

Many thanks in advance.  ;)

Look at /chat/css/shoutbox.css

I have edited some settings in both /chat/css/shoutbox.css & /shoutbox/css/shoutbox.css but to no avail :(
Have I changed the wrong settings? :





/*
* Positioning
*/
#ajaxChatContent #ajaxChatChatList {
   height:169px;
   overflow:auto;
}
#ajaxChatContent  #ajaxChatChatList div {
   padding-left:5px;
   padding-top:2px;
   padding-right:5px;
   padding-bottom:2px;
}
#ajaxChatContent #ajaxChatChatList img {
   vertical-align:middle;
   margin-bottom:2px;
}
#ajaxChatContent #ajaxChatChatList cite {
   margin-right:5px;
}
#ajaxChatContent #ajaxChatChatList .bbCodeImage {
   vertical-align:top;
   overflow:auto;
   margin:5px;
}
#ajaxChatContent #ajaxChatChatList .delete {
   float:right;
   width:10px;
   height:10px;
   margin-top:5px;
   margin-left:5px;
}
#ajaxChatContent #ajaxChatInputFieldContainer #ajaxChatInputField {
   width:60%;
}
#ajaxChatContent #ajaxChatCopyright {
   margin-top:5px;
}


/*
* Borders
*/

#ajaxChatContent img {
   border:none;
}
#ajaxChatContent #ajaxChatChatList .deleteSelected {
   border-width:1px;
   border-style:dotted;
}
#ajaxChatContent {
      background-color:#E5E5E8;
      color:#000;
}


/*
* Fonts
*/

#ajaxChatContent {
   font-size:0.9em;
}
#ajaxChatContent a {
   text-decoration:none;
}
#ajaxChatContent a:hover {
   text-decoration:underline;
}
#ajaxChatContent #ajaxChatCopyright {
   font-size:0.8em;
}
#ajaxChatContent #ajaxChatChatList span.dateTime {
   font-size:0.7em;
}
#ajaxChatContent #ajaxChatChatList span.guest {
   font-size:0.9em;
   font-weight:bold;
}
#ajaxChatContent #ajaxChatChatList span.user {
   font-size:0.9em;
   font-weight:bold;
}
#ajaxChatContent #ajaxChatChatList span.moderator {
   font-size:0.9em;
   font-weight:bold;
}
#ajaxChatContent #ajaxChatChatList span.admin {
   font-size:0.9em;
   font-weight:bold;
}
#ajaxChatContent #ajaxChatChatList span.chatBot {
   font-size:0.9em;
   font-weight:bold;
   font-style:italic;
}
#ajaxChatContent #ajaxChatList .chatBotMessage {
   font-style:italic;
}
#ajaxChatContent #ajaxChatChatList .chatBotErrorMessage {
   font-style:italic;
}
#ajaxChatContent #ajaxChatChatList .privmsg {
   font-style:italic;
}
#ajaxChatContent #ajaxChatChatList .action {
   font-style:italic;
}
#ajaxChatContent #ajaxChatChatList q {
   font-variant:small-caps;
}
#ajaxChatContent #ajaxChatChatList code {
    font-size:1.2em;
}


/*
* Colors
*/

#ajaxChatContent #ajaxChatChatList {
   color:#373737;
}
#ajaxChatContent #ajaxChatChatList {
   background-color:#373737;
}
#ajaxChatContent .rowEven {
   background-color:#373737;
}
#ajaxChatContent .rowOdd {
   background-color:#373737;
}
#ajaxChatContent .guest {
   color:gray;
}
#ajaxChatContent .user {
   color:#000;
}
#ajaxChatContent .moderator {
   color:#00AA00;
}
#ajaxChatContent .admin {
   color:red;
}
#ajaxChatContent .chatBot {
   color:#FF6600;
}
#ajaxChatContent #ajaxChatChatList .chatBotErrorMessage {
   color:red;
}
#ajaxChatContent #ajaxChatChatList a {
   color:#1E90FF;
}
#ajaxChatContent #ajaxChatChatList .delete {
   background:url('../img/delete.png') no-repeat right;
}
#ajaxChatContent #ajaxChatChatList .deleteSelected {
   border-color:red;
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uninvited13th on June 15, 2010, 05:57:10 AM
How to integrate forum smileys? Not shoutbox smileys
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kartheekb on June 15, 2010, 06:49:32 AM
Reply to my Questions


->There is no refresh button in shout box

-> No option to OFF the sound in shout box.

-> if we enter a message its not appearing untill we enter first message for 3 times

-> Can we customize smilies in shout box.very basic smilies u have provided in the shoutbox. i had changes smilies in form posts but not changed in shoutbox

Can i have solutions for this
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 15, 2010, 12:14:17 PM
@ KrisiS

This is the part where the shouts lands, you can have it alternate colors for each post.
#ajaxChatContent .rowEven {
   background-color:#373737;
}
#ajaxChatContent .rowOdd {
   background-color:#373737;
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 15, 2010, 12:14:57 PM
Quote from: uninvited13th on June 15, 2010, 05:57:10 AM
How to integrate forum smileys? Not shoutbox smileys

I would love to know how to do that!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: KrisiS on June 15, 2010, 12:17:45 PM
Thank you very much m8, works absolutely perfect !!  ;)
I had to edit those entries within the chat/css/shoutbox.css

Could I ask one more thing, Is it possible to remove the sound when someone submits a msg into the shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 15, 2010, 12:19:43 PM
Quote from: kartheekb on June 15, 2010, 06:49:32 AM
Reply to my Questions


->There is no refresh button in shout box

-> No option to OFF the sound in shout box.

-> if we enter a message its not appearing untill we enter first message for 3 times

-> Can we customize smilies in shout box.very basic smilies u have provided in the shoutbox. i had changes smilies in form posts but not changed in shoutbox

Can i have solutions for this

No need to refresh, chats/shouts are retrieved and 2000th of a second.

Does it really take 3 times or does it just lag initially?

See below

For the smilies look at /chat/js/config.js You'll see the smileys array

Then look in /chat/img/emoticon/ and put in whatever smileys you want, of course make them match up with your config.js
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 15, 2010, 12:23:01 PM
Quote from: KrisiS on June 15, 2010, 12:17:45 PM
Thank you very much m8, works absolutely perfect !!  ;)
I had to edit those entries within the chat/css/shoutbox.css

Could I ask one more thing, Is it possible to remove the sound when someone submits a msg into the shoutbox?

Find /chat/lib/template/shoutbox.html

ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

Replace With

ajaxChatConfig.settings.audio =false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink','audio');
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: KrisiS on June 15, 2010, 12:28:16 PM
I had just found your previous post regarding the sound and it works perfect..  ;)
I literally just popped back here to say I had it done and I seen your new post.

I am very grateful for your help, thank you so much..

PS: I wish I knew my way around the codes like you guys!   :o

Thanks again!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 15, 2010, 01:16:35 PM
Quote from: KrisiS on June 15, 2010, 12:28:16 PM
I had just found your previous post regarding the sound and it works perfect..  ;)
I literally just popped back here to say I had it done and I seen your new post.

I am very grateful for your help, thank you so much..

PS: I wish I knew my way around the codes like you guys!   :o

Thanks again!

Glad you got it sorted, you'll get there :D Enjoy!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: talk2troy on June 15, 2010, 07:39:38 PM
Quote from: mrtrc266 on June 14, 2010, 06:43:34 PM
Quote from: talk2troy on June 13, 2010, 12:23:05 PM
Quote from: mrtrc266 on June 13, 2010, 01:33:11 AM
@ talktotroy - Yes please attach your index.template.php file

Thank you very much for the reply...
Should I just paste it in here among all this noise, or send it via PM or a download link?
Sincerely,
talk2troy

No attach the actual file, look right below where you type to reply and hit "Additional Option"

Thank you for the reply - for reference - my original post was:
« Reply #6542 on: Junie 12, 2010, 01:32:16 NM »

Attached file - index.template.php

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Feriscool on June 15, 2010, 07:58:00 PM
Quote from: mrtrc266 on June 14, 2010, 06:42:22 PM
Quote from: Feriscool on June 14, 2010, 05:05:42 PM
I just installed it on the default theme, everything went fine up until this:

http://i47.tinypic.com/5zgk7k.png

What's wrong?

Proceed with the install but don't check the options to install on your custom themes(It will install ok on the default theme). Then you can manually edit the files on your custom using the Parser.

With the default theme, the options didn't even show in the place they're supposed to. Also, I don't even know how to edit the files. I'm not great at HTML and all this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kartheekb on June 15, 2010, 08:38:58 PM
Quote from: mrtrc266 on June 15, 2010, 12:19:43 PM
Quote from: kartheekb on June 15, 2010, 06:49:32 AM
Reply to my Questions


->There is no refresh button in shout box

-> No option to OFF the sound in shout box.

-> if we enter a message its not appearing untill we enter first message for 3 times

-> Can we customize smilies in shout box.very basic smilies u have provided in the shoutbox. i had changes smilies in form posts but not changed in shoutbox

Can i have solutions for this

No need to refresh, chats/shouts are retrieved and 2000th of a second.

Does it really take 3 times or does it just lag initially?

See below

For the smilies look at /chat/js/config.js You'll see the smileys array

Then look in /chat/img/emoticon/ and put in whatever smileys you want, of course make them match up with your config.js


For the first time time it is taking 3 times to display text & even in the middle of conversation some times its not appearing need to post again


What About the Sound option????
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 15, 2010, 09:58:27 PM
@ kartheekb

Look right after my last post to you, just a few posts up ^^^^
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 15, 2010, 09:59:34 PM
Quote from: Feriscool on June 15, 2010, 07:58:00 PM
Quote from: mrtrc266 on June 14, 2010, 06:42:22 PM
Quote from: Feriscool on June 14, 2010, 05:05:42 PM
I just installed it on the default theme, everything went fine up until this:

http://i47.tinypic.com/5zgk7k.png (http://i47.tinypic.com/5zgk7k.png)

What's wrong?

Proceed with the install but don't check the options to install on your custom themes(It will install ok on the default theme). Then you can manually edit the files on your custom using the Parser.

With the default theme, the options didn't even show in the place they're supposed to. Also, I don't even know how to edit the files. I'm not great at HTML and all this.

Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)

Just go to the page where you downloaded this from, then hit "Parse" it will show you what to look for. Simply do the edits for your custom theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Feriscool on June 15, 2010, 10:57:15 PM
Arg. If I gave you the files, would you nicely do it for me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uninvited13th on June 16, 2010, 01:45:40 AM
Ok.. I'll just wait for someone who can integrate the forum smileys.. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: adventuremode on June 16, 2010, 03:04:23 AM
Greetings all, been reading from the shadows for a while and learned a great deal from everything people have posted and followed up with and really appreciative to the community here.

My question is that I"m coming from IRC to AjaxChat and I've been playing around with many scripts and fixees on here including the favorite one of mine  "Chatbot commands"  for chatbot.php includes.

I have entire scripts on mirc that I would love to figure how to move over by my main question is one particular script that a friend helped write for me. It writes input to a txt file and a follow up command retrieves the input from the txt file. Basically its for adding definitions  (i.e.   value1 = value2 ) where it will write the input to the txt then when Value1 is called for or queried it will pull from the same. Curious if anyone could help me out in converting the code to java readable within ajax or if such functions like that are harder to do or not possible I can paste the script here if possible if not I understand and appreciate any feed back.

Also curious if anyone has created a quotebot script for chatbot yet ?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SallyM on June 16, 2010, 09:08:24 AM
Hello everyone.

Freshly installed AC on 2.0RC3. Am getting Internal Server error when I click Chat and ChatBot: Error: Connection status: 500 on the shoutbox. Yes, Ive tried chmodding and htaccessing (10x each). No luck.

Problem is with both default and custom themes. I have mods:
Aeva Media    1.2    
SMF4iPhone-Mod    1.0    
Karma Buttons


Help really appreciated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 16, 2010, 10:44:56 AM
Quote from: SallyM on June 16, 2010, 09:08:24 AM

Hello everyone.

Freshly installed AC on 2.0RC3. Am getting Internal Server error when I click Chat and ChatBot: Error: Connection status: 500 on the shoutbox. Yes, Ive tried chmodding and htaccessing (10x each). No luck.

Problem is with both default and custom themes. I have mods:
Aeva Media    1.2    
SMF4iPhone-Mod    1.0    
Karma Buttons

Help really appreciated.

Did you get Hacks Park going or do you still need assistance with this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 16, 2010, 10:47:08 AM
Quote from: adventuremode on June 16, 2010, 03:04:23 AM
Greetings all, been reading from the shadows for a while and learned a great deal from everything people have posted and followed up with and really appreciative to the community here.

My question is that I"m coming from IRC to AjaxChat and I've been playing around with many scripts and fixees on here including the favorite one of mine  "Chatbot commands"  for chatbot.php includes.

I have entire scripts on mirc that I would love to figure how to move over by my main question is one particular script that a friend helped write for me. It writes input to a txt file and a follow up command retrieves the input from the txt file. Basically its for adding definitions  (i.e.   value1 = value2 ) where it will write the input to the txt then when Value1 is called for or queried it will pull from the same. Curious if anyone could help me out in converting the code to java readable within ajax or if such functions like that are harder to do or not possible I can paste the script here if possible if not I understand and appreciate any feed back.

Also curious if anyone has created a quotebot script for chatbot yet ?


Not sure if any of this will help but here are some good customization tweaks
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Main_Page#Adding_functionality
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Feriscool on June 16, 2010, 01:02:26 PM
If I gave you the files that needed to be parsed, would you kindly do it for me?

I REALLY need this, but don't know how. :/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SallyM on June 16, 2010, 05:38:47 PM
Quote from: mrtrc266 on June 16, 2010, 10:44:56 AM

Did you get Hacks Park going or do you still need assistance with this?

I had HacksPark on my 1.1.11 version and yes, I got it working, but (apparently) it isnt compatible with RC3 (?). Now that Ive found AjaxChat I'd rather use this (Forum member complained that HacksPark, being Flash, slowed his computer down too much. Another said it took literal minutes for the shouts to load).

Yes please, I do still need help with this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kartheekb on June 16, 2010, 10:11:40 PM
removed matter here
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kartheekb on June 16, 2010, 10:26:43 PM
Quote from: mrtrc266 on June 15, 2010, 12:23:01 PM
Quote from: KrisiS on June 15, 2010, 12:17:45 PM
Thank you very much m8, works absolutely perfect !!  ;)
I had to edit those entries within the chat/css/shoutbox.css

Could I ask one more thing, Is it possible to remove the sound when someone submits a msg into the shoutbox?

Find /chat/lib/template/shoutbox.html

ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');

Replace With

ajaxChatConfig.settings.audio =false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink','audio');


Replaced Code but still sound is comming
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 17, 2010, 12:02:32 AM
All of my permissions are set to 0755, yet I am still getting this message:

ChatBot: Error: Connection status: 500

Anyone that can help?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pingpongrob on June 17, 2010, 02:17:06 AM
Hi, I have a fresh install of RC3 and I get the following error when I click the Chat Button.
The install seemed to go without a hitch.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.affordablett.com.au Port 80
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 17, 2010, 10:27:20 AM
Quote from: pingpongrob on June 17, 2010, 02:17:06 AM
Hi, I have a fresh install of RC3 and I get the following error when I click the Chat Button.
The install seemed to go without a hitch.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/0.9.8e-fips-rhel5 DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.affordablett.com.au (http://www.affordablett.com.au) Port 80


AJAX Chat Integration FAQs (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 17, 2010, 10:29:51 AM
Quote from: IDunc on June 17, 2010, 12:02:32 AM
All of my permissions are set to 0755, yet I am still getting this message:

ChatBot: Error: Connection status: 500

Anyone that can help?

You changed /chat/index.php and /shoutBox/index.php to 755? It's odd that both you and Sally both did that but are still getting the error.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 17, 2010, 10:36:16 AM
Quote from: Feriscool on June 16, 2010, 01:02:26 PM
If I gave you the files that needed to be parsed, would you kindly do it for me?

I REALLY need this, but don't know how. :/

It might be awhile. I won't be on much over the next few weeks, I'll be pretty much limited to checking in before and after work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 17, 2010, 11:31:29 AM
Quote from: mrtrc266 on June 17, 2010, 10:29:51 AM
You changed /chat/index.php and /shoutBox/index.php to 755? It's odd that both you and Sally both did that but are still getting the error.

The files were already set to 755 when I checked them and I still get the Connection 500 error.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 17, 2010, 05:45:18 PM
Quote from: IDunc on June 17, 2010, 11:31:29 AM
Quote from: mrtrc266 on June 17, 2010, 10:29:51 AM
You changed /chat/index.php and /shoutBox/index.php to 755? It's odd that both you and Sally both did that but are still getting the error.

The files were already set to 755 when I checked them and I still get the Connection 500 error.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on June 17, 2010, 08:30:40 PM
I don't know why this happens but I found the problem with my chat not working on first log-in.
if i go to my forum with www.mysite.com chat and shout do not load until i have clicked on home or any other button.
BUT if i go to my site as mysite.com without the www. in front it loads perfect.

Any idea's
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 17, 2010, 09:44:48 PM
Quote from: techno489 on June 17, 2010, 08:30:40 PM
I don't know why this happens but I found the problem with my chat not working on first log-in.
if i go to my forum with www.mysite.com (http://www.mysite.com) chat and shout do not load until i have clicked on home or any other button.
BUT if i go to my site as mysite.com without the www. in front it loads perfect.

Any idea's

What other Mods do you have installed?

Possibly try adding this to your .htaccess file (the one in the same directory as your /SSI.php file)
DirectoryIndex portal.php index.php index.html index.htm
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 17, 2010, 10:07:27 PM
@ Sally M and IDunc

Please PM me a temp admin account to your forum and create a temp account to access your FTP. I will take a look at both when I get the time. Probably Monday-Tuesday
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on June 17, 2010, 11:17:48 PM
Quote from: mrtrc266 on June 17, 2010, 09:44:48 PM
Quote from: techno489 on June 17, 2010, 08:30:40 PM
I don't know why this happens but I found the problem with my chat not working on first log-in.
if i go to my forum with www.mysite.com (http://www.mysite.com) chat and shout do not load until i have clicked on home or any other button.
BUT if i go to my site as mysite.com without the www. in front it loads perfect.

Any idea's

What other Mods do you have installed?
I have about 60 mods installed so to many to right down.
I put the line in DirectoryIndex portal.php index.php index.html index.htm as you said both after whats there and also before but still the same.
you already a member/administrator of my forum and I already sent ftp details
cheers

Possibly try adding this to your .htaccess file (the one in the same directory as your /SSI.php file)
DirectoryIndex portal.php index.php index.html index.htm

I have about 60 mods installed so to many to right down.
I put the line in DirectoryIndex portal.php index.php index.html index.htm as you said both after whats there and also before but still the same.
you already a member/administrator of my forum and I already sent ftp details

Also after adding that ling chat stops working so i have removed it again/ I also tested with .htaccess removed and the same thing happens weather or not the .htaccess file is there. everything works with chat/shout if i load my site as mysite.com without the www.
could there be other .htaccess files in my forum over riding this one?
I will have a look my self when I have time as I got to go to work now
cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 17, 2010, 11:31:39 PM
Quote from: IDunc on June 17, 2010, 05:45:18 PM
Quote from: IDunc on June 17, 2010, 11:31:29 AM
Quote from: mrtrc266 on June 17, 2010, 10:29:51 AM
You changed /chat/index.php and /shoutBox/index.php to 755? It's odd that both you and Sally both did that but are still getting the error.

The files were already set to 755 when I checked them and I still get the Connection 500 error.

You seem to be all set, all I did was install the Mod, then CHMOD the /chat/index.php and /shoutBox/index.php files to 755 and it works fine.

Only thing I see is that you might want to widen your theme in order to not have your menu wrap down to the next line.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 18, 2010, 12:31:31 AM
Problem solved, thanks so much for your help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: syphergaming on June 18, 2010, 06:48:42 AM
when i click on submit it will not apear in chat box

http://www.syphergaming.com/forums/chat/index.php (http://www.syphergaming.com/forums/chat/index.php)

EDIT:
now im getting this ChatBot: Error: Connection status: 0
every time i type in the box

if any one know what it is post please
Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ilabsolutions on June 18, 2010, 07:15:07 AM
Is there some kinda cache somewhere that overwrites my shoutbox.css to the old one even if I upload a new one... :o
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GohighVoltage on June 18, 2010, 09:40:11 AM
Hi,  Great mod!   Is there a way only to allow one language, with no drop down?     Also,  does this put a heavy load on a server?  I am using a shared server.      Is there a way to have the window pop up on a users screen when someone sends a message,   like what yahoo messenger does?

Thanks alot!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 18, 2010, 11:14:06 AM
Quote from: syphergaming on June 18, 2010, 06:48:42 AM
when i click on submit it will not apear in chat box

http://www.syphergaming.com/forums/chat/index.php (http://www.syphergaming.com/forums/chat/index.php)

EDIT:
now im getting this ChatBot: Error: Connection status: 0
every time i type in the box

if any one know what it is post please
Thanks

To get rid of the connection status 0 please see the FAQ's
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 18, 2010, 11:15:45 AM
Quote from: ilabsolutions on June 18, 2010, 07:15:07 AM
Is there some kinda cache somewhere that overwrites my shoutbox.css to the old one even if I upload a new one... :o

Make sure you upload it to /chat/css/ not /shoutBox/css unless don't have your chat and shout integrated in your admin settings.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 18, 2010, 11:21:38 AM
Quote from: GohighVoltage on June 18, 2010, 09:40:11 AM
Hi,  Great mod!   Is there a way only to allow one language, with no drop down?     Also,  does this put a heavy load on a server?  I am using a shared server.      Is there a way to have the window pop up on a users screen when someone sends a message,   like what yahoo messenger does?

Thanks alot!

Find and edit to your liking...
chat/lib/config.php
// Available languages:
$config['langAvailable'] = array('ar','bg','bp','ca','cy','cz','de','el','en','es','et','fi','fr','gl','he','hr','hu','in','it','ka','kr','ja','nl','no','pl','ro','ru','sk','sl','sr','sv','tr','uk','zh','zh-tw');
// Default language:
$config['langDefault'] = 'en';
// Language names:
$config['langNames'] = array('ar'=>'عربي','bg'=>'Български','bp'=>'Português (Brasil)','ca'=>'Català','cy'=>'Cymraeg','cz'=>'Česky','de'=>'Deutsch','el'=>'Ελληνικα','en'=>'English','es'=>'Español','et'=>'Eesti','fi'=>'Suomi','fr'=>'Français','gl'=>'Galego','he'=>'עברית','hr' => 'Hrvatski','hu' => 'Magyar','in'=>'Bahasa Indonesia','it'=>'Italiano','ja'=>'日本語','ka'=>'ქართული','kr'=>'한글','nl'=>'Nederlands','no'=>'Norsk','pl'=>'Polski','ro'=>'România','ru'=>'Русский','sk'=>'Slovenčina','sl'=>'Slovensko','sr'=>'Srpski','sv'=>'Svenska','tr'=>'Türkçe','uk'=>'Українська','zh'=>'中文 (简体)', 'zh-tw'=>'中文 (繁體)');


It could take a load on your server, really depends on the usage of it. Your host will let you know if they need you to shut it down. No popup on new messages.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MyJC on June 18, 2010, 04:37:21 PM
Quote from: mrtrc266 on June 17, 2010, 10:29:51 AM
Quote from: IDunc on June 17, 2010, 12:02:32 AM
All of my permissions are set to 0755, yet I am still getting this message:

ChatBot: Error: Connection status: 500

Anyone that can help?

You changed /chat/index.php and /shoutBox/index.php to 755? It's odd that both you and Sally both did that but are still getting the error.

Try setting the permissions on index.php to 600. I had the same problem and just kept changing the setting until I found one that worked - this was it for me.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GohighVoltage on June 18, 2010, 04:44:44 PM
What would I have to do to delete all languages except for english?   (eliminate the drop down, and just offer english)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 18, 2010, 04:50:18 PM
Go to the file which is in reply 6630

Using the file mentioned delete ALL languages except 'en'

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GohighVoltage on June 18, 2010, 04:57:08 PM
Will that eliminate the drop down box as well?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 18, 2010, 05:04:45 PM
Yes as the only language will be English.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GohighVoltage on June 18, 2010, 05:10:24 PM
thank you so much!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GohighVoltage on June 18, 2010, 05:34:35 PM
Ran into problem:

When I went to install,  Everything checks ok,  except for the first change in the subs.php  file.

I have the helpdesk mod that is causing the error.

Your mod wants to change this line:

$context['allow_pm'] = allowedTo('pm_read');




But my line actually reads:

   $context['allow_pm'] = allowedTo('pm_read') && (empty($modSettings['helpdesk_active']) || empty($modSettings['shd_helpdesk_only']) || empty($modSettings['shd_disable_pm']));


Any way around this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 18, 2010, 05:38:48 PM
As I don't know what the helpdesk mod does can you please attach the file to a post.

Not being a coder myself I won't be able to do much however I am sure mrt will have a look when he can.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ilabsolutions on June 18, 2010, 06:41:21 PM
Quote from: mrtrc266 on June 18, 2010, 11:15:45 AM
Quote from: ilabsolutions on June 18, 2010, 07:15:07 AM
Is there some kinda cache somewhere that overwrites my shoutbox.css to the old one even if I upload a new one... :o

Make sure you upload it to /chat/css/ not /shoutBox/css unless don't have your chat and shout integrated in your admin settings.

If I look at the css that is being called it's the shoutbox css :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Pinball Nation on June 18, 2010, 10:34:12 PM
Like the one user above when i try to submit anything to chat or the shoutbox i get nothing.I have enabled everything.Still nothing.I installed this on a fresh install of the newest SMF 2.0.I did read the FAQ.Did not help.This is a cool mod.I hope someone can help me out.Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on June 18, 2010, 11:01:28 PM
Have you tried to make sure that the CDMod of the entire shoutbox and chat directory (and all files inside) are set to 0755?

If not that's most likely your problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Pinball Nation on June 19, 2010, 12:16:42 AM
It will not let me change those permissions.They are set at 755.On my sever that needs to be 777.So im not sure.I can't change the permissions on any of the chat or shoutbox files
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 19, 2010, 01:27:14 AM
Quote from: ilabsolutions on June 18, 2010, 06:41:21 PM
Quote from: mrtrc266 on June 18, 2010, 11:15:45 AM
Quote from: ilabsolutions on June 18, 2010, 07:15:07 AM
Is there some kinda cache somewhere that overwrites my shoutbox.css to the old one even if I upload a new one... :o

Make sure you upload it to /chat/css/ not /shoutBox/css unless don't have your chat and shout integrated in your admin settings.

If I look at the css that is being called it's the shoutbox css :(

There are 2 shoutbox.css files one of them is in /chat/css/shoutbox.css and the other is on /shoutBox/css//shoutbox.css
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 19, 2010, 01:28:09 AM
Quote from: Pinball Nation on June 19, 2010, 12:16:42 AM
It will not let me change those permissions.They are set at 755.On my sever that needs to be 777.So im not sure.I can't change the permissions on any of the chat or shoutbox files

Contact your host and ask them to give you permission to change the permissions, or ask them to do it for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SallyM on June 19, 2010, 04:39:51 AM
Me again  :-[

(Thanks again for your help mrtrc)

Now Im trying to add little customisations. Nothing major, just common ones from the Faqs.

Changes made, file uploaded (config.php) but NOTHING I do actually changes anything on my shoutbox or chat.

WHY???????

Ive done:

// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
$config['allowGuestWrite'] = false;

// Default channelName used together with the defaultChannelID if no channel with this ID exists:
$config['defaultChannelName'] = 'Our Forum';


Made the same changes to:
ajax/chat/lib/config.php
ajax/shoutbox/lib/config.php
root/chat/lib/config.php
root/shoutbox/lib/config.php

All uploaded and downloaded a half dozen times. Ive cleared cookies, cache, restarted computer multiple times. What permissions should these files have?

Completely stumped. Turning off guest permission to write is the most important (settings are in place) and would like to do other things if I can make these work first.


Update: managed to get some reaction from it now but still no luck on the DisableGuestWriting.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: syphergaming on June 19, 2010, 06:26:50 AM
Quote from: mrtrc266 on June 18, 2010, 11:14:06 AM
Quote from: syphergaming on June 18, 2010, 06:48:42 AM
when i click on submit it will not apear in chat box

http://www.syphergaming.com/forums/chat/index.php (http://www.syphergaming.com/forums/chat/index.php)

EDIT:
now im getting this ChatBot: Error: Connection status: 0
every time i type in the box

if any one know what it is post please
Thanks

To get rid of the connection status 0 please see the FAQ's
now when i type some thing in it wont show any thing does this work on smf 1.1.11?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 19, 2010, 10:45:40 AM
@ SallyM

Not sure why your changes aren't taking, re-enable my FTP and I'll take a look again. For the guests access you can set that in your Forums Admin. Un-check "access to chat" for the Member Group "Guests" in your forums permissions.

@ syphergaming

Did you read this section in the FAQ's
Here some known issues and fixes caused by either other Mods or   some servers
If you install the Mod   and it looks like it installs fine but the shoutbox and chat room are   blank please
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: syphergaming on June 19, 2010, 12:01:14 PM
i did that now it wont let me access it i get 401 error
what files should the .htaccess be going in to?
this is what in my .htacces
RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php
AuthType Basic
AuthName "Forbidden"
AuthUserFile /dev/null
require user nobody

and the only SSI.php file i can find is in the forums main folder
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zrorox on June 19, 2010, 12:54:38 PM
A little unimportant, but curious question about this shoutbox:

Is there a way to have a user change the font color to their type without typing (or frankly USING) BBC Code?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Pinball Nation on June 19, 2010, 04:21:20 PM
Quote from: mrtrc266 on June 19, 2010, 01:28:09 AM
Quote from: Pinball Nation on June 19, 2010, 12:16:42 AM
It will not let me change those permissions.They are set at 755.On my sever that needs to be 777.So im not sure.I can't change the permissions on any of the chat or shoutbox files

Contact your host and ask them to give you permission to change the permissions, or ask them to do it for you.
Hi and thanks for the info.I have full access to all files and can change permissions on or in all of them except for these.This is a test site i set up on a free server so i could play around with the new SMF 2.0 .The free server could very well be the problem but i just wanted to make sure.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SallyM on June 19, 2010, 04:52:36 PM
Quote from: mrtrc266 on June 19, 2010, 10:45:40 AM
@ SallyM

Not sure why your changes aren't taking, re-enable my FTP and I'll take a look again. For the guests access you can set that in your Forums Admin. Un-check "access to chat" for the Member Group "Guests" in your forums permissions.

Hi again, same ftp as previously.

I have "Access to Chat" (X) for Guests in member group permissions.
Also no guest or member has "Can Shout" permission but everyone seems able to.
I have "Integrate shout and chat" unchecked. If I understand properly this means shouts won't go into chat and vice-versa? If I'm correct this isnt working, chat and shout are still integrated.

Just confirming, I want guests to be able to view the shoutbox without shouting.

The other .config.php setting that I'd like which isnt working is:
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 48;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 20;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Feriscool on June 19, 2010, 05:18:15 PM
If I gave you the files that needed to be parsed, would you kindly do it for me?

I REALLY need this, but don't know how. :/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ilabsolutions on June 20, 2010, 08:57:56 AM
Oke it worked fine now :)

Still have some questions though, is it possible to show more shouts on display? I can't find it somewhere in the configs ? Second question is if there is somekind of history?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on June 20, 2010, 09:18:27 PM
Hi I installed this on RC3 and it installed with no errors and the shoutbox shows up and i can get into chat but what i type does not show up in the chat box

this happens on all themes and also when i go into chat it says this across the top

Notice: Undefined variable: scripturl in /home/appfuzio/public_html/forum2/Themes/default/languages/Modifications.english.php  on line 215

any help would be appreciated

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: War Needle on June 20, 2010, 11:22:11 PM
I have installed two forums on my webserver.  They are in folders /smf/ and /smf2/.  They have separate mysql entries and work fine.

I installed AjaxChat on smf and it functions great; however, on smf2 the shouts are not showing up in the shoutbox.  It's a fresh install on 1.1.11.

Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 21, 2010, 07:48:00 PM
Quote from: zrorox on June 19, 2010, 12:54:38 PM
A little unimportant, but curious question about this shoutbox:

Is there a way to have a user change the font color to their type without typing (or frankly USING) BBC Code?

At this time there is no persistent font color change, using the BBC is required.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 21, 2010, 07:50:46 PM
Quote from: ilabsolutions on June 20, 2010, 08:57:56 AM
Oke it worked fine now :)

Still have some questions though, is it possible to show more shouts on display? I can't find it somewhere in the configs ? Second question is if there is somekind of history?

To show more shouts look in /chat/lib/config.php and look for
// Max number of messages to display on each request:

Look at the "readme" to see how to get the logs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 21, 2010, 07:51:51 PM
Quote from: sattninja on June 20, 2010, 09:18:27 PM
Hi I installed this on RC3 and it installed with no errors and the shoutbox shows up and i can get into chat but what i type does not show up in the chat box

this happens on all themes and also when i go into chat it says this across the top

Notice: Undefined variable: scripturl in /home/appfuzio/public_html/forum2/Themes/default/languages/Modifications.english.php  on line 215

any help would be appreciated

Did you check out the FAQ's ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 21, 2010, 07:56:30 PM
Quote from: SallyM on June 19, 2010, 04:52:36 PM
Quote from: mrtrc266 on June 19, 2010, 10:45:40 AM
@ SallyM

Not sure why your changes aren't taking, re-enable my FTP and I'll take a look again. For the guests access you can set that in your Forums Admin. Un-check "access to chat" for the Member Group "Guests" in your forums permissions.

Hi again, same ftp as previously.

I have "Access to Chat" (X) for Guests in member group permissions.
Also no guest or member has "Can Shout" permission but everyone seems able to.
I have "Integrate shout and chat" unchecked. If I understand properly this means shouts won't go into chat and vice-versa? If I'm correct this isnt working, chat and shout are still integrated.

Just confirming, I want guests to be able to view the shoutbox without shouting.

The other .config.php setting that I'd like which isnt working is:
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 48;
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 20;


The Integration is working now, you had copied the /chat/lib/config.php replaced with the /shoutBox/lib/config.php

In other words this was in your /chat/lib/config.php file...
// Database table names:
$config['dbTableNames'] = array();
$config['dbTableNames']['online']      = $db_prefix . 'ajaxshout_online';
$config['dbTableNames']['messages']      = $db_prefix . 'ajaxshout_messages';
$config['dbTableNames']['bans']         = $db_prefix . 'ajaxshout_bans';
$config['dbTableNames']['invitations']   = $db_prefix . 'ajaxshout_invitations';


And it shoulda been....
// Database table names:
$config['dbTableNames'] = array();
$config['dbTableNames']['online']      = $db_prefix . 'ajaxchat_online';
$config['dbTableNames']['messages']      = $db_prefix . 'ajaxchat_messages';
$config['dbTableNames']['bans']         = $db_prefix . 'ajaxchat_bans';
$config['dbTableNames']['invitations']   = $db_prefix . 'ajaxchat_invitations';


The disabling of the guests writing to the chat is working but only if you have the chat and shout Integrated. Will have to look into that one.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on June 21, 2010, 08:23:20 PM
oh how i love a good easter egg hunt i looked at the faq saw many thing can you narrow it down for me a lil bit

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 21, 2010, 09:00:30 PM
Quote from: sattninja on June 21, 2010, 08:23:20 PM
oh how i love a good easter egg hunt i looked at the faq saw many thing can you narrow it down for me a lil bit
Here some known issues and fixes caused by either other Mods or some servers
If you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please READ THIS
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on June 21, 2010, 09:46:02 PM
i am sorry man maybe i am stupid but i red this and have no idea what the hell they are talking about

QuoteThe fix above fix requires placing a line in an .htaccess file located in the same folder as SSI.php. If this fix still does not resolve your issues, there are a few other things you can try. I will explain them here.

    * Try adding RewriteEngine on just above the RewriteRule ^chat/?$ ./chat/index.php [L,QSA] in the .htaccess that's in the same folder as SSI.php.
    * Try also putting these same two lines in the .htaccess in the site's root folder. (You'll end up with two separate files, each with those two lines at the top.)
    * Try creating an .htaccess file just inside both the /chat/ and the /shoutBox/ folders. At the top of each of these and on separate lines, add RewriteEngine on and RewriteRule ^/?$ ./index.php [L,QSA].
      This particular fix seems to also take care of the problem with being forced to integrate the shoutbox and chat to get the shoutbox working. It will also hopefully be added to the package in future releases.


If one of the procedures above fixes your blank chat, please list it so we can see which are the most common configurations.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on June 21, 2010, 09:56:08 PM
i try to use wordpad to create the htaccess file but it will not met me i am not even sure that is what i am supposed to do
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 21, 2010, 10:04:14 PM
Quote from: sattninja on June 21, 2010, 09:56:08 PM
i try to use wordpad to create the htaccess file but it will not met me i am not even sure that is what i am supposed to do
You should use
Quote from: sattninja on June 21, 2010, 09:56:08 PM
i try to use wordpad to create the htaccess file but it will not met me i am not even sure that is what i am supposed to do

You should use a Program like Notepad++ (http://sourceforge.net/projects/notepad-plus/) to edit/create your files that will be uploaded to your server.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on June 21, 2010, 10:12:17 PM
dude can you just make me the file i downloaded that notepad but i cannot find an option to make this damn file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on June 21, 2010, 10:17:43 PM
i was able to make it and rename it using cpanel but it disappeared out if everywhere i put it this is frekin retarded
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on June 21, 2010, 10:23:47 PM
ok when i ftp into the serer i see the htacess files in both folders and the root also i have i in all 3 placed with those 2 lines and still not working
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 21, 2010, 10:31:09 PM
Quote from: sattninja on June 21, 2010, 10:23:47 PM
ok when i ftp into the serer i see the htacess files in both folders and the root also i have i in all 3 placed with those 2 lines and still not working

PM me the link to the site your trying to get this working on, a Temp Admin Account to your forum and the FTP details and I'll take a look.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on June 21, 2010, 11:32:39 PM
thanks alot man u r da man works like a dream as you already know since we were using it

thanks again and i see why you are a hero

lol

much appreciated :) :) :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Techie on June 22, 2010, 12:02:24 AM
wen i press install on my smf 1.1.11 forum. i got fatal 500 error i cant able to open my forum its always showing

The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.

wat should i do now ? how to rectify it plzzz anyone ?

thank u
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Techie on June 22, 2010, 04:08:03 AM
anyone help me out plzz. coz this my forum is not online..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheDmac on June 22, 2010, 04:09:40 AM
I'm getting the following

Table 'versonog_smf.smf_ajaxchat_online' doesn't exist
File: /home/versonog/public_html/forums/Sources/Load.php
Line: 2245


Any idea why? The chat alone works fine.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 22, 2010, 11:00:13 AM
Quote from: Techie on June 22, 2010, 04:08:03 AM
anyone help me out plzz. coz this my forum is not online..

Please wait 24 hrs before bumping your post.

Did you check your error log like the message says?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 22, 2010, 11:01:02 AM
Quote from: TheDmac on June 22, 2010, 04:09:40 AM
I'm getting the following

Table 'versonog_smf.smf_ajaxchat_online' doesn't exist
File: /home/versonog/public_html/forums/Sources/Load.php
Line: 2245


Any idea why? The chat alone works fine.

Did you install this manually? If so you want to install it via the package manager in your forums admin panel.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Techie on June 22, 2010, 11:53:35 AM
my issue got solved from my hosting provider

thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 22, 2010, 11:56:49 AM
Quote from: Techie on June 22, 2010, 11:53:35 AM
my issue got solved from my hosting provider

thank you

Glad you got it sorted.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: moaiamorfo on June 23, 2010, 05:59:28 AM
hi all,

in my chat a mod has just kicked a user. how can we unkick him, now? /unban username doesn't work (it says that the user can't ben found) and the user still can't enter in the chat.

thanks a lot. :)

cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: talk2troy on June 23, 2010, 10:10:42 AM
Quote from: talk2troy on June 15, 2010, 07:39:38 PM
Quote from: mrtrc266 on June 14, 2010, 06:43:34 PM
Quote from: talk2troy on June 13, 2010, 12:23:05 PM
Quote from: mrtrc266 on June 13, 2010, 01:33:11 AM
@ talktotroy - Yes please attach your index.template.php file

Thank you very much for the reply...
Should I just paste it in here among all this noise, or send it via PM or a download link?
Sincerely,
talk2troy

No attach the actual file, look right below where you type to reply and hit "Additional Option"

Thank you for the reply - for reference - my original post was:
« Reply #6542 on: Junie 12, 2010, 01:32:16 NM »

Attached file - index.template.php

Any idea yet why this is happening?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dujapa on June 23, 2010, 12:18:22 PM
I have problems When I run of Tables_1.1.x.php

Look at image: (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fmurevolutions.com.br%2Ffsmf%2FerrorChat1.jpg&hash=eb55969eab0a75b65a29f80f7286955054860d74)

How I fix this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: snowmedia on June 23, 2010, 12:44:53 PM
Can someone help me find where the shoutbox for the AjaxChat is being called to display.  I am getting a double instance of the shoutbox.  Of the two instances, one works and the other is empty.  I went through all the files that the installation references and checked for any double instances in the code.  I found a few, but removing the ones I found did not remove it.  I may have overlooked the offending double instance, but if I knew where to look, it might help.  I have attached a capture.  Any help would be greatly appreciated. 

Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: imrontoday on June 23, 2010, 01:01:28 PM
Hello,

i get error on JS :: > Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB0.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Hotbar 11.0.78.0; FDM; InfoPath.2)
Timestamp: Wed, 23 Jun 2010 16:58:04 UTC


Message: Object expected
Line: 61
Char: 1
Code: 0
URI: http://forum.studyhelper.net/index.php


Message: 'this.dom.inputField' is null or not an object
Line: 1586
Char: 3
Code: 0
URI: http://forum.studyhelper.net/chat/js/chat.js


Message: 'this.dom.inputField' is null or not an object
Line: 1586
Char: 3
Code: 0
URI: http://forum.studyhelper.net/chat/js/chat.js


Message: 'this.dom.inputField' is null or not an object
Line: 1586
Char: 3
Code: 0
URI: http://forum.studyhelper.net/chat/js/chat.js


Message: 'this.dom.inputField' is null or not an object
Line: 1586
Char: 3
Code: 0
URI: http://forum.studyhelper.net/chat/js/chat.js


Message: 'this.dom.inputField' is null or not an object
Line: 1922
Char: 3
Code: 0
URI: http://forum.studyhelper.net/chat/js/chat.js


Message: 'this.dom.inputField' is null or not an object
Line: 1922
Char: 3
Code: 0
URI: http://forum.studyhelper.net/chat/js/chat.js


Message: 'this.dom.inputField' is null or not an object
Line: 1586
Char: 3
Code: 0
URI: http://forum.studyhelper.net/chat/js/chat.js


Message: 'this.dom.inputField' is null or not an object
Line: 1586
Char: 3
Code: 0
URI: http://forum.studyhelper.net/chat/js/chat.js

please help me

Imron
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: snowmedia on June 23, 2010, 01:07:53 PM
I fixed my problem.  There was just a few more instances of the code being in there twice in the needed files.  Sorry to jump the gun.  Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on June 23, 2010, 04:46:07 PM
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
Here is the error that I keep getting. I have forwarded it to my webmaster. If anyone has insite in the meantime, please post!

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.usgrantdiscussions.com Port 80
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on June 23, 2010, 05:16:40 PM
How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477.0)

CHMOD your /chat and /shoutbox directory, make sure all the folders and files are CHMOD'ed to 0755

That should fix this issues, if not reply back.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheDmac on June 24, 2010, 09:46:34 AM
We managed to get it installed, but the names arn't showing right.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F1z48tqr.jpg&hash=0c9e6c356b3ebc2f0655d8244a2f8ca662748d09)




Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on June 24, 2010, 10:32:50 AM
Thank you I did that last night after doing some searching. I didn't realize that files could CHMODed in the cpanel's file manager. Thanks again! GREAT MOD!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 24, 2010, 05:48:46 PM
Quote from: TheDmac on June 24, 2010, 09:46:34 AM
We managed to get it installed, but the names arn't showing right.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F1z48tqr.jpg&hash=0c9e6c356b3ebc2f0655d8244a2f8ca662748d09)

More information is required than what you have already given us.

SMF version?

Theme Used?

Any errors on install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on June 24, 2010, 09:19:33 PM
i'm having troubles installing.     i can apply it, but when i go to install, every time i do, it i get a 500 internal server error.     now i read this part of the FAQ...
QuoteIf you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755 (and in some cases CHMOD the actual "Folders" as well).

and i see the post a couple above.. but i'm retarded, and having troubles where i need to find the area where i change it to 755.   i go to edit index.php to look where to put it.. but i don't know if i'm in the right spot or not.   and this is what i see...

Quote<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/

// Show all errors:
error_reporting(E_ALL);

// Path to the chat directory:
define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');

// Include custom libraries and initialization code:
require(AJAX_CHAT_PATH.'lib/custom.php');

// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the chat:
$ajaxChat = new CustomAJAXChat();
?>

i had this up and running nice before... had to do a server change through go daddy, and when i went to apply it again, this is what's been happening.     thanks for the help guys.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheDmac on June 24, 2010, 10:13:28 PM
Using SMF 1.1.11
Usinf Ve1x.

No errors upon install.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on June 25, 2010, 01:28:46 AM
How hard is it to make a custom style for this and "lock" it as the default ? And how hard is it to use your own smileys instead if the default ones?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on June 25, 2010, 02:37:23 AM
Its actually pretty easy, its all in the CSS, I have customized mine , a lot, it looks completely different and matches my custom theme
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: syphergaming on June 25, 2010, 02:46:02 AM
i can run this chat on my local host.
but on my web host it wont work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 25, 2010, 06:35:57 AM
Quote from: syphergaming on June 25, 2010, 02:46:02 AM
i can run this chat on my local host.
but on my web host it wont work.

Who is your host?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: syphergaming on June 25, 2010, 09:49:36 AM
000webhost
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 25, 2010, 09:56:07 AM
Quote from: syphergaming on June 25, 2010, 02:46:02 AM
i can run this chat on my local host.
but on my web host it wont work.

Exactly what is the problem?
Any errors?
What version on SMF?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: syphergaming on June 25, 2010, 10:02:41 AM
1.1.11

no errors just nothing pops up in the chat space

(yes i have read the faqs)
and i cant find any thing in there
EDIT
i can give u my FTP details and you can tell me the problem
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 25, 2010, 10:09:43 AM
Go ahead and PM me the details along with a temp admin account to your forum. I'm off to work soon but will try to knock it out before I go.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: syphergaming on June 25, 2010, 10:14:37 AM
kk thank you very much
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on June 25, 2010, 11:41:52 AM
Quote from: miDnIghtEr20C on June 24, 2010, 09:19:33 PM
i'm having troubles installing.     i can apply it, but when i go to install, every time i do, it i get a 500 internal server error.     now i read this part of the FAQ...
QuoteIf you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755 (and in some cases CHMOD the actual "Folders" as well).

and i see the post a couple above.. but i'm retarded, and having troubles where i need to find the area where i change it to 755.   i go to edit index.php to look where to put it.. but i don't know if i'm in the right spot or not.   and this is what i see...

Quote<?php
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/

// Show all errors:
error_reporting(E_ALL);

// Path to the chat directory:
define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');

// Include custom libraries and initialization code:
require(AJAX_CHAT_PATH.'lib/custom.php');

// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the chat:
$ajaxChat = new CustomAJAXChat();
?>

i had this up and running nice before... had to do a server change through go daddy, and when i went to apply it again, this is what's been happening.     thanks for the help guys.
can anybody tell me where i need to go to find and put that 755 at?     Thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dujapa on June 25, 2010, 01:22:32 PM
I solve my problem in install with a change in file Tables_1.1.X.php.

Only this:
//remove previous version's tabales
/*
db_query("DROP TABLE IF EXISTS ajax_chat_online", __FILE__, __LINE__);
db_query("DROP TABLE IF EXISTS ajax_chat_messages", __FILE__, __LINE__);
db_query("DROP TABLE IF EXISTS ajax_chat_bans", __FILE__, __LINE__);
db_query("DROP TABLE IF EXISTS ajax_chat_invitations", __FILE__, __LINE__);
db_query("DROP TABLE IF EXISTS ajax_shout_online", __FILE__, __LINE__);
db_query("DROP TABLE IF EXISTS ajax_shout_messages", __FILE__, __LINE__);
db_query("DROP TABLE IF EXISTS ajax_shout_bans", __FILE__, __LINE__);
db_query("DROP TABLE IF EXISTS ajax_shout_invitations", __FILE__, __LINE__);

db_query("DROP TABLE IF EXISTS {$db_prefix}ajaxchat_online", __FILE__, __LINE__);
db_query("DROP TABLE IF EXISTS {$db_prefix}ajaxchat_messages", __FILE__, __LINE__);
db_query("DROP TABLE IF EXISTS {$db_prefix}ajaxchat_bans", __FILE__, __LINE__);
db_query("DROP TABLE IF EXISTS {$db_prefix}ajaxchat_invitations", __FILE__, __LINE__);
*/


But I have other problem after all Chat ok and installed.

Verification image no longer appears after installation of CHAT. Does anybody know what might be or how to fix this?

Look at the pictures below:

In Portuguese-brazilian_utf8 (Not WORK)

But in English is Normal
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: new200 on June 25, 2010, 03:07:48 PM
Can someone show me how I can replace the ShoutBox in index with a YouTube video???? many thanks!!!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.hmongkingdom.com%2Fhowto.jpg&hash=e6c73f005e981abd972d5464ae3411f4b97f1a76)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on June 25, 2010, 03:22:12 PM
You can just disable the shoutbox (on all pages) then add the HTML embed code into Index.Template.php in side a echo.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: new200 on June 25, 2010, 04:23:36 PM
Quote from: ♪ JohnCcCcCc ♫ on June 25, 2010, 03:22:12 PM
You can just disable the shoutbox (on all pages) then add the HTML embed code into Index.Template.php in side a echo.

can you provide me the echo codes?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on June 25, 2010, 04:33:52 PM
Has anyone figured out how to get the shoutbox to not eat the first thing you type?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on June 25, 2010, 04:49:26 PM
i'm on godaddy, and i can't find a way for it to let me modify permissions.   :(    i just got off the phone with the dude.. he said i need to make some kind of htaccess point folder or something.. i just don't get it.       filezilla says that it doesn't understand the command when i change it with that either...    i just want my chat back up.  :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on June 25, 2010, 05:17:31 PM
Eh... do you have an FTP program? Can you modify files on your server? You must be able to, otherwise you wouldn't be here. The dude means you need an .htaccess file. I don't know what that would have to do with permissions though. How are you uploading your files to the server? If you're using an FTP program, you can modify permissions with that, usually by right clicking the folder / file and selecting Properties.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on June 25, 2010, 05:21:43 PM
ya.. i don't know what's going on.     all i know is that i did an update because the guys at godaddy told me to... but then i noticed and told them... no.. i'm already at 1.1.11 on my smf, and that it showing a 1.1.10 is wrong, because even my site says it's at 1.1.11... so then when i did the update, it said there was an error.    so it asked me if i wanted to do a roll back... i clicked yes... and then all my mods were gone.      they were there.. but they weren't applied.

so i had to re apply all my mods, and everything is back to normal.. except for the last one.. which is this ajax chat.     now every time i go to install it, it gives me a 500 error, and i can't change the permissions on my folders!  :D   yay!    i talked to the guy at godaddy to no avail.       it worked perfect before..and now i can't get past the install.

i have filezilla going, and every time i change the permissions, it says Response:   500 'SITE CHMOD 755 index.php': command not understood

d'oh!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on June 25, 2010, 06:04:59 PM
Quote from: new200 on June 25, 2010, 04:23:36 PM
Quote from: ♪ JohnCcCcCc ♫ on June 25, 2010, 03:22:12 PM
You can just disable the shoutbox (on all pages) then add the HTML embed code into Index.Template.php in side a echo.

can you provide me the echo codes?

Please attach your index.template.php file, as I do not have Ajax Shoutbox integrated, So I can see your current coding.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on June 25, 2010, 08:16:39 PM
Wow, thats pretty weird there Midnight. Not sure what to tell you in that case, I guess it's up to godaddy tech support. You should be able to change permissions on your files and directories. Well, unless you got some kind of rock-bottom hosting package that's like, $1 a month on a shared server or something. Sorry I can't help you.

Oh, one thing - are you using the latest version of Filezilla?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on June 25, 2010, 10:15:46 PM
i'll have to check if i am or not... i think so though.. but ya.... i'm screwed.    have to use the sparks chat thing right now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 25, 2010, 10:18:18 PM
Quote from: dujapa on June 25, 2010, 01:22:32 PM
I solve my problem in install with a change in file Tables_1.1.X.php.

Was there a reason why you didn't/couldn't just install it via the package manager in your forums admin panel?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 25, 2010, 10:19:39 PM
Quote from: bahgheera on June 25, 2010, 04:33:52 PM
Has anyone figured out how to get the shoutbox to not eat the first thing you type?

Seems like it might be just a little lag, attach your /chat/lib/config.php file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 25, 2010, 10:20:55 PM
Quote from: miDnIghtEr20C on June 25, 2010, 10:15:46 PM
i'll have to check if i am or not... i think so though.. but ya.... i'm screwed.    have to use the sparks chat thing right now.

PM me a temp admin account to your forum and a temp FTP access account and I'll take a look if you like, you have me curious.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on June 26, 2010, 12:01:51 AM
Quote from: mrtrc266 on June 25, 2010, 10:20:55 PM
Quote from: miDnIghtEr20C on June 25, 2010, 10:15:46 PM
i'll have to check if i am or not... i think so though.. but ya.... i'm screwed.    have to use the sparks chat thing right now.

PM me a temp admin account to your forum and a temp FTP access account and I'll take a look if you like, you have me curious.
i'm that guy who's all scared to do that stuff.. and not even really know how to do it temporarily.     :(   sorry.. pm me i guess if you still want to help in any other way.. i can take screen shots and all that stuff.

lol.. i know you're the man here.. but still... i'm that idiot.   sorry.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on June 26, 2010, 02:06:06 AM
Here you go.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on June 26, 2010, 02:50:13 AM
what do i upload that one into?    sorry... i'm not to smart at this stuff unless told what to do.. then usually i can find the right spots to do what needs to be done.  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on June 26, 2010, 11:42:59 AM
Midnight - that file is for mrtrc266.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on June 26, 2010, 12:19:18 PM
ok cool.    :)    ya my problem is weird.....    oh well... i'm sure everything will work itself out.   :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JPA on June 26, 2010, 09:33:37 PM
@hunter, maybe some default themes for the shoutbox display board? White is a little seering for my taste.  Love the mod though, It rocks on 2.0 rc3!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 27, 2010, 01:05:38 AM
Quote from: bahgheera on June 26, 2010, 02:06:06 AM
Here you go.

Everything seems to be fine, was just curious. Not sure why it lags on the first shout though, you seem to have a rare issue. Hopefully it will be resolved in a new release coming soon.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 27, 2010, 01:07:05 AM
Quote from: findyourcalm on June 26, 2010, 09:33:37 PM
@hunter, maybe some default themes for the shoutbox display board? White is a little seering for my taste.  Love the mod though, It rocks on 2.0 rc3!

Just play with /chat/css/shoutbox.css to get it to coordinate with your theme. Also edit /shoutBox/css/shoutbox.css if you don't have your shout and chat integrated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zadnan on June 27, 2010, 08:27:24 AM
I installed the package a chat button has appeared but when I click it I get the page
showing fatal errors regarding
chat\index.php on line 14
chat\index.php on line 17
I need help
regards
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 27, 2010, 08:32:25 AM
Quote from: zadnan on June 27, 2010, 08:27:24 AM
I installed the package a chat button has appeared but when I click it I get the page
showing fatal errors regarding
chat\index.php on line 14
chat\index.php on line 17
I need help
regards

It would help us more if you told us what the errors are.

Also where there any errors on install?

Which version of smf?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Strassenkater67 on June 27, 2010, 08:36:23 AM
Hi  :)
I'm using SMF 2.0 RC3 and the intimidator-Theme and i'm an absolute beginner in php, css, etc, so it might be, that i do not use the correct technical terms.  ;)

My problem:
I want to make the input-field wider.
I managed to make input-field-container wider, as you can see, the "b i u Box" has moved a bit more to the right.

But where and how do i make the actual input-field wider??

At the moment it looks like this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhellokittyfighters.de%2Fpic%2FScreen_Shoutbox_Inputfield_a.jpg&hash=2911e82184e30c82915f32929a96ed70b6ee6b4b)

I hope, it will soon look like this. (It's just a manipulation with photoshop  ;))
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhellokittyfighters.de%2Fpic%2FScreen_Shoutbox_Inputfield_b.jpg&hash=c54c25e6417d911e5ba6c4c4c8722262689d6fa9)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 27, 2010, 08:42:25 AM
I think it is the shoutbox css file you require.

Have you looked at the FAQs?

Also have a look at http://ajcintegration.co.cc/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Strassenkater67 on June 27, 2010, 09:03:34 AM
Quote from: Brack1 on June 27, 2010, 08:42:25 AM
I think it is the shoutbox css file you require.

Have you looked at the FAQs?

Also have a look at http://ajcintegration.co.cc/index.php

I looked at the FAQs  :) But i found no help for that specific issue.  :(

I managed to change the background-color, i integrated smileys (not on the screenshot), i changed the number of the last shouts that show up when you enter the forum and many other things.  :)

But i just don't get it, how to make the input-field wider.
(Belive me, i have been trying it on my own for several days. And i'm totally baffled, otherwise i wouldn't have posted my question)  ;D
And please, don't post any guesswork, i have been guessing for myselfe long enough the last days.  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zadnan on June 27, 2010, 09:16:43 AM
Quote from: Brack1 on June 27, 2010, 08:32:25 AM
Quote from: zadnan on June 27, 2010, 08:27:24 AM
I installed the package a chat button has appeared but when I click it I get the page
showing fatal errors regarding
chat\index.php on line 14
chat\index.php on line 17
I need help
regards

It would help us more if you told us what the errors are.

Also where there any errors on install?

Which version of smf?
Notice: Undefined index: SCRIPT_FILENAME in D:\hshome\dir name\forum url\chat\index.php  on line 14

Warning: main(/lib/custom.php) [function.main]: failed to open stream: No such file or directory in D:\hshome\dir name\forum url\chat\index.php on line 17

Warning: main(/lib/custom.php) [function.main]: failed to open stream: No such file or directory in D:\hshome\dir name\forum url\chat\index.php on line 17

Fatal error: main() [function.require]: Failed opening required '/lib/custom.php' (include_path='.;c:\PHP4\pear') in D:\hshome\dir name\forum url\chat\index.php on line 17

I am using SMF I.1.11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 27, 2010, 10:33:31 AM
Quote from: zadnan on June 27, 2010, 08:27:24 AM
I installed the package a chat button has appeared but when I click it I get the page
showing fatal errors regarding
chat\index.php on line 14
chat\index.php on line 17
I need help
regards


Try changing those file permissions to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 27, 2010, 10:35:24 AM
Quote from: Strassenkater67 on June 27, 2010, 08:36:23 AM
Hi  :)
I'm using SMF 2.0 RC3 and the intimidator-Theme and i'm an absolute beginner in php, css, etc, so it might be, that i do not use the correct technical terms.  ;)

My problem:
I want to make the input-field wider.
I managed to make input-field-container wider, as you can see, the "b i u Box" has moved a bit more to the right.

But where and how do i make the actual input-field wider??

You can add that to your css.

Find chat/css/shoutbox.css
#ajaxChatContent #ajaxChatInputFieldContainer #ajaxChatInputField {
    width:90%;
}

Replace with....change 250px to whatever you like
#ajaxChatContent #ajaxChatInputFieldContainer{
    width:90%;
}
#ajaxChatInputField {
    width:250px;
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Strassenkater67 on June 27, 2010, 11:21:24 AM
Quote from: mrtrc266 on June 27, 2010, 10:35:24 AM
Quote from: Strassenkater67 on June 27, 2010, 08:36:23 AM
Hi  :)
I'm using SMF 2.0 RC3 and the intimidator-Theme and i'm an absolute beginner in php, css, etc, so it might be, that i do not use the correct technical terms.  ;)

My problem:
I want to make the input-field wider.
I managed to make input-field-container wider, as you can see, the "b i u Box" has moved a bit more to the right.

But where and how do i make the actual input-field wider??

You can add that to your css.

Find chat/css/shoutbox.css
#ajaxChatContent #ajaxChatInputFieldContainer #ajaxChatInputField {
    width:90%;
}

Replace with....change 250px to whatever you like
#ajaxChatContent #ajaxChatInputFieldContainer{
    width:90%;
}
#ajaxChatInputField {
    width:250px;
}

Coooool it's working!  :)
And it was so easy. ;D
Well, it just didn't come to my mind, that it might be necessary to ADD a few lines - i just tried to alter something.  :-[
But as i said, a few day ago i didn't even know, that there are such things like css-files.

Big THX :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 27, 2010, 11:30:59 AM
You're welcome, looks like you're picking it up pretty quickly.

A HUGE help will be to use FireFox (http://www.mozilla.com/en-US/firefox/personal.html) with the FireBug add-on (https://addons.mozilla.org/en-US/firefox/addon/1843/). This will allow you to put your mouse over any section of a web page, right click, inspect element and it will show you what the HTML Code is and the css that's related to that code. Sometimes an element might be overridden by a default setting and throw you off a little but for the most part it's very useful.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Infitima on June 27, 2010, 12:17:17 PM
Uh, this seems to be a weird issue.
The chatbox worked fine, and had notifications on. Been working fine last night and all morning.
Someone posted today, and it blanked out, but for me only. White box, white chat page, and nothing I do is fixing it.
It works for everyone else, and it works on my phone....
Something to do with his username maybe?
It's  Drákōn   
I'm using Firefox 3.6.4
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Strassenkater67 on June 27, 2010, 01:42:16 PM
Quote from: mrtrc266 on June 27, 2010, 11:30:59 AM
You're welcome, looks like you're picking it up pretty quickly.

A HUGE help will be to use FireFox (http://www.mozilla.com/en-US/firefox/personal.html) with the FireBug add-on (https://addons.mozilla.org/en-US/firefox/addon/1843/). This will allow you to put your mouse over any section of a web page, right click, inspect element and it will show you what the HTML Code is and the css that's related to that code. Sometimes an element might be overridden by a default setting and throw you off a little but for the most part it's very useful.
Thanks for tip.  :)
Is it something like this?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fhellokittyfighters.de%2Fpic%2FScreen_Chrome_01.jpg&hash=d8ad97752ccf2b9c923e93c53b4870ff345c9028)

Chrome has this feature by default.
But i will try the FireBug Addon as well, maybe it's better then chrome.  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on June 27, 2010, 03:49:06 PM
Ok, I have perused these messages for quite some time and can not find my answer.

I have permissions DENIED for regular members, newbies, and all other groups besides Charter members (see attachment)

Yet, regular members are still able to submit text.

Any idea what's wrong?

Sorry if this has been answered before.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: jb@awe on June 28, 2010, 12:29:51 AM
First off, great mod!!! Hit on my site.

However; I am having a hard time relocating my shoutbox , would anyone mind helping me on this. I would like to relocate it just before the info center. I have tried this below, but just cant get it. just need a little more clarification.

Thank you guys



Quote from: .HuNTeR. on June 13, 2009, 12:56:30 AM
@Zeshin
replace your index.template.php and boardindex.termplate.php with original one
open Sources/Load.php
find:

array_splice($context['template_layers'], 1, 0, 'shout');


replace with

//array_splice($context['template_layers'], 1, 0, 'shout');


open your index.template.php or boardindex.termplate.php and place

template_shout_above();

anywhere you want

@mrtrc266 please add this to the FAQ
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IzTheWiz13 on June 28, 2010, 04:38:59 AM
Heya,

I'm having some issues with my shoutbox, it doesn't show any shouted messages at all.

Site is : http://green-culture-elites.com/GCE/index.php?action=forum (http://green-culture-elites.com/GCE/index.php?action=forum)
Login : testprofiel             pw : test

If someone knows what the issue might be , just tell me what files you need me to attach.


MvG Izzzzz
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Strassenkater67 on June 28, 2010, 05:49:30 AM
Quote from: IzTheWiz13 on June 28, 2010, 04:38:59 AM
Heya,
I'm having some issues with my shoutbox, it doesn't show any shouted messages at all.

I had the same problems after the first install of the shoutbox.

1.
There is an .htaccess in the chat-folder and in the shoutBox-folder.
I renamed both files to _.htaccess
(Warning: I'm a noob, i don't know if this is a secutity risk!)

2.
Then i changed the permissions of the chat-folder andt the shoutbox-folder and all including files to 775
(You can do this with your ftp-program, just rightclick on the folder)

After that the shoutbox worked perfectly.
When i reverse the changes, the field of the shoutbox is blank again, so it's definitively reproducible.

I hope this will work for you, too.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TurtleKicker on June 28, 2010, 10:37:40 AM
A few months back I posted that this code doesn't always work:
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Close_chat_window_on_logout

Many (most?) times, it simply logs the user out and immediately logs them back in again, without closing the window/tab. Doesn't seem to matter if the chat is in a tab or its own window.

As my forum becomes more-popular more and more users are complaining about this. Is there a fix?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nihtilan on June 28, 2010, 12:39:33 PM
Quote from: digit on June 27, 2010, 03:49:06 PM
Ok, I have perused these messages for quite some time and can not find my answer.

I have permissions DENIED for regular members, newbies, and all other groups besides Charter members (see attachment)

Yet, regular members are still able to submit text.

Any idea what's wrong?

Sorry if this has been answered before.

Were do i find those permisions? Installed chat on SMF 2.0 RC3 seems showing, but it's quite blank and i can't write anything in it... any ideeas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 28, 2010, 12:44:32 PM
Have you lookied at the FAQs?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nihtilan on June 28, 2010, 12:54:25 PM
Quote from: Brack1 on June 28, 2010, 12:44:32 PM
Have you lookied at the FAQs?

yes i did, tried the thing with .htaccess but it was fine. either i'm blind or too tired to see or there's nothing for my issue, so if you have a possible sollution please post it. thx
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on June 28, 2010, 01:39:52 PM
Is there a way to just use the shoutbox and disable this whole chat system? Or just hide that "chat" button in the menu?
If so, please tell me :)

regards
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: taysan on June 28, 2010, 03:24:40 PM
I've searched but can't find it anywhere.  I have Ajaxchat working just fine in my forum (www.dotheton.com) with the Chat and Shoutbox linked just fine.

I had to move hosting services last night.  After doing so (complete simple download / upload of my site, DB move etc.) the only change I'm seeing is now, in the Shoutbox and Chat window, when an apostrophe ' is put in, the system adds a \ to it.

I'm becomes I\'m

It's really odd, it wasnt' happening before and I can't sort out why now.  Also, where is the control over censoring words?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 28, 2010, 03:30:36 PM
Quote from: Nihtilan on June 28, 2010, 12:54:25 PM
Quote from: Brack1 on June 28, 2010, 12:44:32 PM
Have you lookied at the FAQs?

yes i did, tried the thing with .htaccess but it was fine. either i'm blind or too tired to see or there's nothing for my issue, so if you have a possible sollution please post it. thx

From your previous post you're saying that everything works fine but you just having trouble with your member group permissions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 28, 2010, 03:30:57 PM
Quote from: w4rheart on June 28, 2010, 01:39:52 PM
Is there a way to just use the shoutbox and disable this whole chat system? Or just hide that "chat" button in the menu?
If so, please tell me :)

regards

What version of SMF?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 28, 2010, 03:31:56 PM
Quote from: taysan on June 28, 2010, 03:24:40 PM
I've searched but can't find it anywhere.  I have Ajaxchat working just fine in my forum (www.dotheton.com) with the Chat and Shoutbox linked just fine.

I had to move hosting services last night.  After doing so (complete simple download / upload of my site, DB move etc.) the only change I'm seeing is now, in the Shoutbox and Chat window, when an apostrophe ' is put in, the system adds a \ to it.

I'm becomes I\'m

It's really odd, it wasnt' happening before and I can't sort out why now.  Also, where is the control over censoring words?

This should fix it...
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Slashes_before_apostrophes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nihtilan on June 28, 2010, 04:07:20 PM
Quote from: mrtrc266 on June 28, 2010, 03:30:36 PM
Quote from: Nihtilan on June 28, 2010, 12:54:25 PM
Quote from: Brack1 on June 28, 2010, 12:44:32 PM
Have you lookied at the FAQs?

yes i did, tried the thing with .htaccess but it was fine. either i'm blind or too tired to see or there's nothing for my issue, so if you have a possible sollution please post it. thx

From your previous post you're saying that everything works fine but you just having trouble with your member group permissions?

in theory it's working but it's not displaying the input/output data... when i posted i thought that was the problem, but now i'm not sure anymore. i tried the fixes that were in the FAQS but i noticed that they were already implemented with the later versions.. so those fixes don't work for me.

do you have any other suggestion? i love this chat, i used the standalone version of it sometime ago, but now that i'm having my own forum i would like to use them both.

LE: forgot to mention some things. i'm using smf 2.0 RC3 with simple portal. simple portal is not the issue because i tested the chat with/without the portal and it still didn't work.

i asked about permissions because i can't find them anywere.. any ideeas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 28, 2010, 04:47:05 PM
Quote from: sremick on June 28, 2010, 10:37:40 AM
A few months back I posted that this code doesn't always work:
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Close_chat_window_on_logout

Many (most?) times, it simply logs the user out and immediately logs them back in again, without closing the window/tab. Doesn't seem to matter if the chat is in a tab or its own window.

As my forum becomes more-popular more and more users are complaining about this. Is there a fix?

Not sure, it seems to work fine and I can't replicate the problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: taysan on June 29, 2010, 12:46:01 AM
Thanks for the headsup on the fix for the slashes/apostrophes issue!  Worked a charm.  I moved from GoDaddy to HostGator this weekend and all of a sudden I was getting the slashes.  Must be a difference between the hosting providers.
Title: chat inside of theme?
Post by: Nickhead on June 29, 2010, 04:59:53 AM
couldnt think of the proper search terms to see if its been posted but...

this flashchat mod, is inside the board theme:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dansoftaustralia.net%2Fimages%2Fscreenshots%2Fsmfmods%2Fflashchat_main.jpg&hash=dc2466826d941ecd8a2a6dff830b6600f7667613)

is there a way, to make the ajax chat open in the same manner?

is it as simple as changing the flashchat code to match the ajax?

what edits would that entail?


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GohighVoltage on June 29, 2010, 10:09:17 AM
Hi,  I am using the helpdesk mod, which seems to cause an error when installing ajaxchat,  only in the first change in the subs.php file.  Can someone tell me how to modify the subs.php file so both mods work?   I attached a screenshot of the error,  and also my subs.php file.

Thanks very much.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on June 29, 2010, 10:58:32 AM
Subs.php attached.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GohighVoltage on June 29, 2010, 11:06:02 AM
Thanks john!   I really appreciate it!

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drfun on June 29, 2010, 02:24:33 PM
I have been trying to change the name on the ajax chat (AJAX Chat) and also to add a logo to the
title bar, but am stuck, i need some one to tell me how to go about it and also which file will i do the
editing. thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GohighVoltage on June 29, 2010, 05:38:07 PM
Is there a quick way to clear the chat screen (delete all messages)  without having to delete each individual message?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 29, 2010, 05:47:26 PM
Quote from: drfun on June 29, 2010, 02:24:33 PM
I have been trying to change the name on the ajax chat (AJAX Chat) and also to add a logo to the
title bar, but am stuck, i need some one to tell me how to go about it and also which file will i do the
editing. thanks
http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/1982688?message=4860651
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 29, 2010, 05:48:16 PM
Quote from: GohighVoltage on June 29, 2010, 05:38:07 PM
Is there a quick way to clear the chat screen (delete all messages)  without having to delete each individual message?

Not at this time, should be able to do it via phpmyadmin though.
Title: Re: chat inside of theme?
Post by: TheListener on June 29, 2010, 07:14:36 PM
Quote from: Nickhead on June 29, 2010, 04:59:53 AM
couldnt think of the proper search terms to see if its been posted but...

this flashchat mod, is inside the board theme:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.dansoftaustralia.net%2Fimages%2Fscreenshots%2Fsmfmods%2Fflashchat_main.jpg&hash=dc2466826d941ecd8a2a6dff830b6600f7667613)

is there a way, to make the ajax chat open in the same manner?

is it as simple as changing the flashchat code to match the ajax?

what edits would that entail?

The flashchat is completely different to this mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on June 29, 2010, 07:41:06 PM
Quote from: Brack1The flashchat is completely different to this mod.

If you read the guys post, you would see that he is asking how to have ajax chat displayed on his site the same way flashchat is. :/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 29, 2010, 07:49:55 PM
I have an excuse tho.

:D

It is hot hot hot here but I shouldn't complain I hate snow.

IMO ajax chat is miles better than flashchat.

This will show you why.

http://ajcintegration.co.cc/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on June 29, 2010, 08:29:55 PM
Quote from: Nickhead on June 29, 2010, 04:59:53 AM
couldnt think of the proper search terms to see if its been posted but...

this flashchat mod, is inside the board theme:

is there a way, to make the ajax chat open in the same manner?

is it as simple as changing the flashchat code to match the ajax?

what edits would that entail?


There a a couple ways to achieve this...
#1 install Simple Portal and create a custom HTML Page and insert this code.
<iframe src ="http://yoursite.com/chat/index.php"  width="100%" height="400">
</iframe>


#2 Install this Mod Custom  Pages and Tabs (2) SMF 2 - RC3 (http://custom.simplemachines.org/mods/index.php?mod=2604)

Goto Admin/Modification Settings/Custom Pages and Tabs (1)
Check "Enable the Custom Tab/Button?"
Add Page Title Here: "Chat"
Add the Label for the tab here: "Chat"
Which code are you using below, HTML or BB code? "HTML Code"
Add the HTML or BB code here for this page:
<iframe src ="http://yoursite.com/chat/index.php" width="100%" height="400">
</iframe>


In either case it will result in something like what you are trying to achieve. See attached pic....

To remove the duplicate Chat Tab find and delete /Subs.php
            'chat' => array(
            'title' => $chatButton,
            'href' => $chatLink,
            'show' => true,
            'sub_buttons' => array(
            ),
        ),


In the Chat Admin Options goto Admin/Modification Settings/Chat and only check the following options...
Enable the ShoutBox?
Integrate shout   box and chat room?
Show online users below total logged in time section?


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GZDynastar on June 30, 2010, 05:30:23 PM
Looking through 300 pages.. I cannot get my default theme to change.  I replaced the config file after changing this:

To set default Chat Room template and/or remove the template selection from drop down list
Remove selection from list delete the ones you don't want from the "Availabe Styles" array.
To set default template just change "Default style" to what you want.
Open.....yourforum/chat/lib/config.php
Find
Code: [Select]
// Available styles:
$config['styleAvailable'] = array('beige','black','grey','Oxygen','Lithium','Sulfur','Cobalt','Mercury','Radium','prosilver','subsilver2','subblack2','subSilver','Core','MyBB','vBulletin');
// Default style:
$config['styleDefault'] = 'Core'; <--changed to 'black', then uploaded it... nothin'..

But it will not change.. even with a completely new config file.  Do I need to change something else to get the chatbox a different theme?  I don't even have a drop down menu to change it.

Maybe I'm just an idiot, but any help would be great.
SMF1.1.11
TP1 beta4
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: InfoStrides on June 30, 2010, 07:39:57 PM
I just installed Ajax Chat today and everything installed successfully except "Source/BoardIndex.php" code that I entered manually but click on "Chat" redirect me to the home page.

I have all permissions set properly and .htaccess files are appropriate. I am confused what could have caused the issue. The website in question is http://www.theinfostrides.com

Please help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: drfun on July 01, 2010, 10:50:45 AM
@mrtrc266
thanks for the quick respond to my previous question, i was able to fix that with your help. thanks a lot.
i also want to ask if it is possible to centralize the registration form to the meddle  of the page, instead of
having it just to the left, if this is possible, how do i go about it. thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 01, 2010, 11:17:45 AM
Quote from: drfun on July 01, 2010, 10:50:45 AM
@mrtrc266
thanks for the quick respond to my previous question, i was able to fix that with your help. thanks a lot.
i also want to ask if it is possible to centralize the registration form to the meddle  of the page, instead of
having it just to the left, if this is possible, how do i go about it. thanks in advance.

You're welcome...

Open chat/css/yourstyle.css (in your case "Core.css")

Find
#loginContent {
background-color:#E5E5E8;
color:#000000;
}

Replace with something like...
#loginContent {
background-color:#E5E5E8;
color:#000000;
padding-left:150px;
}


Change the padding to your liking
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 01, 2010, 11:20:13 AM
@ GZDynastar did you clear you cache after you made the changes?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 01, 2010, 11:22:20 AM
Quote from: TheInfostrides.Com on June 30, 2010, 07:39:57 PM
I just installed Ajax Chat today and everything installed successfully except "Source/BoardIndex.php" code that I entered manually but click on "Chat" redirect me to the home page.

I have all permissions set properly and .htaccess files are appropriate. I am confused what could have caused the issue. The website in question is http://www.theinfostrides.com

Please help!

That's odd, what other Mods do you have installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GZDynastar on July 01, 2010, 11:44:38 AM
I did my friend (clear cache).  Looking at the file viewer via my website its still lists 'core' as my default theme, even though on the ftp it's listed as 'black'.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 01, 2010, 12:09:53 PM
Quote from: w4rheart on June 28, 2010, 01:39:52 PM
Is there a way to just use the shoutbox and disable this whole chat system? Or just hide that "chat" button in the menu?
If so, please tell me :)

regards

pls can noone help me out with this? I think it is a really good shoutbox, and so far the only that works properly wit 2.0RC3 !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on July 01, 2010, 12:37:06 PM
god.. now i'm having problems just trying to apply the mod.   :(        what the hell is going on with this thing... it worked so good before..and now i can't get it going again.   ugh!

was able to apply.. now when trying to install.. i get this...

Fatal error: Maximum execution time of 30 seconds exceeded in D:\Hosting\4968445\html\Sources\Subs-Package.php  on line 1188

Fatal error: Maximum execution time of 30 seconds exceeded in D:\Hosting\4968445\html\Sources\Subs-Package.php  on line 1863

that one too... anyone know what i need to do to fix this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Looneysam on July 01, 2010, 01:19:58 PM
I have read the FAQs and searched over most of the post in this thread and even tried searching, but I still haven't found a solution to this problem.

the chat and shoutbox work most of the time,  but the shoutbox will randomly drop shouts sometimes it is the first shout then at other times it will be in the middle of a conversation.

I have changed the user timeout to 60 minutes but that didn't help I also changed the response time to 500 that didn't help either.

I saw several post about this during my search but never a clear answer as to what is causing the problem or how to correct it.

any help would be appreciated.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 01, 2010, 05:51:24 PM
Quote from: w4rheart on July 01, 2010, 12:09:53 PM
Quote from: w4rheart on June 28, 2010, 01:39:52 PM
Is there a way to just use the shoutbox and disable this whole chat system? Or just hide that "chat" button in the menu?
If so, please tell me :)

regards

pls can noone help me out with this? I think it is a really good shoutbox, and so far the only that works properly wit 2.0RC3 !

Alright, I got i figured! ;)
But even before I modiefied anything, the shoutbox was not working. I was not able to shout, the shoutbox was blank so no smileys and stuff.
Funny thing is, that when I first installed this mod (like 5 days ago) everything worked fine!
(I just got this 500 error thing, because I forgot to set the permissions)

But now I have no idea why it is not working again. I tried the .htaccess thing described in the FAQs, but my .htaccess files had the lines added already.

So, what am I supposed to do?  :( Is it possible, that something went wrong while uninstalling?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on July 01, 2010, 06:35:55 PM
and just like that.. after trying again, and getting a 500 error.. and then refreshing... IT EXTRACTED ALL OVER THE PLACE!    I'M BACK BOYS! ;D

i have no idea what the problem was or is.. or anything..   

now to find the link where i can change the I/m to I'm :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on July 02, 2010, 12:49:52 AM
Oh man... mrtrc if you get a moment, will you visit http://www.theflipsideforum.com and click the chat button? I don't know how to fix this. We're also getting the 500 error in the shoutbox now, even though I've properly chmodded everything. Just when we had everything running relatively smoothly, we suffered an injection attack. Now we've removed the attack, but for some reason AC isn't working. Can you help me?

EDIT: Ok, I got the header issue straightened out, but there are still no user logged into chat, and the shoutbox still isn't working grrr...

EDIT 2: Eh... what should the permissions be on the files inside the chat and shoutbox directories? I just looked and they're all at 666???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 02, 2010, 01:17:47 AM
Quote from: GZDynastar on July 01, 2010, 11:44:38 AM
I did my friend (clear cache).  Looking at the file viewer via my website its still lists 'core' as my default theme, even though on the ftp it's listed as 'black'.

If you DO NOT have you chat and shout integrated also make the same edits to your /shoutBox/lib/config.php file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 02, 2010, 01:20:22 AM
Quote from: Looneysam on July 01, 2010, 01:19:58 PM
I have read the FAQs and searched over most of the post in this thread and even tried searching, but I still haven't found a solution to this problem.

the chat and shoutbox work most of the time,  but the shoutbox will randomly drop shouts sometimes it is the first shout then at other times it will be in the middle of a conversation.

I have changed the user timeout to 60 minutes but that didn't help I also changed the response time to 500 that didn't help either.

I saw several post about this during my search but never a clear answer as to what is causing the problem or how to correct it.

any help would be appreciated.

Check the log to see if they're really not sticking. If they're in the log then your server just might be lagging and try waiting a few more seconds for it to show.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 02, 2010, 01:24:01 AM
Quote from: miDnIghtEr20C on July 01, 2010, 06:35:55 PM
and just like that.. after trying again, and getting a 500 error.. and then refreshing... IT EXTRACTED ALL OVER THE PLACE!    I'M BACK BOYS! ;D

i have no idea what the problem was or is.. or anything..   

now to find the link where i can change the I/m to I'm :)

Look on the last page, Reply #6746
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 02, 2010, 01:25:00 AM
Quote from: bahgheera on July 02, 2010, 12:49:52 AM
Oh man... mrtrc if you get a moment, will you visit http://www.theflipsideforum.com and click the chat button? I don't know how to fix this. We're also getting the 500 error in the shoutbox now, even though I've properly chmodded everything. Just when we had everything running relatively smoothly, we suffered an injection attack. Now we've removed the attack, but for some reason AC isn't working. Can you help me?

EDIT: Ok, I got the header issue straightened out, but there are still no user logged into chat, and the shoutbox still isn't working grrr...

EDIT 2: Eh... what should the permissions be on the files inside the chat and shoutbox directories? I just looked and they're all at 666???

CHMOD the /chat/index.php and /shoutBox/index.php to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on July 02, 2010, 01:47:28 AM
Ok, done - but the 500 error is gone from the shoutbox, chat is still the same.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: InfoStrides on July 02, 2010, 06:12:49 AM
Quote from: mrtrc266 on July 01, 2010, 11:22:20 AM
Quote from: TheInfostrides.Com on June 30, 2010, 07:39:57 PM
I just installed Ajax Chat today and everything installed successfully except "Source/BoardIndex.php" code that I entered manually but click on "Chat" redirect me to the home page.

I have all permissions set properly and .htaccess files are appropriate. I am confused what could have caused the issue. The website in question is http://www.theinfostrides.com

Please help!

That's odd, what other Mods do you have installed?

Quote1.     Related Topics      1.4 RC1       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    SMF_Points    1.0    [ Uninstall ] [ List Files ] [ Delete ]
3.    Display Signatures Only Once Per Page    1.0.3    [ Uninstall ] [ List Files ] [ Delete ]
4.    Stop Spammer    2.3.7    [ Uninstall ] [ List Files ] [ Delete ]
5.    Auto Email Inactive Users    1.7    [ Uninstall ] [ List Files ] [ Delete ]
6.    Sitemap    2.1.2    [ Uninstall ] [ List Files ] [ Delete ]
7.    AutoKeywords    1.4    [ Uninstall ] [ List Files ] [ Delete ]
8.    SimpleAds    1.0    [ Uninstall ] [ List Files ] [ Delete ]
9.    Titled Links    1.2    [ Uninstall ] [ List Files ] [ Delete ]
10.    Contact Page    2.0.1    [ Uninstall ] [ List Files ] [ Delete ]
11.    Twitter and Facebook Publisher mod    2.4    [ Uninstall ] [ List Files ] [ Delete ]
12.    More Spiders    1.2    [ Uninstall ] [ List Files ] [ Delete ]
13.    AjaxChat Integration    3.2.1 (modified for SMF 2 RC3)    [ Uninstall ] [ List Files ] [ Delete ]
14.    Additional Home page Title | S-Ace    3.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    Welcome Topic Mod    2.1    [ Uninstall ] [ List Files ] [ Delete ]
16.    Curve_centered_menu    1.1    [ Uninstall ] [ List Files ] [ Delete ]
17.    RSS Feeder    1.1.4    [ Uninstall ] [ List Files ] [ Delete ]
18.    Google Analytics Code    1.1    [ Uninstall ] [ List Files ] [ Delete ]
19.    Karma Buttons    1.1    [ Uninstall ] [ List Files ] [ Delete ]
20.    Rename *Child Board* | S-Ace    2.0    [ Uninstall ] [ List Files ] [ Delete ]
21.    Wireless/RSS amount displayed    1.1.0    [ Uninstall ] [ List Files ] [ Delete ]
22.    eFloating Bar for Guest & Members    0.1    [ Uninstall ] [ List Files ] [ Delete ]
23.    SimplePortal    2.3.2    [ Uninstall ] [ List Files ] [ Delete ]
24.    Country Flags    1.1.1    [ Uninstall ] [ List Files ] [ Delete ]
25.    RedirectPage    1.2    [ Uninstall ] [ List Files ] [ Delete ]
26.    Guest Attachment Preview    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
27.    Location on Posts    1.1    [ Uninstall ] [ List Files ] [ Delete ]
28.    Birthday Posts    0.12.1 Beta    [ Uninstall ] [ List Files ] [ Delete ]
29.    Smf seo boards title[    1    [ Uninstall ] [ List Files ] [ Delete ]
30.    Google Tagged    1.4    [ Uninstall ] [ List Files ] [ Delete ]
31.    Referrals Mod    2.2.7.2    [ Uninstall ] [ List Files ] [ Delete ]
32.    Online status on login    1.5    [ Uninstall ] [ List Files ] [ Delete ]
33.    Easy Screenshot Dumpster    1.3.2    [ Uninstall ] [ List Files ] [ Delete ]
34.    SMF Links    2.2    [ Uninstall ] [ List Files ] [ Delete ]
35.    vBulletin Style Meta Tags    1.1    [ Uninstall ] [ List Files ] [ Delete ]
36.    Treasury    2.06    [ Uninstall ] [ List Files ] [ Delete ]
37.    SA FBConnect    0.2    [ Uninstall ] [ List Files ] [ Delete ]
38.    Resize Attached Images    2.1.1    [ Uninstall ] [ List Files ] [ Delete ]
39.    Infolinks Integration Mod | S-Ace    1.0    [ Uninstall ] [ List Files ] [ Delete ]
40.    Aeva Media    1.3    [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on July 02, 2010, 12:10:35 PM
Quote from: mrtrc266 on July 02, 2010, 01:24:01 AM
Quote from: miDnIghtEr20C on July 01, 2010, 06:35:55 PM
and just like that.. after trying again, and getting a 500 error.. and then refreshing... IT EXTRACTED ALL OVER THE PLACE!    I'M BACK BOYS! ;D

i have no idea what the problem was or is.. or anything..   

now to find the link where i can change the I/m to I'm :)

Look on the last page, Reply #6746
ahhh yes.    thank you sir.   :)              now if i can just figure out what's give me Fatal error: Maximum execution time of 30 seconds exceeded in D:\Hosting\4968445\html\Sources\Subs.php  on line 321 on my site, and causing 500 errors as well.    i try and try, but i run forum error check, and it says i'm good.       don't know what would be corrupt  on that line there.   
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Looneysam on July 02, 2010, 12:23:05 PM
Quote from: mrtrc266 on July 02, 2010, 01:20:22 AM
Quote from: Looneysam on July 01, 2010, 01:19:58 PM
I have read the FAQs and searched over most of the post in this thread and even tried searching, but I still haven't found a solution to this problem.

the chat and shoutbox work most of the time,  but the shoutbox will randomly drop shouts sometimes it is the first shout then at other times it will be in the middle of a conversation.

I have changed the user timeout to 60 minutes but that didn't help I also changed the response time to 500 that didn't help either.

I saw several post about this during my search but never a clear answer as to what is causing the problem or how to correct it.

any help would be appreciated.

Check the log to see if they're really not sticking. If they're in the log then your server just might be lagging and try waiting a few more seconds for it to show.

First, mrtrc266 thanks for your response.

I have checked the log for the shoutbox and the messages that didn't post are not there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Celia N. Foster on July 02, 2010, 06:45:36 PM
When I try to install this mod for my 2.0 RC3 forum, it tells me there are the following errors:

Execute Modification     ./index.php     Test failed
      1.    Replace    ./index.php    Test failed
*    2.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed
      2.    Replace    ./Themes/default/index.template.php    Test failed
   3.    Extract File    ./Sources/AChat.php    
   4.    Extract File    ./Themes/default/AChat.template.php    
   5.    Extract Tree    ./Sources/AChat    
   6.    Execute Code    AChat_setup.php    
-----------------------------------------------------

What should I do so it installs correctly? Please advise me. Thanks!!!

-Celia
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 02, 2010, 06:52:09 PM
This means that some manual edits are required.

Which version smf are you using?

make sure it was the correct mod version you were installing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Celia N. Foster on July 02, 2010, 06:59:48 PM
I am using the latest version: 2.0 RC 3, as I posted earlier. What/which manual edits do I need to do to make it work? Explain in minute detail. I downloaded this mod:


With this you can have a fast AjaxChat and a shoutbox in your forum.

    * Author: .HuNTeR.
    * Submitted On: August 06, 2008, 02:45:56 AM
    * Last Updated: May 18, 2010, 10:16:51 PM
    * Total Downloads: 51541
    * SMF Versions: 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9, 1.1.10, 1.1.11, 2.0 RC1, 2.0 RC1-1, 2.0 RC1.2, 2.0 RC3

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 02, 2010, 07:03:56 PM
If you go to the parser which is on the same page where you downloaded the mod from.

Have a look at the files which stated test failed and follow the instructions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Celia N. Foster on July 02, 2010, 07:06:47 PM
Okay. Will do.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Celia N. Foster on July 02, 2010, 08:18:43 PM
Still the same errors after manual install.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 02, 2010, 09:40:21 PM
Quote from: Celia N. Foster on July 02, 2010, 06:45:36 PM
When I try to install this mod for my 2.0 RC3 forum, it tells me there are the following errors:

Execute Modification     ./index.php     Test failed
      1.    Replace    ./index.php    Test failed
*    2.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed
      2.    Replace    ./Themes/default/index.template.php    Test failed
   3.    Extract File    ./Sources/AChat.php   
   4.    Extract File    ./Themes/default/AChat.template.php   
   5.    Extract Tree    ./Sources/AChat   
   6.    Execute Code    AChat_setup.php   
-----------------------------------------------------

What should I do so it installs correctly? Please advise me. Thanks!!!

-Celia

That Mod is not the mod that was downloaded from here http://custom.simplemachines.org/mods/index.php?mod=1319 (http://custom.simplemachines.org/mods/index.php?mod=1319)

The AJAX Chat Integration mod DOES NOT contain a file called "AChat_setup.php" or "AChat.template.php" you must be trying to install a different chat mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 02, 2010, 09:42:59 PM
Quote from: Looneysam on July 02, 2010, 12:23:05 PM
Quote from: mrtrc266 on July 02, 2010, 01:20:22 AM
Quote from: Looneysam on July 01, 2010, 01:19:58 PM
I have read the FAQs and searched over most of the post in this thread and even tried searching, but I still haven't found a solution to this problem.

the chat and shoutbox work most of the time,  but the shoutbox will randomly drop shouts sometimes it is the first shout then at other times it will be in the middle of a conversation.

I have changed the user timeout to 60 minutes but that didn't help I also changed the response time to 500 that didn't help either.

I saw several post about this during my search but never a clear answer as to what is causing the problem or how to correct it.

any help would be appreciated.

Check the log to see if they're really not sticking. If they're in the log then your server just might be lagging and try waiting a few more seconds for it to show.

First, mrtrc266 thanks for your response.

I have checked the log for the shoutbox and the messages that didn't post are not there.

Have you tried uninstalling dropping the tables and re-installing, something didn't go right it seems.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 02, 2010, 09:44:11 PM
Quote from: miDnIghtEr20C on July 02, 2010, 12:10:35 PM
Quote from: mrtrc266 on July 02, 2010, 01:24:01 AM
Quote from: miDnIghtEr20C on July 01, 2010, 06:35:55 PM
and just like that.. after trying again, and getting a 500 error.. and then refreshing... IT EXTRACTED ALL OVER THE PLACE!    I'M BACK BOYS! ;D

i have no idea what the problem was or is.. or anything..   

now to find the link where i can change the I/m to I'm :)

Look on the last page, Reply #6746
ahhh yes.    thank you sir.   :)              now if i can just figure out what's give me Fatal error: Maximum execution time of 30 seconds exceeded in D:\Hosting\4968445\html\Sources\Subs.php  on line 321 on my site, and causing 500 errors as well.    i try and try, but i run forum error check, and it says i'm good.       don't know what would be corrupt  on that line there.   

What's on line 321?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 02, 2010, 09:46:33 PM
Quote from: TheInfostrides.Com on July 02, 2010, 06:12:49 AM
Quote from: mrtrc266 on July 01, 2010, 11:22:20 AM
Quote from: TheInfostrides.Com on June 30, 2010, 07:39:57 PM
I just installed Ajax Chat today and everything installed successfully except "Source/BoardIndex.php" code that I entered manually but click on "Chat" redirect me to the home page.

I have all permissions set properly and .htaccess files are appropriate. I am confused what could have caused the issue. The website in question is http://www.theinfostrides.com

Please help!

That's odd, what other Mods do you have installed?

Quote

Not sure, what's in the .htaccess file that's located in your forums root folder (the same folder that you SSI.php is located).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on July 02, 2010, 10:28:51 PM
Quote from: mrtrc266 on July 02, 2010, 09:44:11 PM
Quote from: miDnIghtEr20C on July 02, 2010, 12:10:35 PM
Quote from: mrtrc266 on July 02, 2010, 01:24:01 AM
Quote from: miDnIghtEr20C on July 01, 2010, 06:35:55 PM
and just like that.. after trying again, and getting a 500 error.. and then refreshing... IT EXTRACTED ALL OVER THE PLACE!    I'M BACK BOYS! ;D

i have no idea what the problem was or is.. or anything..   

now to find the link where i can change the I/m to I'm :)

Look on the last page, Reply #6746
ahhh yes.    thank you sir.   :)              now if i can just figure out what's give me Fatal error: Maximum execution time of 30 seconds exceeded in D:\Hosting\4968445\html\Sources\Subs.php  on line 321 on my site, and causing 500 errors as well.    i try and try, but i run forum error check, and it says i'm good.       don't know what would be corrupt  on that line there.   

What's on line 321?
i found that file.. but i have no idea how to tell what line 321 is.  :-[  like the actual count of sentences?   that 321 on sources always seems to pop up.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Celia N. Foster on July 02, 2010, 11:31:17 PM
Quote from: mrtrc266 on July 02, 2010, 09:40:21 PM
Quote from: Celia N. Foster on July 02, 2010, 06:45:36 PM
When I try to install this mod for my 2.0 RC3 forum, it tells me there are the following errors:

Execute Modification     ./index.php     Test failed
      1.    Replace    ./index.php    Test failed
*    2.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed
      2.    Replace    ./Themes/default/index.template.php    Test failed
   3.    Extract File    ./Sources/AChat.php   
   4.    Extract File    ./Themes/default/AChat.template.php   
   5.    Extract Tree    ./Sources/AChat   
   6.    Execute Code    AChat_setup.php   
-----------------------------------------------------

What should I do so it installs correctly? Please advise me. Thanks!!!

-Celia

That Mod is not the mod that was downloaded from here http://custom.simplemachines.org/mods/index.php?mod=1319 (http://custom.simplemachines.org/mods/index.php?mod=1319)

The AJAX Chat Integration mod DOES NOT contain a file called "AChat_setup.php" or "AChat.template.php" you must be trying to install a different chat mod.

I am trying to install the  AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip mod and still get the following errors:
*     1.     Execute Modification     ./Sources/Admin.php     Test successful
      1.    Add After    ./Sources/Admin.php    Test successful
      2.    Add After    ./Sources/Admin.php    Test successful
*    2.    Execute Modification    ./Sources/BoardIndex.php    Test failed
      1.    Replace    ./Sources/BoardIndex.php    Test failed
      2.    Add After    ./Sources/BoardIndex.php    Test successful
*    3.    Execute Modification    ./Sources/Load.php    Test successful
      1.    Add After    ./Sources/Load.php    Test successful
      2.    Add After    ./Sources/Load.php    Test successful
      3.    Add Before    ./Sources/Load.php    Test successful
*    4.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Add After    ./Sources/ManagePermissions.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add After    ./Sources/ManageSettings.php    Test successful
      3.    Add Before    ./Sources/ManageSettings.php    Test successful
*    6.    Execute Modification    ./SSI.php    Test successful
      1.    Add Before    ./SSI.php    Test successful
*    7.    Execute Modification    ./Sources/Subs.php    Test successful
      1.    Add After    ./Sources/Subs.php    Test successful
      2.    Add After    ./Sources/Subs.php    Test successful
*    8.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
      1.    Add Before    ./Themes/default/BoardIndex.template.php    Test successful
*    9.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test failed
      2.    Add Before    ./Themes/default/index.template.php    Test failed

*    10.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
      1.    Add Before    ./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    
-----------------------------------------------
What am I doing wrong???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 02, 2010, 11:49:29 PM
@ Celia N. Foster

You're not doing anything wrong, some other mods have moved the code around that the package is looking for. This is very common after installing multiple mods. ALL Mods are made to install on a CLEAN & FRESH install of SMF.

Use the Mods package parser found on the page where you downloaded this from and it will show you what edits need to be done. Take a look at the files that failed the test, install the mod then do the edits manually.
If you can
If you can't get it going you can PM me a temp admin account to your forum and your FTP details and I can get it going for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 02, 2010, 11:52:02 PM
@ miDnIghtEr20C

Use a text editor like Notepad++ (http://sourceforge.net/projects/notepad-plus/files/notepad%2B%2B%20releases%20binary/npp%205.6.8%20bin/npp.5.6.8.Installer.exe/download) then open the file and look for that line.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: miDnIghtEr20C on July 03, 2010, 12:01:28 AM
Quote from: mrtrc266 on July 02, 2010, 11:52:02 PM
@ miDnIghtEr20C

Use a text editor like Notepad++ (http://sourceforge.net/projects/notepad-plus/files/notepad%2B%2B%20releases%20binary/npp%205.6.8%20bin/npp.5.6.8.Installer.exe/download) then open the file and look for that line.
i'll check that out, and report back.   thanks. 


edit.. if i did it right.. and what i did was just select all, and then paste into that notepad ++..... but line 321...

$ret = mysql_query($db_string, $db_connection);

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Celia N. Foster on July 03, 2010, 12:05:47 AM
I already tried to edit it manually. It doesn't work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: InfoStrides on July 03, 2010, 07:15:58 AM
Quote from: mrtrc266 on July 02, 2010, 09:46:33 PM
Quote from: TheInfostrides.Com on July 02, 2010, 06:12:49 AM
Quote from: mrtrc266 on July 01, 2010, 11:22:20 AM
Quote from: TheInfostrides.Com on June 30, 2010, 07:39:57 PM
I just installed Ajax Chat today and everything installed successfully except "Source/BoardIndex.php" code that I entered manually but click on "Chat" redirect me to the home page.

I have all permissions set properly and .htaccess files are appropriate. I am confused what could have caused the issue. The website in question is http://www.theinfostrides.com

Please help!

That's odd, what other Mods do you have installed?

Quote

Not sure, what's in the .htaccess file that's located in your forums root folder (the same folder that you SSI.php is located).

Please find below content of my .htaccess file.

QuoteRewriteEngine on

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 03, 2010, 07:42:03 AM
Quote from: w4rheart on July 01, 2010, 05:51:24 PM

My shoutbox is not working. I am not able to shout, the shoutbox is blank etc..
Funny thing is, that when I first installed this mod (like 5 days ago) everything worked fine!
(I just got this 500 error thing, because I forgot to set the permissions, but then it worked)

But now I have no idea why it is not working again. I tried the .htaccess thing described in the FAQs, but my .htaccess files had the lines added already.

So, what am I supposed to do?  :( Is it possible, that something went wrong while uninstalling? How can i check it?

help pls  :(
btw it is also weird, that whenever I reinstall this mod, all options i edited in the administration menu  are exactly the way before I reinstalled it, e.g.: I disable all functions (like integrate sbox and chat), reinstall and all functions are disabled. I can do it the other way round with everything enabled or whatever, same thing!
So that means that these options are somehow saved, but I think that should not be, or am I wrong?
After a fresh install everything should be set back unless it was uninstalled in a wrong way, or not?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 03, 2010, 12:45:57 PM
Quote from: w4rheart on July 03, 2010, 07:42:03 AM
Quote from: w4rheart on July 01, 2010, 05:51:24 PM

My shoutbox is not working. I am not able to shout, the shoutbox is blank etc..
Funny thing is, that when I first installed this mod (like 5 days ago) everything worked fine!
(I just got this 500 error thing, because I forgot to set the permissions, but then it worked)

But now I have no idea why it is not working again. I tried the .htaccess thing described in the FAQs, but my .htaccess files had the lines added already.

So, what am I supposed to do?  :( Is it possible, that something went wrong while uninstalling? How can i check it?

help pls  :(
btw it is also weird, that whenever I reinstall this mod, all options i edited in the administration menu  are exactly the way before I reinstalled it, e.g.: I disable all functions (like integrate sbox and chat), reinstall and all functions are disabled. I can do it the other way round with everything enabled or whatever, same thing!
So that means that these options are somehow saved, but I think that should not be, or am I wrong?
After a fresh install everything should be set back unless it was uninstalled in a wrong way, or not?


Did you try to CHMOD the ./chat and ./shoutbox directory and all the files in them to 755, that sounds like the issue here
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 03, 2010, 01:45:08 PM
yes I tried that. didnt help though =(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 03, 2010, 01:52:45 PM
Those .htaccess edits from FAQs were complete.

Please post a link to your forum so we can take a look.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 03, 2010, 03:05:13 PM
remvd
there you go
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 03, 2010, 03:14:21 PM
Can you please enable the shoutbox and chat, for guests too.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 03, 2010, 05:32:44 PM
ups, yeah, sorry  ;D
done, sir  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on July 03, 2010, 05:59:50 PM
SMF version: 1.1.11

i keep getting this error over and over: "BudBot: Error: Connection status: 500" in the chat window

i have reset the permissions on chat/index.php and shoutbox/index.php to 755 as directed

i'm still getting the error... i'm losing members cause of this annoyance... please help....

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 03, 2010, 06:14:12 PM
Quote from: graaywolf on July 03, 2010, 05:59:50 PM
SMF version: 1.1.11

i keep getting this error over and over: "BudBot: Error: Connection status: 500" in the chat window

i have reset the permissions on chat/index.php and shoutbox/index.php to 755 as directed

i'm still getting the error... i'm losing members cause of this annoyance... please help....



That happens alot, its no harm so long as your chat actually works anyway.

It can be disabled, instructions are posted in this topic somewhere
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 03, 2010, 06:15:07 PM
Quote from: w4rheart on July 03, 2010, 05:32:44 PM
ups, yeah, sorry  ;D
done, sir  ;)

Well you chat is working fine, by the looks of it.

The shoutbox is not working correctly however.

Please check to see that the shoutbox directory exists, and the permissions (CHMOD) are 755 for all files too

Viewing your forum now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 03, 2010, 06:28:33 PM
shoutBox directory exists, all file/folder permissions are set to 755.

btw:  content of the .htaccess file in the shoutBox directory:
RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 03, 2010, 06:40:10 PM
Try removing the .htaccess, copy it to your local computer and delete it from the directory, see what happens, I'm sure this is not needed, unless your using pretty urls mod

I have added the same .htaccess content and my shoutbox and chat work, it has to be something else.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nickhead on July 03, 2010, 08:56:55 PM
Quote from: mrtrc266 on June 29, 2010, 08:29:55 PM
Quote from: Nickhead on June 29, 2010, 04:59:53 AM
couldnt think of the proper search terms to see if its been posted but...

this flashchat mod, is inside the board theme:

is there a way, to make the ajax chat open in the same manner?

is it as simple as changing the flashchat code to match the ajax?

what edits would that entail?


There a a couple ways to achieve this...
#1 install Simple Portal and create a custom HTML Page and insert this code.
<iframe src ="http://yoursite.com/chat/index.php"  width="100%" height="400">
</iframe>


#2 Install this Mod Custom  Pages and Tabs (2) SMF 2 - RC3 (http://custom.simplemachines.org/mods/index.php?mod=2604)

Goto Admin/Modification Settings/Custom Pages and Tabs (1)
Check "Enable the Custom Tab/Button?"
Add Page Title Here: "Chat"
Add the Label for the tab here: "Chat"
Which code are you using below, HTML or BB code? "HTML Code"
Add the HTML or BB code here for this page:
<iframe src ="http://yoursite.com/chat/index.php" width="100%" height="400">
</iframe>


In either case it will result in something like what you are trying to achieve. See attached pic....

To remove the duplicate Chat Tab find and delete /Subs.php
            'chat' => array(
            'title' => $chatButton,
            'href' => $chatLink,
            'show' => true,
            'sub_buttons' => array(
            ),
        ),


In the Chat Admin Options goto Admin/Modification Settings/Chat and only check the following options...
Enable the ShoutBox?
Integrate shout   box and chat room?
Show online users below total logged in time section?

thats exactly what i was looking for, thank you very much.

to take a peek, http://elephantintheparlor.org/eitp/

have a few tweeks left, but am 95% there.  just need to skin the chat to my sites main look.  will add if i can, images with site logos inside the chat too.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on July 03, 2010, 09:00:27 PM
I've been messing around with this for three days now, and I'm at my wits end. I've chmodded EVERYTHING to 755, and still nothing. I've uninstalled and reinstalled I don't know how many times. What can possibly be wrong?

http://www.theflipsideforum.com
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on July 04, 2010, 08:22:45 AM
Quote from: graaywolf on July 03, 2010, 05:59:50 PM
SMF version: 1.1.11

i keep getting this error over and over: "BudBot: Error: Connection status: 500" in the chat window

i have reset the permissions on chat/index.php and shoutbox/index.php to 755 as directed

i'm still getting the error... i'm losing members cause of this annoyance... please help....

ok... i guess i don't have a chat for my forums..... can't have this 500 error running people off.... my site's a laughing stock because of this darn error...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on July 04, 2010, 08:35:00 AM
Quote from: graaywolf on July 04, 2010, 08:22:45 AM
Quote from: graaywolf on July 03, 2010, 05:59:50 PM
SMF version: 1.1.11

i keep getting this error over and over: "BudBot: Error: Connection status: 500" in the chat window

i have reset the permissions on chat/index.php and shoutbox/index.php to 755 as directed

i'm still getting the error... i'm losing members cause of this annoyance... please help....

ok... i guess i don't have a chat for my forums..... can't have this 500 error running people off.... my site's a laughing stock because of this darn error...

all the files in the chat and shoutbox folders r 755... i'm still getting the error... it boots u from chat when it happens... and sounds like i'm not the only one this is happening to... at my wits end... i tried everything i can think of... i'll have to close the site without a chat room... (disabled - fixed income) got no money for a pay chat...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 04, 2010, 11:58:26 AM
how exactly do the .htaccess files have to look like in the ./ (root), ./chat/, ./shoutBox/ folder? (am i missing one?)
Are they all the same? or do I have to change anything?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rudeboy1991 on July 04, 2010, 12:18:55 PM
Hi.
When i enable the chat i get this in its box,

ChatBot: Error: Estado de la conexi�n: 500


do you know why?

pd. I have put permisions on 755, and 777, bus still same.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 04, 2010, 01:11:22 PM
Quote from: w4rheart on July 04, 2010, 11:58:26 AM
how exactly do the .htaccess files have to look like in the ./ (root), ./chat/, ./shoutBox/ folder? (am i missing one?)
Are they all the same? or do I have to change anything?

the .htaccess file actually has no filename, just the htaccess extension.

What I would do is, reupload (manually) the chat dir and the shoutbox dir, from the mod package, just to be sure all the files have been uploaded.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 04, 2010, 03:42:49 PM
Quote from: ♪ JohnCcCcCc ♫ on July 04, 2010, 01:11:22 PM
Quote from: w4rheart on July 04, 2010, 11:58:26 AM
how exactly do the .htaccess files have to look like in the ./ (root), ./chat/, ./shoutBox/ folder? (am i missing one?)
Are they all the same? or do I have to change anything?

the .htaccess file actually has no filename, just the htaccess extension.

What I would do is, reupload (manually) the chat dir and the shoutbox dir, from the mod package, just to be sure all the files have been uploaded.

No, I think you got me wrong.
I was asking where exactly I have to put those .htaccess files and what exactly has to be in them, because I am not sure I understood that part in FAQs right.
So would anyone explain this again to me, please?

btw: I  tried reuploading the shoutbox and chat folder. still not working
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ab1cor on July 04, 2010, 05:38:05 PM
I have this error: Fatal error: require() [function.require]: Failed opening required '/xxxx/xxxxxx/xxxxxxxx/chat/lib/custom.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /xxxx/xxxxxx/xxxxxx/chat/index.php on line 17

I have index.php chmoded 777, and also tried 755 ...

Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rudeboy1991 on July 05, 2010, 07:57:20 AM
Quote from: rudeboy1991 on July 04, 2010, 12:18:55 PM
Hi.
When i enable the chat i get this in its box,

ChatBot: Error: Estado de la conexi�n: 500


do you know why?

pd. I have put permisions on 755, and 777, bus still same.

Anyone?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on July 05, 2010, 09:28:53 AM
Quote from: rudeboy1991Hi.
When i enable the chat i get this in its box,
Code: [Select]
ChatBot: Error: Estado de la conexi�n: 500

do you know why?

pd. I have put permisions on 755, and 777, bus still same.

I read in this thread that index.php in /chat and /shoutbox should be 600. I tried it, it worked. Give it a shot, what have you got to lose?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 05, 2010, 10:14:57 AM
Quote
    * Try adding RewriteEngine on just above the RewriteRule ^chat/?$ ./chat/index.php [L,QSA] in the .htaccess that's in the same folder as SSI.php.
    * Try also putting these same two lines in the .htaccess in the site's root folder. (You'll end up with two separate files, each with those two lines at the top.)
    * Try creating an .htaccess file just inside both the /chat/ and the /shoutBox/ folders. At the top of each of these and on separate lines, add RewriteEngine on and RewriteRule ^/?$ ./index.php [L,QSA].

What exatcly does that mean? What do I have to do? I dont really understand, especially the last point!?
QuoteAt the top of each of these and on separate lines, add
what exactly does that mean?


Here is what i did:
I put one .htaccess file with this content
QuoteRewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
:
in my root folder, and 1 different .htaccess files with this content:
QuoteRewriteEngine on
RewriteRule ^/?$ ./index.php [L,QSA]
in the /chat and /shoutbox directory

is thar right?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on July 05, 2010, 10:34:12 AM
Quote from: bahgheera on July 05, 2010, 09:28:53 AM
Quote from: rudeboy1991Hi.
When i enable the chat i get this in its box,
Code: [Select]
ChatBot: Error: Estado de la conexi�n: 500

do you know why?

pd. I have put permisions on 755, and 777, bus still same.

I read in this thread that index.php in /chat and /shoutbox should be 600. I tried it, it worked. Give it a shot, what have you got to lose?

could someone confirm is or debunk this.... i would really like to have a conversation in my chat without this error message popping up every other line.... if this mod don't have support from the developers it shouldn't be here period!...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 05, 2010, 11:39:32 AM
The .htaccess rewrites the URL, usually used with only pretty URLs, I can completely remove anything to do with ajax chat from any of the .htaccess files.

If you have the chat edits in your root .htaccess file they will not be needed in the chat and shoutbox directory as the .htaccess file will work for the directory its in and any after.

I would remove the edits for ajax chat from the .htaccess in the root, and only have the edits in ./chat and ./shuotbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 05, 2010, 12:17:58 PM
^ I deleted the htaccess in the root, chat still working, so thats good  ;D
EDIT: I can delete all .httacess files, chat still works, shoutbox is blank.
But I still dont get why the shoutbox doesn't work ???
Alle permssions are set, all htaccess files are in the right place, although they are not even needed for anything apparently.

What am I doing wrong?  :'(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rudeboy1991 on July 05, 2010, 01:05:31 PM
Quote from: graaywolf on July 05, 2010, 10:34:12 AM
Quote from: bahgheera on July 05, 2010, 09:28:53 AM
Quote from: rudeboy1991Hi.
When i enable the chat i get this in its box,
Code: [Select]
ChatBot: Error: Estado de la conexi�n: 500

do you know why?

pd. I have put permisions on 755, and 777, bus still same.

I read in this thread that index.php in /chat and /shoutbox should be 600. I tried it, it worked. Give it a shot, what have you got to lose?

could someone confirm is or debunk this.... i would really like to have a conversation in my chat without this error message popping up every other line.... if this mod don't have support from the developers it shouldn't be here period!...

i just tried it and i have no more error.

But i have still got one more problem and do not know how to fix. It wont let me send the messages...


edit:

I take back what i just said, it didnt work still receiving that error, hense why i still couldnt send messages
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 05, 2010, 01:39:08 PM
quick question.  I've heard of Ajax having a "chat log"  where you can go back and look at older posts.  Just wondering if this MOD has it, and how do i access it? 

thank You.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: crustybum on July 06, 2010, 06:03:35 AM
Cant get it to load on 1.11, i get this:

Type     Action     Description
1.    Execute Modification    ./Sources/BoardIndex.php    Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./SSI.php    Test successful
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
7.    Execute Modification    ./Themes/default/index.template.php    Test failed
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.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_1.1.X.php    
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: crustybum on July 06, 2010, 08:01:37 AM
Forgot to mention its on the default theme..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 06, 2010, 10:02:02 AM
alright, nevermind guys, I got it all fixed!
(it was such a stupid mistake... for some reason the talkbox mod didnt uninstall properly, and some lines were still not removed and caused that error... fuuu talkbox!)
No there is one little mistake left. Just look in the attachment.
There is a lot of space between the smileys the buttons and the shout button, why is that? is there a way to put them all closer together?

regards
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eric B on July 06, 2010, 10:27:25 AM
I am trying to write a script to create a dynamic image to display how many users are in chat, but I am hitting a snag. Has anyone tried this before?

Here is where I am stuck at the moment.

function smf_main()
{
global $modSettings, $settings, $user_info, $board, $topic, $board_info, $maintenance, $sourcedir, $smcFunc;
}

function chatOnlineUsers(){
global $smcFunc;

$userIDs = array();
$result = $smcFunc['db_query']('', '
SELECT userID
FROM {db_prefix}ajaxchat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)' ,
  array()
);
while($row = $smcFunc['db_fetch_assoc']($result)) {
array_push($userIDs, $row['userID']);
}
$smcFunc['db_free_result']($result);
return array_unique($userIDs);
}


I get this error
Fatal error: Function name must be a string
on this line
$result = $smcFunc['db_query']('', '
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 06, 2010, 10:48:47 AM
I'm just a PHP beginner, but are you not missing some globals there
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eric B on July 06, 2010, 11:11:44 AM
I didnt think so, but if you see any, please let me know.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 06, 2010, 11:33:18 AM
Never mind, I read it too fast lol


I checked, I don't see where you have made changes, were talking about "load.php" right ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eric B on July 06, 2010, 11:45:21 AM
I am just trying to query the table so I can parse that data into a dynamic image that tells people how many users are on line.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 06, 2010, 11:54:57 AM
Well, that code will do that, but what you need is to modify your template, since that is where the designing is mainly at.

What exactly are you tying to do, Use images to display how many members are in chat?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on July 06, 2010, 12:56:48 PM
Quote from: graaywolf on July 05, 2010, 10:34:12 AM
Quote from: bahgheera on July 05, 2010, 09:28:53 AM
Quote from: rudeboy1991Hi.
When i enable the chat i get this in its box,
Code: [Select]
ChatBot: Error: Estado de la conexi�n: 500

do you know why?

pd. I have put permisions on 755, and 777, bus still same.

I read in this thread that index.php in /chat and /shoutbox should be 600. I tried it, it worked. Give it a shot, what have you got to lose?

could someone confirm is or debunk this.... i would really like to have a conversation in my chat without this error message popping up every other line.... if this mod don't have support from the developers it shouldn't be here period!...

it's funny..... i didn't have these error problems with SMF version 1.1.10 my old site was 1.1.10 and the chat worked right... i built this site with version 1.1.11 and installed chat and now: BudBot: Error: Connection status: 500 over and over again...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 06, 2010, 01:54:45 PM
Usually, DIR Permissions are supposed to be 0755 and files are to be 0644 I believe, people say to CHMOD all to 755, just because its easier and quicker. It would still work the same
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eric B on July 06, 2010, 02:58:56 PM
Quote from: ♪ JohnCcCcCc ♫ on July 06, 2010, 11:54:57 AM
Well, that code will do that, but what you need is to modify your template, since that is where the designing is mainly at.

What exactly are you tying to do, Use images to display how many members are in chat?

Not looking to modify the template at all. Creating a separate php script to parse the users online into an image.

Something like this for example: http://www.webcheatsheet.com/PHP/dynamic_image_generation.php#using

But I am getting that error when I query the database.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 06, 2010, 04:50:48 PM
There is information about custom integration here
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Main_Page
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on July 07, 2010, 04:51:04 AM
Quote from: ♪ JohnCcCcCc ♫ on July 06, 2010, 01:54:45 PM
Usually, DIR Permissions are supposed to be 0755 and files are to be 0644 I believe, people say to CHMOD all to 755, just because its easier and quicker. It would still work the same

did that.... still the same "BudBot: Error: Connection status: 500" over and over again....

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: crustybum on July 07, 2010, 06:23:16 AM
Quote from: crustybum on July 06, 2010, 06:03:35 AM
Cant get it to load on 1.11, i get this:

Type     Action     Description
1.    Execute Modification    ./Sources/BoardIndex.php    Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./SSI.php    Test successful
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
7.    Execute Modification    ./Themes/default/index.template.php    Test failed
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.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_1.1.X.php    


Anyone any ideas?   (on default theme)

Chris
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: h0stile on July 07, 2010, 06:49:48 AM
I installed the latest version of the mod on 2.0 RC3 and I have checked Integrate shout box and chat room? (of course, shoutbox is enabled). if a user enters the chat, what he writes there, does not show up in the shoutbox. it's like the shoutbox does not refresh itself. can I do smthing about it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 07, 2010, 10:52:00 AM
How can I increase the maximum number of shouts that are loaded with the shoubox?
So far it only loads 10 shouts!

I edited this line in /shoutbox/lib/config.php... :
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;

... but no effect.

Where/How can I change this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 07, 2010, 10:54:03 AM
Quote from: w4rheart on July 07, 2010, 10:52:00 AM
How can I increase the maximum number of shouts that are loaded with the shoubox?
So far it only loads 10 shouts!

I edited this line in /shoutbox/lib/config.php... :
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;

... but no effect.

Where/How can I change this?

Make the same change to  /chat/lib/config.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 07, 2010, 10:57:51 AM
Quote from: crustybum on July 07, 2010, 06:23:16 AM
Quote from: crustybum on July 06, 2010, 06:03:35 AM
Cant get it to load on 1.11, i get this:

Type     Action     Description
7.    Execute Modification    ./Themes/default/index.template.php    Test failed

Anyone any ideas?   (on default theme)

Chris

It means that some other Mod has moved the code that this Mod is looking for. Use the Parser and manually edit that file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 07, 2010, 11:12:15 AM
Quote from: graaywolf on July 06, 2010, 12:56:48 PM
if this mod don't have support from the developers it shouldn't be here period!...

You problem doesn't seem to have anything to do with developers support or not, this Mod does get plenty of support and most problems are solved but from time to time there will be issues that are hard to tackle.

This might even be related to your server and not the Mod itself, have you check your servers error log or googled "intermittent 500 error?"

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: h0stile on July 07, 2010, 11:27:53 AM
can anyone help me regarding my problem?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 07, 2010, 11:32:29 AM
Quote from: h0stile on July 07, 2010, 06:49:48 AM
I installed the latest version of the mod on 2.0 RC3 and I have checked Integrate shout box and chat room? (of course, shoutbox is enabled). if a user enters the chat, what he writes there, does not show up in the shoutbox. it's like the shoutbox does not refresh itself. can I do smthing about it?

Does the chat room work?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 07, 2010, 11:38:08 AM
thanks mrtcc266  :)
btw, is there a way to edit the header/category of the shoutbox where it sais "ShoutBox" ?

EDIT: nvm i found it, but now I'm haing a different issue:
After I edited the language and shout.template files I have a blank line just right under beneath the header (see attachment).

I replaced the files iwth the original files, but it still didn't change? wtf is wrong here :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: crustybum on July 07, 2010, 11:43:43 AM
Is there a link to the parsar?...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 07, 2010, 11:56:21 AM
do you mean parser?
http://custom.simplemachines.org/mods/index.php?mod=1319
show the manual installation thing for your version of smf.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: crustybum on July 07, 2010, 12:02:11 PM
Sorry..cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: crustybum on July 07, 2010, 12:05:37 PM
Yikes that looks difficult....is there any way of finding out which mod is conflicting and remove it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: h0stile on July 07, 2010, 12:21:02 PM
Quote from: mrtrc266 on July 07, 2010, 11:32:29 AM
Quote from: h0stile on July 07, 2010, 06:49:48 AM
I installed the latest version of the mod on 2.0 RC3 and I have checked Integrate shout box and chat room? (of course, shoutbox is enabled). if a user enters the chat, what he writes there, does not show up in the shoutbox. it's like the shoutbox does not refresh itself. can I do smthing about it?

Does the chat room work?

yes, everything is working fine except every time a user from the chat window is writing smthing, there is nothing showing up in the shoutbox on the forum (I have set chat to open in a new window). I have to hit refresh to see a un updated shoutbox. everything else works perfectly (I have the inferno theme from Dziner Studios).

one more thing I just noticed. if I click inside the shoutbox field to write smthing, the shoutbox updates immediately.


and one more problem. In chat/js/config.js I have set these

// Defines if sounds are played:
      audio: false,
      // Defines the sound volume (0.0 = mute, 1.0 = max):
      audioVolume: 0.0,

but when I enter the chat windows, the sounds still play. I still have to click the mute button.

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 07, 2010, 01:09:14 PM
Quote from: h0stile on July 07, 2010, 12:21:02 PM
Quote from: mrtrc266 on July 07, 2010, 11:32:29 AM
Quote from: h0stile on July 07, 2010, 06:49:48 AM
I installed the latest version of the mod on 2.0 RC3 and I have checked Integrate shout box and chat room? (of course, shoutbox is enabled). if a user enters the chat, what he writes there, does not show up in the shoutbox. it's like the shoutbox does not refresh itself. can I do smthing about it?

Does the chat room work?

yes, everything is working fine except every time a user from the chat window is writing smthing, there is nothing showing up in the shoutbox on the forum (I have set chat to open in a new window). I have to hit refresh to see a un updated shoutbox. everything else works perfectly (I have the inferno theme from Dziner Studios).

one more thing I just noticed. if I click inside the shoutbox field to write smthing, the shoutbox updates immediately.


and one more problem. In chat/js/config.js I have set these

// Defines if sounds are played:
      audio: false,
      // Defines the sound volume (0.0 = mute, 1.0 = max):
      audioVolume: 0.0,

but when I enter the chat windows, the sounds still play. I still have to click the mute button.

thanks

That is correct, you don't need to refresh, you just need to put your cursor in the input field to retrieve the shouts. What happens is if you don't shout for more than 2 minutes then you are booted from the chat/shout, you can change that in your /chat/lib/config.php file
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;


That's what the mute button is for LOL, to completely disable it though find....
chat/lib/template/loggedIn.html
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, true, initialize);
Replace with
ajaxChatConfig.settings.audio =false;
ajaxChatConfig.nonPersistentSettings.push('audio');

ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, true, initialize);
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 07, 2010, 01:11:46 PM
Quote from: w4rheart on July 07, 2010, 11:38:08 AM
thanks mrtcc266  :)
btw, is there a way to edit the header/category of the shoutbox where it sais "ShoutBox" ?

EDIT: nvm i found it, but now I'm haing a different issue:
After I edited the language and shout.template files I have a blank line just right under beneath the header (see attachment).

I replaced the files iwth the original files, but it still didn't change? wtf is wrong here :D


Anytime you mess with language files be sure to clear your forums cache. See if that helps
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 07, 2010, 01:19:14 PM
Quote from: w4rheart on July 07, 2010, 11:38:08 AM
thanks mrtcc266  :)
btw, is there a way to edit the header/category of the shoutbox where it sais "ShoutBox" ?

EDIT: nvm i found it, but now I'm haing a different issue:
After I edited the language and shout.template files I have a blank line just right under beneath the header (see attachment).

I replaced the files iwth the original files, but it still didn't change? wtf is wrong here :D


Dont edit the templates, edit only Shout.english.php.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: h0stile on July 07, 2010, 01:25:41 PM
Quote
That is correct, you don't need to refresh, you just need to put your cursor in the input field to retrieve the shouts. What happens is if you don't shout for more than 2 minutes then you are booted from the chat/shout, you can change that in your /chat/lib/config.php file
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;



In chat/lib/config.php I have set it to 15. It;s weird. I have reloaded the page a few times. Now it works (it refreshes itself). after a while, it doesnt. Lets say I make it 300 minutes. It will refresh for 5 hours? The thing is, I want shoutbox on all pages, so my users can see what's being discussed while browsing. This is why I need it to refresh all the time.


Thank you, that muted the sound button by default in chat BUT sounds are still heard. I think from the shoutbox (which now works, I hope). can I do smthing to mute them too?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 07, 2010, 01:28:01 PM
Thanks a lot for your help ♪ JohnCcCcCc ♫. Nice seein ya again
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 07, 2010, 01:30:17 PM
Quote from: h0stile on July 07, 2010, 01:25:41 PM
Quote
That is correct, you don't need to refresh, you just need to put your cursor in the input field to retrieve the shouts. What happens is if you don't shout for more than 2 minutes then you are booted from the chat/shout, you can change that in your /chat/lib/config.php file
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;



In chat/lib/config.php I have set it to 15. It;s weird. I have reloaded the page a few times. Now it works (it refreshes itself). after a while, it doesnt. Lets say I make it 300 minutes. It will refresh for 5 hours? The thing is, I want shoutbox on all pages, so my users can see what's being discussed while browsing. This is why I need it to refresh all the time.


Thank you, that muted the sound button by default in chat BUT sounds are still heard. I think from the shoutbox (which now works, I hope). can I do smthing to mute them too?
Find /chat/lib/template/shoutbox.html
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink');
Replace With
ajaxChatConfig.settings.audio =false;
ajaxChatConfig.nonPersistentSettings.push('autoFocus','wordWrap','maxWordLength','blink','audio');
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: h0stile on July 07, 2010, 01:37:28 PM
Quote from: w4rheart on July 07, 2010, 11:38:08 AM

btw, is there a way to edit the header/category of the shoutbox where it sais "ShoutBox" ?


I'd like to do it too. Can you tell my what to edit, pls?

thanks


PS I muted all sounds. thanks. the issue with the shoutbox is not solved though. I have to click in the shout field and then, everything I write in the chat windows, shows up in shoutbox. If I reload the forum page and then write in the chat window, the shoutbox again doesn't update. I think I will disable the shoutbox. It's of no use like this. I need it to update all the time, on every page :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperZambezi on July 07, 2010, 05:36:17 PM
Global Mods don't seem to be able to Kick/Ban any members from Chat even though they have the right permissions to do so. Any way to fix this? Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mavfreak on July 07, 2010, 05:41:38 PM
I would like to add an extra link below the Online User's Name grouped with Logout, View IP, Invite, Open Private Channel. etc..  This link would go to the User's Forum Profile. 

Any help would be appreciated, I just cant seem to find any posts on it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on July 07, 2010, 06:51:06 PM
Quote from: mrtrc266 on July 07, 2010, 11:12:15 AM
Quote from: graaywolf on July 06, 2010, 12:56:48 PM
if this mod don't have support from the developers it shouldn't be here period!...

You problem doesn't seem to have anything to do with developers support or not, this Mod does get plenty of support and most problems are solved but from time to time there will be issues that are hard to tackle.

This might even be related to your server and not the Mod itself, have you check your servers error log or googled "intermittent 500 error?"

yes and even got the folks at my server to check out the error... they say it's software related not server.... this didn't happen with SMF version 1.1.10.... it started when i upgraded to SMF version 1.1.11... i wonder if it's an SMF forum error instead of a chat error... i don't know... i'm not an IT person... i have no formal training at this.... learning as i go...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 07, 2010, 07:11:23 PM
Quote from: graaywolf on July 07, 2010, 06:51:06 PM
Quote from: mrtrc266 on July 07, 2010, 11:12:15 AM
Quote from: graaywolf on July 06, 2010, 12:56:48 PM
if this mod don't have support from the developers it shouldn't be here period!...

You problem doesn't seem to have anything to do with developers support or not, this Mod does get plenty of support and most problems are solved but from time to time there will be issues that are hard to tackle.

This might even be related to your server and not the Mod itself, have you check your servers error log or googled "intermittent 500 error?"

yes and even got the folks at my server to check out the error... they say it's software related not server.... this didn't happen with SMF version 1.1.10.... it started when i upgraded to SMF version 1.1.11... i wonder if it's an SMF forum error instead of a chat error... i don't know... i'm not an IT person... i have no formal training at this.... learning as i go...

And what is the error in your servers error log?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 07, 2010, 07:16:00 PM
Quote from: SuperZambezi on July 07, 2010, 05:36:17 PM
Global Mods don't seem to be able to Kick/Ban any members from Chat even though they have the right permissions to do so. Any way to fix this? Thanks.

They have the permission Moderate Shout and Chat?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 07, 2010, 07:17:05 PM
Quote from: mavfreak on July 07, 2010, 05:41:38 PM
I would like to add an extra link below the Online User's Name grouped with Logout, View IP, Invite, Open Private Channel. etc..  This link would go to the User's Forum Profile. 

Any help would be appreciated, I just cant seem to find any posts on it.

No feature of that nature is available at this time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mavfreak on July 08, 2010, 12:39:12 AM
Quote from: mrtrc266 on July 07, 2010, 07:17:05 PM
Quote from: mavfreak on July 07, 2010, 05:41:38 PM
I would like to add an extra link below the Online User's Name grouped with Logout, View IP, Invite, Open Private Channel. etc..  This link would go to the User's Forum Profile. 

Any help would be appreciated, I just cant seem to find any posts on it.

No feature of that nature is available at this time.

Actually it was a feature in the Ajax Chat integrations on freeforums.org, and forumsmotion.com .  They were PHPbb3 but it cant be all that different.  Just a link that said "View User Profile".  Unfortunately I cant get the code to the chat install there as its locked down.  One of the reasons why I left their services aside from poor performance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on July 08, 2010, 02:25:20 AM
Quote from: mavfreak on July 07, 2010, 05:41:38 PM
I would like to add an extra link below the Online User's Name grouped with Logout, View IP, Invite, Open Private Channel. etc..  This link would go to the User's Forum Profile. 

Any help would be appreciated, I just cant seem to find any posts on it.

If you're feeling adventurous, you could do this: edit your chat.js file, find the line

getUserNodeStringItems: function(encodedUserName, userID) {

and decide where you want the link. After the </a></li> of the link you are going to put your link after, add these lines:

+ '<li><a target="_blank" href="http://www.theflipsideforum.com/index.php?action=profile;u='
+ userID
+ '">'
+ this.lang['userMenuProfile']
+ '</a></li>'


Then edit your en.js file in the languages dir and add the line

userMenuProfile: 'View profile',

I just tried it just for the heck of it, and it works fine for me. I wish I knew what javascript to add to the href to get it to go back to the main window instead of open a new one though. I'll keep researching.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ebon on July 08, 2010, 04:54:27 AM
I've been having problems with escaped apostrophes.

When someone posts a line, like, -- That's a wonderful thing. -- in either the chat or on the shout-box you'd get something like this --That\'s a wonderful thing --

It may be that smart-quotes is set up strange on my host server, but I don't have control of the PHP settings, regardless. Doing some tinkering I've found a solution. I'm not sure if this is a sound solution though. I didn't write this thing... but so far there have been no explosions or anything bad happen, so here's what I did.

I changed one line in both ../chat/lib/class/AJAXChatEncoding.php and ../shoutBox/lib/class/AJAXChatEncoding.php

Find  (on line 18 in my version)
         $specialChars = array('&'=>'&amp;', '<'=>'&lt;', '>'=>'&gt;', "'"=>'&#39;', '"'=>'&quot;');
And change it to
         $specialChars = array('&'=>'&amp;', '<'=>'&lt;', '>'=>'&gt;', "'"=>'&#39;', "\'"=>'&#39;', '"'=>'&quot;');   

That seems to have done the trick.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mavfreak on July 08, 2010, 09:49:57 AM
Quote from: bahgheera on July 08, 2010, 02:25:20 AM
Quote from: mavfreak on July 07, 2010, 05:41:38 PM
I would like to add an extra link below the Online User's Name grouped with Logout, View IP, Invite, Open Private Channel. etc..  This link would go to the User's Forum Profile. 

Any help would be appreciated, I just cant seem to find any posts on it.

If you're feeling adventurous, you could do this: edit your chat.js file, find the line

getUserNodeStringItems: function(encodedUserName, userID) {

and decide where you want the link. After the </a></li> of the link you are going to put your link after, add these lines:

+ '<li><a target="_blank" href="http://www.theflipsideforum.com/index.php?action=profile;u='
+ userID
+ '">'
+ this.lang['userMenuProfile']
+ '</a></li>'


Then edit your en.js file in the languages dir and add the line

userMenuProfile: 'View profile',

I just tried it just for the heck of it, and it works fine for me. I wish I knew what javascript to add to the href to get it to go back to the main window instead of open a new one though. I'll keep researching.

Thanks for the tip, I will give it a try on my test forum and post results.
Mav
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 08, 2010, 10:32:35 AM
Quote from: ebon on July 08, 2010, 04:54:27 AM
I've been having problems with escaped apostrophes.

When someone posts a line, like, -- That's a wonderful thing. -- in either the chat or on the shout-box you'd get something like this --That\'s a wonderful thing --

It may be that smart-quotes is set up strange on my host server, but I don't have control of the PHP settings, regardless. Doing some tinkering I've found a solution. I'm not sure if this is a sound solution though. I didn't write this thing... but so far there have been no explosions or anything bad happen, so here's what I did.

I changed one line in both ../chat/lib/class/AJAXChatEncoding.php and ../shoutBox/lib/class/AJAXChatEncoding.php

Find  (on line 18 in my version)
         $specialChars = array('&'=>'&amp;', '<'=>'&lt;', '>'=>'&gt;', "'"=>''', '"'=>'&quot;');
And change it to
         $specialChars = array('&'=>'&amp;', '<'=>'&lt;', '>'=>'&gt;', "'"=>''', "\'"=>''', '"'=>'&quot;');   

That seems to have done the trick.

Thanks for the alternative work around.

This does the trick to http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Slashes_before_apostrophes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperZambezi on July 08, 2010, 12:06:42 PM
Quote from: mrtrc266 on July 07, 2010, 07:16:00 PM
Quote from: SuperZambezi on July 07, 2010, 05:36:17 PM
Global Mods don't seem to be able to Kick/Ban any members from Chat even though they have the right permissions to do so. Any way to fix this? Thanks.

They have the permission Moderate Shout and Chat?

Yeah they have that set, they just don't have the option to Kick/Ban anyone like an Admin does.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: InfoStrides on July 08, 2010, 12:52:46 PM
Quote from: TheInfostrides.Com on July 03, 2010, 07:15:58 AM
Quote from: mrtrc266 on July 02, 2010, 09:46:33 PM
Quote from: TheInfostrides.Com on July 02, 2010, 06:12:49 AM
Quote from: mrtrc266 on July 01, 2010, 11:22:20 AM
Quote from: TheInfostrides.Com on June 30, 2010, 07:39:57 PM
I just installed Ajax Chat today and everything installed successfully except "Source/BoardIndex.php" code that I entered manually but click on "Chat" redirect me to the home page.

I have all permissions set properly and .htaccess files are appropriate. I am confused what could have caused the issue. The website in question is http://www.theinfostrides.com

Please help!

That's odd, what other Mods do you have installed?

Quote

Not sure, what's in the .htaccess file that's located in your forums root folder (the same folder that you SSI.php is located).

Please find below content of my .htaccess file.

QuoteRewriteEngine on

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

I still need help here.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mavfreak on July 08, 2010, 03:20:10 PM
Quote from: bahgheera on July 08, 2010, 02:25:20 AM
Quote from: mavfreak on July 07, 2010, 05:41:38 PM
I would like to add an extra link below the Online User's Name grouped with Logout, View IP, Invite, Open Private Channel. etc..  This link would go to the User's Forum Profile. 

Any help would be appreciated, I just cant seem to find any posts on it.

If you're feeling adventurous, you could do this: edit your chat.js file, find the line

getUserNodeStringItems: function(encodedUserName, userID) {

and decide where you want the link. After the </a></li> of the link you are going to put your link after, add these lines:

+ '<li><a target="_blank" href="http://www.theflipsideforum.com/index.php?action=profile;u='
+ userID
+ '">'
+ this.lang['userMenuProfile']
+ '</a></li>'


Then edit your en.js file in the languages dir and add the line

userMenuProfile: 'View profile',

I just tried it just for the heck of it, and it works fine for me. I wish I knew what javascript to add to the href to get it to go back to the main window instead of open a new one though. I'll keep researching.

Bahgeera Thanks to you!!  That worked exactly as it had in the other examples Ive experienced.  Here is the way it looks now in my Chat box for the user: Christian

Christian

•Send private message
•Send private action
View profile
•Open private channel
•Close private channel
•Invite
•Uninvite
•Ignore/Accept
•Display channel
•Kick/Ban
•Display IP

We have a few custom fields that we require to be filled and my Moderators can now easily check to be sure folks are in complinace.  I appreciate the effort! 

MavFrEAk
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on July 08, 2010, 05:43:12 PM
No problem! Glad it worked out for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: w4rheart on July 08, 2010, 05:46:32 PM
Quote from: mrtrc266 on July 07, 2010, 01:11:46 PM
Quote from: w4rheart on July 07, 2010, 11:38:08 AM
thanks mrtcc266  :)
btw, is there a way to edit the header/category of the shoutbox where it sais "ShoutBox" ?

EDIT: nvm i found it, but now I'm haing a different issue:
After I edited the language and shout.template files I have a blank line just right under beneath the header (see attachment).

I replaced the files iwth the original files, but it still didn't change? wtf is wrong here :D


Anytime you mess with language files be sure to clear your forums cache. See if that helps
Quote from: ♪ JohnCcCcCc ♫ on July 07, 2010, 01:19:14 PM
Quote from: w4rheart on July 07, 2010, 11:38:08 AM
thanks mrtcc266  :)
btw, is there a way to edit the header/category of the shoutbox where it sais "ShoutBox" ?

EDIT: nvm i found it, but now I'm haing a different issue:
After I edited the language and shout.template files I have a blank line just right under beneath the header (see attachment).

I replaced the files iwth the original files, but it still didn't change? wtf is wrong here :D


Dont edit the templates, edit only Shout.english.php.

I just found the problem. I edited the files with the standard windows text editor, for some reason that caused the error.
Now I use some standard php editor and it works!

Thanks for your help though.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rustyrob on July 08, 2010, 06:40:07 PM
Hello i seem to have a strange problem, i installed the ajax chat with package installer and it says everything is perfectly fine but when i try to use the shoutbox it won't post anything i found out this is because it is intergrated with the chat, and the chat does not work, when i don't intergrade it shoutbox works but chat still does not. when i click the chat button or manually go to the chat link it shows an error page with error code 403. any help would be apreachated. =)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 09, 2010, 01:14:10 AM
Quote from: Rustyrob on July 08, 2010, 06:40:07 PM
Hello i seem to have a strange problem, i installed the ajax chat with package installer and it says everything is perfectly fine but when i try to use the shoutbox it won't post anything i found out this is because it is intergrated with the chat, and the chat does not work, when i don't intergrade it shoutbox works but chat still does not. when i click the chat button or manually go to the chat link it shows an error page with error code 403. any help would be apreachated. =)

What version of SMF do you have and what Mods are installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 09, 2010, 01:15:04 AM
Quote from: bahgheera on July 08, 2010, 02:25:20 AM
Quote from: mavfreak on July 07, 2010, 05:41:38 PM
I would like to add an extra link below the Online User's Name grouped with Logout, View IP, Invite, Open Private Channel. etc..  This link would go to the User's Forum Profile. 

Any help would be appreciated, I just cant seem to find any posts on it.

If you're feeling adventurous, you could do this: edit your chat.js file, find the line

getUserNodeStringItems: function(encodedUserName, userID) {

and decide where you want the link. After the </a></li> of the link you are going to put your link after, add these lines:

+ '<li><a target="_blank" href="http://www.theflipsideforum.com/index.php?action=profile;u='
+ userID
+ '">'
+ this.lang['userMenuProfile']
+ '</a></li>'


Then edit your en.js file in the languages dir and add the line

userMenuProfile: 'View profile',

I just tried it just for the heck of it, and it works fine for me. I wish I knew what javascript to add to the href to get it to go back to the main window instead of open a new one though. I'll keep researching.

TYVM for your contributions, I'll add this to the FAQ's
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on July 09, 2010, 01:58:21 AM
Quote from: mrtrc266TYVM for your contributions, I'll add this to the FAQ's

No problem.
Title: Re: AjaxChat Integration (3.2 Released)
Post by: h0stile on July 09, 2010, 03:22:44 AM
Quote from: mrtrc266 on July 09, 2009, 12:23:05 AM
Quote from: Oldcrow on July 08, 2009, 03:27:23 PM
I have a SMF 2.0 RC1-1 forum installed. I installed a Shout Box through the Package manger The Shout Box is AjaxChat Integration 3.2 I keep getting messages when I open the Shout Box they are below.

(11:14:28) ChatBot: Error: Failed to load sound file (Flash IO Error).
(11:14:28) ChatBot: Error: Failed to load sound file (Flash IO Error).
(11:14:28) ChatBot: Error: Failed to load sound file (Flash IO Error).

My question is: Can I get rid of the sound files and everything to do with the sound. If yes..how is this done.

Thanks Ron..

That is a known FireFox issue, ATM there I don't know of a fix for it but it only happens when you first type in a message, then it doenst appear again until you logon to your forum again.

SourceForge is current workin on finding a fix for it.

As it's really impossible for me to read from page 148 up to the current one, can anyone tell me if this issue is solved? The shoutbox and chat started showing these errors (in all browsers). What can I do about it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zadnan on July 09, 2010, 05:03:34 AM
I get the following error when I type something in shout box

(01:51:57) ChatBot: Error: Connection status: 405

The following when I click the chat button

Notice: Undefined index: SCRIPT_FILENAME in D:\hshome\****\****\chat\index.php on line 14

Warning: main(/lib/custom.php) [function.main]: failed to open stream: No such file or directory in D:\hshome\****\****\chat\index.php on line 17

Warning: main(/lib/custom.php) [function.main]: failed to open stream: No such file or directory in D:\hshome\****\****\ chat\index.php on line 17

Fatal error: main() [function.require]: Failed opening required '/lib/custom.php' (include_path='.;c:\PHP4\pear') in D:\hshome\****\****\ chat\index.php on line 17

I am using 1.1.11 SMF
I have set the file permissions to 644

More overI could not find the following text in file $sourcedir/ModSettings.php
array('text', 'default_personalText'),
array('int', 'max_signatureLength'),

where I should paste the following text IN ModSettings.php


         array('text', 'default_personalText'),
         array('int', 'max_signatureLength'),
         array('check', 'enableShoutBox'),
         array('check', 'anyPageShoutBox'),
         array('check', 'miniChat'),
         array('check', 'chatPopUp'),
         array('check', 'enableChatButtonNo'),
         array('check', 'enableChatBelowPM'),


plz help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 09, 2010, 10:54:43 AM
Quote from: zadnan on July 09, 2010, 05:03:34 AM
I get the following error when I type something in shout box

(01:51:57) ChatBot: Error: Connection status: 405

The following when I click the chat button

Notice: Undefined index: SCRIPT_FILENAME in D:\hshome\****\****\chat\index.php on line 14

Warning: main(/lib/custom.php) [function.main]: failed to open stream: No such file or directory in D:\hshome\****\****\chat\index.php on line 17

Warning: main(/lib/custom.php) [function.main]: failed to open stream: No such file or directory in D:\hshome\****\****\ chat\index.php on line 17

Fatal error: main() [function.require]: Failed opening required '/lib/custom.php' (include_path='.;c:\PHP4\pear') in D:\hshome\****\****\ chat\index.php on line 17

I am using 1.1.11 SMF
I have set the file permissions to 644

More overI could not find the following text in file $sourcedir/ModSettings.php
array('text', 'default_personalText'),
array('int', 'max_signatureLength'),

where I should paste the following text IN ModSettings.php


         array('text', 'default_personalText'),
         array('int', 'max_signatureLength'),
         array('check', 'enableShoutBox'),
         array('check', 'anyPageShoutBox'),
         array('check', 'miniChat'),
         array('check', 'chatPopUp'),
         array('check', 'enableChatButtonNo'),
         array('check', 'enableChatBelowPM'),


plz help

Change the file permissions to 755 for /chat/index.php and /shoutBox/index.php

That string of array can go below this
// Basic stuff, user languages, titles, flash, permissions...

Are you trying to install this manually or are you using the package manager in your SMF Admin Panel?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 09, 2010, 11:01:51 AM
Quote from: h0stile on July 09, 2010, 03:22:44 AM
As it's really impossible for me to read from page 148 up to the current one, can anyone tell me if this issue is solved? The shoutbox and chat started showing these errors (in all browsers). What can I do about it?

No need to read from page 148 you can simply search for (Flash IO Error) in this topic and it will retrieve every post that mentions it. It still hasn't been resolved unfortunately :-(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bobbywires on July 09, 2010, 02:57:31 PM
Trying to install to release 1.1.11 and I keep getting errors on index.template.php
I have verified the find strings listed in the manual install section.
I have even tried allowing all permissions for the file
Anything else to check or is there a log that can tell me what is causing the error?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zadnan on July 09, 2010, 04:05:53 PM
Quote from: mrtrc266 on July 09, 2010, 10:54:43 AM

Change the file permissions to 755 for /chat/index.php and /shoutBox/index.php

That string of array can go below this
// Basic stuff, user languages, titles, flash, permissions...

Are you trying to install this manually or are you using the package manager in your SMF Admin Panel?
thankyou
I installed it through package manager and got the above errors
I thought I need to edit the files any way
since I could not find the text modification.php I have not edited the files
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bobbywires on July 09, 2010, 04:44:30 PM
Quote from: Bobbywires on July 09, 2010, 02:57:31 PM
Trying to install to release 1.1.11 and I keep getting errors on index.template.php
I have verified the find strings listed in the manual install section.
I have even tried allowing all permissions for the file
Anything else to check or is there a log that can tell me what is causing the error?
Modified the index.template.php after doing the install
seems to be OK but getting log errors:

Unable to load the 'Shout.english-utf8' language file   
and
File: /home/rawre0/public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 403            
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 09, 2010, 04:54:21 PM
Quote from: Bobbywires on July 09, 2010, 04:44:30 PM
Quote from: Bobbywires on July 09, 2010, 02:57:31 PM
Trying to install to release 1.1.11 and I keep getting errors on index.template.php
I have verified the find strings listed in the manual install section.
I have even tried allowing all permissions for the file
Anything else to check or is there a log that can tell me what is causing the error?
Modified the index.template.php after doing the install
seems to be OK but getting log errors:

Unable to load the 'Shout.english-utf8' language file   
and
File: /home/rawre0/public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 403            

Create a copy of Shout.english.php, rename to Shout.english-utf8.php and upload it in the languages directory, that should solve it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cyberwolf000 on July 09, 2010, 11:04:07 PM
I am having an issue where I have the show users in chat below the Total Time Logged in checked but no one is showing.  I know there are people in chat because I would go into chat and talk to others, and then come back out, and there are no names showing.  Also, there is a number next to the Chat link that is greater than 0 "Zero".  I am running With version 2.0 RC3 SMF and version 3.2.1 of this modification.  Should I be using the   AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip since I am running RC3?  I am not using the Curve Theme, but I am running RC3 as my SMF.  Can anyone help on this one?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 10, 2010, 12:50:20 AM
Quote from: cyberwolf000 on July 09, 2010, 11:04:07 PM
I am having an issue where I have the show users in chat below the Total Time Logged in checked but no one is showing.  I know there are people in chat because I would go into chat and talk to others, and then come back out, and there are no names showing.  Also, there is a number next to the Chat link that is greater than 0 "Zero".  I am running With version 2.0 RC3 SMF and version 3.2.1 of this modification.  Should I be using the   AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip since I am running RC3?  I am not using the Curve Theme, but I am running RC3 as my SMF.  Can anyone help on this one?

Yes you should be using the AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip meaning it's for RC3 and ready to go for the default Curve theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: crustybum on July 10, 2010, 09:07:02 AM
My problem is that other members get another sign in (ajax) and it wont accept there login and pass....any ideas?? it also does not show up (shoutbox) but it does for admin

Chris
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 10, 2010, 10:06:40 AM
Quote from: crustybum on July 10, 2010, 09:07:02 AM
My problem is that other members get another sign in (ajax) and it wont accept there login and pass....any ideas?? it also does not show up (shoutbox) but it does for admin

Chris

Set your permissions in your Admin Panel for each member group
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rustyrob on July 10, 2010, 01:47:50 PM
Quote from: Rustyrob on July 08, 2010, 06:40:07 PM
Hello i seem to have a strange problem, i installed the ajax chat with package installer and it says everything is perfectly fine but when i try to use the shoutbox it won't post anything i found out this is because it is intergrated with the chat, and the chat does not work, when i don't intergrade it shoutbox works but chat still does not. when i click the chat button or manually go to the chat link it shows an error page with error code 403. any help would be apreachated. =)
i have rc3 with mods favicon 1.3 and ad management 2.3.6.2, i have one installed ajax chat intergration before and it worked but i installed that before anything else, should i disable everything and install ajax chat first again or do something else?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Moey on July 10, 2010, 08:23:42 PM
Hello.

I've been running the Ajax chat for quite a while now, and i've had this error didn't get time to fix it, but heres my chance.

SMF Version: 1.1.11
AjaxChat Integration_3.2.1
Custom theme: Ve1x

As you can see in the attachment, the names are bugged up. For some reason, the admin names work just fine, but the member names appear 2 lines down to my right.

I've used the SMF Package Parser but that didn't seem to work.

Help would be appreciated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cyberwolf000 on July 10, 2010, 08:49:39 PM
Quote from: mrtrc266 on July 10, 2010, 12:50:20 AM
Yes you should be using the AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip meaning it's for RC3 and ready to go for the default Curve theme.

OK, I uninstalled the version I had on my forum and installed the AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip and I am still not seeing any names below the Total time logged in.  I also noticed it is not correctly reporting the number of members in Chat.  I attached a screen shot showing me in Chat and it also shows the forum's Chat and Total Time Logged in.  Any suggestions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Diagram on July 11, 2010, 04:36:15 AM
I'm back here :) With a Question :

Is it possible to replace the username on the chat with a custom field in 2.0 RC3? If can, how?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 11, 2010, 10:16:25 AM
Quote from: Rustyrob on July 10, 2010, 01:47:50 PM
Quote from: Rustyrob on July 08, 2010, 06:40:07 PM
Hello i seem to have a strange problem, i installed the ajax chat with package installer and it says everything is perfectly fine but when i try to use the shoutbox it won't post anything i found out this is because it is intergrated with the chat, and the chat does not work, when i don't intergrade it shoutbox works but chat still does not. when i click the chat button or manually go to the chat link it shows an error page with error code 403. any help would be apreachated. =)
i have rc3 with mods favicon 1.3 and ad management 2.3.6.2, i have one installed ajax chat intergration before and it worked but i installed that before anything else, should i disable everything and install ajax chat first again or do something else?

Installing this first has been known to get this working in the past, it wouldn't hurt to try it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 11, 2010, 10:17:36 AM
Quote from: Moey on July 10, 2010, 08:23:42 PM
Hello.

I've been running the Ajax chat for quite a while now, and i've had this error didn't get time to fix it, but heres my chance.

SMF Version: 1.1.11
AjaxChat Integration_3.2.1
Custom theme: Ve1x

As you can see in the attachment, the names are bugged up. For some reason, the admin names work just fine, but the member names appear 2 lines down to my right.

I've used the SMF Package Parser but that didn't seem to work.

Help would be appreciated.

Try clearing your forum and browser cache
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 11, 2010, 10:21:40 AM
Quote from: cyberwolf000 on July 10, 2010, 08:49:39 PM
Quote from: mrtrc266 on July 10, 2010, 12:50:20 AM
Yes you should be using the AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip meaning it's for RC3 and ready to go for the default Curve theme.

OK, I uninstalled the version I had on my forum and installed the AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip and I am still not seeing any names below the Total time logged in.  I also noticed it is not correctly reporting the number of members in Chat.  I attached a screen shot showing me in Chat and it also shows the forum's Chat and Total Time Logged in.  Any suggestions?

And you're sure that you have that feature enabled in your Admin Panel?

For the incorrect number of users chatting, if someone enters the chat then leaves but doesn't log out then they will still show in chat until they are timed out.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: anidea on July 11, 2010, 10:48:28 AM
Quote from: mrtrc266 on February 17, 2010, 07:04:38 PM
Quote from: gitchuone on February 17, 2010, 01:04:17 AM
I thought SunKing was going to come to my rescue, but maybe I've stumped everyone? No?

I don't want to list all my smileys in the shoutBox and/or chat smiley list, but I want to use all my site loaded smileys in both the chat and the shoutBox.   :P

;D
Unfortunately AJAX Chat Smileys and SMF Smileys aren't integrated.

Here is a detailed explanation on how to get more functionality for the Smileys though, they are somewhat hidden, when you hit the smiley button they will pop up in a container, you were on the right track.
http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

Whatever smileys you use for you forum just add those to the edits for the AJAX Chat Smileys.

You can see it in action here (the "ShoutBox" not the "TalkBox")
http://monsters-mansion.com/testsmf2/ (http://monsters-mansion.com/testsmf2/)

If you like the "TalkBox" (recommended) you can find it here   http://www.empireofthesun.net
Hi!  We are loving AjaxChat, especially the shoutbox, on RC3.

Does this mod of the mod still work?  We'd like the forum smilies included in the shoutbox.  I went to the Monster's Mansion test site, but I don't see the mod in action.  Didn't want to start messing with a working setup without knowing that it works ;) 

Thanks!
Title: Re: Error_Log file - disable?
Post by: Lou69 on July 11, 2010, 10:43:56 PM
Is it possible to disable the error_log file that is found in the \shoutbox directory?

It is 13 meg in size and a bit large. I would like to close the stream and delete the file, after clearing the cause for the errors I intend to reenable the log.

thanks

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Moey on July 12, 2010, 12:24:54 AM
Quote from: mrtrc266 on July 11, 2010, 10:17:36 AM
Quote from: Moey on July 10, 2010, 08:23:42 PM
Hello.

I've been running the Ajax chat for quite a while now, and i've had this error didn't get time to fix it, but heres my chance.

SMF Version: 1.1.11
AjaxChat Integration_3.2.1
Custom theme: Ve1x

As you can see in the attachment, the names are bugged up. For some reason, the admin names work just fine, but the member names appear 2 lines down to my right.

I've used the SMF Package Parser but that didn't seem to work.

Help would be appreciated.

Try clearing your forum and browser cache

Hey, thanks for replying.

I've tried them both and nothing happened. This is happening to all the members on my forum. Any other possibilities?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: greenberet on July 12, 2010, 05:35:11 AM
Quote

Alright, I got i figured! ;)
But even before I modiefied anything, the shoutbox was not working. I was not able to shout, the shoutbox was blank so no smileys and stuff.
Funny thing is, that when I first installed this mod (like 5 days ago) everything worked fine!
(I just got this 500 error thing, because I forgot to set the permissions)

But now I have no idea why it is not working again. I tried the .htaccess thing described in the FAQs, but my .htaccess files had the lines added already.

So, what am I supposed to do?  :( Is it possible, that something went wrong while uninstalling?

Hi, I´m having this same problem only with a different Theme (Green Leaf), the default its working fine, I have re edit the permissions to 755 to both folders and nothing happens, also did the .httacces thing and the same....what could be the problem?

Here is the site : http://loqueignoras.com/Forum

Thank you so much in advance everyone,

Greenberet
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gbsothere on July 12, 2010, 08:24:26 AM
Would you accept the excuse that I have a blinding headache this morning and ache all over for why I've not found this in the search? 

I don't have this mod, myself, but I'm installing it for another user here.  Everything seems fine, but I'd like to ask why the names of the Languages in the pull-down menu are corrupted.  Is this an ftp or a text editor thing?

This was manually installed, due to the user's Package Manager not playing nice.

2.0 RC3, Default

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwhereitestmystuff.com%2Fimages%2FNotRight.jpg&hash=94be9eef12e6fb7ca10d871ab2e37a8be97262c8)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: skillinpker on July 12, 2010, 11:46:07 AM
Quote from: Raoden on May 03, 2009, 05:55:43 PM
I have my forum in a free server (www.zymic.com), and the .mp3 files are disallowed...

Gonna work without uploading the sounds?

Also, I cannot upload he file "./chat/socket/server.rb"

(sorry for bad english xD I'm Argentinian xP)

How'd you even upload to Zymic mine gets a ZLIB error for any modifications.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: supercarp on July 13, 2010, 11:18:42 AM
Hi, everyone.  In reference to this post (http://www.simplemachines.org/community/index.php?topic=257973.msg2196191#msg2196191) by Bernard T. -

Would it be possible to only post updates from one board to the shoutbox?  I'm trying to hack my way around a few things, but this is unfortunatly beyond my abilities.

Can you folks help?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 13, 2010, 11:52:36 AM
Quote from: greenberet on July 12, 2010, 05:35:11 AM
Quote

Alright, I got i figured! ;)
But even before I modiefied anything, the shoutbox was not working. I was not able to shout, the shoutbox was blank so no smileys and stuff.
Funny thing is, that when I first installed this mod (like 5 days ago) everything worked fine!
(I just got this 500 error thing, because I forgot to set the permissions)

But now I have no idea why it is not working again. I tried the .htaccess thing described in the FAQs, but my .htaccess files had the lines added already.

So, what am I supposed to do?  :( Is it possible, that something went wrong while uninstalling?

Hi, I´m having this same problem only with a different Theme (Green Leaf), the default its working fine, I have re edit the permissions to 755 to both folders and nothing happens, also did the .httacces thing and the same....what could be the problem?

Here is the site : http://loqueignoras.com/Forum

Thank you so much in advance everyone,

Greenberet

Do you have a piece of code from another chat program still lingering in your index.template for that theme?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 13, 2010, 11:55:31 AM
Quote from: anidea on July 11, 2010, 10:48:28 AM
Quote from: mrtrc266 on February 17, 2010, 07:04:38 PM
Quote from: gitchuone on February 17, 2010, 01:04:17 AM
I thought SunKing was going to come to my rescue, but maybe I've stumped everyone? No?

I don't want to list all my smileys in the shoutBox and/or chat smiley list, but I want to use all my site loaded smileys in both the chat and the shoutBox.   :P

;D
Unfortunately AJAX Chat Smileys and SMF Smileys aren't integrated.

Here is a detailed explanation on how to get more functionality for the Smileys though, they are somewhat hidden, when you hit the smiley button they will pop up in a container, you were on the right track.
http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

Whatever smileys you use for you forum just add those to the edits for the AJAX Chat Smileys.

You can see it in action here (the "ShoutBox" not the "TalkBox")
http://monsters-mansion.com/testsmf2/ (http://monsters-mansion.com/testsmf2/)

If you like the "TalkBox" (recommended) you can find it here   http://www.empireofthesun.net
Hi!  We are loving AjaxChat, especially the shoutbox, on RC3.

Does this mod of the mod still work?  We'd like the forum smilies included in the shoutbox.  I went to the Monster's Mansion test site, but I don't see the mod in action.  Didn't want to start messing with a working setup without knowing that it works ;) 

Thanks!

Yes it should still work except you don't have to do the edit for the index.template file. Johncccc just got it going, maybe he'll stop by and post if there was anything else needed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 13, 2010, 11:57:12 AM
Quote from: gbsothere on July 12, 2010, 08:24:26 AM
Would you accept the excuse that I have a blinding headache this morning and ache all over for why I've not found this in the search? 

I don't have this mod, myself, but I'm installing it for another user here.  Everything seems fine, but I'd like to ask why the names of the Languages in the pull-down menu are corrupted.  Is this an ftp or a text editor thing?

This was manually installed, due to the user's Package Manager not playing nice.

2.0 RC3, Default


That's very odd indeed, I've never seen that before. Something could got corrupted I would suggest re-uploading that enitre /chat folder overwriting what's there and see what happens.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 13, 2010, 11:59:40 AM
Quote from: supercarp on July 13, 2010, 11:18:42 AM
Hi, everyone.  In reference to this post (http://www.simplemachines.org/community/index.php?topic=257973.msg2196191#msg2196191) by Bernard T. -

Would it be possible to only post updates from one board to the shoutbox?  I'm trying to hack my way around a few things, but this is unfortunatly beyond my abilities.

Can you folks help?

I think I remember seeing this posted somewhere, if i find it I'll post it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: supercarp on July 13, 2010, 12:07:01 PM
thanks, mrtrc266.  I searched pretty extensively before I posted my question here.

If you could find it, that'd be beyond awesome.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 13, 2010, 12:40:30 PM
Quote from: supercarp on July 13, 2010, 12:07:01 PM
thanks, mrtrc266.  I searched pretty extensively before I posted my question here.

If you could find it, that'd be beyond awesome.

This is for SunKings notification tweak but here is something to play around with.....
http://www.simplemachines.org/community/index.php?topic=257973.msg2533797;topicseen#msg2533797
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: supercarp on July 13, 2010, 12:43:20 PM
cool.  i guess the inverse of that if statement would work as well, so I'll give that a whirl and see if I can't bust my forums.

thanks again!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: anidea on July 13, 2010, 01:49:51 PM
Quote from: mrtrc266 on July 13, 2010, 11:55:31 AM
Quote from: anidea on July 11, 2010, 10:48:28 AM
Quote from: mrtrc266 on February 17, 2010, 07:04:38 PM
Quote from: gitchuone on February 17, 2010, 01:04:17 AM
I thought SunKing was going to come to my rescue, but maybe I've stumped everyone? No?

I don't want to list all my smileys in the shoutBox and/or chat smiley list, but I want to use all my site loaded smileys in both the chat and the shoutBox.   :P

;D
Unfortunately AJAX Chat Smileys and SMF Smileys aren't integrated.

Here is a detailed explanation on how to get more functionality for the Smileys though, they are somewhat hidden, when you hit the smiley button they will pop up in a container, you were on the right track.
http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608 (http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608)

Whatever smileys you use for you forum just add those to the edits for the AJAX Chat Smileys.

You can see it in action here (the "ShoutBox" not the "TalkBox")
http://monsters-mansion.com/testsmf2/ (http://monsters-mansion.com/testsmf2/)

If you like the "TalkBox" (recommended) you can find it here   http://www.empireofthesun.net
Hi!  We are loving AjaxChat, especially the shoutbox, on RC3.

Does this mod of the mod still work?  We'd like the forum smilies included in the shoutbox.  I went to the Monster's Mansion test site, but I don't see the mod in action.  Didn't want to start messing with a working setup without knowing that it works ;) 

Thanks!

Yes it should still work except you don't have to do the edit for the index.template file. Johncccc just got it going, maybe he'll stop by and post if there was anything else needed.
Thanks!  I'll keep my fingers crossed that he'll stop by for advice, but maybe give it a go later, just for fun ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 13, 2010, 01:55:51 PM
You should be able to just upload the files provided, do the edit to everything except the index.template. No files have changed in the AJAX Chat in quite some time so it should go fine.
Title: Connection Error 403
Post by: Kobayo on July 13, 2010, 04:00:30 PM
Hi,

i have always the Connection Error 403!

I started a clear new smf a few days ago. Everything works fine.
No problems while the installation process of this chat mod via the pakage manager.

I made all the settings, gave permissions and so on.

When my users and i use the chat, everythings is ok up to this error code.
The error appears very frequently and interrupt the receive of the massages, thats realy annoying.

i cant find any solution to fix this. maybe becourse english is not my motherlanguage, i skimmed over the helpful hint xD

Iam using the SMF 2.0 RC3 and only this two pakages
1. AjaxChat Integration 3.2.1 (modified for SMF 2 RC3)
2. Aeva Media 1.3a

the smf is in my main root dir, the chat in the \root\chat, www . mydomain . de/chat

all files are 755, and my .htaccess in root/chat/.htaccess contains
"
RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
"

thx for ur efforts
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 13, 2010, 04:37:03 PM
Quote from: Kobayo on July 13, 2010, 04:00:30 PM
Hi,

i have always the Connection Error 403!

I started a clear new smf a few days ago. Everything works fine.
No problems while the installation process of this chat mod via the pakage manager.

I made all the settings, gave permissions and so on.

When my users and i use the chat, everythings is ok up to this error code.
The error appears very frequently and interrupt the receive of the massages, thats realy annoying.

i cant find any solution to fix this. maybe becourse english is not my motherlanguage, i skimmed over the helpful hint xD

Iam using the SMF 2.0 RC3 and only this two pakages
1. AjaxChat Integration 3.2.1 (modified for SMF 2 RC3)
2. Aeva Media 1.3a

the smf is in my main root dir, the chat in the \root\chat, www . mydomain . de/chat

all files are 755, and my .htaccess in root/chat/.htaccess contains
"
RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
"

thx for ur efforts

Even though you don't have a portal installed, try this...
http://ajcintegration.co.cc/index.php/topic,52.msg63.html#msg63

If that doesn't work try uninstalling both mods then install AJAX Chat Integration first and see if that fixes it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: greenberet on July 13, 2010, 04:59:23 PM
Quote from: mrtrc266 on July 13, 2010, 11:52:36 AM
Quote from: greenberet on July 12, 2010, 05:35:11 AM
Quote

Alright, I got i figured! ;)
But even before I modiefied anything, the shoutbox was not working. I was not able to shout, the shoutbox was blank so no smileys and stuff.
Funny thing is, that when I first installed this mod (like 5 days ago) everything worked fine!
(I just got this 500 error thing, because I forgot to set the permissions)

But now I have no idea why it is not working again. I tried the .htaccess thing described in the FAQs, but my .htaccess files had the lines added already.

So, what am I supposed to do?  :( Is it possible, that something went wrong while uninstalling?

Hi, I´m having this same problem only with a different Theme (Green Leaf), the default its working fine, I have re edit the permissions to 755 to both folders and nothing happens, also did the .httacces thing and the same....what could be the problem?

Here is the site : http://loqueignoras.com/Forum

Thank you so much in advance everyone,

Greenberet

Do you have a piece of code from another chat program still lingering in your index.template for that theme?

Not really, I removed all of the mods for any chat room that I have previously installed. Why will it give me a blank screen? when I switch back to the default, I see all the messages that I wrote while using my theme.

Would you like to see my index.template.php file?

Thanks a lot!

Greenberet
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kobayo on July 13, 2010, 06:05:19 PM
Quote from: mrtrc266 on July 13, 2010, 04:37:03 PM
Even though you don't have a portal installed, try this...
http://ajcintegration.co.cc/index.php/topic,52.msg63.html#msg63

If that doesn't work try uninstalling both mods then install AJAX Chat Integration first and see if that fixes it.
thx for u fast answer.

after i uninstalled and deletet this two mods, i messed up the cache and redownloaded and installed this chat mod without that aeva thing, but nothing changed! 403 connection error still appears few secounds after logging in the chat.

i also changed the file perm. back to 755 without any result.

to ur other advise, i have no .htaccess in my
Quote(the one in the same directory as your /SSI.php file)
maybe i should have one there but at this point i dont have one. so i changed that line in that file in my chat dir. nothing changed with the error

i also tried out to rename all .htaccess files to check whats happened but also without any .htaccess files, cames still this error.

my smf is free hostet on www . kilu . de
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 13, 2010, 06:10:33 PM
Quote from: Kobayo on July 13, 2010, 06:05:19 PM
Quote from: mrtrc266 on July 13, 2010, 04:37:03 PM
Even though you don't have a portal installed, try this...
http://ajcintegration.co.cc/index.php/topic,52.msg63.html#msg63

If that doesn't work try uninstalling both mods then install AJAX Chat Integration first and see if that fixes it.
thx for u fast answer.

after i uninstalled and deletet this two mods, i messed up the cache and redownloaded and installed this chat mod without that aeva thing, but nothing changed! 403 connection error still appears few secounds after logging in the chat.

i also changed the file perm. back to 755 without any result.

to ur other advise, i have no .htaccess in my
Quote(the one in the same directory as your /SSI.php file)
maybe i should have one there but at this point i dont have one. so i changed that line in that file in my chat dir. nothing changed with the error

i also tried out to rename all .htaccess files to check whats happened but also without any .htaccess files, cames still this error.

my smf is free hostet on www . kilu . de

If you don't have an .htaccess file in that location simply create one using a text editor like Notepad ++ (http://notepad-plus-plus.org/release/5.7) Add that line, save as .htaccess and upload to your server
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 13, 2010, 06:11:40 PM
Quote from: greenberet on July 13, 2010, 04:59:23 PM
Quote from: mrtrc266 on July 13, 2010, 11:52:36 AM
Quote from: greenberet on July 12, 2010, 05:35:11 AM
Quote

Alright, I got i figured! ;)
But even before I modiefied anything, the shoutbox was not working. I was not able to shout, the shoutbox was blank so no smileys and stuff.
Funny thing is, that when I first installed this mod (like 5 days ago) everything worked fine!
(I just got this 500 error thing, because I forgot to set the permissions)

But now I have no idea why it is not working again. I tried the .htaccess thing described in the FAQs, but my .htaccess files had the lines added already.

So, what am I supposed to do?  :( Is it possible, that something went wrong while uninstalling?

Hi, I´m having this same problem only with a different Theme (Green Leaf), the default its working fine, I have re edit the permissions to 755 to both folders and nothing happens, also did the .httacces thing and the same....what could be the problem?

Here is the site : http://loqueignoras.com/Forum

Thank you so much in advance everyone,

Greenberet

Do you have a piece of code from another chat program still lingering in your index.template for that theme?

Not really, I removed all of the mods for any chat room that I have previously installed. Why will it give me a blank screen? when I switch back to the default, I see all the messages that I wrote while using my theme.

Would you like to see my index.template.php file?

Thanks a lot!

Greenberet

Sure, post it here. If it works in the default theme them it must be a theme issue
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kobayo on July 13, 2010, 06:28:28 PM
Quote from: mrtrc266 on July 13, 2010, 06:10:33 PM
If you don't have an .htaccess file in that location simply create one using a text editor like Notepad ++ (http://notepad-plus-plus.org/release/5.7) Add that line, save as .htaccess and upload to your server
ok,
so i created an .htaccess file in my root dir where the ssi.php files is and added that line from ur link



"DirectoryIndex portal.php index.php index.html index.htm"

but nothing changed, still have this 403 error
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 13, 2010, 06:54:27 PM
Quote from: Kobayo on July 13, 2010, 06:28:28 PM
Quote from: mrtrc266 on July 13, 2010, 06:10:33 PM
If you don't have an .htaccess file in that location simply create one using a text editor like Notepad ++ (http://notepad-plus-plus.org/release/5.7) Add that line, save as .htaccess and upload to your server
ok,
so i created an .htaccess file in my root dir where the ssi.php files is and added that line from ur link



"DirectoryIndex portal.php index.php index.html index.htm"

but nothing changed, still have this 403 error

Check you servers error log and see what it says, generally 403 means "Forbidden." Also contact your host to see if they can help...
http://www.cyberciti.biz/faq/apache-403-forbidden-error-and-solution/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aaraon on July 13, 2010, 10:31:53 PM
Hello!
Is there any "bad words blocker" in chat? Unfortunately I am not able to count with the good sense of my users and if there is one of these on there I wish I could use.

Sincerely
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 13, 2010, 11:00:08 PM
Quote from: aaraon on July 13, 2010, 10:31:53 PM
Hello!
Is there any "bad words blocker" in chat? Unfortunately I am not able to count with the good sense of my users and if there is one of these on there I wish I could use.

Sincerely

You can do it, but you need to manually add a replacement word list, I forget which file you need to edit, but it is possible, mrtrc266 will be back and tell you exactly how :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 13, 2010, 11:55:37 PM
Quote from: ♪ JohnCcCcCc ♫ on July 13, 2010, 11:00:08 PM
Quote from: aaraon on July 13, 2010, 10:31:53 PM
Hello!
Is there any "bad words blocker" in chat? Unfortunately I am not able to count with the good sense of my users and if there is one of these on there I wish I could use.

Sincerely

You can do it, but you need to manually add a replacement word list, I forget which file you need to edit, but it is possible, mrtrc266 will be back and tell you exactly how :)

Here ya go....It's kinda fun, you can make the people who like to use foul language look like idiots when you replace the bad words they use LOL
http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Mod_Word_Filter (http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Mod_Word_Filter)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: greenberet on July 14, 2010, 03:16:43 AM
Quote from: mrtrc266 on July 13, 2010, 06:11:40 PM
Quote from: greenberet on July 13, 2010, 04:59:23 PM
Quote from: mrtrc266 on July 13, 2010, 11:52:36 AM
Quote from: greenberet on July 12, 2010, 05:35:11 AM
Quote

Alright, I got i figured! ;)
But even before I modiefied anything, the shoutbox was not working. I was not able to shout, the shoutbox was blank so no smileys and stuff.
Funny thing is, that when I first installed this mod (like 5 days ago) everything worked fine!
(I just got this 500 error thing, because I forgot to set the permissions)

But now I have no idea why it is not working again. I tried the .htaccess thing described in the FAQs, but my .htaccess files had the lines added already.

So, what am I supposed to do?  :( Is it possible, that something went wrong while uninstalling?

Hi, I´m having this same problem only with a different Theme (Green Leaf), the default its working fine, I have re edit the permissions to 755 to both folders and nothing happens, also did the .httacces thing and the same....what could be the problem?

Here is the site : http://loqueignoras.com/Forum

Thank you so much in advance everyone,

Greenberet

Do you have a piece of code from another chat program still lingering in your index.template for that theme?

Not really, I removed all of the mods for any chat room that I have previously installed. Why will it give me a blank screen? when I switch back to the default, I see all the messages that I wrote while using my theme.

Would you like to see my index.template.php file?

Thanks a lot!

Greenberet

Sure, post it here. If it works in the default theme them it must be a theme issue

Hello, here is the file attached, any ideas?

Thanks a lot man for keeping up!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eric B on July 14, 2010, 10:30:18 AM
For anyone interested, I wrote a little script to create an image that tells people how many users are in your chat. I use it as part of my signature on other forums to try to entice new members.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: argyle gargoyle on July 14, 2010, 03:39:15 PM
Hello, I have the ajax chat integration on my forum and everything runs fine. My only problem is when I try to add the new topic and reply notifications they don't work. I've used the code supplied earlier in this topic and still nothing. If anyone can help me it would be appreciated. If you need more information about my setup please reply.

I am using smf 1.1.11, AjaxChat Integration 3.2.1, and all files are on the correct chmod settings.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cheftell on July 14, 2010, 08:59:13 PM
im new here i generaly can figure things out.
when i install ajax intergration and go into features and options to set up there is nothing there just 5 or 6 check boxes with no discription ans no chat button
i am using 1.1.11 with default theme at dirttrackers.com/dirttrackers/index.php any help would be appreciated thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gbsothere on July 14, 2010, 09:15:52 PM
Quote from: cheftell on July 14, 2010, 08:59:13 PM
im new here i generaly can figure things out.
when i install ajax intergration and go into features and options to set up there is nothing there just 5 or 6 check boxes with no discription ans no chat button
i am using 1.1.11 with default theme at dirttrackers.com/dirttrackers/index.php any help would be appreciated thanks.



Did you use the package manager, cheftell, or install it manually?   In Server Settings what is your forum default language set to?

Title: Re: Error_Log file - disable?
Post by: Lou69 on July 14, 2010, 10:50:59 PM
One last call for knowledge before I uninstall Ajax chat, I am afraid that the error file has become too large.

Quote from: Lou69 on July 11, 2010, 10:43:56 PM
Is it possible to disable the error_log file that is found in the \shoutbox directory?

It is 13 meg in size and a bit large. I would like to close the stream and delete the file, after clearing the cause for the errors I intend to reenable the log.

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cheftell on July 14, 2010, 11:40:02 PM
i used the package manager to install it .language set at english utf8
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gbsothere on July 15, 2010, 07:38:23 AM
Quote from: cheftell on July 14, 2010, 11:40:02 PM
i used the package manager to install it .language set at english utf8


cheftell, the package manager would have placed the edits in Modifications.english.php but you need to place those same edits in your Modifications.english-utf8.php file.  This should be the case with your Help.english-utf8.php, as well.  Whenever you use the package manager and your forum language is set to utf8, you'll have to modify your utf8 version of the language files your mod uses.  If it doesn't matter to you whether your forum default language is english or english utf8, then simply change that setting to english and your features and options page should appear normal.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DarkflameQ on July 15, 2010, 04:20:30 PM
Has anyone ever coded an anti spam feature for AjaxChat yet?

I've searched the whole of SMF for a instant chat mod that features anti spam protection and none seem to offer it.

Surely it can't be that hard to code is so a person can only submit a message every (set amount of seconds)?

Or the ability for the bot to temporary ban anyone who posts more than 3 messages in a period of 5 seconds?

My biggest problem with Ajax and other SMF chat programs is people spam with smilies or pointless repeated sentences and theres nothing i can do about it apart from keep deleting their messages :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bahgheera on July 15, 2010, 11:15:30 PM
Have you looked in /chat/lib/config.php? Open that file, search for this:

// Defines the max number of messages a user may send per minute:

$config['maxMessageRate'] = 20;


I wouldn't change it to much lower than that though. You may have to change the same setting in /shoutbox/lib/config.php as well, depending on whether you have your chat and shoutbox integrated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DarkflameQ on July 16, 2010, 02:33:08 AM
Quote from: bahgheera on July 15, 2010, 11:15:30 PM
Have you looked in /chat/lib/config.php? Open that file, search for this:

// Defines the max number of messages a user may send per minute:

$config['maxMessageRate'] = 20;


I wouldn't change it to much lower than that though. You may have to change the same setting in /shoutbox/lib/config.php as well, depending on whether you have your chat and shoutbox integrated.

Thanks, i'll give it a go.

It's a giant shame it isn't maxMessageRate per 5 seconds as a minute is too long of a time to define proper anti spam measurements :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dewed on July 16, 2010, 10:52:49 AM
Time to upgrade I think, but not sure...
In version.txt file I see 0.8.2 SMF   and in the admin panel, list of installed mods I have      3.2.1   

I saw on the ajaxchat site that there is  a version 0.8.3     

So.. is there an upgrade for SMF 1.1.11 ?  and if so.. how do I safely upgrade it




Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: starlightmishi on July 16, 2010, 09:12:44 PM
I hope I'm not missing the solution to this problem on the thread but for certain users the chat forces them to repeatedly log in and out like this...

Quote(2010.07.16 - 20:37:32) ChatBot: xXxRaikohxXx has been logged out (Invalid IP address).
(2010.07.16 - 20:37:35) ChatBot: xXxRaikohxXx logs into the Chat.
(2010.07.16 - 20:37:40) ChatBot: xXxRaikohxXx has been logged out (Invalid IP address).
(2010.07.16 - 20:37:43) ChatBot: xXxRaikohxXx logs into the Chat.

We are running RC3 and the chat was installed on a practically clean forum. What does "Invalid IP address" mean exactly.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 16, 2010, 09:34:58 PM
Quote from: argyle gargoyle on July 14, 2010, 03:39:15 PM
Hello, I have the ajax chat integration on my forum and everything runs fine. My only problem is when I try to add the new topic and reply notifications they don't work. I've used the code supplied earlier in this topic and still nothing. If anyone can help me it would be appreciated. If you need more information about my setup please reply.

I am using smf 1.1.11, AjaxChat Integration 3.2.1, and all files are on the correct chmod settings.

There are 2 notification edits, the one from Sunking is for SMF 2 and one from Bernard is for SMF 1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 16, 2010, 09:36:02 PM
Quote from: Eric B on July 14, 2010, 10:30:18 AM
For anyone interested, I wrote a little script to create an image that tells people how many users are in your chat. I use it as part of my signature on other forums to try to entice new members.

Post the edits and I'll add it to the FAQ's if you like
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 16, 2010, 09:38:19 PM
Quote from: Dewed on July 16, 2010, 10:52:49 AM
Time to upgrade I think, but not sure...
In version.txt file I see 0.8.2 SMF   and in the admin panel, list of installed mods I have      3.2.1   

I saw on the ajaxchat site that there is  a version 0.8.3     

So.. is there an upgrade for SMF 1.1.11 ?  and if so.. how do I safely upgrade it

Take a look at the change log on SourceForge's site, not much changed at all. It was mostly languages added.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 16, 2010, 09:42:14 PM
Quote from: starlightmishi on July 16, 2010, 09:12:44 PM
I hope I'm not missing the solution to this problem on the thread but for certain users the chat forces them to repeatedly log in and out like this...

Quote(2010.07.16 - 20:37:32) ChatBot: xXxRaikohxXx has been logged out (Invalid IP address).
(2010.07.16 - 20:37:35) ChatBot: xXxRaikohxXx logs into the Chat.
(2010.07.16 - 20:37:40) ChatBot: xXxRaikohxXx has been logged out (Invalid IP address).
(2010.07.16 - 20:37:43) ChatBot: xXxRaikohxXx logs into the Chat.

We are running RC3 and the chat was installed on a practically clean forum. What does "Invalid IP address" mean exactly.
http://www.simplemachines.org/community/index.php?topic=257973.msg2642186#msg2642186
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 16, 2010, 09:44:50 PM
Quote from: greenberet on July 14, 2010, 03:16:43 AM
Quote from: mrtrc266 on July 13, 2010, 06:11:40 PM
Sure, post it here. If it works in the default theme them it must be a theme issue

Hello, here is the file attached, any ideas?

Thanks a lot man for keeping up!

For some reason the file downloaded very weird. There are about 5 spaces in between each line and it doesn't work when I try it on my site. Try it again please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: greenberet on July 17, 2010, 08:36:31 AM
Quote from: mrtrc266 on July 16, 2010, 09:44:50 PM
Quote from: greenberet on July 14, 2010, 03:16:43 AM
Quote from: mrtrc266 on July 13, 2010, 06:11:40 PM
Sure, post it here. If it works in the default theme them it must be a theme issue

Hello, here is the file attached, any ideas?

Thanks a lot man for keeping up!

For some reason the file downloaded very weird. There are about 5 spaces in between each line and it doesn't work when I try it on my site. Try it again please.

Thats weird, here you go again,

Thx

Title: Re: Error_Log file - disable?
Post by: Lou69 on July 17, 2010, 10:05:13 AM
Quote from: Lou69 on July 14, 2010, 10:50:59 PM
One last call for knowledge before I uninstall Ajax chat, I am afraid that the error file has become too large.

Quote from: Lou69 on July 11, 2010, 10:43:56 PM
Is it possible to disable the error_log file that is found in the \shoutbox directory?

It is 13 meg in size and a bit large. I would like to close the stream and delete the file, after clearing the cause for the errors I intend to reenable the log.

thanks


Alas, the greatest of mysteries this must be. I have uninstalled the Ajax shout/chat .... the error file have become too large.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wmq8741 on July 17, 2010, 01:25:29 PM
Hi, I just installed ajax chat just now, but the error came out : ChatBot: Error: Connection status: 500, checked member permission ok, how do I change file permission, sorry, I don't know to find and change it, need help, //forum.myestima.com/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 17, 2010, 01:29:30 PM
Quote from: wmq8741 on July 17, 2010, 01:25:29 PM
Hi, I just installed ajax chat just now, but the error came out : ChatBot: Error: Connection status: 500, checked member permission ok, how do I change file permission, sorry, I don't know to find and change it, need help, //forum.myestima.com/index.php

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480.0)
How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477.0)

All info is their :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on July 17, 2010, 02:55:15 PM
how do i fix this
(02:52:58)  ChatBot: Error: Connection status: 500

Im using SMF1.1.1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 17, 2010, 03:01:20 PM
Quote from: m1993 on July 17, 2010, 02:55:15 PM
how do i fix this
(02:52:58)  ChatBot: Error: Connection status: 500

Im using SMF1.1.1


Is it doing that constantly or just at times?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on July 17, 2010, 03:14:26 PM
Quote from: ♪ JohnCcCcCc ♫ on July 17, 2010, 03:01:20 PM
Quote from: m1993 on July 17, 2010, 02:55:15 PM
how do i fix this
(02:52:58)  ChatBot: Error: Connection status: 500

Im using SMF1.1.1


Is it doing that constantly or just at times?

contantly
i cant write anything
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 17, 2010, 03:18:42 PM
How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480.0)
How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477.0)

CHMOD the Directories to 755, its a common issue, if problem persists, post back.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on July 17, 2010, 03:28:41 PM
Quote from: ♪ JohnCcCcCc ♫ on July 17, 2010, 03:18:42 PM
How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480.0)
How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477.0)

CHMOD the Directories to 755, its a common issue, if problem persists, post back.

yea you're good.
thanks :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 17, 2010, 04:01:59 PM
Arrhh you would have figured that out yourself sooner or later anyway its pretty much half of this entire topic lol

Your Welcome
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: starlightmishi on July 17, 2010, 04:13:03 PM
Quote from: mrtrc266 on July 16, 2010, 09:42:14 PM
Quote from: starlightmishi on July 16, 2010, 09:12:44 PM
I hope I'm not missing the solution to this problem on the thread but for certain users the chat forces them to repeatedly log in and out like this...

Quote(2010.07.16 - 20:37:32) ChatBot: xXxRaikohxXx has been logged out (Invalid IP address).
(2010.07.16 - 20:37:35) ChatBot: xXxRaikohxXx logs into the Chat.
(2010.07.16 - 20:37:40) ChatBot: xXxRaikohxXx has been logged out (Invalid IP address).
(2010.07.16 - 20:37:43) ChatBot: xXxRaikohxXx logs into the Chat.

We are running RC3 and the chat was installed on a practically clean forum. What does "Invalid IP address" mean exactly.
http://www.simplemachines.org/community/index.php?topic=257973.msg2642186#msg2642186

Thank you. > _ > Hopefully, that won't be an issue again. I found out that the error happened while someone was using their phone... -_- I don't suppose changing the ipcheck to false would make the chat any more mobile friendly?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on July 17, 2010, 04:13:58 PM
Quote from: ♪ JohnCcCcCc ♫ on July 17, 2010, 04:01:59 PM
Arrhh you would have figured that out yourself sooner or later anyway its pretty much half of this entire topic lol

Your Welcome
ops i fotgot something ... Im the onlyone who can use the chat , wht do i do so my members can use it .. thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 17, 2010, 04:15:56 PM
Go to your permissions area in the Admin area, the permission options are inside :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mwilton13 on July 18, 2010, 02:21:25 AM
Been reading forums all over the place, but can't seem to find a solution or how to go about a solution for the ChatBot: Error: Connection status: 404.  I've seen some info about .htacces files, but don't really understand how to implement it (yes I can access the htacces).  Anyone able to give some detailed instruction or insight?  First time using forum software.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rukdara on July 18, 2010, 03:09:06 AM
Hi all... I'm new here and need some help

I just started a forum with SMF and am running version 1.1.11 (i was previously using a free version of invision board on ipbfree but thats gone now and setting up SMF is considerably different than what I'm use to)

Anyways, I've been trying to set up the AJAX chat and after numerous failed attempts thinking that the installation failed, I finally realized that it didn't, it just didn't install completely or something. I don't know if it makes a difference, but I installed the mod while using a custom theme.

I'm using Siradisiv002 theme, but the problem comes up with the default themes as well and I've changed my chmod and made sure all the changes that were suppose to be done in the various php files were done. But I still come up with blank menus in terms of enabling the chat and also in editing the permissions. As an admin I can view the chat (this was done just by guessing which boxes to click) But as a regular member I cannot view the chat and don't know which permissions to change in order to allow this.

Here are some screencaps of what I get... if someone could tell me how to get the labels for the different check boxes to come up I would really appreciate it or if you could tell me which ones I need to check or add that would be great too... Thanks

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv354%2Fsanonomiko%2Fmenable.jpg&hash=76e62dd289e388698dc18eb5278f4e54da3e5585)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv354%2Fsanonomiko%2Fmpmodify.jpg&hash=c5010c0816ff5a67104bc2cf6363484814acae0a)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv354%2Fsanonomiko%2Fmpmodify1.jpg&hash=7cf761c11bd1d376a5576139e15364b709a37c80)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wmq8741 on July 18, 2010, 10:35:17 AM
Quote from: ♪ JohnCcCcCc ♫ on July 17, 2010, 01:29:30 PM
Quote from: wmq8741 on July 17, 2010, 01:25:29 PM
Hi, I just installed ajax chat just now, but the error came out : ChatBot: Error: Connection status: 500, checked member permission ok, how do I change file permission, sorry, I don't know to find and change it, need help, //forum.myestima.com/index.php

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480.0)
How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477.0)

All info is their :)

had asked  web server to  change file permission to 777 and 755, done, however, I can't access the forum now; it shows : Fatal error: Call to undefined function getchatonlineuserids() in /home/myestima/public_html/forum/Sources/BoardIndex.php on line 352:  what should I do now, pls help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 18, 2010, 12:50:16 PM
Change them to only 755, sometimes 777 causes issues

Make sure to cdmod /chat and /shoutbox and use "recurse into sub directories" too (just make sure all Directories are 755, for this chat, I also make the files 755, but 644 will do for files
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rustyrob on July 18, 2010, 02:58:12 PM
Hi i am still stuck i delleted my smf 2.0 rc3 and installed 1.1.11 then i installed the ajax chat intergration, i still have a 403 forbidden error, i then accessed my htaccess file in both socket and lib and added DirectoryIndex portal.php index.php index.html index.htm but it still did not work, when i releized i was sopposed to add it to the same file as the ssi file i went looking for it. BUT the only ssi file i found is the one in the root directory i added the htaccess file there and when i reloaded my website it asked for a password. if the ssi file is not in the root directory and is somewhere else please tell me its name. also it is option all but i went ahead and here is the .htaccess file from lib and sockett there both the same.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wmq8741 on July 19, 2010, 02:57:21 AM
Quote from: ♪ JohnCcCcCc ♫ on July 18, 2010, 12:50:16 PM
Change them to only 755, sometimes 777 causes issues

Make sure to cdmod /chat and /shoutbox and use "recurse into sub directories" too (just make sure all Directories are 755, for this chat, I also make the files 755, but 644 will do for files

The error has gone, the new issue now is that, the chat box is blank, when i type in the chat box, press enter, nothing come out in the box. What should I do next? Thank you for your help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheKillers on July 19, 2010, 05:42:40 AM
Thanks so much for this mod!
I have a question. Where can change these inscriptions (want to translate into Russian) (indicated by red arrows)?:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg827.imageshack.us%2Fimg827%2F673%2F1907.png&hash=ef026663f9c0120b133f6a0b6d17ff45fa28db4d)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rain Forest on July 19, 2010, 06:05:33 AM
Hmm, hope somebody could help me asap..

The shoutbox is blank also after shouting something..

link: http://solar-xl.nl/forum/index.php?action=forum
username: testaccount
pass: 123456
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: greenberet on July 19, 2010, 07:19:36 AM
Quote from: giovannie_1 on July 19, 2010, 06:05:33 AM
Hmm, hope somebody could help me asap..

The shoutbox is blank also after shouting something..

link: http://solar-xl.nl/forum/index.php?action=forum
username: testaccount
pass: 123456

Same thing here, does it work ok with the default theme?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 19, 2010, 07:25:32 AM
Have you checked the permissions?

Have a look at the FAQs on the first post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rain Forest on July 19, 2010, 07:29:49 AM
Quote from: Brack1 on July 19, 2010, 07:25:32 AM
Have you checked the permissions?

Have a look at the FAQs on the first post.

Yes, permission is on.. Even http://ajcintegration.co.cc/index.php/topic,51.0.html is not working..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 19, 2010, 07:40:17 AM
What do you mean by not working?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rain Forest on July 19, 2010, 07:43:42 AM
Quote from: Brack1 on July 19, 2010, 07:40:17 AM
What do you mean by not working?

mrtrc266 is giving some advise about the Blank White Chat Room (http://ajcintegration.co.cc/index.php/topic,51.0.html). Even after trying his advise it's still blank..

Should I add an attachment ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 19, 2010, 07:50:21 AM
An attchment may help.

Which mods do you have?

Also who is your host?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rain Forest on July 19, 2010, 08:49:23 AM
Quote from: Brack1 on July 19, 2010, 07:50:21 AM
An attchment may help.

Which mods do you have?

Also who is your host?

I have installed the ADK Portal ( http://custom.simplemachines.org/mods/index.php?mod=2255 )

Which files would you like me to add?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Skooper on July 19, 2010, 09:26:50 AM
HI THERE, thanks so much for adding the mod...I have tried installing the mod however "500 Internal Server Error" pops out as follows. Some guidance would be much appreciated.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rustyrob on July 19, 2010, 09:34:50 AM
this is a common error just go here to find out how to fix it http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 it may also have a solution for your other problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rustyrob on July 19, 2010, 09:50:31 AM
Quote from: Rustyrob on July 18, 2010, 02:58:12 PM
Hi i am still stuck i delleted my smf 2.0 rc3 and installed 1.1.11 then i installed the ajax chat intergration, i still have a 403 forbidden error, i then accessed my htaccess file in both socket and lib and added DirectoryIndex portal.php index.php index.html index.htm but it still did not work, when i releized i was sopposed to add it to the same file as the ssi file i went looking for it. BUT the only ssi file i found is the one in the root directory i added the htaccess file there and when i reloaded my website it asked for a password. if the ssi file is not in the root directory and is somewhere else please tell me its name. also it is option all but i went ahead and here is the .htaccess file from lib and sockett there both the same.
hate to say it again, and sound impatent but can someone please help me with my problem everything one needs to know is above. also if someone want to check out my site i go ahead if it well help, it is speakgeektoday.com i made it so guest acounts can access the chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheKillers on July 19, 2010, 10:57:33 AM
It is possible to add somehow in shoutbox the button to switch on/switch off sound?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rustyrob on July 19, 2010, 11:41:34 AM
Quote from: TheKillers on July 19, 2010, 10:57:33 AM
It is possible to add somehow in shoutbox the button to switch on/switch off sound?
yes you must intergrate with chat then go to chat, then chat settings and turn chat sound off, i done it before.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheKillers on July 19, 2010, 12:34:30 PM
Quote from: Rustyrob on July 19, 2010, 11:41:34 AM
It is possible to add somehow in shoutbox the button to switch on/switch off sound?
Thank you. But it is necessary to me, that there was button on this panel:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg827.imageshack.us%2Fimg827%2F3856%2F14828542.png&hash=d05421bca7a9520d547f4653216ce0ef6f44be96)
Just not everyone will be to open pop-up window with chat and to search settings.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rustyrob on July 19, 2010, 12:48:23 PM
I think i might have found out something, is there sopposed to be a .htaccess file in the main chat directory? if so what is it sopposed to say?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rain Forest on July 19, 2010, 12:55:42 PM
Quote from: Rustyrob on July 19, 2010, 12:48:23 PM
I think i might have found out something, is there sopposed to be a .htaccess file in the main chat directory? if so what is it sopposed to say?

RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


I don't have a .htaccess on the main forum directory...

Link: http://solar-xl.nl
user: testaccount
pass: 123456

why can't i shout?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rustyrob on July 19, 2010, 01:04:08 PM
Quote from: giovannie_1 on July 19, 2010, 12:55:42 PM
Quote from: Rustyrob on July 19, 2010, 12:48:23 PM
I think i might have found out something, is there sopposed to be a .htaccess file in the main chat directory? if so what is it sopposed to say?

RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


I don't have a .htaccess on the main forum directory...

Link: http://solar-xl.nl
user: testaccount
pass: 123456

why can't i shout?
try accessing your chat well it let you or does it say something about 403 or 404 sever error?, and thanks for telling me about the file in main chat directory it means etheir you or me have a problem cause you have it and i don't so ether you should not have it or i should, also i tried going to your website, but it does not look like a smf fourm, i could have wrong link or something idk.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rain Forest on July 19, 2010, 01:57:12 PM
Quote from: Rustyrob on July 19, 2010, 01:04:08 PM
Quote from: giovannie_1 on July 19, 2010, 12:55:42 PM
Quote from: Rustyrob on July 19, 2010, 12:48:23 PM
I think i might have found out something, is there sopposed to be a .htaccess file in the main chat directory? if so what is it sopposed to say?

RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


I don't have a .htaccess on the main forum directory...

Link: http://solar-xl.nl
user: testaccount
pass: 123456

why can't i shout?
try accessing your chat well it let you or does it say something about 403 or 404 sever error?, and thanks for telling me about the file in main chat directory it means etheir you or me have a problem cause you have it and i don't so ether you should not have it or i should, also i tried going to your website, but it does not look like a smf fourm, i could have wrong link or something idk.

Well, there should be a .htaccess on the /chat directory. I have the SMF 2.0 RC3 version. http://solar-xl.nl/forum/index.php?action=forum is the forum, you should log in to see the shoutbox :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rustyrob on July 19, 2010, 02:05:12 PM
Quote from: giovannie_1 on July 19, 2010, 01:57:12 PM
Quote from: Rustyrob on July 19, 2010, 01:04:08 PM
Quote from: giovannie_1 on July 19, 2010, 12:55:42 PM
Quote from: Rustyrob on July 19, 2010, 12:48:23 PM
I think i might have found out something, is there sopposed to be a .htaccess file in the main chat directory? if so what is it sopposed to say?

RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


I don't have a .htaccess on the main forum directory...

Link: http://solar-xl.nl
user: testaccount
pass: 123456

why can't i shout?
try accessing your chat well it let you or does it say something about 403 or 404 sever error?, and thanks for telling me about the file in main chat directory it means etheir you or me have a problem cause you have it and i don't so ether you should not have it or i should, also i tried going to your website, but it does not look like a smf fourm, i could have wrong link or something idk.

Well, there should be a .htaccess on the /chat directory. I have the SMF 2.0 RC3 version. http://solar-xl.nl/forum/index.php?action=forum is the forum, you should log in to see the shoutbox :)
thanks now i know for a fact i am sopposed to have a .htaccess file there so i will place one there
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rustyrob on July 19, 2010, 02:44:52 PM
ok giovannie_1 i really don't know much about the chat box so really idk whats going on but if you want something it looks more like its not giving a output rather than not taking a imput, basicly i seems that you can send a message it just want show it, i think this because if you go to chat, it does not show anything, it looks like a hollow chat box, has the theme set up but does not have the items needed to make it work, idk really just my guess, don't take it to seriously.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rain Forest on July 19, 2010, 03:10:08 PM
It's ok. I took Nibogo's Shoutbox. It's working so happy me!  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rustyrob on July 19, 2010, 03:12:36 PM
good i too got another shoutbox but i really like this one, if only i knew what i did wrong, or what is wrong.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheKillers on July 20, 2010, 03:34:24 AM
Quote from: TheKillers on July 19, 2010, 12:34:30 PM
Quote from: Rustyrob on July 19, 2010, 11:41:34 AM
It is possible to add somehow in shoutbox the button to switch on/switch off sound?
Thank you. But it is necessary to me, that there was button on this panel:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg827.imageshack.us%2Fimg827%2F3856%2F14828542.png&hash=d05421bca7a9520d547f4653216ce0ef6f44be96)
Just not everyone will be to open pop-up window with chat and to search settings.
I asked this same question in the Russian official forum http://www.simplemachines.ru. If will be  a solution to this problem, I will write here.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 20, 2010, 01:32:52 PM
Quote from: TheKillers on July 20, 2010, 03:34:24 AM
Quote from: TheKillers on July 19, 2010, 12:34:30 PM
Quote from: Rustyrob on July 19, 2010, 11:41:34 AM
It is possible to add somehow in shoutbox the button to switch on/switch off sound?
Thank you. But it is necessary to me, that there was button on this panel:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg827.imageshack.us%2Fimg827%2F3856%2F14828542.png&hash=d05421bca7a9520d547f4653216ce0ef6f44be96)
Just not everyone will be to open pop-up window with chat and to search settings.
I asked this same question in the Russian official forum http://www.simplemachines.ru. If will be  a solution to this problem, I will write here.

Try this.....
http://www.simplemachines.org/community/index.php?topic=257973.msg2133068#msg2133068
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 20, 2010, 01:35:25 PM
Quote from: mwilton13 on July 18, 2010, 02:21:25 AM
Been reading forums all over the place, but can't seem to find a solution or how to go about a solution for the ChatBot: Error: Connection status: 404.  I've seen some info about .htacces files, but don't really understand how to implement it (yes I can access the htacces).  Anyone able to give some detailed instruction or insight?  First time using forum software.

Give this a shot....
http://ajcintegration.co.cc/index.php/topic,52.0.html
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 20, 2010, 01:41:45 PM
Quote from: Rustyrob on July 19, 2010, 02:44:52 PM
ok giovannie_1 i really don't know much about the chat box so really idk whats going on but if you want something it looks more like its not giving a output rather than not taking a imput, basicly i seems that you can send a message it just want show it, i think this because if you go to chat, it does not show anything, it looks like a hollow chat box, has the theme set up but does not have the items needed to make it work, idk really just my guess, don't take it to seriously.

You still need help with this, if so where are you at and what have you tried? PM me temp admin aco****** and temp FTP access if you like and I'll take a look.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mrtrc266 on July 20, 2010, 01:42:58 PM
For anyone else that still needs help, please repost. I've been extremely busy lately and haven't been able to log in for awhile. Sorry for the inconvenience.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: twentetoo on July 20, 2010, 02:01:33 PM
mrtc266 this seems like a great mod. I like some kept getting the "ChatBot: Error: Connection status: 404" and was not getting a 'chat' tab on my menu. I uninstalled the package and tried reinstalling hoping that might help but now keep receiving this;
1.     Execute Modification     ./Sources/BoardIndex.php     Test successful
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
4.    Execute Modification    ./Sources/ModSettings.php    Test successful
5.    Execute Modification    ./SSI.php    Test successful
6.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
7.    Execute Modification    ./Themes/default/index.template.php    Test failed
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Help.persian.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.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_1.1.X.php

I am still trying to learn all how to do all this stuff as it is way over my head (like trying to figure out what .htaccess is etc.) and don't even want to attempt manual install as I know I will end up screwing everything up... I was hoping just to add this chat feature and not have a shout box so any help would be greatly appreciated! If it helps here is the theme I am using ;
http://custom.simplemachines.org/themes/index.php?lemma=1361 (http://custom.simplemachines.org/themes/index.php?lemma=1361)
Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kojiro on July 20, 2010, 11:15:06 PM
I've got a problem where after a while, the little indicator turns yellow and the chat hangs for that person. It does this to everyone on the chat, on two web-hosts. Permissions and everything are set correctly and I just can't think of what to change. I tried changing the idling numbers higher and that didn't fix it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: samjay on July 21, 2010, 12:49:42 AM
after successfully installing the ajax chat i'm getting the error Error: Failed to load sound file (Flash IO Error).
and its start to download sound file . i fallow the instructions at FAQ with changing the file permissions to 755 and sound file permission to 755 its seems to be not working please help on this matter   :-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheKillers on July 21, 2010, 01:18:46 AM
Quote from: mrtrc266 on July 20, 2010, 01:32:52 PM
Quote from: TheKillers on July 20, 2010, 03:34:24 AM
Quote from: TheKillers on July 19, 2010, 12:34:30 PM
Quote from: Rustyrob on July 19, 2010, 11:41:34 AM
It is possible to add somehow in shoutbox the button to switch on/switch off sound?
Thank you. But it is necessary to me, that there was button on this panel:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg827.imageshack.us%2Fimg827%2F3856%2F14828542.png&hash=d05421bca7a9520d547f4653216ce0ef6f44be96)
Just not everyone will be to open pop-up window with chat and to search settings.
I asked this same question in the Russian official forum http://www.simplemachines.ru. If will be  a solution to this problem, I will write here.

Try this.....
http://www.simplemachines.org/community/index.php?topic=257973.msg2133068#msg2133068
Thanks, I have made all as there is written, but the sound all the same remained. It is necessary to me or the button or at least that the sound has been switched off in shotbox. Just not everyone will be to open pop-up window with chat and to search settings to turn off the sound.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dragon1994 on July 21, 2010, 05:56:38 AM
I recently installed --> http://custom.simplemachines.org/mods/index.php?mod=1319

bt the chat button is only coming in my default theme not in other themes

--> http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=112596;image


nd can any tell me from where i have to edit this
File Edits
./Sources/BoardIndex.php
Find: [Select]
// Track most online statistics?
if (!empty($modSettings['trackStats']))
Add Before: [Select]
$context['num_users_online'] = count($context['users_online']) + $context['num_users_hidden'];

//users in chat
if (!WIRELESS){
$userIDs = chatOnlineUsers();
$context['chat_links'] = array();
if (count($userIDs) > 0){
$query = "SELECT mem.ID_MEMBER, mem.realName, mem.ID_GROUP, mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON
(mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))WHERE ";
foreach ($userIDs as $ID)
$query .= 'ID_MEMBER = '. $ID . ' OR ';
//remove the last OR
$query = substr($query, 0, strlen($query)-3);

$result = db_query($query, __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result))
{
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
if($row['onlineColor'] != ""){
$link.= '" style="color: ' . $row['onlineColor'];
}
$link.= '">' . $row['realName'] . '</a>';
    array_push($context['chat_links'], $link);
}
mysql_free_result($result);
}
//set the flag true for home page
$context['chat_isHome'] = true;
}

./Sources/Load.php
Find: [Select]
$context['template_layers'] = array('main');
Add After: [Select]

array_splice($context['template_layers'], 1, 0, 'shout');

Find: [Select]
// Load each template.... and attempt to load its associated language file.
foreach ($templates as $template)
{
loadTemplate($template);
loadLanguage($template, '', false);
}
Add After: [Select]

loadTemplate('Shout');
loadLanguage('Shout');

Find (at the end of the file): [Select]
?>
Add Before: [Select]

function getShoutBoxContent($mini = false){
global $scripturl, $modSettings;

// Get the URL to the chat directory:
if (!defined('AJAX_CHAT_URL')){
if (empty($modSettings['miniChat']))
define('AJAX_CHAT_URL', str_replace("index.php", "shoutBox/", $scripturl));
else
define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));
}
   
// Get the real path to the chat directory:
if (!defined('AJAX_CHAT_PATH')){
if (empty($modSettings['miniChat']))
define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/shoutBox/');
else
define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/chat/');
}
   
  // Validate the path to the chat:
  if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php')){
// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the shoutbox:
$ajaxChat = new CustomAJAXChatShoutBox();

// Parse and return the shoutbox template content:
return $ajaxChat->getShoutBoxContent($mini); 
  }
return null;
}

function chatOnlineUsers(){
global $db_prefix;

$userIDs = array();
$result = db_query("SELECT userID
FROM ${db_prefix}ajaxchat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)
", __FILE__, __LINE__);
while($row = mysql_fetch_assoc($result)) {
array_push($userIDs, $row['userID']);
}
mysql_free_result($result);
return array_unique($userIDs);
}

./Sources/ManagePermissions.php
Find: [Select]
'profile_upload_avatar' => false,
'profile_remote_avatar' => false,
)
),
'board' => array(
Replace With: [Select]
'profile_upload_avatar' => false,
'profile_remote_avatar' => false,
),
'chat' => array(
'chat_access' => false,
'chat_mod' => false,
'shout_view' => false,
'shout_access' => false,
'shout_mod' => false,
)
),
'board' => array(

./Sources/ModSettings.php
Find: [Select]
array('text', 'default_personalText'),
array('int', 'max_signatureLength'),
Replace With: [Select]
array('text', 'default_personalText'),
array('int', 'max_signatureLength'),
array('check', 'enableShoutBox'),
array('check', 'anyPageShoutBox'),
array('check', 'miniChat'),
array('check', 'chatPopUp'),
array('check', 'enableChatButtonNo'),
array('check', 'enableChatBelowPM'),

./SSI.php
Find (at the end of the file): [Select]
?>
Add Before: [Select]

function ssi_chatOnline($output_method = 'echo')
{
global $db_prefix, $scripturl, $txt;

$users = array();
$userIDs = array();
$result = db_query("SELECT userID
FROM ${db_prefix}ajaxchat_online WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)
", __FILE__, __LINE__);
while($row = mysql_fetch_assoc($result)) {
array_push($userIDs, $row['userID']);
}
mysql_free_result($result);

$users['IDs'] = array_unique($userIDs);
$users['links'] = array();
if (count($users['IDs']) > 0){
$query = "SELECT mem.ID_MEMBER, mem.realName, mem.ID_GROUP, mg.onlineColor, mg.ID_GROUP
FROM {$db_prefix}members AS mem
LEFT JOIN {$db_prefix}membergroups AS mg ON
(mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))WHERE ";
foreach ($users['IDs'] as $ID)
$query .= 'ID_MEMBER = '. $ID . ' OR ';
//remove the last OR
$query = substr($query, 0, strlen($query)-3);

$result = db_query($query, __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($result))
{
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'];
if($row['onlineColor'] != ""){
$link.= '" style="color: ' . $row['onlineColor'];
}
$link.= '">' . $row['realName'] . '</a>';
    array_push($users['links'], $link);
}
mysql_free_result($result);
}
if ($output_method != 'echo')
return $users;
else{
if (count($users['links']) == 0 )
  echo $txt['chat_no_user'];
elseif (count($users['links']) == 1 )
  echo '1' . $txt['chat_aUser']. ':<br />', implode($users['links']);
else
  echo count($users['links']). $txt['chat_users']. ':<br />', implode(', ', $users['links']);
}
}

./Themes/default/BoardIndex.template.php
Find: [Select]
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);
Add After: [Select]

// users in chat
if (isset($context['chat_links'])){
if (count($context['chat_links']) == 0 )
  echo '<br />' . $txt['chat_no_user'];
elseif (count($context['chat_links']) == 1 )
  echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
else
  echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }

./Themes/default/index.template.php
Find: [Select]
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
Replace With: [Select]
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

Find: [Select]
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
Replace With: [Select]
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
if (!empty($modSettings['enableChatBelowPM'])){
$count = count(chatOnlineUsers());
if ($count == 0 )
echo '<br />' . $txt['chat_no_user'];
elseif ($count == 1 )
  echo '<br />  1' . $txt['chat_aUser']. '.<br />';
else
  echo '<br /> ' . $count . $txt['chat_users']. '<br />';
}
echo ' </span>';
}

Find: [Select]
// Otherwise, they might want to [logout]...
Add Before: [Select]

// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';

./Themes/default/languages/Help.english.php
Find (at the end of the file): [Select]
?>
Add Before: [Select]

//Begin AjaxChat Integration
$helptxt['enableShoutBox'] = 'This enables the ajaxchat shoutbox on your index page.';
$helptxt['enableChatButtonNo'] = 'This shows number of chating users on chat button.';
$helptxt['enableChatBelowPM'] = 'This shows online chat users below total time logged in section.';
$helptxt['anyPageShoutBox'] = 'If you enable this ShoutBox will shown in all your forum pages but if disabled ShoutBox will shown only in index page.';
$helptxt['chatPopUp'] = 'If enabled when clicking on chat button chat will loads a new popup page.';
$helptxt['miniChat'] = 'If enabled shoutBox and chat became same thing and users can chat in every page';
//End AjaxChat Integration

./Themes/default/languages/Modifications.english.php
Find (at the end of the file): [Select]
?>
Add Before: [Select]

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Can shout';
$txt['permissionhelp_shout_access'] = 'Give access to write in shout box.';
$txt['permissionname_shout_view'] = 'View shoutBox';
$txt['permissionhelp_shout_view'] = 'Give access to view the shoutBox';
$txt['permissionname_shout_mod'] = 'Moderate shoutBox';
$txt['permissionhelp_shout_mod'] = 'Give access to moderate the shoutBox.';
$txt['permissionname_chat_mod'] = 'Moderate chat';
$txt['permissionhelp_chat_mod'] = 'Give access to moderate the chat.';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration

./Themes/default/languages/Help.persian.php
Find (at the end of the file): [Select]
?>
Add Before: [Select]

//Begin AjaxChat Integration
$helptxt['enableShoutBox'] = 'ا�� گز��� �ک شات باکس در ص�ح� ا�� سا�ت ش�ا اضا�� �� ک�د.';
$helptxt['enableChatButtonNo'] = 'ا�� گز��� تعداد ا�راد ��ج�د در �ت را در ک�ار دک�� �ت ��ا�ش �� د�د.';
$helptxt['enableChatBelowPM'] = 'ا�� گز��� ا�راد آ��ا�� در �ت را ز�ر بخش �دت ز�ا� حض�ر در ا�ج�� ��ا�ش �� د�د.';
$helptxt['anyPageShoutBox'] = 'اگر ا�� گز��� �عا� باشد شات باکس در ت�ا�� ص�حات ��ا�ش داد� �� ش�د در غ�ر ا�� ص�رت ��ط در اص�ح� ا�� ا�ج�� ��ا�ش داد� خ�ا�د شد.';
$helptxt['chatPopUp'] = 'اگر �عا� باشد ز�ا�� ک� بر ر�� دک�� �ت ک��ک �� ک�د� �ت در �ک pupop ��د خ�ا�د شد.';
$helptxt['miniChat'] = 'با �عا� کرد� ا�� گز��� شات باکس ب� �ک ���� �ت تبد�� شد� � �ر دئ س�ست� �ک �حت�ا را ب� ��ا�ش �� گزار�د.';
//End AjaxChat Integration
This operation isn't vital to the installation of this mod.

./Themes/default/languages/Modifications.persian.php
Find (at the end of the file): [Select]
?>
Add Before: [Select]

//Begin AjaxChat Integration
$txt['chat'] = '�ت';
$txt['shoutBox'] = 'شات باکس';
$txt['chat_aUser'] = ' کاربر در �ت �ست';
$txt['chat_users'] = ' کاربر در �ت �ست�د:';
$txt['chat_no_user'] = '��� کاربر� در �ت ��ست.';
$txt['enableShoutBox'] = 'شات باکس �عا� ش�د�';
$txt['enableChatButtonNo'] = 'ش�ارش ا�راد آ��ا�� در دک�� �ت ��ا� ش�د�';
$txt['enableChatBelowPM'] = '��ا�ش ا�راد آ��ا�� در �ت ز�ر بخش �دت ز�ا� حض�ر در ا�ج���';
$txt['anyPageShoutBox'] = 'برا� ��ا�ش شات باکس در ت�ا�� ص�حات ت�ک بز��د � برا� ��ا�ش شات باکس ��ط در ص�ح� ا�� ت�ک را بردار�د:';
$txt['chatPopUp'] = 'ص�ح� �ت در �ک پ�جر� popup ��د ش�د�';
$txt['miniChat'] = '�ک� کرد� شات باکس با �ت�';
$txt['permissionname_chat_access'] = 'دسترس� ب� �ت';
$txt['permissionhelp_chat_access'] = 'با �عا� کرد� ا�� گز��� کاربرا� ا�� گر�� ت�ا�ا�� است�اد� از �ت را خ�ا��د داشت';
$txt['permissionname_shout_access'] = '��شت� در شات باکس';
$txt['permissionhelp_shout_access'] = 'با �عا� کرد� ا�� گز��� کاربرا� ا�� گر�� ت�ا�ا�� ��شت� در شات باکس را خ�ا��د داشت.';
$txt['permissionname_shout_view'] = '�شا�د� شات باکس';
$txt['permissionhelp_shout_view'] = 'با �عا� کرد� ا�� گز��� کاربرا� ا�� گر�� ت�ا�ا�� �شا�د� شات باکس را خ�ا��د داشت.';
$txt['permissionname_shout_mod'] = '�د�ر�ت شاتباکس';
$txt['permissionhelp_shout_mod'] = 'با �عا� کرد� ا�� گز��� کاربرا� ا�� گر�� ت�ا�ا�� �د�ر�ت شات باکس را خ�ا��د داشت.';
$txt['permissionname_chat_mod'] = '�د�ر�ت �ت';
$txt['permissionhelp_chat_mod'] = 'با �عا� کرد� ا�� گز��� کاربرا� ا�� گر�� ت�ا�ا�� �د�ر�ت �ت را خ�ا��د داشت.';
$txt['permissiongroup_chat'] = '�ت';
//End AjaxChat Integration
This operation isn't vital to the installation of this mod.

Code
Tables_1.1.X.php
This file should be able to execute standalone.
File Operations
Move the included file "Shout.template.php" to "./Themes/default".
Move the included file "Shout.english.php" to "./Themes/default/languages".
Move the included file "Shout.persian.php" to "./Themes/default/languages".
Move the included file "chat/css/shoutbox.css" to "./Themes/default".
Move the included directory "chat" to "the root directory".
Move the included directory "chat/css" to "./shoutBox".
Move the included directory "chat/flash" to "./shoutBox".
Move the included directory "chat/img" to "./shoutBox".
Move the included directory "chat/js" to "./shoutBox".
Move the included directory "chat/lib" to "./shoutBox".
Move the included directory "chat/socket" to "./shoutBox".
Move the included directory "chat/sounds" to "./shoutBox".
Move the included directory "chat/src" to "./shoutBox".
Move the included directory "shoutBox" to "the root directory".



--> http://custom.simplemachines.org/mods/index.php?action=parse
nd whts the use of this editing

this editing was given by mod author only

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on July 21, 2010, 01:33:52 PM
Quote from: danielwmoore on September 01, 2009, 08:33:39 PM

I hope those are helpful tips. 

Yes they were!  Thanks for sharing this way back when, I just got around to using pretty URLs, had it break my ajax chat but used your tips here to fix it.  It did want me to copy my root .htaccess file to /chat too.

Easy breezy! http://stangnation.com
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ciggwin on July 21, 2010, 04:39:59 PM
My issue is that only administrators can see the shoutbox or get into the chat. I tried searching this thread as well as double checking all the options but I cannot see what the problem is or what the solution might be. Could someone point me in the right direction?

When a regular user tries to use the 'chat' button in the navbar, they get a message saying "You can't access the chat."

Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on July 21, 2010, 05:46:24 PM
Quote from: mrtrc266 on April 30, 2010, 10:00:25 PM
Quote from: OZZIE on April 29, 2010, 05:06:49 AM
Quote from: mrtrc266 on April 29, 2010, 01:40:36 AM
Quote from: OZZIE on April 28, 2010, 08:38:47 PM
im open to suggestions....

ive tried just about everything in this thread chmod'ing/new htaccess files manual upload etc etc and for the life of me all i keep geting in the shout is   ChatBot: Error: Connection status: 404...im at my wits end and about to give up anyone got any thing else i can try? ???

Is it just the shoutbox or both that chat and the shout?
-------------------------
i get the same error on both mrtrc266

I got it sorted for you, seems to be the Portal you're using.

I Added this to your .htaccess file (the one in the same directory as your /SSI.php file)
DirectoryIndex portal.php index.php index.html index.htm

i have the same problem .. please can you tell me where exactly do i need to add this... thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 21, 2010, 05:52:07 PM
Quote from: ciggwin on July 21, 2010, 04:39:59 PM
My issue is that only administrators can see the shoutbox or get into the chat. I tried searching this thread as well as double checking all the options but I cannot see what the problem is or what the solution might be. Could someone point me in the right direction?

When a regular user tries to use the 'chat' button in the navbar, they get a message saying "You can't access the chat."

Thanks!

Maybe you have not set the permissions for any other membergroups ??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on July 22, 2010, 03:01:58 PM
Quote from: mrtrc266 on April 30, 2010, 10:00:25 PM
Quote from: OZZIE on April 29, 2010, 05:06:49 AM
Quote from: mrtrc266 on April 29, 2010, 01:40:36 AM
Quote from: OZZIE on April 28, 2010, 08:38:47 PM
im open to suggestions....

ive tried just about everything in this thread chmod'ing/new htaccess files manual upload etc etc and for the life of me all i keep geting in the shout is   ChatBot: Error: Connection status: 404...im at my wits end and about to give up anyone got any thing else i can try? ???

Is it just the shoutbox or both that chat and the shout?
-------------------------
i get the same error on both mrtrc266

I got it sorted for you, seems to be the Portal you're using.

I Added this to your .htaccess file (the one in the same directory as your /SSI.php file)
DirectoryIndex portal.php index.php index.html index.htm
Please can anyone tell me where exactly do i need to add this.. Please
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 22, 2010, 03:07:49 PM
Get your .htaccess file,  from the root of your forum, download it, make a backup, open it with notepad++ or some other editor.

add the line into it, then upload it over the the current one.

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480.0)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on July 22, 2010, 04:17:55 PM
Quote from: ♪ JohnCcCcCc ♫ on July 22, 2010, 03:07:49 PM
Get your .htaccess file,  from the root of your forum, download it, make a backup, open it with notepad++ or some other editor.

add the line into it, then upload it over the the current one.

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480.0)

im new on this please can you tell where do i find the file.. i found on in the folder Chat but i did work whe i added ..
Im using the EzPortal thts why the chat is in blank.
thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on July 22, 2010, 05:54:27 PM
Quote from: m1993 on July 22, 2010, 04:17:55 PM
Quote from: ♪ JohnCcCcCc ♫ on July 22, 2010, 03:07:49 PM
Get your .htaccess file,  from the root of your forum, download it, make a backup, open it with notepad++ or some other editor.

add the line into it, then upload it over the the current one.

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480.0)

im new on this please can you tell where do i find the file.. i found on in the folder Chat but i did work whe i added ..
Im using the EzPortal thts why the chat is in blank.
thanks

.htaccess file should be in your http root.  Depending on how your host has you setup and where your forum is it could be anywhere.

If your forum is installed to the root of your domain, you can find it under: /public_html or /httpdocs

If you have your forum installed to a folder under your domain like: www.MySite.com/Forum then it would be in the /public_html/Forum folder for instance.

Hope this helps.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on July 22, 2010, 06:27:14 PM
This is the file it will be like this??

AuthType Basic
AuthName "Forbidden"
AuthUserFile /dev/null
require user nobody
DirectoryIndex portal.php index.php index.html index.htm
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on July 22, 2010, 07:40:06 PM
Quote from: m1993 on July 22, 2010, 06:27:14 PM
This is the file it will be like this??

AuthType Basic
AuthName "Forbidden"
AuthUserFile /dev/null
require user nobody
DirectoryIndex portal.php index.php index.html index.htm

That looks like the base .htaccess file to me.  Make sure it's writable I think it needs to be set to 0755 (CHMOD).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on July 23, 2010, 10:25:05 AM
It doesnt work .. Im using the smf 1.1.1 i installed ezportal...my language is spanish ... wht should i do ..
i found the .htaccess it was a blank file i added DirectoryIndex portal.php index.php index.html index.htm but shoutbox and chat room are blank.. Please can somebody helpme
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mwilton13 on July 23, 2010, 11:40:40 PM
Quote from: mrtrc266 on July 20, 2010, 01:35:25 PM
Quote from: mwilton13 on July 18, 2010, 02:21:25 AM
Been reading forums all over the place, but can't seem to find a solution or how to go about a solution for the ChatBot: Error: Connection status: 404.  I've seen some info about .htacces files, but don't really understand how to implement it (yes I can access the htacces).  Anyone able to give some detailed instruction or insight?  First time using forum software.

Give this a shot....
http://ajcintegration.co.cc/index.php/topic,52.0.html

The problem is, I don't believe I'm using the portal.  If it helps I am trying to set it up on this forum http://www.whereisedwardcullen.com/forum

The chat appears, but I keep getting the 404 error code.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 23, 2010, 11:49:18 PM
Did you chmod the chat and shoutbox directories and all directories and files inside to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: samjay on July 24, 2010, 10:19:49 AM
after successfully installing the ajax chat i'm getting the error' Error: Failed to load sound file (Flash IO Error)".
and its start to download sound file . i fallow the instructions at FAQ with changing the file permissions to 755 and sound file permission to 755 and now it didn't show the massage but it start to download music files with auto starting  IDM. how to solve ths problem ..? please help :( 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 24, 2010, 01:23:59 PM
Quote from: samjay on July 24, 2010, 10:19:49 AM
after successfully installing the ajax chat i'm getting the error' Error: Failed to load sound file (Flash IO Error)".
and its start to download sound file . i fallow the instructions at FAQ with changing the file permissions to 755 and sound file permission to 755 and now it didn't show the massage but it start to download music files with auto starting  IDM. how to solve ths problem ..? please help :( 

I have that Error and I use IDM, their is no way around it, except, tell IDM not to "automatically" start downloading files from your forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: samjay on July 24, 2010, 02:07:48 PM
thanks for u r reply..:)
it will not effect the chats ? or shout box ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 24, 2010, 02:33:01 PM
Quote from: samjay on July 24, 2010, 02:07:48 PM
thanks for u r reply..:)
it will not effect the chats ? or shout box ?

If you disable IDM from automatically downloading files from your forum, it will work on both chat and your shoutbox
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kajaew on July 25, 2010, 03:15:13 AM
I've got this massage once click on Chat

Notice: Undefined index: SCRIPT_FILENAME in C:\inetpub\vhosts\#######.com\httpdocs\chat\index.php on line 14

Warning: main(/lib/custom.php) [function.main]: failed to open stream: No such file or directory in C:\inetpub\vhosts\######.com\httpdocs\chat\index.php on line 17

Fatal error: main() [function.require]: Failed opening required '/lib/custom.php' (include_path='.;./includes;./pear') in C:\inetpub\vhosts\########.com\httpdocs\chat\index.php on line 17

Note: already CMOD to 777

Also my Shout box on index page shown, but no massage on it even just typed and press shout

SMF 2.0RC3 / AjaxChat Integration_3.2.1 RC3_Curve_Friendly installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: samjay on July 25, 2010, 05:19:46 AM
Quote from: ♪ JohnCcCcCc ♫ on July 24, 2010, 02:33:01 PM
Quote from: samjay on July 24, 2010, 02:07:48 PM
thanks for u r reply..:)
it will not effect the chats ? or shout box ?

If you disable IDM from automatically downloading files from your forum, it will work on both chat and your shoutbox

thanks pal! :)  8) ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 25, 2010, 02:22:50 PM
Quote from: kajaew on July 25, 2010, 03:15:13 AM
I've got this massage once click on Chat

Notice: Undefined index: SCRIPT_FILENAME in C:\inetpub\vhosts\#######.com\httpdocs\chat\index.php on line 14

Warning: main(/lib/custom.php) [function.main]: failed to open stream: No such file or directory in C:\inetpub\vhosts\######.com\httpdocs\chat\index.php on line 17

Fatal error: main() [function.require]: Failed opening required '/lib/custom.php' (include_path='.;./includes;./pear') in C:\inetpub\vhosts\########.com\httpdocs\chat\index.php on line 17

Note: already CMOD to 777

Also my Shout box on index page shown, but no massage on it even just typed and press shout

SMF 2.0RC3 / AjaxChat Integration_3.2.1 RC3_Curve_Friendly installed.

CHMOD 777 could be causing the issue (varies on server), try CHMOD 755, then post back :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Midnitelove on July 26, 2010, 03:39:23 PM
Ok I have given up on trying to install on a custom theme. I switched back to a default with a different color. Any reason why this mod still is not working? Do I still have to do a manual install on a default theme also?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on July 26, 2010, 07:48:21 PM
what should i do to get this work for smf 1.1.1 spanish forum...
default theme..
thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 26, 2010, 07:50:16 PM
Quote from: Midnitelove on July 26, 2010, 03:39:23 PM
Ok I have given up on trying to install on a custom theme. I switched back to a default with a different color. Any reason why this mod still is not working? Do I still have to do a manual install on a default theme also?

Were there any errors on install?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 26, 2010, 07:51:56 PM
Quote from: m1993 on July 26, 2010, 07:48:21 PM
what should i do to get this work for smf 1.1.1 spanish forum...
default theme..
thanks

I do hope you mean 1.1.11

There should be no reason as to why the mod shouldn't install as per the norm.

The only exception is the language strings.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on July 26, 2010, 07:55:46 PM
Quote from: Brack1 on July 26, 2010, 07:51:56 PM
Quote from: m1993 on July 26, 2010, 07:48:21 PM
what should i do to get this work for smf 1.1.1 spanish forum...
default theme..
thanks

I do hope you mean 1.1.11

There should be no reason as to why the mod shouldn't install as per the norm.

The only exception is the language strings.

what are the files tht i need to translate ..
thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 26, 2010, 08:00:00 PM
That I am unable to help with.

Sorry
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 26, 2010, 08:23:56 PM
Quote from: m1993 on July 26, 2010, 07:55:46 PM
Quote from: Brack1 on July 26, 2010, 07:51:56 PM
Quote from: m1993 on July 26, 2010, 07:48:21 PM
what should i do to get this work for smf 1.1.1 spanish forum...
default theme..
thanks

I do hope you mean 1.1.11

There should be no reason as to why the mod shouldn't install as per the norm.

The only exception is the language strings.

what are the files tht i need to translate ..
thanks

That would be the Shout.english.php in .Themes/{yourtheme}/languages
For the admin part of the area, same DIR, (default theme) modifications.english.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 26, 2010, 08:25:50 PM
Thanks John
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 26, 2010, 08:29:32 PM
Quote from: Brack1 on July 26, 2010, 08:25:50 PM
Thanks John
No problem! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on July 26, 2010, 08:40:10 PM
thanks i wil tray it >..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: barlitone on July 27, 2010, 11:02:54 PM
I am trying to get this mod to run in a fresh default theme install, and I'm having the oddest problem.  SMF version 1.1.11.

It installs just fine, or so it seems.  There is an extra space in the menu bar where CHAT should be, but the word CHAT does not appear.  When I go to Admin > Features and Options page, there are 6 check boxes below "Maximum allowed characters in signatures" but they do not have labels.  They appear to correspond to the expected check boxes for this mod, though, because by clicking all of them, I can get the shoutbox working just fine.

Here's the crazy part.  I log in to that chat, and my menu bar still doesn't say CHAT but it does include (1) (or however many people are in chat) and creates the list at the bottom... but no label.

So... the mod is quite obviously installed, but in places where there should be buttons or labels, they're absent.

Has anyone ever heard of this before?  I literally have no other mods installed; I want to get this working before we upgrade our forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: excaliburj on July 27, 2010, 11:12:32 PM
Sounds like you're missing language strings, that's all. Might have appended them after the "?>" in the Modifications.english.php file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: barlitone on July 28, 2010, 01:10:42 AM
Quote from: excaliburj on July 27, 2010, 11:12:32 PM
Sounds like you're missing language strings, that's all. Might have appended them after the "?>" in the Modifications.english.php file.

I have this file (and a couple others that were apparently changed when I installed the mod), in my default/languages directory.  Below are the file's contents, which appear normal.  Then again, I'm not exactly a whiz with this stuff, so I may be missing something.



<?php
// Version: 1.1; Modifications

//Begin AjaxChat Integration
$txt['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'Check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'Chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Can shout';
$txt['permissionhelp_shout_access'] = 'Give access to write in shout box.';
$txt['permissionname_shout_view'] = 'View shoutBox';
$txt['permissionhelp_shout_view'] = 'Give access to view the shoutBox';
$txt['permissionname_shout_mod'] = 'Moderate shoutBox';
$txt['permissionhelp_shout_mod'] = 'Give access to moderate the shoutBox.';
$txt['permissionname_chat_mod'] = 'Moderate chat';
$txt['permissionhelp_chat_mod'] = 'Give access to moderate the chat.';
$txt['permissiongroup_chat'] = 'Chat';
//End AjaxChat Integration

?>

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 28, 2010, 01:25:05 AM
That is perfectly normal  ;)

Its more likely that your shout.english.php file is not coded right, or not their, its in ./themes/default/languages

Or it could be you need to clear yours forums cache.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimnix on July 28, 2010, 05:45:39 AM
Hi.

I want to add the shoutbox to a SimplePortal block. How do I do that?

Thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kajaew on July 28, 2010, 07:43:52 AM
Quote from: Community Support Helper Jc on July 25, 2010, 02:22:50 PM
Quote from: kajaew on July 25, 2010, 03:15:13 AM
I've got this massage once click on Chat

Notice: Undefined index: SCRIPT_FILENAME in C:\inetpub\vhosts\#######.com\httpdocs\chat\index.php on line 14

Warning: main(/lib/custom.php) [function.main]: failed to open stream: No such file or directory in C:\inetpub\vhosts\######.com\httpdocs\chat\index.php on line 17

Fatal error: main() [function.require]: Failed opening required '/lib/custom.php' (include_path='.;./includes;./pear') in C:\inetpub\vhosts\########.com\httpdocs\chat\index.php on line 17

Note: already CMOD to 777

Also my Shout box on index page shown, but no massage on it even just typed and press shout

SMF 2.0RC3 / AjaxChat Integration_3.2.1 RC3_Curve_Friendly installed.

CHMOD 777 could be causing the issue (varies on server), try CHMOD 755, then post back :)

Already tried still not success  :'(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 28, 2010, 10:59:21 AM
Have you tried restoring the chat and shoutbox files?

Get the installer from the modsite, extract the contents, re upload the chat and shoutbox directories over the current ones you have, make sure to set the permissions to 755 on your new directories
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 28, 2010, 11:51:46 AM
Quote from: Nimnix on July 28, 2010, 05:45:39 AM
Hi.

I want to add the shoutbox to a SimplePortal block. How do I do that?

Thanks in advance.

There is no need to.

The portal has its own shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 28, 2010, 01:39:57 PM
Quote from: Nimnix on July 28, 2010, 05:45:39 AM
Hi.

I want to add the shoutbox to a SimplePortal block. How do I do that?

Thanks in advance.

If you go to simpleportal.net, they have custom blocks board, you can actually get a block for Ajax chat (this one), place it pretty much anywhere.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kajaew on July 28, 2010, 02:49:54 PM
Quote from: Community Support Helper Jc on July 28, 2010, 10:59:21 AM
Have you tried restoring the chat and shoutbox files?

Get the installer from the modsite, extract the contents, re upload the chat and shoutbox directories over the current ones you have, make sure to set the permissions to 755 on your new directories

2 times on attempted to re upload with 755 still same result. :-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PurpleCrow on July 28, 2010, 03:08:31 PM
Is it possible to remove and/or add smileys? I'm able to replace the current ones but there are a few I would like to just get rid of and a few I would like to add.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 28, 2010, 03:53:56 PM
Quote from: kajaew on July 28, 2010, 02:49:54 PM
Quote from: Community Support Helper Jc on July 28, 2010, 10:59:21 AM
Have you tried restoring the chat and shoutbox files?

Get the installer from the modsite, extract the contents, re upload the chat and shoutbox directories over the current ones you have, make sure to set the permissions to 755 on your new directories

2 times on attempted to re upload with 755 still same result. :-\

Have you tried removing the mod, then reinstalling it again?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 28, 2010, 03:54:37 PM
Quote from: PurpleCrow on July 28, 2010, 03:08:31 PM
Is it possible to remove and/or add smileys? I'm able to replace the current ones but there are a few I would like to just get rid of and a few I would like to add.

Yes, its very possible, and surprisingly easy, let me just find the post for you now


Here is the link
http://www.simplemachines.org/community/index.php?topic=257973.msg2053608#msg2053608
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: barlitone on July 28, 2010, 06:21:26 PM
Quote from: John.c on July 28, 2010, 01:25:05 AM
That is perfectly normal  ;)

Its more likely that your shout.english.php file is not coded right, or not their, its in ./themes/default/languages

Or it could be you need to clear yours forums cache.

The cache is cleared, and I have shout.english.php in ../themes/default/languages; here is how it's coded:


<?php
$txt
['chat'] = 'Chat';
$txt['shoutBox'] = 'ShoutBox';
$txt['chat_aUser'] = ' user is in chat.';
$txt['chat_users'] = ' users are in chat:';
$txt['chat_no_user'] = 'No user is in chat.';
$txt['enableShoutBox'] = 'Enable the ShoutBox?';
$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';
$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';
$txt['anyPageShoutBox'] = 'check for ShoutBox on any page or uncheck for only in index page:';
$txt['chatPopUp'] = 'chat in popup page?';
$txt['miniChat'] = 'Integrate shout box and chat room?';
$txt['permissionname_chat_access'] = 'Access to chat';
$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';
$txt['permissionname_shout_access'] = 'Can shout';
$txt['permissionhelp_shout_access'] = 'Give access to write in shout box.';
$txt['permissionname_shout_view'] = 'View shoutBox';
$txt['permissionhelp_shout_view'] = 'Give access to view the shoutBox';
$txt['permissionname_shout_mod'] = 'Moderate shoutBox';
$txt['permissionhelp_shout_mod'] = 'Give access to moderate the shoutBox.';
$txt['permissionname_chat_mod'] = 'Moderate chat';
$txt['permissionhelp_chat_mod'] = 'Give access to moderate the chat.';
$txt['permissiongroup_chat'] = 'Chat';
$txt['chat_settings_desc'] = 'AjaxChat Settings';
?>



I think this is the right track, because all the functionality seems to be there--only the labels to everything are missing.  What else could cause this?

I uninstalled it and reinstalled it, too, to no avail.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 28, 2010, 06:30:56 PM
well unfortunately, that file appears fine, its unfortunate because we still don't know the issue.

The only thing I can think of is maybe that file needs its permissions changed to 644, give it a shot, it cant hurt, then clear your cache again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: barlitone on July 28, 2010, 06:54:39 PM
Quote from: John.c on July 28, 2010, 06:30:56 PM
well unfortunately, that file appears fine, its unfortunate because we still don't know the issue.

The only thing I can think of is maybe that file needs its permissions changed to 644, give it a shot, it cant hurt, then clear your cache again.

I've got this test forum located in its own directory, away from the directory for the main forum, so I can test things out without messing up the live environment.  This wouldn't affect it, would it?  I don't see how, but then again, this problem won't go away and it's just strange.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 28, 2010, 08:12:41 PM
Quote from: barlitone on July 28, 2010, 06:54:39 PM
Quote from: John.c on July 28, 2010, 06:30:56 PM
well unfortunately, that file appears fine, its unfortunate because we still don't know the issue.

The only thing I can think of is maybe that file needs its permissions changed to 644, give it a shot, it cant hurt, then clear your cache again.

I've got this test forum located in its own directory, away from the directory for the main forum, so I can test things out without messing up the live environment.  This wouldn't affect it, would it?  I don't see how, but then again, this problem won't go away and it's just strange.

Whatever is in your root forum like php.ini and .htaccess will be effective in all directories after, if you have it like ./public_html/forum1 then ./public_html/forum2, they will not effect each other however if you have somethings just in ./public_html/ it could effect both forums. depends on the server kind (suPHP servers do this) however if your on suPHP server whenever a directory has its own php.ini or .htaccess it will override the one in ./public_html , So that's not really an easy question to answer without all your servers details.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kajaew on July 29, 2010, 03:42:23 AM
Quote from: johncccccc on July 28, 2010, 03:53:56 PM
Quote from: kajaew on July 28, 2010, 02:49:54 PM
Quote from: Community Support Helper Jc on July 28, 2010, 10:59:21 AM
Have you tried restoring the chat and shoutbox files?

Get the installer from the modsite, extract the contents, re upload the chat and shoutbox directories over the current ones you have, make sure to set the permissions to 755 on your new directories

2 times on attempted to re upload with 755 still same result. :-\

Have you tried removing the mod, then reinstalling it again?

Also tried any advise...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: The-One-Neo on July 29, 2010, 05:41:12 AM
The Nice Mod! Great work...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimnix on July 29, 2010, 06:12:59 AM
My shouts keep magically disappear. I've seen other sites have history in their AJAX Chat, how do I get that?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 29, 2010, 09:21:02 AM
Have a look here.

http://ajcintegration.co.cc/index.php

Also have you tried the FAQs on the mods first post?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimnix on July 29, 2010, 11:33:58 AM
Is there any way to hide the "Chat" button in the nav menu? I only want the shoutbox to be displayed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 29, 2010, 12:55:18 PM
Quote from: Nimnix on July 29, 2010, 11:33:58 AM
Is there any way to hide the "Chat" button in the nav menu? I only want the shoutbox to be displayed.

I do believe their is an option for that, but if not..

go to Subs.php

Near the bottom almost, you will see the $buttons array

So
Sear the file for
$buttons, one you do that scroll down for a while, you will instantly notice when you then you see the chat button array.look for the;

show => true,
change it to
show => false,
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: barlitone on July 29, 2010, 09:37:01 PM
Quote from: johncccccc on July 28, 2010, 08:12:41 PM
Quote from: barlitone on July 28, 2010, 06:54:39 PM
Quote from: John.c on July 28, 2010, 06:30:56 PM
well unfortunately, that file appears fine, its unfortunate because we still don't know the issue.

The only thing I can think of is maybe that file needs its permissions changed to 644, give it a shot, it cant hurt, then clear your cache again.

I've got this test forum located in its own directory, away from the directory for the main forum, so I can test things out without messing up the live environment.  This wouldn't affect it, would it?  I don't see how, but then again, this problem won't go away and it's just strange.

Whatever is in your root forum like php.ini and .htaccess will be effective in all directories after, if you have it like ./public_html/forum1 then ./public_html/forum2, they will not effect each other however if you have somethings just in ./public_html/ it could effect both forums. depends on the server kind (suPHP servers do this) however if your on suPHP server whenever a directory has its own php.ini or .htaccess it will override the one in ./public_html , So that's not really an easy question to answer without all your servers details.

Maybe from a different angle we should look at this.  (Sorry, I didn't mean to go Yoda there.)

Here's a bit of my index.template.php file, concerning the navigation menu bar.


// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>'; // Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

// The end of tab section.


Here is my menu button.  You can't see it, but the shoutbox is below, and fully functional.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fa.imageshack.us%2Fimg85%2F8606%2Fmenuh.th.gif&hash=45cfd7f1ff6bfe21268cbfe799df2f589a455461) (http://img85.imageshack.us/i/menuh.gif/)
Uploaded with ImageShack.us (http://imageshack.us)

Now I don't speak php.  But, in the code above, where is the software looking for these labels?  They are the only thing that's missing.

My directory tree looks kind of like this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fa.imageshack.us%2Fimg34%2F8251%2Ftreel.th.gif&hash=36cc11376041c53c078488220916d895c792ff84) (http://img34.imageshack.us/i/treel.gif/)
Uploaded with ImageShack.us (http://imageshack.us)

Is it possible that my index.template.php file, which is in the highlighted default sub-directory, is calling for the labels somewhere other than the chat folder that is located in the "newtest2" directory?  The functionality is all there, right down to counting who many people are in chat, and who they are.  ONLY the labels are gone.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fa.imageshack.us%2Fimg641%2F9263%2Fmissing.th.gif&hash=cad29875cdcedce441c74a9429d0472265337e35) (http://img641.imageshack.us/i/missing.gif/)
Uploaded with ImageShack.us (http://imageshack.us)

When it comes right down to it, I suppose I could somehow manually add the word "CHAT" to the menu bar--there certainly is a place there for it.  But if I do this, I'll forever be doing it, on every important template, for every future update, et cetera ad nauseum, and that would defeat the purpose of using the default theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: samjay on July 30, 2010, 05:30:14 AM
how can i install ajax chat in inferno theme ? when i try to install in packages with choosing inferno theme the test is faild but i ignore it and install it . then in my homepage its shows shout box but cant shout and when click on the chat button its shows  Notice: Undefined index: foro in /xxxxxxx/xxxxx/public_html/Sources/Subs.php on line 3913
tell me how to install it ?  :o
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 30, 2010, 09:40:22 AM
You will have to install the file which failed manually.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: excaliburj on July 30, 2010, 10:22:03 AM
Quote from: barlitone on July 29, 2010, 09:37:01 PM
When it comes right down to it, I suppose I could somehow manually add the word "CHAT" to the menu bar--there certainly is a place there for it.  But if I do this, I'll forever be doing it, on every important template, for every future update, et cetera ad nauseum, and that would defeat the purpose of using the default theme.

With everything apparently working and those values confirmed as being in the files you checked, it looks like something is preventing that file from being loaded. Files with text vales in a theme's - or the default - language directory should be loaded at page load time and the 'Modifications.english.php' is (I believe) loaded as standard.

What you might try is explicitly calling the particular load routine just before the code you show above:

Change from:
   // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);


  loadLanguage('Modifications', 'english', false);
   // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: barlitone on July 30, 2010, 01:52:19 PM
ExcaliburJ, thanks!  That works just fine, CHAT appears in the menu and is functional, and it didn't break anything else.  Forget about Excaliburs A through I, you rock.

In Admin > Configuration > Features and Options, I still have a list of checkboxes with no labels, but they match the functions they should have.  I imagine I'll have to add that line of code to at least one other php file, which one would that be?  I'm not sure.

Again, thanks a million.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 30, 2010, 02:02:38 PM
Quote from: barlitone on July 30, 2010, 01:52:19 PM

In Admin > Configuration > Features and Options, I still have a list of checkboxes with no labels, but they match the functions they should have.  I imagine I'll have to add that line of code to at least one other php file, which one would that be?  I'm not sure.

Again, thanks a million.

Can we see a screenshot of the checkboxes please. If they are what I think they are ( did that make sense?) then it can be easily corrected.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: excaliburj on July 30, 2010, 02:09:42 PM
The screenshot is linked in baritone's post a few messgaes back (last link in http://www.simplemachines.org/community/index.php?topic=257973.msg2723448#msg2723448).

Quote from: barlitone on July 30, 2010, 01:52:19 PM
ExcaliburJ, thanks!  That works just fine, CHAT appears in the menu and is functional, and it didn't break anything else.

Actually, I was sort of hoping it WOULDN'T work. That might point to some problem with that Modifications.english.php file after all.

Now the real question is why it isn't loading when and as it should, either for the index used for everything or for the Admin section.

Perhaps someone else might answer whether this could relate to a setting like english-UTF8 instead of just 'english' (and is that the case for your forum)?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mwilton13 on July 30, 2010, 02:15:55 PM
I FINALLY got Ajax Chat working great.  However, I have on serious issue.  The options that show up in the Amin panel in SMF are just checkboxes and don't display what the options are, and for some reason my forum Global Moderators can't chat.  Any help would be greatly appreciated!  The attached screenshots show the persmissions options and the basic options.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 30, 2010, 02:23:17 PM
What language is the forum using?

I had this problem a long time ago.

From what I remember have a look at your modifications english file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: frozenas on July 30, 2010, 02:37:35 PM
Hi. i'm getting this error, when enabling the shoutbox:

Fatal error: require() [function.require]: Failed opening required '/home/*****/public_html/forum/shoutBox/lib/class/AJAXChat.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*******/public_html/forum/shoutBox/lib/classes.php on line 11

It installed okay, no failed tests.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 30, 2010, 02:37:51 PM
Quote from: Brack1 on July 30, 2010, 02:23:17 PM
What language is the forum using?

I had this problem a long time ago.

From what I remember have a look at your modifications english file.

Correct, but in this file

ManagePermissions.english ;)

However, before editing, you may want to clear your cache, just in case its still using the cached files not the new ones.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mwilton13 on July 30, 2010, 03:51:58 PM
Quote from: Brack1 on July 30, 2010, 02:23:17 PM
What language is the forum using?

I had this problem a long time ago.

From what I remember have a look at your modifications english file.

The Forum is in English.  Not sure what I need to modify though.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mwilton13 on July 30, 2010, 03:54:17 PM
Quote from: johncccccc on July 30, 2010, 02:37:51 PM
Quote from: Brack1 on July 30, 2010, 02:23:17 PM
What language is the forum using?

I had this problem a long time ago.

From what I remember have a look at your modifications english file.

Correct, but in this file

ManagePermissions.english ;)

However, before editing, you may want to clear your cache, just in case its still using the cached files not the new ones.

What do I do in terms of modifying it?  I'm completely new to this stuff.  I wouldn't know what to modify or even how to clear the cache.  The only cache I've ever had to clear was my browser.  :-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 30, 2010, 04:02:49 PM
Ajax chat actually uses its own language file

Shout.english.php, everything is in their, it looks like this

<?php

$txt
['chat'] = ' Chat';

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

$txt['chat_aUser'] = ' user is in chat.';

$txt['chat_users'] = ' users are in chat:';

$txt['chat_no_user'] = 'No user is in chat.';

$txt['enableShoutBox'] = 'Enable the ShoutBox?';

$txt['enableChatButtonNo'] = 'Enable online chat users numbering on chat button?';

$txt['enableChatBelowPM'] = 'Show online users below total logged in time section?';

$txt['anyPageShoutBox'] = 'check for ShoutBox on any page or uncheck for only in index page:';

$txt['chatPopUp'] = 'chat in popup page?';

$txt['miniChat'] = 'Integrate shout box and chat room?';

$txt['permissionname_chat_access'] = 'Access to chat';

$txt['permissionhelp_chat_access'] = 'Users can use the chat or can\'t.';

$txt['permissionname_shout_access'] = 'Can shout';

$txt['permissionhelp_shout_access'] = 'Give access to write in shout box.';

$txt['permissionname_shout_view'] = 'View shoutBox';

$txt['permissionhelp_shout_view'] = 'Give access to view the shoutBox';

$txt['permissionname_shout_mod'] = 'Moderate shoutBox';

$txt['permissionhelp_shout_mod'] = 'Give access to moderate the shoutBox.';

$txt['permissionname_chat_mod'] = 'Moderate chat';

$txt['permissionhelp_chat_mod'] = 'Give access to moderate the chat.';

$txt['permissiongroup_chat'] = 'Chat';

$txt['chat_settings_desc'] = 'AjaxChat Settings';

?>



Check your current theme/languages directory for Shout.english.php, if its not their, check default, if its not their, add it to default theme / languages directory.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: barlitone on July 30, 2010, 04:08:41 PM
Quote from: excaliburj on July 30, 2010, 02:09:42 PM
The screenshot is linked in baritone's post a few messgaes back (last link in http://www.simplemachines.org/community/index.php?topic=257973.msg2723448#msg2723448).

Quote from: barlitone on July 30, 2010, 01:52:19 PM
ExcaliburJ, thanks!  That works just fine, CHAT appears in the menu and is functional, and it didn't break anything else.

Actually, I was sort of hoping it WOULDN'T work. That might point to some problem with that Modifications.english.php file after all.

Now the real question is why it isn't loading when and as it should, either for the index used for everything or for the Admin section.

Perhaps someone else might answer whether this could relate to a setting like english-UTF8 instead of just 'english' (and is that the case for your forum)?

How would I check this?  As far as I know it's English.

Oh, and a few posts up, that's what I'm dealing with--checkboxes w/ no labels, for those who haven't seen it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: excaliburj on July 30, 2010, 04:17:45 PM
Quote from: johncccccc on July 30, 2010, 04:02:49 PM
Ajax chat actually uses its own language file

Yes. And it ALSO writes those SAME lines to the Modifications.english.php file. But that file is not always being loaded when it should be (I don't believe that it should EVER be necessary to add mod language strings to a core language file - that's why the Modifications language file exists and is supposed to be loaded all the time).

Quote from: barlitone on July 30, 2010, 04:08:41 PM
How would I check this?  As far as I know it's English.

Well, there's english and then there's english-utf8 and the latter can sometimes cause the language files of the other to be skipped over. It can be checked Under Configuration -> Languages in the ACP.

But you could also try to add that same line I gave you earlier:
  loadLanguage('Modifications', 'english', false);
to another file.

Go to Sources/Admin.php. And find "function AdminMain()". a few lines down you should see:
loadTemplate('Admin', 'admin');

Add the other line just BEFORE that and see if that helps.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: barlitone on July 30, 2010, 04:18:58 PM
Quote from: johncccccc on July 30, 2010, 04:02:49 PM
Ajax chat actually uses its own language file

Shout.english.php, everything is in their, it looks like this
<snip>

Check your current theme/languages directory for Shout.english.php, if its not their, check default, if its not their, add it to default theme / languages directory.

PROBLEM SOLVED!!

What I did was I downloaded Shout.english.php, saved it to my hard drive as Shout.english-utf8.php, then uploaded that file to the ../default/languages directory.

Success!

Then I un-altered my index.template.php file (removing the manual load suggested earlier), and it still works.

Apparently, it's looking for Shout.english.php but my forum uses english-utf8.  Crazy!

But it works.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: excaliburj on July 30, 2010, 04:25:09 PM
Right. I think there's a flag to disable  fallback to english for any other language (which would force the reading of the Modifications.english.php as a fallback to fill those strings).

Apparently you have it disabled.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 30, 2010, 06:46:49 PM
Quote from: barlitone on July 30, 2010, 04:18:58 PM
Quote from: johncccccc on July 30, 2010, 04:02:49 PM
Ajax chat actually uses its own language file

Shout.english.php, everything is in their, it looks like this
<snip>

Check your current theme/languages directory for Shout.english.php, if its not their, check default, if its not their, add it to default theme / languages directory.

PROBLEM SOLVED!!

What I did was I downloaded Shout.english.php, saved it to my hard drive as Shout.english-utf8.php, then uploaded that file to the ../default/languages directory.

Success!

Then I un-altered my index.template.php file (removing the manual load suggested earlier), and it still works.

Apparently, it's looking for Shout.english.php but my forum uses english-utf8.  Crazy!

But it works.
If you had mentioned that you use utf8 before, you would have instantly got that solution posted lol
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: barlitone on July 30, 2010, 07:15:33 PM
Actually, I didn't know that I was using utf8, which I think means "whUt The Frick, 8??".  I still can't find any place in the Admin area that tells me anything about any languages.  I'm using 1.1.11, and I think I've checked everywhere.  It's likely some server thing that I should know how to check but don't. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on July 30, 2010, 07:17:23 PM
lol..

It actually means "8-bit Unicode Transformation Format"

I thought you got this figured out, your sill having issues?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: barlitone on July 30, 2010, 07:46:22 PM
No more issues, I think this is all good to go.

Thanks for all the help, everybody!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: samjay on August 01, 2010, 10:42:10 AM
is there any way i can enable ajax shoutbox in ez portal ? ez portal contain already chat box . but i want to use ajax shout box on it :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ecuusa13 on August 01, 2010, 03:37:01 PM
keep having 404
ChatBot: Error: Connection status: 404

1.     Execute Modification     ./Sources/Admin.php     Test successful
      1.    Add After    ./Sources/Admin.php    Test successful
      2.    Add After    ./Sources/Admin.php    Test successful
*    2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
      1.    Replace    ./Sources/BoardIndex.php    Test successful
      2.    Add After    ./Sources/BoardIndex.php    Test successful
*    3.    Execute Modification    ./Sources/Load.php    Test successful
      1.    Add After    ./Sources/Load.php    Test successful
      2.    Add After    ./Sources/Load.php    Test successful
      3.    Add Before    ./Sources/Load.php    Test successful
*    4.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Add After    ./Sources/ManagePermissions.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add After    ./Sources/ManageSettings.php    Test successful
      3.    Add Before    ./Sources/ManageSettings.php    Test successful
*    6.    Execute Modification    ./SSI.php    Test successful
      1.    Add Before    ./SSI.php    Test successful
*    7.    Execute Modification    ./Sources/Subs.php    Test successful
      1.    Add After    ./Sources/Subs.php    Test successful
      2.    Add After    ./Sources/Subs.php    Test successful
*    8.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
      1.    Add Before    ./Themes/default/BoardIndex.template.php    Test successful
*    9.    Execute Modification    ./Themes/default/index.template.php    Test successful
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Add Before    ./Themes/default/index.template.php    Test successful
*    10.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
      1.    Add Before    ./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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 01, 2010, 03:39:31 PM
Chmod the shoutbox and chat directories.
How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480.0)
How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477.0)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rafli on August 03, 2010, 03:59:44 AM
Hi, I am newbie to SMF. :(
I am sorry if this is not a right question. But now I am using As Theme, and don't know How to change 'Chat' menu so that it blend well with the layout of other menu?.
I believe it'll have something to edit with style in the ./Themes/As_theme/index.template.php, but don't know what to change.
here is the screen capture. kindly need your help. :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsbm-itb.com%2Fforum%2Fmenu.png&hash=2c88d86fedfa9404a1b8b4741e170ce9be52eb1b)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2010, 07:50:22 AM
It is your chat button which needs an edit.

Were there any errors on install?

Which version of smf are you using?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Midnitelove on August 03, 2010, 10:01:16 AM
Quote from: Brack1 on July 26, 2010, 07:50:16 PM
Quote from: Midnitelove on July 26, 2010, 03:39:23 PM
Ok I have given up on trying to install on a custom theme. I switched back to a default with a different color. Any reason why this mod still is not working? Do I still have to do a manual install on a default theme also?

Were there any errors on install?



Sorry for the delay, I'm just now seeing this. I'm sure there  were. I eventually gave up and took Simple portal. Even though it only has a shout box.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2010, 10:20:19 AM
I use this chat mod and simple portal.

I just don't use the shoutbox with the chat mod itself.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Midnitelove on August 03, 2010, 10:34:42 AM
Quote from: Brack1 on August 03, 2010, 10:20:19 AM
I use this chat mod and simple portal.

I just don't use the shoutbox with the chat mod itself.


I would love to have both, however I was told Ajax Chat would be very intense on my server when I  get many people all accessing it at the same time. I'm using version 1.1.11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2010, 10:49:02 AM
Quote from: Midnitelove on August 03, 2010, 10:34:42 AM
Quote from: Brack1 on August 03, 2010, 10:20:19 AM
I use this chat mod and simple portal.

I just don't use the shoutbox with the chat mod itself.


I would love to have both, however I was told Ajax Chat would be very intense on my server when I  get many people all accessing it at the same time. I'm using version 1.1.11

Where did ya get that info from?

Who is your forums host?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on August 03, 2010, 11:12:01 AM
Although where the info is from is irrelevant, it was actually from me.
I put forth that somebody prove me wrong :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2010, 11:23:29 AM
You may be right kiddo (  :o ).

Mind you having said that wouldn't it depend on the number of users?

A lot of forums which use the mod aren't really that big.

One forum I had had no more than 6 members ( no longer exists).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 03, 2010, 11:34:01 AM
Quote from: Sabre™ on August 03, 2010, 11:12:01 AM
Although where the info is from is irrelevant, it was actually from me.
I put forth that somebody prove me wrong :)
about: Ajax Chat, intense server loads...
I'm on a shared server, and they never complain about it however...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on August 03, 2010, 11:37:02 AM
The more people accessing this in particular, the more server runtime is consumed.
Imagine how the server will go, if all the members here were in ajax chat.
Its numbers and performance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 03, 2010, 11:41:25 AM
Ive had like maybe 50 people in it at once before, averages about 10-25 people however, Everybody here, damn, that could make a web host get pissed lol

I guess shared server, with 25-50 people = safe lol
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Midnitelove on August 03, 2010, 11:47:50 AM
Quote from: Sabre™ on August 03, 2010, 11:37:02 AM
The more people accessing this in particular, the more server runtime is consumed.
Imagine how the server will go, if all the members here were in ajax chat.
Its numbers and performance.


Does that include people just viewing and not chatting? Lol! @ you saying prove me wrong...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Midnitelove on August 03, 2010, 11:51:40 AM
Quote from: Brack1 on August 03, 2010, 11:23:29 AM
You may be right kiddo (  :o ).

Mind you having said that wouldn't it depend on the number of users?

A lot of forums which use the mod aren't really that big.


One forum I had had no more than 6 members ( no longer exists).


You're absolutely right. I belong to a forum with over 100,000 members. It's usually about 1500 online at any given time. However days go by without anyone in the chat. And when there is, it's usually no more than 5 at a time.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on August 03, 2010, 12:03:17 PM
@ John lol yeah.

@ Midnight
tbh I haven't touched this mod in awhile, so I forget how often it makes calls to the tables(refresh).
Every 3 - 10 seconds I think.
John and those who use it would best answer that for you.
Our conversation was whether to use ajax chat, or SP chat(roughly), that's when I mentioned SP chat would be less of a resource hog to this.
Since not many use your chat, you can use this without hassle, but imo, SP chat is more than enough :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Midnitelove on August 03, 2010, 12:09:06 PM
Quote from: Sabre™ on August 03, 2010, 12:03:17 PM
@ John lol yeah.

@ Midnight
tbh I haven't touched this mod in awhile, so I forget how often it makes calls to the tables(refresh).
Every 3 - 10 seconds I think.
John and those who use it would best answer that for you.
Our conversation was whether to use ajax chat, or SP chat(roughly), that's when I mentioned SP chat would be less of a resource hog to this.
Since not many use your chat, you can use this without hassle, but imo, SP chat is more than enough :)

Gotcha!  :) The only thing with the shout box is, it can't be private between several members. I've had this request. before I even got sp.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2010, 12:20:55 PM
You can have private chats with this mod though.

What I like is the edits you can make such as the rooms name and the profanity filter.

Even the afk status is handy.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sabre™ on August 03, 2010, 12:35:23 PM
For your site midnight, the private rooms would be of benefit to you. And the bells n whistles would integrate nice.
I also know of a chat room that would be even more private without actually being in the same room, and it will use absolutely zero resource from your host.
SMF already comes with the initiation function as standard.
It's called IM lol ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Midnitelove on August 03, 2010, 05:31:12 PM
Quote from: Sabre™ on August 03, 2010, 12:35:23 PM
For your site midnight, the private rooms would be of benefit to you. And the bells n whistles would integrate nice.
I also know of a chat room that would be even more private without actually being in the same room, and it will use absolutely zero resource from your host.
SMF already comes with the initiation function as standard.
It's called IM lol ;)



I get what you are saying....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Styx_ on August 03, 2010, 08:23:06 PM
Big topic, please forgive me if this has already been resolved (I did search but didn't find anything specific that helped me).

I'm trying to install the AjaxChat on a 2.0 RC3 site which was said to be supported on the mod site. When attempting to install, the core batch of tests all succeed although the tests stop at the text string below (not sure if relevant).

11.   Execute Modification   ./Themes/default/languages/Help.persian.php   Skipping file

From then on I get two failures on the "Core Theme" and 1 on "Inferno", I'm currently using Inferno. On the core theme the two tests that fail are;

./Themes/core/BoardIndex.template.php
./Themes/core/index.template.php

Only the latter test fails on the Inferno theme.

When using the Package Parser I get the error "parseArchive(): No package-info.xml in this mod! Is it corrupted?"

If I continue the install and select the "Chat" option I get a  "500 Internal Server Error" error. I'm assuming this is due to the two tests failing on the core theme, and the latter on Inferno.

I followed the FAQ 500 server errors solutions however still have this problem

Any help and advice would be much appreciated! Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2010, 08:33:51 PM
Quote from: Styx_ on August 03, 2010, 08:23:06 PM
Solved

Rather than delete whatever you posted it would help others if you just added the Solved

edit which you later added.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Styx_ on August 03, 2010, 08:38:59 PM
Turns out it wasn't solved, if I do manage to solve it I will indeed add solved and not edit the whole post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2010, 08:42:16 PM
It just means you have to manually edit the files which state Test Failed

You can do this using the mods parser.

skipping files means just that ie these are not necessary files.

Which language is your forum? which version?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Styx_ on August 03, 2010, 08:49:00 PM
Quote from: Brack1 on August 03, 2010, 08:42:16 PM
It just means you have to manually edit the files which state Test Failed

You can do this using the mods parser.

When using the Package Parser I get the error "parseArchive(): No package-info.xml in this mod! Is it corrupted?"

QuoteWhich language is your forum? which version?

English, version simply says 2.0 RC3 in the inferno/languages folder.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2010, 08:52:27 PM
Which version of the mod did you install?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Styx_ on August 03, 2010, 08:54:00 PM
Quote from: Brack1 on August 03, 2010, 08:52:27 PM
Which version of the mod did you install?

AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip

Thinking of that I'll attempt to install the previous version.

EDIT: the previous version isn't compatible with my version of SMF.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 03, 2010, 08:57:42 PM
No you installed the correct version.

That is over my head unfortunately.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rafli on August 04, 2010, 02:13:09 AM
Quote from: rafli on August 03, 2010, 03:59:44 AM
Hi, I am newbie to SMF. :(
I am sorry if this is not a right question. But now I am using As Theme, and don't know How to change 'Chat' menu so that it blend well with the layout of other menu?.
I believe it'll have something to edit with style in the ./Themes/As_theme/index.template.php, but don't know what to change.
here is the screen capture. kindly need your help. :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsbm-itb.com%2Fforum%2Fmenu.png&hash=2c88d86fedfa9404a1b8b4741e170ce9be52eb1b)

Quote from: Brack1 on August 03, 2010, 07:50:22 AM
It is your chat button which needs an edit.

Were there any errors on install?

Which version of smf are you using?

Hi Brack1, Thanks.
I am using 1.1.11 with As Theme. I result in no error at all, means all function for Shoutbox and Chat were fully working. I am using english-utf8 as a language, and already tweak the modification.english-utf8.php so it can work with this mod.
My problem is just a simple button layout (those 'chat' button) is not look similar with other button.
There is some code I can paste about 'home' button, like this :

// Show the default [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '' : '' , '
<li class="' , $current_action == 'home' ? 'current' : '' , '"><a href="', $scripturl, '">' , $txt[103] , '</a></li>';

And this is 'chat' button code :
Quote
   // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
      echo $context['browser']['is_ie4'] ? '' : '', '
      <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>';   

I am sorry, I am not familiar with html before. But, how to make it looks similar is confusing for me.
Sorry if it bother you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on August 04, 2010, 03:37:51 PM
hey

whether anyone knows how add premission for moderate chat to the THAT (http://www.simplemachines.org/community/index.php?topic=257973.msg2621113#msg2621113) Group. AJAX_CHAT_VIP


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DarkflameQ on August 05, 2010, 10:04:03 AM
Why does my ajaxchat start lagging when the chat room has 10 or more people in it?

My shoutbox doesn't lag at all and i've had up to 20 people in there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: diamondred123 on August 05, 2010, 04:31:33 PM
it doesnt work for me still
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 05, 2010, 05:18:15 PM
Quote from: diamondred123 on August 05, 2010, 04:31:33 PM
it doesnt work for me still

What doesn't

?
Quote from: DarkflameQ on August 05, 2010, 10:04:03 AM
Why does my ajaxchat start lagging when the chat room has 10 or more people in it?

My shoutbox doesn't lag at all and i've had up to 20 people in there.

This may be related to the server.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DarkflameQ on August 06, 2010, 05:30:37 AM
Quote
This may be related to the server.

In what way?

Can you elaborate further?

I've heard that a lot of people of had this problem and that there was suggestions flying about that turning off the media features of Ajaxchat can fix it but i don't see how that was related to my problem for on the day i tested it on the front page, no one was posting images or youtube videos, only chatting.

I love Ajaxchat to bits, just wish it wouldn't lag :\

Can someone confirm that Ajaxchat can have more than 10 people in it without lag?

Also, what's its maximum capacity of people that can be part of one room?

When i used IRC chat rooms 10 years ago, some channels would have over a  100 people in them with no lag, i can't understand why this can't be achieved now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Flash619 on August 06, 2010, 10:33:59 AM
Hey I have a problem, I don't see anything in the shoutbox, but don't have any .htaccess files either :|

I tried making one in the root directory were the SSI.php is and adding

RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

but then I just get non stop connection errors and cant see any posts.
http://www.helimedic.com/
If you want to test it login:
Username: test
Pass: 1245
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 06, 2010, 12:35:08 PM
Quote from: Flash619 on August 06, 2010, 10:33:59 AM
Hey I have a problem, I don't see anything in the shoutbox, but don't have any .htaccess files either :|

I tried making one in the root directory were the SSI.php is and adding

RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

but then I just get non stop connection errors and cant see any posts.
http://www.helimedic.com/
If you want to test it login:
Username: test
Pass: 1245

Before editing anything which could be un-necessary chmod the shoutbox and chat directories to 0755, to rule that out as it seems to be a common issue and easy fix.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Flash619 on August 06, 2010, 02:31:28 PM
I checked both were set to 0755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 06, 2010, 04:27:08 PM
What about the files inside, what is the permissions set to for those?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Flash619 on August 06, 2010, 04:35:47 PM
many of the files themselves are 0666

When I try changing it with a ftp client I receive the following
SITE CHMOD 755 AJAXChatDataBase.php
Response: 550 Could not change perms on AJAXChatDataBase.php: Operation not permitted
Status: Set permissions of '/public_html/chat/lib/class/AJAXChat.php' to '755'
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 06, 2010, 04:40:06 PM
Quote from: Flash619 on August 06, 2010, 04:35:47 PM
many of the files themselves are 0666

When I try changing it with a ftp client I receive the following
SITE CHMOD 755 AJAXChatDataBase.php
Response: 550 Could not change perms on AJAXChatDataBase.php: Operation not permitted
Status: Set permissions of '/public_html/chat/lib/class/AJAXChat.php' to '755'


Change the files to 0644
Change the Directories (inc Sub Directories) to 0755

Do it from your hosting cpanel if you cannot do it from your client.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Flash619 on August 06, 2010, 05:03:21 PM
It is not letting me change the permissions of the files.

But currently the files that have 0666 just have more permissions than the other 0644 files, directories are at 0755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 06, 2010, 05:30:35 PM
You will need to ask your host to give you ownership of the files then, if you cannot change your own file permissions, then you don't own them, contact your host.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Flash619 on August 06, 2010, 09:52:18 PM
Could it really be that they have two many permissions tho? Or could it be the ownership being the prob.

I probably don't have ownership because it was smf that put the files there not me.

I will do my best to reclaim ownership

I have changed all file privileges, nothing changed :|

Don't think google could be interfering do you?


<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'XX-XXXXXXXXX-X']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: linphoo on August 06, 2010, 11:15:47 PM
i want to delete name lists which is the name lists of board from channel? and bring out the membername not realname,because my board is thai language,ajax chat can't bring out thai name,so i want to set it from realName into memberName? help me
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: redbaby92 on August 06, 2010, 11:33:42 PM
It ruined my forum :(

look www.rainbowmods.net i uninstalled it and it just broke it.

Is anyone able to fix it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 06, 2010, 11:35:00 PM
Quote from: Flash619 on August 06, 2010, 09:52:18 PM
Could it really be that they have two many permissions tho? Or could it be the ownership being the prob.

I probably don't have ownership because it was smf that put the files there not me.

I will do my best to reclaim ownership

I have changed all file privileges, nothing changed :|

Don't think google could be interfering do you?


<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'XX-XXXXXXXXX-X']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>


I only know a few common problems and solutions with the mod, I'm just  a volunteer helping, so don't expect my answers to solve everything or anything lol

Are their any .htaccess files in the shoutbox and chat directories?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 06, 2010, 11:37:14 PM
Quote from: redbaby92 on August 06, 2010, 11:33:42 PM
It ruined my forum :(

look www.rainbowmods.net i uninstalled it and it just broke it.

Is anyone able to fix it?

I tried to see your forum, but it does not even tell me which file contains the parse error.

Its a guess, but attach your index.template.php, I will check it that's causing the issue.

Please include the following info in your next post.

Theme
SMF version
Last time forum was working
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: linphoo on August 07, 2010, 01:19:38 AM
i wanna to draw out memberName not realName at the name lists in the chatroom,because my board smf is Thai language,if realName is not working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Flash619 on August 07, 2010, 10:24:05 AM
Lol It's ok.

Yea there are some .htaccess, and one suddenly appeared in the home directory now with the following in it

RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


This is also in all of the .htaccess files in those directories.

Tried reinstalling the mod, just for kicks, but now when I try to install it, it either says "The MySql server has gone away" and when it tells me that, afterwords, when I try to click apply mod, it takes me to a blank screen. >_____>



Got past that and now it encounters a even weirder error, the mod will install, after install nothing from it shows up "not even options for it" when I go to uninstall it almost says every test was unsuccessful. I click continue anyway, and it says it uninstalled.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: redbaby92 on August 07, 2010, 01:55:24 PM
I dont think its the index.template.php considering it ruined all the themes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 07, 2010, 02:04:32 PM
I was about to ask that, I tried getting in on a different them ?theme=1 and 2 and 3, usually gets you in when there are template parse errors.

It didn't get me in however, I just found that out, so its likely in Sources, you could do this;

Look for the files with "~" at the end, their recently modified, they are backups, you can use those to replace other ones that you recently edited.

Get any files that were recently edit, shoutbox files, then download them as backup, then download the created backups, files with the "~" at the end, rename them (remove the ~ from them) then place them in place of the files on the server, that should bring your forum back, then we can make sure uninstall goes well this time round.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Flash619 on August 07, 2010, 06:25:58 PM
Well actually what happened was I uninstalled it, that worked, I went to reinstall, after install nothing changed like it was never installed, tried uninstalling, and then it was giving me the test fail errors.

And this is getting annoying when I try to install it, sometimes this pops up
Database Error: MySQL server has gone away
File: /home/a7320022/public_html/Sources/Subs-Package.php
Line: 2008Database Error: MySQL server has gone away
File: /home/a7320022/public_html/Sources/Load.php
Line: 2024


To get past the blank page error when you hit apply mod you also need to del the temp folder in packages, and reset file permissions
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 07, 2010, 06:45:28 PM
So, with that I'm assuming that your forum is usable now at least?

You just having issues with the package manager?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Flash619 on August 07, 2010, 07:40:41 PM
My forum is usable

but it is no longer letting me try to install the package, either it will re direct me to a blank page

or it will try to install and tell me

Database Error: MySQL server has gone away
File: /home/a7320022/public_html/Sources/Subs-Package.php
Line: 2008Database Error: MySQL server has gone away
File: /home/a7320022/public_html/Sources/Load.php
Line: 2024


OR it will install, but the install does not really take affect, the package manager says it's installed but there are no changes to my board at all

This seemed like a nice mod.... but why so many problems with my install >_______________>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 07, 2010, 07:46:35 PM
Well, This mod has got thousands of downloads and works, its not the mod, not alone at least.

Which other mods do you have installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Flash619 on August 07, 2010, 08:29:19 PM
AJAX Instant Quick Reply      1.0.3   
Guest Registration Notification    1.1
reCAPTCHA for SMF    0.9.7    
Back to Top    1.1

OK somehow, I got it to reinstall and now it just sits there giving me a bunch of connection errors, and not showing any shouts.

And whatever I do i'm not uninstalling it again, because who knows if I will be able to reinstall it again o.o

Just added guest permissions for the shoutbox so you can see

http://www.helimedic.com

With all the glitches I'm experiencing I'm thinking while I'm at it, why don't I just re install completely with RC2, any opinions?

Now, not to get off topic, but also have a glitch were in the "To:" field on the private messages If I start to type a name it instantly replaces it with
"<script type="text/javascript">"

>_> I did like it for the theme tho...... so if I can stay with the old version I will.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 07, 2010, 10:30:34 PM
I tried to access your chat, it didn't work, are you sure the directories are their, and are set to 755, 100% ( re check them anyway ) :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Flash619 on August 08, 2010, 09:36:34 AM
I'll manually copy in the files and then re do the permissions :)

Yep everything is there, with proper permissions, still get the same problem.

It may be a coincidence but SMFPacks shoutbox doesn't work either, it just gives me a blank shoutbox. Thus why I think there is some other error somewhere causing these glitches.

Have an idea. Restart the board, make the first thing i install the shoutbox, then see what messes it up later ;)

I think it may also be my free host that's the prob, so If you know any free hosts that have the proper database connections/ php requirements....... Lets just say, my third smf forum with this host is just like the last two, disconnection problems, shoutbox's not working etc...


Database Error: MySQL server has gone away
File: /home/a7320022/public_html/Sources/Subs-Package.php
Line: 2008


and on a fresh install to, it's official my host sucks way to bad to host a proper board on >_>

kk now before I can do anything, I need to wait 24 hours for the DNS to change >_>

i'm giving freeostia's chocolate plan a shot, I have a website with one of there yearly paid plans, so I know it when I say chocolate is missing some stuff, but nothing that should impair the board from working properly.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 08, 2010, 11:41:46 AM
Sometimes moving to a new host is they way to go lol

Good luck :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 08, 2010, 11:55:47 AM
Hey guys! I really want to add the topic/repy notify feature to my ajax shoutbox and I am having some trouble.

"The dateTime field of ajax_chat_messages needs the type changed to timestamp."

Can someone please explain this statement for me. Other than that I get an error when I go to start new topic. I took the mods out for now and I would be willing to upload my post.php if anyone wants to look at it. But I think the issue is that I am changing datetime to timestamp. Maybe I'm wrong. I just don't know where to find ajax_chat_messages. Thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: timmytimmy on August 08, 2010, 03:29:42 PM
i can't seem to get the chat "welcome message" to work.  i edited the custom.js file just as the FAQ explains, but nothing appears after users log in.

i am running 1.1.11 if that helps any.

thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: darkblack323 on August 08, 2010, 05:30:29 PM
hi ! please help me ...

my index.temple.php is here. my files there arent

// But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
      echo '            </span>';
   }

code. how can ı do ?

ı m using 1.1.11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Flash619 on August 08, 2010, 08:36:28 PM
Turns out a new host is just what I needed! Thank you all for your help :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 10, 2010, 02:27:09 PM
Quote from: greg04 on August 08, 2010, 03:29:42 PM
i can't seem to get the chat "welcome message" to work.  i edited the custom.js file just as the FAQ explains, but nothing appears after users log in.

i am running 1.1.11 if that helps any.

thanks!

Anyone? Anyone?  Bueller?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eng_HK on August 12, 2010, 02:17:56 AM
Is possible to have only the shout and "disable" the chat button entry on the menu?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 12, 2010, 09:35:54 AM
Quote from: eng_HK on August 12, 2010, 02:17:56 AM
Is possible to have only the shout and "disable" the chat button entry on the menu?


I'm pretty sure it is :)
Unless its the other way round, you can disable shoutbox, but chat button remains, a simple manual edit can stop the button showing though, the edit would depend on which SMF version you use.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eng_HK on August 12, 2010, 12:10:39 PM
I'm using the 2.0RC3.

it will be greate have it as an option, if it's possible, or some istruction to do it..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 12, 2010, 12:19:41 PM
Quote from: tRu3_sKiTz0 on August 10, 2010, 02:27:09 PM
Quote from: greg04 on August 08, 2010, 03:29:42 PM
i can't seem to get the chat "welcome message" to work.  i edited the custom.js file just as the FAQ explains, but nothing appears after users log in.

i am running 1.1.11 if that helps any.

thanks!

Anyone? Anyone?  Bueller?

Someone please gimme a hand with this. I see posts being replied to and mine seems to be overlooked. I also need to know how to disable the feature that removes posts in the shoutbox after a day. I NEED them to be permanent and I NEED to get the "notify new posts and replies" feature to work. PLEASE HELP. This is very important to me and my forum! Thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: timmytimmy on August 12, 2010, 04:25:18 PM
how would i go about getting the "Chat" link to open in a new tab, but NOT a popup?  if you uncheck the pop-up box in the preferences and users click the link, it just replaces the main SMF forum window.

thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 12, 2010, 04:36:36 PM
Quote from: eng_HK on August 12, 2010, 12:10:39 PM
I'm using the 2.0RC3.

it will be greate have it as an option, if it's possible, or some istruction to do it..

Attach your Subs.php file from Sources

So you want the chat button disabled, because this will do that and only that, chat will still be accessible if you manually go to it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: truongpq on August 13, 2010, 11:24:24 PM
Dear all,
I ussing SMF2.0 RC3,
I installed mod  AjaxChat Integration (latest version 3.2.1),
But when running chat link the system show erro below:

QuoteInternal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
My forum:
Quotevuonmuom.com/diendan/index.php

Please hepl me check it.

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 13, 2010, 11:49:31 PM
How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477.0)

Set the chat and shoutbox directories to 755, see if that changes anything, its a common issue and that's a common fix
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: truongpq on August 14, 2010, 02:39:12 PM
I use SMF2.0 RC3
I have complated install Ajax chat ver3.2.1,
When running Chat box, i have problem blow:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fvuonmuom.com%2Fdiendan%2FImages%2Ferro_ajaxchat.JPG&hash=3987379f093dddf5f9cb984e8ade6f52173e01fd)

Please hepl me config it.

Thanks all.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 14, 2010, 02:44:08 PM
How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477.0)

Chmod the chat and shoutbox directories to 0755, sub directories and files too.

Common issue, easy fix. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nCogNeato on August 15, 2010, 12:21:28 PM
Quote from: greg04 on August 12, 2010, 04:25:18 PM
how would i go about getting the "Chat" link to open in a new tab, but NOT a popup?  if you uncheck the pop-up box in the preferences and users click the link, it just replaces the main SMF forum window.

thanks!

I'm also having pop-up issues.

Using SMF1.1.11.  I've managed to install Ajax and it's working great.  However, the "CHAT" button always opens in a new window.  Toggling the "chat in popup page?" Admin option has no effect.  Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Riu Erren on August 15, 2010, 10:50:42 PM
Hello, I'm having a problem with Ajax chat for SMF 2.0 RC3.  It seems to timeout members every sixty minutes or so. Even if there still on the chat page and being very active.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on August 16, 2010, 03:56:59 PM
is there a way for the members in the shoutbox to have the colors of their membergroups show
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: linette97 on August 16, 2010, 04:36:16 PM
Quote from: tRu3_sKiTz0 on August 08, 2010, 11:55:47 AM
Hey guys! I really want to add the topic/repy notify feature to my ajax shoutbox and I am having some trouble.

"The dateTime field of ajax_chat_messages needs the type changed to timestamp."

Can someone please explain this statement for me. Other than that I get an error when I go to start new topic. I took the mods out for now and I would be willing to upload my post.php if anyone wants to look at it. But I think the issue is that I am changing datetime to timestamp. Maybe I'm wrong. I just don't know where to find ajax_chat_messages. Thanks in advance.

It took me forever to figure this out myself... I searched the topic & found this reply Hope it helps!! It would be nice if they included this onto the original post about Post Notifications, I have been trying to figure this out for months and I posted a question just like you, but don't think anyone responded & if they did I certainly gave up after awhile 

WHERE TO FIND  "The dateTime field of ajax_chat_messages needs the type changed to timestamp" FOR Post Notifications
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fbxmedialinks.com%2FSmileys%2FBxSmileys%2Fpointer.gif&hash=ef064d9b7ac581cbb1e2fcb0e42e4de63f58c1b5)
QuoteYou need to goto you your database using phpMyAdmin and change the ajaxchat_messages table from DATETIME to TIMESTAMP"
When you see the table, click on it, then hit the lil' pencil image to edit it, the you'll see the pull down menu to change it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 16, 2010, 11:28:58 PM
Hey thank you so much. I am currently in myadmin and I can see the table but I cant edit the field. I don't see a pencil on the table list.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lazylivin on August 17, 2010, 12:54:12 AM
Good evening, I have what I believe to be a unique situation. In Ajax Chat members can ban/kick other members. They are not moderators. Has anyone seen this or have a recommendation to resolve?

Forum version: SMF 1.1.11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on August 17, 2010, 01:00:09 AM
you have to go into permissions for each member group and uncheck moderate chat for the members you do not want to be able to moderate

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nCogNeato on August 17, 2010, 01:11:52 AM
Quote from: sattninja on August 17, 2010, 01:00:09 AM
you have to go into permissions for each member group and uncheck moderate chat for the members you do not want to be able to moderate

Don't forget to crosscheck the default "Regular Members" settings with those of subset member groups.  "Regular Members" settings will override specific subset group settings.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lazylivin on August 17, 2010, 01:28:18 AM
Wow thank you for the quick responses.

I checked all the settings very throughly before posting here and the only options for chat

Features and Options
-Enable the ShoutBox? - UnChecked
-Enable online chat users numbering on chat button? - Checked

Manage Permissions->Club Members
-Access to chat - Checked
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Red-devil on August 17, 2010, 07:33:37 AM
It there a way or is this a bug to stop it removing the chats from forum shout box seems to be doing this every day.

I did a search for prune but only refers to the popout chat from what ive read and the settings indicated are as it said in the posts 365 days.

Im running this on 2.0 RC3. with ajax instant reply and  simple ads mods are the only other things installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Red-devil on August 17, 2010, 07:51:42 AM
Quote from: Red-devil on August 17, 2010, 07:33:37 AM
It there a way or is this a bug to stop it removing the chats from forum shout box seems to be doing this every day.

I did a search for prune but only refers to the popout chat from what ive read and the settings indicated are as it said in the posts 365 days.

Im running this on 2.0 RC3. with ajax instant reply and  simple ads mods are the only other things installed.

You need to look in members/permissions click modify for the group)s) to be changed under general tab
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 17, 2010, 10:46:29 AM
@linette97 I finally got the timestamp thing settled, thanks for your help. I still get an error when I post though and I can't tell how to get this fixed. I will try it again and upload the actual error and maybe even upload my post.php file. Hopefully we can get this squared away. I currently have the shoutbox disabled. I only want to use the shoutbox if I can get this tweak to work because I simply want to use it to notify new posts because people don't really come to my forum to chat anyway.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sattninja on August 17, 2010, 12:14:23 PM
i found the instructions under FAQ but i am a lil lost it seems like alot to add and i am not really understanding is is that hard to color the membersgroups
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nCogNeato on August 17, 2010, 03:27:05 PM
SMF 1.1.11

I had some issues getting the CHAT button to display the (usercount).

/Sources/Load.php
and
/Themes/default/index.template.php

seemed to always be the root of my problems, so I went in and manually edited them.  The (usercount) now displays fine, but now the actual CHAT button only appears while logged out of the forum.  As soon as I log into the forum, the CHAT button disappears but the (usercount) remains which is weird.

Any suggestions are appreciated.  I'm hoping someone has experienced this before, but from my search results it doesn't appear so.  If needed I can attach a copy of my Load.php and index.template.php files when I return home tonight.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lazylivin on August 17, 2010, 06:49:59 PM
Quote from: lazylivin on August 17, 2010, 12:54:12 AM
Good evening, I have what I believe to be a unique situation. In Ajax Chat members can ban/kick other members. They are not moderators. Has anyone seen this or have a recommendation to resolve?

Forum version: SMF 1.1.11
Quote from: sattninja on August 17, 2010, 01:00:09 AM
you have to go into permissions for each member group and uncheck moderate chat for the members you do not want to be able to moderate
Quote from: nCogNeato on August 17, 2010, 01:11:52 AM
Quote from: sattninja on August 17, 2010, 01:00:09 AM
you have to go into permissions for each member group and uncheck moderate chat for the members you do not want to be able to moderate

Don't forget to crosscheck the default "Regular Members" settings with those of subset member groups.  "Regular Members" settings will override specific subset group settings.



Quote from: lazylivin on August 17, 2010, 01:28:18 AM
Wow thank you for the quick responses.

I checked all the settings very throughly before posting here and the only options for chat

Features and Options
-Enable the ShoutBox? - UnChecked
-Enable online chat users numbering on chat button? - Checked

Manage Permissions->Club Members
-Access to chat - Checked

Anyone else able to help with this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nCogNeato on August 17, 2010, 07:28:38 PM
Quote from: nCogNeato on August 17, 2010, 03:27:05 PM
SMF 1.1.11

I had some issues getting the CHAT button to display the (usercount).

/Sources/Load.php
and
/Themes/default/index.template.php

seemed to always be the root of my problems, so I went in and manually edited them.  The (usercount) now displays fine, but now the actual CHAT button only appears while logged out of the forum.  As soon as I log into the forum, the CHAT button disappears but the (usercount) remains which is weird.

Any suggestions are appreciated.  I'm hoping someone has experienced this before, but from my search results it doesn't appear so.  If needed I can attach a copy of my Load.php and index.template.php files when I return home tonight.

Files attached.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on August 17, 2010, 07:41:43 PM
Red-devil.... I believe what you are asking is how to keep the chats visible longer?

If so, then go to Cpanel, the chat and shout directory, then Lib and look for config.php

There are many settings in this file, as always, be cautious as to what you select.



EDIT :  sorry, directed to Red-devil and not lazylivin ... :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lazylivin on August 17, 2010, 07:45:42 PM
Thanks for the response but not what I was asking. General Members can kick/ban other members from chat. It is causing a problem. There is no option to check/uncheck "Moderate Chat" as indicated by sattninja
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 17, 2010, 07:49:45 PM
Quote from: lazylivin on August 17, 2010, 07:45:42 PM
Thanks for the response but not what I was asking. General Members can kick/ban other members from chat. It is causing a problem. There is no option to check/uncheck "Moderate Chat" as indicated by sattninja

Please list the SMF Version your using :)
Did any files fail during the installation, like ManagePermissions.php maybe...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: almogz on August 18, 2010, 01:03:13 AM
Few problems you might be able to help me PLEASE!  :'( :D

1) How to keep the chat messages longer?
*What to change and in what code part? please ASAP.

2) How to make that in the shoutbox it will show the latest posts / replies of the day?

3) Is it possible to make the chat upload itself faster and UPDATE itself often? (only chat, not the wole forum).

I'm looking forward to read your solutions/suggestments please.

;D Thank you in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vypr on August 18, 2010, 01:17:49 AM
I cannot get ajax to complete install, it says there are errors in the package install, on the index template.php lines.
any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: almogz on August 18, 2010, 03:12:38 AM
Also, How can I keep the HISTORY of all conversations? I need it to keep at least 20-30 lines.
I need it to be public, not that only I can see it.
:o !! help please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lazylivin on August 18, 2010, 06:42:40 AM
Quote from: JohnCcCcCc on August 17, 2010, 07:49:45 PM
Quote from: lazylivin on August 17, 2010, 07:45:42 PM
Thanks for the response but not what I was asking. General Members can kick/ban other members from chat. It is causing a problem. There is no option to check/uncheck "Moderate Chat" as indicated by sattninja

Please list the SMF Version your using :)
Did any files fail during the installation, like ManagePermissions.php maybe...

Thank you for your response John. The version is SMF 1.1.11
Unfortunately I don't know if any files failed the installation. It has been up and running for over a year now. It is just recently that a few members have discovered ability to Kick/Ban and are causing trouble with it. I wish there was a log to prove it and we could ban them for doing it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 18, 2010, 12:22:13 PM
Attach your ManagePermissions.php, (./Sources) and also your Modifications.english.php (.Themes/{your.theme}/languages)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 18, 2010, 01:08:16 PM
I think I'm gonna uninstall this by hand and then reinstall a fresh version and try these mods again from the start. I really like this mod and I hope I get it to where I want it soon.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 18, 2010, 05:33:19 PM
My world just fell apart. I have been trying to get these ajax mods to work and finally I decided to just uninstall it and reinstall a fresh versiion and now I am getting errors all over the place. I can't access settings without errors and I cannot log into the chat without 404 errors. PLEASE HELP. I will upload whatever files you need.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 18, 2010, 05:50:44 PM
Here is the latest error:

Fatal error: Cannot redeclare modifyajaxchatmodsettings() (previously declared in /home/justin/public_html/Sources/ManageSettings.php:2371) in /home/justin/public_html/Sources/ManageSettings.php on line 2454
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 18, 2010, 06:25:17 PM
Quote from: tRu3_sKiTz0 on August 18, 2010, 05:50:44 PM
Here is the latest error:

Fatal error: Cannot redeclare modifyajaxchatmodsettings() (previously declared in /home/justin/public_html/Sources/ManageSettings.php:2371) in /home/justin/public_html/Sources/ManageSettings.php on line 2454

Have you checked the file to make sure you do not have duplicate entries for the settings for this mod?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 18, 2010, 06:26:51 PM
Checking now, please hang around to help trouble shoot! Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 18, 2010, 06:32:53 PM
Okay I think you may be on to something. I found some code strings and it is supposed to be deleted so I am going to delete these and then try to install again. Stay tuned.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 18, 2010, 06:39:15 PM
Okay I just "cleaned up" my managesettings.php so now there are no duplicates but now I am getting tis error again when I try to access any settings.

Parse error: syntax error, unexpected '}' in /home/justin/public_html/Sources/ManageSettings.php on line 2205
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 18, 2010, 06:51:09 PM
Fixed a lot of unclosed functions, well closed in the wrong places, As many of those are not from mods I know the coding to, please backup anything before using this.
However, this is parse error free though.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 18, 2010, 07:10:29 PM
Okay will try.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 18, 2010, 07:14:09 PM
Okay pretty much everything is working except that when I click one of the main configurations such admin>Configuration. It doesn't go anywhere but when I click a drop down option it works fine. I will try to install ajax again from here.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 18, 2010, 07:20:21 PM
Okay I installed ajax and I can access the options now, but now I am getting an error in the pop up:
QuoteInternal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.usgrantdiscussions.com Port 80
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 18, 2010, 07:20:36 PM
Quote from: tRu3_sKiTz0 on August 18, 2010, 07:14:09 PM
Okay pretty much everything is working except that when I click one of the main configurations such admin>Configuration. It doesn't go anywhere but when I click a drop down option it works fine. I will try to install ajax again from here.

Configuration is not actually a link, its the top of the menu. its not supposed to go anywhere, it will be selected when you pick something from the menu options..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 18, 2010, 07:21:29 PM
How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480.0)
How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477.0)

Chmod the shoutbox and chat directories to 0755, make sure it applies to all sub directories and files too.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 18, 2010, 07:22:58 PM
Okay working on it now
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tRu3_sKiTz0 on August 18, 2010, 07:32:34 PM
Okay it's up and running. Last two questions: Are there any files and/or directories that are not safe to be set to 755, or rather what would happen if I chmodded all files to 755? I just chmodded the files in the main directory and the ones in the lib directories for both the shoutbox and the chat.

At this point I am using a fresh install and would like to add the topic notify mod and I would also like my shouts to remain permanently or at least until the shoutbox is full.

Those are the last questions that I have.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: failhorse on August 18, 2010, 07:56:46 PM
I have a weird issue. It appears the shout box on my site, tfgn.org is whiting out, but only for some users. The box loads, the smiley's popup and whatnot but for some users they cannot see the shouts. (Box normally has a black background with grey text.)
There appears to be no reason for who is losing it. 
Some users can see it just fine with Win7,Vista, and XP on Firefox,Chome, and IE.
Others with the same OS/browser cannot.
Personally on a box with win7/(tested all browsers) i cannot see it. I go into the steam web browser I can. Then on laptop using the same internet connection Vista/(tested all browsers, I have no problem seeing it.

You can still post shouts as well, even if it's white. They show up normal for other users. Users seeing white don't see them, obviously.
Any ideas?

EDIT:
Could not figure out a simple solution. Reinstalled, and now it works correctly for everyone again. less the postbot which is strange in itself.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 19, 2010, 01:04:44 AM
Quote from: tRu3_sKiTz0 on August 18, 2010, 07:32:34 PM
Okay it's up and running. Last two questions: Are there any files and/or directories that are not safe to be set to 755, or rather what would happen if I chmodded all files to 755? I just chmodded the files in the main directory and the ones in the lib directories for both the shoutbox and the chat.

At this point I am using a fresh install and would like to add the topic notify mod and I would also like my shouts to remain permanently or at least until the shoutbox is full.

Those are the last questions that I have.

Usually files are supposed to be chmodded to 644 and only directories to 755, I would recommend that way, but it should be fine on 755 for those files.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nCogNeato on August 19, 2010, 09:04:35 AM
Quote from: nCogNeato on August 17, 2010, 07:28:38 PM
Quote from: nCogNeato on August 17, 2010, 03:27:05 PM
SMF 1.1.11

I had some issues getting the CHAT button to display the (usercount).

/Sources/Load.php
and
/Themes/default/index.template.php

seemed to always be the root of my problems, so I went in and manually edited them.  The (usercount) now displays fine, but now the actual CHAT button only appears while logged out of the forum.  As soon as I log into the forum, the CHAT button disappears but the (usercount) remains which is weird.

Any suggestions are appreciated.  I'm hoping someone has experienced this before, but from my search results it doesn't appear so.  If needed I can attach a copy of my Load.php and index.template.php files when I return home tonight.

Files attached.

Anyone willing to take a crack at this?   :-[
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on August 19, 2010, 04:54:43 PM
I'm on SMF 1.1.11

I'm having trouble using a different MOD that I would like to use with the Ajax Chat.

http://www.simplemachines.org/community/index.php?topic=162490.msg1036843#msg1036843  <--- Link to MOD

I would love to cut down on ChatBox campers, and make where they do have to make at least 3 daily/weekly posts before having access to the chat.

I'm having trouble with the addition listed below I have to manually add.  I don't know which chat file is the main source file, let alone where the initial function begins :(



To do this add this code to the main source file for the section of the forum you want to restrict right after the brace ( { ) after the initial function call in the source directory file (example would be smf shop initial function call in the shop.php is function shop () { ) the code below goes right after that:

     global $sourcedir;
  // If it is sunday allow everyone on.
require_once($sourcedir.'/RestrictAccess.php');
if ($context['user']['is_logged']){
echo RestrictAccess(2);
}





http://www.simplemachines.org/community/index.php?topic=162490.msg2751173#msg2751173  <--- link to my post where support is obviously dead in there.


If this can't be done, will there be any upgrades that could add something like this , restrict members from chatbox until they make a few posts?

Thank You for your time. :)




Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eng_HK on August 20, 2010, 03:31:50 PM
Hi all
I installed this mod and everything works fine except for 1 point.

I use the forum 2.0Rc3 in english, my user in different language, italian.
If I enable the shout I cannot see what their wrote untill I go in my profile and change the language to italian too.

How can i use the forum in english and their in italian but also use the shout??

Thx
Title: Re: AjaxChat Integration (latest version 3.2.1) - tables_2.php
Post by: DutchJam on August 20, 2010, 03:37:24 PM
Greetings,

Had to install the Chat manually, the package manager form SMF 2.0 RC2 gives me an error while installing the 3.2.1 version.

Edited the files manually, but how can I run the tables_2.php file, which edits the MySQL database (I think)? When I try to run the file in my browser, I have no access?

Thanks!

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stygian on August 22, 2010, 01:01:06 PM
Quick question.  On SMF 2.0 RC3 I show the time being horribly off for messages.  It is set to NULL in both config files, yet all messages are off by 3 hours and 34 minutes.  I have checked the server and forum times and they are correct.  Cannot track down the cause of this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: skoon on August 23, 2010, 09:17:56 PM
Hello all - hopefully I am posting this ion the correct forum - if not I apologize!

I recently installed AJAX on SMF 1.1.11 and it works fine with the standard default theme.  Of course - things are never that easy and as such the theme I would like to use "Mystic Jade" by dzinerstudio does not support AJAX chat.  I poked around to see if there were existing files with the code change (none I found) and then decided to try to change the code myself.  Below is what I ended up with:

the-fictionfactory(dot)com

(sorry for odd posting of url as the forum will not let me post an external link but I am not sure how to show anyone what is going on any other way...)

If you look closely to the right of the logout button you will see the chat link in green (it's evidently camouflaged for an ambush!) - I would prefer it appear with the rest of the menu in white - so there is issue number 1...

as for issue number 2 - when I click on any linked image or text there is this odd delay where the graphic (or graphic behind the text) will go black.  I am sure some code was screwed up along the way though having limited knowledge of code I haven't got a clue as to what I did...

So - at this point is it better to just try to start over and reset all the code or is it possible to fix this?

Thank you for taking a look!

shelley

EDIT: Just realized something else - it seems when I use the default theme and hop to chat it logs me in automatically but using the odd camouflaged button on the mystic jade theme it wants me to log in seperatley to AJAX.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 23, 2010, 09:26:16 PM
Hi Shelley

Were there any errors on install?

The mod may require a few manual edits before the menutab appears on the theme.

Have a look at http://ajcintegration.co.cc/index.php and also the FAQs in the first post of the mod.

There are many edits which can be added to the chat.

As for the link to your forum. That is an anti spam measure which will be in effect until you reach 10 posts.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: skoon on August 23, 2010, 09:45:50 PM
Thanks for responding Brack.  There were no issues with the install and as I stated above it works fine with the default theme.  I found some information about loading the mod to an SMF package parser and followed the directions it gave me to modify the theme but it appears I botched the code somewhere along the line.

Good to know on the points thing!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hpm77 on August 23, 2010, 10:52:01 PM
I just installed this mod on RC3, followed all steps without any error, but shoutbox is not working. Just completely blank. Cannot view anyone online. Cannot shout at all. When I switch to default Curve theme, it's working well.

I checked in /Themes/orangeline_alt_203, there is no BoardIndex.template.php file. In index.template.php file, there is no text, following the instruction either. How can I use this mod now please?

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: swatstj on August 24, 2010, 12:23:03 AM
i have the same prob with this and it dont work with the def theme any help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stygian on August 24, 2010, 01:33:30 AM
That happens to me as well.  However, I found that if you go into the admin settings for chat and select "Intergrate Shoutbox and Chat" it works.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nCogNeato on August 24, 2010, 09:37:55 AM
Quote from: nCogNeato on August 19, 2010, 09:04:35 AM
Quote from: nCogNeato on August 17, 2010, 07:28:38 PM
Quote from: nCogNeato on August 17, 2010, 03:27:05 PM
SMF 1.1.11

I had some issues getting the CHAT button to display the (usercount).

/Sources/Load.php
and
/Themes/default/index.template.php

seemed to always be the root of my problems, so I went in and manually edited them.  The (usercount) now displays fine, but now the actual CHAT button only appears while logged out of the forum.  As soon as I log into the forum, the CHAT button disappears but the (usercount) remains which is weird.

Any suggestions are appreciated.  I'm hoping someone has experienced this before, but from my search results it doesn't appear so.  If needed I can attach a copy of my Load.php and index.template.php files when I return home tonight.

Files attached.

Anyone willing to take a crack at this?   :-[

Anyone???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Subject13 on August 24, 2010, 12:23:14 PM
Something is wrong with this mod, its not letting me install it. Is it because of the current mods I have?

1.     Spoiler BBCode      1.1.1       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    Remove Reply Prefix    1.0    [ Uninstall ] [ List Files ] [ Delete ]
3.    YouTube BBCode    2.6    [ Uninstall ] [ List Files ] [ Delete ]
4.    Moderator and Administrator Comment Tags    1.8    [ Uninstall ] [ List Files ] [ Delete ]
6.     Anti-Spam Verification Questions      1.02       [ Uninstall ]  [ List Files ]  [ Delete ]

PLEASE HELP. I have SMF 1.11 and I am using the Mystic Jade (http://www.dzinerstudio.com/index.php?action=tpmod;dl=item38) Theme from DzinerStudio (http://www.dzinerstudio.com/)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 24, 2010, 12:27:16 PM
Quote from: Subject13 on August 24, 2010, 12:23:14 PM
Something is wrong with this mod, its not letting me install it. Is it because of the current mods I have?


PLEASE HELP. I have SMF 1.11 and I am using the Mystic Jade (http://www.dzinerstudio.com/index.php?action=tpmod;dl=item38) Theme from DzinerStudio (http://www.dzinerstudio.com/)

Can you explain what you mean by 'not letting me install it?'

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Subject13 on August 24, 2010, 12:36:37 PM
"Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF. "
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 24, 2010, 12:39:33 PM
Which package did you try an install?

Have you searched the topic to see if anyone else has had the same problem?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Subject13 on August 24, 2010, 02:25:54 PM
I am trying to install AjaxChat Integration_3.2.1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 24, 2010, 02:34:42 PM
Quote from: Subject13 on August 24, 2010, 12:36:37 PM
"Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF. "

That simply means you just need to manually install it for some files, which files failed the tests, was their more to that error, below that, like a list of failed tests?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Subject13 on August 24, 2010, 08:58:20 PM
3.     Execute Modification     ./Sources/ManagePermissions.php     Test failed
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 25, 2010, 10:44:01 AM
Just means that particular file requires a manual edit.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 25, 2010, 10:52:15 AM
Quote from: Subject13 on August 24, 2010, 08:58:20 PM
3.     Execute Modification     ./Sources/ManagePermissions.php     Test failed

All of the failed tests you will need to manually edit, from that I can see that's #3, is it the only failed test?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Subject13 on August 25, 2010, 01:10:09 PM
Yes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 25, 2010, 01:29:28 PM
Quote from: Subject13 on August 25, 2010, 01:10:09 PM
Yes

That makes life easier, attach it here, I will attempt to manually install that file then :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: unformatted_ on August 25, 2010, 03:13:30 PM
Hi!

My ajaxchat sometimes freeze and the messagens dont show up for some seconds (20 to 60)

I see here, on the ajax chat form this question, but the reply is not solving this issue: http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2850147

any clue please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LeYoyo on August 25, 2010, 04:14:47 PM
Hi all

Quote from: legoracer on January 13, 2010, 08:31:09 PM
Thank you LC for responding! I agree with you as in researching questions before asking. I have read over the 247 pages... and there are stuff that is close to my problem but not exactly the same as my problem; more junk than i needed to read. But who am i to say that?

I will ask for the server log and see what I can find and report back. But looking through the admin panel error log this is the only log that doesn't have the load.php problem.

http://www.saveyourskin.ca/forum/index.php?action=packages;sa=install2;package=AjaxChatIntegration_3.2.1.zip 
Database Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8
File: /home/www/saveyourskin.ca/htdocs/forum/Packages/temp/Tables_1.1.X.php


I installed on the default theme. I have loaded and working on another theme but no one is using it as i have it turned off right now.


I have the same problem. I had a look in the next pages of this message, but couldn't find a solution.

Any idea ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LeYoyo on August 25, 2010, 04:40:21 PM
Quote from: mrtrc266 on June 01, 2009, 11:31:07 PM
Thanks for the kind words mikungfu.

Damn...That was a tough one LOL. The problem seemed to be PHP version 4.4.4 and not being  set to UTF-8 like had to remove DEFAULT CHARSET=utf8 COLLATE=utf8_bin from the DB query.

Glad it's up and runnin for ya . Now that it's over I can tell you that this was the first time I manually installed DB Tables LMAO! And your site is still running ....PHEW!!!

Quote from: Chit-Chat ChatterBox Boss on June 01, 2009, 10:49:38 PM
Sunking what mod is he talking about?
I think he thinks SK made this Mod  :D  I know he's makin some Mods for the Mod though ;)

Ok, Chatterbox here I come

I just tried to do this and to repack the zip file. But now, I have an error that the package is corrupted :/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on August 25, 2010, 09:31:24 PM
As there been any word filers, or word censoring additions for the Ajax Chat.  I've checked the FAQ & wiki, but haven't found anything there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 25, 2010, 09:35:24 PM
There is a word filter edit.

Have you checked the FAQs?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on August 25, 2010, 09:48:36 PM
Quote from: hcfwesker on August 25, 2010, 09:31:24 PM
As there been any word filers, or word censoring additions for the Ajax Chat.  I've checked the FAQ & wiki, but haven't found anything there.

You will have to look again, it is their, just look a little harder.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on August 25, 2010, 10:43:29 PM
I have studied that whole FAQ page.  Can you just give me a hint :D  what is the bold heading in the FAQ I should be looking under.

EDIT:  Did a Google search, and found this link  http://www.simplemachines.org/community/index.php?topic=257973.msg2077143#msg2077143

I swear I still haven't seen anything in the FAQ post in this topic about word censoring.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: failhorse on August 27, 2010, 12:35:34 AM
I take back fixing my previous problem.

Shoutbox and chat show up blank for certain users. No pattern behind what OS or browser they are using. Anyone have similar issues? Thought I fixed this problem by reinstalling but it started again today. No errors showing, and you can still post, you just can't see any of them. Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Gale_Fujimiya on August 27, 2010, 05:44:44 AM
Hello, I am having some problems with the shoutbox. The package installation was ok, and the shoutbox shows up. But, only the administrators could see and chat in it. Not even moderators are able to see the shoutbox.

Can anyone help me with this? I'll really appreciate it. :) Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LeYoyo on August 27, 2010, 06:09:46 AM
I would be happy to help, but as writting above, I cannot install the mod without getting errors :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on August 27, 2010, 04:03:40 PM
Quote from: Gale_Fujimiya on August 27, 2010, 05:44:44 AM
Hello, I am having some problems with the shoutbox. The package installation was ok, and the shoutbox shows up. But, only the administrators could see and chat in it. Not even moderators are able to see the shoutbox.

Can anyone help me with this? I'll really appreciate it. :) Thanks!

Check EACH membergroups permissions in the AdminCP to make sure you have checked each membergroup that can access the chat.


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Gale_Fujimiya on August 28, 2010, 09:16:46 AM
@hcfwesker:

omg thks!! problem solved!! now i need to find out how to turn of the sound alerts...

have disabled the sound too. Thanks hcfwesker!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 28, 2010, 12:02:03 PM
Quote from: LeYoyo on August 27, 2010, 06:09:46 AM
I would be happy to help, but as writting above, I cannot install the mod without getting errors :(

Nobody can help if you don't tell us what the errors are?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LeYoyo on August 28, 2010, 12:46:45 PM
Quote from: Brack1 on August 28, 2010, 12:02:03 PM
Quote from: LeYoyo on August 27, 2010, 06:09:46 AM
I would be happy to help, but as writting above, I cannot install the mod without getting errors :(

Nobody can help if you don't tell us what the errors are?





I wrote my problems just the page before :)





Quote from: LeYoyo on August 25, 2010, 04:14:47 PM
Hi all

Quote from: legoracer on January 13, 2010, 08:31:09 PM
Thank you LC for responding! I agree with you as in researching questions before asking. I have read over the 247 pages... and there are stuff that is close to my problem but not exactly the same as my problem; more junk than i needed to read. But who am i to say that?

I will ask for the server log and see what I can find and report back. But looking through the admin panel error log this is the only log that doesn't have the load.php problem.

http://www.saveyourskin.ca/forum/index.php?action=packages;sa=install2;package=AjaxChatIntegration_3.2.1.zip 
Database Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=utf8 COLLATE=utf8_bin' at line 8
File: /home/www/saveyourskin.ca/htdocs/forum/Packages/temp/Tables_1.1.X.php


I installed on the default theme. I have loaded and working on another theme but no one is using it as i have it turned off right now.


I have the same problem. I had a look in the next pages of this message, but couldn't find a solution.

Any idea ?


Quote from: LeYoyo on August 25, 2010, 04:40:21 PM
Quote from: mrtrc266 on June 01, 2009, 11:31:07 PM
Thanks for the kind words mikungfu.

Damn...That was a tough one LOL. The problem seemed to be PHP version 4.4.4 and not being  set to UTF-8 like had to remove DEFAULT CHARSET=utf8 COLLATE=utf8_bin from the DB query.

Glad it's up and runnin for ya . Now that it's over I can tell you that this was the first time I manually installed DB Tables LMAO! And your site is still running ....PHEW!!!

Quote from: Chit-Chat ChatterBox Boss on June 01, 2009, 10:49:38 PM
Sunking what mod is he talking about?
I think he thinks SK made this Mod  :D  I know he's makin some Mods for the Mod though ;)

Ok, Chatterbox here I come

I just tried to do this and to repack the zip file. But now, I have an error that the package is corrupted :/

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: csraband on August 30, 2010, 03:45:19 PM
The words to the check boxes are not there.  How do I fix this?  I do not know which boxes to check.  I am using SMF 1.1.11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Schimi on September 02, 2010, 05:48:18 PM
Hiho,

I would like to use this chat in my forum. After installing it manualy i found out that the mod seems to require MySQL, but my forum runs on SQLite.

Is there any chance to make this mod run on a SQLite forum?
If not - is there a chat out there which would run on my SQLite board and could you please point me to it?

THANKS for all answers and replays  :)

My forum:
Version: SMF 2 RC 2.1
DB: SQLite
Theme: Default Core theme with light changes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on September 03, 2010, 01:49:43 AM
Quote from: csraband on August 30, 2010, 03:45:19 PM
The words to the check boxes are not there.  How do I fix this?  I do not know which boxes to check.  I am using SMF 1.1.11

If your forum's default language is English, check your Server Settings in the AdminCP, the Default language may be set to English-utf8 ; which there is no file for that language from this package.   It's something that is very easily over looked.

AdminCP > Server Settings > Core Configuration

Default Forum Language .... make sure it is set to English , and NOT English-utf8

If you check your Forum Error Log, you're probably getting a lot of errors from this when viewing that page with the empty check boxes.



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Schimi on September 06, 2010, 05:27:03 AM
Quote from: Schimi on September 02, 2010, 05:48:18 PM
Hiho,

I would like to use this chat in my forum. After installing it manualy i found out that the mod seems to require MySQL, but my forum runs on SQLite.

Is there any chance to make this mod run on a SQLite forum?
If not - is there a chat out there which would run on my SQLite board and could you please point me to it?

THANKS for all answers and replays  :)

My forum:
Version: SMF 2 RC 2.1
DB: SQLite
Theme: Default Core theme with light changes

*push*

Anyone an idea, suggestion, explanation, a link?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ls-agro on September 06, 2010, 03:57:30 PM
Just finished the installation of Ajax Chat and that went okey, but Im getting this error message wenn Im opening the chat in the browser:

Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM j91773_ls-agro.ajax_chat_online ORDER BY userName; Error-Report: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-agro.ajax_chat_online ORDER BY userName' at line 9 Error-Code: 1064

anyone knows how to fix this ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on September 06, 2010, 04:05:14 PM
Quote from: ls-agro on September 06, 2010, 03:57:30 PM
Just finished the installation of Ajax Chat and that went okey, but Im getting this error message wenn Im opening the chat in the browser:

Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM j91773_ls-agro.ajax_chat_online ORDER BY userName; Error-Report: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-agro.ajax_chat_online ORDER BY userName' at line 9 Error-Code: 1064

anyone knows how to fix this ?

This also happens when the files permissions are not set correctly, it did to me once anyway, and this fixed it. CHMOD the shoutbox and chat directories to 0755.

If that does not fix it, reupload the shoutbox and chat manually it could be corrupt :)

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480.0)
How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477.0)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ls-agro on September 06, 2010, 04:22:46 PM
Quote from: JohnCcCcCc on September 06, 2010, 04:05:14 PM

This also happens when the files permissions are not set correctly, it did to me once anyway, and this fixed it. CHMOD the shoutbox and chat directories to 0755.

If that does not fix it, reupload the shoutbox and chat manually it could be corrupt :)

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480.0)
How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477.0)

Nope, did that but its still the same error message....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on September 06, 2010, 04:52:44 PM
You also tried re uploading the directories manually via FTP ?
Extracting those directories from the installer package and uploading them, overwriting the other files?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ls-agro on September 06, 2010, 05:14:40 PM
Quote from: JohnCcCcCc on September 06, 2010, 04:52:44 PM
You also tried re uploading the directories manually via FTP ?
Extracting those directories from the installer package and uploading them, overwriting the other files?

Yes, did it like that..

hmm, could the problem be the database name ?, because of this -agro ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ɔɔɔɔɔɔuɥoɾ on September 06, 2010, 05:37:36 PM
Well, it could be a lot of things, I had an error the same or very similar, doing the above fixed it, its probably something different, but similar.

I will think about it more lol :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: starlightmishi on September 10, 2010, 12:53:06 AM
Question...how do admins display a user's real username while they are using a nickname? Is there an easy method that I'm just not understanding?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jack_40k on September 11, 2010, 12:11:12 AM
Hey guys,

Just wanted to know how I can stop people from posting images and youtube videos in the Chat / Shoutbox?

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 12, 2010, 07:39:45 AM
hi
in the shout box it shows passed messages for only 24hrs i think and only about 12 lines to scroll up to.

how do I change it to show passed history for longer "say 48hrs" and about 20 history lines.

I have ready so many pages on this board and very hard to find what I am looking for
thankyou
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: edwsin on September 13, 2010, 03:21:56 AM
hi,
i was trying yo install ajax chat 0.8.2.1 for smf 1.1.11
i'm use the simple method from uploading from the SMF - Package Manager.

I success upload the ajax chat, but when i tried to apply the mod, it gives only blank screen. And when i tried to go back to previous screen and i retry again, it gets error like this:

You cannot download or install new packages because the Packages directory or one of the files in it are not writable!
which folder is not writeable anymore..?
i already set all the main smf folder to 777

Anyone could help me..?
:(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 13, 2010, 09:14:58 AM
if you go back to the mod page where you downloaded AjaxChat Integration from and click on the link for HELP
you will find your answers there, what you are talking about is covered in that post.
cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gbsothere on September 13, 2010, 07:37:50 PM
I'll leave all this prattle below in case the edit, itself, is needed by someone else with this issue, but I'll add what made it work for me.  If, after editing the file AJAXChat.php, (.../chat/lib/class/AJAXChat.php) your chat page goes blank, make sure you set the permissions on that file to 777.  This will sort it.







Here we go.... I'll throw this out and all you highly evolved coders come jump on it.   :)


SMF 1.1.11/default theme

I searched and searched and finally found that others have the backslash problem in chat, appearing in words that have apostrophes.  Example: I\'m bored; let\'s chat.  I read that this is a bug and that the fix is here, near the bottom of the page:

http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2263005 (http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2263005)

I implemented that fix ( .../chat/lib/class/AJAXChat.php) changing this:

if(get_magic_quotes_gpc()) {

to this:
if(true) {"

It made my chat page go blank.  I reverted back and the page corrected itself.

About that block of code, found in /chat/lib/class/AJAXChat.php:

// Remove slashes which have been added to user input strings if magic_quotes_gpc is On:
if(get_magic_quotes_gpc()) {
// It is safe to remove the slashes as we escape user data ourself
array_walk(
$this->_requestVars,
create_function(
'&$value, $key',
'if(is_string($value)) $value = stripslashes($value);'
)
);
}
}



My server confirms that, according to my php.ini, magic quotes is "off".  I would think, then, that if(get_magic_quotes_gpc() would fail since magic quotes is off; that it would skip over that section. 

This line:  // It is safe to remove the slashes as we escape user data ourself  makes me think that there is some section that is adding the escapes; that if magic_quotes_gpc is on to strip out all of the escape codes then somewhere else the code adds the escape back in for some reason. Is it required for storage in the database?




All that to ask this:   how can I get rid of the backslashes?   ???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: csraband on September 13, 2010, 10:10:05 PM
Quote from: hcfwesker on September 03, 2010, 01:49:43 AM
Quote from: csraband on August 30, 2010, 03:45:19 PM
The words to the check boxes are not there.  How do I fix this?  I do not know which boxes to check.  I am using SMF 1.1.11

If your forum's default language is English, check your Server Settings in the AdminCP, the Default language may be set to English-utf8 ; which there is no file for that language from this package.   It's something that is very easily over looked.

AdminCP > Server Settings > Core Configuration

Default Forum Language .... make sure it is set to English , and NOT English-utf8

If you check your Forum Error Log, you're probably getting a lot of errors from this when viewing that page with the empty check boxes.


Thanks .  That worked.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: edwsin on September 13, 2010, 10:29:57 PM
Quote from: edwsin on September 13, 2010, 03:21:56 AM
hi,
i was trying yo install ajax chat 0.8.2.1 for smf 1.1.11
i'm use the simple method from uploading from the SMF - Package Manager.

I success upload the ajax chat, but when i tried to apply the mod, it gives only blank screen. And when i tried to go back to previous screen and i retry again, it gets error like this:

You cannot download or install new packages because the Packages directory or one of the files in it are not writable!
which folder is not writeable anymore..?
i already set all the main smf folder to 777

Anyone could help me..?
:(

Can anyone help me with this problem i had..?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hamsterdaddy on September 14, 2010, 06:01:49 PM
Thanks to Mashby, I was able to upload this Ajax mod into Simple portal when the Ajax site version refused to. I chatted in Ajax before in two sites, like it.    :)

It seems to have good Admin controls too, that's important. Hunter, don't know what you did to Ajax, but I lost 25 man-hours trying to upload Ajax various ways before trying your mod, thanks bud.    ;D

Now the problem:  I have it installed, 1.1.11 & Simple Portal with BlackRainv2 theme, but was expecting some sort of Ajax link on the left in Admin.     ???

The Simple Portal shoutbox area seems unchanged, and pulling up an "Add Shoutbox" window looks like default SP shoutbox.

Quite simply, it's installed, but I don't see how to get into it....  :o

Am I somehow missing something obvious?

I am running a SP shoutbox in the middle of my homepage now, want to add an external full page Ajax chat, and sync it to Ajax shout on the homepage.

Here's what it looks like now, a week old:  https://saintstailgate.com/forum/index.php

Any ideas?   

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gbsothere on September 14, 2010, 07:33:09 PM
The settings to enable it, hamsterdaddy, are found in Features And Options (in 1.1.11).   :)

Also, when you click the Chat button there is a "tools" icon at the bottom of the chat page for preferences.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Solace-Aerie Peak on September 14, 2010, 08:05:48 PM
Hi guys very new to this, installed AJAX and everything was working fine, then by accident uninstalled it and then tried to installed it again and shoutbox is there but no box is visible and when I click on Chat button I get this error.


Warning: require(/home/wcgmhpjd/domains/solace-guild.eu/public_html/forum/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/wcgmhpjd/domains/solace-guild.eu/public_html/forum/chat/index.php on line 17

Fatal error: require() [function.require]: Failed opening required '/home/wcgmhpjd/domains/solace-guild.eu/public_html/forum/chat/lib/custom.php' (include_path='.:/usr/local/lib/php') in /home/wcgmhpjd/domains/solace-guild.eu/public_html/forum/chat/index.php on line 17

Thanks any help would be appreciated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gbsothere on September 14, 2010, 08:16:52 PM
Quote from: Solace-Aerie Peak on September 14, 2010, 08:05:48 PM
Hi guys very new to this, installed AJAX and everything was working fine, then by accident uninstalled it and then tried to installed it again and shoutbox is there but no box is visible and when I click on Chat button I get this error.


Warning: require(/home/wcgmhpjd/domains/solace-guild.eu/public_html/forum/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/wcgmhpjd/domains/solace-guild.eu/public_html/forum/chat/index.php on line 17

Fatal error: require() [function.require]: Failed opening required '/home/wcgmhpjd/domains/solace-guild.eu/public_html/forum/chat/lib/custom.php' (include_path='.:/usr/local/lib/php') in /home/wcgmhpjd/domains/solace-guild.eu/public_html/forum/chat/index.php on line 17

Thanks any help would be appreciated.



Did you reupload the chat directory to your forum's root and, if so, is the lib directory inside, containing the custom.php file?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on September 14, 2010, 10:06:59 PM
Is there anyway to add any content to the chat box page itself, like guidelines, or a link to guidelines, anything like that?

i'm on smf 1.1.11

thank you for any help :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gbsothere on September 14, 2010, 10:39:32 PM
Quote from: hcfwesker on September 14, 2010, 10:06:59 PM
Is there anyway to add any content to the chat box page itself, like guidelines, or a link to guidelines, anything like that?

i'm on smf 1.1.11

thank you for any help :)



I'm a bit dull (sleepy and going to bed) so I may completely misunderstand what you mean by guidelines, but, at least in the 1.1.11 version, when you are in chat, click the blue question mark and the commands will appear.  Click the "people" icon and they go away.  Click the "people" icon again and the list of users comes back.

And if that's not what you mean, then I've just wasted your time.

:D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on September 15, 2010, 12:22:11 AM
Quote from: gbsothere on September 14, 2010, 10:39:32 PM
I'm a bit dull (sleepy and going to bed) so I may completely misunderstand what you mean by guidelines, but, at least in the 1.1.11 version, when you are in chat, click the blue question mark and the commands will appear.  Click the "people" icon and they go away.  Click the "people" icon again and the list of users comes back.

And if that's not what you mean, then I've just wasted your time.

:D

Hahaha.  Nah, bud, never a waste of time.  But I think I just worded what I wanted the wrong way.  I just meant like guidelines I'd make for my own chat.  like "no cursing", "no flaming", etc.  or a way to have a link to our chat rules above the chat box.  :)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: edwsin on September 15, 2010, 02:19:16 AM
hi...i finally managed to installed the ajax chat, but when i switch or change the theme, the chat button is gone.
Could anyone help me out..?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Solace-Aerie Peak on September 15, 2010, 05:38:15 AM
Quote from: gbsothere on September 14, 2010, 08:16:52 PM
Quote from: Solace-Aerie Peak on September 14, 2010, 08:05:48 PM
Hi guys very new to this, installed AJAX and everything was working fine, then by accident uninstalled it and then tried to installed it again and shoutbox is there but no box is visible and when I click on Chat button I get this error.


Warning: require(/home/wcgmhpjd/domains/solace-guild.eu/public_html/forum/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/wcgmhpjd/domains/solace-guild.eu/public_html/forum/chat/index.php on line 17

Fatal error: require() [function.require]: Failed opening required '/home/wcgmhpjd/domains/solace-guild.eu/public_html/forum/chat/lib/custom.php' (include_path='.:/usr/local/lib/php') in /home/wcgmhpjd/domains/solace-guild.eu/public_html/forum/chat/index.php on line 17

Thanks any help would be appreciated.



Did you reupload the chat directory to your forum's root and, if so, is the lib directory inside, containing the custom.php file?

Can only find a index.php in the chat directory no sign of a custom.php

EDIT:  Deleted the index.php from my packages directory after I had unistalled the mod and then reinstalled it and its seems to be working fine.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gbsothere on September 15, 2010, 08:04:28 AM
Quote from: hcfwesker on September 15, 2010, 12:22:11 AM
Hahaha.  Nah, bud, never a waste of time.  But I think I just worded what I wanted the wrong way.  I just meant like guidelines I'd make for my own chat.  like "no cursing", "no flaming", etc.  or a way to have a link to our chat rules above the chat box.  :)



Actually, you can.  If you look in the chat folder that's in your forum's directory, there is a folder inside "lib" and inside that "template".  In the template folder are these files:  loggedin.html and loggedout.html.  These files each have a block of code at the bottom with links that appear on the top right of your chat box.  You can add a link here to your rules, perhaps have the link wrap around the word RULES and it should appear on your chat box with the other links.  (In that same template folder, shoutbox.html also has this block of link code.) 

;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gbsothere on September 15, 2010, 08:08:26 AM
Quote from: edwsin on September 15, 2010, 02:19:16 AM
hi...i finally managed to installed the ajax chat, but when i switch or change the theme, the chat button is gone.
Could anyone help me out..?


edwsin, this mod's edits have to be manually added to any custom theme's templates (and also language files, if your theme has its own and the mod parses them).  Go to the mod's page and click the button next to the zip you downloaded.  Set the pulldown for your version of SMF and click Parse.  There you will see the files this mod edits and the actual edits.  Look in your theme's folder and see which of its templates and language files are being edited.  Add the manual edits and the button should appear. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RacingETR on September 15, 2010, 10:58:58 PM
hello people

it turns out that I moved my forum to another host and fix everything with "repair_setings.php" you add permissions to SMF files requested, and is that the ajax chat is normal but when you write is not): from Insurance is a permission that I have to give if it pliz tell me ... You should check that there be no doubt:

http://foro.renegan.comze.com/index.php?action=forum

User: demo1
pass: zxcv1234

SMF 2.0 RC3


Thanks for your attention

Spanish:

hola gente

pues resulta que he movido mi foro a otro host ya repare todo con "repair_setings.php" le agregue los permisos a los archivos que SMF pide, y resulta que en el ajax chat se ve normal pero cuando le escribes no se ve ): de seguro es algún permiso que le tengo que dar si es eso me lo dicen pliz... compruébenlo ustedes para que no haya dudas:

http://foro.renegan.comze.com/index.php?action=forum

User: demo1
pass: zxcv1234

SMF 2.0 RC3


Gracias por su atención
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: edwsin on September 15, 2010, 11:13:15 PM
Quote from: gbsothere on September 15, 2010, 08:08:26 AM
Quote from: edwsin on September 15, 2010, 02:19:16 AM
hi...i finally managed to installed the ajax chat, but when i switch or change the theme, the chat button is gone.
Could anyone help me out..?


edwsin, this mod's edits have to be manually added to any custom theme's templates (and also language files, if your theme has its own and the mod parses them).  Go to the mod's page and click the button next to the zip you downloaded.  Set the pulldown for your version of SMF and click Parse.  There you will see the files this mod edits and the actual edits.  Look in your theme's folder and see which of its templates and language files are being edited.  Add the manual edits and the button should appear.
hi...
I finally success for adding the chat button on the smf, but it seems now when i logout and try to enter my smf forum it takes a very long time also the same when i tried to login.
Is there something that can fix this issue...?
thanks in advanced
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vivid on September 16, 2010, 07:27:12 AM
Hi
I am using Arabic Language [2.0 rc3]
Ajaxchat view only members in English Langauge
any user whom account in Arabic Langage, Ajaxchat view his/her account as blank

is this issue related to encoding???
my forum encoding is [windows-1256]

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vivid on September 16, 2010, 12:26:00 PM
any help?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: edwsin on September 17, 2010, 12:06:30 AM
hi i have questions:

questions:
--------------
1. Can we create another room for private channel ( multiple ) n public channel ( multiple) ..?
2. Can we chat on private room not on public channel..?
3. Is it possible to not shown the chat while we are on private channel..?
4. While on private room, can we see the users that enter the private channel..?
4. Can we clear the chat histroty /day or /month

any reply i should very thankful,
edwsin
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vivid on September 17, 2010, 10:04:22 AM
Hi
this is so urgent
my members account do not show in Arabic Language
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nCogNeato on September 17, 2010, 01:05:17 PM
Quote from: nCogNeato on August 24, 2010, 09:37:55 AM
Quote from: nCogNeato on August 19, 2010, 09:04:35 AM
Quote from: nCogNeato on August 17, 2010, 07:28:38 PM
Quote from: nCogNeato on August 17, 2010, 03:27:05 PM
SMF 1.1.11

I had some issues getting the CHAT button to display the (usercount).

/Sources/Load.php
and
/Themes/default/index.template.php

seemed to always be the root of my problems, so I went in and manually edited them.  The (usercount) now displays fine, but now the actual CHAT button only appears while logged out of the forum.  As soon as I log into the forum, the CHAT button disappears but the (usercount) remains which is weird.

Any suggestions are appreciated.  I'm hoping someone has experienced this before, but from my search results it doesn't appear so.  If needed I can attach a copy of my Load.php and index.template.php files when I return home tonight.

Files attached.

Anyone willing to take a crack at this?   :-[

Anyone???

Taking all comers.    :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vivid on September 18, 2010, 05:18:42 AM
did the technical support stop for this package?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on September 20, 2010, 04:27:03 AM
Hello,

I upgrade my forum 1.1.11 to 2.0RC3 and ajaxchat not working right:(

No errors, installed fine but when I go to the chat, no users anywhere and  my posting dont appear?

Looks like that:
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Buraaq on September 20, 2010, 05:31:08 PM
Heya all!

Lovely mod, works well!!

Just one thing though; is there a way to block "/nick" command? Cuz I dont want everyone to be "admin" on my forum =D

Thanks a lot!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gevv on September 21, 2010, 01:09:27 PM
Thanks @.HuNTeR.

Chat how to for the timing ?

sample;

hours 24:00 chat auto active

hours 08:00 chat auto disable
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cspears22 on September 21, 2010, 10:22:53 PM
Can anyone explain how to fix my shoutbox?

When someone uses an apostrophe, it shows up as a backslash.  Any help?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FragaCampos on September 22, 2010, 10:42:38 AM
Thanks for this great, great mod...
I have a heavy moded forum and juts had to change some things via parser.
Also to solve the blank page and other issues withe permissions etc., i followed the great explanations here (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) and here (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529) from mrtrc266 and SunKing. Thanks a lot for that.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thekid65 on September 26, 2010, 09:12:54 AM
My apologies in advance if this has already been asked/answered. 360+ pages is a lot to look through, and the search feature came up negative in this thread.

Was wondering if there was a shoutbox archive included with this mod, and if so, how do I enable it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sasikumar D R on September 27, 2010, 01:48:55 PM
Hi friends,
             I am trying to integrate Ajaxchatbox 3.2.1 on smf2.0rc3 forum. After installing mod from admin settings, I am not able to use shoutbox. I am getting following instead of proper shoutbox

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg138.imageshack.us%2Fimg138%2F5739%2F96058752.png&hash=fa64441d6761d0bcfd170e9a39d7dd879b1297b2)

When I clicked on chat menu, I am getting 404 error.

I faced same problem on localhost also. I managed to correct it by deleting .htaccess file from /chat/  and  /shout/ folders. But same trick is not working on server.

In the server I have installed forum on root/forum/

Please help me in resolving this issue..

Edit: I am using default skin and no other mods are installed.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sasikumar D R on September 28, 2010, 02:38:38 AM
Any help???

I think my webhost might be blocking chat scripts :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FragaCampos on September 28, 2010, 03:42:27 PM
Check your file permissions and this message:
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Buraaq on September 28, 2010, 03:48:10 PM
QuoteCheck your file permissions and this message:
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

Exactly. And by default, they DO block chat scripts so you need to change the permissions to 755 (by default they are 666 usually). Do that, and your chat should be up and running. Remember to change permission for index.php in both, shoutbox and chat folders. If confused, just follow that faq closely.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fake on October 02, 2010, 08:17:33 AM
Quote from: jarska on September 20, 2010, 04:27:03 AM
No errors, installed fine but when I go to the chat, no users anywhere and  my posting dont appear?
I have the same problem. I've read FAQ and tried to apply that fixes (blank chat room) but it doesn't help. Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Infitima on October 02, 2010, 06:34:26 PM
Two questions.

1. Can /kick be edited to just kick the person and not ban them? Like on IRC? Because it's annoying to kick an idiot only to have to then unban them.
Can't they be two separate commands?
2. If the first isn't possible. How would I remove the /kick command completely?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Idiotji on October 03, 2010, 02:57:45 PM
Guys today i install ajax chat integeration mod.The shout box is working properly but when i click on chat on the menu bar i got error.The page not opened and in the url this comes.
Quotehttp://custom404error.com/?keywords=mobile%20car%20detailing/pagenotfound

So wats this problem.How to fix it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: swatstj on October 04, 2010, 12:00:34 AM
i just instaled it every thing fine but cant post in chat or shoutbox but i do have the smf4iphone theme and the shoutbox works on it but not on my site :)


if any whats to check it out here the site www.swat4idevices.com (http://www.swat4idevices.com)  its the same on the mobile devices  so can some take a look and you see what im talking about you prob. have sign up as a member to see this :)

Thank You :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: agent47 on October 04, 2010, 09:53:33 AM
I just installed this on my forum which is http://superherocomics.tk/index.php
How do I access the chatroom now. Whats the link/URL to it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: agent47 on October 05, 2010, 01:31:58 PM
Ok can someone please address my prev. post. Help a guy out. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: anidea on October 05, 2010, 03:45:13 PM
Hi all,

Running smf 2.0 rc3 and the latest ajax chat.  RGBB Curve theme.

I have a chat button in the top menu of my forum, in between Members and Logout.  I think it was a mod I did, but I can't find it now  :-[  I somewhat remember adding code, but can't figure out what code I added to what. 

I'd really like to get rid of the chat button.  The problem is that people can use it even when they're not logged in--even though I have guest access completely blocked, and they go in there (possibly logging in separately?) and sit all day (even though they keep timing out), and man it's creeping me out.  The idea was to use it only as an occasional shoutbox-like chat, but once in a while have fuller chats with the members.  If I can hide the chat button and post a link to the chatroom whenever we're ready to chat, that would be soooo much better.

But can someone help me out and maybe point me to what I might've installed so that I can do some reverse engineering?  is it the subs.php code?  or is it somewhere in index.template.php?  or both?

I'm going crazy here...I seem to be doing more damage than good :(

Cecilia
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FragaCampos on October 05, 2010, 03:51:10 PM
Quote from: agent47 on October 05, 2010, 01:31:58 PM
Ok can someone please address my prev. post. Help a guy out. :)

Since you have a custom theme, you must follow the parser to make the necessary manual changes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Infitima on October 05, 2010, 08:31:28 PM
Alright, I seriously need help here.

We're having the Error: Connection status: 500, thing. on http://shatteredplanes.com/chat/
Frequently! Every several of minutes!

I've tried everything. The permissions thing the FAQ said to do. Both folders and index.php files are at 755.
I thought maybe it was CPU, so I cleared out and made the logs be purged sooner than a year.
Still! Still we get this god forsaken error x.x. I have no idea what to do about it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: agent47 on October 05, 2010, 11:29:47 PM
Quote from: FragaCampos on October 05, 2010, 03:51:10 PM
Quote from: agent47 on October 05, 2010, 01:31:58 PM
Ok can someone please address my prev. post. Help a guy out. :)

Since you have a custom theme, you must follow the parser to make the necessary manual changes.
I'm sorry but I have no idea what exactly does this mean. Please be more specific. Please...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FragaCampos on October 06, 2010, 10:57:09 AM
Go to the mod page (http://custom.simplemachines.org/mods/index.php?mod=1319) choose the version of your SMF forum and the version of the mod and see the changes you have to make to your custom theme files, particularly /Themes/<your theme>/index.template.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: filipes on October 08, 2010, 10:15:47 AM
Hello
I need help, I have this error "Fatal error: Call to undefined function chatOnlineUsers() in /home/tomtomax/public_html/forum/Sources/Load.php(2102) : eval()'d code on line 353" can anybody help me?
thks
filipe
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Richface on October 09, 2010, 05:23:06 AM
Hello someone help. I  installed Ajax integration chat on the latest version on SMF. The problem is the chat button appears on the top wow nice but when i click on it.. I get an error saying nothing found? now i am not a programmer can anyone help? Went  through all the FAQs everyone saying different things I have changed so many file permissions but the chat button links to nothing error " you are looking for something that isn't here"
It installed successfully so dont know why it won't work.arghh lol SMF is quite complicated every mod i install i have to do something to make it work I have spent 6 days to make ajax intergration work no joy i even reinstalled SMF same results i get the chat button at the top, I click on it and it says but you are looking for something that isn't here Someone please help.. :( :( :(  I will so happy if it worked. Hunter if you read this thanks for the mod but help me with this one..anyone!!..

[email protected]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Richface on October 09, 2010, 02:02:47 PM
Aite manage to get the chat to pop up but now i get errors any ideas anyone? this is harder
than my trip to Iraq..lol wish i could just upload it click install and then it works..lol Please any advice will do. Oh my 404 error before was a permissions issue modify all dir's to 755 and files to 644 to stop 404 errors.


Notice: Undefined variable: context in /home/kaslli/public_html/forum/Themes/default/languages/index.english-utf8.php on line 36

Notice: Undefined variable: context in /home/kaslli/public_html/forum/Themes/default/languages/index.english-utf8.php on line 99

Notice: Undefined variable: scripturl in /home/kaslli/public_html/forum/Themes/default/languages/index.english-utf8.php on line 155

Notice: Undefined variable: scripturl in /home/kaslli/public_html/forum/Themes/default/languages/index.english-utf8.php on line 155

Notice: Undefined variable: scripturl in /home/kaslli/public_html/forum/Themes/default/languages/index.english-utf8.php on line 156

Notice: Undefined variable: context in /home/kaslli/public_html/forum/Themes/default/languages/index.english-utf8.php on line 297

Notice: Undefined variable: context in /home/kaslli/public_html/forum/Themes/default/languages/index.english-utf8.php on line 304

Notice: Undefined variable: boardurl in /home/kaslli/public_html/forum/Themes/default/languages/index.english-utf8.php on line 328

Notice: Undefined variable: scripturl in /home/kaslli/public_html/forum/Themes/default/languages/index.english-utf8.php on line 328

Notice: Undefined variable: scripturl in /home/kaslli/public_html/forum/Themes/default/languages/index.english-utf8.php on line 517

Notice: Undefined index: code_select in /home/kaslli/public_html/forum/Sources/Subs.php on line 1064

Notice: Undefined index: code_select in /home/kaslli/public_html/forum/Sources/Subs.php on line 1108

Notice: Undefined index: modSettings_title in /home/kaslli/public_html/forum/Sources/Subs.php on line 3918

Notice: Undefined index: package in /home/kaslli/public_html/forum/Sources/Subs.php on line 3923

Notice: Undefined index: errlog in /home/kaslli/public_html/forum/Sources/Subs.php on line 3928

Notice: Undefined index: edit_permissions in /home/kaslli/public_html/forum/Sources/Subs.php on line 3933

Notice: Undefined index: moderate in /home/kaslli/public_html/forum/Sources/Subs.php on line 3941

Notice: Undefined index: modlog_view in /home/kaslli/public_html/forum/Sources/Subs.php on line 3946

Notice: Undefined index: mc_unapproved_poststopics in /home/kaslli/public_html/forum/Sources/Subs.php on line 3951

Notice: Undefined index: mc_unapproved_attachments in /home/kaslli/public_html/forum/Sources/Subs.php on line 3956

Notice: Undefined index: mc_reported_posts in /home/kaslli/public_html/forum/Sources/Subs.php on line 3961

Notice: Undefined index: summary in /home/kaslli/public_html/forum/Sources/Subs.php on line 3974

Notice: Undefined index: account in /home/kaslli/public_html/forum/Sources/Subs.php on line 3979

Notice: Undefined index: forumprofile in /home/kaslli/public_html/forum/Sources/Subs.php on line 3984

Notice: Undefined index: pm_menu_read in /home/kaslli/public_html/forum/Sources/Subs.php on line 3997

Notice: Undefined index: pm_menu_send in /home/kaslli/public_html/forum/Sources/Subs.php on line 4002

Notice: Undefined index: calendar_menu in /home/kaslli/public_html/forum/Sources/Subs.php on line 4015

Notice: Undefined index: mlist_menu_view in /home/kaslli/public_html/forum/Sources/Subs.php on line 4033
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Noctivagus on October 09, 2010, 10:32:44 PM
Quick question:

No matter what I do to it, my forum always shows "No user is in chat. " at the bottom.

What files should I be looking at editing/showing you guys in order to get this repaired?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [email protected] on October 11, 2010, 11:27:04 AM
hello your problems can all be sorted by simeply reading  tiny.cc/bf6vu
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: piplexi on October 13, 2010, 03:59:35 AM
The chat was working until yesterday. Today I've installed Pretty Urls Mod.
Everything seemed to work, except the chat.
So I've deinstalled the Pretty Urls Mod and even ftped my whole Forum Backup.
Then I reinstalled the chat mod.

Still not working. I can access the chat, but I don't see Users, not even myself and I can not type anything. I also do not see "Users in Chat" at the Bottom of the Forum.
It says no User in chat, even though I'm there.
I don't get any error messages.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: interzis on October 13, 2010, 04:35:42 AM
same error to me but appeared after trying to activate the shoubox

so, chat was up and running for long time but few days ago some users ask me to enable the shoutbox.
I said "consider it done" and I activate the shoutbox but after this the shoutbox and the chat itself stop working.
same printscreen as piplexi :(
and no errors...

any hint? thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: piplexi on October 13, 2010, 04:42:54 AM
oh yes, I forgot to mention that I activated the shoutbox as well.

So it has something to do with the shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cmporter83 on October 13, 2010, 05:57:39 PM
Ok, so I have been running AjaxChat for a few months and it is working fine.  My issue is that it is KILLING the Forums.  Users are chatting instead of posting.  SO, I want to initiate opening and closing hours of chat.  This is a feature that COMES with AjaxChat however it doesn't look like it is part of this module.  Can someone show me where to make these changes?  Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: piplexi on October 14, 2010, 08:49:16 AM
I tried everything. Dropped the tables, reinstalled, send theme and source backup files via ftp.
Nothing, this damn thing just doesn't work anymore.
I don't get it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: indianpartner on October 16, 2010, 03:06:05 AM
Excellant....  Everything works perfectly. 

I have custom the files as instructed... Wonderful....

Chat room now looks like HEAVEN.

Additional Features Required:

1.  Placement of the SITE LINKS in Chat room HEAD near to COPYRIGHTS LICENSE area

AJAX Chat                                   AJAX Chat © blueimp.net | Integrated with SMF
---------------------------------------------------------------------------------------------------------------
I like to make this as

AJAX Chat of ( My company name +  Website link)  AJAX Chat © blueimp.net | Integrated with SMF 
-------------------------------------------------------------------------------------------------------------

That is Additional modification in HEAD AREA of the chat room .

If anybody knows please help.

I am really happy with this AJAX CHAT
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: YogiBear on October 16, 2010, 07:24:13 PM
Quote from: Infitima on October 05, 2010, 08:31:28 PM
...
We're having the Error: Connection status: 500, thing. on ...


I took the easy way and dumped the mod but this is a common problem often best solved by contacting your host.


@piplexi : Pretty URL's is known for causing errors. Put 'Pretty' into the Seach on this forum and hopefully you should find the solution. Easy way out is to uninstall Pretty URLs.  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: interzis on October 17, 2010, 04:51:36 AM
@YogiBear

before shoutbox activation, the chat was running just fine (with pretty installed)
at least at my forum, the problem occur just after enabling the shoutbox option.

also, uninstalling ajaxchat and pretty and reinstalling ajaxchat, the chat still doesn't work

thank you for your time
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: piplexi on October 17, 2010, 05:52:19 AM
Quote from: YogiBear on October 16, 2010, 07:24:13 PM
Quote from: Infitima on October 05, 2010, 08:31:28 PM
...
We're having the Error: Connection status: 500, thing. on ...


I took the easy way and dumped the mod but this is a common problem often best solved by contacting your host.


@piplexi : Pretty URL's is known for causing errors. Put 'Pretty' into the Seach on this forum and hopefully you should find the solution. Easy way out is to uninstall Pretty URLs.  :)

thank you. I thought so. Will have a look now. The thing is that I uninstalled pretty urls, because I thought it must come from pretty urls. But it seems that it's not totally uninstalled.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: piplexi on October 17, 2010, 06:09:39 AM
Ok I found the Problem. pretty urls did some changes to the .htaccess file.
When I uninstalled pretty urls, the changes in the .htaccess were not removed. This was causing the error.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: interzis on October 20, 2010, 03:22:08 AM
I think is possible to have some pretty's rewrite rules (in .htaccess) which affect ajaxchat but I don't figure out why the main chat window stop working after shoutbox's activation...

As I said before, ajaxchat was running well with pretty url installed, the problem was occur after the shoubox activation.

I suppose some modification in .htaccess will fix this issue. Anybody who can help?

regards
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Prayer on October 20, 2010, 07:02:12 PM
Hello there,

I have recently installed SMF 2 RC3 and installed the AjaxChat mod.

The only problem is that when I type something into the shoutbox and click "shout", nothing happens. The chat remains blank.

The actual chat itself experiences the same problem, users in chat do not display either.



I have looked through this whole thread and cannot find a solution that works. Could someone who has had this problem and fixed it please let me know what to do? Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Infitima on October 21, 2010, 03:53:52 AM
Quote from: YogiBear on October 16, 2010, 07:24:13 PM
Quote from: Infitima on October 05, 2010, 08:31:28 PM
...
We're having the Error: Connection status: 500, thing. on ...


I took the easy way and dumped the mod but this is a common problem often best solved by contacting your host.


They fixed that, but now it's constant 503 errors!
I tell them, several times, and they say  it's too many connections? That can't be, we have 15 members only, and using 2 DBs.
Yet Max connections is at 50, and Max Used connections 85... IS the chat sucking up connections? Is there any way to stop it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: easyrider77 on October 21, 2010, 10:52:27 AM
I uninstall the AjaxChat (conflicts) but left the "chat" button in main menu..

Is there any way to remove it..?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bSchuchardt on October 21, 2010, 01:42:58 PM
Hi my name is Brandon and I am new at SMF.  I could use help if any can be given.  I am currently running Silent Wave theme on my site.  I downloaded Ajax Chat in my SMF.  In my admin - package folder is says it downloaded correctly.  But nothing shows up in my theme.  No chat box / nothing.  I am really frustrated with this.  LOL :-) If any one can help me please contact me back.  Any help would be awesome.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: interzis on October 22, 2010, 02:51:51 AM
Quote from: easyrider77 on October 21, 2010, 10:52:27 AM
I uninstall the AjaxChat (conflicts) but left the "chat" button in main menu..

Is there any way to remove it..?

you should search in ./Sources/Subs.php and remove the added (and not deleted) ajaxchat's lines



'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),


better, you should check all smf files affected by the ajaxchat installation

regards,
Seb
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: easyrider77 on October 22, 2010, 06:10:45 AM
Ok, i remove the code from index.template.pho but i try what you success also.

Thanks Seb !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Prayer on October 22, 2010, 08:49:49 PM
Okay, I found the post of someone who had the same problem as me with the chat being blank (picture provided).

I still see no solution, help please.

This is the link to his post and picture: http://www.simplemachines.org/community/index.php?topic=257973.msg2000539#msg2000539
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimnix on October 23, 2010, 08:41:31 AM
Hi.

My shoutbox won't accept characters such as â and û in names, any idea how to fix this?

Changing the config

// The encoding used for the XHTML content:
$config['contentEncoding'] = 'UTF-8';
// The encoding of the data source, like userNames and channelNames:
$config['sourceEncoding'] = 'UTF-8';

to ISO-8859-1 didn't work.

Please help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: baptie on October 23, 2010, 05:05:01 PM
been using the AJAX Chat for about 2 weeks, I have had a few login issues with the below:

Query: DELETE FROM `clan_smf1`.smf_ajaxchat_messages WHERE dateTime < DATE_SUB(NOW(), interval DAY); Error-Report: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 4 Error-Code: 1064

Just wondered if anyone has had the same issue?
found out tonight its not just me, other members experiencing it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aaraon on October 23, 2010, 08:36:14 PM
Greetings.
I have a doubt. I have some users who have the annoying habit of deleting messages after writing out bad words. They know that, without evidence, I have no way to punish them. I tried changing the option to delete the messages, but even putting in "false" but they keep deleting their posts.
Quote
    // Allow/Disallow registered users to delete their own messages:
    allowUserMessageDelete: false,


Could someone help me understand what might be wrong?


Since now appreciate the help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mr.V on October 23, 2010, 10:30:56 PM
Issue:
Just installed the chat into a 1.1.11 board.  Got the mods done and files moved around.

When I go into admin to enable it, there are no titles to the check boxes.  See attached.  Same thing is happening in Permissions.

Next, after going through it all, including getting the database install file to work, the button, number of users and list of users do not show.

Ideas?  Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aaraon on October 25, 2010, 11:59:37 AM
Hi!

how do I remove the entire Log?

I have deleted the "log.js" but what I really want is to remove the "whisper" function form the chat. Permanently.






MAYBE. Is there any way to disable only the recording of "whispers" in the LOG?




Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on October 26, 2010, 05:53:03 PM
I have been trying non stop to get the Custom Member Groups & Colors in Chat Room  code to work. 

I have a secondary admin membergroup, which is membergroup ID 31, i changed the "9" to a "31" in the code.  I didn't quiet understand how i was suppose to change VIP in the code to a differwent membergroup.

What i need is for the secondary admin group, also called "Administrator" groupID 31, to appear as RED in the chat room, just like a Core Admin of the forum appears in the chat room.

Can someone please help me with the edits in the link above the following quote ... 

Quote from: mrtrc266 on May 09, 2010, 08:46:05 PM
Custom Member Groups & Colors in Chat Room and Shout Box

You don't have to show every edit, just the edits i would make , replacing the Id number, and VIP, and color red.  I've already added the code, as it is.  And still can't get the membergroup to appear as ther purple default color from the code.

@ mrtrc266 , you've come to my forum before and helped, I'd gladly pay $5 over paypal for your help on this.

Any help is appreciated, :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: X3N0S on October 28, 2010, 07:06:37 AM
Hi guys,

I want to add more META tags on /chat/index.php page.
By default there is only one : <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

and I want to add more like:
<META name="description" content="..." />
<META name="keywords" content="..." />


I tried to modify AJAXChatHTTPHeader.php and the META were visible but the messages on the channel were not visible...

Any ideas? Thanks!  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Midnitelove on October 29, 2010, 01:01:44 PM
The shout box is not working for members using IE8, any suggestions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Baloch on October 31, 2010, 06:03:23 AM
Is it compatible to 2.0 RC1.3?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rafferty on November 02, 2010, 06:52:41 PM
I would like to hide or remove the Collapse icon for the shoutbox, can anyone help?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on November 03, 2010, 04:20:32 AM
For 2.0RC4 soon? ::)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on November 05, 2010, 09:24:28 AM
ok the whole point for my forums is to have a chat room to chat in.... more folks at my site use the chat and very seldom post in the forums.....

1.1.12 is now released.... will the current version of chat install on the updated version of SMF?

thanks in advance for any reply...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on November 05, 2010, 10:32:32 AM
Tested, working fine with 2.0RC4. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: synicfan on November 07, 2010, 02:33:13 PM
I'd like to use this on the latest RC of SMF.
If it works in 2.0 RC4 why doesnt it upload?

Can someone help please?

thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aaraon on November 07, 2010, 03:28:17 PM
1.1.12 is now released.... will the current version of chat works on the updated version of SMF?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Baloch on November 07, 2010, 10:34:25 PM
Quote from: jarska on November 05, 2010, 10:32:32 AM
Tested, working fine with 2.0RC4. :)

which one?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: synicfan on November 08, 2010, 12:32:24 AM
If this works, I'd really like to use it.

can anyone share how they got it to work?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on November 08, 2010, 02:37:49 AM
Quote from: Baloch on November 07, 2010, 10:34:25 PM
Quote from: jarska on November 05, 2010, 10:32:32 AM
Tested, working fine with 2.0RC4. :)

which one?

3.2.1RC3_Curve_Friendly

I had this installed before upgrade 2.0RC3 to 2.0RC4, it was downgrade by the large upgrade packade, and just install it again, works.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jarska on November 08, 2010, 02:54:56 AM
Quote from: synicfan on November 08, 2010, 12:32:24 AM
If this works, I'd really like to use it.

can anyone share how they got it to work?

I tried to install 3.2.1RC3_Curve_Friendly_zip to my fresh installed  test site 2.0RC4 and only error was themes/default/index.template file changes, see attach:

I correct that manually and works.

Some another themes that error not came, and works without manually changes.

Sorry my bad english, hope you understand. :-[
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: baptie on November 08, 2010, 09:04:09 AM
Forum version: SMF 1.1.9
Current SMF version: SMF 1.1.12

when users login to chat they get this message:
QuoteQuery: DELETE FROM `clan_smf1`.smf_ajaxchat_messages WHERE dateTime < DATE_SUB(NOW(), interval DAY); Error-Report: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 4 Error-Code: 1064

if they refresh (F5) they enter AJAXchat.

Any ideas why this error is coming up?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on November 08, 2010, 12:48:34 PM
Quote from: graaywolf on November 05, 2010, 09:24:28 AM
ok the whole point for my forums is to have a chat room to chat in.... more folks at my site use the chat and very seldom post in the forums.....

1.1.12 is now released.... will the current version of chat install on the updated version of SMF?

thanks in advance for any reply...

i can't update till i know chat will work with 1.1.12

i'd lose members if i didn't have a chatroom...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aaraon on November 08, 2010, 12:54:22 PM
I'm having the same problem as Graaywolf. I can not stay without my chat, but I would like to upgrade the version of the forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: oreodunno on November 08, 2010, 02:31:24 PM
Hi everyone,

Several people are having issues with the Chrome browser throwing an error when they click the input box to type in their Shout.  Everyone is asking for help on the Google develeopment page but no response yet.  If anyone has an idea to patch this issue, that'd be the best news ever!

google.com/support/forum/p/Chrome/thread?tid=4887282bde990424&hl=en

Thanks for any help you can provide, the error is very annoying having to dismiss the window every time.

--Oreo
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: psyxeon on November 08, 2010, 06:12:08 PM
I just noticed this error in Google chrome only.

Firefox and explorer working fine no errors

This appears every time I refresh the page and c click on the chat, smilies or shout box

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi56.tinypic.com%2F13z4y0g.jpg&hash=d817610036df1bb1be765b358bcb0f6af3f84c5f)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: seroxatmad on November 09, 2010, 01:22:50 AM
Has anyone installed this on RC4 yet?

I am having the error You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

Changed the directory via FTP and even tried SMF to 777

Cheers

JOhn
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Deadairdave on November 09, 2010, 11:29:39 AM
Quote from: seroxatmad on November 09, 2010, 01:22:50 AM
Has anyone installed this on RC4 yet?

I am having the error You cannot download or install new packages because the Packages directory or one of the files in it are not writable!

Changed the directory via FTP and even tried SMF to 777

Cheers

JOhn

I too am awaiting to see an update but, from what I've seen of other mods I used in RC3, there seems to have been several changes to the coding in RC4, which seems to be baffling the Mod Devs.  I just wonder if this is the case with this Mod also?!!

Daft me should of checked to see if the mods I used albeit 5 in RC3 had been updated.  Sadly, only one has, and from reading the support pages of the other 4 mods (including this one), no one seems to be aware of when or, if an update will be produced anytime soon. :(

One thing I will suggest john, try 755 for you directories and 644 for your files.  I was using 777 for my directories until last week; and my RC3 vanished into a message of 'internal server error' messages.  Turned out my host had changed permissions from 777 to a maximum of 755 without telling me or anyone else, nice eh.

I guess with all the mods working voluntary, any updates may be a while to materialise.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nob4uask on November 10, 2010, 07:23:36 PM
Morn All,

Really new to this and prefer trying to figure things out by reading and researching but not having any luck.  I just installed the ajaxchat integration and it went fine although I have the same old 404 error.

There isn't an .htaccess file in the same directory as the iss.php file, don't even know where to start.  I am running an apache2 server with default theme of smf 1.1.12

Please keep it kinda simple because I am getting older and slower.

Thank you for you time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: viswanath608 on November 11, 2010, 09:37:47 AM
Hello all,
i'm having problem in this mod  :( i have installed this mod and did all the permissions and all is done but its saying this error

                        (20:01:07) ChatBot: Error: Connection status: 500

please help me to fix it :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rower on November 11, 2010, 01:19:35 PM
Update to rc4 please :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: baptie on November 11, 2010, 05:07:26 PM
Can anyone direct me to the method of removing the 'chat' button from Guest/non member header account logins?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nob4uask on November 11, 2010, 06:11:50 PM
Quote from: baptie on November 11, 2010, 05:07:26 PM
Can anyone direct me to the method of removing the 'chat' button from Guest/non member header account logins?

In the index.template.php do a search for "chat" and find the code that adds the option.  Then add the following just before the "echo" command.

if ($context['user']['is_logged'])

This should make it where you can only see it if you are logged in.

I think that this is what you want.  I am new to this and my first 2 posts where asking for help..lol
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JoeB on November 11, 2010, 07:20:17 PM
Quote from: viswanath608 on November 11, 2010, 09:37:47 AM
Hello all,
i'm having problem in this mod  :( i have installed this mod and did all the permissions and all is done but its saying this error

                        (20:01:07) ChatBot: Error: Connection status: 500

please help me to fix it :(

I have same error using SMF 2.0 RC4
I changed the file permissions to 755 for two files as adviced but the error comes again
files:
ftp://******.com/public_html/forums/shoutBox/index.php
ftp://******.com/public_html/forums/chat/index.php

Two popup menues say:
TypeError: Object doesn't support this property or method

Please advice

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: patricia2019 on November 11, 2010, 09:18:34 PM
It is possible to set-up this Mod, and have a password protected chat room? 

Is there anyone who could install this mod for me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: baptie on November 12, 2010, 02:24:10 AM
Quote from: nob4uask on November 11, 2010, 06:11:50 PM
Quote from: baptie on November 11, 2010, 05:07:26 PM
Can anyone direct me to the method of removing the 'chat' button from Guest/non member header account logins?

In the index.template.php do a search for "chat" and find the code that adds the option.  Then add the following just before the "echo" command.

if ($context['user']['is_logged'])

This should make it where you can only see it if you are logged in.

I think that this is what you want.  I am new to this and my first 2 posts where asking for help..lol

Thanks dude, will give it a go tonight  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: broknindarkagain on November 13, 2010, 11:06:37 PM
How can I change the default background color of the shoutbox from white to black or grey?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DilSe on November 16, 2010, 04:12:57 PM
this mod for SMF 2.0 RC4....?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on November 16, 2010, 05:01:24 PM
Does anyone know why chat would stop printing messages written in the text field?

I tried to use my ajax chat today, and the page loads fine.  Looks like its working, but when I go and type a message and press "Send" nothing is printed on screen...  I haven't touched any configs lately.  I did install Pretty URLS, but I disabled that to test, and even have it set to ignore the 'chat' action and no change, so I don't think it's that.

SMF Version 1.1.11


Thanks folks!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: viswanath608 on November 17, 2010, 07:40:00 AM
i asked for help till now no one din't help me  :(  :-\

please help me

i have fixed one error but how to fix this error please help me to fix this :(  :'(

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 17, 2010, 11:47:03 AM
Quote from: patricia2019 on November 11, 2010, 09:18:34 PM
It is possible to set-up this Mod, and have a password protected chat room? 

Is there anyone who could install this mod for me?

What do you mean by password protected chatroom?
Quote from: broknindarkagain on November 13, 2010, 11:06:37 PM
How can I change the default background color of the shoutbox from white to black or grey?

You should find the answer in the FAQs on the first post of the mod.

Quote from: viswanath608 on November 11, 2010, 09:37:47 AM

Please refer to previous answer.

Hello all,
i'm having problem in this mod  :( i have installed this mod and did all the permissions and all is done but its saying this error

                        (20:01:07) ChatBot: Error: Connection status: 500

please help me to fix it :(


Fo those whom request an update to the mod to RC4. Have you tried the advance then emulate method which can be found below the mod list?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: great nuvi on November 18, 2010, 03:32:19 AM
Please Help me :'(

I installed ajaxchat integrator_321.zip and this is what happened:

Fatal error: Cannot redeclare getshoutboxcontent() (previously declared in /home/caregiv0/public_html/forum/Sources/Load.php:2208) in /home/caregiv0/public_html/forum/Sources/Load.php on line 2286

I cant access my forum now. that message is showing on the browser. my forum is dead,
SMF v 1.1.12

What should I do??? Please help me.

OK problem solved!!! Thanks to my courage even if i might irreversibly damage my forum more ;D

What I did is to go to Load.php and find the script added when installing AJAX. deleted it.
Then I was able to view my forum again and uninstall ajax totally.

I panic to death actually :laugh:
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on November 19, 2010, 09:28:06 AM
Will this mod install on 1.1.12

can't update my forum till i know for sure... the last post wasn't encouraging.... the whole point of my forums was to have a chat room platform....

i'll keep 1.1.11 if it doesn't..... i've done allot of work putting in smileys & customizing

oh well

it's a good chat room.... to bad there's no real support for it

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JoeB on November 19, 2010, 09:45:34 AM
Quote
Fo those whom request an update to the mod to RC4. Have you tried the advance then emulate method which can be found below the mod list?

I tried this but still comes with same error:

TypeError: Object doesn't support this property or method

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jrudder on November 20, 2010, 01:49:48 PM
This might have been answered here already but 360+ pages would take forever to look through- is ajax chat buggy for everyone or is it just my install? I have the latest version installed on rc3, it works, just seems pretty buggy. Hangs, kicks people out for invalid IPs, posts replies minutes after they have been entered...

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 20, 2010, 04:50:43 PM
Ajax chat used to cause a lot of issues for me, due to my host not being able to run it, properly.  Got a bigger, better hosting company, and those issues were resolved.  Though, it has alot to do with really how active your chat is, and members in there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Alto on November 20, 2010, 05:38:01 PM
hello
Great MOD works like a charm except...
I am getting an error when I log in (everyone sees this as well when they log in)

Can anyone direct me to what I did wrong and where I can fix it?
I did some adjusting (followed the great instructions at the top of this thread) to modify template, rooms, added message everything is awesome just what we needed, but this annoying error spoils the near perfection! help me please?

Error: Failed to load sound file (Flash IO Error).
it repeats 6 times in the chat window
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RacingETR on November 23, 2010, 06:42:48 AM
Hola alguien me puede decir como es que se hace para que el CHAT no auto-borre los mensajes escritos en el chat?

También me gustaría saber como activarle un historial de conversaciones :3

Saludos
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Marcin737 on November 24, 2010, 07:30:51 PM
Can someone recommend me how to move the shoutbox to be below the categories, please? I want it between categories and info center.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 24, 2010, 11:37:34 PM
^  Ummm, what smf version are you on?

Still waiting on the 2.0 RC4 update.  It's all that's keepung us from up[dating from 1.1.11 to smf 2 rc4 :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Marcin737 on November 25, 2010, 06:18:22 AM
1.1.12
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: danielwmoore on November 25, 2010, 10:58:13 AM
Quote from: hcfwesker on November 24, 2010, 11:37:34 PM
Still waiting on the 2.0 RC4 update.  It's all that's keepung us from up[dating from 1.1.11 to smf 2 rc4 :(

I installed it on a fresh RC4 installation without a problem.  However, it took a bit of tweaking on the shout.template.php file to make it more curve friendly. 

What this really needs is a new configuration option in the admin panel to allow you to choose top or bottom usage of the shoutbox.  Having to edit the files to do this manually is rather a drag.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 25, 2010, 11:17:47 AM
Quote from: Marcin737 on November 24, 2010, 07:30:51 PM
Can someone recommend me how to move the shoutbox to be below the categories, please? I want it between categories and info center.

The answer is in the posts somewhere. This has been requested before.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: great nuvi on November 25, 2010, 01:03:16 PM
Quote from: psyxeon on November 08, 2010, 06:12:08 PM
I just noticed this error in Google chrome only.

Firefox and explorer working fine no errors

This appears every time I refresh the page and c click on the chat, smilies or shout box

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi56.tinypic.com%2F13z4y0g.jpg&hash=d817610036df1bb1be765b358bcb0f6af3f84c5f)

Same error on me but only when entering chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RCmod on November 25, 2010, 02:05:50 PM
Hello I'm trying to get a little help adding the chat button to my custom theme.

I have a custom yellow version of Flagrant (http://custom.simplemachines.org/themes/index.php?lemma=1436) that I'm trying to add the "Chat" tab to.

This is the code I added to the index.template.php file.

// If the user is a guest, also show [register] button.
            if ($context['user']['is_guest'])
               echo '<li><a ' , $current_action=='register' ? ' class="current"' : '' , ' href="', $scripturl, '?action=register"><span>' , $txt[97] , '</span></a></li>';

            // the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
   echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
      <td valign="top" class="maintab_back">
         <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
      </td>';   
               
            // Otherwise, they might want to [logout]...
            if ($context['user']['is_logged'])
               echo '<li><a ' , $current_action=='logout' ? ' class="current"' : '' , 'href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '"><span>' , $txt[108] , '</span></a></li>';


Everything after "// the [chat] button" and before "// Otherwise, they might want to [logout]..." is the code that makes the chat link appear, its jut appearing incorrectly, although its working correctly.

This is the result of adding the above code.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi56.tinypic.com%2Fs6up6o.jpg&hash=6c9f79c633ec8837c05f941e66c53b7b3559e1a1)

Got a little help from Crip, the author of Flagrant and he suggested that I use this code instead.

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


This makes the tab appear correctly but when clicked on doesn't open the chat. I know there is some editing to Crip's code that needs to be done to make it work right but I honestly cant figure it out. Can some one help me with this please?

Thanks a lot and happy Thanksgiving.


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RacingETR on November 25, 2010, 04:09:31 PM
Quote from: great nuvi on November 25, 2010, 01:03:16 PM
Quote from: psyxeon on November 08, 2010, 06:12:08 PM
I just noticed this error in Google chrome only.

Firefox and explorer working fine no errors

This appears every time I refresh the page and c click on the chat, smilies or shout box

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi56.tinypic.com%2F13z4y0g.jpg&hash=d817610036df1bb1be765b358bcb0f6af3f84c5f)

Same error on me but only when entering chat

to me the same error occurs ... What would be the solution?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 25, 2010, 06:54:22 PM
Quote from: danielwmoore on November 25, 2010, 10:58:13 AM
I installed it on a fresh RC4 installation without a problem.  However, it took a bit of tweaking on the shout.template.php file to make it more curve friendly.

That's what i did.  Made a completely new freshly installed 2.0 RC4 site and first MOd i tried was the Ajax, did all the execute on the files , set up all the option, and still get the 500 Internal Server error.  And  have tried all the FAQ suggestions.

and, we never use the shoutbox, just the chat page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: viswanath608 on November 26, 2010, 04:33:30 AM
Quote from: great nuvi on November 25, 2010, 01:03:16 PM
Quote from: psyxeon on November 08, 2010, 06:12:08 PM
I just noticed this error in Google chrome only.

Firefox and explorer working fine no errors

This appears every time I refresh the page and c click on the chat, smilies or shout box

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi56.tinypic.com%2F13z4y0g.jpg&hash=d817610036df1bb1be765b358bcb0f6af3f84c5f)

Same error on me but only when entering chat

for me also same error but including this errors i have this errors to so i can't type there any thing

and other errors are this

Notice: Undefined index: show_download in /home/networku/public_html/Sources/TPSubs.php on line 201

Notice: iconv() [function.iconv]: Detected an illegal character in input string in /home/networku/public_html/chat/lib/class/AJAXChatEncoding.php on line 38

Notice: iconv() [function.iconv]: Detected an illegal character in input string in /home/networku/public_html/chat/lib/class/AJAXChatEncoding.php on line 38

Notice: iconv() [function.iconv]: Detected an illegal character in input string in /home/networku/public_html/chat/lib/class/AJAXChatEncoding.php on line 38


please help me to fix this errors :( please please please

Edit: i'm using SMF 2.0 RC3 please :( help i will be thank full to you :) :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: great nuvi on November 26, 2010, 06:24:58 AM
To RCMod check this manual http://docs.simplemachines.org/index.php?topic=564.0

Just carefully analyze that and add your mod. Its there in that manual. You shouldnt be lost ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rain Forest on November 26, 2010, 06:25:58 AM
Please add your TPSubs.php & AJAXChatEncoding.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: viswanath608 on November 26, 2010, 08:41:15 AM
Hello,
in attachments there are that both files please check and help me :(

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: danielwmoore on November 26, 2010, 09:58:20 AM
Quote from: hcfwesker on November 25, 2010, 06:54:22 PM
Quote from: danielwmoore on November 25, 2010, 10:58:13 AM
I installed it on a fresh RC4 installation without a problem.  However, it took a bit of tweaking on the shout.template.php file to make it more curve friendly.

That's what i did.  Made a completely new freshly installed 2.0 RC4 site and first MOd i tried was the Ajax, did all the execute on the files , set up all the option, and still get the 500 Internal Server error.  And  have tried all the FAQ suggestions.

and, we never use the shoutbox, just the chat page.

AjaxChat is famous for throwing out the 500 Internal Server error.  You need to get chat working by itself before you install the mod.  At least that's what I did.  No guarantee that will solve your issue, but it solved mine.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rain Forest on November 26, 2010, 10:36:51 AM
Quote from: viswanath608 on November 26, 2010, 08:41:15 AM
Hello,
in attachments there are that both files please check and help me :(

Hmm, the Author of this mod should look at this:

TPSubs.php
if($context['TPortal']['show_download']==1)

AJAXChatEncoding.php
return iconv($charsetFrom, $charsetTo, $str);
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: viswanath608 on November 26, 2010, 10:53:32 AM
what to do now? should i add that codes in error showing lines?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: coolfx350 on November 27, 2010, 07:32:05 AM
same error here, any help please?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi56.tinypic.com%2F13z4y0g.jpg&hash=d817610036df1bb1be765b358bcb0f6af3f84c5f)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: villedepuissance on November 30, 2010, 01:43:05 PM
Okay I installed this and I have no clue how to move it from way up under the header to beneath my footer. I attached a link to my site and would really appreciate any help. Also I will admit I am completely new to this type of coding and will probably need small words and lots of steps/help.

Thank you to anyone willing to help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 30, 2010, 04:22:24 PM
Looks like our forum won't make the smf2 RC4  upgrade :(  Stuck on smf 1.1.11 forever, I guess, with no more updates.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: moscoquera on November 30, 2010, 05:23:52 PM
Quote from: petecheng on November 27, 2010, 07:32:05 AM
same error here, any help please?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi56.tinypic.com%2F13z4y0g.jpg&hash=d817610036df1bb1be765b358bcb0f6af3f84c5f)

the solution for this error is remplace the old js/FABridge.js file in the chat folder with the attachment
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 30, 2010, 05:45:49 PM
Quote from: hcfwesker on November 30, 2010, 04:22:24 PM
Looks like our forum won't make the smf2 RC4  upgrade :(  Stuck on smf 1.1.11 forever, I guess, with no more updates.

The mod works on RC4.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 01, 2010, 12:39:16 AM
I kep getting the internal server error, the 500 one.  I've been using this on our 1.1.11 forum , never had this error.  tried all the suggestions in the FAQ, and getting nowhere.  Several other members reported this issue when upgrading to RC4

Any suggestions you could make would be appreciated :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 01, 2010, 09:51:53 AM
Have you tried to change the chat and folder permissions to 755?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GIJANE666 on December 01, 2010, 10:22:38 AM
Quote from: Brack1 on November 17, 2010, 11:47:03 AM
Fo those whom request an update to the mod to RC4. Have you tried the advance then emulate method which can be found below the mod list?

Can you please explain this to me. I'm not very good with CSS and I have a Gaming Forum where the chat is a very crucial thing. I can't install the Ajax Chat because it's not for RC4. I'm using another one (which sucks) now. I would love to have the Ajax back.

Can you help me with this??

Jane
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 01, 2010, 01:49:34 PM
Quote from: Brack1 on December 01, 2010, 09:51:53 AM
Have you tried to change the chat and folder permissions to 755?

I tried every folder every file at 755, and 777.  It was so simple on smf 1.1.11 , some reason it's impossible to get working on RC4.

While I'm here, i do want to ask, is it possible to raise the dice value to 200, (default is at 100) , and if so, where would i edit that?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on December 02, 2010, 12:19:44 AM
Quote from: Stigmartyr on November 16, 2010, 05:01:24 PM
Does anyone know why chat would stop printing messages written in the text field?

I tried to use my ajax chat today, and the page loads fine.  Looks like its working, but when I go and type a message and press "Send" nothing is printed on screen...  I haven't touched any configs lately.  I did install Pretty URLS, but I disabled that to test, and even have it set to ignore the 'chat' action and no change, so I don't think it's that.

SMF Version 1.1.11


Thanks folks!!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.smileyvault.com%2Falbums%2Fforum%2Fsmileyvault-bump.gif&hash=9a8e167c45b87ebe4c0febf4ca9e20665c4dd9c1)

Any help would be greatly appreciated.  Chat just stopped working without any updates or changes to site files or server. :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abhishek_del on December 02, 2010, 02:18:04 PM
Hello,

I installed Ajax Chat Integration Mod on 2.0 RC4. During installation it showed two errors in file index.template.php
I manually did the changes in this file but still the package wasn't working. It was visible on the home page but the nothing happened on clicking the Chat button.

I have tested it on Apache 2.2 installed as a WAMP installation on my laptop. I test on my laptop before making any changes on the server.

Please help me with getting this package working. I searched throughout the forum but couldn't find the solution.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: uniektekniek on December 02, 2010, 11:47:54 PM
mid last year there was talk of people looking into an AI chat bot for this mod.. that would be an awesome feature i reckon.. is there anymore word on this happening?

http://www.simplemachines.org/community/index.php?topic=257973.msg2094462#msg2094462
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 03, 2010, 12:14:32 PM
I very much doubt it.

Mrtrc266 seems to have vanished.

Both the Monster Mansion and World of poker forums in his signature are no longer active.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GIJANE666 on December 03, 2010, 12:37:00 PM
Quote from: Brack1 on December 03, 2010, 12:14:32 PM
I very much doubt it.

Mrtrc266 seems to have vanished.

Both the Monster Mansion and World of poker forums in his signature are no longer active.

Well that's just great :( I need a good chat on my site otherwise I lose members. Chatting on a Gaming site is a crucial thing. I'm thinking of going back to RC3 again if there is no solution for the Ajax chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 03, 2010, 12:45:28 PM
Can you post the probelems here and I will do what I can.

The mod does work on RC4. Is on my test forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GIJANE666 on December 03, 2010, 01:35:00 PM
Can I PM you my Admin details and maybe you can have a look at it. Cause this is very frustrating. Because of not having a proper chat my daily visit has decreased severely.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 03, 2010, 01:39:35 PM
Sure.

However I won't promise any miracles.

Me and coding don't go well together.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 03, 2010, 02:00:38 PM
GIJane

You currently have 3 different chat mods on your forum.

2 SI Chat

Sidesparks Chat Integration

and this mod which is not installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GIJANE666 on December 03, 2010, 02:05:51 PM
Yeah I know... as I said I'm desperate. I'll unstall the Sidepark and the 2-SI one.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 03, 2010, 02:21:10 PM
Ok

Have installed the mod for you.

BUT

The index template file requires an edit on the default theme.

If you require any help with this please scream.

Also there are many edits I can help with such as a word censor etc.

Right now though I have to go eat.

EDIT:

Have since noticed a couple errors. Will have a look at them later if required.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GIJANE666 on December 03, 2010, 02:24:01 PM
Thanks a lot so far, but the chat doesnt work. I can't type in it. Also I don't know how to ajust the index template so ARRGGGHHHH that was my scream for help :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abhishek_del on December 03, 2010, 02:40:03 PM
Quote from: Brack1 on December 03, 2010, 12:45:28 PM
Can you post the probelems here and I will do what I can.

The mod does work on RC4. Is on my test forum.

Hello,

I test packages before installing on the server. The AJAX chat package is not working in the sense that when we click on the Submit button, nothing happens. I have manually checked all the parse instructions for RC4 but still it is giving the same problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SavvyQc on December 03, 2010, 05:16:30 PM
has anyone gotten this working on RC4?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 03, 2010, 05:23:57 PM
Quote from: SavvyQc on December 03, 2010, 05:16:30 PM
has anyone gotten this working on RC4?

Many people have managed to get the mod working.

Have you installed the mod? Errors?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 03, 2010, 05:26:57 PM
Quote from: GIJANE666 on December 03, 2010, 02:24:01 PM
Thanks a lot so far, but the chat doesnt work. I can't type in it. Also I don't know how to ajust the index template so ARRGGGHHHH that was my scream for help :)

Can you please attach the default index template file here sothe edit can be applied for you.

I noticed you have two youtube related mods plus a gallery installed.

Have you looked at the AEVA mod?

Also the dynamic memberlist mod didn't look as tho it had installed properly.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GIJANE666 on December 03, 2010, 05:45:41 PM
This is the template. I've deleted the youtube mod and the SMF gallery and installed Avea.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jjzx2sr on December 03, 2010, 11:27:36 PM
So anyone got this up and running for RC4 yet. This is my main concern i can do without all the other mods but this one.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abhishek_del on December 04, 2010, 07:37:17 AM
Hello,

I test packages before installing on the server. The AJAX chat package is not working in the sense that when we click on the Submit button, nothing happens. I have manually checked all the parse instructions for RC4 but still it is giving the same problem.

I have attached the index.template.php Please help!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 04, 2010, 08:50:37 AM
Quote from: jjzx2sr on December 03, 2010, 11:27:36 PM
So anyone got this up and running for RC4 yet. This is my main concern i can do without all the other mods but this one.

If you look through the posts you will see that people are already using the mod on RC4.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 04, 2010, 08:51:22 AM
Quote from: abhishek_del on December 04, 2010, 07:37:17 AM
Hello,

I test packages before installing on the server. The AJAX chat package is not working in the sense that when we click on the Submit button, nothing happens. I have manually checked all the parse instructions for RC4 but still it is giving the same problem.

I have attached the index.template.php Please help!!

Have you changed the folder permissions to 755?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jjzx2sr on December 04, 2010, 10:37:35 AM
Quote from: Brack1 on December 04, 2010, 08:50:37 AM
Quote from: jjzx2sr on December 03, 2010, 11:27:36 PM
So anyone got this up and running for RC4 yet. This is my main concern i can do without all the other mods but this one.

If you look through the posts you will see that people are already using the mod on RC4.

I tried installing it, i had a clean install of RC4, no other mods and still got errors, also tired the emulation trick under the advanced options no go. I know all about the permissions 755 etc, the chat box error and etc also how to fix them. This isn't my first barn dance lol. My question is since the original creators seem to be gone with the wind can someone pick this up and mod it for RC4.

I even did the manual edits, i will try it once more before passing judgment i suppose.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stigmartyr on December 04, 2010, 01:32:48 PM
Does anyone know why chat would stop printing messages written in the text field?

I tried to use my ajax chat today, and the page loads fine.  Looks like its working, but when I go and type a message and press "Send" nothing is printed on screen...  I haven't touched any configs lately.  I did install Pretty URLS, but I disabled that to test, and even have it set to ignore the 'chat' action and no change, so I don't think it's that.

SMF Version 1.1.11
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abhishek_del on December 04, 2010, 01:38:25 PM
Quote from: Brack1 on December 04, 2010, 08:51:22 AM
Quote from: abhishek_del on December 04, 2010, 07:37:17 AM
Hello,

I test packages before installing on the server. The AJAX chat package is not working in the sense that when we click on the Submit button, nothing happens. I have manually checked all the parse instructions for RC4 but still it is giving the same problem.

I have attached the index.template.php Please help!!

Have you changed the folder permissions to 755?

Hello,

Thanks for your reply. I am using Wampserver (www.wampserver.com) on a windows machine. On right clicking the folder, the Read and Execute has been already enabled.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 04, 2010, 06:07:01 PM
Quote from: jjzx2sr on December 04, 2010, 10:37:35 AM
Quote from: Brack1 on December 04, 2010, 08:50:37 AM
Quote from: jjzx2sr on December 03, 2010, 11:27:36 PM
So anyone got this up and running for RC4 yet. This is my main concern i can do without all the other mods but this one.

If you look through the posts you will see that people are already using the mod on RC4.

I tried installing it, i had a clean install of RC4, no other mods and still got errors, also tired the emulation trick under the advanced options no go. I know all about the permissions 755 etc, the chat box error and etc also how to fix them. This isn't my first barn dance lol. My question is since the original creators seem to be gone with the wind can someone pick this up and mod it for RC4.

I even did the manual edits, i will try it once more before passing judgment i suppose.

I can't help but agree with this post.  I do get tired of getting asked if i changed file permissions to 755 when i responded with that 20 replies ago.  I know the FAQ section like the back of my hand, been using this on 1.1.11 & sm2 rc3 for a long time with no issues whatsoever .... the thing just WILL NOT work on RC4 for me.

My forum is ready for the RC4 move, this one mod hicup is all that's stopping us from upgrading from 1.1.11 to smf 2RC4  :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 04, 2010, 06:13:35 PM
hcfwesker

You possibly know I have stated I am no code expert. Will try and help if I can however.

Can ya post a list of your mods please. Make that a starting point shall we?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 04, 2010, 07:50:55 PM
No, bud, never meant to offend you.  Was just agreeing with jjzx that we both have the same issue, and you're not the first to ask me about changing my fiel permissions, and such.   I always get that suggestion, and it hasn't worked the last 3-4 who suggested it.  Sorry if i was being an a** ; as i said, just ready to get on Rc4 and getting aggrivated since this has been 3 weeks ago and this hasn't been updated :(

SMF 2RC4 test site:  http://www.brawldomain.com/AASMF2

http://www.brawldomain.com/AASMF2/index.php?topic=12.msg47#msg47 <--- #1 on my "to do List, lol  which i wrote this list after 2 weeks of working/tesing on smf2

This was actually the first MOD I installed on a fresh smf 2 RC4 forum.  Ajax is the most important, so I went with it first.  there were no installing errors, I added the file permissions 755 even tried 777, changed the chat settings in admin panel,  went through everything about the 500 Internal Server error in the FAQ (but it's the only thing stopping it)

We don't use the Shoubox, so only option in admin panle i checked were ...
chat in popup page?
Enable online chat users numbering on chat button?
Show online users below total logged in time section?


Mods added (not all installed)

1.   Member Color Link   3.0.8     [ List Files ] [ Delete ]
2.   Users Active in Last 24 Hours   1.0    [ Install Mod ] [ List Files ] [ Delete ]
3.   Anti-Bot Registration Puzzles   1.2.0.1     [ Uninstall ] [ List Files ] [ Delete ]
4.   Shiny Smiley Icons   1.0     [ Uninstall ] [ List Files ] [ Delete ]
5.   Spoiler BBCode   1.1.3     [ Uninstall ] [ List Files ] [ Delete ]
6.   Curve_centered_menu   1.1     [ List Files ] [ Delete ]
7.   cbi, 1.0   1.5.7     [ Uninstall ] [ List Files ] [ Delete ]
8.   Global Headers Footers   2.0     [ Uninstall ] [ List Files ] [ Delete ]
9.   SMF Multi Quote   1.1.2     [ Uninstall ] [ List Files ] [ Delete ]
10.   Top 10 Posters and Topic Starters Stats (Today, Week, Month, and Year)   2.5.1     [ List Files ] [ Delete ]
11.   Separate Replies and Views Column   1.7     [ Uninstall ] [ List Files ] [ Delete ]
12.   Countdown BBCode   1.3     [ List Files ] [ Delete ]
13.   Board Viewers Mod   1.2.1.1a     [ Uninstall ] [ List Files ] [ Delete ]
14.   Who Voted What?   1.1.3    [ List Files ] [ Delete ]
15.   Users Online Today   1.5.6     [ Uninstall ] [ List Files ] [ Delete ]
16.   VB Style Board Index   1.6    [ Install Mod ] [ List Files ] [ Delete ]
17.   SMF Social Groups Lite   2.1     [ List Files ] [ Delete ]
18.   Ultimate Profile   0.9.1     [ Uninstall ] [ List Files ] [ Delete ]
19.   WYSIWYG Quick Reply   2.1     [ List Files ] [ Delete ]
20.   Pretty URLs   1.0RC2a     [ Uninstall ] [ List Files ] [ Delete ]
21.   Skype Profile Field   1.1    [ Install Mod ] [ List Files ] [ Delete ]
22.   Bookmarks   2.3     [ List Files ] [ Delete ]
23.   Force Topic Read On Login Mod   2.1     [ Uninstall ] [ List Files ] [ Delete ]
24.   SoLoSMiLeYS   1.0     [ Uninstall ] [ List Files ] [ Delete ]
25.   XarSmilies-1   1.0     [ Uninstall ] [ List Files ] [ Delete ]
26.   SA Shop   0.4.8     [ Uninstall ] [ List Files ] [ Delete ]
27.   Reason For Editing Mod   2.3.2     [ List Files ] [ Delete ]
28.   Skype Integration   2.1.2     [ List Files ] [ Delete ]
29.   Profile Fields & Icons Mod   1.0    [ Install Mod ] [ List Files ] [ Delete ]
30.   Member Awards   2.2.2     [ Uninstall ] [ List Files ] [ Delete ]
31.   Separated Birthdays from Events   1.1.5     [ List Files ] [ Delete ]
32.   To-Do List   2.0    [ List Files ] [ Delete ]
33.   Enhanced Dropdown   1.1    [ List Files ] [ Delete ]
34.   YouTube BBCode   2.6     [ Uninstall ] [ List Files ] [ Delete ]
35.   SA Affiliates   3.3.5.4     [ Uninstall ] [ List Files ] [ Delete ]
36.   Social Bookmarks   2.0     [ List Files ] [ Delete ]
37.   SMF Advanced Topic Prefix Mod   2.1.4     [ List Files ] [ Delete ]
38.   Activity in Profile   1.1     [ Uninstall ] [ List Files ] [ Delete ]
39.   SMF Arcade   2.5 RC1     [ List Files ] [ Delete ]
40.   SMFShop   3.1.6.1    [ Install Mod ] [ List Files ] [ Delete ]
41.   Share This Topic   2.5.1    [ Install Mod ] [ List Files ] [ Delete ]
42.   Todays Birthday RC1 - MColorLink   1.1    [ Install Mod ] [ List Files ] [ Delete ]
43.   AjaxChat Integration   3.2.1 (modified for SMF 2 RC3)     [ Uninstall ] [ List Files ] [ Delete ]
44.   The Rules   1.3     [ Uninstall ] [ List Files ] [ Delete ]
45.   2-SI Chat   rev34     [ Uninstall ] [ List Files ] [ Delete ]
46.   Team Page   1.1.6     [ Uninstall ] [ List Files ] [ Delete ]
47.   6 Custom buttons / tabs with Sub Menus (4)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 04, 2010, 07:55:13 PM
Aha

You have two chat mods innstalled on the forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 04, 2010, 08:40:45 PM
That 2-SI chat one was just recently added (like 2 days ago), as a "last resort" if ajax never got to working properly.  It's not activated or anything.  (only chat mod on smf that was RC4 ready)

I'll go uninstall it, though, and see if Ajax magically started working on our forum since the past 2 days.

EDIT:

Was removed, now where to?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 04, 2010, 09:52:20 PM
Sorry for Double Posting, but is too excited ...

It's now working.  When i changed all permissions to 777 awhile back, (after 755 failed)  I changed them all back except for the chat/inde.php file was still set to 777 ... I changed it back to 755, and VIOLA!

So far it's working.

Thanx Brack1  ... sorry for being such a pest :)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 04, 2010, 09:53:57 PM
Hey I may become a pest to you one day.

:o
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abhishek_del on December 05, 2010, 12:59:15 AM
Hey Brack,

I am waiting for your reply dude. I am having the same problem as hcfwesker and jjzx2sr. This is preventing me from making an upgrade.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GIJANE666 on December 05, 2010, 05:43:07 AM
@ Brack... I posted my index.template.php but didn't hear from you. I know you're busy, but can you please have a look at it. I also delete the SMF gallery and the Youtube Mod and installed the Avea.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 05, 2010, 06:29:10 AM
Quote from: abhishek_del on December 05, 2010, 12:59:15 AM
Hey Brack,

I am waiting for your reply dude. I am having the same problem as hcfwesker and jjzx2sr. This is preventing me from making an upgrade.

Just changing the chat's folder's permissions wasn't enough for me ... may also need to manually change file permissions inside the chat folder, specifically the index.php file, and maybe others, to 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: abhishek_del on December 05, 2010, 09:23:23 AM
Quote from: hcfwesker on December 05, 2010, 06:29:10 AM
Quote from: abhishek_del on December 05, 2010, 12:59:15 AM
Hey Brack,

I am waiting for your reply dude. I am having the same problem as hcfwesker and jjzx2sr. This is preventing me from making an upgrade.

Just changing the chat's folder's permissions wasn't enough for me ... may also need to manually change file permissions inside the chat folder, specifically the index.php file, and maybe others, to 755

You have any idea how to do this is Windows. I am using Wampserver.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 05, 2010, 12:12:51 PM
GI Jane

Can you please let me have access to your admin and I will see what I can do.

I always delete access info

Abhishek

I have no idea what wampserver is.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GIJANE666 on December 05, 2010, 12:16:10 PM
Well I have contacted my host and not sure what they did, but my site is fast again and I installed the Ajax Chat and it works.

I'll PM you my Admin details anyway Brack, cause I just want to be sure it work tomorrow as well.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sharks on December 05, 2010, 01:05:15 PM
So, is this mod 100% working and safe to install on my SMF forum 1.1.11? I am looking for the best shoutbox for SMF. Currently using the SMFPacks shoutbox and it's choke full of bugs and its developer has abandoned the mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jjzx2sr on December 05, 2010, 01:13:49 PM
I reinstalled it on the default theme and did the manual edits again and it now works. Well i had to change the chat/index.php and shoutbox/index.php to 755 and all is well with the world. I am editing my custom theme as well.

In the public html folder find  /Themes/default/index.template.php

Find around line 200-203

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

Add before

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

Find around line 400

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

Replace with

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



That should get this working with your SMF 2.0 RC4 i made this the first mod i installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 05, 2010, 04:24:23 PM
Quote from: sharks on December 05, 2010, 01:05:15 PM
So, is this mod 100% working and safe to install on my SMF forum 1.1.11? I am looking for the best shoutbox for SMF. Currently using the SMFPacks shoutbox and it's choke full of bugs and its developer has abandoned the mod.

There is no reason as to why the mod won't work.

I would advise you update to 1.1.12 though.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sharks on December 05, 2010, 04:32:17 PM
I have installed this on a fresh SMF 1.1.12 installation and it gives me only ChatBot 500 errors at whatever i type in the shoutbox. It just doesn't work!! :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 05, 2010, 04:40:22 PM
The chatbot 500 error has been explained numerous times within the thread.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: syphergaming on December 06, 2010, 07:41:17 AM
works great for me
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: starlightmishi on December 09, 2010, 02:07:32 PM
After using this mod perfectly for months...
all of my members keep getting the dreaded 503 error repeatedly.
Is there any options or modifications I can make to relieve stress off our server?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 4T3IG0 on December 11, 2010, 11:38:06 PM

Hi to all, special to the ones who have it running on RC4.

For those, are you sure that all members can acess the Shout?

On my Rc4 it works perfectly but only for Adm.

And guests can't login no matter "// Enable/Disable guest logins:
$config['allowGuestLogins'] = true;"  is set to true or false at /chat/lib/config.php /

Any sugestion?

Thanks for your time and help.


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 4T3IG0 on December 11, 2010, 11:40:33 PM
Quote from: 4T3IG0 on December 11, 2010, 11:38:06 PM

Hi to all, special to the ones who have it running on RC4.

For those, are you sure that all members can acess the Shout?

On my Rc4 it works perfectly but only for Adm.

And guests can't login no matter "// Enable/Disable guest logins:
$config['allowGuestLogins'] = true;"  is set to true or false at /chat/lib/config.php /

Any sugestion?

Thanks for your time and help.




Other members can't see the Shoutbox or login in the Chat...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 12, 2010, 10:30:30 AM
Have you set the member permissions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Essence on December 12, 2010, 12:42:45 PM
Hello..
I have put in the smilie intergration popup..
Everything works fine, my question is, when coming to the chat room is it possible to have a default set of smilies
showing(10) and if the person wants different smilies he can then hit the insert smilie button for the rest of the emoticons to show?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 12, 2010, 05:38:59 PM
If i want to clear all the stored chat messages (we have 33,000 pages+), like wipe them all clean.  would i use phpMyAdmin, under smf_ajaxchat_messages and use the "Empty" tab?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 13, 2010, 10:19:20 AM
Quote from: viswanath608 on November 11, 2010, 09:37:47 AM
Hello all,
i'm having problem in this mod  :( i have installed this mod and did all the permissions and all is done but its saying this error

                        (20:01:07) ChatBot: Error: Connection status: 500

please help me to fix it :(

The answer can be found within the FAQ link on th first post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 4T3IG0 on December 13, 2010, 01:12:10 PM
Quote from: Brack1 on December 12, 2010, 10:30:30 AM
Have you set the member permissions?

That did it...  I had this Mod in a before version and I think then it didn't had that permissions on Adm.

Also I passed there, but looked at the right side...  were normaly we can find it in other Shout Mods.

Thanks a lot.

Regards.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Essence on December 14, 2010, 12:37:58 AM
Quote from: Essence on December 12, 2010, 12:42:45 PM
Hello..
I have put in the smilie intergration popup..
Everything works fine, my question is, when coming to the chat room is it possible to have a default set of smilies
showing(10) and if the person wants different smilies he can then hit the insert smilie button for the rest of the emoticons to show?

Anyone have a solution to the above?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IngeJones on December 14, 2010, 07:07:44 AM
NM - found it :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eyo on December 16, 2010, 04:35:49 AM
omg im almost there. no more 500 errors, clean install changed permissions on both folders to 755. im the administrator and when i type something nothing comes out, (yeah its enabled in acp). please help me, i know im that close, i can smell the chat already :)




i see the chat button in the menu looks like chat(1) which is obviously me being admin, when i click it though this appears, seems to be related to why i cant see what i type
Notice: Undefined index: modsettings_title in /home/pcboi/public_html/Sources/Subs.php on line 4170

please help!:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eyo on December 16, 2010, 05:43:14 PM
lol i give up on this one. now im stuck with potential errors when i uninstall and prob have that chat button up there. anyone know how to remove this from the menu. im going with smfpacks shoutbox emulated in rc3 - no errors, clean install/uninstall works right away.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 16, 2010, 09:53:07 PM
Quote from: ggman on December 16, 2010, 05:43:14 PM
lol i give up on this one. now im stuck with potential errors when i uninstall and prob have that chat button up there. anyone know how to remove this from the menu. im going with smfpacks shoutbox emulated in rc3 - no errors, clean install/uninstall works right away.
[/quote

ggman would you please list the mods used on your forum please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kiranchandra on December 17, 2010, 07:46:23 AM
SOME ONE TELL ME HOW TO INSTALL THIS?????????I M NEW HERE SORRY :-[
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bugo on December 17, 2010, 08:13:08 AM
At first disable CAPS LOCK please :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kat on December 17, 2010, 01:55:55 PM
Quote from: kiranchandra on December 17, 2010, 07:46:23 AM
SOME ONE TELL ME HOW TO INSTALL THIS?????????I M NEW HERE SORRY :-[

Package Manager...

http://wiki.simplemachines.org/smf/Packages
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 18, 2010, 01:02:52 PM
Okay I am almost at my wits end.

Upgraded to RC4.

Befgore the upgrade the chat was fine.

On the test forum I see the users online in chat BUT I don't see them on the main forums chat.

Before anybody asks I have used this mod since I started using smf in the days of 1.1.8.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on December 18, 2010, 03:56:50 PM
I need help getting the "chat(1)" to display ( as well as the text related to this mod in the admin features and options area ) In an older verion of smf I was able to get it all to work by using the "load standard language" mod but that mod is no longer up to date and compatible with 1.1.12 which is what I am using. ( default theme )

Any help would be appreciated. THANKS!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 18, 2010, 05:44:38 PM
Ernie are there any errors in your log related to the mod?

Did the mod install cleanly?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on December 19, 2010, 12:58:32 AM
I used the package downloader and mod installed and applied fine.

I actually have several errors, but I think this is the one that is messing this part up....

Unable to load the 'Shout.english-utf8' language file.


I also get these 3 errors over and over again as well......

8: Undefined index: chat_no_user
File: /home/site/public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 414


8: Undefined index: chat
File: /home/site/public_html/forum/Themes/default/BoardIndex.template.php (main_above sub template - eval?)
Line: 690

8: Undefined index: chat_no_user
File: /home/site/public_html/forum/Themes/default/BoardIndex.template.php (main_above sub template - eval?)
Line: 292
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: syphergaming on December 20, 2010, 06:11:44 AM
im getting this error

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


when i click on the chat button
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on December 21, 2010, 12:10:32 PM
where did the help go?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 21, 2010, 12:23:22 PM
Ernie.

I would check your boardindex.template file against the mods parser.

I may be wrong but it looks as though some text may be missing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ErnieB on December 22, 2010, 12:39:42 AM
Checked the board index file and it is modded properly. I added the englisg-utf file ( created a copy of the english and renamed it ) and that solved the problem of the missing button and text on option.

However, NOW when I click the chat button to goto chat, I goto my sites 404 error page. Any Clues what I did wrong?

EDITT: nvm, changed th efile permissions and I think I go tit working now!!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eyo on December 22, 2010, 10:45:27 PM
is this working now? emulated to rc3 or just straight up rc4 install? i really love this mod but i end up uninstalling it like 15 times since i tried smf lol
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 25, 2010, 08:24:33 PM
Quote from: eyo on December 22, 2010, 10:45:27 PM
is this working now? emulated to rc3 or just straight up rc4 install? i really love this mod but i end up uninstalling it like 15 times since i tried smf lol

eyo the mod has to be emulated to RC3
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sinisterpain on December 26, 2010, 11:17:26 AM
Quote from: syphergaming on December 20, 2010, 06:11:44 AM
im getting this error

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


when i click on the chat button

Check your custom.php file is it empty or is the file missing
If its empty then you have the wrong file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fsokovic on December 27, 2010, 12:00:02 PM
Only administrators see shoutbox and can login to chat,what to do?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 27, 2010, 12:28:49 PM
Quote from: fsokovic on December 27, 2010, 12:00:02 PM
Only administrators see shoutbox and can login to chat,what to do?

Have you checked the membergroup permissions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fsokovic on December 27, 2010, 12:37:07 PM
yes,and I reset their permissions,and now works :P strange

forgot to ask...is there way to set minimum time between shouts that one user can write?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eyo on December 28, 2010, 04:10:43 AM
ok finally got this to work after 39874083 tries. how can i just put it in the forums?
the chat is on all pages and i dont know where to set it to just forums or any action page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Baloch on December 28, 2010, 09:53:32 AM
When it will be compatible with SMF 2.0 RC4?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 28, 2010, 12:42:36 PM
Quote from: fsokovic on December 27, 2010, 12:37:07 PM
yes,and I reset their permissions,and now works :P strange

forgot to ask...is there way to set minimum time between shouts that one user can write?

I am unable to answer this question unfortunately.

Quote from: eyo on December 28, 2010, 04:10:43 AM
ok finally got this to work after 39874083 tries. how can i just put it in the forums?
the chat is on all pages and i dont know where to set it to just forums or any action page.

Not quite sure what you mean. Can you post a link to the forum please.


Quote from: Baloch on December 28, 2010, 09:53:32 AM
When it will be compatible with SMF 2.0 RC4?

You should be able to emulate the version. However mrtrc266 seems to of disappeared as his main forums are no longer active.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eyo on December 29, 2010, 02:00:13 AM
i mean where do i go for edits in width and height and the settings like in smfpacks where you could set it to boardindex and different actions to where it should appear.

ONE THING THOUGH. AWESOME MOD BTW. WORTH THE 9378469386 ATTEMPTS LOL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DragonKith on December 30, 2010, 11:00:59 AM
This might be a total stupid question to ask i just download the Ajax Chat Integration and i was just wondering if i should just modify the files with the code in the boxes its been so long since i have done this can someone give me some advice or pointers



Thank you

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eyo on December 30, 2010, 06:56:02 PM
solved the location of chat and only problem now is the size of the window and how do i moderate this? seems like there's no visible mod buttons
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JoeB on December 30, 2010, 07:41:29 PM
Quote from: hcfwesker on December 04, 2010, 06:07:01 PM
Quote from: jjzx2sr on December 04, 2010, 10:37:35 AM
Quote from: Brack1 on December 04, 2010, 08:50:37 AM
Quote from: jjzx2sr on December 03, 2010, 11:27:36 PM
So anyone got this up and running for RC4 yet. This is my main concern i can do without all the other mods but this one.

If you look through the posts you will see that people are already using the mod on RC4.

I tried installing it, i had a clean install of RC4, no other mods and still got errors, also tired the emulation trick under the advanced options no go. I know all about the permissions 755 etc, the chat box error and etc also how to fix them. This isn't my first barn dance lol. My question is since the original creators seem to be gone with the wind can someone pick this up and mod it for RC4.

I even did the manual edits, i will try it once more before passing judgment i suppose.

I can't help but agree with this post.  I do get tired of getting asked if i changed file permissions to 755 when i responded with that 20 replies ago.  I know the FAQ section like the back of my hand, been using this on 1.1.11 & sm2 rc3 for a long time with no issues whatsoever .... the thing just WILL NOT work on RC4 for me.

My forum is ready for the RC4 move, this one mod hicup is all that's stopping us from upgrading from 1.1.11 to smf 2RC4  :(
Same problem
Simply this does NOT work with RC4
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eyo on December 30, 2010, 11:45:57 PM
im one of the biggest noobs in this community and i can truly say i got this thing to finally work, but i had to reinstall and put this in first. if you already have 50mods running with some other failed chat clients that were also uninstalled badly(in my case) looking for an easy way to trace problems is just going to be too hard unless you're one of these php guys who know everything about how codes work and can troubleshout well. the mod is the best out there and having a chatroom for each forum is easy, you just type /list and the board names appear and you can chat privately there. really worth the clean install :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 30, 2010, 11:49:05 PM
eyo.

You should never have more than one mod which does the same job.

Also when uninstalling when some files require manual work is also a no go.

Which mods do you have on your forum now?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eyo on December 30, 2010, 11:56:44 PM
i finally got it to work is what i meant :). Im really happy with it now. Just that before i thought i could just slap in top of the dozens of other mods that's why it was really frustrating. I would advise ppl like me to install this as one of the first mods to get it to work easier. beginners like me tend to go nuts and get greedy with everything we see being released or updated lol
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 30, 2010, 11:59:08 PM
How many mods have ya got? I have 71.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eyo on December 31, 2010, 12:05:12 AM
Nice. i had 75 and i can prob go as high as over a 100 now but im trying to resist the temptatation and start getting into trouble again haha. i noticed conflicts between mods are rare as long as they do not do the same functions or use similar table data, BUT i have to select ones that i install each time have to reinstall/install/uninstall everything properly and avoid mods that are just so terrible with edits during uninstall.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: oldguest on January 01, 2011, 05:40:02 AM
Hello All
I have a problem with ajax chat.
I will try to define  no  messages are shown which have been sent before the user entered the channel:
$config['requestMessagesPriorChannelEnter'] = false;
But if i set the value from true to false, i can't see any messages in my chat, then i typing them.
I have tryed to set it to true again and now i can type messages and see them, but now i see the messages there are typing before i logged in.
I hope there is a solution to my problem.
Best regards
Noeyes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ksharks on January 01, 2011, 07:43:09 PM
Hey, there I know people have been beating the upgrade to RC4 to death but I'm another poor soul trying to get the ajax to work on it. I tried some of the previous peoples fixes but they haven't helped.

Here's the error i get before install:     
9.     Execute Modification     ./Themes/default/index.template.php     Test failed
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Add Before    ./Themes/default/index.template.php    Test failed
                           
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>';
}

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Error Message after install..

Warning: require(/home/neotoon/domains/neotoonami.com/public_html/forums/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/neotoon/domains/neotoonami.com/public_html/forums/chat/index.php  on line 17

Fatal error: require() [function.require]: Failed opening required '/home/neotoon/domains/neotoonami.com/public_html/forums/chat/lib/custom.php' (include_path='.:/usr/local/lib/php') in /home/neotoon/domains/neotoonami.com/public_html/forums/chat/index.php on line 17
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rudeboy1991 on January 02, 2011, 06:24:42 PM
Hi i have an error in ajaxchat, i had to install it manually but that is not the cause, because i checked it over and over. Everything correct, far as i know. And the BD tables created.

I get this connection error:
(23:08:19) ChatBot: Error: Connection status: 0


Regards.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 02, 2011, 07:09:41 PM
Quote from: ksharks on January 01, 2011, 07:43:09 PM
Hey, there I know people have been beating the upgrade to RC4 to death but I'm another poor soul trying to get the ajax to work on it. I tried some of the previous peoples fixes but they haven't helped.

Here's the error i get before install:     
9.     Execute Modification     ./Themes/default/index.template.php     Test failed
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Add Before    ./Themes/default/index.template.php    Test failed
                           
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>';
}

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Error Message after install..

Warning: require(/home/neotoon/domains/neotoonami.com/public_html/forums/chat/lib/custom.php) [function.require]: failed to open stream: Not a directory in /home/neotoon/domains/neotoonami.com/public_html/forums/chat/index.php  on line 17

Fatal error: require() [function.require]: Failed opening required '/home/neotoon/domains/neotoonami.com/public_html/forums/chat/lib/custom.php' (include_path='.:/usr/local/lib/php') in /home/neotoon/domains/neotoonami.com/public_html/forums/chat/index.php on line 17

The three errors before install means you have to manually add the required edits.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 02, 2011, 07:11:20 PM
Quote from: rudeboy1991 on January 02, 2011, 06:24:42 PM
Hi i have an error in ajaxchat, i had to install it manually but that is not the cause, because i checked it over and over. Everything correct, far as i know. And the BD tables created.

I get this connection error:
(23:08:19) ChatBot: Error: Connection status: 0


Regards.

The answer can be found if you do a search with this topic.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rudeboy1991 on January 02, 2011, 07:20:08 PM
I have done a search in this topic, the only thing i found was the one that says "if you get error connection 0 from time to time its harmless just do this..."

The point is, that i cant send anything, nothing of nothing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 02, 2011, 07:24:09 PM
Try the FAQs in the very first post.

The answer is there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rudeboy1991 on January 02, 2011, 08:03:50 PM
ok, i have read the FAQS.
-I checked my permissions, folder permission are set to 755, and index.php in chat and shoutbox too.
-Pretty Urls, i desactivated it, and nothing.
-Added the line on htaccess (with and without pretty urls activated.)

But still getting same... Cant talk, just getting that "connection error: 0" eveytime i click on the green/orange light (it changes in between them colours)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 02, 2011, 11:15:03 PM
If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing
Open chat/js/chat.js
Find
Code:

this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);Replace with

Code:

if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eyo on January 03, 2011, 03:52:48 AM
anyone know where to edit this to appear below the forums and not on top of them?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rudeboy1991 on January 03, 2011, 05:43:02 AM
Quote from: Brack1 on January 02, 2011, 11:15:03 PM
If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing
Open chat/js/chat.js
Find
Code:

this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);Replace with

Code:

if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}

Like i said earlier it wasnt that.
Anyway i fixed it, the problem was the google analytics code was blocking it for some reason. aS sone as i deleted the code out of index.template, it worked.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JessyKa on January 03, 2011, 04:42:34 PM
Hello!
I am sorry, I didn't read through hundreds of pages, and the search delivered no similar questions. Maybe I have used the wrong words?
Sorry if the problem is known already.

Well, anyway.
I have updated to AjaxChat 3.2.1 recently.

I appreciate some new features and anything works fine.

Yet there is a strange little issue: sometimes single posts are not shown to some people.
E.g. I see the others laughing about a joke, while I wonder, how that comes. When I ask, I get a copy of the according post, which is not displayed in my chat window.

Other case is, that suddenly a user chats, who wasn't announced to me by the chatbot.

These gaps occur several times a day. None of the posts is totally gone, but it is not shown to all of the users.
While most of the time, users don't even notice, that there should be a referring post, it causes some irritation.

This problem is not reproducible, occurs to admins, chat mods and normal users.
I thought, maybe there is a maximum rate of chat messages shown to a user, but I couldn't find an according parameter.

Would be great if anyone of the experts had an idea, where and what I could check.
Thanks a lot
Jessy
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 03, 2011, 06:04:00 PM
was it the curve version you installed?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ksharks on January 03, 2011, 09:30:00 PM
Quote from: jjzx2sr on December 05, 2010, 01:13:49 PM
I reinstalled it on the default theme and did the manual edits again and it now works. Well i had to change the chat/index.php and shoutbox/index.php to 755 and all is well with the world. I am editing my custom theme as well.

In the public html folder find  /Themes/default/index.template.php

Find around line 200-203

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

Add before

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

Find around line 400

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

Replace with

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



That should get this working with your SMF 2.0 RC4 i made this the first mod i installed.

I figured it was that. I have tried making the modifications but without success.. The section highlighted in red wasn't quite clear on where I put it before.. or my forums just have more issues than I first thought.. Well here is what I've got and thank you for all your help Brack1 for helping out all of us php newbies.

   // Display user name and time.
(I'm assuming he ment add it right here and I've done so and still have no change in the error messages i get when trying to lauchn the forum.)
echo '
      <ul id="greeting_section" class="reset titlebg2">               
                 <li id="time" class="smalltext floatright">
            ', $context['current_time'], '
            <img id="upshrink" src="', $settings['images_url'], '/upshrink.gif" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="display: none;" />
         </li>';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ola80 on January 03, 2011, 11:26:32 PM
how can i get ajaxchat integration work with my smf 1.1.12.thanx
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JessyKa on January 04, 2011, 01:28:31 AM
Quote from: Brack1 on January 03, 2011, 06:04:00 PMwas it the curve version you installed?
Hi Brack1,
We use SMF 1.1.12
As I understand from quick google search, "curve" is the default theme in R2.0 - we don't use that.
Our default theme is "minerva", main chat skin "core".
Sorry I didn't tell earlier.

Ok, and as I checked I see, that Ajax Chat 3.2.1 is not compatible with SMF 1.1.12 (we updated Chat before SMF).
That may cause the problem, do you think so, too?
bye
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rudeboy1991 on January 04, 2011, 08:00:42 AM
AjaxChat 3.2.1, is compatible with smf 1.1.12, that is exactly what i have installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ola80 on January 04, 2011, 11:21:56 AM
i tried uploading Ajaxchat integration but it giving me dis "The package you tried to upload either is not a valid package or has become corrupted" what can i do pls.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rudeboy1991 on January 04, 2011, 12:12:00 PM
Version of your SMF?
Version of the mod you are trying to upload?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ola80 on January 04, 2011, 12:19:47 PM
smf 1.1.12,but its upload now but d problem now is dat i need to remove sidesparks integration b4 dat can be install,but i cannt figure out how to remove it cos i ve deleted it but still showing on my feature and options,how can i remove it entirely.when i click on the chat on my menu it still come up with sidesparks chat integration.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rudeboy1991 on January 04, 2011, 01:19:02 PM
When you say removed it, do you mean just deleted, or did you go through the process of uninstall.
If not, download it again, upload it to your forum, then use the uninstall option.
If you uninstalled it by uninstall button, go to the mod site and find manual to parse manualy.
If still nothing, ask in SMF 1.1.x Support board (because your asking something what isnt ajaxchat)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: impreza on January 04, 2011, 02:35:01 PM
I tested the add-on, works great
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ksharks on January 04, 2011, 08:07:38 PM
O and never mind my last reply i figured it out :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperZambezi on January 05, 2011, 12:24:12 AM
I couldn't find anything in the 300+ pages of this topic so hooefully this question hasn't been asked already.

I'm getting an error when one of my users try to type something into the Shoutbox. This is the error :

TypeError: Object # <an HTMLObjectElement> has no method 'create'

Our forum is running SMF 2.0 RC3. Thanks for any help I can get.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rudeboy1991 on January 05, 2011, 06:46:53 AM
I beleive that error is on google chrome.

Have you replaces in "chat/js/chat.js"

This by any chance?

this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);

For this

if (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arekay on January 08, 2011, 01:23:14 AM
This installed correctly, but when I go to the chat, the Online list is blank, the Logout button doesn't work, and the chat display is blank.

Please help, I really want to use this on my forum!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sinisterpain on January 08, 2011, 03:01:20 PM
I believe your question is covered in the FAQ http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766 (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) here
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arekay on January 08, 2011, 05:00:14 PM
I uninstalled it and reinstalled it, then I went to use it and a pop up appearer that said [error object]

Would it be possible for me to try out one of the older versions of this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sinisterpain on January 09, 2011, 08:53:06 AM
what verion of the mod did you install and what is your version of the forum software
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arekay on January 09, 2011, 05:18:39 PM
Nvm, I just read the TOS of my server host and Chat programs are not allowed
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clintmyster on January 10, 2011, 07:26:53 PM
I'm getting this error, any way to get rid of it? I am running 1.1.12.

Also, I can't see the "Chat" tab on my menu. I have this "Integrate shout box and chat room?" function checked in the Features and option menu of the admin page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rakicko on January 10, 2011, 08:22:01 PM
will be this in smf lastest 2.0rc4 version?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 11, 2011, 08:51:30 PM
Quote from: clintmyster on January 10, 2011, 07:26:53 PM
I'm getting this error, any way to get rid of it? I am running 1.1.12.

Also, I can't see the "Chat" tab on my menu. I have this "Integrate shout box and chat room?" function checked in the Features and option menu of the admin page.

Which theme do you use?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clintmyster on January 12, 2011, 12:00:22 AM
Quote from: Brack1 on January 11, 2011, 08:51:30 PM
Quote from: clintmyster on January 10, 2011, 07:26:53 PM
I'm getting this error, any way to get rid of it? I am running 1.1.12.

Also, I can't see the "Chat" tab on my menu. I have this "Integrate shout box and chat room?" function checked in the Features and option menu of the admin page.

Which theme do you use?

I'm using the default theme
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 12, 2011, 12:32:27 AM
No errors on install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sinisterpain on January 12, 2011, 12:18:13 PM
Quote from: clintmyster on January 10, 2011, 07:26:53 PM
I'm getting this error, any way to get rid of it? I am running 1.1.12.

Also, I can't see the "Chat" tab on my menu. I have this "Integrate shout box and chat room?" function checked in the Features and option menu of the admin page.

There is an update to the FABridge.js file for google chrome that fixes an sound error on load of the chat box.

Quoted from the sourceforge help files
Quote
1. Download the new FABridge.js file from http://chickentalk.org/mods/FABridge.js.zip (http://chickentalk.org/mods/FABridge.js.zip)
2. Extract the zip folder, you should have the file FABridge.js.
3. Upload the FABridge.js file to the js folder in your Ajax Chat root.
4. The upload will overwrite the old FABridge.js in the folder.
that should fix that error message popup.

As far as the tab you must be missing a template edit somewhere I think.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: big red on January 12, 2011, 10:44:09 PM
  Thanks for the great mod  :)

  I'm running RC4 and the chat appears to work fine but i have one issue related to the "chat button". It's set to "show=true" and what i "don't like" is a member with chat permission can sign in and out of chat "without" signing into the forum  :o. Not good.

  I've tried creating a menu permission for the chatbutton like this $context['allow_chat'] = allowedTo('enter_chat'); Ive also tried view_chat, can_chat but all this does is hide the button from everyone except the admin.

  I would like the button to be hidden until signing into the forum and to always be hidden to those that don't have permission.

  Any help on this would be appreciated!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clintmyster on January 13, 2011, 12:16:33 AM
Quote from: sinisterpain on January 12, 2011, 12:18:13 PM
Quote from: clintmyster on January 10, 2011, 07:26:53 PM
I'm getting this error, any way to get rid of it? I am running 1.1.12.

Also, I can't see the "Chat" tab on my menu. I have this "Integrate shout box and chat room?" function checked in the Features and option menu of the admin page.

There is an update to the FABridge.js file for google chrome that fixes an sound error on load of the chat box.

Quoted from the sourceforge help files
Quote
1. Download the new FABridge.js file from http://chickentalk.org/mods/FABridge.js.zip (http://chickentalk.org/mods/FABridge.js.zip)
2. Extract the zip folder, you should have the file FABridge.js.
3. Upload the FABridge.js file to the js folder in your Ajax Chat root.
4. The upload will overwrite the old FABridge.js in the folder.
that should fix that error message popup.

As far as the tab you must be missing a template edit somewhere I think.

I've checked every single template edit and now they are all fine for 1.1.12 but still no chat button. There is an improvement in that it says that "1 user is in chat:
Clintmyster "
Before it didn't say that. There was a time when the chat was working but unforunately we've put too many modifications on the forum to find out when that was. Is there like a direct link that you can use to go to chat? I have a feeling its just the tab won't show and nothing other than that
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Remorker on January 13, 2011, 08:15:48 AM
Quote from: clintmyster on January 10, 2011, 07:26:53 PM
I'm getting this error, any way to get rid of it? I am running 1.1.12.

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=166023;image)


I also have this problem. I am running 2.0RC3.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sinisterpain on January 13, 2011, 06:30:58 PM
Quote from: Remorker on January 13, 2011, 08:15:48 AM
Quote from: clintmyster on January 10, 2011, 07:26:53 PM
I'm getting this error, any way to get rid of it? I am running 1.1.12.

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=166023;image)


I also have this problem. I am running 2.0RC3.

Read above there is a link to the file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sinisterpain on January 13, 2011, 07:08:35 PM
Quote from: big red on January 12, 2011, 10:44:09 PM
  Thanks for the great mod  :)

  I'm running RC4 and the chat appears to work fine but i have one issue related to the "chat button". It's set to "show=true" and what i "don't like" is a member with chat permission can sign in and out of chat "without" signing into the forum  :o. Not good.

  I've tried creating a menu permission for the chatbutton like this $context['allow_chat'] = allowedTo('enter_chat'); Ive also tried view_chat, can_chat but all this does is hide the button from everyone except the admin.

  I would like the button to be hidden until signing into the forum and to always be hidden to those that don't have permission.

  Any help on this would be appreciated!

ADD this first   if ($context['user']['is_logged'] && $context['allow_chat'])
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: big red on January 13, 2011, 10:13:31 PM
Quote from: sinisterpain on January 13, 2011, 07:08:35 PM
Quote from: big red on January 12, 2011, 10:44:09 PM
  Thanks for the great mod  :)

  I'm running RC4 and the chat appears to work fine but i have one issue related to the "chat button". It's set to "show=true" and what i "don't like" is a member with chat permission can sign in and out of chat "without" signing into the forum  :o. Not good.

  I've tried creating a menu permission for the chatbutton like this $context['allow_chat'] = allowedTo('enter_chat'); Ive also tried view_chat, can_chat but all this does is hide the button from everyone except the admin.

  I would like the button to be hidden until signing into the forum and to always be hidden to those that don't have permission.

  Any help on this would be appreciated!

ADD this first   if ($context['user']['is_logged'] && $context['allow_chat'])

    That did the trick - Thank You Very Much  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eyo on January 14, 2011, 04:50:17 AM
can ajax chat add channels which are not forum boards? my site has no forum boards and i was wondering if this could be done.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: katb on January 14, 2011, 06:31:55 AM
after installation i cann't see administartion links ..i can see onlt delete shout option next to user shout. I am using SMF 2.0 RC3
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 14, 2011, 01:11:01 PM
Quote from: katb on January 14, 2011, 06:31:55 AM
after installation i cann't see administartion links ..i can see onlt delete shout option next to user shout. I am using SMF 2.0 RC3

Any errors on install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: katb on January 14, 2011, 01:17:05 PM
Quote from: Brack1 on January 14, 2011, 01:11:01 PM
Quote from: katb on January 14, 2011, 06:31:55 AM
after installation i cann't see administartion links ..i can see onlt delete shout option next to user shout. I am using SMF 2.0 RC3

Any errors on install?

no it went smootly
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 14, 2011, 01:21:29 PM
Check the edited files against the parser.

There may be a missing edit.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sinisterpain on January 14, 2011, 06:12:59 PM
QuoteI've checked every single template edit and now they are all fine for 1.1.12 but still no chat button. There is an improvement in that it says that "1 user is in chat:
Clintmyster "
Before it didn't say that. There was a time when the chat was working but unforunately we've put too many modifications on the forum to find out when that was. Is there like a direct link that you can use to go to chat? I have a feeling its just the tab won't show and nothing other than that
what version is your template for your forum is it custom?
Try editing the template directly not through the forum edit

this is what you should have:

// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: katb on January 14, 2011, 10:18:50 PM
Quote from: Brack1 on January 14, 2011, 01:21:29 PM
Check the edited files against the parser.

There may be a missing edit.

i tried i can see the modifications...i try to reinstall it reinstallation also went smootly.

   1.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add After    ./Sources/Admin.php    Test successful
      2.    Add After    ./Sources/Admin.php    Test successful
*    2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
      1.    Replace    ./Sources/BoardIndex.php    Test successful
      2.    Add After    ./Sources/BoardIndex.php    Test successful
*    3.    Execute Modification    ./Sources/Load.php    Test successful
      1.    Add After    ./Sources/Load.php    Test successful
      2.    Add After    ./Sources/Load.php    Test successful
      3.    Add Before    ./Sources/Load.php    Test successful
*    4.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Add After    ./Sources/ManagePermissions.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test successful
      1.    Add After    ./Sources/ManageSettings.php    Test successful
      2.    Add After    ./Sources/ManageSettings.php    Test successful
      3.    Add Before    ./Sources/ManageSettings.php    Test successful
*    6.    Execute Modification    ./SSI.php    Test successful
      1.    Add Before    ./SSI.php    Test successful
*    7.    Execute Modification    ./Sources/Subs.php    Test successful
      1.    Add After    ./Sources/Subs.php    Test successful
      2.    Add After    ./Sources/Subs.php    Test successful
*    8.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
      1.    Add Before    ./Themes/default/BoardIndex.template.php    Test successful
*    9.    Execute Modification    ./Themes/default/index.template.php    Test successful
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Add Before    ./Themes/default/index.template.php    Test successful
*    10.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
      1.    Add Before    ./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


I can see some of the username also coming on shoutbox ...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clintmyster on January 15, 2011, 11:40:26 PM
Quote from: sinisterpain on January 14, 2011, 06:12:59 PM
QuoteI've checked every single template edit and now they are all fine for 1.1.12 but still no chat button. There is an improvement in that it says that "1 user is in chat:
Clintmyster "
Before it didn't say that. There was a time when the chat was working but unforunately we've put too many modifications on the forum to find out when that was. Is there like a direct link that you can use to go to chat? I have a feeling its just the tab won't show and nothing other than that
what version is your template for your forum is it custom?
Try editing the template directly not through the forum edit

this is what you should have:

// the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';


Whenever I integrate that code, I get the attached error in the chat tab. I currently don't have any code there tho
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sinisterpain on January 16, 2011, 12:55:46 PM
I think you need to go through the template edits for your forum theme you must not have them in there if you switch to the default I bet it works fine.
When installing this mod it changes load.php and adds the function
function getShoutBoxContent($mini = false){
global $scripturl, $modSettings;

// Get the URL to the chat directory:

but you need to look at the template edits cause I just posted a snipit of the edit to the load.php file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Basinator on January 17, 2011, 04:20:26 PM
Hi!

I installed this mod, unfortunally I use the 1.1.12 SMF (I wasn't able to find any shoutboxes for this version anyways).

I can't see the shoutbox after I applied the mod, I can see the chat tab but I get a 500 error.

"There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755 (and in some cases CHMOD the actual "Folders" as well)."
Well, I can't find those two folders...where are they located?

My website:
http://hwguide.ch/Basinator/imperium/forum/index.php

I will leave the mod installed a little bit more so you can see by yourself.

Also, if you think I can't get this mod to work with my forums version I really appriciate it if you can forward me to a shoutbox I can get working.

Thanks for your time.

//Plus, I can't see the chat tab in my custom designs. But let's solve one problem after the other, hm?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 17, 2011, 05:35:21 PM
Were there any errors on install?

Is English the forums language?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TGB on January 17, 2011, 08:07:17 PM
Where can I set the number of messages displayed in the shoutbox?
I have changed shoutBox\lib\config.php
// Max number of messages to display on each request:
$config['requestMessagesLimit'] = 10;

and
// Defines how many logs are returned on each logs request:
$config['logsRequestMessagesLimit'] = 10;

to 50 but still only displays 10.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: big red on January 17, 2011, 08:42:58 PM
   I did not find this in the search function.....

  I would like to know how i change the scrolling in the chatrooms?. The new chats enter at the bottom and would like to change that to the top.

     Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Basinator on January 18, 2011, 09:39:26 AM
Quote from: Brack1 on January 17, 2011, 05:35:21 PM
Were there any errors on install?
Not that I am aware of. I will reinstall it to see if there are error lines somewhere.

Quote
Is English the forums language?
Aside from German, yeah, but iirc I tried it with English language settings as well.

Has anyone here got it running with the newest SMF version 1.1.12? Cuase if yes, then there are high chances I can get it running somehow, too!

// Ok...no error, English language, core standard theme, no shoutbox (but it is enabled in options), but at least again the red chat tabulator. However, I noticed I also get a 500 internal server error when I try to browse third party mod servers with action=packageget;sa=browse;server=1MF
// Ok, only for this one: Simple Machines Third-party Mod Site, the other mod server doesn't exist anymore (at least not that page/directory)
However, I can see the "Latest Packages"...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nicky_uk on January 18, 2011, 05:19:49 PM
Hi..first of all, the MOD looks great!

I can't use it at the mo tho  :(

I've looked around this thread and on the support website, but although I see some people have the same problem, I have not yet seen a solution.

The MOD installed fine on RC4 and I'm using the default template, however, when anyone goes to use it, no users show as logged in and when anything is typed, nothing shows up...this is both for the chat and shoutbox.

File permissions are correct 755 for Chat/Shoutbox and both index.php file. I have also added the .htaccess file, but nothing happened. The tables are created in the database and I don't see any error messages on the forum itself.  ???

Does anyone have and further suggestions? Any help appreciated.

Many thanks

Nicky  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nicky_uk on January 19, 2011, 08:16:24 AM
Figured it out.. it was a YouTube integration MOD that was conflicting with it.. all working dandy now  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Basinator on January 20, 2011, 10:52:42 AM
I have deinstalled all modifications but I still can't get the shoutbox to appear...and for the chat I still get the 500 internal server error if I click that tab.

Is there any specific PHP version necessary?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 20, 2011, 02:28:18 PM
The 500 error has been mentioned numerous times.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Cobra97 on January 20, 2011, 03:56:40 PM
I was wondering if anyone knows why I get this:  "It\'s" when I type this "It's" .    it\"

It's driving me nuts, every time you use '  " and so on it happens.

Thanks
John
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 20, 2011, 04:00:01 PM
Quote from: Cobra97 on January 20, 2011, 03:56:40 PM
I was wondering if anyone knows why I get this:  "It\'s" when I type this "It's" .    it\"

It's driving me nuts, every time you use '  " and so on it happens.

Thanks
John

which language is your forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Basinator on January 20, 2011, 04:20:47 PM
Quote from: Brack1 on January 20, 2011, 02:28:18 PM
The 500 error has been mentioned numerous times.
Any fix aviable then?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 20, 2011, 04:23:53 PM
Quote from: Basinator on January 20, 2011, 04:20:47 PM
Quote from: Brack1 on January 20, 2011, 02:28:18 PM
The 500 error has been mentioned numerous times.
Any fix aviable then?

Might I suggest you usae the search feature?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Basinator on January 20, 2011, 05:19:24 PM
Thanks for the suggestion, but I tried my luck now but I didn't find something useful. Maybe I just use the wrong phrases...if you give me a link I will study by myself then before I ask you again...:P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Cobra97 on January 20, 2011, 05:37:41 PM
Quote from: Brack1 on January 20, 2011, 04:00:01 PM
Quote from: Cobra97 on January 20, 2011, 03:56:40 PM
I was wondering if anyone knows why I get this:  "It\'s" when I type this "It's" .    it\"

It's driving me nuts, every time you use '  " and so on it happens.

Thanks
John

which language is your forum?

English
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: italo_anonimo on January 20, 2011, 06:39:35 PM
update for SMF RC4 please!!

i can install version for SMF RC3 for my SMF RC4???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: b4pjoe on January 21, 2011, 02:29:28 PM
Quote from: Cobra97 on January 20, 2011, 03:56:40 PM
I was wondering if anyone knows why I get this:  "It\'s" when I type this "It's" .    it\"

It's driving me nuts, every time you use '  " and so on it happens.

Thanks
John

I know that was a bug in RC3 and the WYSIWYG editor for posts and pm's. Not sure how it relates to this mod though. Turning off the WYSIWYG editor fixed the problem for me in posts and pm's. I believe it has been fixed in RC4.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mouse92im on January 21, 2011, 03:17:11 PM
Just installed this mod.  Works like a charm!  Thank you...

One question..   Any way I can change the colors of the background in the shoutbox?  I'm sure it was asked in the 377 pages of support, but don't have the time to look thru them all.


Also maybe have an auto-log out on window closing of the chat pop-up?


Thanks!
Ryan
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: big red on January 21, 2011, 03:39:16 PM
Quote from: big red on January 17, 2011, 08:42:58 PM
   I did not find this in the search function.....

  I would like to know how i change the scrolling in the chatrooms?. The new chats enter at the bottom and would like to change that to the top.

     Thanks

  Anyone know which file controls this for the "chatrooms" ??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: big red on January 21, 2011, 03:48:08 PM
Quote from: italo_anonimo on January 20, 2011, 06:39:35 PM
update for SMF RC4 please!!

i can install version for SMF RC3 for my SMF RC4???

   Yes - open the "package.info file" and change it like this <version>3.2.1 (modified for SMF 2 RC3,RC4)</version>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Adrek on January 21, 2011, 04:01:24 PM
This Post Notification (http://www.simplemachines.org/community/index.php?topic=257973.msg2067337#msg2067337) still works in RC3 ? because everytime i get:
Table 'my-username_s.ajax_chat_messages' doesn't exist
Plik: /home/my-username/public_html/my-url/forum/Sources/Post.php
Linia: 2149


When i try send new topic or reply (topics are sent).
I don't know why he wants this table - my table is smf_ajaxchat_messages (DB name - my-username_s )

///

solved:
i changed 'ajax_chat_messages', to  'smf_ajaxchat_messages' and now it works ;)


but how to change postername to my own name and make message like:
ForumBot: New topic: [Topic_name_with_topic_link], sent by: [username_with_profile_link]
(the same for new replies)

and order of shouts (new shouts on top)  ?

//

and this: http://www.simplemachines.org/community/index.php?topic=257973.msg1979606#msg1979606 didn't work :/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 21, 2011, 09:19:46 PM
Quote from: adi1166 on January 21, 2011, 04:01:24 PM


and this: http://www.simplemachines.org/community/index.php?topic=257973.msg1979606#msg1979606 didn't work :/

It won't work on your forum as you are not using the 1.1.x version.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Adrek on January 22, 2011, 04:56:00 AM
so in SMF2 regular user can remove own shouts ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hoborg on January 22, 2011, 11:31:08 AM
when i install it in 2.0 RC4 captcha images don't load anymore (it shows image block instead).

now i'm using recaptcha instead to find out what the problem is there between this mod and smf's captcha system!

does anyone have the same problem here?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dave J on January 23, 2011, 04:28:29 AM
Hmm...where to start. I have a test site and I'm running a fresh install of 2.0RC4 with no other mods (at the time I was installing this) installed.

I have overcome the initial problem of the index.template install error by changing the 'find' line to match whats actually in the index.template file for the first mod and the spaces in the install file before the 'echo' before the second mod.

I have change the CHMOD of most of the files and folders to match what has been suggested in this topic. Every time I change something I clear the cache and via the 'Maintenance' and manually, if any files are there, via the FTP.

I have changed permissions I have re-installed over and over again by removing the whole forum and starting again each time.

I sat here yesterday and read pretty much 200 pages of suggestions as to what to do.

No matter what I do I cannot get rid of "ChatBot: Error: Connection status: 500"

Please do not say 'This has been mentioned previously in this thread' or 'Look at the FAQ in mrtrc266 sig' I know all of those and more besides as I went through everything on google yesterday too.

I do have some knowledge of php scripting and can get by making alterations to some code etc but this has got me wishing I had hair to pull out, like the other fella around page 150 ish

The question really is when is this going to be updated to work with RC4 properly? Are the mod creators actually still working on this?

If anyone can give me another thing to try which hasn't been mentioned in this thread I would be grateful, for now I have uninstalled this mod on the test site and will wait for an update.

I would like to say well done to all of those people who have been helping on this site...I have used phpBB for years and I haven't found anywhere that people have been this helpful, so all you helpers give yourselves a big pat on the back.

Regards

Dave
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clintmyster on January 25, 2011, 07:17:45 AM
Hi there,

I'm getting this error again. I have the latest FABridge.js file in my chat's js folder. Please help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: m1993 on January 25, 2011, 04:04:45 PM
It this works on SMF RC4?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jeet Chowdhury on January 26, 2011, 03:16:29 AM
how to install it on rc4?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bugo on January 26, 2011, 03:22:05 AM
Manually.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jeet Chowdhury on January 26, 2011, 07:57:13 AM
how to do that using actualism theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: italo_anonimo on January 26, 2011, 01:18:43 PM
How to open only shoutbox (no chat) in new webpage from tab option??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: flegg on January 26, 2011, 05:26:46 PM
Hi there

I've just installed SMF on my webserver with the most recent version of the Ajax Chat Integration (3.2.1)

here are the details of the installations


Version Information:
Forum version: SMF 1.1.12
Current SMF version: SMF 1.1.12
PHP version: 4.4.9
MySQL version: 4.1.22-standard
Server version: Apache/1.3.41 (Unix) PHP/5.2.9 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
GD version: bundled (2.0.28 compatible)

When it installs, there are no errors and seems to complete without issue, but when I go to features and options there are no options for the chat/shout box. The tick boxes are there, but no text so I don't know what I'm ticking and unticking. The same is under permissions, there are about 6 tick boxes, but no text so not sure what I'm enabling. Also the chat link across the top is also missing.

I've tried unisntalling and reinstalling and also tried the RC3 curve compatible version but that didn't work either

any suggestions?

thanks peeps!

Flegg
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Basinator on January 28, 2011, 08:52:41 AM
Brack1:

Quote from: Basinator on January 20, 2011, 05:19:24 PM
Thanks for the suggestion, but I tried my luck now but I didn't find something useful. Maybe I just use the wrong phrases...if you give me a link I will study by myself then before I ask you again...:P

Thanks for your time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: shackles on January 28, 2011, 09:34:13 AM
Hi, i want to move position on my ajaxchat, instead of it being at the top of page i want it to be at the bottom. What do i have to modify in index.template or boardindex.template

I also want to change the backgorund colour of the chat, and it letter colour, i have changed all the shoutbox.css but it didnt work...

Any comments will be usefull.
Thank You all.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: basis on January 28, 2011, 06:40:25 PM
I've managed to install the latest AjaxChat and it works great on my SMF 1.1.12

I wanted to try some simple tweaks but have not gotten any to work.
For instance I tried some that mrtrc266 suggested in the FAQ.
"To have ONLY the Public Room avaliable in the Channel List, change the array to 0." & "You can also change the name of the Public Channel to something like "YourForums Lounge" Find and change Public to whatever you like."

I edited the config.php file but the changes don't seem to affect the Chat. Is there something that I am missing here? File permission was set to 755 i think. Can anyone help or is there no longer any support for this mod?

edit: DOH! was woking in the wrong folder. my bad. the edits worked great! AWESOME MOD! Considering i couldn't get Simple Portal's shoutbox to work, this is even better!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jeet Chowdhury on January 29, 2011, 07:00:31 PM
i get this error when open table_2.php


Database Error
No database selected
File: C:\xampp\htdocs\myforum5\Tables_2.php
Line: 12


using 2.0 rc4.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jeet Chowdhury on January 29, 2011, 08:26:06 PM
im thinking if its possible to convert .php to sql command then run via myphpadmin. Will that work?

Can any one post the .sql code?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 29, 2011, 09:13:50 PM
Quote from: flegg on January 26, 2011, 05:26:46 PM
When it installs, there are no errors and seems to complete without issue, but when I go to features and options there are no options for the chat/shout box. The tick boxes are there, but no text so I don't know what I'm ticking and unticking. The same is under permissions, there are about 6 tick boxes, but no text so not sure what I'm enabling. Also the chat link across the top is also missing.

I've tried unisntalling and reinstalling and also tried the RC3 curve compatible version but that didn't work either

any suggestions?

Yup!  Goto Admin > Server Settings  , and see what your Default Forum language is.  Change it from English-utf8 to just "English"

If you can't change the default language, then goto your Themes/default/languages/ folder and rename your  Shout.english.php  file to ...  Shout.english-utf8.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lisandro on January 29, 2011, 10:56:46 PM
i use 2.0RC4 after install . i have this problem  :'(
QuoteUnable to load the 'shout_above' template.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jeet Chowdhury on January 29, 2011, 11:01:55 PM
got it worked with rc4.

here is mysql code for having database error,


DROP TABLE IF EXISTS `ajax_chat_online`;
DROP TABLE IF EXISTS `ajax_chat_messages`;
DROP TABLE IF EXISTS `ajax_chat_bans`;
DROP TABLE IF EXISTS `ajax_chat_invitations`;
DROP TABLE IF EXISTS `ajax_shout_online`;
DROP TABLE IF EXISTS `ajax_shout_messages`;
DROP TABLE IF EXISTS `ajax_shout_bans`;
DROP TABLE IF EXISTS `ajax_shout_invitations`;
DROP TABLE IF EXISTS `smf_ajaxchat_online`;
DROP TABLE IF EXISTS `smf_ajaxchat_messages`;
DROP TABLE IF EXISTS `smf_ajaxchat_bans`;
DROP TABLE IF EXISTS `smf_ajaxchat_invitations`;

CREATE TABLE `smf_ajaxchat_online` (
    `userID` INT(11) NOT NULL,
    `userName` VARCHAR(64) NOT NULL,
    `userRole` INT(1) NOT NULL,
    `channel` INT(11) NOT NULL,
    `dateTime` DATETIME NOT NULL,
    `ip` VARBINARY(16) NOT NULL
) ENGINE=MyISAM;

CREATE TABLE smf_ajaxchat_messages (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `userID` INT(11) NOT NULL,
    `userName` VARCHAR(64) NOT NULL,
    `userRole` INT(1) NOT NULL,
    `channel` INT(11) NOT NULL,
    `dateTime` TIMESTAMP NOT NULL,
    `ip` VARBINARY(16) NOT NULL,
    `text` TEXT,
    PRIMARY KEY (`id`)
) ENGINE=MyISAM;

CREATE TABLE smf_ajaxchat_bans (
    `userID` INT(11) NOT NULL,
    `userName` VARCHAR(64) NOT NULL,
    `dateTime` DATETIME NOT NULL,
    `ip` VARBINARY(16) NOT NULL
) ENGINE=MyISAM;

CREATE TABLE smf_ajaxchat_invitations (
    `userID` INT(11) NOT NULL,
    `channel` INT(11) NOT NULL,
    `dateTime` TIMESTAMP NOT NULL
) ENGINE=MyISAM;

DROP TABLE IF EXISTS `smf_ajaxshout_online`;
DROP TABLE IF EXISTS `smf_ajaxshout_messages`;
DROP TABLE IF EXISTS `smf_ajaxshout_bans`;
DROP TABLE IF EXISTS `smf_ajaxshout_invitations`;

CREATE TABLE smf_ajaxshout_online (
    `userID` INT(11) NOT NULL,
    `userName` VARCHAR(64) NOT NULL,
    `userRole` INT(1) NOT NULL,
    `channel` INT(11) NOT NULL,
    `dateTime` DATETIME NOT NULL,
    `ip` VARBINARY(16) NOT NULL
) ENGINE=MyISAM;

CREATE TABLE smf_ajaxshout_messages (
    `id` INT(11) NOT NULL AUTO_INCREMENT,
    `userID` INT(11) NOT NULL,
    `userName` VARCHAR(64) NOT NULL,
    `userRole` INT(1) NOT NULL,
    `channel` INT(11) NOT NULL,
    `dateTime` DATETIME NOT NULL,
    `ip` VARBINARY(16) NOT NULL,
    `text` TEXT,
    PRIMARY KEY (`id`)
) ENGINE=MyISAM;

CREATE TABLE smf_ajaxshout_bans (
    `userID` INT(11) NOT NULL,
    `userName` VARCHAR(64) NOT NULL,
    `dateTime` DATETIME NOT NULL,
    `ip` VARBINARY(16) NOT NULL
) ENGINE=MyISAM;

CREATE TABLE smf_ajaxshout_invitations (
    `userID` INT(11) NOT NULL,
    `channel` INT(11) NOT NULL,
    `dateTime` DATETIME NOT NULL
) ENGINE=MyISAM;




here is ss...


btw how to stop /nick command??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lisandro on January 29, 2011, 11:07:18 PM
i can't login to admin panel and every page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jeet Chowdhury on January 29, 2011, 11:07:58 PM
is intrigrated with smf removal is legal? if yes how to do that?

btw bro which version of smf u using??? and capcha not showing after chatmod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lisandro on January 29, 2011, 11:11:39 PM
i'm using 2.0 RC4 please check you PM .
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 29, 2011, 11:13:00 PM
Quote from: Jeet Chowdhury on January 29, 2011, 11:01:55 PM
btw how to stop /nick command??


Under chat/lib/config.php  ... there'll be a question about users able to change their nickname, change 'true' to 'false'

Find
// Allow/Disallow users to change their userName (Nickname):
$config['allowNickChange'] = true;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jeet Chowdhury on January 29, 2011, 11:13:46 PM
u need to instaall it manually brother. and i figure out how to disable nick command. exelent shoutbox. but captcha nt working now.

bro u use smf parser to install.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 29, 2011, 11:43:56 PM
Trying to figure something out.  Is it possible to have a static message to always show at top?  Either a chat message that doesn't erase, or a text above the chat box itself?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jeet Chowdhury on January 29, 2011, 11:48:33 PM
u mean a announement bot kinda? i want that thing too. but why the hell captcha not working now. :( any solution??

and i want to increase the textbox area etc. how to do that from shoutbox.template???


also if we enable shoutbox it make out topic texts etc smaller not bold etc.



how to temp disable chat?

and want to set pop up maximize window for chhat and default theme black. from which file to do that?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: NoFeaR / NFSMW on January 30, 2011, 04:44:10 AM
good days. when can we expect this to RC4?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: shackles on January 30, 2011, 07:00:42 AM
Quote from: shackles on January 28, 2011, 09:34:13 AM
Hi, i want to move position on my ajaxchat, instead of it being at the top of page i want it to be at the bottom. What do i have to modify in index.template or boardindex.template

I also want to change the backgorund colour of the chat, and it letter colour, i have changed all the shoutbox.css but it didnt work...

Any comments will be usefull.
Thank You all.

Hi, can somebody please tell me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cat farmer on January 30, 2011, 10:51:02 AM
Quote from: shackles on January 30, 2011, 07:00:42 AM
Quote from: shackles on January 28, 2011, 09:34:13 AM
Hi, i want to move position on my ajaxchat, instead of it being at the top of page i want it to be at the bottom. What do i have to modify in index.template or boardindex.template

I also want to change the backgorund colour of the chat, and it letter colour, i have changed all the shoutbox.css but it didnt work...

Any comments will be usefull.
Thank You all.

those are answered in one of the FAQ's . - not sure you can put up a static message, but you can have a chatbot post a message every time some one enters, and for the colors you will need to modify the config page.

Hi, can somebody please tell me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: shackles on January 30, 2011, 10:59:37 AM
I didnt ask anything about messages  ;D, thanks for the reply tho.
But witch config file?, there are many of them
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jeet Chowdhury on January 30, 2011, 06:26:30 PM
$chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';


this code opening new chat window. but how to make the window maximized?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 30, 2011, 07:41:04 PM
Quote from: Jeet Chowdhury on January 30, 2011, 06:26:30 PM
$chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';


this code opening new chat window. but how to make the window maximized?

For SMF2

Admin > Modification Settings > Chat

chat in popup page?  (uncheck that box)

but, that will cause the page your one, to become the chat when the chat button is clicked.  Won't open a new window
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jeet Chowdhury on January 30, 2011, 07:52:43 PM
sorry but i want to maximize the popup window.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FounderSim on January 31, 2011, 01:03:31 PM
I get an error after installing:
urL: www.phpengines.info/forums/chat
Quote
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8q DAV/2 mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at phpengines.info Port 80
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 31, 2011, 01:22:02 PM
Quote from: FounderSim on January 31, 2011, 01:03:31 PM
I get an error after installing:
urL: www.phpengines.info/forums/chat
Quote
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8q DAV/2 mod_fcgid/2.3.5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at phpengines.info Port 80

Please read the FAQs in the mods first post regarding the folder permissions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nachtfalke on January 31, 2011, 05:47:08 PM
Wanna have that Plugin for RC4 please. I used it with RC3 and i will not miss it so PLEASE try to make an update  O:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: shackles on February 02, 2011, 06:08:28 AM
Quote from: shackles on January 30, 2011, 07:00:42 AM
Quote from: shackles on January 28, 2011, 09:34:13 AM
Hi, i want to move position on my ajaxchat, instead of it being at the top of page i want it to be at the bottom. What do i have to modify in index.template or boardindex.template

I also want to change the backgorund colour of the chat, and it letter colour, i have changed all the shoutbox.css but it didnt work...

Any comments will be usefull.
Thank You all.

Hi, can somebody please tell me?

still nothing
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ironhide1 on February 02, 2011, 09:35:40 AM
I'm installed on RC4 and working perfectly. Have set all permissions, but still have no option to kick/ban a user as the admin? Any help on this would be greatly appreciated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cat farmer on February 02, 2011, 09:54:31 AM
Does anyone have a problem with the shoutbox window refreshing? mine will lock up often on the forum. If i get in to a Chat box it works fine. I get no errors, just stops working.  if I refresh my browser it works for a bit then freezes again. happens with different browsers..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: seanxyooj on February 02, 2011, 05:10:18 PM
I need help. I installed and integration AJAX Chat fine but I just couldn't get the Chat button on the menu to work right. And I also need it be a small pop-up Window when Chat button is clicked.

See attachments.

Thanks for your help in advance
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on February 02, 2011, 06:44:02 PM
Quote from: seanxyooj on February 02, 2011, 05:10:18 PM
I need help. I installed and integration AJAX Chat fine but I just couldn't get the Chat button on the menu to work right. And I also need it be a small pop-up Window when Chat button is clicked.

Most likely because you're using a custom theme.  I'll try and edit the chat button code to match the other buttons layout.  also, to make a pop-up window, I believe the settings are under Admin > Features & Options  (somewhere around that area for SMF1

Try the edits under index.template.php of that theme

FIND
/ the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';



REPLACE with
// Show the [chat] button.
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo '<li', $current_action == 'chat' ? ' class="chosen"' : '', '><a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a></li>';



If it doesn't work, then just reverse the changes, and I'll take another look at it.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: seanxyooj on February 02, 2011, 09:28:54 PM
Hi hcfwesker,

I tried your changes and it worked wonderfully. Thank you so much for helping me with this and teaching me. I sincerely appreciate it!

Thanks for your time....

sean
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IngeJones on February 05, 2011, 05:49:31 AM
My chat/shoutbox (syncronised) does not seem to consistently check forum permissions.  For example, I have a special membergroup who have access to chat all the time, and I take chat permission off "regular" forum users when chat is not moderated.  But it doesn't appear to exclude all the people it should.  Someone not on the special membergroup simply logged in and came straight into chat when they were not meant to be able to, while another user in exactly the same position was unable to.   Is there something in the cookies that bypasses the checks?   Can I get chat to check forum permissions with a closer granularity?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on February 05, 2011, 05:57:22 PM
Quote from: IngeJones on February 05, 2011, 05:49:31 AM
My chat/shoutbox (syncronised) does not seem to consistently check forum permissions.  For example, I have a special membergroup who have access to chat all the time, and I take chat permission off "regular" forum users when chat is not moderated.  But it doesn't appear to exclude all the people it should.  Someone not on the special membergroup simply logged in and came straight into chat when they were not meant to be able to, while another user in exactly the same position was unable to.   Is there something in the cookies that bypasses the checks?   Can I get chat to check forum permissions with a closer granularity?

Have you ever changed the chat permissions under "post groups" at the bottom of the member groups?  If you have some checked there, may explain why 2 different regular members had different access permissions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IngeJones on February 06, 2011, 05:58:41 AM
No it's definitely not that, I have had more than one person check for basic permission setting oversights.  I think the chat is trusting the cookies to validate them and maybe not checking the database often enough.   Most of the authorisation is done in the login function, and I don't think that even runs if the user still has their cookie.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: radzior on February 06, 2011, 01:20:33 PM
Hello, I have RC4 and installed ajax chat but i cant post anything on it, actually nobody can even me as a forum admin

the chat appears to be on, i can change settings in admin menu, on index page there are upperframe, roundframe and lowerframe, but contain nothing, i cant post anything as i said

thanks for any help

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tesser on February 07, 2011, 12:51:28 PM
Works good on RC4 with 14 themes installed  i just ignored ALL the errors on install  and it works like a charm.


Note: try it on a test site first b4 doing the above
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mecfs on February 07, 2011, 06:35:35 PM
There is an apparent bug in this mod. When a user has a username (real_name) starting with foreign characters such as ä or ß they show up as invisible in the chatroom and their userName in the ajaxchat_messages and ajaxchat_online tables is blank. If the suspect characters are in the middle of the name, the remaining characters are dropped.

This bug is not present with AjaxChat, just the SMF integration mod. Users with these characters in their name show up just fine the forum as well as the unmodified AjaxChat such as the demo here: https://blueimp.net/ajax/.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nosx on February 08, 2011, 11:09:10 AM
Hello,

Is there any way to make it so when you click on someones name in the shoutbox it takes you to that members forum profile page ?

TIA,
Nosx
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Armen on February 08, 2011, 02:20:16 PM
Little problem here. When i join the standalone chat(not the shoutbox) my index.php goes off(when anyone clicks home button during that period - he sees blank page).

Is there rc3 post/reply notification fix?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: seanxyooj on February 08, 2011, 03:40:22 PM
Anyone know how to remove extra lines in the Users Online? See attachment (highlight in yellow)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 08, 2011, 07:56:59 PM
Quote from: seanxyooj on February 08, 2011, 03:40:22 PM
Anyone know how to remove extra lines in the Users Online? See attachment (highlight in yellow)

It looks as though there may be double the required code on the file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rocknroller on February 09, 2011, 07:14:10 AM
ONLINE USERS, SIMPLE PORTAL PHP BLOCK

Autor of this is manix i am developer
this is for HTML block
block will be refreshed every 30 sek.

<html>
<head>
</head>
<body>
<iframe src ="../online.php" style="margin:0; padding:0;" width="96%">
  <p>browser not support iframes.</p>
</iframe>
</body>
</html>


and save online.php in root of the forum
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: chico200987 on February 09, 2011, 04:30:22 PM
I've tried to port it for RC4... No one takes 5 minutes to do it i don't understand..

It works fine for me, there is no error but warn, use it as your own risk it's not an official port..

It only works for RC4..

Here it is : http://www.megaupload.com/?d=34YHL6V0

Or in attachement.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Armen on February 09, 2011, 06:27:55 PM
Where can i change these little things?
Click on username in shoutbox causes Username, - not Username
And aaaaaaaaaaa​aaaaaaaaaa -> aaaaaaaaaaaaaaaaaaaaaa - fixed
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jeet Chowdhury on February 10, 2011, 02:49:32 AM
how to clear all msgs from chatroom?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on February 14, 2011, 10:54:10 PM
Quote from: nCogNeato on August 15, 2010, 12:21:28 PM
Quote from: greg04 on August 12, 2010, 04:25:18 PM
how would i go about getting the "Chat" link to open in a new tab, but NOT a popup?  if you uncheck the pop-up box in the preferences and users click the link, it just replaces the main SMF forum window.

thanks!

I'm also having pop-up issues.

Using SMF1.1.11.  I've managed to install Ajax and it's working great.  However, the "CHAT" button always opens in a new window.  Toggling the "chat in popup page?" Admin option has no effect.  Any ideas?


Hello everyone, I have been looking all over the place and i am just not finding a solution. Like the 2 above me, i am trying to find the code to have the chat button open in a new tab like it did when i was using SMF 1.1.13.

Users didn't like the idea of having to do a wheel click to open in a new tab, but i gave it a shot anyway :).
I tried this is subs.php

'chat' => array(
'title' => $chatButton,
'href' => 'http://www.mysite.example/chat"target="blank" ',
'show' => true,
'sub_buttons' => array(

When using this solution the chat button doesn't show in IE, but did work for FF and Chrome

Any help would be greatly appreciated.

INFO
SMF=2.0RC5
AjaxChat Integration_3.2.1 RC3_Curve_Friendly
Theme=Blackrain3

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MarkyP on February 15, 2011, 04:39:01 PM
Anyone help me with a doofus question?

Have got the Ajax Chat running sweetly on 2.0RC5 - everything working just fine.

Been trying to change the Channels from the Boards to specific Channels. Have followed the instructions, no probs, edited the files as stated, no probs, uploaded them to the server via ftp, hit refresh on the chat, no change, the channels are still showing the boards.

What have I missed?

Having a mad moment and I know I've overlooked something stoopid  :)

Cheers,

Mark
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MarkyP on February 15, 2011, 04:51:23 PM
S'ok, sussed it - I WAS having a mad moment - was editing the config example, no wonder nothing was happening.

Mark walks off muttering under his breath................................
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sportforum on February 16, 2011, 05:30:21 PM
If I unistall this shoutbox, whole my site is down  ???

I have tried manual but it's the same.

I get a HTTP-fout 500 (Internal Server Error)  :-[
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SAW_Cracker on February 16, 2011, 06:36:47 PM
Any hope for this package to be updated for 2.0 RC5? I am a little scared to try and install it due to the errors i am seeing when I try and install it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 16, 2011, 06:40:08 PM
Quote from: SAW_Cracker on February 16, 2011, 06:36:47 PM
Any hope for this package to be updated for 2.0 RC5? I am a little scared to try and install it due to the errors i am seeing when I try and install it.

Can you explain what the errors are?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SAW_Cracker on February 16, 2011, 07:18:30 PM
Execute Modification ./Themes/default/index.template.php Test failed
  1. Replace ./Themes/default/index.template.php Test successful
  2. Add Before ./Themes/default/index.template.php Test failed

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 16, 2011, 07:20:59 PM
As with all mods this means a manual edit is required.

Which theme do you use? Default or another?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SAW_Cracker on February 16, 2011, 07:22:18 PM
It fails on all themes I use Gamerz from Blocweb
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 16, 2011, 07:25:28 PM
On the mods download page you should see where the parser is.

This should help with the manual edits required.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SAW_Cracker on February 16, 2011, 08:41:59 PM
Ok I am using TP and I have the edits in, the permissions changed to 755 on both shoutbox and chat folders. I have enabled the shoutbox and its just blank

www.canesforum.com is my site
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on February 16, 2011, 10:19:05 PM
Quote from: Swayforth on February 14, 2011, 10:54:10 PM
Quote from: nCogNeato on August 15, 2010, 12:21:28 PM
Quote from: greg04 on August 12, 2010, 04:25:18 PM
how would i go about getting the "Chat" link to open in a new tab, but NOT a popup?  if you uncheck the pop-up box in the preferences and users click the link, it just replaces the main SMF forum window.

thanks!

I'm also having pop-up issues.

Using SMF1.1.11.  I've managed to install Ajax and it's working great.  However, the "CHAT" button always opens in a new window.  Toggling the "chat in popup page?" Admin option has no effect.  Any ideas?


Hello everyone, I have been looking all over the place and i am just not finding a solution. Like the 2 above me, i am trying to find the code to have the chat button open in a new tab like it did when i was using SMF 1.1.13.

Users didn't like the idea of having to do a wheel click to open in a new tab, but i gave it a shot anyway :).
I tried this is subs.php

'chat' => array(
'title' => $chatButton,
'href' => 'http://www.mysite.example/chat"target="blank" ',
'show' => true,
'sub_buttons' => array(

When using this solution the chat button doesn't show in IE, but did work for FF and Chrome

Any help would be greatly appreciated.

INFO
SMF=2.0RC5
AjaxChat Integration_3.2.1 RC3_Curve_Friendly
Theme=Blackrain3



Got it to work.
'chat' => array(
'title' => $chatButton,
'href' => $chatLink . '" target="_blank',
'show' => true,
'sub_buttons' => array(

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: King Death II on February 17, 2011, 10:52:33 PM
Can someone update this for RC4 and 5?

Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 18, 2011, 07:34:21 AM
Quote from: King Death II on February 17, 2011, 10:52:33 PM
Can someone update this for RC4 and 5?

Thanks!

Take a look at reply 7588 you may be plesantly surprised.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dave J on February 18, 2011, 09:09:36 AM
further to my post #7538

I have now uninstalled this as I still cannot get rid of the Error 500 message even on a clean install of RC4.

I have now installed 'Simple Portal 2.3.3' which has a good shoutbox included in it and works very well.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kirankuruvila on February 19, 2011, 02:46:44 AM
I had 2 questions..

1) is there any way to open the chat in the same window? right now it either opens in a separate window or a new tab.
The reason that i want this in the same window is so that the purpose of having my google ads remains; so another question is ,is there a way to add google ads to this if the chat opens in a different tab or window?

2) i get some errors with chrome , but with mozilla it works fine

I hope someone can guide me here..Thank you..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dopamina on February 20, 2011, 01:34:45 PM
I've just downloaded AjaxChat Integration_3.2.1.zip.
In the chat/readme.txt I read:

QuoteExecute the provided installation script by visiting the following URL with your browser:
        http:// example.org/forum/chat/install.php

I cannot find the install.php file
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: b4pjoe on February 20, 2011, 03:29:39 PM
If you want it integrated with your SMF forum, you need to download the Ajax Chat mod and upload it through package manger. It looks like you've just downloaded the stand alone version.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Cobra97 on February 20, 2011, 07:31:53 PM
I'm still looking for a answer to my problem.  I get / all the time instead of  ' ? and so on.   The forum is version 2.0 RC3 and set to English.  My guess was it's a language problem, but this is all English?

I really need help on this one, it's very annoying with //// coming up on everything.

Thanks

John
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 20, 2011, 07:40:50 PM
Quote from: Cobra97 on February 20, 2011, 07:31:53 PM
I'm still looking for a answer to my problem.  I get / all the time instead of  ' ? and so on.   The forum is version 2.0 RC3 and set to English.  My guess was it's a language problem, but this is all English?

I really need help on this one, it's very annoying with //// coming up on everything.

Thanks

John

Is there anything related to the mod in your language files?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Cobra97 on February 20, 2011, 08:02:29 PM
Quote from: Brack1 on February 20, 2011, 07:40:50 PM
Quote from: Cobra97 on February 20, 2011, 07:31:53 PM
I'm still looking for a answer to my problem.  I get / all the time instead of  ' ? and so on.   The forum is version 2.0 RC3 and set to English.  My guess was it's a language problem, but this is all English?

I really need help on this one, it's very annoying with //// coming up on everything.

Thanks

John

Is there anything related to the mod in your language files?

There is two, which both are setup at installation, I could find anything else.
Shout.english.php
Shout.persian.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 20, 2011, 08:09:22 PM
Have you checked the files edits in the parser?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PokémonS on February 21, 2011, 01:11:01 AM
Hello, I'm using this mod in my SMF v1.1.11. I want to change the shoutbox position to the bottom. Isn't it possible? And how?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bugo on February 21, 2011, 03:02:18 AM
Well, open Shout.template.php, cut content of function template_shout_above() and paste into function template_shout_below();

<?php

function template_shout_above() {
}

function 
template_shout_below() {

global $modSettings$context$options$settings$txt$boardurl;

if (!empty($modSettings['enableShoutBox'])){
if (empty($modSettings['miniChat']))
$flag allowedTo('shout_view');
else
$flag allowedTo('chat_access');
if ($flag){

// We'll have to use the cookie to remember the shoutBox header...
if ($context['user']['is_guest'])
$options['sb_collapsed'] = !empty($_COOKIE['sb_collapsed']);

echo '
<script type="text/javascript">
var sb_current_header = ' 
. (empty($options['sb_collapsed']) ? 'false' 'true') . ';
function ajax_shoutBox_collapse(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "sb_collapsed=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("sb_collapsed", mode ? 1 : 0, null, "' 
$context['session_id'] . '");';

echo '
document.getElementById("ajax_shoutbox_collapse").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("ShoutBox").style.display = mode ? "none" : "";
sb_current_header = mode;
}
</script>'
;

if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<div class="cat_bar">
<h3 class="catbg">
<span class="floatleft">'
$txt['shoutBox'], '</span><span class="floatright" style="font-size: 0.65em">AJAX Chat &copy; blueimp.net&nbsp;|&nbsp; Integrated with SMF <a rel="nofollow" href="#" onclick="ajax_shoutBox_collapse(!sb_current_header)" style="outline: none"><img id="ajax_shoutbox_collapse" src="'$settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' '/expand.gif','" alt="*" style="margin-right: 5px;padding-top:7px"  /></a></span>
</h3>
</div>
<div id="ShoutBox"'
, empty($options['sb_collapsed']) ? '' ' style="display: none;"''>
<span class="upperframe" style="height:18px;"><span>&nbsp;</span></span>
<div class="roundframe">
<div style="margin:-5px;">'
getShoutBoxContent() ,'</div>
</div>
<span class="lowerframe"><span>&nbsp;</span></span>
</div>'
;
}
}
}
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>'
;
}

?>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PokémonS on February 21, 2011, 11:07:25 AM
This is what I get. http://img21.imageshack.us/i/74890421.png/

How to repair it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 21, 2011, 11:35:00 AM
Have you looked at the FAQs?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PokémonS on February 21, 2011, 10:44:12 PM
Yes, http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

But what's the problem called? 0 Connection Error?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PokémonS on February 21, 2011, 11:01:07 PM
Sorry, it worked now, the problem is the Bugo's code didn't exact with my version.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: King Death II on February 22, 2011, 12:35:58 AM
Quote from: Brack1 on February 18, 2011, 07:34:21 AM
Quote from: King Death II on February 17, 2011, 10:52:33 PM
Can someone update this for RC4 and 5?

Thanks!

Take a look at reply 7588 you may be plesantly surprised.

I downloaded and installed it but when I tried to use it, it wouldnt let me click the enter box to enter text into the chatbox.... How would I fix this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: King Death II on February 22, 2011, 04:30:11 PM
anyone?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Maxine22 on February 23, 2011, 06:50:16 AM
Hey everyone

I am using the Siyah Zemin theme where all buttons are movable images that sit below the logo. The chat button is showing on my logo as the word 'chat' which looks kind of odd. I would like to move it somewhere else, ideally so that it shows as an image alongside the rest of the buttons.

Would someone be able to point me in the right direction because nothing I have tried works and its driving me nuts... lol.

Thanks  ;)
M

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: midgetmaestro on February 23, 2011, 11:21:03 AM
Does anyone know of an auto-prune mod for the chat database? We have an active chat and our db is quickly filling up.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bugo on February 23, 2011, 04:32:14 PM
Quote from: PokémonS on February 21, 2011, 11:01:07 PM
Sorry, it worked now, the problem is the Bugo's code didn't exact with my version.
Yes, my example is for RC5.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 23, 2011, 05:32:15 PM
Quote from: Maxine22 on February 23, 2011, 06:50:16 AM
Hey everyone

I am using the Siyah Zemin theme where all buttons are movable images that sit below the logo. The chat button is showing on my logo as the word 'chat' which looks kind of odd. I would like to move it somewhere else, ideally so that it shows as an image alongside the rest of the buttons.

Would someone be able to point me in the right direction because nothing I have tried works and its driving me nuts... lol.

Thanks  ;)
M

Hve you checked to see if the menu tab is present on the default theme?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Maxine22 on February 23, 2011, 07:48:06 PM
Menu tab seems to be working fine on default theme. Everything is showing on the tabs (notepad, media, chat).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 23, 2011, 07:51:59 PM
All you require is an edit to one of your files.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Maxine22 on February 23, 2011, 08:02:39 PM
Thank you. Would you be able to help me do this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 23, 2011, 08:11:10 PM
Sorry but I'm no expert at it.

The best way is to use the parser.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Maxine22 on February 24, 2011, 05:57:35 AM
Okay I managed to code the chat link as a gif image alongside the main forum buttons below the logo. I also incorporated the pop up feature and it appears to be working as it should but I have no idea if I have coded it correctly. I really don't want to muck around with it anymore because it took me ages to get this far LOL.

Would someone mind letting me know if there is anything I need to adjust?

Here is the code:

//the custom [chat] button.
        $chatpath = str_replace("index.php", "chat/index.php", $scripturl);
        echo '<li><a href="', $chatpath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt['chat'] . '" style="margin; 0px 0; border="0" /><span>' : $txt['chat']), '<span></a></li>';


Thanks
M
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 24, 2011, 08:40:39 AM
Can you add alink to the forum please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Maxine22 on February 24, 2011, 10:02:04 AM
Sure.

http ://www.crimeprofilers.com

I had to put a space in there because I need a post count of 10 to put up links  :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 24, 2011, 10:08:19 AM
The chats pop up seems ok but I am unable tyo help any further due to the chat being inaccessible to guests.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Maxine22 on February 24, 2011, 10:23:51 AM
Yeah sorry about that. I have enabled guests now if you want to try again.

I think I still need to tweak a few things because the chat box doesn't delete content when you log out.

Also when viewing in safari a blue line appears underneath the chat button when hovering and the language drop-down menu in chat box isn't aligned right...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 24, 2011, 10:25:54 AM
Regarding safari I am unable to help with that.

Regarding the other there is a simple edit which deals with that one.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aaraon on February 25, 2011, 10:13:54 AM
First of all, sorry for my rusty english.

I want to know two things. I did not see ALL the other pages, so pardon if my doubts already been asked and answered before.

I have version 1.1.11 of the forum and version 3.2 of the chat and I would like to ask two questions.

1 - Can I upgrade my forum to 1.1.13 without problems with the chat?

2 - How do I update the chat to 3.2.1 if my forum does not let me uninstalled the chat version 3.2?

In time I appreciate the help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on February 26, 2011, 06:57:01 PM
http://www.simplemachines.org/community/index.php?topic=257973.msg2694371#msg2694371

^ does that edit work for smf2 versions?  Cause I can't get it, or the censored words edit to take affect :(

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Calman on February 27, 2011, 12:59:55 PM
Hi folks,

Tried to post in the Mods section, but couldn't see a "New Topic" button?

Anyway, tried to install the Ajax Chat/Integration and the install went smoothly.  However, as soon as I load my new Forum, I see "ChatBot: Error: Connection status: 500" in red text in the Chat Box straight away? ... and the [Chat] button which appears after the Install goes to a blank Error 500 page???

Any help really apprecaited by this newbie!!!

Many Thanks!
Cal
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 27, 2011, 05:31:16 PM
Quote from: Calman on February 27, 2011, 12:59:55 PM
Hi folks,

Tried to post in the Mods section, but couldn't see a "New Topic" button?

Anyway, tried to install the Ajax Chat/Integration and the install went smoothly.  However, as soon as I load my new Forum, I see "ChatBot: Error: Connection status: 500" in red text in the Chat Box straight away? ... and the [Chat] button which appears after the Install goes to a blank Error 500 page???

Any help really apprecaited by this newbie!!!

Many Thanks!
Cal

Please read the FAQs and/ or search the mods topic.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 27, 2011, 05:32:49 PM
Quote from: hcfwesker on February 26, 2011, 06:57:01 PM
http://www.simplemachines.org/community/index.php?topic=257973.msg2694371#msg2694371

^ does that edit work for smf2 versions?  Cause I can't get it, or the censored words edit to take affect :(

I haven't seen this edit before tbh.

I haven't had time to see if the word filter still works.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Calman on February 27, 2011, 05:43:45 PM
Quote from: Brack1 on February 27, 2011, 05:31:16 PM
Please read the FAQs and/ or search the mods topic.

I Thought this was the place/topic to ask? ... so still no further forward??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on February 27, 2011, 05:45:22 PM
Calman, that question has been asked literally dozens of times in this thread. The FAQ linked in the first post, and the mod's page, explains how to fix it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Calman on February 27, 2011, 06:20:41 PM
Sorry to ask for help on something that's been asked numerous times, but I am new around here and trying to find answers in what is a very "Active" environment.  Trying to read several pages, areas of the site, to be clear on whether I am in the right area for my issue, is difficult.

However, I tried to change the Index.php on both the "chat" and "shoutbox" folders to chmod 755 .. but still no joy.  So, I think I will just remove this mod and forget about it.

Regards.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on February 27, 2011, 06:23:10 PM
Oh, sure I appreciate that it's not easy to get help in an active environment at times, but as a rule for any mod, it's worth looking at the first post of a mod's thread where the author provides information and reading any FAQs present in case they answer your question without even having to ask it ;)

(FWIW that's actually the reason I stopped writing mods. Too many people ignoring the fact that there are help resources - especially when they've been around here long enough to know better - and continue to ask for help when they could have saved both me and themselves the time to just read what's there. Mods like this, though, are a nightmare because there are SOOO many pages. But if in doubt, start with reading the first page and seeing if there's any tips there, even before asking.)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: roonekoos on February 28, 2011, 12:50:21 AM
Hi all,

I have installed this chat without errors but in my error log I get the next error message:

http://ronaldruby.nl/Forum/index.php?action=portal;sa=shoutbox;shoutbox_id=1;time=1298871747;xml8: Undefined index: chatFile: /customers/ronaldruby.nl/ronaldruby.nl/httpd.www/Forum/Sources/Subs.php
Line: 4265

Can someone please help me out?

Thanks in advance :)

I attached the Subs file.

Cheers!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Ellion Cold on February 28, 2011, 03:00:46 PM
Anyone know something about this mod to support 2.0RC5?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aaraon on February 28, 2011, 04:39:56 PM
Quote from: aaraon on February 25, 2011, 10:13:54 AM
First of all, sorry for my rusty english.

I want to know two things. I did not see ALL the other pages, so pardon if my doubts already been asked and answered before.

I have version 1.1.11 of the forum and version 3.2 of the chat and I would like to ask two questions.

1 - Can I upgrade my forum to 1.1.13 without problems with the chat?

2 - How do I update the chat to 3.2.1 if my forum does not let me uninstalled the chat version 3.2?

In time I appreciate the help.

Uhn... people, I´m still in trouble. Please.
I hate to repeat myself, but I´m in a hurry.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 28, 2011, 06:47:33 PM
Quote from: Ellion Cold on February 28, 2011, 03:00:46 PM
Anyone know something about this mod to support 2.0RC5?

Please try and read through the posts.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bigjoe11a on March 03, 2011, 10:52:27 PM
SMF 2.0 RC5

I installed your chat version AjaxChat Integration (latest version 3.2.1) and after the install. One of the member here had to makes some changes to the index.template.php file because I had 2 errors in it. Well he fixed the errors. The only problem is that when I click in the Chat link at the top. I get this error.


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

I did check and those files were missing and I uploaded them by FTP and set them to CMOD 775.
Well I still get the same error.

This was the only version I could find what would even let me install it.

Joe
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bigjoe11a on March 04, 2011, 11:20:42 AM
Guys, I could really use some help here. It's been a day.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on March 04, 2011, 11:31:39 AM
No, it's been just over 12 hours.

So, all files are present and you've set them to 775, what permissions are all the other files set to?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bigjoe11a on March 04, 2011, 12:05:19 PM
Sorry I did all that and it still didn't work. and sorry I thought it was 24 hours and I uninstalled it. and when doing so I crached my web site. So I'm pulling it back together

I'll have to wait until some one updates it to work with SMF 2.0 RC5
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bigjoe11a on March 04, 2011, 12:24:17 PM
Quote from: Arantor on March 04, 2011, 11:31:39 AM
No, it's been just over 12 hours.

So, all files are present and you've set them to 775, what permissions are all the other files set to?

Ok, I reinstalled every other then the chat. Now where do I go from here. When I installed it the 1st time. I got 2 errors in the index.template.php file that one of the members edited it for me. The other problem I had was that all the files were not copied over. I had to upload and copy them my self.

So how should I start.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thechronic2001 on March 04, 2011, 07:52:27 PM
does anyone know how to change the position of the shoutbox? i would like to have it anywhere apart from the top of the page ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mike72 on March 04, 2011, 07:55:43 PM
My ajaxchat and shoutbox only shows 10 posts. Is there a way to make it show more. The scroll bar is there but 10 is all I get.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 05, 2011, 09:16:41 AM
Quote from: thechronic2001 on March 04, 2011, 07:52:27 PM
does anyone know how to change the position of the shoutbox? i would like to have it anywhere apart from the top of the page ;)

The edit you require is mentioned within the FAQs.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bigjoe11a on March 05, 2011, 10:02:03 AM
Is it required to log in to chat, when your all ready log into the board. and For some reason I seem to be log in 2 times. and I can't seem to log out for the 1st one. All so when I do log out. It returns me to the log in page. There's no link to return me to the board or to the portal (If Installed)...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: James Main on March 05, 2011, 01:50:51 PM
I would like to install this but I am getting errors so I have not tried it I am new at this and don't have a test site I can practice blowing up on. The errors listed are with the themes.

9.    Execute Modification    ./Themes/default/index.template.php    Test failed
      1.    Replace    ./Themes/default/index.template.php    Test successful
      2.    Add Before    ./Themes/default/index.template.php    Test failed

is the first error.

      2.0 Sunset
      Execute Modification    ./Themes/sunset/BoardIndex.template.php    Test failed
      1.    Add Before    ./Themes/sunset/BoardIndex.template.php    Test failed
      Execute Modification    ./Themes/sunset/index.template.php    Test failed
      1.    Replace    ./Themes/sunset/index.template.php    Test successful
      2.    Add Before    ./Themes/sunset/index.template.php    Test failed
      ClearSky
      Execute Modification    ./Themes/ClearSky_RC5/BoardIndex.template.php    Test successful
      1.    Add Before    ./Themes/ClearSky_RC5/BoardIndex.template.php    Test successful
      Execute Modification    ./Themes/ClearSky_RC5/index.template.php    Test failed
      1.    Replace    ./Themes/ClearSky_RC5/index.template.php    Test successful
      2.    Add Before    ./Themes/ClearSky_RC5/index.template.php    Test failed
      Curve Minimal Multicolor
      Execute Modification    ./Themes/Curve_Minimal_Multicolor_RC5/BoardIndex.template.php    Test successful
      1.    Add Before    ./Themes/Curve_Minimal_Multicolor_RC5/BoardIndex.template.php    Test successful
      Execute Modification    ./Themes/Curve_Minimal_Multicolor_RC5/index.template.php    Test successful
      1.    Replace    ./Themes/Curve_Minimal_Multicolor_RC5/index.template.php    Test successful
      2.    Add Before    ./Themes/Curve_Minimal_Multicolor_RC5/index.template.php    Test successful

I have no problem deleting the other themes if they cause problems but like my default theme is this going to be a problem?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 05, 2011, 04:02:56 PM
To be honest with you James

The more themes you use the more manual edits will be necessary which is why I have only ever used the one theme.

The test failed means you will have to follow the mods parser and manually edit all those files.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Enders on March 05, 2011, 08:42:11 PM
Error: Undefined index:  show_download in Sources/TPSubs.php on line 201


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Baloch on March 06, 2011, 12:17:07 AM
Is it compatible with SMF 2.0 RC 5?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RvG on March 06, 2011, 12:28:20 PM
Kindly update to SMF 2.0 RC5.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 06, 2011, 04:15:42 PM
Quote from: Enders on March 05, 2011, 08:42:11 PM
Error: Undefined index:  show_download in Sources/TPSubs.php on line 201




Can you give us more information than this please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: b4pjoe on March 06, 2011, 06:18:46 PM
Quote from: RvG on March 06, 2011, 12:28:20 PM
Kindly update to SMF 2.0 RC5.

I installed it on RC5 earlier today and it works fine.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Klinky on March 07, 2011, 06:15:07 PM
I can't get ajax running on my site.
I break my site, every time and reinstall fresh with no mods and the default theme.

I've tried Ajax chat with versions 1.1.13 and 1.1.11

I've tried using the package downloader with both Ajax 3.2.1 regular and 3.2.1 Curve_friendly.

It just breaks the site once the apply mod is clicked. It goes to the install page but at that point anything: the back button, re-load, or clicking install now just brings up the 500 error: The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.

I can't access ANY part of the forum. I can't even log back. It all just redirects to that error.

I've re downloaded both .zip's a couple times to insure no corruption or missing files, from multiple sources. I even tried version 0.8.2 or what ever it's called off the ajax site though I thinks it's the same thing.

When I go to the file manager it looks like this. The mod hasn't even been unpacked.
(pic below, sry for double upload)
I can delete the .zip and the site will still be broken. It takes a fresh smf install AND deletion of the /packages directory to fix.

I've followed the manual install directions in the read-me's of both .zips as well as some you-tube stuff, in all cases when I use the url  /install.php I'm met with an error that claims there is no such file in the designated place. After that the site is completely broken with this type of error window instead. When I go to look in my file manager there is no such install.php in any single directory or folder. When I look at the .zip there is no such thing in either the extracted or still .zipped ones.


I'm at my wits end. I stayed up tell seven last night. I'm really at a lose at this point. I just have no idea.
Maybe my directys are screwy?
Maybe I just have the wrong /install.php file path?
Maybe it's my script blockers, even though I disabled/allowed scripts globally?
Maybe it's just something really stupid like I really am just missing the install.php file. I thought maybe it was generated from one of the included install.xml files...

I just don't know.
Thank you everyone for your time.

EDIT: I do use ipage and host two separate websites/domains off one file manager server thing. That's what the /Blue directory is. The root folder for the second site. Also my index.html for the Blue forum remains unbroken. I'm guessing because technically the forum and 'homepage' arn't linked yet since the forum isn't ready for launch.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MFCSteve on March 08, 2011, 02:47:17 PM
I am sure these questions have been asked and answered time and time again but I cannot find the answers despite having gone through virtually every page of this thread!

Firstly I am trying to add the chat button to another template (pdx-dk119v1) and have copied the button code from the default template but all that shows up is a misaligned text link and it does not show how many users are in the chat. Is there something else I need to change to make it show up correctly?

Secondly, I have seen questions about showing the users in chat. I would like to show this either in a Simple Portal block, or at the bottom of the page with the online users, but also show the names of the users in chat. Is this possible?

Thanks in advance
Steve
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wintermoon on March 09, 2011, 09:03:11 PM
i'm also getting the 500 error. my forum version is 1.1.13 and i was attempting to install with the parser.

it said it installed successfully, then everything went down.

went searching for the error here, and i changed permissions for the 2 files specified, but still nothing.

i then attempted to manually remove all the ajax code in individual files. still nothing.

the error logs say nothing. i even sent a support ticket to the host and they recommended i look here instead.

so please, what am i missing? at this point i'd just really like my forums back and to completely remove all of this.

please help. my back up is corrupted and i am otherwise unable to recover. please please help.

03.10.11 ETA: went and did http://www.simplemachines.org/community/index.php?topic=400356.0. removal and restore successful.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FounderSim on March 10, 2011, 01:41:47 AM
Chat is great but always timing out users ;]
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PokémonS on March 10, 2011, 09:12:36 AM
Hello,

I already read the FAQ, and other posts. My Shoutbox are fine but, how to change the "You can't use ShoutBox" to "Only for registered member" in the Guest's field? There's nothing on Shout.english.php and Modification.english.php. :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MargateSteve on March 10, 2011, 06:10:59 PM
I sorted out the previous problems but have new ones in a different theme.

The code I have for the chat button is
// the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo '<td class="main-navigation"> <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  (' ('.$num.')') : '' , '</a></td>';

and the code for a standard button is// Show the [home] button.
echo '<td class="main-navigation"><a href="', $scripturl, '">' , $txt[103] , '</a></td>';


The chat button shows up fine but it opens in a new tab and not a pop-up. Also, once again, it is not showing the number of users chatting next to the button.
It all works fine in the other themes.

Thanks in advance
Steve
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: James Main on March 10, 2011, 09:09:13 PM
Brack1 I have no problem deleting the blue sky and sunset themes which appear to be full of issues. I tried manually parseing the files but I suck at it so have had no luck and I am not willing to mess up my default theme. I think I am going to just give up on the chat idea and live with the site as it is.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: istion on March 11, 2011, 07:50:17 PM
SOLVED MY /' Issue.

Thanks!
Title: Re: AjaxChat Integration
Post by: texaswc on March 14, 2011, 01:48:46 AM
For the 500 Connection Error



Quote from: MistWDS on March 17, 2009, 10:12:50 PM
@ wiki
I too have a similar error at forum (error: connection status: 500), however on my local server, at the same configuration, all work.
About "menu in line":
I not assured, but the problem can be solved having changed in file: "style.css"

find:
#tabs6 a span {
float : left;
display : block;
background : url(images/tabright6.gif) no-repeat right top;
padding : 5px 15px 4px 6px;
color : #fff;
}

and change on the such:
#tabs6 a span {
float : left;
display : block;
background : url(images/tabright6.gif) no-repeat right top;
padding : 5px 11px 4px 5px;
color : #fff;
}
or try set another value of "padding : 5px 5px 4px 5px;"


Go HERE: http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

Scrole down until you see:
QuoteIf you get a 500 Connection error you might have to set your file permissions as well.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Semerchet on March 14, 2011, 12:45:57 PM
My English is bad. I use google translator. When I log out and log in again I am unable to see shoutbox messages.How do I fix it? (integration with smf)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LondonDragon on March 16, 2011, 05:21:52 AM
Quote from: MargateSteve on March 10, 2011, 06:10:59 PM
I sorted out the previous problems but have new ones in a different theme.

The code I have for the chat button is
// the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo '<td class="main-navigation"> <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  (' ('.$num.')') : '' , '</a></td>';

and the code for a standard button is// Show the [home] button.
echo '<td class="main-navigation"><a href="', $scripturl, '">' , $txt[103] , '</a></td>';


The chat button shows up fine but it opens in a new tab and not a pop-up. Also, once again, it is not showing the number of users chatting next to the button.
It all works fine in the other themes.

Thanks in advance
Steve

Where exactly do you add the above? I am having trouble getting the link to work on the menu! I am using RC5 with the default theme.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RvG on March 16, 2011, 01:08:18 PM
Quote from: LondonDragon on March 16, 2011, 05:21:52 AM
Quote from: MargateSteve on March 10, 2011, 06:10:59 PM
I sorted out the previous problems but have new ones in a different theme.

The code I have for the chat button is
// the [chat] button
   $chatPath = str_replace("index.php", "chat/index.php", $scripturl);
   $num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo '<td class="main-navigation"> <a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  (' ('.$num.')') : '' , '</a></td>';

and the code for a standard button is// Show the [home] button.
echo '<td class="main-navigation"><a href="', $scripturl, '">' , $txt[103] , '</a></td>';


The chat button shows up fine but it opens in a new tab and not a pop-up. Also, once again, it is not showing the number of users chatting next to the button.
It all works fine in the other themes.

Thanks in advance
Steve

Where exactly do you add the above? I am having trouble getting the link to work on the menu! I am using RC5 with the default theme.

Thanks

It works fine with the default theme.... try to enable the chat on your admincp.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fckool on March 18, 2011, 01:39:14 PM
I installed it on RC5 but when I try install the pretty URL's, the shoutbox doesn't work.. blank screen.

I also did this: http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536  (change the .htaccess file)

It still not working...

Thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kathleen Chute on March 19, 2011, 06:47:06 PM
Hi There,
I just had someone help me install you mod, Thank you for proving it . I Dont fully understand it, But Its Great.
I Have gone into my admin panel and  Clicked for guest to view Shoutbox, But Loging out I cant see it.
Does it take some time for it to go into effect or do you espect a Problem.
Any help you could offer , I would be greatful.
Kathleen Chute
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fckool on March 20, 2011, 11:47:45 AM
This thread is dead? no more support?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: R-one on March 20, 2011, 11:49:54 PM
Just a quirky question...
A chat and shoutbox that are integrated.. somehow manage to exclude the ChatBot messages from the shoutbox window.

I want to know where the code for this is located.

reason? i am using the modification that displays latest forum posts in the chat window. i want to exclude them from the shoutbox. as it's doubling up the 'latest post' feature on the forum's front page.

not expecting anyone to know this.. but would be great if anyone did.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MargateSteve on March 24, 2011, 05:58:51 PM
Quote from: LondonDragon on March 16, 2011, 05:21:52 AM
Where exactly do you add the above? I am having trouble getting the link to work on the menu! I am using RC5 with the default theme.
I added them in index.template.php, and the problem I had was that I had to add 'Chat' to the "if (in_array($context['current_action']," part of the same file. But on to my next problem.....................
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ccleanerfan on March 27, 2011, 04:27:12 AM
how can i make it into a shoutbox on 1.1.13??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: theotherdave on March 28, 2011, 02:09:37 PM
I installed Ajax Chat recently in my forums, so I went through a lot of the same problems everyone else has gone through.  One of the main problems I encountered was the blank chat window, empty chat screen, users can't post, whatever you want to call it.  It took me a while to figure out what the exact cause of the issue was, here is what I found.

The file /chat/lib/class/AJAXChat.php was causing my problem.  If you are having the blank chat window issue and replace that file with the one that came with the distribution and it repairs the issue then you were likely having the same problem as I was. 

So, my biggest question was WHY? I had edited that file, but only 2 lines and not something that should affect anything.  I used a program called total commander to compare the two versions, the working and non working ajaxchat.php.  It turns out the non working file had some garbage text placed at the beginning of the file, it looked like this: <?php .  When I opened the file in Dreamweaver, or just notepad I did not see those characters. 

It ends up being an encoding error, where when you save the file with some editors it screws it up.  To fix, open the ajaxchat.php file in notepad, go to file save as and choose save as type: all files, and choose encoding ANSI this will get rid of the garbage, and the file should work again, and you will not have an empty chat window. 

Hope this helps someone.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bobn on March 30, 2011, 03:24:50 PM
Wont work with RC5??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MargateSteve on March 31, 2011, 04:52:17 PM
I have managed to get the users in chat to show up in the 'Who's online' block following the instructions at http://simpleportal.net/index.php?topic=2578.0 but it will only show up on the index page.
The block and the others stats show up on every page but the chat users only show up on the front page. Is there any way to get it to show up on every page? My site is at http://squeeze.follyball.co.uk/.

Thanks in advance
Steve
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ksharks on April 01, 2011, 12:08:48 AM
A quick question is there a way to get the conversations to stay for a longer period of time?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bobn on April 01, 2011, 12:35:09 AM
Quote from: Bobn on March 30, 2011, 03:24:50 PM
Wont work with RC5??

Anyone?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bobn on April 02, 2011, 01:08:20 PM
How can I have only one channel? I want all users to end up in the same place
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fckool on April 02, 2011, 03:20:40 PM
I installed it on RC5 but when I try install the pretty URL's, the shoutbox doesn't work.. blank screen.

I also did this: http://www.simplemachines.org/community/index.php?topic=257973.msg1998536#msg1998536  (change the .htaccess file)

It still not working...

Thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bobn on April 02, 2011, 08:58:17 PM
Is there a way to resize the pop up window?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zushiba on April 04, 2011, 02:25:50 PM
Has anyone been successful adding avatars to the integrated shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cyberdyne on April 04, 2011, 06:27:05 PM
Quote from: ccleanerfan on March 27, 2011, 04:27:12 AM
how can i make it into a shoutbox on 1.1.13??

I second this. Would love to get this working in v.1.1.13
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dja9674 on April 05, 2011, 04:55:31 PM
I can't seem to figure out how to get the permissions set so registered users (not just admins) can use the chat and shoutbox.

I'm running RC5; is there something in the config file or somewhere else (in the admin tab) that I have to add so this is accessible by normal forum members?  I've searched the forum for the past hour and various Google searches and keep coming up empty.

Regular members get the message You can't access the chat.

Can anyone provide me with some guidance? Much appreciated!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kathleen Chute on April 10, 2011, 09:54:25 AM
Thank you for this mod, I paid to have mine installed . I would like to remove the  collapsible feature?
thank you again
Kathleen Chute
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: stormwell on April 12, 2011, 04:51:16 AM
Using SMF 2.0 RC3 and I've recently included the mod, had the Connection: 500 error but I managed to resolve that.

Both shoutbox and chat are blank and nothing I do seems to work, any help would be most welcomed.

Thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: roonekoos on April 14, 2011, 11:45:53 AM
My chat button don't show, can someone please have a look at my Sub.php file?

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: daftandhungry on April 16, 2011, 08:05:29 PM
Hey all having a problem with this mod after upgrading to RC5.

I am currently running RC5 with Simpleportal 2.3.3, I have treasury v 2.09 and ajaxchat installed on SKM_Night theme.

Ajaxchat is working, shouts and all no blank chat issues or anything, however when users login to my site they get redirected to an xml page that lists shoutbox info.

I have tried uninstalling ajaxchat and the issue goes away, users login as normal.

Here is the error and code they are being redirected to.

This XML file does not appear to have any style information associated with it. The document tree is shown below.
     

<root>

<infos>
<info type="userID">2</info>
<info type="userName">Johni</info>
<info type="userRole">3</info>
</infos>

<messages>

<message id="229" dateTime="Fri, 08 Apr 2011 06:00:50 -0600" userID="62" userRole="3" channelID="0">
<username>Pinhead</username>

<text>
backup ur etmain folder then you&#39;ll save your xp whenever you have to reinstall
</text>
</message>

<message id="230" dateTime="Fri, 08 Apr 2011 06:01:02 -0600" userID="184" userRole="1" channelID="0">
<username>Snapper</username>
<text>yea ok mate lets go first to 15 hey</text>
</message>

<message id="231" dateTime="Fri, 08 Apr 2011 06:01:17 -0600" userID="7" userRole="1" channelID="0">
<username>lucky</username>
<text>ok c ya der</text>
</message>

<message id="232" dateTime="Fri, 08 Apr 2011 06:01:20 -0600" userID="184" userRole="1" channelID="0">
<username>Snapper</username>
<text>will do pin wanna come watch</text>
</message>

<message id="233" dateTime="Fri, 08 Apr 2011 06:01:28 -0600" userID="62" userRole="3" channelID="0">
<username>Pinhead</username>

<text>
have fun guys i&#39;m gonna tie on the feedbag and go to bed...have to work tomorrow
</text>
</message>

<message id="234" dateTime="Fri, 08 Apr 2011 06:01:57 -0600" userID="184" userRole="1" channelID="0">
<username>Snapper</username>

<text>
same here bud wont take me long to beat lucky lol;)
</text>
</message>

<message id="235" dateTime="Fri, 08 Apr 2011 06:02:02 -0600" userID="62" userRole="3" channelID="0">
<username>Pinhead</username>

<text>
i might get to play tomorrow night for the first time in weeks lol
</text>
</message>

<message id="236" dateTime="Fri, 08 Apr 2011 06:02:19 -0600" userID="184" userRole="1" channelID="0">
<username>Snapper</username>
<text>lo, sweet c ya then mate</text>
</message>

<message id="237" dateTime="Fri, 08 Apr 2011 06:02:22 -0600" userID="62" userRole="3" channelID="0">
<username>Pinhead</username>
<text>when the wifes away ET i will play</text>
</message>

<message id="244" dateTime="Fri, 08 Apr 2011 06:51:29 -0600" userID="86" userRole="1" channelID="0">
<username>Cammo</username>
<text>New layout nice </text>
</message>
</messages>
</root>

If anyone has any ideas how to resolve this I would greatly appreciate it.
Link to site if needed http://dbdclan.com (http://dbdclan.com)

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Yngwiedis on April 17, 2011, 04:17:19 PM
Can someone explain me how i can make plain registered members can have their personal private channel so can invite other people in ?
Right now only Administrators have private channel with their names.

Thank you very very much.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 17, 2011, 04:25:18 PM
Quote from: Bobn on March 30, 2011, 03:24:50 PM
Wont work with RC5??

Would you please give more information than this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dark king on April 17, 2011, 04:36:39 PM
It works on RC5. You can tray it on my test board testboard.mudascantrad.com/chat/index.php 

username

test guy

password

test

i did have to replace the Fabridge.js to get it to work properly in chrome but other than that it works fine. I Plan on installing it on my main forum soon :) i attached Fabridge if anyone needs it just replace the old one and it should all work fine.

Ill let you know how it works when i customize it a bit.

Edit: i even got a mod so it has a block in simple portal :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on April 17, 2011, 09:31:49 PM
Quote from: dja9674 on April 05, 2011, 04:55:31 PM

Regular members get the message You can't access the chat.

Can anyone provide me with some guidance? Much appreciated!

Did you check under the actual "Chat" settings under the admin panel.  not just permissions, there's a chat Admin page where you need to activate the chat & shoutbox for users to see it.

If so, then you have to make sure to give regular members the permissions "access to chat" , etc.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Yngwiedis on April 18, 2011, 10:18:38 AM
Some help with that please ?

Quote from: Yngwiedis on April 17, 2011, 04:17:19 PM
Can someone explain me how i can make plain registered members can have their personal private channel so can invite other people in ?
Right now only Administrators have private channel with their names.

Thank you very very much.
Title: Re: AjaxChat Integration
Post by: WantSome on April 19, 2011, 03:21:59 PM
Hiya!

I have a problem and I'm slowly trying to wade my way through possible fixes.  I'm trying this recommended fix but I can't for the life of me find the .htaccess file SunKing might be talking about.  Any tips?

Quote from: SunKing on May 10, 2009, 10:50:45 PM
EDIT:
HOLY!!!!!!!!! I have my own good news!!! I finally got it working on my test site! I figured I would start from the very beginning and work my way through each step again. When I got to the PrettyUrls Tip posted by Jiveturkey (I am adding this mod to a clean install), I decided to just give it a try anyway....which I had done previously as well. However, on this particular try, I noticed another .htaccess file and figured I'd try adding RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to this overlooked .htaccess and TADA!!! It works! Time to enjoy (finally)!!!




...

The fix above fix requires placing a line in an .htaccess file located in the same folder as SSI.php. If this fix still does not resolve your issues, there are a few other things you can try. I will explain them here.

...

Essentially, my problem is that I get this error message when I open the chat:

TypeError:Object#<HTMLObjectElement> has not method 'create'

I can press 'ok' and go to the chat window, but nothing I type appears in the messages box after pressing enter.  I've seen another post in this thread that suggests it might be a google chrome issue - however other browsers give me the same blank chat (although I don't get the error message).

Help, please?!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on April 23, 2011, 05:39:22 AM
Hello all
I would like to know if Ajax chat can work on a network bases.
I have 3 forums all using this Ajax chat and I would like to know
if I can link all 3 together with the shoutbox.

say for instance 1 is the server and I point the other 2 at the server
so all forums can see the same shoutbox and are able to talk to each other
without having to go to that other forum.

I hope what I am asking is understandable
thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: swoodie on April 25, 2011, 04:06:01 AM
I i tried to install AjaxChat Integration 3.2.1 (modified for SMF 2 RC3)   

i check all file to the http://custom.simplemachines.org/mods/index.php?action=parse

but still won't work in default theme, i am using smf 2.0rc3  theme is inferno

i could not find           echo '               <li>', $context['current_time'], '</li>            </ul>';
in my index.template.php file

can some one help me out if i upload the file for you to take a look at

by the way i also get this error in default theme
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


i have it working i changed the index.php file permissions to 755 inside the chat folder is it safe to run it at that?.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: akashbc on April 26, 2011, 12:51:22 PM
A error in shout box : (21:56:43) ChatBot: Error: Connection status: 500


Please help

Thank you

Title: I've no idea what I am doing (I bet you've never heard that before!)
Post by: elf_fu on April 26, 2011, 02:07:47 PM


In short (tl;dr) I tried installing this, errors and all. I don't know how to edit the files, why I had an error at the top of my ajax chat window, why the Integrated with SMF link led to a site apparently in Arabic, why I wasn't listed as online when I went into it, and when I tried to fix it I broke my entire forum so I had to restore the domain & the data base. It is currently no longer installed on my forum:/

EDITED TO ADD:

After all of my frustration and issues yesterday, I re-installed it and spent the entire day trying several of the tricks and tips posted in this forum, including the ones which were suggested for blank chat as well as tiny portal issues.

Turns out my 201 error at the top of the chat, (show_download in Sources/TPSubs.php on line 201)with the fix posted within this thread fixed it.

I just want to say thanks to you guys who didn't mock me for my outright panic xD AND for all the hard work and replies in this thread by people helping out other people--certainly helped me!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: honeywick on April 27, 2011, 04:57:00 PM
works great for me all i know is that as long as your theme uses the default it worked fine
would not install on a custom theme for me at least

the one problem i got is with the blink set it to blink when new message
the light flashes from green to orange like it should
but after a while it stays on orange and does not display new chat i click the orange dot
then i get a rush of new chat messages
is there a fix or an edit for this

                                    thx
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ʜᴏᴍɪᴄɪᴅᴇ on April 27, 2011, 10:21:40 PM
Can you please upgrade it to 1.1.13
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: honeywick on April 28, 2011, 12:07:32 AM
i use smf rc5 and the latest version of ajax chat had no error code when i installed it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: elf_fu on April 28, 2011, 06:51:08 AM

Quote from: mavfreak on July 07, 2010, 05:41:38 PM


If you're feeling adventurous, you could do this: edit your chat.js file, find the line

getUserNodeStringItems: function(encodedUserName, userID) {

and decide where you want the link. After the </a></li> of the link you are going to put your link after, add these lines:

+ '<li><a target="_blank" href="http://www.theflipsideforum.com/index.php?action=profile;u='
+ userID
+ '">'
+ this.lang['userMenuProfile']
+ '</a></li>'


Then edit your en.js file in the languages dir and add the line

userMenuProfile: 'View profile',

I just tried it just for the heck of it, and it works fine for me. I wish I knew what javascript to add to the href to get it to go back to the main window instead of open a new one though. I'll keep researching.



Does this still work? :3 I tried editing the above files this morning in notepad++, it didn't show for me. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: honeywick on April 28, 2011, 05:56:28 PM
nice lil edit thx works great with the name changing  now i know whos who and i know  i can stop the name changing but they love it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: honeywick on April 28, 2011, 06:36:34 PM
also is there any way to change  the 24 hour time to a 12 hour interval
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: elf_fu on April 29, 2011, 01:19:22 AM
Quote from: honeywick on April 28, 2011, 06:36:34 PM
also is there any way to change  the 24 hour time to a 12 hour interval

Does this help you? http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2214720

Also, is your above comment about adding the custom field to link to users SMF profiles? If so, does that mean the code worked? (I'd be relieved to hear it's just me unable to edit rofl)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on April 29, 2011, 09:34:49 AM
posted in wrong board, removed, sorry guys
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RvG on April 29, 2011, 10:46:38 AM
I was struggling on looking for a shoutbox lately. I just realized that I can use the shoutbox of SimplePortal...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on April 30, 2011, 10:41:35 PM
@wantsome

The .htaccess file will be in the root folder of your forum. If there's not one there, you'll need to create one. The easiest way to do this is to open notepad and create a simple text file named text.htaccess and put whatever htaccess stuff you need in there. Upload it to your root folder, and remove the "text" part so it gets renamed to .htaccess and that's it. Hope this helps.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: honeywick on May 01, 2011, 03:27:13 AM
Quote from: elf_fu on April 29, 2011, 01:19:22 AM
Quote from: honeywick on April 28, 2011, 06:36:34 PM
also is there any way to change  the 24 hour time to a 12 hour interval

Does this help you? http://sourceforge.net/projects/ajax-chat/forums/forum/774132/topic/2214720

Also, is your above comment about adding the custom field to link to users SMF profiles? If so, does that mean the code worked? (I'd be relieved to hear it's just me unable to edit rofl)


worked nice
ok now for the blink thing ill be in chat for 10 minutes and the light which goes from green to orange stay orange and i miss chat i tried all the setting under the user settings all ends with the same result is there a fix or an edit to where it never stops blinking
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Yngwiedis on May 01, 2011, 01:38:34 PM
Some help with that please ?

Quote from: Yngwiedis on April 17, 2011, 04:17:19 PM
Can someone explain me how i can make plain registered members can have their personal private channel so can invite other people in ?
Right now only Administrators have private channel with their names.

Thank you very very much.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Heeks on May 05, 2011, 04:46:45 AM
Does this chat works with SMF 2.0 RC5, please ?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Heeks on May 09, 2011, 02:41:15 AM
Quote from: Heeks on May 05, 2011, 04:46:45 AM
Does this chat works with SMF 2.0 RC5, please ?



?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MPerrine on May 09, 2011, 03:32:35 PM
Hello,

Since I updated to 1.1.13, my chat doesn't work anymore : users don't swho up and I can't get any message to display when sending.

As I installed PeopleSign (to prevent spam) in the same time, I don't know if the problem is from 1.1.13 or Peoplesign. I get this message at the top of the chat : Notice: Use of undefined constant PEOPLESIGN_CHALLENGE_URL - assumed 'PEOPLESIGN_CHALLENGE_URL' in /xxx/forum/Sources/Load.php(1737) : eval()'d code on line 21

Any idea ? :)

Thank you !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MPerrine on May 10, 2011, 04:24:49 AM
Ok ! Problem solved with this :http://www.simplemachines.org/community/index.php?topic=430540.msg3028767#msg3028767
And the chat is now working :)
Title: Re: AjaxChat Integration
Post by: WantSome on May 10, 2011, 03:06:21 PM
Quote from: WantSome on April 19, 2011, 03:21:59 PM
Hiya!

I have a problem and I'm slowly trying to wade my way through possible fixes.  I'm trying this recommended fix but I can't for the life of me find the .htaccess file SunKing might be talking about.  Any tips?

Quote from: SunKing on May 10, 2009, 10:50:45 PM
EDIT:
HOLY!!!!!!!!! I have my own good news!!! I finally got it working on my test site! I figured I would start from the very beginning and work my way through each step again. When I got to the PrettyUrls Tip posted by Jiveturkey (I am adding this mod to a clean install), I decided to just give it a try anyway....which I had done previously as well. However, on this particular try, I noticed another .htaccess file and figured I'd try adding RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to this overlooked .htaccess and TADA!!! It works! Time to enjoy (finally)!!!




...

The fix above fix requires placing a line in an .htaccess file located in the same folder as SSI.php. If this fix still does not resolve your issues, there are a few other things you can try. I will explain them here.

...

Essentially, my problem is that I get this error message when I open the chat:

TypeError:Object#<HTMLObjectElement> has not method 'create'

I can press 'ok' and go to the chat window, but nothing I type appears in the messages box after pressing enter.  I've seen another post in this thread that suggests it might be a google chrome issue - however other browsers give me the same blank chat (although I don't get the error message).

Help, please?!

Anybody?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sisterwolf on May 11, 2011, 12:23:27 AM
Is this ever going to be "officially" updated for RC5?  If it's not, it would be seriously awesome if the developer would give us some parsed directions on exactly what needs to be done to install it on RC5.

I'm not a developer myself, but I LOVED AjaxChat when we had it installed on a test forum a year or so ago.  I don't want to go any longer than I already have without it on our permanent forum!!

Since I'm a newb to "for reals coding", I don't want to take the chance that I'll break the forum by installing it if it's not written for RC5 (and it obviously isn't).

Please, please, please help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: zushiba on May 11, 2011, 11:55:04 PM
Alrighty I got tired of making the same small edit to make this thing compatible with a new install of RC5 so here's a repackage of AjaxChat that will install on a clean copy of RC5.

I cannot speak for it's compatibility with other skins, you're on your own there the best I can do for you is this.
The most common error on index.template.php is trying to insert the count of people in chat, which honestly I don't care about.

At the bottom of index.template.php before the closing ?> I just added the following function

function Not_Used_at_all(){

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

}


The installer then passes that check because it finds what it's looking for and installs it in there.
function Not_Used_at_all(){


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>';
}
echo '
<li>', $context['current_time'], '</li>
</ul>';

}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: marquisite on May 12, 2011, 04:05:38 AM
"Users in chat" shown on the SMF board index does not appear to work with AjaxChat 0.8.3-SMF but continues to work with 0.8.2-SMF.

Does anybody know which file(s) need changing and to what to get the users in chat function working with version 0.8.3?

Thanks

EDIT: Problem solved. The 0.8.2 version complete with SMF integration has the tables as "ajaxchat_xyz" whereas the 0.8.3 SMF version without the integration has the tables as "ajax_chat_xyz". Now it all works :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: moeset on May 15, 2011, 11:22:59 AM
Hello guys,

I am using this mod in my forum. That is really good mod. In my forum, there are several ranks, and want to see the right color of user in Chat room.

http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=PhpBB3_custom_user_group

I followed that link and make a one group to get a right color. I got it without any problem. But, I have left more than 5 custom groups. What i want to know is, in that example they used VIP as a group name. and Can i substitute as my own name and can i  put new name for another group

Like this
for config.php
if(!defined('AJAX_CHAT_VIP')) define('AJAX_CHAT_VIP', 5);(for one group)
if(!defined('AJAX_CHAT_NEW')) define('AJAX_CHAT_ NEW', 6); (for another group)


$userData['groupID'] = $user->data['group_id'];

            if($auth->acl_get('a_')) {
                $userData['userRole'] = AJAX_CHAT_ADMIN;
            } elseif($auth->acl_get('m_')) {
                $userData['userRole'] = AJAX_CHAT_MODERATOR;
            }    else {
                // Check if we have a member of our custom user group
                if($userData['groupID'] == 7)
                    $userData['userRole'] = AJAX_CHAT_VIP;
                else
if($userData['groupID'] == 10)(for new group)
                    $userData['userRole'] = AJAX_CHAT_VIP;
                    $userData['userRole'] = AJAX_CHAT_USER;
            }

Am I rite? Check it for me please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Heeks on May 17, 2011, 01:44:51 PM
Quote from: zushiba on May 11, 2011, 11:55:04 PM
Alrighty I got tired of making the same small edit to make this thing compatible with a new install of RC5 so here's a repackage of AjaxChat that will install on a clean copy of RC5.

I cannot speak for it's compatibility with other skins, you're on your own there the best I can do for you is this.
The most common error on index.template.php is trying to insert the count of people in chat, which honestly I don't care about.

At the bottom of index.template.php before the closing ?> I just added the following function

function Not_Used_at_all(){

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

}


The installer then passes that check because it finds what it's looking for and installs it in there.
function Not_Used_at_all(){


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>';
}
echo '
<li>', $context['current_time'], '</li>
</ul>';

}


Thx for your work  ;)
I'd like to have some feedback on this one, please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: yogesh_gamer on May 17, 2011, 11:20:13 PM
using 1.1.13 version
I install this mod. successfully installed but seems to not install.
please help me
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Yngwiedis on May 26, 2011, 07:14:50 PM
Some help with that please ?

Quote from: Yngwiedis on April 17, 2011, 04:17:19 PM
Can someone explain me how i can make plain registered members can have their personal private channel so can invite other people in ?
Right now only Administrators have private channel with their names.

Thank you very very much.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Adamr on May 28, 2011, 08:09:02 AM
Hello!
I have just installed this mod and I have a trouble with shoutbox.
Look at attached image. 12th character is damaged, shows square (?), I don't know what does it mean.
I have SMF 1.1.13 installed.
//edit
Wow, It doesn't work under Opera, under Firefox everything works!
But I have a problem with sendind messages. I'm unable to send message first once:
1. Type message
2. [Enter]
3. Message doesn't show
4. Type once again
5. [Enter]
6. Works!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Yngwiedis on May 30, 2011, 03:46:15 PM
Hello...

I want to add custom smileys to my AjaxChat and i follow the directions here: http://www.simplemachines.org/community/index.php?topic=257973.msg2508263#msg2508263

I can see the popup with smilies when i click "Insert Smiley" but when i post the smilies i only see their codes. For example i see  :worried:  but not the actual smiley image.

Can someone point me what is wrong ?



Also can someone tell me the answer in that question ?

Quote from: Yngwiedis on April 17, 2011, 04:17:19 PM
Can someone explain me how i can make plain registered members can have their personal private channel so can invite other people in ?
Right now only Administrators have private channel with their names.

Thank you very very much.

Thank you very very much.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Airclown on May 30, 2011, 07:19:27 PM
Quote from: WantSome on May 10, 2011, 03:06:21 PM
Quote from: WantSome on April 19, 2011, 03:21:59 PM
Hiya!

I have a problem and I'm slowly trying to wade my way through possible fixes.  I'm trying this recommended fix but I can't for the life of me find the .htaccess file SunKing might be talking about.  Any tips?

Quote from: SunKing on May 10, 2009, 10:50:45 PM
EDIT:
HOLY!!!!!!!!! I have my own good news!!! I finally got it working on my test site! I figured I would start from the very beginning and work my way through each step again. When I got to the PrettyUrls Tip posted by Jiveturkey (I am adding this mod to a clean install), I decided to just give it a try anyway....which I had done previously as well. However, on this particular try, I noticed another .htaccess file and figured I'd try adding RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to this overlooked .htaccess and TADA!!! It works! Time to enjoy (finally)!!!




...

The fix above fix requires placing a line in an .htaccess file located in the same folder as SSI.php. If this fix still does not resolve your issues, there are a few other things you can try. I will explain them here.

...

Essentially, my problem is that I get this error message when I open the chat:

TypeError:Object#<HTMLObjectElement> has not method 'create'

I can press 'ok' and go to the chat window, but nothing I type appears in the messages box after pressing enter.  I've seen another post in this thread that suggests it might be a google chrome issue - however other browsers give me the same blank chat (although I don't get the error message).

Help, please?!

Anybody?
Quote from: Adamr on May 28, 2011, 08:09:02 AM
Hello!
I have just installed this mod and I have a trouble with shoutbox.
Look at attached image. 12th character is damaged, shows square (?), I don't know what does it mean.
I have SMF 1.1.13 installed.
//edit
Wow, It doesn't work under Opera, under Firefox everything works!
But I have a problem with sendind messages. I'm unable to send message first once:
1. Type message
2. [Enter]
3. Message doesn't show
4. Type once again
5. [Enter]
6. Works!

these are related errors.
i'm also having issues like this. firefox won't through out a visible error like chrome does though. instead will just doesn't post your first shout.
if someone has any idea how to fix this that would be really awesome :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: generustman on June 01, 2011, 12:05:46 PM
HELP...Loosing my hair...LOL

Have installed in one of my forums and not an issue but for some reason I keep trying to install in a new forum we are starting and OMG...First go to install and every index.template.php "BEFORE" fails no matter what theme...even default. So, I install and do the manual and then I get ChatBot: Error: Connection status: 404 in shoutbox and chat

see at onimous.net/farmvilleclan/forum

Does anyone have any ideas or wanna help? I am on hour 12 straight on this now...LOL

UPDATE:

I added NChat no problem for now but really want Ajax if anyone can help me
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nob4uask on June 04, 2011, 12:09:11 AM
Arvo All,

I just moved my forums from a home server to a webhost and it is up and running.  The problem is now the chatroom doesn't work, when I try to access it, it comes up with a windows log in and doesn't even accept my username/password.  I thought that I would try to uninstall it then re-install it but received an error in regards to the ./Themes/default/index.template.php which failed.  I went ahead and lick uninstall anyway figuiring that since I was re-installing it it wouldn't matter.. major assumption gone wrong..lol  I had to reinstall everything but still need the chatroom going.

I am running smf 1.1.13 along with ajaxchat 3.2.1

Any help would really be appreciated.

regards,

nob4uask
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nob4uask on June 04, 2011, 03:51:37 AM
Quote from: nob4uask on June 04, 2011, 12:09:11 AM
Arvo All,

I just moved my forums from a home server to a webhost and it is up and running.  The problem is now the chatroom doesn't work, when I try to access it, it comes up with a windows log in and doesn't even accept my username/password.  I thought that I would try to uninstall it then re-install it but received an error in regards to the ./Themes/default/index.template.php which failed.  I went ahead and lick uninstall anyway figuiring that since I was re-installing it it wouldn't matter.. major assumption gone wrong..lol  I had to reinstall everything but still need the chatroom going.

I am running smf 1.1.13 along with ajaxchat 3.2.1

Any help would really be appreciated.

regards,

nob4uask

Even All,

After reading some comments the .htaccess file refreshed some dead brain cells and the AuthName "Forbidden" shows up on the windows log in window so it must be something here.  I am assuming I need to change something but just not sure where to start.  I know that there are only 5 lines in the default but any help would be appreciated.  I will continue to look and post what I find in order to maybe help someone in the future. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dale3887 on June 04, 2011, 12:03:47 PM
hey guys im sorry but this really pisses me off
Warning: include() [function.include]: Failed opening '/home/vhosts/screaming-eagles-modding.6te.net/chat/lib/config.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/vhosts/screaming-eagles-modding.6te.net/chat/lib/class/AJAXChat.php on line 50


yes i have tried to upload it through ftp but it dont work...
Title: Re: AjaxChat Integration
Post by: WantSome on June 04, 2011, 01:18:13 PM
Is this mod still supported?

Quote from: WantSome on May 10, 2011, 03:06:21 PM
Quote from: WantSome on April 19, 2011, 03:21:59 PM
Hiya!

I have a problem and I'm slowly trying to wade my way through possible fixes.  I'm trying this recommended fix but I can't for the life of me find the .htaccess file SunKing might be talking about.  Any tips?

Quote from: SunKing on May 10, 2009, 10:50:45 PM
EDIT:
HOLY!!!!!!!!! I have my own good news!!! I finally got it working on my test site! I figured I would start from the very beginning and work my way through each step again. When I got to the PrettyUrls Tip posted by Jiveturkey (I am adding this mod to a clean install), I decided to just give it a try anyway....which I had done previously as well. However, on this particular try, I noticed another .htaccess file and figured I'd try adding RewriteRule ^chat/?$ ./chat/index.php [L,QSA] to this overlooked .htaccess and TADA!!! It works! Time to enjoy (finally)!!!




...

The fix above fix requires placing a line in an .htaccess file located in the same folder as SSI.php. If this fix still does not resolve your issues, there are a few other things you can try. I will explain them here.

...

Essentially, my problem is that I get this error message when I open the chat:

TypeError:Object#<HTMLObjectElement> has not method 'create'

I can press 'ok' and go to the chat window, but nothing I type appears in the messages box after pressing enter.  I've seen another post in this thread that suggests it might be a google chrome issue - however other browsers give me the same blank chat (although I don't get the error message).

Help, please?!

Anybody?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Yngwiedis on June 06, 2011, 06:43:22 PM
Is there anyway to do this ?

Quote from: Yngwiedis on April 17, 2011, 04:17:19 PM
Can someone explain me how i can make plain registered members can have their personal private channel so can invite other people in ?
Right now only Administrators have private channel with their names.

Thank you very very much.

Thank you very very much.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DBS64 on June 08, 2011, 12:33:27 PM
Hello,

I put the Ajaxchat on my custom theme..
But i dont know how to change de bg color..
i want black into background..

someone help?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PokémonS on June 09, 2011, 09:29:03 AM
Hi,

I changed the smiles. But after changes, the shoutbox became blank! :(

Is this smiles are correct?

// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
';)',
':D',
'>:D',
';D',
'8)',
':P',
'^-^',
':-\',
':(',
':-[',
'>:( ',
':-X',
':=(',
':o',
'::)'
),

// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smiley.gif',
'wink.gif',
'cheesy.gif',
'evil.gif',
'grin.gif',
'cool.gif',
'tongue.gif',
'azn.gif',
'undecided.gif',
'sad.gif',
'embarrassed.gif',
'angry.gif',
'lipsrsealed.gif',
'cry.gif',
'shocked.gif',
'rolleyes.gif'
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PokémonS on June 09, 2011, 09:37:10 AM
OK Nevermind!! The problem is this code smile

:-\

:D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: skotinos on June 09, 2011, 05:17:02 PM
Hi,
please tell what else should I do
I CHMOD it
but, again showing me this:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at your-info.cz.cc Port 80


please advice
Thanks in advance

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 09, 2011, 05:53:10 PM
Quote from: DBS64 on June 08, 2011, 12:33:27 PM
Hello,

I put the Ajaxchat on my custom theme..
But i dont know how to change de bg color..
i want black into background..

someone help?

Near the top of the chat is a dropdown named Core.

Choose the black from there.

In the mods FAQs there are instructions on how to set it up so the chat is permanently black.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: skotinos on June 09, 2011, 08:39:41 PM
Quote from: skotinos on June 09, 2011, 05:17:02 PM
Hi,
please tell what else should I do
I CHMOD it
but, again showing me this:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at your-info.cz.cc Port 80


please advice
Thanks in advance


Ok, I fixed it. but now I have this problem:
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hardcase on June 12, 2011, 04:40:37 AM
Now that SMF 2.0 has gone gold are do you intend to mod this mod?... please as it now reports the file(s) as corrupt and wont install.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: virtualdave on June 13, 2011, 04:20:36 PM
Quote from: Hardcase on June 12, 2011, 04:40:37 AM
Now that SMF 2.0 has gone gold are do you intend to mod this mod?... please as it now reports the file(s) as corrupt and wont install.


Me to. I love the mod but have not been able to get it to fly on my 2.0 RC4 board. I have another bigger board running 1.1.14 that I want to upgrade to 2.0 Gold but chat is very popular and I will take a beating if I loose it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Airclown on June 14, 2011, 05:17:13 AM
same for me, and unfortunatly it the only one of it's kind that works like we want it to work currently.. not having it after an upgrade will upset my users pretty heavy for some time.. :(

please make an update for this for SMF 2.0! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Donnie_K on June 14, 2011, 12:51:35 PM
x2, I am in dire need of a version of this compatable with the new final release of SMF 2.0, my users are not happy the chat room and shout box are gone, lol.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: b4pjoe on June 14, 2011, 01:23:46 PM
The current release works on 2.0 Final except you must set package manager to emulate SMF 2.0 RC5 and during the install it fails on ./Themes/default/index.template.php:

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


The thing is, in the actual index.template.php file it has a tab missing in front of echo'. If you open index.template.php and place your cursor before echo' and hit your tab key, save the file and try the install again it works without any problems.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hardcase on June 14, 2011, 02:06:22 PM
I've tried that and it did not work, it still says that the files are corrupted, i have tried several times with both the edited version of Zushiba and the download available in the mods section, neither will install.

I will try again later with a clean install of 2.0 gold... although this was a clean install... ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: b4pjoe on June 14, 2011, 02:11:06 PM
You've set package manager to emulate SMF 2.0 RC5? If so, it sounds like you have a permissions problem with your site.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hardcase on June 14, 2011, 02:34:43 PM
Ok i must of overlooked that bit thinking that adjusting the template file was sufficient, so how do i set the package manager to emulate RC5?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: b4pjoe on June 14, 2011, 03:04:26 PM
In Package Manager, bottom right corner. click advanced, type in

SMF 2.0 RC5

in the text box and click apply. Then try the install again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hecho on June 15, 2011, 10:51:22 AM
I installed on SMF Gold release but I have a problem! On top of the all pages (any template) appears UTF-8 Byte Order Mark (). why?? when I remove the Integration MOD the Byte Order Mark disappears!

I have already set the encoding of Integration MOD but the problem persists

see attachments!

Thanks
Luc@
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 15, 2011, 05:34:38 PM
Quote from: b4pjoe on June 14, 2011, 01:23:46 PM
The current release works on 2.0 Final except you must set package manager to emulate SMF 2.0 RC5 and during the install it fails on ./Themes/default/index.template.php:

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


The thing is, in the actual index.template.php file it has a tab missing in front of echo'. If you open index.template.php and place your cursor before echo' and hit your tab key, save the file and try the install again it works without any problems.

That worked for the default theme, but how can I get it to work on my theme? I get tests failed for my inferno theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: b4pjoe on June 15, 2011, 05:55:32 PM
You need to look at what it is searching for in the inferno theme so you can see why/where it is failing and then make the changes manually in the correct location in the files in the inferno theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 15, 2011, 06:37:40 PM
It is failing in index.template.php. I tried doing the changes to the code you provided, but that code was not found in my themes index.template.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: b4pjoe on June 15, 2011, 07:09:58 PM
That is because the Inferno theme uses different code for $context['current_time'],

The code it is trying to place into index.template.php needs to be added to the section "function template_body_above()" but I don't know where exactly it should go. You might want to ask the theme author or maybe someone else here will know. It's a downside of using 3rd party themes and mods.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 15, 2011, 07:24:28 PM
Okay thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on June 15, 2011, 11:20:18 PM
i'm on smf2 rc4

I need some help with an IF statement regarding private messages in the chat.

Under chat > lib > config.php

$config['allowPrivateMessages'] = false;

Is there an IF statement that can be added , where I can add membergroup IDs that would only allow them to use the private message option?

something like ... else if membergroupid = (1,2,3) then $config['allowPrivateMessages'] = true;

I know that's worng, lol, but something liek that, i just don't know how to write it out.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 17, 2011, 09:38:00 AM
Posting to confirm the mod does work on 2.0

All I had to do was edit my sources/subs file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 17, 2011, 11:14:28 AM
Quote from: Brack1 on June 17, 2011, 09:38:00 AM
Posting to confirm the mod does work on 2.0

All I had to do was edit my sources/subs file.

Can you share with us what you edited?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 17, 2011, 11:36:16 AM
Quote from: IDunc on June 17, 2011, 11:14:28 AM
Quote from: Brack1 on June 17, 2011, 09:38:00 AM
Posting to confirm the mod does work on 2.0

All I had to do was edit my sources/subs file.

Compare the file with the parser.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: virtualdave on June 17, 2011, 12:28:18 PM
QuoteCompare the file with the parser.

If you set the parser on 2.0 it kicks back an imcompatibility message? So how did you compare?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 17, 2011, 12:36:16 PM
Keep trying the previous versions.

I would look at RC4.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 17, 2011, 08:58:08 PM
I don't understand what compare the file with the parser means lol....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 17, 2011, 09:00:50 PM
Quote from: IDunc on June 17, 2011, 08:58:08 PM
I don't understand what compare the file with the parser means lol....

You should do with the amount of posts you have.

Look at the area where you would usually download the mod.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 17, 2011, 09:06:32 PM
Haha most, if not all, of my posts are asking for support for coding something.

So, you want me to look at this page? http://custom.simplemachines.org/mods/index.php?mod=1319
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 17, 2011, 09:13:23 PM
Manual Install Instructions for SMF

is what you are looking for below Download this mod.

Try RC4 if RC5 doesn't work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 17, 2011, 09:17:59 PM
To make this easier on me, which is selfish, I know, could you just make the necessary edits to my Subs.php for me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 17, 2011, 09:25:04 PM
I'm not a coding person so will place the edits here.

/Sources/Subs.php

Find:
   $context['allow_pm'] = allowedTo('pm_read');

Add After:
[code]
$num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
$chatButton = 'Chat';
$chatButton .= ($num > 0) ?  ('('.$num.')') : '';
$chatLink = str_replace("index.php", "chat/index.php", $scripturl);
if (!empty($modSettings['chatPopUp']))
$chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';



Find:

               'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
'is_last' => true,
),
),
),

Add After:


[code]'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),


Remember to make backups first.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 17, 2011, 09:28:08 PM
For the second one, I see you're just adding a chat button to the main menu. Is that necessary to get Ajax to work on 2.0?

And do I modify my Subs.php before or after I install the mod?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 17, 2011, 09:34:13 PM
For the first question YES if chat isn't in the menu.

For the second it's personal choice.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 17, 2011, 09:35:46 PM
So I can't have this mod just display on my forum index? It needs to be on its own page?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 17, 2011, 09:38:39 PM
In the admin section you will find a check box which gives you the option to have the chat as a pop up.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 17, 2011, 09:47:56 PM
Is there any way to make it display on my forum index as a shoutbox?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 17, 2011, 09:50:05 PM
You can have the shoutbox and chat seperated or integrated.

However I noticed you are using simple portal (as do I) so I would suggest using their shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IDunc on June 17, 2011, 09:55:40 PM
Yeah I guess I will do that, I just like the look of the Ajax shoutbox. But to save space and time, I'll stick with the SP shoutbox. Thanks a lot, and sorry for me wasting your time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 17, 2011, 09:59:21 PM
No worries bud.

If I get time I may try and pop in here a bit more often.

I feel like an octopus at times.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on June 18, 2011, 12:36:44 AM
Quote from: hcfwesker on June 15, 2011, 11:20:18 PM
i'm on smf2 rc4

I need some help with an IF statement regarding private messages in the chat.

Under chat > lib > config.php

$config['allowPrivateMessages'] = false;

Is there an IF statement that can be added , where I can add membergroup IDs that would only allow them to use the private message option?

something like ... else if membergroupid = (1,2,3) then $config['allowPrivateMessages'] = true;

I know that's worng, lol, but something liek that, i just don't know how to write it out.

any help with this.  Like i said, I know what I'm looking for .. just not sure how it's suppose to be written without killing the chat.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: vrshc on June 19, 2011, 12:45:41 PM
I have just upgrade 1.1.13 to 1.1.14 before upgrade this chat was working very well but after upgrading its not working  :-[

any suggesstions?

i have also uninstall and reinstall it but all in vain  :'(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wonky on June 20, 2011, 05:29:05 AM
I just upgraded to SMF 2.0. The chat didn't work after that so I deleted the old package and re-installed the chat. The chat button is there and working fine, but my chat window is empty. Nothing appears on the screen when one types a message.

I tried chmodding the chat directory and files to 755, and added the suggested lines to the .htaccess files in root, the forum directory and the chat directory. I also tried copying back the old chat files from the backup, but the chat still doesn't work. Any ideas on what to try next?

EDIT: I just checked the database and although the chat screen is blank, any typed messages are saved into the database properly.

EDIT 2: When running Firebug, there are no errors or warnings and it seems like the chat script is sending a GET request every 2-3 seconds, which seems to come back fine with code 200.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dianosis on June 20, 2011, 04:58:15 PM
I have also upgraded to 2.0 gold and my members are wanting their shoutbox/chat back. Would someone please consider getting this up-to-date with 2.0 or post a definitive detailed set of instructions on how to make it work as is? I can't even get it to install even using emulation. Thanks for any help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 20, 2011, 05:07:37 PM
Which version did you use?

I have it working on my 2.0 test forum.

The attached is the one you should use.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dianosis on June 20, 2011, 08:36:27 PM
I tried this one:
http://custom.simplemachines.org/mods/index.php?mod=1319

Will give yours a shot. Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 20, 2011, 08:40:17 PM
Quote from: Dianosis on June 20, 2011, 08:36:27 PM
I tried this one:
http://custom.simplemachines.org/mods/index.php?mod=1319

Will give yours a shot. Thanks!

Notice:

The attachment I supplied was further back amongst the posts within this topic.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dianosis on June 20, 2011, 09:15:08 PM
Ok finally got it installed thanks to your instructions! I also got the Chat button in place. The only problem I have now is that I can only see the shoutbox while logged in as Admin, regular members cant see the shoutbox. I would like the shoutbox to appear on every page of the forum. Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 20, 2011, 09:20:50 PM
Quote from: Dianosis on June 20, 2011, 09:15:08 PM
Ok finally got it installed thanks to your instructions! I also got the Chat button in place. The only problem I have now is that I can only see the shoutbox while logged in as Admin, regular members cant see the shoutbox. I would like the shoutbox to appear on every page of the forum. Any ideas?

Have you checked the permissions?

The answers are listed in the mods first post under FAQs.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dianosis on June 20, 2011, 09:44:32 PM
I believe it probably is something simple like a permission being off, but I'm having a hard time finding a list of which files and folders I need to check. Looks like most of the folders are set to 755, I tried changing a few that weren't but I'm just guessing....

Nevemind ignore that above, wrong permissions settings....duh. I figured out what you mean.


It's working!!! Thanks so much for your help I really appreciate it! One last question, will it break it if I go back now and set the emulation back to 2.0?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 20, 2011, 11:02:21 PM
No it won't break.

:)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dreamers4317 on June 21, 2011, 05:14:51 AM
Hi, has anyone been able to run AjaxChat with the latest version (1.1.14) ?.
Doesn't seem to work for me.  :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mari-chi on June 21, 2011, 09:16:06 AM
Hello~

I installed ajaxchat on my forum (SMF 2.0 RC5), and I've been having a little bit of problem with it. In the 'users in chat' section at the bottom of the forum (below 'Who's Online'), it lists whoever is in chat. That's great. However, when I log into chat, I see a whole list of people who aren't actually there. o_o Why is this? When people close the chat window, their names don't disappear from the list of usernames.

Is there a fix for this?

My forum is http://adlucem.net

Thanks. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 21, 2011, 10:09:41 AM
Quote from: dreamers4317 on June 21, 2011, 05:14:51 AM
Hi, has anyone been able to run AjaxChat with the latest version (1.1.14) ?.
Doesn't seem to work for me.  :(


How doesn't it work?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lazylivin on June 21, 2011, 10:42:58 PM
Quote from: Brack1 on June 17, 2011, 09:25:04 PM
I'm not a coding person so will place the edits here.

/Sources/Subs.php

Find:
   $context['allow_pm'] = allowedTo('pm_read');

Add After:
[code]
$num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
$chatButton = 'Chat';
$chatButton .= ($num > 0) ?  ('('.$num.')') : '';
$chatLink = str_replace("index.php", "chat/index.php", $scripturl);
if (!empty($modSettings['chatPopUp']))
$chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';



Find:

               'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
'is_last' => true,
),
),
),

Add After:


[code]'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),


Remember to make backups first.

Worked well for me on SMF 2.0 with the mod you suggested above. May want to remove the word code in the change below the 1st and 2nd Add After though. Threw me for a loop as I didn't look close enough initially and copied/paste from above.


I do however get this error in my log occasionally. 8: Undefined index: chat Line: 3936

3935:      $num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
==>3936:      $chatButton = $txt['chat'];
3937:      $chatButton .= ($num > 0) ?  ('('.$num.')') : '';
3938:      $chatLink = str_replace("index.php", "chat/index.php", $scripturl);
3939:      if (!empty($modSettings['chatPopUp']))
3940:         $chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kadiljaks on June 22, 2011, 06:14:20 AM
Sorry for my bad spoke... so when i take a first typing in chat... i get error like that.. (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bildites.lv%2Fimages%2F4nz089ehbr4ke62g827b.jpg&hash=e12e1d8e681fc3625fa674fccd3d06c15ba35600)

And this error pop-up when i exemple after 5min tape message again...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: oldguest on June 22, 2011, 07:19:18 AM
Hello all
I have tryed to install ajax chat the newest version on my smf 2.0 forum, but i get this error.
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Can i do something, so i can use ajaxchat in version 2.0.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dreamers4317 on June 22, 2011, 07:56:53 AM
QuoteHow doesn't it work?
Hi I have the package in the package manager, but when I click on "apply Mod" it has no effect.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cowdude on June 22, 2011, 08:49:19 AM
Hey while we are talking about the SHOUTBOX, I keep getting this error after a let the site set for a while and come back:

TypeError: Object #<HTMLObjec​tElement> has no method 'create'

Then it clears and starts working again.

One other thing as well, I have when I click into CHAT it doesn't let me back to my website all I log out.  Any thoughts?

The website is:  http://conservativewatercooler.com

Thanks in advance gang!

Cowdude
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 22, 2011, 10:04:00 AM
Quote from: noeyes on June 22, 2011, 07:19:18 AM
Hello all
I have tryed to install ajax chat the newest version on my smf 2.0 forum, but i get this error.
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Can i do something, so i can use ajaxchat in version 2.0.

Which version did you install?

Please refer to my previous post which has an attachment attched.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 22, 2011, 10:05:56 AM
Cowdude sorry but I have no idea what the error is.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: chico200987 on June 22, 2011, 07:50:58 PM
Here the AjaxChat version for 2.0 final for very, very lazy poeple (2 changements.).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dreamers4317 on June 23, 2011, 04:00:31 AM
Hi Chico, thanks for that , all seems to be working now.  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eclipse16V on June 23, 2011, 08:43:28 AM
THX chico200987
It runs on 2.0 nice
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: effex on June 24, 2011, 12:30:22 AM
Has anyone successfully installed this on the 2.0 Core theme's index.template and BoardIndex.template

The mod works for the most part, except these two files don't include the lines of code necessary for Core theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 24, 2011, 09:44:49 AM
Quote from: effex on June 24, 2011, 12:30:22 AM
Has anyone successfully installed this on the 2.0 Core theme's index.template and BoardIndex.template

The mod works for the most part, except these two files don't include the lines of code necessary for Core theme.

Would i be correct in saying you had a test failed on install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: effex on June 24, 2011, 10:17:08 AM
Quote from: Brack1 on June 24, 2011, 09:44:49 AM
Quote from: effex on June 24, 2011, 12:30:22 AM
Has anyone successfully installed this on the 2.0 Core theme's index.template and BoardIndex.template

The mod works for the most part, except these two files don't include the lines of code necessary for Core theme.

Would i be correct in saying you had a test failed on install?

Yup, but only on those files. I went to manually add the code in, but some of the code that has to be modified doesn't exist. I played with it for a while, but couldn't figure it out. Just wondering if anyone else was able to pull it off.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on June 25, 2011, 12:00:43 AM
Quote from: hcfwesker on June 18, 2011, 12:36:44 AM
Quote from: hcfwesker on June 15, 2011, 11:20:18 PM
i'm on smf2 rc4

I need some help with an IF statement regarding private messages in the chat.

Under chat > lib > config.php

// Enable/Disable private Messages:
$config['allowPrivateMessages'] = false;

Is there an IF statement that can be added , where I can add membergroup IDs that would only allow them to use the private message option?

something like ... else if membergroupid = (1,2,3) then $config['allowPrivateMessages'] = true;

I know that's worng, lol, but something liek that, i just don't know how to write it out.

any help with this.  Like i said, I know what I'm looking for .. just not sure how it's suppose to be written without killing the chat.

I suck at coding, but tried this, and of course, doesn't work.

Under chat > lib > config.php

// Enable/Disable private Messages:
$config['allowPrivateMessages'] = false;
         else if (id_group == '2')
         {
            $config['allowPrivateMessages'] = true;
         }



any suggestions, please.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 25, 2011, 12:14:24 AM
Sorry bud am unable to help there.

I haven;t used the 1.1.x series since 1.1.8

As for coding er don't ask.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on June 25, 2011, 12:18:36 AM
i stated i was on smf2  RC4

we had to remove private messages cause of chat campers, and others who harass others through chat PMs.  would just like it so only staff can use the private message option in chat :(

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 25, 2011, 12:23:08 AM
Quote from: hcfwesker on June 25, 2011, 12:18:36 AM
i stated i was on smf2  RC4

we had to remove private messages cause of chat campers, and others who harass others through chat PMs.  would just like it so only staff can use the private message option in chat :(

Oops apologies I thought ya was on 1.1.x

Hey it is 5:22am for me ya know :O
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mari-chi on June 25, 2011, 12:50:31 AM
Is there a chat log for Ajaxchat? Like a complete message history for record?


Thanks!!

<3, Mari
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 25, 2011, 12:53:40 AM
Mari there is a log.

I can't rightly remember the details but I believe it is mentioned in the FAQs.

I will hopefully be about sometime later today.

( Is almost 6am and I aint been bed yet)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mari-chi on June 25, 2011, 06:52:40 AM
When I Googled it, someone said it was at http://FORUMURL.COM/index.php?view=log

Ex.: http://adlucem.net/index.php?view=log

But I don't see anything. :S
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on June 25, 2011, 03:28:02 PM
for the chat log, we usually goto phpMyadmin , under smf_ajaxchat_messages , but it's such a pain to skim through lol
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mari-chi on June 25, 2011, 04:54:57 PM
yeah I went to phpMyAdmin as well, but as you pointed out, it's such a pain to click, look, go back--wash, rinse, repeat x563845672. :/ If I need to review exactly what was said (lots of 'he saids' and 'she saids' going around), then there's got to be an easier way. @_@
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mari-chi on June 26, 2011, 10:21:11 AM
Bump!

Still wondering if there's an easier way to view chat history.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on June 26, 2011, 10:55:48 AM
I can translate it to Turkish if somebody gives me the texts and please update it for 2.0
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jessica. on June 30, 2011, 11:23:03 AM
I open the Chat in popup and get this error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 30, 2011, 02:07:29 PM
Have you checked your chat and shoutbox folders permissions?

These should be set to 755.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ayalon28 on July 03, 2011, 11:40:05 AM
Ok, I spent two days for adapting AjaxChat to SMF 2.0 Final.
I've corrected install.xml and config.php
Just upload the .zip file via Admin and install it. After that enable all "V" in Admin/Configuration/Modification settings/Chat.
And after that in Members/General permission allow to guest/members to view the chat and shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: L24 on July 03, 2011, 11:46:41 AM
Hello, why error_log displays this in my ShoutBox folder?

[03-Jul-2011 17:40:59] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/class/AJAXChat.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:40:59] PHP Warning:  main(/home/php-fastcgi/***/lib/class/AJAXChat.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:40:59] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/class/AJAXChat.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:40:59] PHP Warning:  main(/home/php-fastcgi/***/lib/class/AJAXChat.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:40:59] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/***/lib/class/AJAXChat.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/***/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:41:07] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/class/AJAXChat.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:41:07] PHP Warning:  main(/home/php-fastcgi/***/lib/class/AJAXChat.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:41:07] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/class/AJAXChat.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:41:07] PHP Warning:  main(/home/php-fastcgi/***/lib/class/AJAXChat.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:41:07] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/***/lib/class/AJAXChat.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/***/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:41:23] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/custom.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:23] PHP Warning:  main(/home/php-fastcgi/***/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:23] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/custom.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:23] PHP Warning:  main(/home/php-fastcgi/***/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:23] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/***/lib/custom.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:26] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/custom.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:26] PHP Warning:  main(/home/php-fastcgi/***/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:26] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/custom.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:26] PHP Warning:  main(/home/php-fastcgi/***/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:26] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/***/lib/custom.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:33] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/custom.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:33] PHP Warning:  main(/home/php-fastcgi/***/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:33] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/custom.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:33] PHP Warning:  main(/home/php-fastcgi/***/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:33] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/***/lib/custom.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:41] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/custom.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:42] PHP Warning:  main(/home/php-fastcgi/***/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:42] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/custom.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:42] PHP Warning:  main(/home/php-fastcgi/***/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:42] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/***/lib/custom.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:47] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/custom.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:47] PHP Warning:  main(/home/php-fastcgi/***/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:47] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/custom.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:47] PHP Warning:  main(/home/php-fastcgi/***/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:47] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/***/lib/custom.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:59] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/custom.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:59] PHP Warning:  main(/home/php-fastcgi/***/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:59] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/***/lib/custom.php) is not within the allowed path(s): (/tmp:/home/***/) in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:59] PHP Warning:  main(/home/php-fastcgi/***/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/***/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:59] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/***/lib/custom.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/***/public_html/shoutBox/index.php on line 24


Please help :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ayalon28 on July 03, 2011, 12:05:41 PM
maybe your directory : /***/ isn't correct? try to make a folder with normal signs and upload your files there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: L24 on July 03, 2011, 12:54:27 PM
Oh, this *** is replaced by me for this post ;) I don't make changes in any chat file


edit:
Original error_log:
[03-Jul-2011 17:40:59] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/class/AJAXChat.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:40:59] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/class/AJAXChat.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:40:59] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/class/AJAXChat.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:40:59] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/class/AJAXChat.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:40:59] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/gfxcompl/lib/class/AJAXChat.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/gfxcompl/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:41:07] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/class/AJAXChat.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:41:07] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/class/AJAXChat.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:41:07] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/class/AJAXChat.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:41:07] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/class/AJAXChat.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:41:07] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/gfxcompl/lib/class/AJAXChat.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/gfxcompl/public_html/shoutBox/lib/classes.php on line 11
[03-Jul-2011 17:41:23] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/custom.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:23] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:23] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/custom.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:23] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:23] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/gfxcompl/lib/custom.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:26] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/custom.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:26] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:26] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/custom.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:26] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:26] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/gfxcompl/lib/custom.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:33] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/custom.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:33] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:33] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/custom.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:33] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:33] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/gfxcompl/lib/custom.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:41] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/custom.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:42] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:42] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/custom.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:42] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:42] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/gfxcompl/lib/custom.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:47] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/custom.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:47] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:47] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/custom.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:47] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:47] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/gfxcompl/lib/custom.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:59] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/custom.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:59] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:59] PHP Warning:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/home/php-fastcgi/gfxcompl/lib/custom.php) is not within the allowed path(s): (/tmp:/home/gfxcompl/) in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:59] PHP Warning:  main(/home/php-fastcgi/gfxcompl/lib/custom.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /home/gfxcompl/public_html/shoutBox/index.php on line 24
[03-Jul-2011 17:41:59] PHP Fatal error:  main() [<a href='function.require'>function.require</a>]: Failed opening required '/home/php-fastcgi/gfxcompl/lib/custom.php' (include_path='/usr/lib/php:/usr/local/php4/lib/php:.') in /home/gfxcompl/public_html/shoutBox/index.php on line 24


edit 2:
I forgot! It's maybe important. After I installed mod I moved the shoutbox to down. Could it be a source of problem?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ayalon28 on July 03, 2011, 01:51:56 PM
The /shoutbox directory should be in the /forum directory.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: L24 on July 03, 2011, 02:01:19 PM
And it is :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ayalon28 on July 03, 2011, 02:22:52 PM
remove all forum directory and upload SMF 2.0 again. Download AJAX chat that I've adapted for SMF 2.0 and install it. That's the easiest way.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: virtualdave on July 03, 2011, 05:17:06 PM
Quote from: chico200987 on June 22, 2011, 07:50:58 PM
Here the AjaxChat version for 2.0 final for very, very lazy poeple (2 changements.).
chico200987


chico200987, This worked very, very good! Two thumbs up from a very very busy person.
thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: braoa on July 06, 2011, 11:15:23 AM
I am getting this error...

(11:14:14) ChatBot: Error: Connection status: 0

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 06, 2011, 12:39:37 PM
Quote from: braoa on July 06, 2011, 11:15:23 AM
I am getting this error...

(11:14:14) ChatBot: Error: Connection status: 0

Although a harmless message the answer can be found within the FAQs on the first post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: braoa on July 06, 2011, 01:04:14 PM
Thanks... after messing with it for awhile, I got it. By the way, great mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: H-J Kaabii on July 07, 2011, 11:00:25 AM
@Mari-Chi: (your forum url)/chat/?view=logs should work.

Meanwhile I have an enquiry regarding the coding that the Package inserts into index.template.php: I'm using a custom theme, and I want to display the users in chat as well as the number that are on in the welcome area, under "You have xx messages, yy are new.". The code from BoardIndex.template.php uses the $context[chat_links] but this only seems to work when viewing the board index itself - anywhere else it yields no names. Would I need to check the default theme for further information on $context[chat_links] or its array, such that I can display the names on any page with the welcome area?

I have very little experience with PHP but I'm willing to learn in order to understand what each part of the coding is performing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Zuća on July 07, 2011, 11:06:15 AM
MOD IS DEAD !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 07, 2011, 11:08:52 AM
Quote from: Present. on July 07, 2011, 11:06:15 AM
MOD IS DEAD !

Please explain.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on July 07, 2011, 11:41:06 PM
Quote from: Brack1 on July 07, 2011, 11:08:52 AM
Quote from: Present. on July 07, 2011, 11:06:15 AM
MOD IS DEAD !

Please explain.
MOD WORKS, STILL USING IT "how is it dead"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pixeleyes on July 08, 2011, 04:04:54 AM
Can't upload file or image in installed AJAX CHAT.

I'm using V2RC3 and Chat is working fine without any error.

I just want to upload some additional images in /img folder but unable to upload

because of folder permission. Even i tried to change permission but it useless.

I tried to upload by using Cpanel and FileZila.

Can anyone help me what could be the reason?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Andythescientist on July 09, 2011, 12:41:49 PM
Hi there, i upgraded the forum as per the instructions, went through the whole process and now i have the following fatal error.

Fatal error: Call to undefined function chatOnlineUsers() in /home/enlight/public_html/ee/boards/Sources/Load.php(2151) : eval()'d code on line 284

I've checked the load.php file and can't find any function call at either like 2151 or 284, or by searching the whole document for chatOnlineUsers()

Basically any help appreciated, i suspect it's ajax chat intergration error, but i can't even get to the admin panel to do anything.


Cheers
Andy
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 09, 2011, 12:52:04 PM
Is your disable eval box ticked in admin?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 09, 2011, 06:21:13 PM
This mod doesn't seem to work when installing...It's need compatible for 2.0 fully. I get red error on two subs.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 09, 2011, 06:24:16 PM
It would help if you gave more information ie what the errors are etc.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 09, 2011, 06:28:14 PM
Hello,

sorry, I've attached a screenshot
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 09, 2011, 06:31:11 PM
As expected.

Go to the first post for the mod.

At the mods download section go to the parser and select 2.0

the required edit will be found there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 09, 2011, 06:35:56 PM
Ok, I got this when selecting parser "Sorry, but this modification does not appear to be compatible with the selected version."

I also don't do coding so it's a little hard to do it Mate and make the changes for compatibility...I really like this mod too :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 09, 2011, 06:38:31 PM
below your list of mods is a link which says advanced.

Click it and a box should appear.

emulate a previous version ie RC5 or RC4
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 09, 2011, 06:41:25 PM
Hello,

I've tried it 2.0 RC3 and 2.0 RC4 before messaging and it give the screenshot attached.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 09, 2011, 06:42:44 PM
Did you try RC5?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 09, 2011, 06:45:21 PM
I didn't but tried it now  as per the two attachement and it does same thing
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 09, 2011, 06:47:09 PM
Can you post a link to your forum please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 09, 2011, 06:48:45 PM
http://bbs.protonic.com
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 09, 2011, 07:19:54 PM
Hope those details are ok?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 09, 2011, 07:36:15 PM
If you only use the one theme then we are now getting somewhere.

Using the parser for RC5 go to the edit for

Sources/Subs.php

This is easier than you think.

Remember to make a backup first.

By the way you have way to many errors in your error log.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 09, 2011, 07:40:11 PM
How to edit?

I'm rubbish at coding?

:-)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 09, 2011, 07:42:47 PM
Quote from: Martingonnella on July 09, 2011, 07:40:11 PM
How to edit?

I'm rubbish at coding?

:-)

You need notpad##

Find the first section in the subs file and place the required edit where it tells you to place it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 09, 2011, 08:14:24 PM
Hey, Brack, just a noob question.  Can the pop up chat, and the shoutbox, be used as different chats.  I unchecked the "Integrate shout box and chat room?" option, but now I just get a connection error 500 in the shoutbox ... and I've changed all files to 755 as stated in the FAQ
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 09, 2011, 08:17:51 PM
Should be able too.

Have you changed the permission to the shoutbox folder?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 09, 2011, 08:23:51 PM
I actually didn't realize there was a separate shoutbox folder, lol.  But, yeah, everything in it was already set to 755; I redid it anyways just to make sure.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 09, 2011, 09:12:03 PM
I did it..Thanks, but getting a:

(02:09:25) ChatBot: Error: Connection status: 500

I followed the FAQ and said I need to change the folders "Chat" and "Shoutbox" to the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755

These cannot be found at all...Are you able to do this for me? Or is it simple? I can see the folder in the .Zip file...but not in the Source folder in my forum..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 09, 2011, 09:20:09 PM
QuoteIf you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755 (and in some cases CHMOD the actual "Folders" as well).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 09, 2011, 09:39:12 PM
I dont see /chat/index.php and /shoutbox/index.php in SMF and I don't see where i can change it to 755?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 09, 2011, 10:58:14 PM
Quote from: Martingonnella on July 09, 2011, 09:39:12 PM
I dont see /chat/index.php and /shoutbox/index.php in SMF and I don't see where i can change it to 755?

In your cPanel file manager.  there's a chat & shoutbox folder.  Click them, and inside each, you'll see index.php for both.  click the names, and you'll see the option to "change Permissions", check the boxes til it equals 755


Brack, is there a code i can add to lib/config.php where I can add member id's that would permamently negate them access.  Banning them only lasts for so long in the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 09, 2011, 11:02:39 PM
[/uote]
Brack, is there a code i can add to lib/config.php where I can add member id's that would permamently negate them access.  Banning them only lasts for so long in the chat.
[/quote]



Not that I know off.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kathleen Chute on July 10, 2011, 10:18:35 AM
This Post has So many Replies, Does This Work with 2.0 Gold
Thanks Kathleen
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 10, 2011, 10:20:28 AM
Quote from: Kathleen Chute on July 10, 2011, 10:18:35 AM
This Post has So many Replies, Does This Work with 2.0 Gold
Thanks Kathleen

You'll find the answer if you read the last few pages.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 10, 2011, 10:26:43 AM
Hey,

It works but there's a lot of messing about.. The publisher should really make it full compatible with the messing about through the last few pages or just remove the mod.. Simples! lol
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kathleen Chute on July 10, 2011, 11:24:07 AM
Quote from: Martingonnella on July 10, 2011, 10:26:43 AM
Hey,

It works but there's a lot of messing about.. The publisher should really make it full compatible with the messing about through the last few pages or just remove the mod.. Simples! lol
Is it really That Bad?  I Don't Know what I'm Doing And I'm Scared to Mess it Up,
I Have To Challenge myself to 6 Mods Scene I Switched to Gold, This is awful stressful on someone who doesn't even understand HTML Tags
I just had to Do a Full Backup because of another mod  :-[ ( Biting Nails)
Thanks Kathleen
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 10, 2011, 11:30:30 AM
Do NOT install the mod freom the first post.

Use the attached file on reply 7821.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kathleen Chute on July 10, 2011, 12:57:28 PM
Quote from: Brack1 on July 10, 2011, 11:30:30 AM
Do NOT install the mod freom the first post.

Use the attached file on reply 7821.
Thank You Brack1
I will Look at That Now
Kathleen
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 10, 2011, 02:09:28 PM
Hello,

I got the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755 and it still give the Connection Error: 500.

This is sooo hard, why can't it be simple like the other mods!!!! :-)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kathleen Chute on July 10, 2011, 03:24:44 PM
Quote from: ayalon28 on July 03, 2011, 11:40:05 AM
Ok, I spent two days for adapting AjaxChat to SMF 2.0 Final.
I've corrected install.xml and config.php
Just upload the .zip file via Admin and install it. After that enable all "V" in Admin/Configuration/Modification settings/Chat.
And after that in Members/General permission allow to guest/members to view the chat and shoutbox.
Do I Have to Parse for Themes ??
Thanks again
Kathleen
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 10, 2011, 06:03:14 PM
Quote from: Kathleen Chute on July 10, 2011, 03:24:44 PM
Quote from: ayalon28 on July 03, 2011, 11:40:05 AM
Ok, I spent two days for adapting AjaxChat to SMF 2.0 Final.
I've corrected install.xml and config.php
Just upload the .zip file via Admin and install it. After that enable all "V" in Admin/Configuration/Modification settings/Chat.
And after that in Members/General permission allow to guest/members to view the chat and shoutbox.
Do I Have to Parse for Themes ??
Thanks again
Kathleen

Yes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 10, 2011, 06:04:37 PM
Hello,

I got the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755 and it still give the Connection Error: 500.

This is sooo hard, why can't it be simple like the other mods!!!! :-)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 10, 2011, 10:08:40 PM
Does the Post Notification edit still work with ajax on 2.0?

http://www.simplemachines.org/community/index.php?topic=257973.msg2067337#msg2067337

Or does anyone have the edits, please.

EDIT::: 

I got it :)

Have to change  ajax_chat_messages  to  smf_ajaxchat_messages   in both edits  :)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 10, 2011, 10:33:14 PM
Quote from: hcfwesker on July 10, 2011, 10:08:40 PM
Does the Post Notification edit still work with ajax on 2.0?

http://www.simplemachines.org/community/index.php?topic=257973.msg2067337#msg2067337

Or does anyone have the edits, please.

EDIT::: 

I got it :)

Have to change  ajax_chat_messages  to  smf_ajaxchat_messages   in both edits  :)

Hey thanks for sharing the good news.

:D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 11, 2011, 02:19:29 AM
Yeah, it's working like a charm , and members are loving it.  Even adding the extra part to negate spam/off topic boards.  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on July 11, 2011, 05:03:46 AM
Quote from: cowdude on June 22, 2011, 08:49:19 AM
Hey while we are talking about the SHOUTBOX, I keep getting this error after a let the site set for a while and come back:

TypeError: Object #<HTMLObjec​tElement> has no method 'create'


Same problem here.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: royal2002 on July 12, 2011, 01:26:22 PM


please help... i have a proble with my ajax chat system... when users type it does not show the text that users typye.. anad also when users online in the chat room dos not show... what am my to do now... please help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 12, 2011, 05:44:06 PM
Quote from: royal2002 on July 12, 2011, 01:26:22 PM


please help... i have a proble with my ajax chat system... when users type it does not show the text that users typye.. anad also when users online in the chat room dos not show... what am my to do now... please help

Can you explain the problem in more detail please.

Also the most recent download is in the post I have previously mentioned.

Also please look at the FAQs on the first post of the mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 12, 2011, 06:25:59 PM
Chat is empty...nothing shows anymore....blank white

see screenshot
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 12, 2011, 07:20:09 PM
Quote from: Martingonnella on July 12, 2011, 06:25:59 PM
Chat is empty...nothing shows anymore....blank white

see screenshot

It helps if you tell us what you did to make this happen.

What mods are installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 12, 2011, 07:25:10 PM
Nothing was changed. It just happened.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 12, 2011, 07:49:52 PM
Quote from: Brack1 on July 12, 2011, 07:20:09 PM

What mods are installed?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 12, 2011, 07:53:03 PM
I have loads soooo what u mean?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 12, 2011, 07:59:46 PM
Do you have pretty urls installed?

I may be wrong but there should be a fix mentioned within the mods FAQs.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 12, 2011, 08:01:26 PM
No...I have a list, but that isn't inside it. Well I had that Connection error 500 problem...then i changed permission to 0775, and then got a blank...but funny enough the person in the thread before me seems to have the same problems...sooo i'm not sure lol
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 13, 2011, 01:45:08 PM
Try permission 755
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: royal2002 on July 13, 2011, 07:20:55 PM
i am also have that problem.. when i type a text in my chat box.. it does not appear and also users online do not appear
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: royal2002 on July 13, 2011, 07:22:20 PM

please help.. i really need the chat

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 13, 2011, 07:27:58 PM
royal2002

Firstly please wait at least 24 hours for an reply.

Secondly more information is required.

Version?

Errors on install?

Mods installed on forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 13, 2011, 07:34:03 PM
Many Thanks Brick, I finally!! sorted it out lol..It was Permission in the end...Thanks Alot..

Ermmm....You know there is a "Chat" button on the top menu...If I wanted to put a Icon next to it...Can it be done? Manually? Can you guide me throught it? Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 13, 2011, 07:39:04 PM
Regarding the icon.

Not as far as i know.

You do know that a number appears when a user is in chat right?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blanchardc on July 17, 2011, 02:26:01 PM
Quote from: Martingonnella on July 09, 2011, 06:35:56 PM
Ok, I got this when selecting parser "Sorry, but this modification does not appear to be compatible with the selected version."

I also don't do coding so it's a little hard to do it Mate and make the changes for compatibility...I really like this mod too :)

I'm having the exact same issue. I even put it as RC4 and RC5 compatible mode and get the error "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

I read the last few pages and didn't see a fix for this posted anywhere. All I saw was to edit Sources\Subs.php, but doesn't say what to look for in there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 17, 2011, 05:24:30 PM
Use the download link from this post ...  http://www.simplemachines.org/community/index.php?topic=257973.msg3097680#msg3097680
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 17, 2011, 09:58:50 PM
I've installed it on 2.0 GOLD, but I would type something, then the next few hours or day, the writing would would disappear, any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 17, 2011, 10:30:56 PM
yeah, chat messages won't stay there forever.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 17, 2011, 10:33:59 PM
Ok.....That a Bug? Why? lol
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blanchardc on July 17, 2011, 10:46:26 PM
Quote from: hcfwesker on July 17, 2011, 05:24:30 PM
Use the download link from this post ...  http://www.simplemachines.org/community/index.php?topic=257973.msg3097680#msg3097680

That is where I got the download from. It's not working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 17, 2011, 11:07:38 PM
How isn't it working?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blanchardc on July 18, 2011, 06:07:05 AM
Please read my previous post as to how it's not working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on July 18, 2011, 02:52:25 PM
Some feed back and questions...
I just installed and spend the last 4 hours on configuring it.

1- This mod definitely needs some translations!
2- Browser compability is very nice. Good job.
3- It would be lot better if the members who cant participate cant see the CHAT TAB. Just like the shoutbox. Now they see a chat tab and b**ch about why they cant get in.
4- on the login/logout page other languages section is impossible to read and understand. Characters are very bad. You cant even read most of the languages names. They all are written like arabic. Even Espanol is written like "EspaؤŒl"
5- It would be nice to adjust the coloring like background and writings at least.
6- Combining the shoutbox with chat is a brilliant idea. Nice job.
and the last and bigest issue

7- Shoutbox gives Error:500
Even after setting the chmod in both folders. Even setting all the folders and files to 755 (tried 777 also) Error still comes back in less then 10 minutes. I think this should be the top priority on the next update.


8- It doesnt install on 2.0 - i had to emulate plus i had to do some manual edits to install it correctly.

Overall 8 out of 10. I loved it. But it definetely needs attention.
Good job. Thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 18, 2011, 03:16:13 PM
At last!!!!! Someone has noticed and made a list of correction.. Nice one PLAYBOY.. All they need now is for someone to work on These and make it the best it possibly can be :) :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blanchardc on July 20, 2011, 10:27:01 AM
Any follow-up on these installation problems?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Falcon_99 on July 21, 2011, 01:52:44 PM
Got this frcking error ..
Can anyone help ?

QuoteDatabase Error

No database selected
File: /home/******/domains/*********.eu/public_html/Tables_2.php
Line: 12
Back
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 21, 2011, 11:05:24 PM
To set default Chat Room template and/or remove the template selection from drop down list

Remove selection from list delete the ones you don't want from the "Availabe Styles" array.

To set default template just change "Default style" to what you want.

Open.....yourforum/chat/lib/config.php

Find


// Available styles:
$config['styleAvailable'] = array('beige','black','grey','Oxygen','Lithium','Sulfur','Cobalt','Mercury','Radium','prosilver','subsilver2','subblack2','subSilver','Core','MyBB','vBulletin');
// Default style:
$config['styleDefault'] = 'Core';


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 21, 2011, 11:06:33 PM
Quote from: Falcon_99 on July 21, 2011, 01:52:44 PM
Got this frcking error ..
Can anyone help ?

QuoteDatabase Error

No database selected
File: /home/******/domains/*********.eu/public_html/Tables_2.php
Line: 12
Back

Can you explain what you did?

Also where did you download the mod from?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 21, 2011, 11:10:09 PM
Add a Welcome Message when you users enter the Chat

Open.....yourforum/chat/js/custom.js

Find

// Overriding client side functionality:



Add After (of course change Welcome to the chat! to whatever you like.)

ajaxChat.customInitialize = function() {
   ajaxChat.addChatBotMessageToChatList('Welcome to the chat!');
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Falcon_99 on July 22, 2011, 08:33:25 AM
Quote from: Brack1 on July 21, 2011, 11:06:33 PM
Quote from: Falcon_99 on July 21, 2011, 01:52:44 PM
Got this frcking error ..
Can anyone help ?

QuoteDatabase Error

No database selected
File: /home/******/domains/*********.eu/public_html/Tables_2.php
Line: 12
Back

Can you explain what you did?

Also where did you download the mod from?

What do you mean ..
I did everything on how to install it to 2.0RC3 and downloaded the mod from here (http://custom.simplemachines.org/mods/index.php?mod=1319) ...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Heeks on July 22, 2011, 08:51:43 AM
Quote from: Martingonnella on July 17, 2011, 09:58:50 PM
I've installed it on 2.0 GOLD, but I would type something, then the next few hours or day, the writing would would disappear, any ideas?

i'm looking for an answer on that question, too.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blanchardc on July 22, 2011, 10:08:22 AM
I'm still waiting for an answer on my first question. The error is attached below.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 22, 2011, 10:23:21 AM
Quote from: blanchardc on July 22, 2011, 10:08:22 AM
I'm still waiting for an answer on my first question. The error is attached below.

Test failed means the file requires a manual edit.

You can use the parser.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 22, 2011, 10:27:08 AM
Quote from: Falcon_99 on July 22, 2011, 08:33:25 AM
Quote from: Brack1 on July 21, 2011, 11:06:33 PM
Quote from: Falcon_99 on July 21, 2011, 01:52:44 PM
Got this frcking error ..
Can anyone help ?

QuoteDatabase Error

No database selected
File: /home/******/domains/*********.eu/public_html/Tables_2.php
Line: 12
Back

Can you explain what you did?

Also where did you download the mod from?

What do you mean ..
I did everything on how to install it to 2.0RC3 and downloaded the mod from here (http://custom.simplemachines.org/mods/index.php?mod=1319) ...

The most recent edition of the mod is attached.

Unfortunately this mod is one of the few which relies heavily on users updating the mod themselves.

(I'm not one of them.)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blanchardc on July 22, 2011, 10:30:57 AM
Quote from: Brack1 on July 22, 2011, 10:23:21 AM
Quote from: blanchardc on July 22, 2011, 10:08:22 AM
I'm still waiting for an answer on my first question. The error is attached below.

Test failed means the file requires a manual edit.

You can use the parser.

*sigh* You didn't read all my replies then. I "have" used the parser. It doesn't matter weather it's RC3, RC4 or RC5. They all don't work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 22, 2011, 10:37:09 AM
Have you tried 2.0?

/Sources/Subs.php

Find:

   $context['allow_pm'] = allowedTo('pm_read');

Add After:


         
   $num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
$chatButton = 'Chat';
$chatButton .= ($num > 0) ?  ('('.$num.')') : '';
$chatLink = str_replace("index.php", "chat/index.php", $scripturl);
if (!empty($modSettings['chatPopUp']))
$chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';



Find:

               'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
'is_last' => true,
),
),
),


Add After:


         'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blanchardc on July 22, 2011, 11:39:36 AM
Alright, so I added the code you provided and it manually added a chat button on the top menu, but in SMF 2.0 mode, it still gives me a Test Failed on Subs.php while trying to install the package.

To re-iterate, I have tried 2.0, 2.0 RC3, 2.0 RC4 and 2.0 RC5. None of them allows the package to install.

Do I force the install at this point, since the code was added manually?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 22, 2011, 11:55:03 AM
Yes now the code has been manually added you are now safe to continue.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 22, 2011, 12:04:35 PM
It worked for me doing it this way, but I have found It would type something and have others chat too, then the next few hours or day, the writing would would disappear, and It will be blank to atart again. Is this normal? any ideas? You may experience the same blanchardc... Not sure
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on July 22, 2011, 12:25:59 PM
Any solution to Error: 500?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 22, 2011, 12:32:56 PM
Quote from: PLAYBOY on July 22, 2011, 12:25:59 PM
Any solution to Error: 500?

Have you looked at the FAQs on the mods first post?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on July 22, 2011, 12:39:03 PM
Quote from: Brack1 on July 22, 2011, 12:32:56 PM
Quote from: PLAYBOY on July 22, 2011, 12:25:59 PM
Any solution to Error: 500?

Have you looked at the FAQs on the mods first post?

Yes and most other people. It didint solve my issues. I have read so far every post about that issue. But it still continues.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blanchardc on July 22, 2011, 01:15:31 PM
Weird behavior now. I have TinyPortal installed and I have read what to add in htaccess to get it to work, but when I click on the Chat icon, it re-opens the main page inside the small chat window. There's no chat input box, just a repeat of the home page.

Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 22, 2011, 01:43:22 PM
Quote from: PLAYBOY on July 22, 2011, 12:39:03 PMYes and most other people. It didint solve my issues. I have read so far every post about that issue. But it still continues.

Don't just change the folder's permissions to 755 , may also have to change every individual file's permissions to 755.  (if you already did that, then sorry, i can't help anymore...  but that's what i had to do, change every single file in the chat folder, and chat sub folders to 755)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 22, 2011, 01:45:52 PM
Quote from: Brack1 on July 21, 2011, 11:10:09 PM
Add a Welcome Message when you users enter the Chat

Open.....yourforum/chat/js/custom.js

Find

// Overriding client side functionality:



Add After (of course change Welcome to the chat! to whatever you like.)

ajaxChat.customInitialize = function() {
   ajaxChat.addChatBotMessageToChatList('Welcome to the chat!');
}


I tried this, but wanted to add a link to the Chat Rules page, like this ...

   ajaxChat.addChatBotMessageToChatList('Welcome to the chat!  Be sure to follow the Chat Rules');

Where "Chat rules" would link to our chat rules page on the forum.  I tried html, but didn't work
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Falcon_99 on July 22, 2011, 07:00:59 PM
Quote from: Brack1 on July 22, 2011, 10:27:08 AM
Quote from: Falcon_99 on July 22, 2011, 08:33:25 AM
Quote from: Brack1 on July 21, 2011, 11:06:33 PM
Quote from: Falcon_99 on July 21, 2011, 01:52:44 PM
Got this frcking error ..
Can anyone help ?

QuoteDatabase Error

No database selected
File: /home/******/domains/*********.eu/public_html/Tables_2.php
Line: 12
Back

Can you explain what you did?

Also where did you download the mod from?

What do you mean ..
I did everything on how to install it to 2.0RC3 and downloaded the mod from here (http://custom.simplemachines.org/mods/index.php?mod=1319) ...

The most recent edition of the mod is attached.

Unfortunately this mod is one of the few which relies heavily on users updating the mod themselves.

(I'm not one of them.)

What do you mean .. ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on July 22, 2011, 07:02:33 PM
Quote from: hcfwesker on July 22, 2011, 01:43:22 PM
Quote from: PLAYBOY on July 22, 2011, 12:39:03 PMYes and most other people. It didint solve my issues. I have read so far every post about that issue. But it still continues.

Don't just change the folder's permissions to 755 , may also have to change every individual file's permissions to 755.  (if you already did that, then sorry, i can't help anymore...  but that's what i had to do, change every single file in the chat folder, and chat sub folders to 755)

The folder itself was 755 already i tried every way. and now every file and the folder they all are 755. and i still get the error just like many other people.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on July 23, 2011, 10:35:00 AM
In the previous pages I've noticed this error cropping up:

TypeError: Object #<HTMLObjectElement> has no method 'create'

I can only recreate it in Chrome, not Firefox or Opera. Does this give any clues to its cause / solution?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on July 23, 2011, 04:30:31 PM
Quote from: Farjo on July 23, 2011, 10:35:00 AM
In the previous pages I've noticed this error cropping up:

TypeError: Object #<HTMLObjectElement> has no method 'create'

I can only recreate it in Chrome, not Firefox or Opera. Does this give any clues to its cause / solution?

Same here.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 23, 2011, 07:50:33 PM

Error Concerning Google Chrome in the Ajax Chat.

Quote from: Farjo on July 23, 2011, 10:35:00 AM
In the previous pages I've noticed this error cropping up:

TypeError: Object #<HTMLObjectElement> has no method 'create'

I can only recreate it in Chrome, not Firefox or Opera. Does this give any clues to its cause / solution?

It is an error for chrome users only.  But I do have the fix.   The solution is an outdated FABridge.js file   , that needs to be updated.

I'll upload the updated one, attached to this post.

Goto  public_html/chat/js/
 
And upload the file there, to overwrite the old one.

Note to Chrome users: Remember to open chat and press CTRL + R to flush Chrome's cache. After you do that, close the chat window and try opening it again.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on July 24, 2011, 03:30:09 AM
Thank you hcfwesker that has worked :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on July 24, 2011, 03:40:44 AM
Quote from: hcfwesker on July 23, 2011, 07:50:33 PM
Quote from: Farjo on July 23, 2011, 10:35:00 AM
In the previous pages I've noticed this error cropping up:

TypeError: Object #<HTMLObjectElement> has no method 'create'

I can only recreate it in Chrome, not Firefox or Opera. Does this give any clues to its cause / solution?

It is an error for chrome users only.  But I do have the fix.   The solution is an outdated FABridge.js file   , that needs to be updated.

I'll upload the updated one, attached to this post.

Goto  public_html/chat/js/
 
And upload the file there, to overwrite the old one.

Note to Chrome users: Remember to open chat and press CTRL + R to flush Chrome's cache. After you do that, close the chat window and try opening it again.



Same here. It worked. Thank you. Now my only problem is the Error:500
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on July 24, 2011, 05:31:36 AM
I know you've heard this before but I fixed the 500 error by permissions... For me it was solved by changing the index.php files in ./chat and ./shoutBox to 755. The folders and subfolders are all 755 and all other files are 666.

Probably irrelevant but I also have the ./.htaccess file as mentioned in the FAQ regarding portals.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on July 24, 2011, 06:28:59 AM
Trying again. Will let you know.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JamesCameron on July 24, 2011, 07:06:13 PM
Quote from: ayalon28 on July 03, 2011, 11:40:05 AM
Ok, I spent two days for adapting AjaxChat to SMF 2.0 Final.
I've corrected install.xml and config.php
Just upload the .zip file via Admin and install it. After that enable all "V" in Admin/Configuration/Modification settings/Chat.
And after that in Members/General permission allow to guest/members to view the chat and shoutbox.
Just registered for that...

Love you ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 24, 2011, 10:24:03 PM
No problem, you two.  :)  Should actually be linked, or mentioned in the MOD's FAQ page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blanchardc on July 25, 2011, 04:35:14 PM
I really dislike having to post questions twice before someone pays attention to it without skipping over it. I still cannot get this mod to work. As an admin, I should be able to access the chatroom but all the popup window comes up with is a duplicate of my home page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on July 25, 2011, 04:47:03 PM
The author no longer supports this mod so we're lucky for any response to our questions.

Try removing the line(s) you added for having a portal.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 25, 2011, 05:24:36 PM
Quote from: blanchardc on July 25, 2011, 04:35:14 PM
I really dislike having to post questions twice before someone pays attention to it without skipping over it. I still cannot get this mod to work. As an admin, I should be able to access the chatroom but all the popup window comes up with is a duplicate of my home page.

there's only so much I can do, and theorize.  I can work much faster if I was actually on the sites with problems, with full access.  So, if you want help from me, PM me.  If you don't want to trust anyone with that info, I completely understand, but won't be able to help any further.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 25, 2011, 05:27:36 PM
Quote from: hcfwesker on July 25, 2011, 05:24:36 PM
Quote from: blanchardc on July 25, 2011, 04:35:14 PM
I really dislike having to post questions twice before someone pays attention to it without skipping over it. I still cannot get this mod to work. As an admin, I should be able to access the chatroom but all the popup window comes up with is a duplicate of my home page.

there's only so much I can do, and theorize.  I can work much faster if I was actually on the sites with problems, with full access.  So, if you want help from me, PM me.  If you don't want to trust anyone with that info, I completely understand, but won't be able to help any further.

+ 1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: blanchardc on July 25, 2011, 07:28:37 PM
Quote from: hcfwesker on July 25, 2011, 05:24:36 PM
Quote from: blanchardc on July 25, 2011, 04:35:14 PM
I really dislike having to post questions twice before someone pays attention to it without skipping over it. I still cannot get this mod to work. As an admin, I should be able to access the chatroom but all the popup window comes up with is a duplicate of my home page.

there's only so much I can do, and theorize.  I can work much faster if I was actually on the sites with problems, with full access.  So, if you want help from me, PM me.  If you don't want to trust anyone with that info, I completely understand, but won't be able to help any further.

PM'ed
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on July 25, 2011, 08:17:35 PM
Quote from: hcfwesker on July 22, 2011, 01:45:52 PM
Quote from: Brack1 on July 21, 2011, 11:10:09 PM
Add a Welcome Message when you users enter the Chat

Open.....yourforum/chat/js/custom.js

Find

// Overriding client side functionality:



Add After (of course change Welcome to the chat! to whatever you like.)

ajaxChat.customInitialize = function() {
   ajaxChat.addChatBotMessageToChatList('Welcome to the chat!');
}


I tried this, but wanted to add a link to the Chat Rules page, like this ...

   ajaxChat.addChatBotMessageToChatList('Welcome to the chat!  Be sure to follow the Chat Rules');

Where "Chat rules" would link to our chat rules page on the forum.  I tried html, but didn't work

Have you tried BBC instead of HTML? Something like:
ajaxChat.customInitialize = function() {
   ajaxChat.addChatBotMessageToChatList('Welcome to the [url=http://www.yoursite.com/path/to/the/rules]chat[/url]!');
}

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on July 25, 2011, 08:23:46 PM
Quote from: blanchardc on July 25, 2011, 04:35:14 PM
I really dislike having to post questions twice before someone pays attention to it without skipping over it. I still cannot get this mod to work. As an admin, I should be able to access the chatroom but all the popup window comes up with is a duplicate of my home page.

There are roughly 400 pages in this thread with a nice rounded number of 10 posts per page. Those being questions and answers, that gives us about 1999 questions aside from yours being asked in this thread. Also keep in mind, not everyone reads the thread every day. Not everyone who reads the thread knows the answer. Not everyone sees your post. Crunch a couple of numbers on your little solar powered calculator and you'll see....sometimes it's a good idea to ask the question twice.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 25, 2011, 08:25:40 PM
Quote from: SunKing on July 25, 2011, 08:17:35 PM
Have you tried BBC instead of HTML? Something like:
ajaxChat.customInitialize = function() {
   ajaxChat.addChatBotMessageToChatList('Welcome to the [url=http://www.yoursite.com/path/to/the/rules]chat[/url]!');
}


Derp :P  I just assumed BBC wouldn't work.

but, hey Sun King, while you're here, I found the update fix to your Topic/Post Notifications in chat.  which, i'm sure you already knew, but would be nice to update for 2.0 users :)

http://www.simplemachines.org/community/index.php?topic=257973.msg3105913#msg3105913

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on July 25, 2011, 08:34:16 PM
Thanks. I've updated the post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on July 26, 2011, 04:18:44 AM
Quote from: Farjo on July 24, 2011, 05:31:36 AM
I know you've heard this before but I fixed the 500 error by permissions... For me it was solved by changing the index.php files in ./chat and ./shoutBox to 755. The folders and subfolders are all 755 and all other files are 666.

Probably irrelevant but I also have the ./.htaccess file as mentioned in the FAQ regarding portals.

Quote from: PLAYBOY on July 24, 2011, 06:28:59 AM
Trying again. Will let you know.

Still the same. I still get Error:500
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on July 26, 2011, 07:20:12 AM
Did someone else get this sorted by asking their webspace supplier to investigate? Worth a try?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on July 26, 2011, 07:32:38 AM
....I think it was down to ownership of the files??? Very lazy of me, can't be bothered to read the 398 pages to find it again ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on July 26, 2011, 08:32:52 AM
My turn to report an error :(

I've got a test user who I've logged into Chat. When that user clicks on the forum, the chat window shows:
(13:24:45) ChatBot: test_user has been logged out (Timeout).
(13:24:45) ChatBot: test_user logs into the Chat.

Note that they are both the same time. this happens after any length of time and happens every time I click anything in the forum.

I've tried searching with no luck - any ideas???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on July 26, 2011, 01:42:11 PM
hi everybody
if anybody interested in developing this mod please give me a pm
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 26, 2011, 01:44:03 PM
I think someone to own this and code it is a lucky person and will get alot of Happy People supporting him/her too. : ) :) :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bigcaat on July 26, 2011, 02:18:46 PM
Okay, I've been told to move this twice, I'm hoping this is the right place. (I've tried removing my other posts but it won't let me.)

I put in a help ticket last night, but the person on said he couldn't do anything because his network wouldn't let him. He offered some manual links but I don't know how to do it. I responded in my help ticket but still haven't heard anything from anyone else. I'm not sure if anyone is on today, and I'm not sure what to do.

Here's my problem:

I had recently installed an AJAX chat mod in my forum. I'm on 2.0. I never got the chat to work so last night I went and uninstalled it. I now can't access my forum. It shows

Fatal error: Call to undefined function chatOnlineUsers() in /home/bigcaatc/public_html/spiritcaat/spiritcaatforum/Sources/Load.php(2151) : eval()'d code on line 210

But this only shows when people are logged in.

Any help would be greatly appreciated. I really need it.

Caat

EDIT: Someone from the help desk just asked for some files. Hopefully she can help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 26, 2011, 02:57:43 PM
Quote from: bigcaat on July 26, 2011, 02:18:46 PMFatal error: Call to undefined function chatOnlineUsers() in /home/bigcaatc/public_html/spiritcaat/spiritcaatforum/Sources/Load.php(2151) : eval()'d code on line 210

This usually happens if you uninstall the MOD, but the edits in the index.template.php aren't removed.  Check to see in your Themes/default folder for that file, and parse the MOD to see if the edits were removed in that file.

OR, you may have made the edits to a custom theme's index.template.php file, and the MOD didn't uninstall it.  Best way to confirm, is test by viewing the SMF Default Core theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on July 26, 2011, 04:51:45 PM
Quote from: PLAYBOY on July 26, 2011, 04:18:44 AM
Still the same. I still get Error:500
After changing permissions remember to delete cache and cookies :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on July 26, 2011, 05:05:33 PM
Quote from: .HuNTeR. on July 26, 2011, 01:42:11 PM
hi everybody
if anybody interested in developing this mod please give me a pm

Wish I had the time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bigcaat on July 26, 2011, 05:55:37 PM
Quote from: hcfwesker on July 26, 2011, 02:57:43 PM
Quote from: bigcaat on July 26, 2011, 02:18:46 PMFatal error: Call to undefined function chatOnlineUsers() in /home/bigcaatc/public_html/spiritcaat/spiritcaatforum/Sources/Load.php(2151) : eval()'d code on line 210

This usually happens if you uninstall the MOD, but the edits in the index.template.php aren't removed.  Check to see in your Themes/default folder for that file, and parse the MOD to see if the edits were removed in that file.

OR, you may have made the edits to a custom theme's index.template.php file, and the MOD didn't uninstall it.  Best way to confirm, is test by viewing the SMF Default Core theme.

Someone did make edits to the custom theme's index.template.php file, but I can't change it to the default because I can't get in ... unless there's a way to change it directly through the files through FTP, but I don't know how or where to do that. Can *anyone* help me with this. My husband looked at it, he's a computer guy, but doesn't know SMF and I'm really lost as to what to do.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on July 26, 2011, 06:03:12 PM
You can access the template files (and edit them) directly through the admin panel.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bigcaat on July 26, 2011, 06:09:03 PM
And what should I do? Should I first try to change it to the default theme? If so, how/where do I do that?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on July 26, 2011, 06:12:43 PM
open the index.template.php for the theme you are using and find any instances of chatOnlineUsers() and either remove the line or simply put // in front of that line.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bigcaat on July 26, 2011, 06:34:09 PM
Quote from: SunKing on July 26, 2011, 06:12:43 PM
open the index.template.php for the theme you are using and find any instances of chatOnlineUsers() and either remove the line or simply put // in front of that line.
I'M IN! OMG! THANK YOU!!!! I put the // in front of the line and it works! 

Do I need to do anything else now to clean anything up? The AjaxChat Integration still shows up in the package manager, but shows as uninstalled.

I can't thank you enough. (Big Virtual Hug!)

Caat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 26, 2011, 06:37:24 PM
Someone is happy...Kind is a pro as it looks. Maybe you can help me. I have installed 2.0 and it all enable, etc. but I have found I would type something and have others chat too, then the next few hours or day, the writing would would disappear, and It will be blank to start again. Is this normal? any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on July 26, 2011, 07:01:37 PM
@bigcaat

Quote from: bigcaat on July 26, 2011, 06:34:09 PM
Quote from: SunKing on July 26, 2011, 06:12:43 PM
open the index.template.php for the theme you are using and find any instances of chatOnlineUsers() and either remove the line or simply put // in front of that line.
I'M IN! OMG! THANK YOU!!!! I put the // in front of the line and it works! 

Do I need to do anything else now to clean anything up? The AjaxChat Integration still shows up in the package manager, but shows as uninstalled.

I can't thank you enough. (Big Virtual Hug!)

Caat

You can delete the file from within the package manager if you wish. You'll have to upload the mod again if you decide to reinstall it.

@martingonnella

I haven't used this mod in a while so I can't really remember exactly what it is supposed to do in that respect. (Didn't want you thinking you were ignored. ;))
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on July 28, 2011, 05:44:38 AM
working on next version :D

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mopao on July 28, 2011, 03:51:44 PM
Hello,

Ajax chat Integration_3.2.1 can not be installed in SMF 2.0, when I install the following error messages:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Ajax chat Integration_3.2.1 is compatible with SMF 2.0 ?
where is the file?

Thank you
Fali
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 28, 2011, 03:54:58 PM
Mopao, You can use the "Advanced" Tab at the bottom of Package Manager to change to RC3 or RC4. See if that works. There may need to do some Manual Coding using the Parse for 2.0. I think "Hunter", the person who posted before you is doing a New Version for 2.0 so it might be easier to wait until it's completed. Is that correct Hunter?

Mart
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on July 29, 2011, 12:44:54 AM
yes
but i might take 1 week or 2 until a stable version
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 29, 2011, 12:51:29 AM
Absolutely, you take your time Buddy.

Do you know if a better Administration on the chat is something your looking into and a better interface? I'm being noosy lol but other will want to know too lol
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mopao on July 29, 2011, 02:56:48 AM
Quote from: .HuNTeR. on July 29, 2011, 12:44:54 AM
yes
but i might take 1 week or 2 until a stable version

@.HuNTeR.

A stable version for SMF 2.0 ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mopao on July 29, 2011, 03:02:15 AM
Quote from: Martingonnella on July 28, 2011, 03:54:58 PM
Mopao, You can use the "Advanced" Tab at the bottom of Package Manager to change to RC3 or RC4. See if that works. There may need to do some Manual Coding using the Parse for 2.0. I think "Hunter", the person who posted before you is doing a New Version for 2.0 so it might be easier to wait until it's completed. Is that correct Hunter?
Mart

Tab at the bottom of Package Manager to change to RC3 or RC4 I can not find.
Another idea??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on July 29, 2011, 06:12:58 AM
@Mopao
yes the next version is only for 2.0

@Martingonnella
what do you mean by better administration and interface?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mopao on July 29, 2011, 06:17:25 AM
Quote from: .HuNTeR. on July 29, 2011, 06:12:58 AM
@Mopao
yes the next version is only for 2.0
Super Thank you
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 29, 2011, 07:18:53 AM
Sorry Hunter.. I meant 'Neat and Tidy' etc ... Better tight permission for Guests to only view, members to see, etc.. Just make it look professional, which I'm sure you already know.. Smart guy, etc lol I couldn't code to save my life ahaa lol .. I did not lice things line the line of smily face were
Not aligned correctly.. It's just small things which you can fix up and update it.. Nice one dude
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on July 29, 2011, 06:09:28 PM
Quote from: Mopao on July 29, 2011, 03:02:15 AM
Quote from: Martingonnella on July 28, 2011, 03:54:58 PM
Mopao, You can use the "Advanced" Tab at the bottom of Package Manager to change to RC3 or RC4. See if that works. There may need to do some Manual Coding using the Parse for 2.0. I think "Hunter", the person who posted before you is doing a New Version for 2.0 so it might be easier to wait until it's completed. Is that correct Hunter?
Mart

Tab at the bottom of Package Manager to change to RC3 or RC4 I can not find.
Another idea??

If you go to your package manager and look at the bottom right below the list of packages, there should be a link titled "Advanced". Click that and input the version you are wanting to emulate.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SN95Forums on July 30, 2011, 12:47:53 PM
Hey all,

Im having an issue, I exported my database with this deactivated but not un-installed.

What I need to know is what does this modify in my database so I can MANUALLY erase it?

Thanks in advance,
Matt
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on July 30, 2011, 12:50:25 PM
Is there any particular reason you've asked this in at least 3 separate (and unrelated) threads?

Start your own topic (just one) and ask in general how to manually clean up a database. ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on July 30, 2011, 01:00:03 PM
Yes, and typically that is appropriate. But that does not mean that if you have 100 mods installed, you copy/paste the same question 100 times. :o

Try starting a more generalized topic about cleaning your database, then, if any questions are remaining, maybe ask the specific mod's author.

EDIT: For those wondering, no, I am not talking to myself. It seems a post or two has wandered off...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blackylol on July 31, 2011, 03:50:11 PM
I cant remember if the outdatted version had this but Let it is use smileys from the forum
Full Color select if possible! like smfpack shoutbox is great!
Show in real time a list of users online in the shoutbox without going to the standalone chat
A mute sounds button
Larger text box :B

All this in the forum side

just suggestions! Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on July 31, 2011, 05:47:19 PM
Error 500 has been solved. How? I upgraded my shared hosting service. My error 500 was caused by insufficient memory.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 31, 2011, 06:01:17 PM
Sun-King, thanx for coming back to the ajax support, bro. 

I have a question.  How would I place the shoutbox on ONE board, like if I just wanted it to be placed in a board with a boardID of 7
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on July 31, 2011, 06:25:00 PM
How can i hide the chat in main tab from the people who doesnt have permission to enter?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on July 31, 2011, 06:38:08 PM
@hcfwesker

Surround the call to the shoutbox/index.php with
if($context['current_board'] == 1){
...call...
}


where 1 is the ID of the board and ...call... is the call to the shoutbox/index.php.


@PLAYBOY
Open Subs.php and find 'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),


change it to 'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => allowedTo('chat_access'),
'sub_buttons' => array(
),
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 31, 2011, 06:40:33 PM
Quote from: PLAYBOY on July 31, 2011, 06:25:00 PM
How can i hide the chat in main tab from the people who doesnt have permission to enter?

Just a hunch. 

Sources/Subs.php

Find this

'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),


change this line
'show' => true,

to this
'show' => allowedTo('chat_access'),

that's the best i could come up with

Once you edit, just test it on your account to make sure it shows, then test it as a guest to see if it's removed.   Just revert the line back to normal if it doesn't work.

EDIT:::  ^^^ Ninja'd by SunKing  :D

And, thanx for the edits, S-K, i'll try them out, asap.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 31, 2011, 06:48:46 PM
QuoteHow can i hide the chat in main tab from the people who doesnt have permission to enter?

Worked like a Charm. Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 31, 2011, 06:52:26 PM
Hi,

I did notice even though I have unchecked ALL the options in Modification Settings -> Chat.....is still shows the "Chat" button in the toolbar? Can that be changed to remove the Chat button when ALL boxes are unchecked and it re-appears when options are ALL checked?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 31, 2011, 07:23:31 PM
Quote from: Martingonnella on July 31, 2011, 06:52:26 PM
Hi,

I did notice even though I have unchecked ALL the options in Modification Settings -> Chat.....is still shows the "Chat" button in the toolbar? Can that be changed to remove the Chat button when ALL boxes are unchecked and it re-appears when options are ALL checked?

Thanks

Most likely because you are the Administrator.  It will always show for YOU ( the Admin), no matter what permissions you uncheck ;)   make a regular member account, and test.  I'm sure it's removed for everyone else on your site that's not an Admin.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 31, 2011, 07:26:10 PM
Quote from: SunKing on July 31, 2011, 06:38:08 PM
@hcfwesker

Surround the call to the shoutbox/index.php with
if($context['current_board'] == 1){
...call...
}


where 1 is the ID of the board and ...call... is the call to the shoutbox/index.php.

I couldn't find the call, which i thought was normally in the themes index.template.php file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on July 31, 2011, 07:30:19 PM
you might try opening the shoutbox/index.php and surrounding the whole file in that then. There should be a call somewhere, but that'll work for you too.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 31, 2011, 07:39:13 PM
Just tested it now. Happens on all Regular, Global Moderators too..Any ideas please.. Thank you so much


Quote from: hcfwesker on July 31, 2011, 07:23:31 PM
Quote from: Martingonnella on July 31, 2011, 06:52:26 PM
Hi,

I did notice even though I have unchecked ALL the options in Modification Settings -> Chat.....is still shows the "Chat" button in the toolbar? Can that be changed to remove the Chat button when ALL boxes are unchecked and it re-appears when options are ALL checked?

Thanks

Most likely because you are the Administrator.  It will always show for YOU ( the Admin), no matter what permissions you uncheck ;)   make a regular member account, and test.  I'm sure it's removed for everyone else on your site that's not an Admin.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on July 31, 2011, 07:51:08 PM
Quote from: Martingonnella on July 31, 2011, 07:39:13 PM
Just tested it now. Happens on all Regular, Global Moderators too..Any ideas please.. Thank you so much

That's because you can't Remove the Chat from the Mod Settings page. the Main chat is ALWAYS available as long as members have the permissions.  Only way to remove the button from members, is to remove their permissions to access it ....  (plus having the custom edit we provided you with to hide the chat button from those who dont have permissions).

@ SunKing, here's the entire file, not too big, and i wrapped it in what i believed was the call

<?php
/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 */
if($context['current_board'] == 9){
if (!
$_GET['shoutbox']){
$host  $_SERVER['HTTP_HOST'];
$uri   rtrim(dirname(dirname($_SERVER['PHP_SELF'])), '/\\');
$extra 'chat/index.php';
header("Location: http://$host$uri/$extra");
}
}
// Show all errors:
error_reporting(E_ALL);

// Path to the chat directory:
define('AJAX_CHAT_PATH'dirname($_SERVER['SCRIPT_FILENAME']).'/');

// Include custom libraries and initialization code:
require(AJAX_CHAT_PATH.'lib/custom.php');

// Include Class libraries:
require(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the chat:
$ajaxChat = new CustomAJAXChat();
?>


and also wrapped around the whole file, but still only shows on the home page
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Martingonnella on July 31, 2011, 07:52:30 PM
Ok, No problem. Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Iuri Morandini on July 31, 2011, 09:05:58 PM
I try to write and nothing happened

when I click it appears chat


Warning: Cannot modify header information - headers already sent by (output started at /home/MYSITE/public_html/forum/Settings.php:1) in /home/MYSITE/public_html/forum/chat/lib/class/AJAXChatHTTPHeader.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/MYSITE/public_html/forum/Settings.php:1) in /home/MYSITE/public_html/forum/chat/lib/class/AJAXChatHTTPHeader.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/MYSITE/public_html/forum/Settings.php:1) in /home/MYSITE/public_html/forum/chat/lib/class/AJAXChatHTTPHeader.php on line 41
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on August 01, 2011, 04:45:36 AM
Quote from: Martingonnella on July 31, 2011, 06:48:46 PM
QuoteHow can i hide the chat in main tab from the people who doesnt have permission to enter?

Worked like a Charm. Thanks!

Same here. Thx Guys.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blackylol on August 02, 2011, 02:29:23 AM
Quote from: Iuri Morandini on July 31, 2011, 09:05:58 PM
I try to write and nothing happened

when I click it appears chat


Warning: Cannot modify header information - headers already sent by (output started at /home/MYSITE/public_html/forum/Settings.php:1) in /home/MYSITE/public_html/forum/chat/lib/class/AJAXChatHTTPHeader.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/MYSITE/public_html/forum/Settings.php:1) in /home/MYSITE/public_html/forum/chat/lib/class/AJAXChatHTTPHeader.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at /home/MYSITE/public_html/forum/Settings.php:1) in /home/MYSITE/public_html/forum/chat/lib/class/AJAXChatHTTPHeader.php on line 41

check that there are no blank lines before <? and after ?>

I believe there is blank line in the settings.php file line 1, delete it
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on August 02, 2011, 05:02:40 PM
Strange thing.  when i check the option to Integrate the chat & shoutbox, the shoutbox works fine.   then when I uncheck it, I get the 500 Connection Error.  I've set all the files to 755, and nothing has changed.  I don't want the two to Integrate, any suggestions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: arreferee on August 02, 2011, 05:13:26 PM
I have a few basic questions about this mod.  I'm sure they have probably been answered somewhere in the previous 400 pages, but I haven't had time to look through it.

1.  Does this chat allow the users of the board to be automatically logged into the chat room? 
2.  I would like to force them to use their usernames on the forum.  Is this possible?
3.  Is this simply a person to person chat or is it truly a chat room where many members can be in it at the same time?
4.  Is there a current demo site where I can see this chat room at work?

I think that's it for now.  Thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 02, 2011, 05:25:24 PM
Quote from: arreferee on August 02, 2011, 05:13:26 PM
I have a few basic questions about this mod.  I'm sure they have probably been answered somewhere in the previous 400 pages, but I haven't had time to look through it.

1.  Does this chat allow the users of the board to be automatically logged into the chat room? 
2.  I would like to force them to use their usernames on the forum.  Is this possible?
3.  Is this simply a person to person chat or is it truly a chat room where many members can be in it at the same time?
4.  Is there a current demo site where I can see this chat room at work?

I think that's it for now.  Thanks in advance.

1.No. ( I may be wrong)

2. Yes

3. 100 person limit

4. You can view mine at www.miltonkeynesaware.co.cc/mkaforum

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: arreferee on August 02, 2011, 05:29:25 PM
Quote from: Brack1 on August 02, 2011, 05:25:24 PM
Quote from: arreferee on August 02, 2011, 05:13:26 PM
I have a few basic questions about this mod.  I'm sure they have probably been answered somewhere in the previous 400 pages, but I haven't had time to look through it.

1.  Does this chat allow the users of the board to be automatically logged into the chat room? 
2.  I would like to force them to use their usernames on the forum.  Is this possible?
3.  Is this simply a person to person chat or is it truly a chat room where many members can be in it at the same time?
4.  Is there a current demo site where I can see this chat room at work?

I think that's it for now.  Thanks in advance.

1.No. ( I may be wrong)

2. Yes

3. 100 person limit

4. You can view mine at www.miltonkeynesaware.co.cc/mkaforum

Thanks for the reply. 

2.  How do you force the users to login with their usernames?

3.  100 person limit will be plenty for now.

4.  When I checked out your site, it logged me in as a guest...it just gave me a 6-7 digit number.  Is there a way to ensure that guests aren't allowed into the chat room this way?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 02, 2011, 05:33:37 PM
That has to be the worse test I have ever seen.

If you had spoken to me instead of plain ignoring me I would of answered any questions you had there.

Also I would of shown you a few examples of edits which are possible.

1. It is automatic

Guests have the ability to change their number into a name.

Also ( and this is an edit I was going to share) a word filter can be added and an afk ( away from keyboard) message can be left.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: arreferee on August 02, 2011, 05:57:30 PM
Quote from: Brack1 on August 02, 2011, 05:33:37 PM
That has to be the worse test I have ever seen.

If you had spoken to me instead of plain ignoring me I would of answered any questions you had there.

Also I would of shown you a few examples of edits which are possible.

1. It is automatic

Guests have the ability to change their number into a name.

Also ( and this is an edit I was going to share) a word filter can be added and an afk ( away from keyboard) message can be left.

Sorry.  I didn't see where anyone else was logged into the chat room.  I'll try to give it a shot later and see if anyone else is in the room.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blackylol on August 02, 2011, 05:57:51 PM
I've tested this chat and a normal javascript shoutbox in a Pentium 4 3.0

To test the CPU usage I spammed each chat separately with me alone, and the Ajax one makes the apache process take to 60~90% of cpu but the java no-ajax one takes from 25 to 35% UNLESS i open like 10 tabs at same time with 500 ms refresh time...

That means the ajaxchat consumes more resources than a non ajax ? the non ajax one is smfpacks shoutbox.

Is this a script problem, something wrong in my config, or is just because is ajax?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on August 02, 2011, 06:28:04 PM
Quote from: arreferee on August 02, 2011, 05:29:25 PM

2.  How do you force the users to login with their usernames?

You can edit a file that makes it so users of the forum can't change their name in the chat.

Is there a way to ensure that guests aren't allowed into the chat room this way?

Yes, the same file you'd edit, can negate guests from accessing the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on August 02, 2011, 09:20:51 PM
@hcfwesker
I remember this being an issue for quite some time now and possibly no current workaround for it.

@arreferee
Here's a demo (username:admin    password:admin)
http://chat.ecobytes.net/

@Brack1
Calm down.

@Blackylol
It's an AJAX thing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: arreferee on August 02, 2011, 10:01:47 PM
Quote from: SunKing on August 02, 2011, 09:20:51 PM
@arreferee
Here's a demo (username:admin    password:admin)
http://chat.ecobytes.net/

@Blackylol
It's an AJAX thing.

SunKing,

Thank you for the demo.  It looks good.  I like the functionality and ability to change the look of it. 

About Blackylol's comment and your response...I don't think my host will like it too much if I use up all of their resources.  Is there are way around it with this mod?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] 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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: arreferee on August 02, 2011, 10:21:38 PM
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!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Negatieff on August 03, 2011, 07:41:29 AM
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!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 03, 2011, 07:58:37 AM
It's in the file Shout.english.php in your language directory.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Negatieff on August 03, 2011, 08:25:04 AM
Thank you Farjo! I have been cracking my brain on finding it, haha.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: USJTF on August 03, 2011, 04:52:09 PM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on August 03, 2011, 07:01:35 PM
Anytime. Glad I could help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mlw4428 on August 06, 2011, 02:26:56 PM
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?

/me is excited to have decent chat software in his forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madfiddler on August 09, 2011, 12:55:41 AM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on August 09, 2011, 06:09:27 PM
What manual edits are you making?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madfiddler on August 09, 2011, 06:18:48 PM
Hi, I quoted it above. It's the only one whilch fails in the package manager, on index.template.php

Thanks,

m
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on August 09, 2011, 07:27:18 PM
Attach your index.template.php.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madfiddler on August 09, 2011, 07:37:34 PM
Thanks..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on August 09, 2011, 07:48:54 PM
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).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madfiddler on August 09, 2011, 07:52:34 PM
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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madfiddler on August 09, 2011, 07:54:49 PM
OK, that new php is causing the same screen lockup. I'll search on the fatal error. Not getting any error displayed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on August 09, 2011, 07:57:41 PM
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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madfiddler on August 09, 2011, 08:29:14 PM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: madfiddler on August 09, 2011, 08:37:58 PM
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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: .HuNTeR. on August 10, 2011, 03:21:52 AM
@mlw4428
as I'm completely rewriting the mod to use the integration hooks it takes some time
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mlthmp on August 12, 2011, 03:24:51 AM
Hey everyone!

I have a question.. this one puzzles me! I have installed this package (AjaxChat Integration_3.2.1 RC3_Curve_Friendly) and everything is working. However, for some reason when you enter chat and select the channel drop down box.. It shows my actual SMF board names (IE, off_topic, general_area) in that format.

Any suggestions? I really only want to have a single "Public" channel.. for some reason it's showing all my actual SMF boards =(

I'm using SMF 1.1.14
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 12, 2011, 04:49:24 AM
Hi mlthmp, if you look at the mod page you'll see FAQ written in big purple letters - follow that link and your answer will be there, among with many other configuration options :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bindesboel on August 13, 2011, 06:50:29 AM
Hi!...

I have just moved my page http://lsmods.dk to a new host (From one.com to domaindirect.dk). Now i have problems when i install tinyportal and Ajax chat intergrated.... The chat works fine without tinyportal, but when i install tinyportal the chat and shoutbox are blank.... If i write in the chat it is stored in the database, but you just cant see it. If i remove tinyportal again, i can see shouts in the chat again...

I juse following addons:
TinyPortal1_RC2
AjaxChat Integration_3.2.1
SMFStaff1.7
SMFGallery3.0.25a (PRO)
SimpleAudioVideoEmbedder2.0.1

And i use SMF 2.0

I have tryed with SMF 2.0 RC5 with older versions of the addons...

I hope anyone can help me....

-Bindesboel
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 13, 2011, 09:17:54 AM
Don't know the answer but I did have the same problem (chat messages being logged but not displayed) when I was trying to change requestMessagesPriorChannelEnter to false - what is yours set to?

The bad news is that this was fixed by changing hosts; could it be that yours worked on your old host but it won't on the new one?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bindesboel on August 13, 2011, 01:40:41 PM
Yeah it worked at the old host, but made the site very slow... So i changed host and now i cant get it to work..... Maybe its a host problem then  :-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blackylol on August 13, 2011, 05:19:10 PM
Quote from: bindesboel on August 13, 2011, 06:50:29 AM
Hi!...

I have just moved my page http://lsmods.dk to a new host (From one.com to domaindirect.dk). Now i have problems when i install tinyportal and Ajax chat intergrated.... The chat works fine without tinyportal, but when i install tinyportal the chat and shoutbox are blank.... If i write in the chat it is stored in the database, but you just cant see it. If i remove tinyportal again, i can see shouts in the chat again...

I juse following addons:
TinyPortal1_RC2
AjaxChat Integration_3.2.1
SMFStaff1.7
SMFGallery3.0.25a (PRO)
SimpleAudioVideoEmbedder2.0.1

And i use SMF 2.0

I have tryed with SMF 2.0 RC5 with older versions of the addons...

I hope anyone can help me....

-Bindesboel

I had a problem with this chat before using tiny portal, I could see the errors login directly to the yoursite.com/chat/ ... after I saw what line was, i tried removing it from the source code and the chat started working again (It doesnt work if is a vital line for the mod)

anyway Is all Tiny Portal problem, why dont you try other portal?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Groflo on August 14, 2011, 07:49:31 PM
Hi. Just tried to install the mod, but had the blank shoutbox bug.
v 1.1.14, no other mods installed.
Installation worked fine.
CHMOD 755 dir chat and shoutbox

Moreover, I don't only have the blank shoutbox, but in my cPanel, I see the checbox for the options, but the name of the options don't appear (problem of language as I'm on a french forum ?). I attach a JPG to show it.

I tried to create a .htaccess in my root with the two lines
RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
in it, but if I do it, my site is down and doesn't work anymore

Thanks for the help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blackylol on August 15, 2011, 12:09:20 AM
is there a way to access the chat archive ? if there's any...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 15, 2011, 12:14:45 AM
Quote from: Blackylol on August 15, 2011, 12:09:20 AM
is there a way to access the chat archive ? if there's any...

There used to be a way.

Search for log in the topic and ya may be successful.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: [unplugged] on August 15, 2011, 12:57:31 AM
Somewhere around here maybe?

http://www.simplemachines.org/community/index.php?topic=257973.msg2656770#msg2656770
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blackylol on August 15, 2011, 04:13:09 AM
Quote from: SunKing on August 15, 2011, 12:57:31 AM
Somewhere around here maybe?

http://www.simplemachines.org/community/index.php?topic=257973.msg2656770#msg2656770

HA ha! Thanks! many thanks!


Also.... is there a way to only allow 1 connection per IP at same time? i think there's nothing in the config file to do it. i'm trying to save resources
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Chris62 on August 15, 2011, 10:08:35 AM
Hello

We use the chat for a long time. We have provided own channels (No channels of the forum assumed). At the moment the chat is not open for guests.
Now we would provide with pleasure 1-2 channel especially only for guests. What we must do they can log in only according to this.

Sorry for my English, but I am a German. Translates bye Prompt  ;)
Title: Alright, so here's the problem... How do I fix it?
Post by: Caine1978 on August 16, 2011, 09:50:51 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi29.photobucket.com%2Falbums%2Fc297%2FKRS1_%2FScreen_Capture_AJAXCHAT.png&hash=2d9558c69daf321d8f5b8271f2688eabb36f47da)

There's what the problem looks like... All I've done is download and install the AJAX Chat.(which read that it failed somewhere.) And this image (above) is what the end result looks like... how do I fix it and make it work? Anyone help me out here?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 16, 2011, 09:55:01 PM
Nothing can be seen in the image.

Did you install the mod despite an error being shown?

Which version smf do you use?

Did you install the wersion which another user added to his post?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Caine1978 on August 16, 2011, 11:46:40 PM
In the image if you look beneath 'THE HARDCORE ENIGMA BIG J' you'll see 'Anarchy Wrestling' Beneath that is the word SHOUTBOX... This is what's wrong... THERES NOTHING THERE! lol

I installed it despite the error. I use [SMF 2.0 RC5] and installed the following version

AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip

from this page

http://custom.simplemachines.org/mods/index.php?mod=1319

    The error was on 9.   Execute Modification   ./Themes/default/index.template.php   Test failed
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Groflo on August 17, 2011, 01:33:15 AM
Quote from: Groflo on August 14, 2011, 07:49:31 PM
Hi. Just tried to install the mod, but had the blank shoutbox bug.
v 1.1.14, no other mods installed.
Installation worked fine.
CHMOD 755 dir chat and shoutbox

Moreover, I don't only have the blank shoutbox, but in my cPanel, I see the checbox for the options, but the name of the options don't appear (problem of language as I'm on a french forum ?). I attach a JPG to show it.

I tried to create a .htaccess in my root with the two lines
RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
in it, but if I do it, my site is down and doesn't work anymore

Thanks for the help

up !
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Caine1978 on August 17, 2011, 03:37:55 AM
UP! ...? As in you got it up? You figured it out? Does this assist me with my issue in any way? lol SOMEBODY HELP ME PLEASE THIS IS THE ONLY DECENT SHOUTBOX/CHAT Package available for SMF forums...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: audiodef on August 17, 2011, 11:45:23 AM
I'm a bit confused as to how this mod should be installed. Should I use the package manager? If so, how? I don't run an FTP daemon, so I would have to download the package first, manually.

If I have to install it manually, where do I put the files? In the SMF root dir? In the Package dir?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 17, 2011, 11:52:36 AM
Quote from: Caine1978 on August 17, 2011, 03:37:55 AM
UP! ...? As in you got it up? You figured it out? Does this assist me with my issue in any way? lol SOMEBODY HELP ME PLEASE THIS IS THE ONLY DECENT SHOUTBOX/CHAT Package available for SMF forums...

Please learn some patience. Also please no shouting.

The test failed error means a manual edit is required on the file.

Quote from: audiodef on August 17, 2011, 11:45:23 AM
I'm a bit confused as to how this mod should be installed. Should I use the package manager? If so, how? I don't run an FTP daemon, so I would have to download the package first, manually.

If I have to install it manually, where do I put the files? In the SMF root dir? In the Package dir?


Use the package manager.

Which version smf do you use? The 2.0 version is attached to a users post on one of the latter pages.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: audiodef on August 17, 2011, 01:12:05 PM
I have SMF 3.2.1. If I download the mod manually and unzip it into the Packages dir, it shows up in the Package manager, but the only options for it are "list files" and "delete". Should there be an "install" option?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 17, 2011, 02:30:40 PM
:) SMF 3.2.1? That's this mod's version number. You are basically on a version 1 or a 2 - you can tell by looking at the bottom of your forum pages.

Caine1978 can you restore a backup from before you ignored the warning message?

Chris62 the answer to your question is in the FAQ, a link to which is on the first post of this thread in big letters.

Groflo have you changed the index.php files to 755? As for the blank option maybe try copying the Shout.english.php  file, changing the 'english' bit to 'french'. If it works then you could repay Hunter generosity providing this great mod by translating all the lines and posting it here :)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: audiodef on August 17, 2011, 02:33:39 PM
My bad. That should be SMF 2.0.

A couple of things I've noticed:


Is it actually not compatible with SMF 2.0?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 17, 2011, 02:44:44 PM
Yes it is. The mod author has not updated a line in one of the files to say that it is compatible with version 2.0 is all. I am using it with version 2.0, and I know that others are too, so I know that it is compatible.

You have two options. You could either look through the previous several pages until you find the latest version - as Brack1 says "The 2.0 version is attached to a users post on one of the latter pages."

Or you could go into the Advanced bit from the Browse Packages screen to emulate '2.0 RC3' in which event it will work. However do not ignore any other errors on install!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: audiodef on August 17, 2011, 03:13:57 PM
Thanks for clarifying that. I found it on this page:

http://www.simplemachines.org/community/index.php?topic=257973.7900

I was able to successfully install the mod by download the zip file to the Packages dir, upon which it showed up in the browse section with an install link.

Nice mod!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Groflo on August 17, 2011, 03:55:53 PM
Quote from: Farjo on August 17, 2011, 02:30:40 PM

Groflo have you changed the index.php files to 755? As for the blank option maybe try copying the Shout.english.php  file, changing the 'english' bit to 'french'. If it works then you could repay Hunter generosity providing this great mod by translating all the lines and posting it here :)

Yes I changed the index.php. But where should I copy the shout.english.php ? I didn't find any shout.*.php file in the directories of my site...
Thanks.

Moreover, I sometimes get an error in the chatbox : "connection status : 0"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 17, 2011, 04:03:29 PM
Hi, there should be a Shout.english.php file in your Themes/default/languages file (note the capital S) - so copy it to the same location as Shout.french.php.

Please realise that I'm only guessing that this may work - I only make the suggestion as nobody else had replied.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 17, 2011, 04:25:21 PM
Groflo, just noticed that you're running SMF v1 so your files may be in a different location.

Regarding the connection status, see here: http://www.simplemachines.org/community/index.php?topic=257973.msg1997858#msg1997858
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Caine1978 on August 17, 2011, 04:38:14 PM
not that I know of... the best thing I can think of is what I'm trying to do now, which is uninstall/delete/reboot it from scratch...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Caine1978 on August 17, 2011, 04:43:17 PM
I just noticed something...

I'm using [SMF 2.0 RC5] and the newest mod only says RC3
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 17, 2011, 06:07:17 PM
Quote from: Caine1978 on August 17, 2011, 04:43:17 PM
I just noticed something...

I'm using [SMF 2.0 RC5] and the newest mod only says RC3

Like Farjo and myself have said we are both using 2.0.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 17, 2011, 07:52:41 PM
The attached file is compatible with SMF version 2; I have presumptuously named it 3.2.2  :)

It is .HuNTeR.'s "3.2.1 RC3 curve friendly" file with the following changes:

Thank you to .HuNTeR. for such a great mod :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nw on August 18, 2011, 04:26:56 AM
First of all,

Thanks to the mod writer, it looks like a great mod and I'm looking forward to use it.

I've emulated my site to RC3 in order to use this mod. However, there are 2 errors and I'd really appreciate your help.

1st error: White blank page
I've looked at the older posts and tried everything I could find. I've fixed the 755 permissions on both chat/index.php and shoutbox/index.php. I've also add the .htaccess file in both chat and shoutbox folders, have deleted them when it didn't work, have tried the combination of having one in the chat folder and none on shoutbox folder, etc etc. I've make sure that the users have the permission to access chat from the admin panel. However, the chat still show a clean white page with no user and messages.


2nd error: Subs.php errors
I keep getting these messages on top of the page when I load the chat:

QuoteNotice: Undefined index: mytab_Custom_URL in /home/.../forum/Sources/Subs.php on line 3919
Notice: Undefined index: mytab_Custom_URL in /home/.../forum/Sources/Subs.php on line 3921

And these are the specific lines from the Subs.php file:

Quote3919   "{$modSettings['mytab_Custom_URL']}" => array(
       3920   'title' => !empty($modSettings['mytab_label']) ? $modSettings['mytab_label'] : '',
       3921   'href' => $scripturl . '?action=' . $modSettings['mytab_Custom_URL'],
       3922      'show' => $context['show_mytab'] && !empty($modSettings['mytab_label']) &&         
         ),

Would anyone know how to fix this? Thanks in advance.


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 18, 2011, 06:15:20 AM
Have you got some sort of menu admin mod? And do you have a portal?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nw on August 18, 2011, 06:35:12 AM
Hi, Farjo.

I'm not using any portal but I do have a few mods such as SubAccounts Mod, notCapcha, MultiForum, etc. Do you think this might be causing it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: audiodef on August 18, 2011, 11:29:57 AM
How do I hide the chat link from unregistered users?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 18, 2011, 01:54:02 PM
nw, I was wondering where the code in subs.php came from? It's in the menu block right? Doesn't look like what's added by default to me. Can you paste up 10 lines before and after. Do you have a mod called MyTab?

audiodef, the answer was posted up here recently so look through the previous pages.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: audiodef on August 18, 2011, 03:31:31 PM
Thanks, Farjo. I'll go look for it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: audiodef on August 18, 2011, 03:55:27 PM
I was looking for this also, so I could hide the chat link from unregistered users, and it works on my installation. Why isn't this the default code for the mod? Just curious.

Quote from: SunKing on July 31, 2011, 06:38:08 PM
Open Subs.php and find 'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),


change it to 'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => allowedTo('chat_access'),
'sub_buttons' => array(
),

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 18, 2011, 06:19:24 PM
You found it, nice one.

As for the default, I assume it's because AjaxChat (on which this mod is based) by default allows guest access.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nw on August 18, 2011, 06:26:34 PM
Thanks Farjo, I don't have a mod called MyTab. As you said it wasn't in the default so I commented it out and it takes care of the 2nd problem. I guess it's safe to assume that bits of code is the problem. Although now that I took it out, I realised that it's for the subaccount feature, in order for members to be able to switch account through a drop down button.

Here are some snippets of the code:

if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),

"{$modSettings['mytab_Custom_URL']}" => array(
'title' => !empty($modSettings['mytab_label']) ? $modSettings['mytab_label'] : '',
'href' => $scripturl . '?action=' . $modSettings['mytab_Custom_URL'],
'show' => $context['show_mytab'] && !empty($modSettings['mytab_label']) && !empty($modSettings['mytab_OnorOff']),
'sub_buttons' => array(
),
),
'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),





Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: audiodef on August 18, 2011, 07:59:36 PM
That does make sense. I just want to limit chat access to registered users so as not to overload anything. If it goes the way I hope it will, I may have to create an IRC channel and limit the chat to specific purposes - but that is some time away.

Quote from: Farjo on August 18, 2011, 06:19:24 PM
You found it, nice one.

As for the default, I assume it's because AjaxChat (on which this mod is based) by default allows guest access.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 19, 2011, 03:36:32 AM
audiodef, having too may members is a nice problem to have!

nw, so that just leaves the blank screen? From what you say you have it set up correctly so the below are just stabs in the dark I'm afraid.

What browser are you using, and what errors are displayed when you use a different one?

Does your server use PHP5.3.1?

In chat/lib/config.php do you have this line?:
$config['socketServerEnabled'] = false;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 19, 2011, 03:56:24 AM
Also nw, have you changed the channel list in config.php? If so check this:

QuoteIf you limit the number of available channels you must make sure that the default channel ID is included.

If you want to use the following:

---

// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:

$config['limitChannelList'] = array(142,163,75,80,180,224,288,228,223,143,271);

---



You have to set the defaultChannelID to one of those ID's:

---

// ChannelID used when no channel is given:

$config['defaultChannelID'] = 142;

---
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: audiodef on August 19, 2011, 12:00:10 PM
I just noticed that while I can hide the chat link from unregistered users, unregistered users can still use AJAX Chat by going directly to the chat URL. I'd like to prevent this. How should I do that?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 19, 2011, 12:09:53 PM
That's in the lib/config.php file:
$config['allowGuestLogins'] = true;
(change to false, obviously!)

Guests can still go to the chat address but they are presented with a login window.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: audiodef on August 19, 2011, 12:14:04 PM
I just found that and changed that setting, but something weird is happening, and it happens regardless of whether I'm logged into my SMF boards.

If I log in to chat with my SMF admin handle, it logs me in with or without a password, and regardless of what password I use. If I try to log in to chat with any other handle without a password, it logs me in as my SMF admin handle. If I try to log into chat with any other handle and a password, it simply fails.

How do I get chat to authenticate SMF registered users only?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 19, 2011, 12:32:53 PM
Some cookie issue? Either delete the SMF cookie or try a browser on which you haven't logged in as admin.

Or maybe cache??

You did load the package from this site, not ajaxchat direct???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: audiodef on August 19, 2011, 01:33:27 PM
Tried it on another machine, got the same problem, but I wasn't thinking clearly when I did that, since I logged into SMF first, then logged out to try a non-existent user.

But if do it the right way by deleting the SMF cookies and then attempting to log in to the chat URL directly with invalid credentials BEFORE trying valid ones, it takes me back to the SMF login page.

So it works! Thanks, Farjo, I appreciate the help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 19, 2011, 01:36:51 PM
Excellent. Glad you got it sorted :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MiY4Gi on August 19, 2011, 09:14:05 PM
Urg, I just can't seem to integrate chat into my forum's template. Has anyone managed to do this on 2.0 Gold and a Curve Varient? I tried using the method danielwmoore proposed (http://www.simplemachines.org/community/index.php?topic=257973.msg2239530#msg2239530) but the chat page is still separate from the forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 19, 2011, 09:17:59 PM
Whats the link?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MiY4Gi on August 19, 2011, 09:22:43 PM
Sorry, my forum is going a little cookoo at the moment. My admin center keeps telling me that my current SMF version is 2.0 and that the latest version is 1.1.14. Well, I logged out, and logged back in, refreshed a few times, and now the chat page looks like it's supposed to, however it still isn't how I want it to be.

The url is http://theanimeclub.co.za
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MiY4Gi on August 19, 2011, 09:26:57 PM
Aha. It's portamx's SEF urls that's causing the problem. I just switched SEF off, and now chat is working exactly how it should.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 19, 2011, 09:27:49 PM
Do you have anything to do with chat if you go to admin > configuration > modification settings.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 19, 2011, 09:30:44 PM
Ya may have to mention this on their forum.

Btw your forum is the only one I know of where guests can use the shout.

Not a good idea due to spammers.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MiY4Gi on August 19, 2011, 09:39:49 PM
Quote from: Brack1 on August 19, 2011, 09:27:49 PM
Do you have anything to do with chat if you go to admin > configuration > modification settings.

Huh? I only have Show online users below total logged in time section? enabled.

Mm, now how to I get Chat to work with SEF. I could add chat to the list of actions to ignore in the SEF feature, but that's like giving up. I want to find out what's causing the incompatibility.

Quote from: Brack1 on August 19, 2011, 09:30:44 PM
Ya may have to mention this on their forum.

Btw your forum is the only one I know of where guests can use the shout.

Not a good idea due to spammers.

Yeah, I read a post somewhere in this topic where you need to alter the "show" bit of the Chat button. I just gotta find the post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 19, 2011, 09:49:00 PM
In the section I mentioned was there a checkbox which enables the chat to appear in a poup instead of the whole page?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MiY4Gi on August 19, 2011, 10:01:37 PM
Yes, but I have it un-ticked.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 19, 2011, 10:07:35 PM
Quote from: MiY4Gi on August 19, 2011, 10:01:37 PM
Yes, but I have it un-ticked.

Would look better ticked.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MiY4Gi on August 19, 2011, 10:30:09 PM
Mm, I'll give it some consideration.

Alight, how do I move the shoutbox's collapse button to the right, like my other forum collapse buttons?

Here's the code:


if (!empty($modSettings['anyPageShoutBox']) || isset($context['chat_isHome'])){
echo'
<h3 class="catbg" class="catbg centertext"><span class="left"></span>
<span class="floatleft"><a name="ajax_shoutbox" rel="noindex" href="#ajax_shoutbox" onclick="ajax_shoutBox_collapse(!sb_current_header)"><img id="ajax_shoutbox_collapse" src="', $settings['images_url'], empty($options['sb_collapsed']) ? '/collapse.gif' : '/expand.gif','" alt="*" style="margin-right: 10px;"  /></a>', $txt['shoutBox'], '
<span class="floatright"><a href="https://blueimp.net/ajax/"><font size="1">AJAX Chat</font></a><font size="1"> &copy; <a href="https://blueimp.net">blueimp.net</a>&nbsp;|&nbsp; </font> <a href="http://4tmu.ir/forum/index.php"><font size="1">Integrated with SMF</font></span></a>
</h3>
<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' : ' style="display: none;"', '>
<span class="upperframe" style="height:18px;"><span>&nbsp;</span></span>
<div class="roundframe"><div style="margin:-5px;">
', getShoutBoxContent() ,'
</div></div>
<span class="lowerframe"><span>&nbsp;</span></span>
</div><br class="clear" />';
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on August 22, 2011, 08:39:10 AM
Hello I asked this once before a lone time ago and had no answer then but I will ask again now.....

How do I change the Number of lines to show per page on shoutbox history?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 22, 2011, 09:31:49 AM
Looks like it's in chat/css/shoutbox.css
change height:163px to something higher - I changed mine to 200px and gained just under 2 lines.

There's also a shoutbox.css in the shoutbox/css directory but I do not know its significance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Sp4wn on August 22, 2011, 07:11:16 PM
Quote from: Farjo on August 17, 2011, 07:52:41 PM
The attached file is compatible with SMF version 2; I have presumptuously named it 3.2.2  :)

It is .HuNTeR.'s "3.2.1 RC3 curve friendly" file with the following changes:

  • It will install in version 2.0,
  • It will correctly modify the index.template.php file,
  • The language names will show correctly (e.g. Português instead of Portuguأھs),
  • It will work using Chrome (thanks again to hcfwesker).

Thank you to .HuNTeR. for such a great mod :)

Works perfect on a brand new 2.0 install. MAny Thanks Farjo, Hunter & King for the good work :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on August 22, 2011, 07:42:36 PM
Quote from: Farjo on August 22, 2011, 09:31:49 AM
Looks like it's in chat/css/shoutbox.css
change height:163px to something higher - I changed mine to 200px and gained just under 2 lines.

There's also a shoutbox.css in the shoutbox/css directory but I do not know its significance.
Thanks for you help... Would you also know how to make the history last longer then 24hrs as well
say up to 72 hrs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 22, 2011, 07:47:11 PM
Quote from: techno489 on August 22, 2011, 07:42:36 PM
Quote from: Farjo on August 22, 2011, 09:31:49 AM
Looks like it's in chat/css/shoutbox.css
change height:163px to something higher - I changed mine to 200px and gained just under 2 lines.

There's also a shoutbox.css in the shoutbox/css directory but I do not know its significance.
Thanks for you help... Would you also know how to make the history last longer then 24hrs as well
say up to 72 hrs

Have you looked at the FAQs on the first post of the mod?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on August 22, 2011, 08:45:19 PM
If this is what I have to do
http://www.simplemachines.org/community/index.php?topic=257973.msg1981100#msg1981100
then time will tell over the next 72 hrs...
Didn't see this before.

Cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 23, 2011, 04:38:18 AM
Thanks for the feedback Sp4wn.

"MAny Thanks Farjo, Hunter & King for the good work" - all thanks must go to .HuNTeR. - all I have done is updated his mod with the fixes that others have provided :)

Here is that version again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: nw on August 24, 2011, 02:06:07 AM
Hey Farjo,

Thanks so much. It's working fine (both problems were solved) once I comment out the portion of that code. I just need to figure out how to work with them together.

Thanks again for your help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jeanineh on August 24, 2011, 07:13:16 PM
Hi, do you have any idea when this will be available for the new 2.0 board? I would really like to have it installed to use but it doesn't seem to be compatible. I had someone who knows how to do this try and he said it wouldn't install. :( Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 24, 2011, 07:28:30 PM
Have a look 3 posts up where I have attached a version 2 compatible file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on August 24, 2011, 11:12:01 PM
Quote from: Farjo on August 23, 2011, 04:38:18 AM
Thanks for the feedback Sp4wn.

"MAny Thanks Farjo, Hunter & King for the good work" - all thanks must go to .HuNTeR. - all I have done is updated his mod with the fixes that others have provided :)

Here is that version again.

I downloaded the 3.2.2 and when I tried to install it I got errors. So I unpacked the download and copied the "chat & "shoutbox" folders
over the old chat / shoutbox folders and everything still works good, but I wanted to check the rest of the install to make sure all other
php edits are ok.

I put the AjaxChat Integration_3.2.2.zip through the SMF Package Parser (http://www.tytyweb.net/projects/smf/package-parser/?action=parse) to check my install
and get errors on every SMF Version 2.0 option I can pick.

What other changes aside from the chat and shoutbox folders is there

I put the AjaxChat Integration_3.2.1.zip though the same Parser and it works,

so what changes are made and where... Thankyou
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 25, 2011, 07:23:52 AM
Thank you for the link to the Package Parser. Apparently it fails if the mod's files are in a sub-directory, which the Package Manager allows. So attached is the same mod but without the sub-folder.

There are no other changes, and both the Package Parser and the Package Manager are happy, so I think that was a red herring :)

"I got errors" - what were the errors? Did you uninstall the old version?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on August 25, 2011, 09:38:46 AM
RC5,RC4,RC3,RC2
I get this error
This mod is not supported with your version of SMF.

If I try 2.0 only then I get error on line 802 and 808

But not to worry, you say no other edits. only whats in the folders
then there is no problem. I will use parser with AjaxChat Integration3.2.1.zip
to re-go over passed edits...

Nothing wrong MOD works great still, I just like to make sure everything is how it should be.
Cheers

P.S. As computers and software are sometimes confusing
before posting this I tried 1 more time with only 2.0 and it worked :D
Must be my anti virus scanning the data or internet speed not uploading correctly: cheers and thanks for the support
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 25, 2011, 10:41:11 AM
Ah! No it's only for version 2.0 as that's what people are always asking for :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CodeMonkey76 on August 25, 2011, 10:59:27 AM
With SMF 2.0, when I install this and try to use it, the chat window that pops up is blank.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 25, 2011, 12:22:14 PM
I think that is the 500 / internal server error - check the file permissions are 755 on the index.php files in the chat and shoutbox directories.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Mopao on August 25, 2011, 04:21:31 PM
Quote from: .HuNTeR. on July 29, 2011, 12:44:54 AM
yes
but i might take 1 week or 2 until a stable version
Hello HuNTeR,

The new version is already available?

Merci
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on August 25, 2011, 10:50:52 PM
I'm on SMF 2.0

Just wondering if there can be added another feature, along with kick, ban, etc ...

How about a /mute 

where Chat Mods can click a member's name, add /mute with a time (in minutes) that will prevent that member from typing any messages while in the chat, for that time.

like

hcfwesker /mute 5      <--- however its done correctly ?

would not allow me to type messages for the next 5 minutes in the chat.

thanx for any help, and if there's an alternative solution to this, please let me know.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: razors edge on August 31, 2011, 10:03:32 AM
Does this open a new window for the chat room? or is it just solely a shoutbox? I am looking for a replacement to my flashchat for smf 2.0

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kat on August 31, 2011, 10:08:22 AM
QuoteAdds a button to chat system in default theme.

Quoteadds a shoutbox.(you can disable it)


http://custom.simplemachines.org/mods/index.php?mod=1319
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 31, 2011, 10:12:57 AM
AjaxChat opens a new window - there's an option for it to be a pop-up.

What's wrong with Flashchat??

ps in case you hadn't already spotted it, the SMFv2 file is here http://www.simplemachines.org/community/index.php?topic=257973.msg3144830#msg3144830
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 31, 2011, 10:15:19 AM
With this mod you have the choice of having the chat in a pop up window.

Although the chat does also have the shoutbox I only use the chat due to having the shoutbox with my portal.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GB_Techie on August 31, 2011, 01:12:28 PM
Is this the fix for the latest version as well (blank page problem)?  The post says that it will be included in the newest version and that was back in 2009.  Cheers.

Quote from: mrtrc266 on March 19, 2009, 12:03:37 AM
Here some known issues and fixes caused by either other Mods or some servers

       
  • If you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please READ THIS (http://www.simplemachines.org/community/index.php?topic=257973.msg2053529#msg2053529)
If you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755 (and in some cases CHMOD the actual "Folders" as well).
This could possible be the solution for this as well.... "If you install the Mod and it looks like it installs fine but the   shoutbox and chat room are blank"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 31, 2011, 01:40:34 PM
If that is the error you have then it is something you have to do manually in your cp.

The mod can't do that for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GB_Techie on August 31, 2011, 01:46:29 PM
Sorry, I might be misunderstanding...

On installing the ajaxchat integration mod, clicking on 'chat' gives me a blank page.  Is the fix mentioned above, still the fix since it's two years old?  I don't want to make the edit and break anything any further.

My SMF 2.0 installation works fine otherwise.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 31, 2011, 02:01:55 PM
It contains the htaccess files if that's what you mean?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: razors edge on August 31, 2011, 02:20:10 PM
Quote from: Farjo on August 31, 2011, 10:12:57 AM
AjaxChat opens a new window - there's an option for it to be a pop-up.

What's wrong with Flashchat??

ps in case you hadn't already spotted it, the SMFv2 file is here http://www.simplemachines.org/community/index.php?topic=257973.msg3144830#msg3144830

I like flash chat, I have the latest version 6 of it but no one has created a integration for the user database. If it was integrated I would not be searching for a replacement.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 31, 2011, 02:40:04 PM
Thanks for the reply :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GB_Techie on August 31, 2011, 02:45:06 PM
Quote from: Farjo on August 31, 2011, 02:01:55 PM
It contains the htaccess files if that's what you mean?

yes, but does editing the htaccess file fix the blank page problem?  The post says that it would be fixed in the latest version...which is the one that I've installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: razors edge on August 31, 2011, 02:55:14 PM
Ok so I downloaded the ajax chat software and the integration tool for smf 2.0 (thanks to whom made this). Everything seems to be working fine except I noticed something weird. In the upper right hand corner is a link, the link says "integrated with SMF" but when you click on it it goes to some foriegn site. what is this and where did it come from?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 31, 2011, 03:19:00 PM
It says "It will also hopefully be added to the package in future releases" not "that it would be fixed in the latest version". Try it and see if it works on your server.

razors edge, I believe it is a website belonging to .HuNTeR.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: razors edge on August 31, 2011, 03:36:11 PM
Quote from: Farjo on August 31, 2011, 03:19:00 PM
It says "It will also hopefully be added to the package in future releases" not "that it would be fixed in the latest version". Try it and see if it works on your server.

razors edge, I believe it is a website belonging to .HuNTeR.

I installed flashchat and could not get it to work. But so far I am liking the ajax chat instead. Very easy to install and is very clean.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on August 31, 2011, 03:43:25 PM
"Very easy to install" - I think you must have the wrong version LOL
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hackathon on September 02, 2011, 11:16:00 AM
Where can I change the font color, font size, background etc.. cause I'm using black skin. it looks weird   :P

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=185880)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 02, 2011, 11:31:27 AM
Hackathon

Is your chat open to guests?

If so please link to it and I will show you.

Easier than explaining in here.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hackathon on September 02, 2011, 11:54:23 AM
Brack1

that's just a my localhost.. :D

I still haven't install this on my real site..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 02, 2011, 12:00:04 PM
rightio

There should be some symbols on the lower right of the chat screen.

One looks like a spanner. Have a look through them.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hackathon on September 02, 2011, 12:16:58 PM
Here right? i saw spanner at the bottom part

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=185890)

I've changed the style but it still look the same above,,  :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 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 :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 02, 2011, 01:28:07 PM
The settings is what ya want.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on September 02, 2011, 02:51:12 PM
Quote from: Hackathon on September 02, 2011, 12:16:58 PM
Here right? i saw spanner at the bottom part

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=185890)

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.
Title: AjaxChat Integration (latest version 3.2.2)
Post by: Dblog on September 05, 2011, 02:58:34 AM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 05, 2011, 03:36:59 AM
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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dblog on September 05, 2011, 04:10:07 AM
yep. i already uninstalled that mod for now and backup files replaced.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 05, 2011, 04:14:12 AM
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!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dblog on September 05, 2011, 04:38:46 AM
i've tried again and got same errors as above
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 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:

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=186046)


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..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 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:

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=186046)


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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg204.imageshack.us%2Fimg204%2F2748%2Fajaxchat.png&hash=5407100f7b62ebdfb948bbe241738b4de9a34046)
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';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 05, 2011, 11:41:12 AM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hackathon on September 05, 2011, 01:55:12 PM
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:

(https://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=186046)


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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg204.imageshack.us%2Fimg204%2F2748%2Fajaxchat.png&hash=5407100f7b62ebdfb948bbe241738b4de9a34046)
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  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 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 ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ElusiveEagle on September 05, 2011, 09:31:33 PM
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`
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ElusiveEagle on September 05, 2011, 09:51:28 PM
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. :/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 05, 2011, 09:54:34 PM
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.
Title: AjaxChat Integration (latest version 3.2.2)
Post by: Dblog on September 06, 2011, 01:42:44 PM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 06, 2011, 01:56:17 PM
Firstly which themes are you using?

Files with a test failed means these files will require a manual edit.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Dblog on September 06, 2011, 02:03:56 PM
i did manual edit on those theme files but still chat didnt install properly
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 06, 2011, 05:59:44 PM
What is the link to the forum?
Title: AjaxChat Integration (latest version 3.2.2)
Post by: Dblog on September 07, 2011, 01:45:59 AM
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

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digitalmikey on September 08, 2011, 02:11:47 AM
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?
Title: AjaxChat Integration (latest version 3.2.2)
Post by: Dblog on September 08, 2011, 02:17:44 PM
hi, on a fresh install of smf 2.0 without any other MODS installed and using default theme, i could install ajax chat 3.2.2 and run succesfully.
but on an existing forum with mods like :

SA facebook inetgration
google + button
twitter integration
and few more

i get these errors in popup chat window

http://www.simplemachines.org/community/index.php?topic=257973.msg3152811#msg3152811
Title: AjaxChat Integration (latest version 3.2.2)
Post by: Dblog on September 08, 2011, 02:34:32 PM
i've edited the chat/lib/class/AJAXChatHTTPHeader.php file and removed code that sends header info
now errors on top of chat page disappeared but messages types are invisible
but they're stored in database. !!!!!

how to rectify this
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 08, 2011, 03:02:33 PM
I get this problem on one of my servers but not another, so I assume it is server related. I never chased it up with the server admin as I now only use the chat mod on the server that works.

However, it worked if I unset the option to not show previous messages.
Title: AjaxChat Integration (latest version 3.2.2)
Post by: Dblog on September 08, 2011, 03:34:42 PM
both my running forum and test forum are on same server
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on September 08, 2011, 09:58:20 PM
OK, I'm hoping I can get an answer for this.

I'm on SMF 2.0

When a memebr is given permission to moderate the chat, their given the color green in the chat.  Well, I have chat mods who we don't want to appear green, kinda like a secret chat mod.  How can I add member IDs to not have their name appear green in the chat?  like an IF statement in the /chat/css/[STYLE_NAME].css  file.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sunny1mill on September 09, 2011, 03:35:27 AM
I have downloaded the most uptodate AJAX CHAT but in order to add this to my installed packages do I simple upload the zip file to my site. Or do I have to extract it all then upload the instal.php ?? would apreciate if someone could advise thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 09, 2011, 05:08:14 AM
Cblog, does it work correctly on either forum?

hcfwesker, maybe perhaps in /chat/lib/class/CustomAJAXChat.php ??

if($context['user']['is_admin'])
$userData['userRole'] = AJAX_CHAT_ADMIN;
elseif(allowedTo('chat_mod'))
$userData['userRole'] = AJAX_CHAT_MODERATOR;
else
$userData['userRole'] = AJAX_CHAT_USER;

return $userData;
}

Perhaps maybe you could code an exception for a list of user names or a membergroup?

sunny1mill, you use the Package Manager to upload the zip file, see http://wiki.simplemachines.org/smf/Package_manager#Download_Packages
Be sure to backup your files and database first and do not install through any error messages - post them here.
Title: AjaxChat Integration (latest version 3.2.2)
Post by: Dblog on September 09, 2011, 05:53:52 AM
yes, i tried it on another forum where there were no other mods and it worked smoothly
i guess some mod has altered something that ajax chat is not able to mod

if someone can explain why messages typed are stored in database but not visible in chat room and why are online users not visible in sidebar, then i can try something again
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danni_X on September 09, 2011, 06:32:12 AM
I got the same problem. chat window is empty does not show users
but write database.
What can I do?

Maybe it's a conflict with other modules?
Title: AjaxChat Integration (latest version 3.2.2)
Post by: Dblog on September 09, 2011, 06:59:34 AM
i got this line in my error_log

CSRF state token does not match one provided.

PHP Notice:  Undefined index:  utf8 in /public_html/forums/Sources/Subs-Post.php on line 1259
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Danni_X on September 09, 2011, 08:32:55 AM
problem is the theme used
I changed the theme and works
want to see where the theme is the problem
keep you informed  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on September 09, 2011, 01:30:30 PM
Quote from: Farjo on September 09, 2011, 05:08:14 AM
hcfwesker, maybe perhaps in /chat/lib/class/CustomAJAXChat.php ??

if($context['user']['is_admin'])
$userData['userRole'] = AJAX_CHAT_ADMIN;
elseif(allowedTo('chat_mod'))
$userData['userRole'] = AJAX_CHAT_MODERATOR;
else
$userData['userRole'] = AJAX_CHAT_USER;

return $userData;
}

Perhaps maybe you could code an exception for a list of user names or a membergroup?

Thanx for the response.  I have global mods that i still want to show as chat mods, green.  The membergroup I'm trying to negate as green, are BDTL staff, member group id 44

I also have them their own custom color, I used the edits linked from the this topics FAQ.  And I kept it as AJAX_CHAT_VIP , which they appear as yellow html color #FFD700  .  The members names with member ids are Camden(1828), Vio(1027), blkmajik(801) , if that helps any.

Thanx for looking into this.  :)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 09, 2011, 01:56:28 PM
This looks helpful:
http://www.simplemachines.org/community/index.php?topic=380763.0
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 09, 2011, 01:58:54 PM
Have a look at this too:

      // Check if we have a valid registered user:
if($userData['chat_access']) {
if ($context['user']['is_guest'])
return $this->getGuestUser($userData);
else{
$userData['userID'] = $context['user']['id'];

$userData['userName'] = $this->trimUserName($context['user']['name']);

if($context['user']['is_admin'])
$userData['userRole'] = AJAX_CHAT_ADMIN;
elseif(allowedTo('chat_mod'))
$userData['userRole'] = AJAX_CHAT_MODERATOR;
else
{
// Check if we have a member of our custom user group
if(in_array(9, $user_info['groups']))
$userData['userRole'] = AJAX_CHAT_VIP;
else
$userData['userRole'] = AJAX_CHAT_USER;
}

return $userData;
}
}else
return null;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on September 09, 2011, 09:39:33 PM
I already done the edits for custom group color in the chat.  And it works.  The problem is, the group is showing green in the chat, because they have permissions to moderaqte the chat.  I want global moderators (with chat mod permissions)  to show as green.  BUT, this other group called BDTL staff (with chat mod permissions)  to show as yellow in the chat.

They appear as yellow in the chat, but once i give them chat mod powers, they turn green.   which i only want global mods to appear as green in the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 10, 2011, 01:50:58 AM
Could you please post up your bit of code.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on September 10, 2011, 02:09:57 AM
// Check if we have a valid registered user:
      if($userData['chat_access']) {
         if ($context['user']['is_guest'])
            return $this->getGuestUser($userData);
         else{   
            $userData['userID'] = $context['user']['id'];
               
            $userData['userName'] = $this->trimUserName($context['user']['name']);
     
            if($context['user']['is_admin'])
               $userData['userRole'] = AJAX_CHAT_ADMIN;
            elseif(allowedTo('chat_mod'))
               $userData['userRole'] = AJAX_CHAT_MODERATOR;
            else
            {
               // Check if we have a member of our custom user group
               if(in_array(44, $user_info['groups']))
                  $userData['userRole'] = AJAX_CHAT_VIP;
               else
                  $userData['userRole'] = AJAX_CHAT_USER;
            }

         return $userData;
         }
      }else
         return null;


As I said, the group appears yellow in the chat.  But when I give anyone from this group chat mod permissions, they become green colored.  i'd just like the members from group id 44 , to always be yellow in the chat, and the yellow custom color, would override the green color assigned for them when given chat mod permission.

I still want green for those I want to be "recognized" as chat mods, but this group ( 44 ) I don't want members knowing they're chat mods, and the green gives them away.



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 10, 2011, 06:29:34 AM
I'm not a php coder however my understanding of the logic of that code is that if a member is in group 44 and a moderator then it will hit the bit of code saying "elseif(allowedTo('chat_mod'))", execute that bit of code to become AJAX_CHAT_MODERATOR, but then will skip the next bit because it doesn't need an else.

How about putting the group 44 bit above the mod bit? In this case the group 44 people will execute the VIP code then skip the MODERATOR code.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on September 10, 2011, 05:50:09 PM
Quote from: Farjo on September 10, 2011, 06:29:34 AM
I'm not a php coder however my understanding of the logic of that code is that if a member is in group 44 and a moderator then it will hit the bit of code saying "elseif(allowedTo('chat_mod'))", execute that bit of code to become AJAX_CHAT_MODERATOR, but then will skip the next bit because it doesn't need an else.

How about putting the group 44 bit above the mod bit? In this case the group 44 people will execute the VIP code then skip the MODERATOR code.

I actually had the same theory that the code above was overwriting the chat_vip else statement.  I'll try it out and report back.  thanx again for being patient with me, and helping me through this process.  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 13, 2011, 06:07:52 AM
Hi all.
long time ago I asked this but never saw any reply to my post and can't find it now.
thought I would ask again...

on the shoutbox where you type before just before clicking the [shout] button to send your text
it's only about 2 inches long. where do I find the code for that so I can edit it to make it longer?

would make it allot better if everyone could see everything they write and re-read back over it before sending it.

cheers
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg571.imageshack.us%2Fimg571%2F7500%2Fshoutboxi.png&hash=1000c3a73a82f9cd07a1067ca4a9bdd8e548280f)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: marcoaureliocommodo on September 13, 2011, 02:21:48 PM
sorry, I ask you something?
This model also exists for the 2.0 version of smf? if not,  could you convert it?I unfortunately did not succeed
thank you very much
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 13, 2011, 02:42:09 PM
Quote from: techno489 on September 13, 2011, 06:07:52 AM
Hi all.
long time ago I asked this but never saw any reply to my post and can't find it now.
thought I would ask again...

on the shoutbox where you type before just before clicking the [shout] button to send your text
it's only about 2 inches long. where do I find the code for that so I can edit it to make it longer?

would make it allot better if everyone could see everything they write and re-read back over it before sending it.

cheers
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg571.imageshack.us%2Fimg571%2F7500%2Fshoutboxi.png&hash=1000c3a73a82f9cd07a1067ca4a9bdd8e548280f)
Hopefully someone more teckie will be able answer your question.


marcoaureliocommodo, the attached version will work on SMF 2.0 Gold.
Title: Re: AjaxChat Integration (latest version 3.2.2)
Post by: T3CHN0 on September 13, 2011, 09:26:53 PM
I had another good look around and found /chat/lib/template/shoutbox.html and made the change to /shoutBox/lib/template/shoutbox.html as well
I found by editing it with frontpage all I have to do is at the top of the page
about 10 lines down make this change

                            <div id="ajaxChatInputFieldContainer">
                                                <input id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" size="90"/>
                                                <input type="button" id="submitButton" value="Send" onclick="ajaxChat.sendMessage();" />
                                            </div>

the difference is the 2nd line (event);" size="90"/>
anymore then 90 makes the shoutbox a bit out of shape but a least there is about 5 inches to type in and not only 2 inches

I also changed <td width="40%"> to <td width="50%"> and the smiley's seem to sit a little better with the other edit.

I don't know if this is the correct way to do what I want and only suggest try it if you like but backup shoutbox.html
before having a play.

I posted my findings as to maybe it will help someone wanting to do the same thing.
if there is a better way!!!! I would like to know :)

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fobo on September 14, 2011, 05:24:25 AM
i'm using smf 2.0 installed sucess but if use browser Chrome and IE 7 chatroom smilei not found and user cant play chat
----------------------------------------------------

Sloved......... after reinstall again ............

thanks for this MOD
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digitalmikey on September 14, 2011, 02:51:47 PM
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?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digitalmikey on September 14, 2011, 04:34:51 PM
Also, no matter what I do I can not get the custom group I made to display the right color in the chat. Here is my current code, I've done everything stated in the link on the FAQS and still my custom group (COMMISSIONER) displays the color of my Moderator group. Any help please?

// Returns an associative array containing userName, userID and userRole
// Returns null if login is invalid
function getValidLoginUserData() {
global $context,$user_info;

$userData = array();
$userData['chat_access'] = allowedTo('chat_access');

      // Check if we have a valid registered user:
      if($userData['chat_access']) {
         if ($context['user']['is_guest'])
            return $this->getGuestUser($userData);
         else{   
            $userData['userID'] = $context['user']['id'];
               
            $userData['userName'] = $this->trimUserName($context['user']['name']);
     
            if($context['user']['is_admin'])
               $userData['userRole'] = AJAX_CHAT_ADMIN;
            elseif(allowedTo('chat_mod'))
               $userData['userRole'] = AJAX_CHAT_MODERATOR;
            else
            {
               // Check if we have a member of our custom user group
               if(in_array(11, $user_info['groups']))
                  $userData['userRole'] = AJAX_CHAT_COMMISSIONER;
               else
                  $userData['userRole'] = AJAX_CHAT_USER;
            }

         return $userData;
         }
      }else
         return null;
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CodeMonkey76 on September 15, 2011, 07:29:00 PM
One change I'd really like to see with this mod is to be able to have the 'Online Users' box list all of the online users, not just those in my channel.  I'd like it to list everyone and perhaps, after their name, list what channel they're in or group them by channel. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Paccman on September 16, 2011, 02:30:19 AM
My users can't log in the chat. And when I log in, whatever user or password I type in is fine.
Any idea why?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 16, 2011, 10:16:50 AM
Quote from: Paccman on September 16, 2011, 02:30:19 AM
My users can't log in the chat. And when I log in, whatever user or password I type in is fine.
Any idea why?

Have you looked at the permissions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on September 16, 2011, 02:23:24 PM
I have a problem where users get the "You can't access the chat." error - however, if they click on log in (the chat log in), they get in fine.

I have checked and double checked permissions - any ideas?

This seems to be intermittent.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 16, 2011, 05:32:47 PM
Digit what is the forums link?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digit on September 17, 2011, 07:36:17 PM
sent via pm.... I have it so only Charter Members can chat - and even for me - the admin - I sometimes get the log in screen instead of the chat window...  not sure if it's a cookie issue - or maybe a config issue.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 17, 2011, 08:06:09 PM
// Max time difference in hours for messages to display on each request:
$config['requestMessagesTimeDiff'] = 12;


If memory serves this is what to look for if you want the room to be empty when you enter.

Make sure you change it to 12 from 24.

Chat > lib> config.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on September 17, 2011, 10:43:33 PM
How can i automatically (redirect to) close the window when people logoff from the room?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 18, 2011, 10:04:03 PM
Quote from: digit on September 16, 2011, 02:23:24 PM
I have a problem where users get the "You can't access the chat." error - however, if they click on log in (the chat log in), they get in fine.

I have checked and double checked permissions - any ideas?

This seems to be intermittent.
I'm having the same problem, started yesturday but was working fine for the passed year... I don't understand why it stopped!!

shoutbox has been working fine, but now all I see is a blank shoutbox even if I type something and click shout nothing happens
but the chat button works fine and we all can still chat in the chat window.
I have uninstalled 3.2.1 and reinstalled the 3.2.2 but still the same.
installs are good, i even checked from the parser to make double sure
files permisions on all files are 755,
what next? what did I miss
Title: Re: AjaxChat Integration (latest version 3.2.2)
Post by: T3CHN0 on September 18, 2011, 11:59:05 PM
ok riddle me this


I changed theme to default and shoutbox works, change it back to my theme and it doesn't work.
only 2 files thats in my them related the this mod is
BoardIndex.template.php index.template.php
and both have the correct strings and both are set on permissions 755
so why doesn't it work on my theme now?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fobo on September 19, 2011, 03:22:43 AM
Hi ... problem same above too
after istalled succes the shoutbox not allow for user ( Admin Only can shout )
already installed shout.english.php but there is no change in appearance
in chat popup is work for user, any idea  for fix it ?
i have already search here (http://sourceforge.net/projects/ajax-chat/forums/forum/774131/topic/3053458?message=7352186) but not result for fix it  :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 20, 2011, 10:10:29 AM
Ok found my problem it is my index.template.php
I renamed it to index.template.php.bck to test and let the \default\index.template.php
run; my forum did load all bent out of shape and that was expected but now the shout box works.

I have looked at my i.t.php but can't find why it has a problem

my them is BlackRainV2 Version: 2.0 RC3 but my forum DB is 2.0

anyway I have added my index.template.php in the hope someone can have a look at it
and tell me what I have to edit to fix it.

cheers

P.S.

never mind :)
was looking between an old backup and the current install and ended up finding the problem


found

<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/glossy.js"></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/reflection.js"></script></head>   


changed it to
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/reflection.js"></head>

after making the change my shoutbox all works again.

I don't know why this is so and why it fixed it but can only think I had glossy.js installed but the file glossy.js must be missing.

At least next time if ever it happens again I will make sure to re-look inside the header fields
<head> check all stings inside the header </head>   

Posted my finding to maybe help others.

cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on September 20, 2011, 07:07:11 PM
Does this chat MOD work with version 2.01? I am sure that this has been asked before but I did not find anything in the search and I did not want to manually search 409 pages.  :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 20, 2011, 07:09:33 PM
Quote from: primetime on September 20, 2011, 07:07:11 PM
Does this chat MOD work with version 2.01? I am sure that this has been asked before but I did not find anything in the search and I did not want to manually search 409 pages.  :P

Look through the posts for version 3.2.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on September 20, 2011, 08:29:42 PM
Quote from: Brack1 on September 20, 2011, 07:09:33 PM
Quote from: primetime on September 20, 2011, 07:07:11 PM
Does this chat MOD work with version 2.01? I am sure that this has been asked before but I did not find anything in the search and I did not want to manually search 409 pages.  :P

Look through the posts for version 3.2.2

I put 3.2.2 in the search in this topic and it came up with 2 posts. Those posts dont actually state if this MOD works with 2.01. Can anyone give me a definitive answer if it works with 2.01 or not?

TIA,
Brock
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 20, 2011, 08:34:00 PM
*Cough*

That is the reason why I said to look for 3.2.2

I am using the mod on 2.0.1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: primetime on September 20, 2011, 09:03:47 PM
Quote from: Brack1 on September 20, 2011, 08:34:00 PM
*Cough*

That is the reason why I said to look for 3.2.2

I am using the mod on 2.0.1

Uhh Ok. Thank you for the answer.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on September 21, 2011, 12:22:50 AM
Quote from: PLAYBOY on September 17, 2011, 10:43:33 PM
How can i automatically (redirect to) close the window when people logoff from the room?

Anybody help?
Is it very hard to do?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 21, 2011, 05:27:55 AM
Playboy it's on here somewhere but I can't remember where, and I can't recall where I changed it either, but it looks like in chat/js/custom.js
ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()", 1);
}

I assume it was originally 0 and I've changed it to 1??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Donnie_K on September 21, 2011, 09:06:58 AM
Quote from: Brack1 on September 20, 2011, 08:34:00 PM
*Cough*

That is the reason why I said to look for 3.2.2

I am using the mod on 2.0.1

I downloaded it from post #8161 in this thread, and 2.0.1 is telling me it's corrupt and cannot install... how did you get it to work?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fobo on September 21, 2011, 09:25:13 AM
hi all
here http://www.simplemachines.org/community/index.php?topic=257973.8160 not resolve
so more problem >> Invalid argument supplied for foreach() in /home2/forumpa1/public_html/shoutBox/lib/class/AJAXChat.php on line 1461 <<< what i do for this ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 21, 2011, 09:27:43 AM
Try the attached version 3.2.2b - I haven't installed SMFv2.0.1 yet so cannot test it, therefore please ensure you have backed up your database and files.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: KidCactus on September 21, 2011, 12:23:21 PM
Is there an easy way to list the usernames that are logged into the chat?

Kind of like how this shows the number of people in the chat:

$num = count(chatOnlineUsers());
echo '<li', $current_action == 'chat' ? ' id="active"' : '', '><a href="/chat" target="_blank">' , $txt[993] ,' ', ($num > 0) ?  ('('.$num.')') : '' , '</a></li>';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on September 21, 2011, 01:12:58 PM
Quote from: Farjo on September 21, 2011, 05:27:55 AM
Playboy it's on here somewhere but I can't remember where, and I can't recall where I changed it either, but it looks like in chat/js/custom.js
ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()", 1);
}

I assume it was originally 0 and I've changed it to 1??

I couldnt find it. There is nothing in custom.js
I tried to find it in other js files within the same folder but i couldnt find it. Can you find the file for me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mlsred on September 21, 2011, 01:32:57 PM
Hi,

I installed this on 2.0.1 earlier and it worked fine in IE but was completely broken in Chrome i installed 3.2.2. I can't really leave it installed if it doesn't work in all browsers. Is there a fix for this?

Thanks
Michael
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 21, 2011, 02:00:33 PM
KidCactus, it shows the names under the list of people presently logged into the site...

Playboy, yes I remember now! Add that code to custon.js :)

mlsred, the version I uploaded contins the fix for Chrome - is this in Chat or Shout? What exactly does "completely broken" mean?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on September 21, 2011, 02:08:55 PM
Quote from: Farjo on September 21, 2011, 02:00:33 PM

Playboy, yes I remember now! Add that code to custon.js :)


I added this code
ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()", 1);
}
In custom.js
but it didint make any change. My chat opens in a seperate window (not popup but a seperate window in FF) and when i click on logoff, it just logsoff and doesnt close the window.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fobo on September 21, 2011, 02:27:27 PM
Quote from: Farjo on September 21, 2011, 09:27:43 AM
Try the attached version 3.2.2b - I haven't installed SMFv2.0.1 yet so cannot test it, therefore please ensure you have backed up your database and files.
after attached the mod like result below
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: KidCactus on September 21, 2011, 02:38:45 PM
Quote from: Farjo on September 21, 2011, 02:00:33 PM
KidCactus, it shows the names under the list of people presently logged into the site...
Awesome, thanks! :) Didn't realize this since it's not in the theme I use on my forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 21, 2011, 02:42:13 PM
Would you care to enlighten us as to the theme used and your forums link?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 21, 2011, 03:03:31 PM
Playboy, that's defo the answer, I looked it up! Would you please attach the file. Did you put it under the chat folder?

fobo, something has gone wrong with the installation as your screen shows "3.2.1 (modified for SMF2 RC3)"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 21, 2011, 03:06:44 PM
@ Farjo

I downloaded the attachment you supplied.

It would not install on my test forum.

(Didn't show as a zipped folder).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 21, 2011, 03:11:00 PM
Thank you :) I will sort it asap.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 21, 2011, 04:32:26 PM
(Didn't show as a zipped folder) - would you please explain what this means as it is OK when I try on a new 2.0.1, ta.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on September 21, 2011, 05:24:48 PM
QuotePlayboy, that's defo the answer,

What is defo?

Below is the content of public_html/forum/chat/js

/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/

// Overriding client side functionality:

/*
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
return text;
}
*/

ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()", 1);
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 21, 2011, 06:16:42 PM
defo is definitely, which I couldn't be bothered to type out in full (sorry).

See here: http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Close_chat_window_on_logout
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 21, 2011, 06:18:45 PM
Farajo

The packages usually show on a pc as a zipped folder image.

The 3.2.2b one didn't.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 21, 2011, 06:26:39 PM
Brack1 maybe something went wrong when it was downloaded to your PC, because I've just downloaded it and it looks OK and opens normally.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fobo on September 21, 2011, 07:44:02 PM
Quote from: Farjo on September 21, 2011, 03:03:31 PM
Playboy, that's defo the answer, I looked it up! Would you please attach the file. Did you put it under the chat folder?

fobo, something has gone wrong with the installation as your screen shows "3.2.1 (modified for SMF2 RC3)"
i have using 3.2.2 for smf 2.0 default thme, since intalled success chat room work fine and  problem shoutbox only  ( no sound for admin and user cannot  found of  smiley icon and  to shout )  ??? i hope suggest for fix this  :laugh:
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 21, 2011, 08:05:21 PM
fobo, I don't understand. Why does the package manager say 3.2.1? When did you get that error - every time you use that screen or when you were installing 3.2.2b?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 21, 2011, 08:09:31 PM
AjaxChat Integration    3.2.1 (modified for SMF 2 RC3)

This is what is stated for the version in the package manager.

FYI I have 3.2.2a installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fobo on September 22, 2011, 02:05:05 AM
Quote from: Farjo on September 21, 2011, 08:05:21 PM
fobo, I don't understand. Why does the package manager say 3.2.1? When did you get that error - every time you use that screen or when you were installing 3.2.2b?
My first use of MOD  3,2,2, then the problem on the shoutbox which users can not use the shoutbox as you have seen, then I tried the version 3.2.2b, then the problem arises as in the screen shoot, , so i get that error science first installed the MOD 3.2.2, i hope you can give me solution ... thanks

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on September 22, 2011, 02:23:48 AM
Quote from: Farjo on September 21, 2011, 06:16:42 PM
defo is definitely, which I couldn't be bothered to type out in full (sorry).

See here: http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Close_chat_window_on_logout

yeah i think it works in every browser except ff because its doesnt open as a popup in ff.
Thx though. Helped a lot.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 22, 2011, 09:02:27 AM
Quote
yeah i think it works in every browser except ff because its doesn't open as a popup in ff.
Thx though. Helped a lot.

Nar I think it depends on your theme, mine now works with ff the best, ok with Opera and IE9
but always connections problems with Google Chrome.
Not only ShoutBox and Chat window but other things in my theme as well Chrome always has problems
Avatars not showing, posts not posting and more....
so yeah to me I would say depends on theme ""or"" maybe hosts
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on September 25, 2011, 04:25:10 PM
Quote from: Farjo on September 21, 2011, 05:27:55 AM
Playboy it's on here somewhere but I can't remember where, and I can't recall where I changed it either, but it looks like in chat/js/custom.js
ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()", 1);
}

I assume it was originally 0 and I've changed it to 1??

This script doesnt log you off. It just closes the popup but you still appear in the chatroom. Or is there like a time set limit or something? Because it was logging me off before i added the above script. Now it just closes the window before log me off.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 25, 2011, 06:18:57 PM
My impression is that it only calls that script when someone is logging off :-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on September 25, 2011, 10:03:04 PM
Quote from: Farjo on September 25, 2011, 06:18:57 PM
My impression is that it only calls that script when someone is logging off :-\

So? What do you think i should do?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 26, 2011, 06:00:34 AM
Follow that link and see if they can provide the answer.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Perspective on September 26, 2011, 04:43:46 PM
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 NEWS about it, Hunter ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fobo on September 28, 2011, 02:02:33 AM
ohooow my problem SLOVED mod 3.2.2b after using update SMF2.0.1 .........

Title: weather widget conflict with AjaxChat Integration java script swfobject.js
Post by: T3CHN0 on September 28, 2011, 05:43:10 AM
has anyone had this problem, I had a look around but can't find anything..
chat loads fine everything looks ok but when clicking on text box to typeI get an error; but if I say ok to the error and I can still chat and only happens
after refreshing the page.

what happen, to why i am getting this error
I installed a new weather mod, "not from smf" ''but would be nice to have one for smf''
to show on my forum you can have a look and download it (http://www.flashxml.net/weather-widget.html)

it's when I have the java script from this mod running is when I get the error from firefox and google chrome
but shoutbox works fine with internet explorer "no error", makes no sense

remove the java script command from this mod and chat works fine again with no error
but when I add the script back again the chat/shoutbox has this error

the mod I am adding works fine but it somehow conflict's with my shoutbox/chat

the errors are

firefox error
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg38.imageshack.us%2Fimg38%2F1503%2Ffirefoxerror.png&hash=eedd78e2191cc3e988d32f0778c2c0acb3f7085b)

google chrome error
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg263.imageshack.us%2Fimg263%2F9576%2Fchromeerror.png&hash=2977d94b2a2f9369d90aeea93834b943c3031642)

what do the errors mean?
do I need to add or remove a string command from the shoutbox java scripts  ?

cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fobo on September 28, 2011, 08:29:05 AM
@techno489

before i have same problem like you ..... problem resolved after uinstall another mod like > ad managmen, spoiller, stop forum spam, and i tried re instal ajaxchat and re install all mod again and update from smf 2.0 to 2.0.1 .. shoutbox work fine  :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 28, 2011, 09:17:16 AM
Quote from: fobo on September 28, 2011, 08:29:05 AM
@techno489

before i have same problem like you ..... problem resolved after install another mod like > ad managmen, spoiller, stop forum spam, and i tried re install ajaxchat and re install all mod again and update from smf 2.0 to 2.0.1 .. shoutbox work fine  :D
that's a good idea if only a few mods installed. but I have 89 mods installed and about another 20 still to work on. :)
I'm not about to go back and do them all over again... it must be a java script error but were
in Ajax chat or in weather

this file swfobject.js is what is needed for the weather to work but chat makes the error's. if I rename it
to swfobject.js.old then weather stops working and chat is good again I have download swfobject.js
from a number of sites and also tried using another sited url something like www.othersite.com/js/swfobject.js (http://www.othersite.com/js/swfobject.js)
and same thing, weather will work bit chat error's.

this leads me to think the problem must be an ajaxchat problem it conflicts with swfobject.js
if anyone knows of another .js file that will work a .swf file please let me know and i will try.

cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 28, 2011, 09:29:59 AM
Only a guess but perhaps there is a function in swfobject.js that also exists in one of this mod's js files, and the weather version is being found before the chat version.

Discussing whether it's weather or chat's fault is futile - it is more relevant to decide from which mod you will get the better support, and you will probably need help from both camps.

Is the weather mod more supported than this one? I.e. does the author still provide support? Which weather mod is it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 28, 2011, 09:38:18 AM
i would believe so as well, there is a shared function. yes I am already on there getting support as well.
and when i find the answere i will be sure to post the FIX here
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 28, 2011, 09:46:59 AM
Looking at the link you provided before there is only one js function but cannot tell if it has a name:

var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();


I cannot find a function named 'swfobject' :\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 28, 2011, 10:00:46 AM
Hi Farjo

the java file is called swfobject.js I included the file to download.
I paid for this mod so there is no advertisements but will send to you
the full download of the mod via pm if you are able to help me out..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 28, 2011, 10:23:42 AM
Hi, would like to but it's beyond my techy ability. I downloaded the mod and looked at that file and the only function I could find is the one I pasted above.

I.e. the only function in the weather mod is named swfobject; there is no call to swfobject in the chat mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 28, 2011, 10:32:07 AM
ok thanks for you help all the same, if you looked in that mod download you would see a index.html file
I think thats the only place then calls for the js file. I have put both parts of the index file in my
index.template.php and it works apart from giving chat that error. I also looked at the chat mod
but it calls it's own js files and nothing by the same name...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PsychoticHorticulture on September 29, 2011, 04:45:40 PM
Having trouble installing the latest version of this mod (the one posted a few pages back for 2.0) into on a skin on my board. Two errors, one in the BoardIndex.template.php and one in the index.template.php.

For BoardIndex.template.php
Code (find) Select
echo ' </p> <p class="last smalltext">

Code (add before) Select
// users in chat if (isset($context['chat_links'])){ if (count($context['chat_links']) == 0 )  echo '<br />' . $txt['chat_no_user']; elseif (count($context['chat_links']) == 1 )  echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']); else  echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);  }


For index.template.php:
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>'; }


Searched this thread, don't have the time to run through it and see exactly how people fixed this because i noticed that others have had the same problems. Any and all help is appreciated.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: niires1204 on September 30, 2011, 12:48:55 AM
please update for version 2.0.1 please
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fobo on September 30, 2011, 12:14:16 PM
Quote from: niires1204 on September 30, 2011, 12:48:55 AM
please update for version 2.0.1 please
here link of update 2.0.1 ( get 3.2.2b) http://www.simplemachines.org/community/index.php?topic=257973.8180 by Farjo
Title: Re: weather widget conflict with AjaxChat Integration java script swfobject.js
Post by: T3CHN0 on September 30, 2011, 12:15:35 PM
Quote from: techno489 on September 28, 2011, 05:43:10 AM

the mod I am adding works fine but it somehow conflict's with my shoutbox/chat
the errors are

firefox error
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg38.imageshack.us%2Fimg38%2F1503%2Ffirefoxerror.png&hash=eedd78e2191cc3e988d32f0778c2c0acb3f7085b)

google chrome error
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg263.imageshack.us%2Fimg263%2F9576%2Fchromeerror.png&hash=2977d94b2a2f9369d90aeea93834b943c3031642)


Hello Farjo
I got a reply from the weather wiget  mod creator to try this script and now all works with no error when chatting
might help others to try it out if ever they get the same kind of error.
Thankyou for all your support mate

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="600" height="300" id="Flash" align="middle">
<param name="movie" value="    your folder path/ your swf file.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="scale" value= "noscale" />
<param name="salign" value="tl" />
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="flashvars" value="    your folder path/">
<embed src="    your folder path/ your swf file.swf" scale="noscale" quality="high" bgcolor="#ffffff" width="600" height="300" name="Flash" align="middle" allowScriptAccess="always" allowFullScreen="false" salign="tl" flashvars="    your folder path/" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>

You'll need to change the paths to the SWF file and the folderPaths according to your own location of the files.

Change the width="600" height="300" to width="0" height="0"  if you get a big white box as well
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on September 30, 2011, 02:05:49 PM
Well done sir!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ~J~ on September 30, 2011, 02:34:51 PM
need a lil help finding a piece of code in my index.template.php file for my inferno theme for the ajaxChat I'm having trouble finding this part of code

QuoteCode: (Find) [Select]

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


can someone please tell me what line & column this part of code is in so I can finish
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 30, 2011, 02:51:47 PM
Quote from: ~J~ on September 30, 2011, 02:34:51 PM
need a lil help finding a piece of code in my index.template.php file for my inferno theme for the ajaxChat I'm having trouble finding this part of code

QuoteCode: (Find) [Select]

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


can someone please tell me what line & column this part of code is in so I can finish

this bit of code might help you find were your looking to place the chat string
        // Are there any members waiting for approval?
        if (!empty($context['unapproved_members']))
            echo '
                    <li>', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '</li>
                    <hr>
                    <div align="center"><a href="'.$scripturl.'?action=profile">'.$txt['your_profile'].'</a> | <a href="'.$scripturl . '?action=markasread;sa=all;sesc=' . $context['session_id'],'">'.$txt['mark_as_read'].'</a> | <a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt['logout'] , '</a></div>
                    <b>'.$txt['my_stats'].':</b><br />
                    &raquo; '.$txt['you_have'].' <b>'.$user_info['posts'].'</b> '.$txt[21].'<br />                           
                    &raquo;';

        if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
            echo '
                    <li><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';
   
        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>';
        }
        echo '
                    <li>', $context['current_time'], '</li>
                </ul>';
    }
    // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ~J~ on September 30, 2011, 02:56:08 PM
thanks a lot I'll give it a try been at this for 2hrs with no progress
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 30, 2011, 03:03:58 PM
remember the code I gave is from my php file and might not be the same as yours
but the main part you want to look for is this


        }
        echo '
                    <li>', $context['current_time'], '</li>
                </ul>';
    }
    // Otherwise they're a guest - this time ask them to either register or login - lazy bums...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ~J~ on September 30, 2011, 03:09:16 PM
*uhh* mine doesn't have that here's mine

Quote// If the user is logged in, display stuff like their name, new messages, etc.
            if ($context['user']['is_logged'])
            {
               if (!empty($context['user']['avatar']))
               echo '
                  <p class="avatar">', $context['user']['avatar']['image'], '</p>';
               echo '
                  <ul class="reset">
                     <li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
                     <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
                     <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';
         
               echo '
                  </ul>';
               }
               // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
               else
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on September 30, 2011, 09:25:55 PM
OK sweet, so you only need to find


        echo '

                </ul>';
    }
    // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
and replace it with

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

                </ul>';
    }
    // Otherwise they're a guest - this time ask them to either register or login - lazy bums...


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Tejan on September 30, 2011, 09:59:16 PM
So I tried installing the latest version that Farjo posted however I'm getting an error during the install saying it's getting issues on "index.template.php". Anyone have any ideas on how I can fix this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ~J~ on October 01, 2011, 12:25:26 AM
Quote from: techno489 on September 30, 2011, 09:25:55 PM
OK sweet, so you only need to find


        echo '

                </ul>';
    }
    // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
and replace it with

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

                </ul>';
    }
    // Otherwise they're a guest - this time ask them to either register or login - lazy bums...


I did that just now when to install & noticed this

Quote1.    Replace    ./Themes/inferno_20rc3/index.template.php    Test successful
      2.    Add Before    ./Themes/inferno_20rc3/index.template.php    Test failed

installed it anyway & got a chat bot 500 error
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 01, 2011, 12:56:15 AM
upload your index.template.php and i will have a look at it for you

but if this if your code
// If the user is logged in, display stuff like their name, new messages, etc.
            if ($context['user']['is_logged'])
            {
               if (!empty($context['user']['avatar']))
               echo '
                  <p class="avatar">', $context['user']['avatar']['image'], '</p>';
               echo '
                  <ul class="reset">
                     <li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
                     <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
                     <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';
         
               echo '
                  </ul>';
               }
               // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
               else


change it to this
// If the user is logged in, display stuff like their name, new messages, etc.
            if ($context['user']['is_logged'])
            {
               if (!empty($context['user']['avatar']))
               echo '
                  <p class="avatar">', $context['user']['avatar']['image'], '</p>';
               echo '
                  <ul class="reset">
                     <li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
                     <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
                     <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';
         

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

               echo '
                  </ul>';
               }
               // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
               else
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fobo on October 01, 2011, 05:32:58 AM
hi all .... how to display the buttons  image, url etc to Shoutbox like in the chat room ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ~J~ on October 01, 2011, 09:27:12 AM
Quote from: techno489 on October 01, 2011, 12:56:15 AM
upload your index.template.php and i will have a look at it for you

but if this if your code
// If the user is logged in, display stuff like their name, new messages, etc.
            if ($context['user']['is_logged'])
            {
               if (!empty($context['user']['avatar']))
               echo '
                  <p class="avatar">', $context['user']['avatar']['image'], '</p>';
               echo '
                  <ul class="reset">
                     <li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
                     <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
                     <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';
         
               echo '
                  </ul>';
               }
               // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
               else


change it to this
// If the user is logged in, display stuff like their name, new messages, etc.
            if ($context['user']['is_logged'])
            {
               if (!empty($context['user']['avatar']))
               echo '
                  <p class="avatar">', $context['user']['avatar']['image'], '</p>';
               echo '
                  <ul class="reset">
                     <li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
                     <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
                     <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';
         

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

               echo '
                  </ul>';
               }
               // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
               else


here it is man maybe you can figure out what I'm doing wrong
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 01, 2011, 12:13:13 PM
Ok try this one ~J~
Works for me

corrections made
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ~J~ on October 01, 2011, 04:46:10 PM
Quote from: techno489 on October 01, 2011, 12:13:13 PM
Ok try this one ~J~
Works for me

corrections made
I just tried it & still got errors see attachment
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 02, 2011, 12:28:19 AM
error connection 500 is in the FAQ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) answers, have you had a look there!!!
but first make sure in your /chat/ and /shoutbox/ both index.php permissions are set on 755

I can see your template is working as is shows the box, just not the chat apart from error message
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ~J~ on October 02, 2011, 10:57:41 AM
I looked there & did what it suggested & still got the 500 error I even went 1 step further & after the cmod 755 didn't work tried the 777 & still nothing so now I don't know what to do
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 02, 2011, 11:38:29 AM
OK without actually being an administrator to your site I can't help any more but you can try this.
admin>Modification Settings>chat

tick the following

Enable the ShoutBox?
check for ShoutBox on any page or uncheck for only in
index page: 
Integrate shout box and chat room? 
chat in popup page?

leave the last 2 unticked

I once had a problem when only wanting to use shoutbox nothing would work
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ~J~ on October 02, 2011, 12:09:54 PM
making progress now get rid of the error with your tip but now when I went to do a test shout & clicked shout it didn't show up  & I went to faqs for that & things look right
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 02, 2011, 05:34:22 PM
im using SMF 2.0.1 and using the insidious template.i want a group chat on my forum how do i do this?i also already have SA Chat Beta 3 Rev40,but i also want a group chat on my forums.

every time i try to install the ajax(AChat_0_2_1.zip),or(Mibbit Ajax IRC Chat) , or (AjaxChat Integration) ,i get this message:Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

i cant install any of the ajax chats.i dont understand,i even uninstalled all other chats i had on my forum and im still getting this message.PLEASE HELP.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 02, 2011, 05:47:38 PM
i can see that im being ignored..this SMF support sucks big time..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: outlawsys on October 02, 2011, 05:53:55 PM
« Reply #8247 on: Today at 05:34:22 PM »

« Reply #8248 on: Today at 05:47:38 PM »
i can see that im being ignored..this SMF support sucks big time..


Because you didn't get a reply in 13 minutes??? Seriously..CALM DOWN. If you are going to act like that after waiting all of 13 mins., why would anyone WANT to help you?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 02, 2011, 06:05:01 PM
man i have been waiting all morning.ive been waitng in this room for 13 minutes,but been waiting all morning long on the whole site.,ive been told go here go there,im in the wrong room or something,every where i go im not getting any answers and all the old post about this subject isnt help full cause its all out dated info..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Ozzie on October 02, 2011, 06:13:23 PM
you cannot expect a answer straight away ,first things first  all help here is done by voluntary people and secondly people can only answer your question if they know the solution and the person/persons who may have that info may not be on line you cannot expect people to be at your beck and call

Have some Patience
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 02, 2011, 07:43:25 PM
Quote from: Ozzie on October 02, 2011, 06:13:23 PM
you cannot expect a answer straight away ,first things first  all help here is done by voluntary people and secondly people can only answer your question if they know the solution and the person/persons who may have that info may not be on line you cannot expect people to be at your beck and call

Have some Patience
o.k. thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 02, 2011, 08:47:49 PM
Quote from: krash661 on October 02, 2011, 05:47:38 PM
i can see that I'm being ignored..this SMF support sucks big time..
mate not everyone has the time to sit at there computer waiting for the next person with a problem.
we all do what we can to help, you might want to take the time to learn how to install a mod on a custom
theme first. have a read of this "Manual Installation of Mods" (http://docs.simplemachines.org/index.php?topic=402) every mod where you download from has
a parser and all you have to do is work with it and make the edits your self on the custom theme.
after you have done this walk through then come back and ask your question and explain what your error is
Cheers

P.S.
~J~ happy to hear you got it sorted buddy,.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 03, 2011, 02:31:21 AM
Quote from: krash661 on October 02, 2011, 05:47:38 PM
i can see that im being ignored..this SMF support sucks big time..

This mod will not work if another chat mod is installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 03, 2011, 03:45:04 AM
QuoteThis mod will not work if another chat mod is installed.
Yes it will, I use EzPortal chat and this mod, both work well together.
Don't know about other chat mods but just to point out it will work with at least one I know of.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 03, 2011, 09:58:49 AM
Quote from: Brack1 on October 03, 2011, 02:31:21 AM
Quote from: krash661 on October 02, 2011, 05:47:38 PM
i can see that im being ignored..this SMF support sucks big time..

This mod will not work if another chat mod is installed.
"i even uninstalled all other chats i had on my forum and im still getting this message.PLEASE HELP.""
                  hmmm. i could of sworn i wrote this in my message.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 03, 2011, 10:42:13 AM
Quote from: T3CHN0 on October 02, 2011, 08:47:49 PM
Quote from: krash661 on October 02, 2011, 05:47:38 PM
i can see that I'm being ignored..this SMF support sucks big time..
mate not everyone has the time to sit at there computer waiting for the next person with a problem.
we all do what we can to help, you might want to take the time to learn how to install a mod on a custom
theme first. have a read of this "Manual Installation of Mods" (http://docs.simplemachines.org/index.php?topic=402) every mod where you download from has
a parser and all you have to do is work with it and make the edits your self on the custom theme.
after you have done this walk through then come back and ask your question and explain what your error is
Cheers

P.S.
~J~ happy to hear you got it sorted buddy,.
o.k.,i went here.im new at this stuff,i dont understand.from what i gathered from this is that i have to revise the mod's code?:"or because the mod you are attempting to install is for a different version of the file(s)."

and also,:"You can still try to install the mod, but you will have to MANUALLY make changes to the "failed" files.

If you click on the EDIT icon to the left of the instruction which failed, a pop-up will be generated indicating the specific instruction (the code being looked for and the code to be added or replace).

Take note of these instructions (if there is more than one failure, copy each instruction to a text editor for later use.) and click the Install Now button. You will receive a warning that the mod will not fully install, click OK.

At this point, your mod is mostly installed (depending on the number of failures).

Now, using an FTP program or your site's file manager, open and edit the files in which the system had noted failures. "

..where do i get these codes to change this and where is this FTP?,remember im new at this and dont understand where to go or what exactly to do.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on October 03, 2011, 06:29:44 PM
I've had the same problem with 2.01.

I've installed it by emulating the RC3 version of SMF (in package manager, click on advanced en set 2.01--> 2.0 RC3)
It will still install poorly, with fails, but if you follow the parser for 2.0 RC3, you will see it works. You're missing files, like I did ;)
http://custom.simplemachines.org/mods/index.php?action=parse   --> at the bottom of the page you will find where to put the files you have.

But now my problem. It works fine, however, only for me as Admin.
When I change the permissions of other groups and set them to view/use chat & shout, they only see an empty shoutbox, with no text, and they can't shout.
If they use the Chat-button, it opens a new window with the index page of the forum, but no chat.

I followed through the parser twice, checking every letter, no effect.
In desperation, I tried the tip I found on page 309, also no effect.

I have a feeling it is something pretty simple, but I can't find it. Anybody know the answer to this one?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 03, 2011, 06:31:50 PM
Please list the mods used on your forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on October 03, 2011, 07:08:17 PM
Oops, sorry.

Custom Board sort
Portamx 1.41 (Also installed with fails, but this is fixed through parser, works fine now)
Ajaxchat integration (offcourse)
Hidetag Special
Theme: Ambassador
Language Dutch UTF8/ Dutch Iso

The reason why is specify the language so much is because this new languagepack gave me problems before.
In fact, I realize now I didn't try to set English as standard.
It's a longshot, but I'll try anyway ;)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 03, 2011, 07:12:11 PM
Quote from: MiY4Gi on August 19, 2011, 09:26:57 PM
Aha. It's portamx's SEF urls that's causing the problem. I just switched SEF off, and now chat is working exactly how it should.

See if this persons result helps you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on October 03, 2011, 07:25:44 PM
That's a quick respons :D

I tried both, standard english en simplesef turned of, and it works fine now. I've been trying for 3 hours to fix it, read over a 100 pages of this topic,
and it's something simple as this! Just my luck :D

My guess would be the Simplesef was the problem.
Thanks a lot for the quick and great advise!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: outlawsys on October 03, 2011, 08:49:15 PM
Just a wild stab, but if SimpleSEF uses mod_rewrite (I'm guessing so) its probably NOT rewriting to the "chat page" [ie the forum is trying to load [cause of SimpleSEF] say site.com/chatbox/      but mod_rewrite isn't setup to rewrite site.com/chatbox to actually goto site.com/index?chatbox   ,ect...properly,] someone more experianced with this mod should check SimpleSEF and modifications to .htaccess it makes, probably a simple fix to have it rewrite /chatbox/ or whatever to index.php?chatbox ect...   Just my 2 cents, having noticed several mods have some issues like that, but with minor .htaccess Mod_rewrite modifications, is an easy fix.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 03, 2011, 09:10:02 PM
Quote from: MrNicotine on October 03, 2011, 06:29:44 PM
I've had the same problem with 2.01.

I've installed it by emulating the RC3 version of SMF (in package manager, click on advanced en set 2.01--> 2.0 RC3)
It will still install poorly, with fails, but if you follow the parser for 2.0 RC3, you will see it works. You're missing files, like I did ;)
http://custom.simplemachines.org/mods/index.php?action=parse   --> at the bottom of the page you will find where to put the files you have.

But now my problem. It works fine, however, only for me as Admin.
When I change the permissions of other groups and set them to view/use chat & shout, they only see an empty shoutbox, with no text, and they can't shout.
If they use the Chat-button, it opens a new window with the index page of the forum, but no chat.

I followed through the parser twice, checking every letter, no effect.
In desperation, I tried the tip I found on page 309, also no effect.

I have a feeling it is something pretty simple, but I can't find it. Anybody know the answer to this one?
o.k thanks,I'll look for another chat.thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tatkyatgyi on October 04, 2011, 02:12:50 PM
I want to see the members in our ajax chat room ( integrated in SMF  ) with their respective member group color.
Is it easy to do it?

our forum is SMF ver 1.1.15
ajax chat ver 3.2.1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 04, 2011, 02:16:00 PM
Quote from: tatkyatgyi on October 04, 2011, 02:12:50 PM
I want to see the members in our ajax chat room ( integrated in SMF  ) with their respective member group color.
Is it easy to do it?

our forum is SMF ver 1.1.15
ajax chat ver 3.2.1

Er

As I have previously stated in the other TWO topics you started this cannot be done.

The only membergroups which have colour are Admin and Mods
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tatkyatgyi on October 04, 2011, 04:04:33 PM
I saw it Brack1, and thanks.

Sorry about my multi-posts because I am not sure where is the right place to ask.

I already knew that mod can't do that. On my forum the Admin and Mod only shown their color (in my chat Red and Green respectively ).
I am a admin of our forum and my members requested to me that they want to see the gender group (male or female ) with different color.
That is why I am searching , can I do changing the code somewhere. that's all.

Thanks anyway.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Connor Macleod on October 04, 2011, 06:01:39 PM
Quote from: MrNicotine on October 03, 2011, 06:29:44 PM
I've had the same problem with 2.01.

I've installed it by emulating the RC3 version of SMF (in package manager, click on advanced en set 2.01--> 2.0 RC3)
It will still install poorly, with fails, but if you follow the parser for 2.0 RC3, you will see it works.

I'm not an expert user and I prefer mods that install without any red warnings, without having to do any manual code manipulation. I'm happy to wait and I don't want to nag on anybody, since you're all voluntary and all that. Respect.

As I see there are quite a few issues with trying to use this chat on SMF 2.0.1. So my question is simply if there are plans to make an update for that version?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 04, 2011, 06:03:32 PM
This is the mod which has that ability.

However please read my previous reply.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 04, 2011, 06:04:12 PM
@Vegster you do realise the mod already works on 2.0.1??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digitalmikey on October 04, 2011, 08:28:31 PM
Quote from: Brack1 on October 04, 2011, 02:16:00 PM
Quote from: tatkyatgyi on October 04, 2011, 02:12:50 PM
I want to see the members in our ajax chat room ( integrated in SMF  ) with their respective member group color.
Is it easy to do it?

our forum is SMF ver 1.1.15
ajax chat ver 3.2.1

Er

As I have previously stated in the other TWO topics you started this cannot be done.

The only membergroups which have colour are Admin and Mods

Is this entirely true? There is no code I can edit or something to add another group color? If so, this is a major deal-breaker for me.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 04, 2011, 08:31:28 PM
I looked into it when I used version 1.1.8 (I never used 1.1 after this)

The function can be done on phpbb (apologies for the swearing)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: digitalmikey on October 05, 2011, 09:20:13 AM
Can someone please help me out with getting a custom usergroup to recognize in the chat? This post (http://www.simplemachines.org/community/index.php?topic=257973.msg2621113#msg2621113) does not work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Connor Macleod on October 05, 2011, 09:40:25 AM
Thanks a lot for spending your spare time on this!

Quote from: Brack1 on October 04, 2011, 06:04:12 PM
@Vegster you do realise the mod already works on 2.0.1??

Quote from: Brack1 on October 04, 2011, 06:03:32 PM
This is the mod which has that ability.

Good! Could you update the mod page with this info?

http://custom.simplemachines.org/mods/index.php?mod=1319

Quote from: Brack1 on October 04, 2011, 06:03:32 PM
However please read my previous reply.

Do you mean this?

Quote from: Brack1 on October 03, 2011, 07:12:11 PM
Quote from: MiY4Gi on August 19, 2011, 09:26:57 PM
Aha. It's portamx's SEF urls that's causing the problem. I just switched SEF off, and now chat is working exactly how it should.

See if this persons result helps you.

I am not an expert and not sure how to do that, or even if I have this. I use the Argentum2 theme and some other mods, but nothing called "portamx". I know what SEO means, but SEF is an abbreviation I don't know. Sorry for being an ignoramus!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 05, 2011, 10:28:45 AM
Quote from: Brack1 on October 04, 2011, 06:04:12 PM
@Vegster you do realise the mod already works on 2.0.1??
ahh,are you sure?,i cant even get it installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 05, 2011, 11:44:06 AM
Quote from: krash661 on October 05, 2011, 10:28:45 AM
Quote from: Brack1 on October 04, 2011, 06:04:12 PM
@Vegster you do realise the mod already works on 2.0.1??
ahh,are you sure?,i cant even get it installed.

I wouldn't be using it otherwise.

Where are you downloading the mod from?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Connor Macleod on October 05, 2011, 04:25:18 PM
Quote from: Brack1 on October 05, 2011, 11:44:06 AM
Where are you downloading the mod from?

Quote from: vegster on October 05, 2011, 09:40:25 AM
http://custom.simplemachines.org/mods/index.php?mod=1319

The reason I was pretty sure it didn't work on 2.0.1. isn't just that it is not listed among the compatible version numbers on the download page (link above), but also that if I click on "Parse" for manual install on 2.0.1 I get an explicit message that it is NOT compatible. Therefore I didn't try installing it.

But without having tried it, I think this probably can be better than the option which I have tried meanwhile - SideSparks Chat - which doesn't have the "SMF look and feel", and also requires a separate login the first time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 05, 2011, 06:09:55 PM
If you see a compatible message you need to emulate the version.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Heeks on October 06, 2011, 02:10:03 AM
I just installed the mod modified here : http://www.simplemachines.org/community/index.php?topic=257973.msg3166086#msg3166086

It works fine with 2.0.1 Thx a lot guys ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 06, 2011, 08:56:51 PM
Quote from: Brack1 on October 05, 2011, 11:44:06 AM
Quote from: krash661 on October 05, 2011, 10:28:45 AM
Quote from: Brack1 on October 04, 2011, 06:04:12 PM
@Vegster you do realise the mod already works on 2.0.1??
ahh,are you sure?,i cant even get it installed.

I wouldn't be using it otherwise.

Where are you downloading the mod from?
from here
http://custom.simplemachines.org/mods/index.php?mod=1319
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 06, 2011, 09:14:05 PM
krash661

The mods on the link are old versions and will not work on 2.0.1

The latest version is somewhere on the previous pages of the mod within the posts.
Title: Re: AjaxChat Integration (latest version 3.2.2B)
Post by: T3CHN0 on October 06, 2011, 10:25:24 PM
this link is on other pages but thought I would re-post it. you can Download 3.2.2B from here AjaxChat Integration (latest version 3.2.2B) (http://www.simplemachines.org/community/index.php?action=dlattach;topic=257973.0;attach=187268)
works with 2.0 RC3 up to 2.0.1.. I have installed this on RC3, RC4, 2.0 and 2.0.1...
apart from the small custom theme edits and the .htaccess edits in the root directory shoutbox and chat folders.... Ajax Chat  works very good.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 07, 2011, 05:38:48 PM
techno, i tried that link and this is what i got
An Error Has Occurred!
The package manager currently allows only these file types: zip, tgz, tar.gz.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 07, 2011, 05:45:33 PM
Quote from: krash661 on October 07, 2011, 05:38:48 PM
techno, i tried that link and this is what i got
An Error Has Occurred!
The package manager currently allows only these file types: zip, tgz, tar.gz.

A lot of mods are giving this error lately.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 07, 2011, 06:04:34 PM
Quote from: Brack1 on October 07, 2011, 05:45:33 PM
Quote from: krash661 on October 07, 2011, 05:38:48 PM
techno, i tried that link and this is what i got
An Error Has Occurred!
The package manager currently allows only these file types: zip, tgz, tar.gz.

A lot of mods are giving this error lately.
so how do i fix it,do i need another ajax chat or something installed already for this ajax integration install to work?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on October 08, 2011, 06:21:01 PM
The file you downloaded is simply "Ajaxchat" with no extension, so SMF doesn't recognize it as a zip-file. Simply rename the file through properties of the file to Ajaxchat.zip.
Then it will be accepted by your packagemanager
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on October 08, 2011, 06:28:56 PM
And now a question of my own ;)
I made new membergroups in SMF, but I have problems with changing their colors in chat.
I've added them in \chat\css\shoutbox.css with colors, fonts etc, but that doesn't work.
The color doesn't change.
Do I have to make a reference in another file for these groups?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 08, 2011, 06:31:33 PM
Quote from: Brack1 on October 04, 2011, 02:16:00 PM
Quote from: tatkyatgyi on October 04, 2011, 02:12:50 PM
I want to see the members in our ajax chat room ( integrated in SMF  ) with their respective member group color.
Is it easy to do it?

our forum is SMF ver 1.1.15
ajax chat ver 3.2.1

Er

As I have previously stated in the other TWO topics you started this cannot be done.

The only membergroups which have colour are Admin and Mods

This may answer your question.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on October 08, 2011, 06:51:52 PM
It does hahaha
Thanks, I see I could have looked this up myself. Sorry for the inconvenience ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 09, 2011, 01:29:53 PM
Quote from: MrNicotine on October 08, 2011, 06:21:01 PM
The file you downloaded is simply "Ajaxchat" with no extension, so SMF doesn't recognize it as a zip-file. Simply rename the file through properties of the file to Ajaxchat.zip.
Then it will be accepted by your packagemanager
OMG,it worked,thanks so much..
but theres still some minor details.as admin it works fine,but as user i go to log in the chat and i get this message:* Registered Users
You can't access the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GlitchPC on October 09, 2011, 01:52:34 PM
Trying to get the latest version of this mod within this topic...however, the file that's zipped is of the following file type:  application/octet-stream

It is not compatible with SMF 2.0.1 and fails on install.

Does anyone have a compatible version for SMF 2.0.1?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 09, 2011, 01:57:03 PM
Quote from: GlitchPC on October 09, 2011, 01:52:34 PM
Trying to get the latest version of this mod within this topic...however, the file that's zipped is of the following file type:  application/octet-stream

It is not compatible with SMF 2.0.1 and fails on install.

Does anyone have a compatible version for SMF 2.0.1?
AjaxChat Integration (latest version 3.2.2B)
this one will install but there's minor details that need to be worked out.i just installed it a few minutes ago.jusr read the above statements on this page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 09, 2011, 02:13:11 PM
Quote from: krash661 on October 09, 2011, 01:29:53 PM
Quote from: MrNicotine on October 08, 2011, 06:21:01 PM
The file you downloaded is simply "Ajaxchat" with no extension, so SMF doesn't recognize it as a zip-file. Simply rename the file through properties of the file to Ajaxchat.zip.
Then it will be accepted by your packagemanager
OMG,it worked,thanks so much..
but theres still some minor details.as admin it works fine,but as user i go to log in the chat and i get this message:* Registered Users
You can't access the chat.
NEVER MIND I FIGURED IT OUT,it was under permissions.. :) it seems to be working fine...!!!!!! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 09, 2011, 03:24:28 PM
actually,there seems to be a small issue,but its really not important,but when someone logs out of the site,they are still logged in the chats, how do i fix this to where when they log out of the site,it logs them out of the chat also?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 09, 2011, 07:36:31 PM
and also,is there a way to make a certain style on the chat as a default for everybody?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 09, 2011, 07:38:49 PM
Quote from: krash661 on October 09, 2011, 07:36:31 PM
and also,is there a way to make a certain style on the chat as a default for everybody?

What do you mean by certain style?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 09, 2011, 07:46:25 PM
Quote from: Brack1 on October 09, 2011, 07:38:49 PM
Quote from: krash661 on October 09, 2011, 07:36:31 PM
and also,is there a way to make a certain style on the chat as a default for everybody?

What do you mean by certain style?
AJAX Chat
Channel: Style: Language:
     above^^ is,i guess a header on the chat.theres is a handful of styles to chose from.is there a way to make a certain style on the chat as a default for everybody?
http://www.ruletheonlinecompetition.com/chat/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 09, 2011, 07:54:04 PM
To set default template just change "Default style" to what you want.

Open.....yourforum/chat/lib/config.php

Find

// Available styles:
$config['styleAvailable'] = array('beige','black','grey','Oxygen','Lithium','Sulfur','Cobalt','Mercury','Radium','prosilver','subsilver2','subblack2','subSilver','Core','MyBB','vBulletin');
// Default style:
$config['styleDefault'] = 'Core';



The Language and rooms can also be changed.
           
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 09, 2011, 09:08:18 PM
Quote from: Brack1 on October 09, 2011, 07:54:04 PM
To set default template just change "Default style" to what you want.

Open.....yourforum/chat/lib/config.php

Find

// Available styles:
$config['styleAvailable'] = array('beige','black','grey','Oxygen','Lithium','Sulfur','Cobalt','Mercury','Radium','prosilver','subsilver2','subblack2','subSilver','Core','MyBB','vBulletin');
// Default style:
$config['styleDefault'] = 'Core';



The Language and rooms can also be changed.
         
ok cool,where do i go or how do i get to where to change this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 09, 2011, 09:10:13 PM
Your control panel.

Open.....yourforum/chat/lib/config.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 09, 2011, 09:16:06 PM
Quote from: Brack1 on October 09, 2011, 07:54:04 PM
To set default template just change "Default style" to what you want.

Open.....yourforum/chat/lib/config.php
           
You need to edit this in FTP of SMF file manager if SMF file manager will install on your forum without errors as it's not updated for 2.0 yet.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 09, 2011, 09:20:32 PM
This is but one of a few edits found within the FAQs in the mods first post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 09, 2011, 09:29:03 PM
Quote from: Brack1 on October 09, 2011, 09:20:32 PM
This is but one of a few edits found within the FAQs in the mods first post.
ohhh, so i need file manager to change the files,no wonder why i couldnt change the codes,all i could do is highlight them.it would have been nice if i was told to download  the file manager in order to change codes of a mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 09, 2011, 09:54:25 PM
SMF  file manager to me is a last option kind of thing, if the user doesn't know how to ftp or doesn't know how to cPanel ftp, then use file manager. but be careful with what you edit. if you bugger something up then file manager will not work anymore and you will need to ftp it. But your safe with Ajax chat. if you edit goes wrong then uninstall chat and reinstall it and try again.

I would advise never do any edits in /source/ or /themes/ unless you can ftp it to fix it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on October 09, 2011, 10:40:54 PM
Quote from: T3CHN0 on October 09, 2011, 09:54:25 PM
SMF  file manager to me is a last option kind of thing, if the user doesn't know how to ftp or doesn't know how to cPanel ftp, then use file manager. but be careful with what you edit. if you bugger something up then file manager will not work anymore and you will need to ftp it. But your safe with Ajax chat. if you edit goes wrong then uninstall chat and reinstall it and try again.

I would advise never do any edits in /source/ or /themes/ unless you can ftp it to fix it.
what's ftp and  cPanel ftp?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 09, 2011, 10:56:18 PM
What is FTP (http://personalweb.about.com/od/ftpfileuploadprograms/a/01ftp.htm) and What is cPanel (http://www.dotservant.com/cpaneldoc/) and look at Youtube how to use FTP (http://www.youtube.com/watch?v=O3DudpEMPiY) and Download FileZilla FTP (http://download.cnet.com/3001-2160_4-10308966.html?spi=280e8bfbfac21c6e3864ad1804223dc5)
simple things like this helps if you just Google or youtube search it
cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ghorkimkh on October 10, 2011, 05:04:09 PM
Hi guys,

I´m running 2.0.1 with Bright Forest Theme. My problem is, that I cannot find the right spot the parser tells me to insert the new code parts. The replacment should be ok. I find that part.

But what to do with the rest. find:
Quote
   echo '
         </p>
         <p class="last smalltext">
ok, where?
and find:
Quote
      echo '
               <li>', $context['current_time'], '</li>
            </ul>';

I´ve attached the php-files so the topic doesn´t get overloaded.
I´d be really grateful guys!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 10, 2011, 08:54:46 PM
Hi ghorkimkh
Interesting theme you must be using, coding is very different to most
Try this after installing mod

Your boardindex.template.php
Find
   echo '
                  </div>
                  <hr class="hrcolor" />
                  <div class="smalltext">

Add before
   // users in chat
   if (isset($context['chat_links'])){
      if (count($context['chat_links']) == 0 )
        echo '<br />' . $txt['chat_no_user'];
      elseif (count($context['chat_links']) == 1 )
        echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
      else
        echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }


and your Index.template.php
find
echo '
            ', $context['current_time'], '.
         </div>';

add before

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


~FAQ~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) for any connection errors
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ghorkimkh on October 12, 2011, 10:44:05 AM
Wow. With your help this was so easy to do. Suddenly.

Thx T3CHN0!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on October 15, 2011, 07:57:50 AM
OK, I've got a quick question, I've been running SMF 2.0 RC3 for almost a year now and haven't been able to get Ajax Chat to work (I think I messed up SSI.php during an edit, might be the cause), but that is neother here nor there.  I'm rebuilding my site to 2.0.2, very carefully installing all my mods and then porting the database over.  I've gone through this entire process, from creating SMF from scratch in a new directory and ne databse, many times over.  I've got about 15 mods on my site (which ones will have to come in a later post as I'm not on the PC that I'm doing the rebuild on which has the list of mods in a spredsheet).

This mod is very important for my site, and the members have missed it since my site went live in December.  What is happening though is I install new themes (blank themes off of the core theme, to be used for color changes only in the future), then simple portal, then ajax chat.  I test chat (I use the SP shout, not this one) and it works fine.  I then go through my list of mods, installing each one (I have gotten the latest version of each one, all compatible with 2.0.1), but somewhere along the line chat stops working.  I have it set to open in a pop-up, and it does, but the user doesn't get logged in.

My question is this: What would the best practice be, installing Ajax chat first, before all other mods, or installing it last, after all other mods are installed?  Or should it be installed somewhere in the middle, if the list of mods is necessary to answer this question I can provide that later today when I get to my other PC.  Help on this would be greatly appreciated as I have tentively scheduled to take my site offline and move to the upgrade tomorrow, I'll be working on getting the shell setup most of today, so when I take my site offline I just have to port the database.

Thanks in advance for all the hardwork and help from all of the volunteers here.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 15, 2011, 10:32:23 AM
1. Where are you looking for the latest download of the chat?

2. You should be looking at upgrading to 2.0.1 by now.

3 Forum link?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on October 15, 2011, 10:58:21 AM
Quote from: Brack1 on October 15, 2011, 10:32:23 AM
1. Where are you looking for the latest download of the chat?

2. You should be looking at upgrading to 2.0.1 by now.

3 Forum link?

1. I got the latest download of the chat a few posts back, version 3.2.2b

2. I thought I explained, this is happening during the process of upgrading to 2.0.1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on October 15, 2011, 12:56:59 PM
Well, I'm still in the rebuild testing phase, but I think I found what my problem is.  I created copies of the default curve theme, then I added the chat mod, and one by one I added my other mods, testing the chat after each one.  After I installed SMF Shop3.1.7 chat stopped working.  So I deleted the database and directory on my server I had the install in and started from scratch once again.  This time I added SMF shop 3.1.7 first (after making the theme copies), then added the chat mod.  Chat is working now.  After that I added the rest of my mods, again testing chat after each addition.  These are the mods I've added in the order they were added, and chat is still working at this point.

1. Simple Portal 2.3.3
2. Bookmarks 2.3
3. Karma Description Mod 2.7.1
4. Member Awards 2.2.3
5. Member Color Link 3.1
6. Order Custom Profile Fields 1.1.1
7. Post Unapproval 1.1.4
8. SMF Links 2.3.2
9. SMF Staff Page 1.7
10. Stars and Badges 2.2
11. Switch Permissions 1.0
12. Tapatalk SMF 2.0 RC3 Plugin 1.3.0
13. Topic Solved 1.1.1
14. WYSIWYG Quick Reply 2.3

I still have to add Aeva Media 1.4w, but since I have a large gallery (nearly 20,000 submissions) on my live site, I need to copy the directory over from my live site, as well as the databse tables for Aeva before I install the mod so I don't lose anything in the transfer.  After that I have a couple of avatar packages to install, then the meticulous task of copying the database from the live site to this test one. 

As of now, chat is working, as I get further along I'll post an update.  I think its well worth mentioning once again that it looks like installing SMF shop AFTER Ajax Chat breaks the chat.  I'm not sure what code was changed that caused the break, but it would be nice if someone else was able to track that down and post it in here.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on October 15, 2011, 11:31:02 PM
Ok, that didn't work, once I installed Aeva Media chat was broken again.  So I redid the whole process, installing Aeva Media first, then SMF Shop, then following the order listed above, all seems to be working now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on October 16, 2011, 01:12:17 PM
This is so frustrating.  I tested and tested and the chat was working right up until the point where I took the site live, now the chat room loads, but it doesn't log anyone in, and I've looked in my error logs but I don't see anything that points to the chat room.  The menu link says I have people in the chat, but everyone only sees an empty room.  What do I do?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 17, 2011, 11:52:26 AM
cloksin I clicked on your URL tag but took me to some site with no registration on it. I would like to try help you if I can. please PM me details. cheers
Title: Please Help!!
Post by: TradingHub.co on October 17, 2011, 01:21:18 PM
So I have been looking for 2 days now, and I can't find what I'm looking for. I have read almost 100 pages of this thread and still couldn't get it to work. Seeing that everyone on here is more knowledgeable than me and helping, I will post my problem here with as much detail as possible.

My site, tradinghub.co, is hosted at bluehost. They use cpanel. I just recently installed the latest version of SMF to my site, tradinghub.co/forum/ I have not done anything to it yet. I want the shoutbox to be integrated into the forum on the front page. I don't really care about thread/topics all that much. The main reason for choosing SMF and this mod was to make my site look like this, thetechnicaltrader.net/forum/index.php So now you know what I want. I'll tell you what I've done.

I downloaded the latest version of this mod and uploaded it via Filezilla. I uploaded it to public_html/forum/chat. The forum folder is where SMF is located and I created the chat folder myself. I don't know if these are the correct steps or not. The mod file is currently sitting in the chat folder now with all its files. I feel like I am close but I cant get it to install and I don't know if I uploaded it to the right place. If anybody could give me some help I would really appreciate it. Again, this is what I want my SMF forum and shoutbox to look like, thetechnicaltrader.net/forum/index.php

Thanks again in advance!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: oggie62 on October 17, 2011, 02:03:28 PM
Hi...
I d/loaded the package and it is called "AjaxChat"....no extension. To be able to upload to SMForum it has to be an archive. Then I renamed to AjaxChat.zip...I did upload but won't install - it says it cannot be installed on my version (2.0) of SMF. What am I doing wrong ? I had a quick look but this thread runs for over 400 pages....a bit too much!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Hackathon on October 17, 2011, 03:27:20 PM
Quote from: oggie62 on October 17, 2011, 02:03:28 PM
Hi...
I d/loaded the package and it is called "AjaxChat"....no extension. To be able to upload to SMForum it has to be an archive. Then I renamed to AjaxChat.zip...I did upload but won't install - it says it cannot be installed on my version (2.0) of SMF. What am I doing wrong ? I had a quick look but this thread runs for over 400 pages....a bit too much!

Hi oggie, try to use this one http://www.simplemachines.org/community/index.php?topic=257973.msg3166086#msg3166086

make sure to backup your files before making changes. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TradingHub.co on October 17, 2011, 04:20:39 PM
Awww.. no help for me? Can somebody at least point me in the right direction if you don't want to take the time to walk me through it? I know it's a pain but it's the only way for me to learn and I'd really appreciate it.. Thank you again!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on October 17, 2011, 04:35:50 PM
Quote from: TradingHub.co on October 17, 2011, 04:20:39 PM
Awww.. no help for me? Can somebody at least point me in the right direction if you don't want to take the time to walk me through it? I know it's a pain but it's the only way for me to learn and I'd really appreciate it.. Thank you again!

I'm no expert, as you can tell from my posts, I'm having a hard time getting it to work properly, but what you've described doesn't sound like the way to go about it.

Don't create any folders at all, let the installation do that for you.  Keep the zip file on your local machine, just make sure that your files on the server ara chmodded to either 755 or 777.  Go to admin->main->package manager->download packages from within SMF.  Down at the bottom it says upload a package.  Click the browse button to navigate to the folder on your local PC that has the zip file and select the file, then click the upload button.  The page that follows will show you the results of some tests it runs to make sure that it will install properly, if everything is good, install the mod.  If you've failed a test or three and you're not sure how to correct for that, submit your results here and someone can help you with the next step.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: oggie62 on October 17, 2011, 05:04:30 PM
Quote from: Hackathon on October 17, 2011, 03:27:20 PM

Hi oggie, try to use this one http://www.simplemachines.org/community/index.php?topic=257973.msg3166086#msg3166086

make sure to backup your files before making changes. :)

Thanks Hackaton...sucess!..

The file still had no extension so I renamed it to AjaxChat.zip and it installed....I had a minor 500 issue but found it in FAQ.

Another thing : when I log out,I would like to go back to forum homepage....as is I go to chat login...surely it can be changed....how ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 17, 2011, 06:08:38 PM
Quote from: TradingHub.co on October 17, 2011, 01:21:18 PM
I downloaded the latest version of this mod and uploaded it via Filezilla. I uploaded it to public_html/forum/chat. The forum folder is where SMF is located and I created the chat folder myself. I don't know if these are the correct steps or not. The mod file is currently sitting in the chat folder now with all its files. I feel like I am close but I cant get it to install and I don't know if I uploaded it to the right place. If anybody could give me some help I would really appreciate it. Again, this is what I want my SMF forum and shoutbox to look like, thetechnicaltrader.net/forum/index.php
To install a mod TradingHub in SMF 2.0 you need too
1, find a mod you like
2, download it to your computer. the direct link is something like this www.your-site.com/index.php?action=admin;area=packages;sa=packageget
3, within your forum go to Admin>Package Manager>Download Packages> go to bottom of page and in Package to Upload: section click on Browse and locate the mod you downloaded.
4, the following page will tell you the upload was successful and if you want to install it. Click install.
5, most important before clicking install make sure everything passes the test successfully and do not continue the install if there are errors unless you know how to edit php files.

other steps are, if your mod on install then says on that it's corrupted or an unknown package you need to go to Admin>Package Manager>Browse Packages scroll to bottom of page
and click on ADVANCED and then change your Emulate Version: to what the mod was made for. remember do not download mod for 1.1.? if your forum is SMF 2.0 and visas verse.

I am sure if you looked in community boards you would have found how to install a mod.

Cheers.
Title: AjaxChat Integration (AjaxChat Integration_3.2.2b)
Post by: T3CHN0 on October 17, 2011, 06:53:01 PM
Quote from: Hackathon on October 17, 2011, 03:27:20 PM
Quote from: oggie62 on October 17, 2011, 02:03:28 PM
Hi...
I d/loaded the package and it is called "AjaxChat"....no extension. To be able to upload to SMForum it has to be an archive. Then I renamed to AjaxChat.zip...I did upload but won't install - it says it cannot be installed on my version (2.0) of SMF. What am I doing wrong ? I had a quick look but this thread runs for over 400 pages....a bit too much!

Hi oggie, try to use this one http://www.simplemachines.org/community/index.php?topic=257973.msg3166086#msg3166086 (http://www.simplemachines.org/community/index.php?topic=257973.msg3166086#msg3166086)

make sure to backup your files before making changes. :)
Here is the download again for you, but renamed with a correct name and file extension
Title: AjaxChat Integration (latest version 3.2.2b) Redirect logout to home page
Post by: T3CHN0 on October 17, 2011, 07:27:21 PM
Quote from: oggie62 on October 17, 2011, 05:04:30 PM
Another thing : when I log out,I would like to go back to forum homepage....as is I go to chat login...surely it can be changed....how ?

to change logout to redirect back to your site simply to go /chat/lib/class and edit AJAXChat.php


Find
return AJAX_CHAT_PATH.'lib/template/loggedOut.html';
change to
return AJAX_CHAT_PATH.'';
and your done
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TradingHub.co on October 17, 2011, 07:46:45 PM
Thanks T3CNHO, Sorry.. I really did spend days looking for my answer.. This forum is huge.. I will try your suggestion now.. and thanks again for the help!!

As for the folder I created in my directory.. should I delete everything out of it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 17, 2011, 07:54:29 PM
If it was me yes, but shouldn't really matter, the install will just replace the files already there. but Incas you did put the chat folder in the wrong place
always good to not have double ups so you know which chat folder is the correct folder
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TradingHub.co on October 17, 2011, 08:15:47 PM
I've already encountered some problems..  :-\

The mod I'm trying to install is the AjaxChat Integration to the most recent SMF. I have not done anything yet to the SMF so it is a clean slate.

"2, download it to your computer. the direct link is something like this www.your-site.com/index.php?action=admin;area=packages;sa=packageget"
- How do I get this direct link? When I download the mod it turns into a file which is on my desktop.

"3, within your forum go to Admin>Package Manager>Download Packages> go to bottom of page and in Package to Upload: section click on Browse and locate the mod you downloaded."
-When I move the file to upload it tells me that it only accepts .zip and some others.. but the mod file is not a .zip.. it is a folder, and nothing in it is a .zip.. the install files are all .xml..

Is everything done on the SMF side? I don't have to do anything on the host, BlueHost, side? I am obviously missing some steps or doing something wrong. I have read the wiki and other sources I have found but still can't figure it out.

Thanks again for taking the time to help me!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 17, 2011, 08:21:41 PM
do you have xfire teamspeak or skype ? I will talk you though it. plus re-download the the download from my last post. it's got the correct .zip extension
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TradingHub.co on October 17, 2011, 08:26:39 PM
would iChat work?

when I click your link it sends me to a page that says "sorry but the page you are trying to use does not exist"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 17, 2011, 08:46:03 PM
installed ichat, how do i find you?... be un-installing it when finished.. it adds all kids of rubish to my computer that I don't want
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TradingHub.co on October 17, 2011, 08:48:48 PM
PM sent. I can send you an IM if you give me your username.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TradingHub.co on October 17, 2011, 09:57:50 PM
I lost contact with T3CHN0.. probably didn't want to waste his time with such a n00b.. lol.. anyway if anybody else can help me go through the install with AjaxChat Integration I would greatly appreciate it.. doing it by trial and error is getting me nowhere.. and every time I get a little further or somebody gives me specific instructions I run into a new snag..

I still am having problems with the steps mentioned in my above posts.. If anybody can help that would be great.. and sorry for bugging you T3CHN0.. I appreciate your effort a lot.. not to many people would go out of their way like that!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TradingHub.co on October 17, 2011, 11:38:55 PM
All I have to say is T3CH0 is awesome! Above and beyond helped me out! Thanks again!
Title: Re: AjaxChat Integration (latest version 3.2.2b) Redirect logout to home page
Post by: oggie62 on October 18, 2011, 06:15:09 AM
Quote from: T3CHN0 on October 17, 2011, 07:27:21 PM

to change logout to redirect back to your site simply to go /chat/lib/class and edit AJAXChat.php


Find
return AJAX_CHAT_PATH.'lib/template/loggedOut.html';
change to
return AJAX_CHAT_PATH.'';
and your done

Thanks T3CHNO....only problem is that it doesnt work!

Actually I think the code is right....the path of forum is mysite/forum....I am sure code must be a bit different but php is like chinese for me.... :((//)
Title: Re: AjaxChat Integration (latest version 3.2.2b) Redirect logout to home page
Post by: T3CHN0 on October 18, 2011, 10:09:40 PM
Quote from: oggie62 on October 18, 2011, 06:15:09 AM
Quote from: T3CHN0 on October 17, 2011, 07:27:21 PM

to change logout to redirect back to your site simply to go /chat/lib/class and edit AJAXChat.php


Find
return AJAX_CHAT_PATH.'lib/template/loggedOut.html';
change to
return AJAX_CHAT_PATH.'';
and your done

Thanks T3CHNO....only problem is that it doesnt work!

Actually I think the code is right....the path of forum is mysite/forum....I am sure code must be a bit different but php is like chinese for me.... :(
Scratch my edit,, even though it worked for me there is a better answer in FAQ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) look for Redirect the Logout back to your forum when you log out of the Chat Room
Title: Re: weather widget conflict with AjaxChat Integration java script swfobject.js
Post by: T3CHN0 on October 18, 2011, 10:50:44 PM
Quote from: T3CHN0 on September 28, 2011, 05:43:10 AM
has anyone had this problem, I had a look around but can't find anything..
chat loads fine everything looks OK but when clicking on text box to typeI get an error; but if I say OK to the error and I can still chat and only happens
after refreshing the page.

what happen, to why i am getting this error
I installed a new weather mod, "not from smf" ''but would be nice to have one for smf''
to show on my forum you can have a look and download it (http://www.flashxml.net/weather-widget.html)

it's when I have the java script from this mod running is when I get the error from firefox and google chrome
but shoutbox works fine with internet explorer "no error", makes no sense

remove the java script command from this mod and chat works fine again with no error
but when I add the script back again the chat/shoutbox has this error

the mod I am adding works fine but it somehow conflict's with my shoutbox/chat

the errors are

firefox error
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg38.imageshack.us%2Fimg38%2F1503%2Ffirefoxerror.png&hash=eedd78e2191cc3e988d32f0778c2c0acb3f7085b)

google chrome error
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg263.imageshack.us%2Fimg263%2F9576%2Fchromeerror.png&hash=2977d94b2a2f9369d90aeea93834b943c3031642)

what do the errors mean?
do I need to add or remove a string command from the shoutbox java scripts  ?

cheers

OK my turn again :) I need help from someone who knows more then me...
I over came this problem by using a different script for a weather mod I did my self
but now I am adding a IP locator java script edit and getting the same errors all over again.

I go to my site everything loads OK. But right at the point of clicking on the field to type something in the shoutbox
is when I get the error's but after clicking OK to the error I can then continue chatting up until the next time I refresh
the page. it doesn't stop my site or chat from working but is annoying to see the pop-up error each time.

What command string tells the flashing cursor to flash ""blink"" in the area of typing.
it's when clicking in the field to type that cursor starts to blink and then the error comes up.


All good now, at last I found the error. The Java command for the Chat button on the shoutbox was at fault.
After removing the chat button and this sting but didn't need to remove the chat button just the string
<div id="ajaxChatFlashInterfaceContainer"></div> << this code is for sounds in the shoutbox<<
I re-shaped my shoutbox to look better on my forum and now I am a happy chappy :)
click on image to see how it looks. I can re-shape someone else shoutbox as well if they want!!! just ask...
Title: Re: AjaxChat Integration (latest version 3.2.2b) Redirect logout to home page
Post by: oggie62 on October 19, 2011, 09:52:08 AM
Quote from: T3CHN0 on October 18, 2011, 10:09:40 PM
Scratch my edit,, even though it worked for me there is a better answer in FAQ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) look for Redirect the Logout back to your forum when you log out of the Chat Room

Thanks....found it and made changes.  :D

Another thing : a user reports that he can seechat in IE9 only in Compatibility Mode - is this a known issue or a user error problem ?
Title: Re: AjaxChat Integration (latest version 3.2.2b) Redirect logout to home page
Post by: T3CHN0 on October 19, 2011, 10:39:46 AM
Quote from: oggie62 on October 19, 2011, 09:52:08 AM
Quote from: T3CHN0 on October 18, 2011, 10:09:40 PM
Scratch my edit,, even though it worked for me there is a better answer in FAQ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) look for Redirect the Logout back to your forum when you log out of the Chat Room

Thanks....found it and made changes.  :D

Another thing : a user reports that he can seechat in IE9 only in Compatibility Mode - is this a known issue or a user error problem ?
Sounds like user error or a java update is needed but have a read of this posting a few pages back and see if this is what happening to you.
http://www.simplemachines.org/community/index.php?topic=257973.msg2432266#msg2432266
before you do. can you see chat with IE FF and G,Chrome ? plus PM me your forum address and I will have a look with all three browsers as well
Title: Re: AjaxChat Integration (latest version 3.2.2b) Redirect logout to home page
Post by: oggie62 on October 19, 2011, 04:24:44 PM
Quote from: T3CHN0 on October 19, 2011, 10:39:46 AM
Quote from: oggie62 on October 19, 2011, 09:52:08 AM
Quote from: T3CHN0 on October 18, 2011, 10:09:40 PM
Scratch my edit,, even though it worked for me there is a better answer in FAQ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766) look for Redirect the Logout back to your forum when you log out of the Chat Room

Thanks....found it and made changes.  :D

Another thing : a user reports that he can seechat in IE9 only in Compatibility Mode - is this a known issue or a user error problem ?
Sounds like user error or a java update is needed but have a read of this posting a few pages back and see if this is what happening to you.
http://www.simplemachines.org/community/index.php?topic=257973.msg2432266#msg2432266
before you do. can you see chat with IE FF and G,Chrome ? plus PM me your forum address and I will have a look with all three browsers as well

Thank you for all the help...looks like the user has a problem - another 3 users use IE9 and they don't have any problems.

A small suggestion : how about "slimming" this thread a bit - a user (like me) who needs something is demoralized by the sheer size of this thread....as of today it's 417 pages....intimidating!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on October 19, 2011, 04:54:59 PM
LOL, and you just made it 418! :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 19, 2011, 05:47:26 PM
Unfortunately only a moderator can slim the thread down.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on October 25, 2011, 02:06:24 PM
I still need help with this.  I've installed the mod, version 3.2.2b on SMF 2.0.1 with simple portal 2.3.3.  Here are the mods I have installed:

1. Stars And Badges           2.2    
2. AjaxChat Integration           3.2.2b    
3. WYSIWYG Quick Reply           2.3    
4. Order Custom Profile Fields           1.1.1    
5. Member NotePad           2.0.2    
6. D+X Graduate Page           1.7    
7. Karma Description Mod           2.7.1    
8. Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.0    
9. Switch Permissions           1.0    
10. Member Color Link           3.1    
11. SMFShop              3.1.7    
12. Post Unapproval           1.1.4    
13. Aeva Media              1.4w    
14. SMF Staff Page              1.7    
15. Member Awards           2.2.3    
16. SMF Links              2.3.2    
17. Topic Solved              1.1.1    
18. Bookmarks              2.3    
19. SimplePortal              2.3.3

When I click on the "chat" button in the menu I get the chat popup window (as specified in the settings) but it doesn't show anyone online. (see attached screenshot)

I clicked the parse button for version 2.0 RC3 (as it doesn't seem there is a version higher than that available) and compared every piece of code line by line and it is all correct, no extra code, no missing code, nothing.

I checked the database tables against tables_2.php file and they are all correct.  I checked the helpful hints earlier in this thread and added a couple .htaccess files.  Apache points to /var/www/html as my document root, so I added this .htaccess file in that directory.


RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
DirectoryIndex portal.php index.php index.html index.htm


in the "forum" directory, where my smf files are located, I added this .htaccess file:


RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
DirectoryIndex portal.php index.php index.html index.htm


in the "chat" directory I added this .htaccess file:


RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


and in the shoutBox directory I added this .htaccess file:


RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


I really need to get this mod working, but it has been giving me headaches for nearly a year now.  What do I need to do to get it to work?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on October 25, 2011, 08:31:22 PM
When you type something in to the reply box does it appear?

If the answer is no...
Do you have it set so that members cannot see the chats before they entered the chat room? If so try turning that off and see what happens.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on October 25, 2011, 08:33:14 PM
Quote from: Farjo on October 25, 2011, 08:31:22 PM
When you type something in to the reply box does it appear?
To clarify I meant "If you type something in the reply box and hit enter does it appear in the main panel?"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on October 25, 2011, 09:58:20 PM
Quote from: Farjo on October 25, 2011, 08:31:22 PM
When you type something in to the reply box does it appear?

If the answer is no...
Do you have it set so that members cannot see the chats before they entered the chat room? If so try turning that off and see what happens.

No, when you type into the reply box you can see what you are typing, but when you hit enter or click the submit button it disappears and does NOT go into the main window.  The messages DO however populate the database.

I'm not sure of what settings you are referring.  Under members -> permissions I have "Access to chat" "Moderate chat" "View shoutBox" "Can shout" and "Moderate shoutBox" all checked for all membergroups (even though I'm not using the shoutbox), and under configuration -> modification settings -> chat I have "chat in popup page" "Enable online chat users numbering on chat button" and "Show online users below total logged in time section" all checked.

I don't know of any other settings for this mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on October 26, 2011, 03:12:13 AM
It's a manual setting in ./chat/lib/config.php
$config['requestMessagesPriorChannelEnter'] = false;

If yours is false set it to true and see if it changes owt.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on October 26, 2011, 08:07:27 AM
Quote from: Farjo on October 26, 2011, 03:12:13 AM
It's a manual setting in ./chat/lib/config.php
$config['requestMessagesPriorChannelEnter'] = false;

If yours is false set it to true and see if it changes owt.

OK, checked that, it was already set to "true", I changed it to false to see if it helped anything, but there was no change, so I set it back to "true".  Still not working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: R6 on October 26, 2011, 09:43:45 PM
Quote from: MrNicotine on October 08, 2011, 06:21:01 PM
The file you downloaded is simply "Ajaxchat" with no extension, so SMF doesn't recognize it as a zip-file. Simply rename the file through properties of the file to Ajaxchat.zip.
Then it will be accepted by your packagemanager

I'm still in the stone age and trying up upload ajax chat to my SMF forum via <<Admin/package manager/download packages/upload>...

Using Techno's compressed zip file (AjaxChat_Integration_3.2.2b.zip)  <<thanks techno>>  it says ''An Error Has Occurred!'' when I press upload in SMF 2.0.1.
Does the same if i rename the file to Ajaxchat.zip too.
Sadly I am a newbie and have no idea as you can see.  :-[

:(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on October 26, 2011, 11:05:38 PM
What details does it give about the error? Without any more info. it's difficult to make a diagnosis. Try downloading the file again - maybe it got corrupted during a transfer.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 29, 2011, 09:17:05 PM
after you get the error
QuoteAn Error Has Occurred!
does the package now show in your list of packages.
sounds like you need to emulate it yoursiteURL/index.php?action=admin;area=packages
look at bottom of page and check your emulation is set to the correct install Version
for this mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: R6 on October 30, 2011, 12:00:07 AM
Hi Farjo & Techno and thanks for your replies.
I'll try and do a big reply to see if it helps explain my total amateur skill set!

Ok, first off:

The route I previously took when logged into my smf forum to try and install AJAX Chat software on SMF 2.0.1 was this:

Adminstration Center
Main
Package Manager
Download Packages
Upload a Package
Browse (C:/AjaxChat_Intergration_3.2.2b.zip)  <--- This is the 'tweaked' AJAX chat zip file that you guys got to work with SMF 2.0.1
Upload


When pressing the 'upload' button the web browser goes onto a new screen saying:

''An Error Has Occured!''.    No other info is given on the screen. 


I read Techno's new reply and went to this URL: myweburl/index.php?action=admin;area=packages
I got a 404.  Even if I put  myweburl/forum/index.php?action=admin;area=packages  and still get  a 404  (my smf forum is inside a folder called 'forum').



Following Techno's next point.........Logged into the forum, to see what packages are installed I followed this route and got the following answer when logged into the forum:

Admin
Package Manager
Browse Packages

''No packages yet''.

Also if I follow this route it says:

Installed Packages
View and Remove Installed Packages

''No mods currently installed''.



So this shows, I think, that the ZIP definately didn't upload and thus AJAX Chat cannot possibly work as the files are absent.
Then I had a brainwave of newbie proportions and thought maybe I need to upload the ZIP via FTP first and not via SMF 2.0.1 and I had accidently confused everyone further with the above error.....

So I opened the ZIP [AjaxChat_Intergration_3.2.2b.zip] and extracted the files on my PC and found the folder called 'chat'. The readme said I need to upload the contents of the chat folder (not the entire zip?) via FTP so I did that. Just the contents of the chat folder in the ZIP.

I did this, because the readme said:

Quote
1.   Upload to the server
   --------------------

   Upload the chat folder to your server into your SMF forum directory:
   e.g. http://example.org/forum/chat/


2.   Creation of database tables
   ---------------------------

   Execute the provided installation script by visiting the following URL with your browser:
   http://example.org/forum/chat/install.php
   
   Replace "http://example.org/forum/chat/" with the real URL to your chat directory.


3.   Delete the installation script
   ------------------------------
   
   Delete the file install.php from the chat directory on your server.

Ready!

I followed those instructions above, but when I run the install.php file I get a 404 Error which I think means it cannot find the install.php file on my server inside the chat folder I uploaded.

So...............

I looked inside the 'chat' folder I uploaded (from the AjaxChat_Integration_3.2.2b.zip) and
I cannot find an install.php file there. Which I guess explains it!!!!  I don't know why it's missing, presumably as I haven't uploaded it and it's in another folder in the ZIP file? (AjaxChat_Integration_3.2.2b.zip).

All the other contents of the ZIP, I didn't upload to my server as apparently you don't need to to make AJAX chat work with SMF 2.0.1

If it helps, the files I missed out and didn't upload to my server via FTP are called:

shoutbox (windows folder) <-- Lots of files in here.
Changelog.txt
install_1.1.X document
install_2 XML document
package-info XML document
Readme.txt
Shout.english Php Script
Shout.persian Php Script
Shout.template Php Script
Tables_1.1.X Php Script
Tables_2  Php Script


Sorry if this is very confusing and I am getting muddled up.

To recap:

I'm running SMF 2.0.1 forum and it works fine.
I've uploaded  a folder from the Ajax Chat ZIP file Techno tweaked to run with SMF 2.0.1, because the readme says I should. I put in via FTP, in the SMF directory where my forum is located.
I didn't upload the entire ZIP (AjaxChat_Integration_3.2.2b.zip) via FTP and when trying to using SMF function (Admin/package manager/download packages/upload) I get an error saying ''An Error has occured''.

:-[

I hope that makes some sense, it seems very complicated but probably I've missed an incredibly basic point.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on October 30, 2011, 01:40:29 AM
that file.zip was not done by me but i did re-upload it without spaces so others would download it correctly.
but thanks for the thanks :D
QuoteThen I had a brainwave of newbie proportions and thought maybe I need to upload the ZIP via FTP
you almost got it right... upload the ajax.zip not extracted to you site folder called Packages and then look again on your
site where i told you to look before. you should now be able to see the ajax chat in there ready to install.
try and install it now, if you get an error DO NOT INSTALL, come back here and tell us what the error is
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dpenguin on October 31, 2011, 03:47:08 PM
Is there a link to download the 3.2.2b? I have been unable to locate it. I would really like to add Ajax Chat integrated, but it isn't compatible with 2.0.1.


Disregard; found it here (http://www.simplemachines.org/community/index.php?topic=257973.msg3166086#msg3166086)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 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."
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dpenguin on November 01, 2011, 05:00:04 PM
so...nobody knows? :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Airclown on November 01, 2011, 07:30:48 PM
can't expect replies to fast sometimes..

in the package manager you can see what tasks it fails on. it fails because it can't find specific parts of code but often it's because of an extra space or things like that
note those down (couple things it looks for and places code before or after that part)
install using the package manager and then manually edit the needed files in the theme your using.

that's what i did 2 days ago and it's working perfectly
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: R6 on November 02, 2011, 02:19:22 AM
Quote from: T3CHN0 on October 30, 2011, 01:40:29 AM
that file.zip was not done by me but i did re-upload it without spaces so others would download it correctly.
but thanks for the thanks :D
QuoteThen I had a brainwave of newbie proportions and thought maybe I need to upload the ZIP via FTP
you almost got it right... upload the ajax.zip not extracted to you site folder called Packages and then look again on your
site where i told you to look before. you should now be able to see the ajax chat in there ready to install.
try and install it now, if you get an error DO NOT INSTALL, come back here and tell us what the error is

Hi Techno, thanks so much for the reply it was helpful.
I managed to get onto the next step with your advice and I got this error when installing 'AjaxChat_Integration_3.2.2b.zip' from the Package Manager.

NB: Before I uploaded the ZIP via 'package manager' using the forum, I deleted the yellow 'chat' folder on my server where SMF is, that I had uploaded via FTP.
I hope this was the correct thing to do.

I didn't click on the button 'install now', as you sensibly advised.  ;)


Quote


Installations actions for "AjaxChat Integration"
Installing this package will perform the following actions:


1.
Type: Execute Modification
Action: ./Sources/Admin.php
Description: Test successful

2.
Type: Execute Modification
Action: ./Sources/BoardIndex.php   
Description: Test successful

3.
Type: Execute Modification
Action: ./Sources/Load.php
Description: Test successful

4.
Type: Execute Modification
Action: ./Sources/ManagePermissions.php
Description: Test successful


5.
Type: Execute Modification
Action: ./Sources/ManageSettings.php
Description: Test successful


6.
Type: Execute Modification
Action: ./SSI.php
Description: Test successful


7.
Type: Execute Modification
Action: ./Sources/Subs.php
Description: Test successful


8.
Type: Execute Modification
Action: .\Themes\default/BoardIndex.template.php
Description: Test successful


9.
Type: Execute Modification
Action: .\Themes\default/index.template.php
Description: Test successful


10.
Type: Execute Modification
Action: .\Themes\default/languages/Help.english.php
Description: Test successful


11.
Type: Execute Modification
Action: .\Themes\default/languages/Help.persian.php
Description: Skipping file


12.
Type: Extract File
Action: .\Themes\default/Shout.template.php
Description:

13.
Type: Extract File
Action: .\Themes\default/languages/Shout.english.php
Description:

14.
Type: Extract File
Action: .\Themes\default/languages/Shout.persian.php
Description:

15.
Type: Extract File
Action: .\Themes\default/shoutbox.css
Description:

16.
Type: Extract Tree
Action: ./chat
Description:

17.
Type: Extract Tree
Action: ./shoutBox/css
Description:

18.
Type: Extract Tree
Action: ./shoutBox/flash
Description:

19.
Type: Extract Tree
Action: ./shoutBox/img
Description:

20.
Type: Extract Tree
Action: ./shoutBox/js
Description:

21.
Type: Extract Tree
Action: ./shoutBox/lib
Description:

22.
Type: Extract Tree
Action: ./shoutBox/socket
Description:

23.
Type: Extract Tree
Action: ./shoutBox/sounds
Description:

24.
Type: Extract Tree
Action: ./shoutBox/src
Description:

25.
Type: Extract Tree
Action: ./shoutBox
Description:

26.
Type: Execute Code
Action: Tables_2.php
Description:


I'm running an SMF 2.0.1 compatible theme, called ''MyTheme''.

I downloaded the theme from this forum, here: http://custom.simplemachines.org/themes/index.php?action=search;version[]=65;start=40  in the preview box it's called 'My Theme'
Details say:  Author: Trax2K11, Last Update: October 21, 2011, 04:14:16 PM, Downloads: 416,SMF versions: 2.0, 2.0.1

Somaybe for some reason the 'Theme' looks like it's intefering with the chat working correctly.  :-[
It said this below after trying to install the chat with the errors above using 'Package Manager'............................

Quote

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

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

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

NB: I noticed next to the 'Execute Modification' command, there is a little white box you can tick.  They're all unticked. Also next to the word 'Core Theme' and 'My Theme' there's the same little white box, also unticked.



To recap:

1) Got the Ajax Chat Zip to upload with Package Manager using the SMF 2.0.1
2) Seems to have a few errors, maybe due to the 'Theme'?
3) I didn't click on 'Install'.

Thank you again for trying to help me.
:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 02, 2011, 02:21:00 AM
@R6

Which other mods are installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: R6 on November 02, 2011, 02:25:13 AM
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 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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 02, 2011, 01:14:27 PM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 02, 2011, 01:28:58 PM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 02, 2011, 01:35:34 PM
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 (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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PaintChip on November 05, 2011, 01:12:58 PM
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?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 05, 2011, 06:48:23 PM
This Download does work, maybe try using another browser if the one your using is not downloading it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: R6 on November 05, 2011, 10:05:05 PM
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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 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.

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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 06, 2011, 11:02:06 AM
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..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: 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? 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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: projectnaija on November 06, 2011, 05:27:36 PM
how to i get the shoutbox url of my shoutbox
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 06, 2011, 08:08:58 PM
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. (http://www.simplemachines.org/community/index.php?topic=293441.0)
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~~ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 06, 2011, 08:16:41 PM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: s10king91 on November 07, 2011, 09:01:02 AM
Thanks a Bunch Techno. I tried using the chat out of Chrome and it was alot smoother. Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: oldguest 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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 07, 2011, 09:52:33 PM
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.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: oldguest on November 07, 2011, 10:49:41 PM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 07, 2011, 11:33:26 PM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: oldguest on November 08, 2011, 06:48:16 AM
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
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 08, 2011, 08:24:36 AM
Quote from: noeyes on November 08, 2011, 06:48:16 AM
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
Is index.danish-utf8.php writable, check chmod settings and set it to 777 and try again, utf8 is the same edits as normal but I don't work with
anything other then English and normal php files.
I might be able to work it our for you but would need admin and so on, you could PM me you URL if you like.
Maybe someone else knows the answer to this problem?

cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: oldguest on November 08, 2011, 09:38:16 AM
Hello Again
I have tryed to change my default language to english, and now i get this message.
AJAX Chat

Warning: Cannot modify header information - headers already sent by (output started at /Themes/default/languages/Faq.english-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/Faq.english-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/Faq.english-utf8.php:1)
in /chat/lib/class/AJAXChatHTTPHeader.php on line 41
I hope anyone have a solution.
Thanks in advance.
Best regards
Noeyes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on November 08, 2011, 10:19:55 AM
This mod is frigging driving me nuts.

I installed the mod and it was working (finally).  Now its not working.  The chat window opens up but there is nothing in the online list, and nothing you type in the submit window gets displayed in the main window.

Looking at the database all logins, logouts, and messages are updated to the database, but this data is not being written to the chat window.  This program is super fragile and seems to break for no reason all the time.  I've deleted the config.php file and re-installed it but that still doesn't work.

Why won't the database data write back to the chat window, what do I have to do to make this buggy program work properly without failing in the matter of a day or two?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: oldguest on November 08, 2011, 05:32:29 PM
Hello All
I have found a solution, but now i can't use my faq 1.1 mod.
If i have installed my faq 1.1 module, i can't use my ajax chat, but if i uninstall my faq module, the chat works.
Can anyone explain how to correct this, so both the modules works.
Thanks in advance.
Best regards
Noeyes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 08, 2011, 05:51:49 PM
Which version of this mod?

Is FAQ 1.1 the latest version?

I use both mods with no problems.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 08, 2011, 05:58:48 PM
Quote from: cloksin on November 08, 2011, 10:19:55 AM
This mod is frigging driving me nuts.

I installed the mod and it was working (finally).  Now its not working.  The chat window opens up but there is nothing in the online list, and nothing you type in the submit window gets displayed in the main window.

Looking at the database all logins, logouts, and messages are updated to the database, but this data is not being written to the chat window.  This program is super fragile and seems to break for no reason all the time.  I've deleted the config.php file and re-installed it but that still doesn't work.

Why won't the database data write back to the chat window, what do I have to do to make this buggy program work properly without failing in the matter of a day or two?
Hi Had a look at you site with IE FF and Chrome and Chrome error's.
looks like your problem goes beyond chat. it's more looking like a java error like I had once before
I had to edit my shoutbox and remove the SHOUT button and I get no more errors, you might need to do the same.
here in this image is the error I get on your site after clicking on chat.


click image to make bigger
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 08, 2011, 07:42:45 PM
Quote from: Brack1 on November 08, 2011, 05:51:49 PM
Which version of this mod?

Is FAQ 1.1 the latest version?

I use both mods with no problems.
I installed FAQ 1.1 as well and tested it on my site. I have about 180 mods already installed and now FAQ and chat still works fine.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 08, 2011, 07:45:24 PM
Quote from: T3CHN0 on November 08, 2011, 07:42:45 PM
I have about 180 mods already installed

I thought my 79 mods was bad.

:o
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on November 08, 2011, 09:49:44 PM
Quote from: T3CHN0 on November 08, 2011, 05:58:48 PM
Quote from: cloksin on November 08, 2011, 10:19:55 AM
This mod is frigging driving me nuts.

I installed the mod and it was working (finally).  Now its not working.  The chat window opens up but there is nothing in the online list, and nothing you type in the submit window gets displayed in the main window.

Looking at the database all logins, logouts, and messages are updated to the database, but this data is not being written to the chat window.  This program is super fragile and seems to break for no reason all the time.  I've deleted the config.php file and re-installed it but that still doesn't work.

Why won't the database data write back to the chat window, what do I have to do to make this buggy program work properly without failing in the matter of a day or two?
Hi Had a look at you site with IE FF and Chrome and Chrome error's.
looks like your problem goes beyond chat. it's more looking like a java error like I had once before
I had to edit my shoutbox and remove the SHOUT button and I get no more errors, you might need to do the same.
here in this image is the error I get on your site after clicking on chat.


click image to make bigger

I'm not using the ajax shoutbox, just the chat, my shoutbox is the simpleportal shoutbox.

How do I edit the shoutbox and remove the shout button, which file is it in?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on November 08, 2011, 11:09:03 PM
ok, I found some info on that error, http://www.simplemachines.org/community/index.php?topic=257973.msg3117418#msg3117418

I made the change, changing this on line 133 of FABridge.js


if (/Explorer/.test(navigator.appName) || /Konqueror|Safari|KHTML/.test(navigator.appVersion))


to this


if ((!(/Chrome/.test(navigator.appVersion))) && ((/Explorer/.test(navigator.appName) || /Konqueror|Safari|KHTML/.test(navigator.appVersion))))


This got rid of the error showing in Chrome, but chat still isn't working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 09, 2011, 05:15:07 AM
Quote from: cloksin on November 08, 2011, 09:49:44 PM
I'm not using the ajax shoutbox, just the chat, my shoutbox is the simpleportal shoutbox.
How do I edit the shoutbox and remove the shout button, which file is it in?
I knew you were not using the shout box but rather just the chat.
try this html I attached. I removed the submit button already.. Rename the old one first as a backup
and if if still don't work or you like it better the other way you can just remove this html and rename the other one back
to before.

I don't know if this will help your problem but it did work with mine as I use a weather widget and got errors all the time
untill I removed the submit buttons.

put this htlm in both /chat/lib/template & shoutbox/lib/template
also while your there remember to check chmod setting in the index.php files are set to 755

and in your /chat/.htaccess has the following

RewriteEngine on
RewriteRule ^chat/?$ ./index.php [L,QSA]


and your /shoutbox/.htaccess has the following
RewriteEngine on

RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


see how you go with that...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on November 09, 2011, 06:32:37 AM
Checked the htaccess files, added your file to both directories, chmodded everthing, tried both 755 and 777, cleared the file cache, still not working.  What else can I try?  Is it a setting somewhere on my server? I have a dedicated server running CentOS with full access via console, but I don't know where to look for this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 09, 2011, 07:28:44 AM
Try your settings like this, it will turn on your shoutbox, then test chat... after that then untick the option I marked in yellow
and test chat again...

click on image to make bigger
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cloksin on November 09, 2011, 08:46:01 AM
Quote from: T3CHN0 on November 09, 2011, 07:28:44 AM
Try your settings like this, it will turn on your shoutbox, then test chat... after that then untick the option I marked in yellow
and test chat again...

click on image to make bigger

OK, tried your suggestion, with the settings set as you have them in the image and chat still did not work.  In the shoutbox I got this error - ChatBot: Error: Connection status: 0

I unticked the option you indicated and tried chat again, it still is not working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jordanbork on November 09, 2011, 09:54:25 PM
As tempting as it is to search through 420 pages, I figured I'd just ask. When new users register on the forums, they don't have access to the chat. This is my first week with smf, no other addons btw, so maybe there's just something simple I'm missing? Thanks in advance for help!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 10, 2011, 12:15:50 AM
Quote from: jordanbork on November 09, 2011, 09:54:25 PM
As tempting as it is to search through 420 pages, I figured I'd just ask. When new users register on the forums, they don't have access to the chat. This is my first week with smf, no other addons btw, so maybe there's just something simple I'm missing? Thanks in advance for help!!
In members permissions, you pick who and who doesn't see the chat can post in chat and so on
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 10, 2011, 12:31:16 AM
QuoteChatBot: Error: Connection status: 0

The way to solve this is already mentioned in the mods FAQs on the first post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 10, 2011, 04:56:25 AM
Quote from: Brack1 on November 10, 2011, 12:31:16 AM
QuoteChatBot: Error: Connection status: 0

The way to solve this is already mentioned in the mods FAQs on the first post.
in this case that error was not the norm,

could you put a bit more info next time maybe!! to help others, like maybe a link to the 'fix', not everyone knows where to look and save other time as well.

In this case the forum has errors and there making chat and shoutbox not work... I am working on this for her right now with a fresh rebuild of the whole forum..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on November 10, 2011, 02:24:22 PM
Quote from: T3CHN0 on November 02, 2011, 01:28:58 PM
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

this should do the trick for you

And it did ;) Thanks.

But now I have a new problem. I'm using version 3.2.1. I installed Aeva lite on my forum two days ago, and now I hear (and tested) that anyone higher than a normal user can see the shout and chat, and use it. But a normal user can see an empty shoutbox with no possibility to shout, and the chat button simply links to the forntpage of my forum, in a popup. But no chat.
I'm removing Aeva now, hoping it will fix the problem, but I hope that there is someone with a solution or cause, so I can reinstall Aeva.

Note: Avea installed without problems or errors, but I didn't have an adminpanel for it, and it didn't function. So I used the parser and filled in the pieces that were missing, and it worked. Thought I mention this, maybe it's part of the problem ;)

Thanks in advance
MrNicotine

Edit: I removed Aeva manually (backwards parser for the mod), but this doesn't help. Still no acces for my users....
I have no idea what's causing this.....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 10, 2011, 05:32:45 PM
MrNicotine (http://www.simplemachines.org/community/index.php?action=profile;u=307984)
If members above Regular Members can see and enter in chat then it sounds like it's working.
have you checked Admin>Members>Permissions and make sure Regular Members have access?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maryclare on November 10, 2011, 11:35:10 PM
I just downloaded the Ajax chat mod, but there is no install.php file???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 11, 2011, 12:09:03 AM
Which version of the mod did you install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 11, 2011, 02:09:48 AM
Quote from: maryclare on November 10, 2011, 11:35:10 PM
I just downloaded the Ajax chat mod, but there is no install.php file???
As this is your very first post, have you used SMF before? do you know the correct way to install mods?
you do not upload the package your self and then try to install it. that's the Vbulletin way of installing mods.
SMF have a much better way. Admin>Packages Manager
have a feel around in there and become more comman with installing and uploading mods to your site.
and if your stuck then please search the community boards on how to install mods.
cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on November 11, 2011, 04:31:08 AM
Quote from: T3CHN0 on November 10, 2011, 05:32:45 PM
MrNicotine (http://www.simplemachines.org/community/index.php?action=profile;u=307984)
If members above Regular Members can see and enter in chat then it sounds like it's working.
have you checked Admin>Members>Permissions and make sure Regular Members have access?

Yes the permissions are fine, that's not it.That was the first thing I checked.
Any other options? 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 11, 2011, 06:36:14 AM
Quote from: MrNicotine on November 11, 2011, 04:31:08 AM
Quote from: T3CHN0 on November 10, 2011, 05:32:45 PM
MrNicotine (http://www.simplemachines.org/community/index.php?action=profile;u=307984)
If members above Regular Members can see and enter in chat then it sounds like it's working.
have you checked Admin>Members>Permissions and make sure Regular Members have access?

Yes the permissions are fine, that's not it.That was the first thing I checked.
Any other options?
whats your URL, I will have a look PM it to me if you like, best way is to add it to your account settings. this way people who help don't need to ask :)
cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RCmod on November 11, 2011, 11:51:38 AM
Hello, I have a few minor issues with Ajax chat that I wonder if anyone can help me with.

First we have SMF 1.1.15 with ajax chat integration 3.2.1.

I have a few issues but this first one is top on my list.

We don't have the chat enabled, just the shout box. In order for people to get updates in the shoot box you must click the the field where you would type to send txt to the shout box. So basically your courser must be active in the send txt field of the shout box or no new txt from others will appear. Is this normal?

The second issue is I think a session issue. When someone is logged in they can send txt to the shout and their user name appears. But after their session has expired their user name turns to a number and they can still send text to the shout box. So these people don't even appear to be online in the info center and are still able to send txt and monitor the shout all while being offline. I'm assuming the arbitrary number their user name changes to is their session number? Is this normal or can this be addressed?

I have looked through the FAQ and don't see anything about these two.

I have a few other issues but relatively minor compared with these two.

Thanks for any help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 11, 2011, 03:09:25 PM
Hello I can't help support 1.1.15 I only deal with 2.0 but I will try.
Quote from: RCmod on November 11, 2011, 11:51:38 AM
Hello, I have a few minor issues with Ajax chat that I wonder if anyone can help me with.

First we have SMF 1.1.15 with ajax chat integration 3.2.1.

I have a few issues but this first one is top on my list.

We don't have the chat enabled, just the shout box. In order for people to get updates in the shoot box you must click the the field where you would type to send txt to the shout box. So basically your courser must be active in the send txt field of the shout box or no new txt from others will appear. Is this normal?
With 2.0 this happens when you have a media mod installed as well, most times it it will give you an error message first and then populate the shoutbox contents
if you know how to FTP I have attached my shoutbox template, if it works for you I can edit it to make it more how you want it if you like. other then this I'm sorry but
maybe someone else could help more with 1.1.15

QuoteThe second issue is I think a session issue. When someone is logged in they can send txt to the shout and their user name appears. But after their session has expired their user name turns to a number and they can still send text to the shout box. So these people don't even appear to be online in the info center and are still able to send txt and monitor the shout all while being offline. I'm assuming the arbitrary number their user name changes to is their session number? Is this normal or can this be addressed?
check your members permissions, I don't know where they are on 1.1.15 but you will find this is to do with Guest being able to posts
also in FAQ you will find the answer on how you can edit config.php to turn guest off. member permissions should be all you need to change though
Turn everything off for guest to do with chat and shoutbox. user or none user if not logged in then chat or shoutbox will display them as a number.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RCmod on November 11, 2011, 04:26:31 PM
Quote from: T3CHN0 on November 11, 2011, 03:09:25 PM
With 2.0 this happens when you have a media mod installed as well, most times it it will give you an error message first and then populate the shoutbox contents
if you know how to FTP I have attached my shoutbox template, if it works for you I can edit it to make it more how you want it if you like. other then this I'm sorry but
maybe someone else could help more with 1.1.15

I do in fact have a media mod installed called YouTube BBCode 2.6. Do you think that is the issue? I do know how to FTP but don't have access to that. I will pass on the temple to the web guy and see what he thinks.

Quote
check your members permissions, I don't know where they are on 1.1.15 but you will find this is to do with Guest being able to posts
also in FAQ you will find the answer on how you can edit config.php to turn guest off. member permissions should be all you need to change though
Turn everything off for guest to do with chat and shoutbox. user or none user if not logged in then chat or shoutbox will display them as a number.

I do in fact have quest permission disabled already. In fact the shout box cant be seen by new members, only members with 10 posts or more. I did read about disabling guest in config.php, you think this might still be the issue even with quest disabled in admin panel?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 11, 2011, 06:34:59 PM
QuoteBut after their session has expired their user name turns to a number and they can still send text to the shout box
when there session times out they become a guest again. if only members who post at lest 15 times can see the chat 'must not be working'
because numbers as names in chat are from guests. I would ask your web guy to edit the config.php as well and turn guests off.
QuoteYouTube BBCode 2.6. Do you think that is the issue?
could be!!! I don't use 1.1.15 but might be worth uninstalling if you can to give it a test, or wait to try my template with it still installed.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on November 12, 2011, 06:49:41 PM
On your advise I downloaded your Index.php, but I'm not sure in what directory to put this.
It looks nothing like the ones in /chat or /shoutbox, so there I got confused.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 12, 2011, 09:46:24 PM
Quote from: MrNicotine on November 12, 2011, 06:49:41 PM
On your advise I downloaded your Index.php, but I'm not sure in what directory to put this.
It looks nothing like the ones in /chat or /shoutbox, so there I got confused.
/chat/lib/template & /shoutbox/lib/template
rename the one that is there to shoutbox.bck first to keep as a backup
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on November 13, 2011, 08:27:36 AM
Tried it, but no effect..... Users still cannot see the Chat or Shout.

I like to keep that .html off yours, if you don't mind, it's a lot better now for appearance ;)

But this isn't the solution. What I didn't mention is that I'm using 3.2.1.
Would it help to use the 3.2.2?

Edit: I also found that the lines for /themes are not there in my custom theme. Only in default.
Now I did test using the default theme, and still it didn't work. So probably this is nothing.
But I'm grasping for anything now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 13, 2011, 06:41:50 PM
Quote from: MrNicotine on November 13, 2011, 08:27:36 AM
Tried it, but no effect..... Users still cannot see the Chat or Shout.

I like to keep that .html off yours, if you don't mind, it's a lot better now for appearance ;)
go for it, happy you like it.

QuoteBut this isn't the solution. What I didn't mention is that I'm using 3.2.1.
Would it help to use the 3.2.2?
yes, their are some small changes to it to work better with google chrome and other little changes
But chrome just doesn't agree with SMF a hole lot and it's better to use FireFox with SMF

QuoteEdit: I also found that the lines for /themes are not there in my custom theme. Only in default.
Now I did test using the default theme, and still it didn't work. So probably this is nothing.
But I'm grasping for anything now.
I found on your site when I used Google Chrome shoutbox would not work at all but with FireFox it worked perfect
and I am a standard member. have you tried other browsers to see the differences and maybe find error's that
the browser you are using doesn't show?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pixeleyes on November 15, 2011, 10:53:35 AM
How to fix this error.

Error: Connection status: 502

Every after few minutes this error appears then chat doesn't working ....



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 15, 2011, 11:26:07 AM
Quote from: pixeleyes on November 15, 2011, 10:53:35 AM
How to fix this error.

Error: Connection status: 502

Every after few minutes this error appears then chat doesn't working ....

Have you looked at the mods FAQs?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pixeleyes on November 15, 2011, 11:40:47 AM
Yes I have already .....

Only got below one so don't know if this work or not.

If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing
Open chat/js/chat.js
Find
Quotethis.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
Replace with
Quoteif (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus '+this.getHttpRequest(identifier).status);
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: projectnaija on November 15, 2011, 02:02:34 PM
how can i install this on smf 2.0 stable
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on November 15, 2011, 02:39:38 PM
QuoteI found on your site when I used Google Chrome shoutbox would not work at all but with FireFox it worked perfect
and I am a standard member. have you tried other browsers to see the differences and maybe find error's that
the browser you are using doesn't show?

Thanks for looking, but actually, you weren't a standard member.
One of my globals gave you a higher status, so you could see chat, after I mentioned you could come online and may ask some questions.
My fault, I didn't tell them to leave things as they are.
So, it still doesn't work for normal users. I'll take a look at the 3.2.2 version, as I'm starting to give up on this.

One last question, then. Could Portamx be the problem (as you mentioned it's probably a conflict between chat and a media mod).
And if it could, won't it give the same problem with the 3.2.2 version?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 15, 2011, 06:32:36 PM
Quote from: projectnaija on November 15, 2011, 02:02:34 PM
how can i install this on smf 2.0 stable
be a good idea to upgrade your forum to 2.0.1 then install Ajax chat 3.2.2 version
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 15, 2011, 06:39:32 PM
Quote from: MrNicotine on November 15, 2011, 02:39:38 PM
Thanks for looking, but actually, you weren't a standard member.
One of my globals gave you a higher status, so you could see chat, after I mentioned you could come online and may ask some questions.
My fault, I didn't tell them to leave things as they are.
So, it still doesn't work for normal users. I'll take a look at the 3.2.2 version, as I'm starting to give up on this.

One last question, then. Could Portamx be the problem (as you mentioned it's probably a conflict between chat and a media mod).
And if it could, won't it give the same problem with the 3.2.2 version?
No I don't believe Portamx is the problem, it's a portal mod not a media mod.
As chat works for members greater then standard members it still looks like permission settings need to be set.
I sent you a PM.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 15, 2011, 06:46:30 PM
Quote from: pixeleyes on November 15, 2011, 11:40:47 AM
Yes I have already .....

Only got below one so don't know if this work or not.

If you get a Connection  Status: 0 error from time to time it's harmless and you can stop it from showing
Open chat/js/chat.js
Find
Quotethis.addChatBotMessageToChatList('/error ConnectionStatus ' this.getHttpRequest(identifier).status);
Replace with
Quoteif (this.getHttpRequest(identifier).status != 0) {
this.addChatBotMessageToChatList('/error ConnectionStatus ' this.getHttpRequest(identifier).status);
}
You will not find in FAQ the answer to connection error 502 because there is no post on this error apart from your own
this looks like a self hosted site error. maybe have a look at this site (http://www.checkupdown.com/status/E502.html) and see if it enlightens you as to what the problem could be.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 15, 2011, 08:40:36 PM
Ok, I'm back, and this continues on about getting a custom group color in the chat while giving them chad mod powers, but NOT changing their color to green.

http://www.simplemachines.org/community/index.php?topic=257973.msg3157550#msg3157550

I tried removing all .moderator statements that changed chat mod members to green.  this didn't work.  I tried creating two new custom member groups with different colors, gibing them both chat mod permissions, bu heir colors always remained the same.

Let me ask this. 

How can I had a custom user group to have chat mod permissions, WITHOUT making them green in the chat.  I've tried several different angles, and just couldn't get it to work properly.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maryclare on November 15, 2011, 10:13:07 PM
I installed Ajax Chat 3.2.1 with SMF 1.15.  I get a successful installation.  I have 2 problems

1. Only Admin can post, not Regular Members.
2. Admin panel has no text boxes describing the features (there are 6 check boxes) , pic attached.

I have checked Permissions and read all over the forums but have not found a fix, 4 pics attached.

Notice how the text does not appear in the Admin or permission panel.

Any help will be appreciated!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 15, 2011, 10:15:01 PM
Is English the forums language?

The top 3 boxes are related to the shoutbox the lower  3 the chatroom.

If you only use the chat then tick the lower 3.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maryclare on November 15, 2011, 10:38:58 PM
Yes, English is the Language.  However, when I upgraded to 1.15, there was a problem with the language directories, and from a post on her, I bypassed it, step 0 to step 1 I think it was, I can search for that post, but my language files I believe are at 1.13. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 15, 2011, 10:56:47 PM
Quote from: maryclare on November 15, 2011, 10:38:58 PM
Yes, English is the Language.  However, when I upgraded to 1.15, there was a problem with the language directories, and from a post on her, I bypassed it, step 0 to step 1 I think it was, I can search for that post, but my language files I believe are at 1.13.
I fail to see how a good install with no errors was successful on adding info to an english php file and then not work. but that's beside the point.
I don't know if this can help you out for now until you work it out but here are the settings layout for 2.0.1
the last 2 images you show are for TP I believe.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maryclare on November 15, 2011, 11:06:57 PM
Thank you.

I installed from Admin Package in the forum w/o errors.  (Have removed and reinstalled several times.)

Do you have any suggestions why Regular members cannot post and only Admin users can?

Are you suggesting I try to update the language files?

Or are you suggesting I upgrade to SMF 2.0?  (I tried that once (WebInstall) and it failed miserably so I quickly restored to 1.15)

Would it help if I shared my subs.php or ssi.php or any other data file?

I've been pulling my hair out for days on this.  Had the same issue when I enabled the TP Shout w/o Ajax.  Only Admin could post...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 15, 2011, 11:16:17 PM
Quote from: maryclare on November 15, 2011, 11:06:57 PM
Thank you.

I installed from Admin Package in the forum w/o errors.  (Have removed and reinstalled several times.)

Do you have any suggestions why Regular members cannot post and only Admin users can?

Are you suggesting I try to update the language files?

Or are you suggesting I upgrade to SMF 2.0?  (I tried that once (WebInstall) and it failed miserably so I quickly restored to 1.15)

Would it help if I shared my subs.php or ssi.php or any other data file?

I've been pulling my hair out for days on this.  Had the same issue when I enabled the TP Shout w/o Ajax.  Only Admin could post...
I sent you a PM, Sounds like member permissions again...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maryclare on November 15, 2011, 11:19:29 PM
Could it be a CHMOD permissions Issue?  As I look at the various directories in the forum, they are all over the map, and I see several files called  xxx.php~ in addition to the xxx.php file

I'll be happy to share my screen with you if that would help.

Or should I consider backing up the db and the forum, then deleting everything and start from scratch?

I'd really like to get it working and I don't think I'm that far away.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 15, 2011, 11:27:31 PM
xxx.php~ in addition to the xxx.php are backups of the file before installing the last mod. only effective if you know what files
were edited by the last mod installed in the case of a forum crash you can restore to last point. but if you have allot of mods installed
and allot of xxx.php~ then do not go replacing them all as that will screw your forum up. I don't think you need to rebuild but if
you think you will move passed this problem by doing so! then that's your call.
as for chmod permissions, if your chat is working for admins then the chmod settings are fine.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 15, 2011, 11:30:02 PM
what is the forums link?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperBrian91 on November 16, 2011, 05:35:30 PM
Hi, I am new here so I hope someone can help me.

I installed the AJAX a few days ago and work perfect with the default theme, but I installed a new theme the other day Decal by Runic (http://custom.simplemachines.org/themes/index.php?lemma=2328) and now the list of users in chat isn't showing at the bottom of the index page of the forum just under the list of online users. It must be a problem with the theme because it works fine will all the default themes with SMF 2.0.

So I am just wondering is there anyway to edit the code somewhere to fix this problem? Thanks

Oh and one other thing, is it possible to change the title of the chat as standard is says "AJAX Chat" can this be changed to something else like the name of my site?

Thanks in advance....by the way I'm new to SMF so they is all alien and new to me.  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 16, 2011, 06:30:56 PM
Quote from: SuperBrian91 on November 16, 2011, 05:35:30 PM
Hi, I am new here so I hope someone can help me.

I installed the AJAX a few days ago and work perfect with the default theme, but I installed a new theme the other day Decal by Runic (http://custom.simplemachines.org/themes/index.php?lemma=2328) and now the list of users in chat isn't showing at the bottom of the index page of the forum just under the list of on-line users. It must be a problem with the theme because it works fine will all the default themes with SMF 2.0.

So I am just wondering is there anyway to edit the code somewhere to fix this problem? Thanks
Uninstall and reinstall the mod and include your theme on install should fix that for you. if not then can you upload your index.template.php from you theme.
Keep in mind as well that you need to select your theme now and stay with it. if you in time have installed 10 mods and decide you want a new theme! you will need to remove and reinstall all the mods again or edit the themes php files your self with the missing code.
Quote
Oh and one other thing, is it possible to change the title of the chat as standard is says "AJAX Chat" can this be changed to something else like the name of my site?

Thanks in advance....by the way I'm new to SMF so they is all alien and new to me.  :)
The Ajax Chat you are talking about is when you click on the CHAT button and you see Ajax Chat in bit text! would this be the one you are talking about?
yes it can be done but note sure how... I will have to have a look a bit later when I have more time.

cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 16, 2011, 06:44:45 PM
Quote
Oh and one other thing, is it possible to change the title of the chat as standard is says "AJAX Chat" can this be changed to something else like the name of my site?

Thanks in advance....by the way I'm new to SMF so they is all alien and new to me.  :)

Quote
The Ajax Chat you are talking about is when you click on the CHAT button and you see Ajax Chat in bit text! would this be the one you are talking about?
yes it can be done but note sure how... I will have to have a look a bit later when I have more time.

cheers

The LoggedIn and Logged out files are the ones you want.

I have attached my loggedin file and hopefully you should see where I have changed my rooms name to Change me. This is where your forum name goes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 16, 2011, 07:12:04 PM
Hello Brack1
trying to download your loggedin.html with FireFox and it keeps trying to download index.php instead.
I tried the download with IE and the download works with the correct file. Something weird happening with firefox and SMF
downloads all over the SMF boards FireFox doesn't seam to like downloading the attachments with there correct name.

I see your edit in the /chat/lib/template/loggedin.html
find
<h1>[LANG]title[/LANG]</h1>
change it to             <h1>your forum name</h1>
nice work
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 16, 2011, 07:14:19 PM
Forgot to mention Logged out is the same.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maryclare on November 17, 2011, 04:57:27 PM
Quote from: T3CHN0 on November 16, 2011, 07:12:04 PM
Hello Brack1
trying to download your loggedin.html with FireFox and it keeps trying to download index.php instead.
I tried the download with IE and the download works with the correct file. Something weird happening with firefox and SMF
downloads all over the SMF boards FireFox doesn't seam to like downloading the attachments with there correct name.

I see your edit in the /chat/lib/template/loggedin.html
find
<h1>[LANG]title[/LANG]</h1>
change it to             <h1>your forum name</h1>
nice work


Is the above for changing the Chat Title?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 17, 2011, 05:51:58 PM
yes, it'll change the title from "Ajax Chat" up top in the main chat, to whatever you want it to be
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RCmod on November 18, 2011, 06:19:09 PM
T3CHN0

Well I tried 3 things. I disabled guest in config as well as in admin panel (which it already was) and the user names turning into numbers after the cookie has expired still remains. I tried your index file and the shout box appeared correctly but I was unable to send posts to the shout.

I removed the yahoo BBC mod and the issue with having to have the courser active in the send txt box or no updates still remains.

Going through the FAQ I did notice the option to disable the error message status 0. We get this a lot in the shout I have disables the message but I wonder if there is more to this error that is causing our issues.

Also a lot of times when you type in the send txt box it never gets sent to the shout. Does this maybe help with diagnosing the issues?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 18, 2011, 09:00:39 PM
Quote from: RCmod on November 18, 2011, 06:19:09 PM
T3CHN0

Well I tried 3 things. I disabled guest in config as well as in admin panel (which it already was) and the user names turning into numbers after the cookie has expired still remains. I tried your index file and the shout box appeared correctly but I was unable to send posts to the shout.

I removed the yahoo BBC mod and the issue with having to have the courser active in the send txt box or no updates still remains.

Going through the FAQ I did notice the option to disable the error message status 0. We get this a lot in the shout I have disables the message but I wonder if there is more to this error that is causing our issues.

Also a lot of times when you type in the send txt box it never gets sent to the shout. Does this maybe help with diagnosing the issues?

Thanks
I am note real sure what else you could do with 1.1.15. I only use 2.0 my self but was just trying to help.
I did ask another to try installing the AjaxChat 3.2.1 then downloading the 3.2.2b one and extracting the contents
then using it's folders /chat and /shoutbox replacing the one from in the install on 3.2.1 and changing all the files chmod
permissions to 755 and not just the index.php file. this fixed the problem for them with not being able to chat as a normal member
I know that chatting as a normal member isn't what your problem is but might be worth just giving it a go all the same.
the config file will need editing again as well, but remember what ever edits you do in the /chat folder also need to be done
in the /shoutbox folder.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RCmod on November 18, 2011, 11:20:12 PM
T3CHN0

I know your trying and I appreciate that very very much :) Thanks!!!!

I managed to find the 3.2.2b version and replace the chat and shout folder from it into the 3.2.1 version as you suggested. Everything worked, yet with all the same errors.

Oh well I guess we will just deal with it. :(

Thanks so much for trying.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RCmod on November 19, 2011, 03:33:01 AM
Well with some more of T3CHN0's help I got it fixed. Came down to me just needing to enable chat. Silly that's all it was. I thought I could use just the shoutbox by its self.

Thanks again T3CHN0
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aleks93ts on November 19, 2011, 07:00:13 AM
where can i download ajax chat for smf 2.0.1?
thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 19, 2011, 09:07:32 AM
Quote from: aleks93ts on November 19, 2011, 07:00:13 AM
where can i download ajax chat for smf 2.0.1?
thanks
A few pages back you would have found it but here you go
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GlitchPC on November 19, 2011, 11:53:07 AM
T3CHN0,

Hate to bother you, but...I just installed the 3.2.2b version of this mod on my SMF 2.0.1 board.  Installation went without a hitch except for a single edit failure on a custom theme of mine.  The theme is Crip's Anecdota theme.  It failed for updating the index.template.php file for that particular theme.

The theme change is as follows from the package parser:

Code: (Find)
echo '
<li>', $context['current_time'], '</li>
</ul>';


Code: (Add Before)
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>';
}


Unfortunately, the Anecdota theme is not coded that way.  Instead, I have the following code for that particular theme:

echo '
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user"  size="10" />
<input type="password" name="passwrd"  size="10" />
<input type="submit" value="', $txt['login'], '" class="button_submit" />
<input type="hidden" name="hash_passwrd" value="" />
  </form>', $context['current_time'],'<br />';
  }


If there is any coding advice you can give me to fix the above edit, I certainly would appreciate it.


Thanks, in advance...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 19, 2011, 12:12:42 PM
Then just add the same code above what you already have, manually so it looks like this. ;) 

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

echo '
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user"  size="10" />
<input type="password" name="passwrd"  size="10" />
<input type="submit" value="', $txt['login'], '" class="button_submit" />
<input type="hidden" name="hash_passwrd" value="" />
  </form>', $context['current_time'],'<br />';
  }



But, to be honest, I removed that code cause it adds more to the member heading up top.  All it does is show how mnay users are in the chat, which there's already 2 other places that shows that, in the chat button, and on the board index info center.  So, it's not an absolute must to have that code for the ajax to work, if I remember correctly.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GlitchPC on November 19, 2011, 12:47:36 PM
hcfwesker,

Thanks...if it isn't necessary, then I won't add it.  I appreciate the quick reply.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maryclare on November 19, 2011, 05:26:21 PM
Hello.

I found code on the SourceForge.net sit that allows you to basically do a search and replace of posted text. 

Here is there code recommendation:  http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Mod_Word_Filter

Mod Word Filter

This modification is short and simple.

Open chat/js/custom.js
Add the following to the end of the file:

I have added the code, below is my custom.js file, and it does not work.  Could this be old, or is there something wrong with my custom.js file?



/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/

// Overriding client side functionality:

/*
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
   return text;
   
}
*/

/*
//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
    text=text.replace(/frug/gi, 'Fruggles');
    text=text.replace(/foo/gi, 'Donkey Foo');
    return text;
}
*/

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 19, 2011, 05:43:24 PM
Try this instead.  Its what i use, and works.

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace('censor', 'c****r');
    return text;
}


Just copy and add this line for each censor word you want, and make the changes.

text=text.replace('censor', 'c****r');
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on November 19, 2011, 07:06:06 PM
Quote from: T3CHN0 on November 15, 2011, 06:39:32 PM
Quote from: MrNicotine on November 15, 2011, 02:39:38 PM
Thanks for looking, but actually, you weren't a standard member.
One of my globals gave you a higher status, so you could see chat, after I mentioned you could come online and may ask some questions.
My fault, I didn't tell them to leave things as they are.
So, it still doesn't work for normal users. I'll take a look at the 3.2.2 version, as I'm starting to give up on this.

One last question, then. Could Portamx be the problem (as you mentioned it's probably a conflict between chat and a media mod).
And if it could, won't it give the same problem with the 3.2.2 version?
No I don't believe Portamx is the problem, it's a portal mod not a media mod.
As chat works for members greater then standard members it still looks like permission settings need to be set.
I sent you a PM.

T3chno, you've been a great help on my forum. Thanks for this, I really appreciate it ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 19, 2011, 09:17:58 PM
Quote from: hcfwesker on November 19, 2011, 05:43:24 PM
Try this instead.  Its what i use, and works.

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace('censor', 'c****r');
    return text;
}


Just copy and add this line for each censor word you want, and make the changes.

text=text.replace('censor', 'c****r');
Hi hcfwesker this is a good option for others and I didn't know about his one.
I added it to test but doesn't work for me
I did the following
edit the /chat/js/custom.js and added what you said so mine now looks like this
/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/

// Overriding client side functionality:

/*
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
    return text;
}
*/
//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace('test', 't**T');
text=text.replace('hello', 'h***o');
text=text.replace('holden', 'ford');
    return text;
}

but after doing this and testing it; the words didn't change. I cleared my cache and tried a few other browsers but still the same.
tested as administrator and standard member as well.. Did I do something wrong

I only ask as others might find the same problem. my self if I see something posted I don't like I simply remove it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 19, 2011, 09:24:17 PM
Quote from: T3CHN0 on November 19, 2011, 09:17:58 PM
but after doing this and testing it; the words didn't change. I cleared my cache and tried a few other browsers but still the same.
tested as administrator and standard member as well.. Did I do something wrong

I only ask as others might find the same problem. my self if I see something posted I don't like I simply remove it.

Have you set this files permissions to 777 , that may be it.

Go to the chat, and do an F5 hard refresh.  Then test.  All i know is it works perfectly on our forum.  We use this to store member's online gaming friend codes.  We've got over 200 members that are stored in this censor file, and all work.   Edited just to show as a preview ....

/Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace('hcfweskerFC?', 'hcfwesker FC: 3050-7720-6194');
text=text.replace('SpiritFC?', 'Spirit FC: 4554-3872-0844');
text=text.replace('TriforceOSMFC?', 'TriforceOSM FC: 0259-4991-6513');
text=text.replace('ArcueidFC?', 'Arcueid FC: 4897-5731-9905')
    return text;
}


I just noticed something, and not sure if it was always like that, or my co-admin messed up, but there's no ";" semi-colon on the last censor line in the code.   Maybe thats whats stopping it, but i doubt it.  Try the hard refresh in the chat, then try the code without the semicolon inb the last phrase like you see in my code, with   text=text.replace('ArcueidFC?', 'Arcueid FC: 4897-5731-9905')    <---- no semicolon
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 19, 2011, 09:56:43 PM
Hmm did all that but still not working,, would you mind sending your js folder packed so I can download it and have a look
or maybe ask your co-admin if there is something else he changed as well for censorship to work.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 19, 2011, 10:11:07 PM
No other files were edited to make this work.  I did the edits in the file, my co-admin just helps me add new lines when members request their code 'reword' be added to the chat.   Here's what my entire custom.js file looks like (edited manu of the censors inbetween to limit space ....


/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/

// Overriding client side functionality:

/*
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
return text;
}
*/

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
text=text.replace('hcfweskerFC?', 'hcfwesker FC: 3050-7720-6194');
text=text.replace('SpiritFC?', 'Spirit FC: 4554-3872-0844');
text=text.replace('CamdenFC?', 'Camden FC: 0732-2814-7068');
text=text.replace('iLinkFC?', 'iLink FC: 0602-5945-7011');
text=text.replace('BoshiFC?', 'Boshi FC: 1032-1319-5420');
text=text.replace('Phoenix_vXFC?', 'Phoenix_vX FC: 0731-4415-7566');
text=text.replace('TriforceOSMFC?', 'TriforceOSM FC: 0259-4991-6513');
text=text.replace('ArcueidFC?', 'Arcueid FC: 4897-5731-9905')
    return text;
}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 20, 2011, 12:01:19 AM
OK I will have a play around with this and see if I can find out why it doesn't work for me.
just one other thing, in your edit I see '?' is this important to the edit
text=text.replace('censor', 'c****r');
should it be like this
text=text.replace('censor?', 'c****r');

Never mind found the answer
If I do the code like this in my

/chat/js/custom.js it works beautifully and if wanting the shoutbox only then the same edit needs to be done to /shoutbox/js/custom.js

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
    text=text.replace(/1/gi, 'one');
    text=text.replace(/2/gi, 'two');
    text=text.replace(/3/gi, 'three');
    text=text.replace(/4/gi, 'four');
    text=text.replace(/5/gi, 'five');
    text=text.replace(/hi/gi, 'hello');
     text=text.replace(/bob/gi, 'robert');
     text=text.replace(/sing/gi, 'song');
     text=text.replace(/live/gi, 'life');
     text=text.replace(/sun/gi, 'moon');
    return text;
}

    text=text.replace(/ put the correct word here /gi, ' put the new word here ');
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: luckyMM on November 22, 2011, 08:58:45 AM
Quote from: T3CHN0 on November 19, 2011, 09:07:32 AM
Quote from: aleks93ts on November 19, 2011, 07:00:13 AM
where can i download ajax chat for smf 2.0.1?
thanks
A few pages back you would have found it but here you go
Can someone please upload T3CHN0's Ajax chat package  from www.mediafire.com . I can't download this link because i need to use proxy software . SMF give me dns server failure.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 22, 2011, 09:18:25 AM
Quote from: luckyMM on November 22, 2011, 08:58:45 AM
Quote from: T3CHN0 on November 19, 2011, 09:07:32 AM
Quote from: aleks93ts on November 19, 2011, 07:00:13 AM
where can i download ajax chat for smf 2.0.1?
thanks
A few pages back you would have found it but here you go
Can someone please upload T3CHN0's Ajax chat package  from www.mediafire.com (http://www.mediafire.com) . I can't download this link because i need to use proxy software . SMF give me dns server failure.
Not my mod lol just like it so much I am happy to support it if I can
try this link http://www.2shared.com/file/VaVsCT9w/AjaxChat_Integration_322b.html
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: bigggan on November 22, 2011, 03:53:00 PM
Can someone please post a Link here from wikiupload.com/ or something since I had to make an account here to get this mod....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 22, 2011, 06:37:01 PM
Quote from: bigggan on November 22, 2011, 03:53:00 PM
Can someone please post a Link here from wikiupload.com/ or something since I had to make an account here to get this mod....
Don't know why you need to register to the other link I gave you. I am not registered and others I have sent files didn't need to either
but thats beside the point here is a link to AjaxChat3.2.2b upload to the site you like http://www.wikiupload.com/M7F1AQN75PPFHHN
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BaghdadGhost on November 22, 2011, 10:45:37 PM
first I would like to thank all members and mod authors helped in this matter.


I installed this great mod before and my hosting company complained about it as it was using a lot of their resources. I understood the situation and uninstalled it.


recently I upgraded my subscription with my host to plus (meaning double of what I used to get) and because I liked this chatbox before I thought of giving it a try with the new limits.

after searching and reading most of the comments in this topic, I installed the curve friendly version with no errors. and after setting everything I kept an eye on the chat and my cpanal indicators. the chat and shoutbox was used for about half an hour by two members at a time. all the sudden I noticed the following

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg684.imageshack.us%2Fimg684%2F3781%2Fcpur.jpg&hash=e503036fe1e6cf34017ecc4fdf1bf55d0fef9bb7) (http://imageshack.us/photo/my-images/684/cpur.jpg/)

Uploaded with ImageShack.us (http://imageshack.us)

as far as I understood from the author of this mod and some members, this chat box is ok on shared servers with limited use of it (less than 10 members) and based on that I should be ok especially after doubling the capacity of cpu usage and script executions.


does anyone have an opinion regarding my problem?


thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BaghdadGhost on November 22, 2011, 11:41:37 PM
Quote from: mrtrc266 on April 23, 2010, 01:40:16 AM
Quote from: amcapt89 on April 22, 2010, 12:53:36 PM
Hello mrtrc266,

many thanks for your last advice, that worked perfectly.

Now I have a small issue... And it's about my Account Executions; apparently since I installed the Chat + Shoutbox, the account executions stats form my host, are getting quite high...:

What should I do? I'm really happy on how the chat and the box work; should I just accept the peak? or is there any way to solve the problem?
Just to let you know, the chat is a nice feature, but what I'm really intrested in is just the shoutbx...
Many thanks for your help!!!

Cheers!

Yes this will can a load on your server especially if you have a lot of users chatting at the same time. If you only want the shoutbox in your admin settings make sure you uncheck "Integrate shout box and chat room?" then remove the chat button from your menu barso members won't enter the chat room.

Then check your spikes and see if that decreases your spikes any

by the way, I found this reply. is the chat box responsible of the load on the server?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BaghdadGhost on November 23, 2011, 12:12:01 AM
ok guys,


when I found the note quoted in my previous reply I disabled  chatting for members, I decided to just use the shoutBox and was going for about 45 minutes or less just sending messages in the shoutbox by myself with no participation of other members. I did not use the chat just used the shoutbox.

please see the difference in the attached images


before

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg839.imageshack.us%2Fimg839%2F2330%2Fcpu2f.jpg&hash=c548159400cf1b5a74c5337ffe8070509bac4449) (http://imageshack.us/photo/my-images/839/cpu2f.jpg/)

Uploaded with ImageShack.us (http://imageshack.us)



after


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg27.imageshack.us%2Fimg27%2F2192%2Fcpu3uk.jpg&hash=8b355b34aca70ba6bd584e8c2fd7306fee932b7c) (http://imageshack.us/photo/my-images/27/cpu3uk.jpg/)

Uploaded with ImageShack.us (http://imageshack.us)



any suggestions?


thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BaghdadGhost on November 23, 2011, 12:18:24 AM
thought that you guys might need to take a look at this




(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg4.imageshack.us%2Fimg4%2F8351%2Fcpu4g.jpg&hash=09bbc1317ede53ec79fbc4186e572be028cbe7dc) (http://imageshack.us/photo/my-images/4/cpu4g.jpg/)

Uploaded with ImageShack.us (http://imageshack.us)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperBrian91 on November 23, 2011, 05:15:36 PM
Hi I posted a couple a days ago with the following problem that is quoted below, I was told a solution to the second problem I had which was changing the title of the chat. Thanks very much for the help with that  :)

But moving onto the first problem I had with the list of users in chat not showing up under the list of online users. A member a few pages back said to upload my index.template.php so I have that attached so I hope someone can help me with that problem.

Thanks very much in advance!  :)

Note: I have changed my theme since to "Officebox" I dunno who the author is.

Quote from: SuperBrian91 on November 16, 2011, 05:35:30 PM
Hi, I am new here so I hope someone can help me.

I installed the AJAX a few days ago and work perfect with the default theme, but I installed a new theme the other day Decal by Runic (http://custom.simplemachines.org/themes/index.php?lemma=2328) and now the list of users in chat isn't showing at the bottom of the index page of the forum just under the list of online users. It must be a problem with the theme because it works fine will all the default themes with SMF 2.0.

So I am just wondering is there anyway to edit the code somewhere to fix this problem? Thanks

Oh and one other thing, is it possible to change the title of the chat as standard is says "AJAX Chat" can this be changed to something else like the name of my site?

Thanks in advance....by the way I'm new to SMF so they is all alien and new to me.  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 23, 2011, 05:50:50 PM
Actually, the problem with "users in chat" at the bottom of the forum is going to be cause of that new custom themes BoardIndex.template.php. 

Goto the MOD page and parse the package for your SMF version, and look at the edits it makes to the Themes/default/BoardIndex.template.php file, and make the same edits to your custom themes file.

Anytime a custom theme is added, or needs to be modified, 99.9% of the time it's going to need edits to both the custom themes BoardIndex.template.php  &  index.template.php  files.

Or you can post your file here from your custom theme, and someone may offer to help do it for you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperBrian91 on November 23, 2011, 06:03:03 PM
Quote from: hcfwesker on November 23, 2011, 05:50:50 PM
Actually, the problem with "users in chat" at the bottom of the forum is going to be cause of that new custom themes BoardIndex.template.php. 

Goto the MOD page and parse the package for your SMF version, and look at the edits it makes to the Themes/default/BoardIndex.template.php file, and make the same edits to your custom themes file.

Anytime a custom theme is added, or needs to be modified, 99.9% of the time it's going to need edits to both the custom themes BoardIndex.template.php  &  index.template.php  files.

Or you can post your file here from your custom theme, and someone may offer to help do it for you.


Hi,

Oh its the BoardIndex.template.php I don;t know that sorry, all this SMF and PHP is all new to me.

I don't have any knowledge of editing these files unless someone would give me step by step instructions. So I am going to upload/attach my BoardIndex.template.php and hope someone can help me.

Thanks in advance.

Regards,
Brian.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 23, 2011, 06:10:23 PM
I'll try and do them for you.  what smf version are you on? 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperBrian91 on November 23, 2011, 06:13:17 PM
Quote from: hcfwesker on November 23, 2011, 06:10:23 PM
I'll try and do them for you.  what smf version are you on? 

Oh that would be great thank you very much, I am using SMF 2.0.1.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 23, 2011, 06:21:09 PM
Try the attached file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperBrian91 on November 23, 2011, 06:26:46 PM
Quote from: hcfwesker on November 23, 2011, 06:21:09 PM
Try the attached file.
That worked perfect hcfwesker I don't know how to thank you enough. I am very great full Thank you.  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 23, 2011, 06:39:28 PM
Not a problem, we all were new at some point.  You'll catch on to modifying your php files in no time.  Just always make a backup of the file you're working on for safety measures.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BaghdadGhost on November 23, 2011, 06:57:02 PM
Hi hcfwesker,


would you mind giving me you opinion about the problem I explained earlier?


thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: duckydan69 on November 23, 2011, 10:44:41 PM
My members (Safari users) are getting an error "TypeError: 'undefined' is not a function (evaluating 'this.target.create(className)') " when accessing the chat.

It blocks all sounds and the default CSS theme is blocked so you only see scrolling text with a dropdown for channel and style. (you can see the dropdown and selecting "Core" instead of "Default" makes the page appear fine but still no sounds.)

Any idea what can be causing this and what I can do to fix it?  Tried searching but only found other sites talking about how they disabled ajaxchat as a result.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 23, 2011, 10:58:39 PM
Quote from: BaghdadGhost on November 23, 2011, 06:57:02 PM
Hi hcfwesker,

would you mind giving me you opinion about the problem I explained earlier?
thanks

I really have no clue what all that means.  Ajax Chat rapes a lot of bandwidth and resources.  I went through 4 different hosting companies before I found one that would allow, and support my need for it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BaghdadGhost on November 23, 2011, 11:01:45 PM
thanks for the reply.

so what I mentioned and all the information sounds right and no other think could solve the problem except a new host?


by the way, is it ok if you PM me you site's hosting company?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cutedoctor on November 27, 2011, 02:59:23 PM
Good Mod but very limited settings , I don't understand why there is no extensive settings options to adjust , like deleting rooms , changing names ,changing access to specific rooms ...etc

Thanks,,
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on November 27, 2011, 03:12:36 PM
If I were you I'd demand my money back.

Or are you offering to code these extras? Or offering anything helpful?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 27, 2011, 05:40:35 PM
You can add the following edits to this mod.

Replace Ajax Chat with your forums name.

Add a welcome message.

Remove text when you first enter the room.

Only have one room, colour and language showing.

Include a word filter.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 27, 2011, 06:38:57 PM
Quote from: cutedoctor on November 27, 2011, 02:59:23 PM
Good Mod but very limited settings , I don't understand why there is no extensive settings options to adjust , like deleting rooms

Read the FAQ, in big purple letters on the first post in this topic.  click it

Quotechanging access to specific rooms ...etc

Members will only have access to rooms/channels named after boards they have access to on the forum.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cutedoctor on November 27, 2011, 07:24:51 PM
Quote from: hcfwesker on November 27, 2011, 06:38:57 PM
Quote from: cutedoctor on November 27, 2011, 02:59:23 PM
Good Mod but very limited settings , I don't understand why there is no extensive settings options to adjust , like deleting rooms

Read the FAQ, in big purple letters on the first post in this topic.  click it

Quotechanging access to specific rooms ...etc

Members will only have access to rooms/channels named after boards they have access to on the forum.

I read it before , no mention of changing settings easily ,
i.e after install , rooms names came as boards names exactly but I donot want that , I want only one public, one private, ...etc and different access assgined , or assign by name for example .
I donot want it the way you mentioned by boards access ?

I hope that can be done
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 27, 2011, 08:33:35 PM
Quote from: cutedoctor on November 27, 2011, 07:24:51 PM
I read it before , no mention of changing settings easily ,
i.e after install , rooms names came as boards names exactly but I donot want that , I want only one public, one private, ...etc and different access assgined , or assign by name for example .
I donot want it the way you mentioned by boards access ?

I hope that can be done

Well, you are going to have to do some file editing.  If you're not willing to, then SMF may not have been the best software choice.

FAQ topic : http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766


I want only one public room/channel

Find this header in the FAQ topic.
QuoteTo have ONLY the Public Room avaliable in the Channel List, change the array to 0 (Thanks stikkki)

prevent members changing names

/chat/lib/config.php

find
// Allow/Disallow users to change their userName (Nickname):
$config['allowNickChange'] = true;


^ change true to false.

different access assgined

If you mean chat access, then you have to do this in your forum's admin panel, under Permissions.  Assign chat access permissions to membergroups you want to have access.


If you can't manage this edits, just upload your chat/lib/config.php file, and I'll make the change for you.  which you'll have to upload to your server to replace the original.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: duckydan69 on November 27, 2011, 09:43:25 PM
Quote from: duckydan69 on November 23, 2011, 10:44:41 PM
My members (Safari users) are getting an error "TypeError: 'undefined' is not a function (evaluating 'this.target.create(className)') " when accessing the chat.

It blocks all sounds and the default CSS theme is blocked so you only see scrolling text with a dropdown for channel and style. (you can see the dropdown and selecting "Core" instead of "Default" makes the page appear fine but still no sounds.)

Any idea what can be causing this and what I can do to fix it?  Tried searching but only found other sites talking about how they disabled ajaxchat as a result.

Any ideas how to fix this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 27, 2011, 10:13:53 PM
Quote from: duckydan69 on November 23, 2011, 10:44:41 PM
My members (Safari users) are getting an error "TypeError: 'undefined' is not a function (evaluating 'this.target.create(className)') " when accessing the chat.

It blocks all sounds and the default CSS theme is blocked so you only see scrolling text with a dropdown for channel and style. (you can see the dropdown and selecting "Core" instead of "Default" makes the page appear fine but still no sounds.)

Any idea what can be causing this and what I can do to fix it?  Tried searching but only found other sites talking about how they disabled ajaxchat as a result.
I had same problem, after allot of edits I found by simply removing the shoutbox button to send my text fixed it.
the problem started after installing my weather mod but I have also found others get the same error with media mods that use java scripts.
they conflict with ajax chat.. have a look back a page or 2 and you will find another who had the same error. I uploaded my shoutbox.html
try it and see if that fixes your problem.
http://www.simplemachines.org/community/index.php?topic=257973.msg3205764#msg3205764
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: duckydan69 on November 27, 2011, 11:17:08 PM
Quote from: T3CHN0 on November 27, 2011, 10:13:53 PM

I had same problem, after allot of edits I found by simply removing the shoutbox button to send my text fixed it.
the problem started after installing my weather mod but I have also found others get the same error with media mods that use java scripts.
they conflict with ajax chat.. have a look back a page or 2 and you will find another who had the same error. I uploaded my shoutbox.html
try it and see if that fixes your problem.
http://www.simplemachines.org/community/index.php?topic=257973.msg3205764#msg3205764

I tried that file and still get the same error (in chat and shout box):

"TypeError: 'undefined' is not a function (evaluating 'this.target.create(className)')"

THe problem only happens in Safari that I can see.

The only other mods installed on my site are:
- Password protected boards
- Treasury
- ADK Blog
- SMF Trader System
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 28, 2011, 01:08:22 AM
Quote from: duckydan69 on November 27, 2011, 11:17:08 PM
Quote from: T3CHN0 on November 27, 2011, 10:13:53 PM

I had same problem, after allot of edits I found by simply removing the shoutbox button to send my text fixed it.
the problem started after installing my weather mod but I have also found others get the same error with media mods that use java scripts.
they conflict with ajax chat.. have a look back a page or 2 and you will find another who had the same error. I uploaded my shoutbox.html
try it and see if that fixes your problem.
http://www.simplemachines.org/community/index.php?topic=257973.msg3205764#msg3205764 (http://www.simplemachines.org/community/index.php?topic=257973.msg3205764#msg3205764)

I tried that file and still get the same error (in chat and shout box):

"TypeError: 'undefined' is not a function (evaluating 'this.target.create(className)')"

THe problem only happens in Safari that I can see.

The only other mods installed on my site are:
- Password protected boards
- Treasury
- ADK Blog
- SMF Trader System
I installed Safari on my PC and the shoutbox works OK, I will now install the same mods you have on my test site and I will report my findings back here
cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 28, 2011, 01:29:39 AM
duckydan69
OK I have all your mods installed on my forum and shoutbox / Chat works perfect.
would you have a block added like an advertiser some kind of widget or script that you have added?
could you pm me your URL ?
-----------------------------------------------------
after some testing with Firefox, Google Chrome, Opera and Safari I find all of them to work good except Safari.
Safari is slow to load the shoutbox then the other browsers and the chat window doesn't like to load the .css files
and there for most times but not every time the chat window opens with no .css settings and just looks a mess.

there must be a security setting blocking all file from opening but even after disabling the security in Safari it still acts the same.
maybe an addon is needed for Safari I don't know. the default css loads in chat and that works well as my first test I didn't notice
a problem. after changing the style to something else is when I noticed something is wrong.

The simple answer is don't use Safari, other then that I don't really know the answer to css files not loading in Safari.
as for your error, I sent a PM to you and hope you can try it to test with.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: duckydan69 on November 28, 2011, 06:39:34 AM
No I have no add ons running with safari.  I'm also getting the report from other mac users on the site that the sounds are disabled and the same error pops up at all times.

I would like to tell people not to use Safari but that is only a band aid.  I tried using the develop tools and that doesn't help either.

What is odd is that IIRC the chat doesn't call on anything else so it has to be something in the shout box.html or the chat.js file causing the problem but without a line error it makes it impossible to pinpoint.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 28, 2011, 07:25:11 AM
Quote from: duckydan69 on November 28, 2011, 06:39:34 AM
No I have no add ons running with safari.  I'm also getting the report from other mac users on the site that the sounds are disabled and the same error pops up at all times.

I would like to tell people not to use Safari but that is only a band aid.  I tried using the develop tools and that doesn't help either.

What is odd is that IIRC the chat doesn't call on anything else so it has to be something in the shout box.html or the chat.js file causing the problem but without a line error it makes it impossible to pinpoint.
yes you has a unique problem. I have tried looking for css addons for safari, I tried using the develop tools as well with no luck
spent the passed 2 hours editing Ajax chat trying different things but still no good.

It's time to either start using firefox or find another chat mod I think, looks to be your only options now...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 29, 2011, 04:28:24 AM
Hello hcfwesker
I was wondering if you could help me out. I know the Chat command for sound and Auto scroll is this
            <input type="image" src="img/pixel.gif" class="button" id="audioButton" alt="[LANG]toggleAudio[/LANG]" title="[LANG]toggleAudio[/LANG]" onclick="ajaxChat.toggleSetting('audio', 'audioButton');"/>
            <input type="image" src="img/pixel.gif" class="button" id="autoScrollButton" alt="[LANG]toggleAutoScroll[/LANG]" title="[LANG]toggleAutoScroll[/LANG]" onclick="ajaxChat.toggleSetting('autoScroll', 'autoScrollButton');"/>

there for both audio and scroll both look at pixel.gif image when pressing sound on or off and scroll on or off.
however pixel.gif is not the images displaying and I was wondering if you could help me out as to what script commands what the images that are displayed

I am adding the sound and scroll on or off options to my shoutbox... I have already done it; and it works as it should... only I want the icons to change
to indicate if they are "on or off"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cutedoctor on November 29, 2011, 12:12:31 PM
Quote from: hcfwesker on November 27, 2011, 08:33:35 PM
Quote from: cutedoctor on November 27, 2011, 07:24:51 PM
I read it before , no mention of changing settings easily ,
i.e after install , rooms names came as boards names exactly but I donot want that , I want only one public, one private, ...etc and different access assgined , or assign by name for example .
I donot want it the way you mentioned by boards access ?

I hope that can be done

Well, you are going to have to do some file editing.  If you're not willing to, then SMF may not have been the best software choice.

FAQ topic : http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766


I want only one public room/channel

Find this header in the FAQ topic.
QuoteTo have ONLY the Public Room avaliable in the Channel List, change the array to 0 (Thanks stikkki)

prevent members changing names

/chat/lib/config.php

find
// Allow/Disallow users to change their userName (Nickname):
$config['allowNickChange'] = true;


^ change true to false.

different access assgined

If you mean chat access, then you have to do this in your forum's admin panel, under Permissions.  Assign chat access permissions to membergroups you want to have access.


If you can't manage this edits, just upload your chat/lib/config.php file, and I'll make the change for you.  which you'll have to upload to your server to replace the original.


Thank you very much  :D
Config.php files uploaded ,
Please make the following rooms:
Public room
Inner circle room
Private room
Admin room

I will see if I can make the permissions after

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on November 29, 2011, 12:18:39 PM
QuotePlease make the following rooms:
Public room
Inner circle room
Private room
Admin room

The only person whom can make changes is the mods author.

However please look for To actually add custom channels that are NOT in your board.

in the FAQs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 29, 2011, 05:15:19 PM
Quote from: cutedoctor on November 29, 2011, 12:24:27 PM
Thank you very much ,
Could you please make the following rooms:
1-Public room
2-Inner circle's room
3-Private room
4-Admin room

File uploaded


Thanks, again

I'm sorrry but I'm not going to add custom rooms/channels.  these will have to be boards already made on your forum.  Give me the board IDs to these boards, and I can possibly add therm.  Also, you only needed to post my quote one time, not 4.

Your file is attached.  Denied members changing their names, and made one Public Room only. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 29, 2011, 09:17:41 PM
I do have a question.  what file to we goto to edit the Chat Help menu, the on that opens up when you click the (?) mark in the chat.

I want to add in custom commands we have.  I already found where to add them in the language file, but dont know where to go to add them into the actual Help menu in the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on November 29, 2011, 11:29:53 PM
all of a sudden i started getting this error in my shoutbox
(20:12:56) ChatBot: Error: Connection status: 508

Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 30, 2011, 12:31:36 AM
We get that and a 503 error in the regular ajax chat.  It's your cpu usage gettin ate up by ajax, or soemthing else.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on November 30, 2011, 12:39:19 AM
So both 503 and 508 are caused by the cpu usage?
What should i do then?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: societyofrobots on November 30, 2011, 01:18:19 AM
Any chance of getting this updated to work with 2.0.1?

I tried reverting to SMF 2 RC3, but there were just too many manual edits. In the past I took the manual edit route, but I ended up pulling my hair out for every SMF upgrade to keep track of all the changes. :-\
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BaghdadGhost on November 30, 2011, 01:39:13 AM
Quote from: societyofrobots on November 30, 2011, 01:18:19 AM
Any chance of getting this updated to work with 2.0.1?

I tried reverting to SMF 2 RC3, but there were just too many manual edits. In the past I took the manual edit route, but I ended up pulling my hair out for every SMF upgrade to keep track of all the changes. :-\

It was not that hard to install it on 2.0.1, yet I had to disable it due to server issue.

good luck
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 30, 2011, 03:46:35 AM
Quote from: societyofrobots on November 30, 2011, 01:18:19 AM
Any chance of getting this updated to work with 2.0.1?

I tried reverting to SMF 2 RC3, but there were just too many manual edits. In the past I took the manual edit route, but I ended up pulling my hair out for every SMF upgrade to keep track of all the changes. :-\

Using the search tab  'in this topic' is a powerful tool ;)

http://www.simplemachines.org/community/index.php?topic=257973.msg3211488#msg3211488
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 30, 2011, 08:23:40 AM
My Custom Ajax Chat
ShoutBox new changes

1/ Back grown now has transparent images and not color codes - This makes the shout box auto suit any forum and no need to edit the colors.
2/ the option to turn Audio on or off, scroll on or off, insert image, show / hide smileys, changed color and persistent color are now available in shout box
ICONS don't change image to know is options are on or off, I don't know who to fix it so it does.
3/ more emoticons
4/ virtual keyboard
added

CHAT logged out Layout changed

CHAT logged in
1/ Layout changed
2/ Images in place of plain buttons to give a more modern look
3/ more emoticons with hidden box. click on the smiley to expend the box
4/ virtual keyboard added

Go to Test forum (http://www.aussierampage.com/smf2.0/index.php) to have a look if you like. PM me if you like it and want a copy of the files.
Keep in mind test site will only open to guess for a short time.. I will lock the site again after a week or so and this post as well will be removed.

Any support ideas on fixing the images to change images when sound is off or on is welcomed as well.

I know only the mod creator is the one who should make changes to a mod; however how do I get what I want out of the mod
if I don't make the changes my self?
I will share with anyone who wants a copy of what I have edited.
And the mod creator is welcome to everything to claim for him self.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BaghdadGhost on November 30, 2011, 09:02:50 AM
looks nice man


great job
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on November 30, 2011, 10:03:55 AM
"I know only the mod creator is the one who should make changes to a mod"
If we stuck to that rule there would be no SMF2 version and it wouldn't work in Chrome.

I wrote to the mod author - he first said he would give the mod away and later said he would update it himself, however he evidently does not have the time to do this so it is up to us to keep it updated.

When I assembled the various fixes that others had made, and changed the version compatibility for SMF2 I called it 3.2.2b - why not package your changes into a version 3.2.3?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 30, 2011, 10:15:24 AM
Thanks guys... I just might do that. and fix the install template at same time for custom themes if I can.. depends on how many like it and want it..
will call it 3.2.2b_plus :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on November 30, 2011, 10:30:04 AM
How about writing to the mod author asking for the mod. Like I say he was willing to give it away before but nobody took him up on the offer: http://www.simplemachines.org/community/index.php?topic=257973.msg3119535#msg3119535

In any case call it 3.2.3 (or even 3.3 :) ).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JamesCameron on November 30, 2011, 01:51:07 PM
Quote from: hcfwesker on November 30, 2011, 03:46:35 AM
Quote from: societyofrobots on November 30, 2011, 01:18:19 AM
Any chance of getting this updated to work with 2.0.1?

I tried reverting to SMF 2 RC3, but there were just too many manual edits. In the past I took the manual edit route, but I ended up pulling my hair out for every SMF upgrade to keep track of all the changes. :-\

Using the search tab  'in this topic' is a powerful tool ;)

http://www.simplemachines.org/community/index.php?topic=257973.msg3211488#msg3211488
I tried to use that,
but normal users can't see the shoutbox -
guests and admins do.

Anyone knows a solutio n?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on November 30, 2011, 02:20:55 PM
Have a look at the settings in Admin - Members / Permissions / General Permissions.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JamesCameron on November 30, 2011, 02:26:36 PM
Unbelieveable...
Just worked for hours on this,
watched every dawn file that was installed
and every code that was changed,
and also saw this permissions on the screenshot,
but i looked at the wrong page.

Thanks, my lord :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on November 30, 2011, 02:31:41 PM
 :laugh: the joy of computing!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 30, 2011, 05:50:55 PM
Quote from: hcfwesker on November 29, 2011, 09:17:41 PM
I do have a question.  what file to we goto to edit the Chat Help menu, the on that opens up when you click the (?) mark in the chat.

I want to add in custom commands we have.  I already found where to add them in the language file, but dont know where to go to add them into the actual Help menu in the chat.

Any ideas where to locate the file.  I checked them all, and searched for the language strings from en.php from the help language strings listed ... and no luck :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maryclare on November 30, 2011, 06:39:15 PM
Thanks T3CHNO.  Nice work!! ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on November 30, 2011, 07:04:58 PM
Quote from: hcfwesker on November 29, 2011, 09:17:41 PM
I do have a question.  what file to we goto to edit the Chat Help menu, the on that opens up when you click the (?) mark in the chat.

I want to add in custom commands we have.  I already found where to add them in the language file, but dont know where to go to add them into the actual Help menu in the chat.
Are you looking for this
/chat/js/chat.js
find
    getUserNodeStringItems: function(encodedUserName, userID) {

and look below that.. shows the settings in there for most things in help and so on
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on November 30, 2011, 11:12:32 PM
Quote from: T3CHN0 on November 30, 2011, 07:04:58 PM
Quote from: hcfwesker on November 29, 2011, 09:17:41 PM
I do have a question.  what file to we goto to edit the Chat Help menu, the on that opens up when you click the (?) mark in the chat.

I want to add in custom commands we have.  I already found where to add them in the language file, but dont know where to go to add them into the actual Help menu in the chat.
Are you looking for this
/chat/js/chat.js
find
    getUserNodeStringItems: function(encodedUserName, userID) {

and look below that.. shows the settings in there for most things in help and so on

OK, i don't think that was it.   I'm looking for the file where it calls for these language strings, that produce the items in the HELP menu in the chat labeled with a (?)

$lang['helpItemDescJoin'] = 'Join a channel:';
$lang['helpItemCodeJoin'] = '/join Channelname';
$lang['helpItemDescJoinCreate'] = 'Create a private room (Registered users only):';
$lang['helpItemCodeJoinCreate'] = '/join';
$lang['helpItemDescInvite'] = 'Invite someone (e.g. to a private room):';
$lang['helpItemCodeInvite'] = '/invite Username';
$lang['helpItemDescUninvite'] = 'Revoke invitation:';
$lang['helpItemCodeUninvite'] = '/uninvite Username';
$lang['helpItemDescLogout'] = 'Logout from Chat:';
$lang['helpItemCodeLogout'] = '/quit';
$lang['helpItemDescPrivateMessage'] = 'Private message:';
$lang['helpItemCodePrivateMessage'] = '/msg Username Text';
$lang['helpItemDescQueryOpen'] = 'Open a private channel:';
$lang['helpItemCodeQueryOpen'] = '/query Username';
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 01, 2011, 02:54:56 AM
Are you trying to make help display in another language ?
or have you added commands to do something and want to add them to the help "?" for members to be able to read
Help is only a readme so to speak.
if your wanting commands to be added I can help with that...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 01, 2011, 02:57:46 AM
I actually just found it :)

chat/lib/template/loggedIn.html

<div id="helpContainer" style="display:none;">
<h3>[LANG]help[/LANG]</h3>
<div id="helpList">
<table>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescJoin[/LANG]</td>
<td class="code">[LANG]helpItemCodeJoin[/LANG]</td>
</tr>
<tr class="rowEven">
<td class="desc">[LANG]helpItemDescJoinCreate[/LANG]</td>
<td class="code">[LANG]helpItemCodeJoinCreate[/LANG]</td>

</tr>
<tr class="rowOdd">
<td class="desc">[LANG]helpItemDescInvite[/LANG]</td>
<td class="code">[LANG]helpItemCodeInvite[/LANG]</td>


That's the file where I can display our custom chat commands.   We already have them added, and work great, just we wanted some place simple to have them for members.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 01, 2011, 03:04:20 AM
OK sweet. thanks for letting me know. I found this link http://www.simplemachines.org/community/index.php?topic=257973.msg2100280#msg2100280 (http://www.simplemachines.org/community/index.php?topic=257973.msg2100280#msg2100280)
Thought it might have helped but your under control. Good job. could I ask for your url so I can have a look when your finished. might be something I can add
Title: Moving Shoutbox from top default (top) location
Post by: maryclare on December 01, 2011, 07:42:42 AM
I have searched this thread for a way to move the shoutbox from its default position at the top to the bottom of the screen. 

The one answer I found is this:


open Sources/Load.php
find:

Code: [Select]
      array_splice($context['template_layers'], 1, 0, 'shout');

replace with

Code: [Select]
      //array_splice($context['template_layers'], 1, 0, 'shout');

open your index.template.php or boardindex.termplate.php and place

Code: [Select]
template_shout_above();
anywhere you want



My problem is that I can't find the index.template.php file or the boardindex.template.php file in my forum directory, sources directory, or shoutbox directory.


All I want to do is move the shoutbox to the bottom of the screen.

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on December 01, 2011, 07:56:34 AM
They're in ./Themes/default or ./Themes/(name of your theme)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: maryclare on December 01, 2011, 09:00:33 AM
Thanks for the file location.  Unfortuneately it didn't work.

I am running SMF 2.01 and Ajax Chat 3.2.2b. 

If anyone knows a way to move the shoutbox to the bottom, I'd appreciate it.  I am running the default theme, and only have the shoutbox on the main page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JamesCameron on December 01, 2011, 03:09:58 PM
Can anyone tell me, why the shoutbox needs hell of long to load ?
Default server settings...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 01, 2011, 06:48:12 PM
Quote from: maryclare on December 01, 2011, 09:00:33 AM
Thanks for the file location.  Unfortuneately it didn't work.

I am running SMF 2.01 and Ajax Chat 3.2.2b. 

If anyone knows a way to move the shoutbox to the bottom, I'd appreciate it.  I am running the default theme, and only have the shoutbox on the main page.

Moving the shoutbox to the bottom has been covered within the topic before.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 01, 2011, 06:49:00 PM
Quote from: JamesCameron on December 01, 2011, 03:09:58 PM
Can anyone tell me, why the shoutbox needs hell of long to load ?
Default server settings...

We need more information than this!!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 02, 2011, 11:56:53 AM
Quote from: Brack1 on December 01, 2011, 06:48:12 PM
Quote from: maryclare on December 01, 2011, 09:00:33 AM
Thanks for the file location.  Unfortuneately it didn't work.

I am running SMF 2.01 and Ajax Chat 3.2.2b. 

If anyone knows a way to move the shoutbox to the bottom, I'd appreciate it.  I am running the default theme, and only have the shoutbox on the main page.

Moving the shoutbox to the bottom has been covered within the topic before.
can you add a link to where it is. I have been looking around the boards for some time and can't find it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 02, 2011, 12:00:57 PM
Quote from: JamesCameron on December 01, 2011, 03:09:58 PM
Can anyone tell me, why the shoutbox needs hell of long to load ?
Default server settings...
Here is my FAQ with info I have collected and info I have found out my self
maybe something in this can help you out.... after downloading it, open it with your browser
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: cutedoctor on December 02, 2011, 08:15:18 PM
Quote from: hcfwesker on November 29, 2011, 05:15:19 PM
Quote from: cutedoctor on November 29, 2011, 12:24:27 PM
Thank you very much ,
Could you please make the following rooms:
1-Public room
2-Inner circle's room
3-Private room
4-Admin room

File uploaded


Thanks, again

I'm sorrry but I'm not going to add custom rooms/channels.  these will have to be boards already made on your forum.  Give me the board IDs to these boards, and I can possibly add therm.  Also, you only needed to post my quote one time, not 4.

Your file is attached.  Denied members changing their names, and made one Public Room only.

Thanks but after uploading to the server it resulted in this error :
QuoteParse error: syntax error, unexpected T_GLOBAL in /home/www/club4mdp.info/mdp/chat/lib/config.php on line 1

BTW those multiple replies were because of some technical issues in this forum , I removed them.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 02, 2011, 08:57:28 PM
Quote from: cutedoctor on December 02, 2011, 08:15:18 PM
Thanks but after uploading to the server it resulted in this error :
Parse error: syntax error, unexpected T_GLOBAL in /home/www/club4mdp.info/mdp/chat/lib/config.php on line 1

Strange error to pop up on line 1, unless I accidentally hit "f" instead of "cntrl F" to search, and it posted an f at the top of the file.

Reattached.  Sorry about that.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JamesCameron on December 04, 2011, 09:48:01 AM
Anyone already has a solution to let the user decide if the wants to hear the notification sounds on a new message ?
The chat has it, but the shoutbox doesn't.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 04, 2011, 10:09:44 AM
Anyone Interested I have made updates or would rather say changes to Ajax 3.2.2b

I made 3 Custom Ajax Chats and tested on 2.0.1 > ""Anyone using 1.1.X that could test it and let others know if it works would be great""

Ajax Chat 3.3A
Is simply the install on custom themes should no longer be a problem
File permissions chmod 755 settings AUTO correct them selves on a normal hosted server such a blue hosting.
The shrink bar shows your forums name as well before the word ShoutBox and copyright removed from shrink bar as there is copyright
in the chat window. the other 2 Ajax Chat B and C have this as well and more
Chat window in 3.3a is the same as it was before in 3.2.2b and shoutbox window syill uses css settings for shoutbox colors.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg710.imageshack.us%2Fimg710%2F9854%2Fajaxchata.png&hash=f7922c1829ab2508b8c4f5552a5cccb0dfaeef7e)

B and C are the same except C has no shrink bar. I have a dark theme and found chat looks better without it.
No one ever shrinks the window anyway so to me was a waist of having it shrink,
But could stay there as well as it might look good on other sites! That's the reason for B still having the shrink bar.
SOUTBOX
More Emoticon
insert image button
sound off or on button
scroll off or on button
emoticons show or hide button
color select button
shrink bar removed ON C ONLY
virtual keyboard
shoutbox backgrown changes color to suit the forum it's installed on

Chat Window
More Emoticon
New style buttons for more modern look
Emoticons show or hide
virtual keyboard
All board index Channels removed, only public channel. users can still make there own channel with there own user name.
NEW Image for header. can be changed to your own forums header logo but keep file width and height the same.

AJAX CHAT B
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg827.imageshack.us%2Fimg827%2F2807%2Fajaxchat33b.png&hash=d300b837726a4a7e7c364ac671e4f54693eb182f)
AJAX CHAT C
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg585.imageshack.us%2Fimg585%2F354%2Fajaxchat33c.png&hash=6b38d796ae889c3f675a0db7a5e5cf61b52a9a99)

Settings
Auto file permissions on install to set \shoutbox\ and \chat\index.php chmod settings to 755.
Also in the admin control a new link to member permissions board.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg64.imageshack.us%2Fimg64%2F3055%2Fajaxchatasettings.png&hash=e4d629afcb8a13cd2edd9e338fc75018890b782a)
Notice the first 4 options are darker, as the last 2 are not important to the mod

Permisions
all I changed was the words to look darker here as well to help newbies locate the permissions faster(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg546.imageshack.us%2Fimg546%2F9166%2Fajaxchatapermissions.png&hash=6474cc7c870cb7245bc98de9e1c2c0f1c986f971)


All the support on this MOD still stands. I only made changes to the pre 3.2.2b
No install edits have changed and the parser for 3.2.1 still applies if needed.

All I did was tell the install to place the edits in other places to fix the custom theme install problems.
some custom themes will still miss out on the numbering of who is in chat under the time, But believe me you don't want it there anyway
as it also shows at the bottom of the main index board and can show on the chat button as well if you want by selecting the 5th option in settings.

I don't think I missed anything. but if I did I will add it later

Over the next few days if you wish to have a look at Ajax Chat C working then go to this link (http://www.aussierampage.com/smf2.0/index.php)

Cheers, I hope you'll like the new edits
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 04, 2011, 10:30:50 AM
Quote from: JamesCameron on December 04, 2011, 09:48:01 AM
Anyone already has a solution to let the user decide if the wants to hear the notification sounds on a new message ?
The chat has it, but the shoutbox doesn't.
my Ajax Chat B or C has the option you want but not A, if you want to add it to the chat you already have
find /shoutBox/lib/template/shoutbox.html and /chat/lib/template/shoutbox.html and add this edit

                                <input type="image" class="button" id="audioButton" alt="[LANG]toggleAudio[/LANG]" title="[LANG]toggleAudio[/LANG]" onclick="ajaxChat.toggleSetting('audio', 'audioButton');"/>

after the last <input.....line> on both them files
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JamesCameron on December 04, 2011, 10:50:05 AM
Thanks for the lesson, Zen-Master  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on December 10, 2011, 03:43:41 AM
Thanks, Techno, I'll have a look at the "C" version. ;)
One question, I have one of my globals assigned as a chatmoderator,
but this is ofcourse not visible in chat userlist. Is there a way to make it clear in that window?
Like an image behind the name or another solution?

Thanks in advance
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 10, 2011, 05:28:20 AM
your welcome; glade you like it

yes, you can make him a different colour. maybe can have an image... I will look into that right now for you
will get back to you in 20 minutes or so.
But if you also download the FAQ I included, it tells you in it how to change user colours
for moderators admins users and guests. but not for custom groups.. this is why I made in my edits
all members have the same colours as other members start asking for there own groups colours
and it can be done but you need to know how to edit your data base in cpanel to do it "and I don't" know how
to do that.


OK tested and yes. you can have an image for moderator but is a backgrown image.
you can make it stand out more my adding an image to site behind the moderators name
and change the moderators name colour to look better with the backgrown colour you made.
EDIT BOTH  /shoutBox/css/shoutbox.css and /chat/css/shoutbox.css

find
#ajaxChatContent .moderator {
    color:#C68E17;

Change to
#ajaxChatContent .moderator {
    color:#C68E17;
   background: url('../img/moderator.png') 90% -200px;
you can find colour codes here (http://www.computerhope.com/htmcolor.htm)

you will need to make your image width 5pixels Height 20 Pixels
the 90% -200px will auto fill the behind area of the full name
so you don't need to bother with making an image that will be
the correct size it it will auto adjust it's self.

don't forget to make the image called moderator.png and save it to \chat\img and \shouBox\img
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on December 10, 2011, 06:41:55 AM
Tech to the rescue!! :D

Thanks, Techno, I'll give this a go when I get home.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Abavagada on December 12, 2011, 08:50:24 AM
There was an error mentioned back on page 39 of this thread (2.5 years ago) that I was also getting.
"... should not be called statically, assuming $this from incompatible context in ..."
These probably occurs because of an upgrade in PHP versions, and while they should be fixable by changing a setting in the php.ini of the server to not use strict error checking, it doesn't work.

I have found a solution, and am posting it here for others that might be having this problem. I don't know if it should be put in the FAQ or changed in the package download.

The changes are simply putting the word "static" in front of the function declaration in 3 files in the forum\chat\lib\class directory:

AJAXChatString.php
static function subString
static function stringLength

AJAXChatEncoding.php
static function getSpecialChars
static function getRegExp_NO_WS_CTL
static function convertEncoding
static function htmlEncode
static function encodeSpecialChars
static function decodeSpecialChars
static function encodeEntities
static function decodeEntities
static function unicodeChar
static function removeUnsafeCharacters

AJAXChatFileSystem.php
static function getFileContents

Hope this helps some people.

Great MOD! Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 12, 2011, 09:07:42 AM
Cheers buddy. all support for the mod is awesome as the creator no longer supports this mod as far as I was told.

so your saying if I edit each file you mentioned like this

I will use AJAXChatString.php full contents as an example

<?php
static function subString
static function stringLength

/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 */
// Class to provide multibyte enabled string methods
class AJAXChatString {
    function 
subString($str$start=0$length=null$encoding='UTF-8') {
        if(
$length === null) {
            
$length AJAXChatString::stringLength($str);
        }        
        if(
function_exists('mb_substr')) {
            return 
mb_substr($str$start$length$encoding);
        } else if(
function_exists('iconv_substr')) {
            return 
iconv_substr($str$start$length$encoding);
        } else {
            return 
substr($str$start$length);
        }
    }
    function 
stringLength($str$encoding='UTF-8') {
        if(
function_exists('mb_strlen')) {
            return 
mb_strlen($str$encoding);
        } else if(
function_exists('iconv_strlen')) {
            return 
iconv_strlen($str$encoding);
        } else {
            return 
strlen($str);
        }
    }
}
?>

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Abavagada on December 12, 2011, 10:18:38 AM
T3CHN0: not even that.. I just meant put the word "static" in front of the function itself:

class AJAXChatString {
    static function subString($str, $start=0, $length=null, $encoding='UTF-8') {
        if($length === null) { ......


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 12, 2011, 10:35:37 AM
OK sweet, thanks for that.

I will test it soon, Might re-do all my mod edits and re-upload all 3 download's with the extra static
as already apart of the mod on install.

cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Abavagada on December 12, 2011, 10:43:50 AM
Sounds good.
If you are one that can make changes to the mod, I would suggest a small one in the chat template.
Put a limit like: style="width: 100px"  on the channel select option because if the channel names are very long, they will push the language selection box down to the next line.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 12, 2011, 10:49:10 AM
good idea. as my users only have short names I never seen that happen.
I will look into that as well. and correct it if I can... doesn't sounds like a big thing and should be easy to do.
cheers
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Podologo on December 12, 2011, 03:21:12 PM


Is it possible to prevent chat users from deleting messages in the chat room?........ The reason I ask is that one of my members is being abused  by two others, and I believe they say their nasty remarks and then delete them............ I want to be able to see what has been said.

Any help on this will be greatly appreciated.

JP
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 12, 2011, 05:58:55 PM
Quote from: Podologo on December 12, 2011, 03:21:12 PM
Is it possible to prevent chat users from deleting messages in the chat room?

chat/lib/config.php

Find
// Allow/Disallow registered users to delete their own messages:
$config['allowUserMessageDelete'] = true;


change true to false.  chat admins and mods will still be able to delete posts, only ffects regular members in the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on December 12, 2011, 06:16:16 PM
Is it possible to make channels accessable for only moderators and admins?
So that they are not visible for normal users or are rejected if they try to enter it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 12, 2011, 06:26:46 PM
Quote from: MrNicotine on December 12, 2011, 06:16:16 PM
Is it possible to make channels accessable for only moderators and admins?
So that they are not visible for normal users or are rejected if they try to enter it?
I don't believe so. after reading all the posts on this site, allot of members ask about removing all the
boards channels that auto list all the boards as channels.
this is why with the mods B and C I uploaded. only public channel is in the channel list.
but each user can still make there own private channel with there own user name.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 12, 2011, 06:30:34 PM
Quote from: MrNicotine on December 12, 2011, 06:16:16 PM
Is it possible to make channels accessable for only moderators and admins?
So that they are not visible for normal users or are rejected if they try to enter it?

Best option for this, is create boards/sub-boards only member groups you want to have access to.  then, in the chat, only those member groups can access the channel.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Podologo on December 13, 2011, 02:24:42 AM
Thank you soooooooooo much! I appreciate your reply and info!

JP
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: act4 on December 14, 2011, 12:45:43 PM
Hi,

I am trying to install 3.2.2b on my 2.0.1 forum with the Curve theme.

When installing I get the "Error in Package Installation" message. Here is where the test failed:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FecIWk.png&hash=eaf3a7053fd17d5116da0f94e120c425b816a0eb)

I have attached my index.template.php and would be very grateful if somebody could help. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: act4 on December 14, 2011, 12:48:11 PM
Hi,

I am trying to install 3.2.2b on my 2.0.1 forum with the Curve theme.

When installing I get the "Error in Package Installation" message. Here is where the test failed:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FecIWk.png&hash=eaf3a7053fd17d5116da0f94e120c425b816a0eb)

I have attached my index.template.php and would be very grateful if somebody could help. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 14, 2011, 02:00:15 PM
Quote from: act4 on December 14, 2011, 12:45:43 PM
Hi,

I am trying to install 3.2.2b on my 2.0.1 forum with the Curve theme.

When installing I get the "Error in Package Installation" message. Here is where the test failed:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FecIWk.png&hash=eaf3a7053fd17d5116da0f94e120c425b816a0eb)

That edit isn't necessary for the MOD to work.  All it does is add a line of text under the header table of how many members are in the chat, under the new replies/unread post links up top.  It's pretty poiintless in my opinion, cause the chat button itself shows how many members are in the chat, and there's a list of users in the chat in the info center.

Look at this pic, the red arrow up top to the left, thats all the edit adds.  But as you see, the other red mark already shows a number of chat users in the chat button itself.   http://custom.simplemachines.org/mods/index.php?action=download;mod=1319;id=112596;image

You can install the MOD even with that install error, if that one edit doesn't concern you.  which i promise you it's really just wasted space, imo.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: act4 on December 14, 2011, 03:38:42 PM
Thanks, its working well.  :)

I've noticed that unless you visit the full screen chat, the shoutbox is white until you post something. Is there anyway to change this (i.e. so everyone sees all the messages in the shoutbox)?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on December 14, 2011, 07:18:37 PM
Quote from: hcfwesker on December 12, 2011, 06:30:34 PM
Quote from: MrNicotine on December 12, 2011, 06:16:16 PM
Is it possible to make channels accessable for only moderators and admins?
So that they are not visible for normal users or are rejected if they try to enter it?

Best option for this, is create boards/sub-boards only member groups you want to have access to.  then, in the chat, only those member groups can access the channel.

Yep, that's it. Works perfectly.

Wish all the edits were this easy, lol

Thanks a lot ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kreator on December 17, 2011, 02:42:51 AM
Hello Having a few problems with this mod, well one major one really!

I upload the mod 3.3 as per post at 8526 no problem no errors so apply the mod then when I come out of the package manager I get this fatal
Quote
ction getShoutBoxContent($mini = false){ global $scripturl, $modSettings; // Get the URL to the chat directory: if (!defined('AJAX_CHAT_URL')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_URL', str_replace("index.php", "shoutBox/", $scripturl)); else define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));    } // Get the real path to the chat directory: if (!defined('AJAX_CHAT_PATH')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/shoutBox/'); else define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/chat/'); } // Validate the path to the chat: if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php')){ // Include Class libraries: require_once(AJAX_CHAT_PATH.'lib/classes.php'); // Initialize the shoutbox: $ajaxChat = new CustomAJAXChatShoutBox(); // Parse and return the shoutbox template content: return $ajaxChat->getShoutBoxContent($mini); } return null; } function chatOnlineUsers(){ global $smcFunc; $userIDs = array(); $result = $smcFunc['db_query']('', ' SELECT userID FROM {db_prefix}ajaxchat_online   WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)' , array() ); while($row = $smcFunc['db_fetch_assoc']($result)) { array_push($userIDs, $row['userID']); } $smcFunc['db_free_result']($result); return array_unique($userIDs); } Fatal error: Call to undefined function chatOnlineUsers() in /customers/6/2/9/animanon.com/httpd.www/Forum3/Sources/BoardIndex.php on line 128


I hav`nt even begun to set it up running smf 2.0.1

Any fix please??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 17, 2011, 03:01:47 AM
Are you on a custom theme.  In most cases you need to add the edits manually to custom themes, otherwise you'll get a fatal error cause the chat is running, but the theme you're on can't call for it if the edits aren't made.  Do you get this same fatal error on the smf default curve theme?

If fatal errors arent letting you get to your profile to switch themes, try this link on your site  http://www.sitename.com/index.php?theme=1   replacing sitename with your site's url
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kreator on December 17, 2011, 03:34:28 AM
Thanks hcfwesker,
I certainly do have a custom theme operating when this fatal pops up, so yeas I`ll need to do some manual edits, although it does add the option to add edits in the parser for these themes when installing which I check, do they not work then?


I`m using Xmas 20 theme at the moment there is no boardindex.php in that theme

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 17, 2011, 05:05:32 AM
rename your boardindex.template.php to boardindex.index.bck
your theme will look to the index.template in the default theme instead.
just see if that fixes your error. your forum will look no correctly displayed
but thats ok. more to the point want to test if it fixes the error.
If so. simply run the mod through the package parser and remove
all boardindex edits. and rename the file back to php again.

all you will be missing out on is how many ppl are in chat displaid on the chat button
but all functions and option will still work
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kreator on December 17, 2011, 05:13:34 AM
Ok will try that, just out of interest I reverted the boardindex.php back to the original and it works, however at the top of the displayed forum I have...

Quotefunction getShoutBoxContent($mini = false){ global $scripturl, $modSettings; // Get the URL to the chat directory: if (!defined('AJAX_CHAT_URL')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_URL', str_replace("index.php", "shoutBox/", $scripturl)); else define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));    } // Get the real path to the chat directory: if (!defined('AJAX_CHAT_PATH')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/shoutBox/'); else define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/chat/'); } // Validate the path to the chat: if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php')){ // Include Class libraries: require_once(AJAX_CHAT_PATH.'lib/classes.php'); // Initialize the shoutbox: $ajaxChat = new CustomAJAXChatShoutBox(); // Parse and return the shoutbox template content: return $ajaxChat->getShoutBoxContent($mini); } return null; } function chatOnlineUsers(){ global $smcFunc; $userIDs = array(); $result = $smcFunc['db_query']('', ' SELECT userID FROM {db_prefix}ajaxchat_online   WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)' , array() ); while($row = $smcFunc['db_fetch_assoc']($result)) { array_push($userIDs, $row['userID']); } $smcFunc['db_free_result']($result); return array_unique($userIDs); }

I have chat in the tab bar and upon opening it I get this long scroll before the chat opens up...
Quote
function getShoutBoxContent($mini = false){ global $scripturl, $modSettings; // Get the URL to the chat directory: if (!defined('AJAX_CHAT_URL')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_URL', str_replace("index.php", "shoutBox/", $scripturl)); else define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));    } // Get the real path to the chat directory: if (!defined('AJAX_CHAT_PATH')){ if (empty($modSettings['miniChat'])) define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/shoutBox/'); else define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/chat/'); } // Validate the path to the chat: if (@is_file(AJAX_CHAT_PATH . 'lib/classes.php')){ // Include Class libraries: require_once(AJAX_CHAT_PATH.'lib/classes.php'); // Initialize the shoutbox: $ajaxChat = new CustomAJAXChatShoutBox(); // Parse and return the shoutbox template content: return $ajaxChat->getShoutBoxContent($mini); } return null; } function chatOnlineUsers(){ global $smcFunc; $userIDs = array(); $result = $smcFunc['db_query']('', ' SELECT userID FROM {db_prefix}ajaxchat_online   WHERE NOW() <= DATE_ADD(dateTime, interval 2 MINUTE)' , array() ); while($row = $smcFunc['db_fetch_assoc']($result)) { array_push($userIDs, $row['userID']); } $smcFunc['db_free_result']($result); return array_unique($userIDs); } Warning: Cannot modify header information - headers already sent by (output started at /customers/6/2/9/animanon.com/httpd.www/Forum3/Sources/Load.php:2947) in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/AJAXChatHTTPHeader.php on line 71 Warning: Cannot modify header information - headers already sent by (output started at /customers/6/2/9/animanon.com/httpd.www/Forum3/Sources/Load.php:2947) in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/AJAXChatHTTPHeader.php on line 73 Warning: Cannot modify header information - headers already sent by (output started at /customers/6/2/9/animanon.com/httpd.www/Forum3/Sources/Load.php:2947) in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/AJAXChatHTTPHeader.php on line 81 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303

whats next I wonder?!


Quoterename your boardindex.template.php to boardindex.index.bckyour theme will look to the index.template in the default theme instead.just see if that fixes your error. [\quote]


tried that still the same as above. I get"unable to load boardindex" error and forum just stops there.
can`t put anything into the chat box,Im not even shown as online in chat, so looks like major problems with it!

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: T3CHN0 on December 17, 2011, 06:49:44 AM
having a look at your forum and i see what your talking about.
I have seen this happen a few times on other forums and it's not the mod error even though
it shows like it is.

it's a missing <head> </head> <body> or </body>
part of the index.template.php missing within the file.

or could even be something smaller like after the </body> you could be missing a ' or a ;
I had the same thing happen to my forum a long time ago and found it was because I edited
the index.template.php my self with a custom source code and made the problem happen
my self...

How to fix this will be to study the files from the theme you are using and compare
the edits from your to the unchanged theme files and try work out what part of the code
needs correcting.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kreator on December 17, 2011, 09:21:36 AM
Quoteit's a missing <head> </head> <body> or </body> part of the index.template.php missing within the file.or could even be something smaller like after the </body> you could be missing a ' or a ;I had the same thing happen to my forum a long time ago and found it was because I edited the index.template.php my self with a custom source code and made the problem happenmy self...How to fix this will be to study the files from the theme you are using and comparethe edits from your to the unchanged theme files and try work out what part of the codeneeds correcting.


compared all the edits made to the originals with winnmerge, but I cannot see any problems with the offending files all seem to be correct.


Are the Ajax files up to date ? just a thought as it seems to reference these files in warnings quite a bit!

I have reverted(uninstalled it)  back to old status whilst this is all happening.

Edit: Are the parser instructions for manual edit in original 3.2.1 the same as this 3.3C version that I am using as I will go through them, if not can you provide them please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kreator on December 17, 2011, 11:28:09 AM
Just found one glaring parser error in Load.php


It calls find
>?


add before
function getShoutBoxContent($mini = false){   global $scripturl, $modSettings;    // Get the URL to the chat directory:   if (!defined('AJAX_CHAT_URL')){      if (empty($modSettings['miniChat']))         define('AJAX_CHAT_URL', str_replace("index.php", "shoutBox/", $scripturl));      else         define('AJAX_CHAT_URL', str_replace("index.php", "chat/", $scripturl));      }       // Get the real path to the chat directory:   if (!defined('AJAX_CHAT_PATH')){      if (empty($modSettings['miniChat']))         define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/shoutBox/');      else         define('AJAX_CHAT_PATH', dirname(dirname(__FILE__)) . '/chat/');   }



it actually parses it after the >?
therefore I get the error coming up at the top of the board , now corrected that. Still looking at why the chat box does not allow me to post anything at all just this again

Quote
Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303 Warning: in_array() expects parameter 2 to be array, integer given in /customers/6/2/9/animanon.com/httpd.www/Forum3/chat/lib/class/CustomAJAXChat.php on line 303


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 17, 2011, 01:50:58 PM
No, what that edit means, is it has to be added at the bottom of the file BEFORE the last ?>   at the very bottom.   that ?>  should be the very last thing in the file.

You can try using the package parser to see if you can view the edits of the package.  http://www.smfhacks.com/smf-package-parser.html
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kreator on December 17, 2011, 04:25:41 PM

hcfwesker:
QuoteNo, what that edit means, is it has to be added at the bottom of the file BEFORE the last ?>   at the very bottom.   that ?>  should be the very last thing in the file.


I quite understand that, but the >? was NOT at the bottom of the file where it should been, the installer had placed the code after that terminator. Parser link does not work btw.


Found some errors in the parser package  especially in the boardindex.php file.
I can get into the chat board but if I exit I get

QuoteFatal error: Function name must be a string in /customers/6/2/9/animanon.com/httpd.www/Forum3/Sources/BoardIndex.php on line 132


Now Line 132 is this
Quote$result = $smcFunc['db_query']('', '

shouldn`t this line be finished off with a closing bracket? nope I see its closed further down.

Its like looking for bugs in a Vic20 machine code list!! haha!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kreator on December 18, 2011, 07:02:21 AM
Solved most of the problems now, The only thing left now how can I echo the input to the main screen does nothing is there some thing I must add in config?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on December 18, 2011, 10:53:30 AM
"(07:52:36) ChatBot: Error: Connection status: 404" shoutbox started giving this error all of a sudden for no reason. I havent installed any mods recently. Can somebody help me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kreator on December 18, 2011, 01:27:38 PM
This program is giving me an absolute nightmare!

In the config.php do I have to add my database name password etc ?( I assume I do but it still does not want to play ball with me ) some help would be very useful
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krash661 on December 18, 2011, 03:32:09 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1228.photobucket.com%2Falbums%2Fee460%2Fkrash661%2Fdb.png&hash=13fcce3eb437e8e256bd56273bebc08129ea7b2b)


What would be the reason for the double (1 user is in chat.) posting?.and how do i fix this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 18, 2011, 04:13:43 PM
A double install of the MOD.

Loook under   /Themes/default(or custom theme)/BoardIndex.template.php

search
// users in chat
if (isset($context['chat_links'])){
if (count($context['chat_links']) == 0 )
  echo '<br />' . $txt['chat_no_user'];
elseif (count($context['chat_links']) == 1 )
  echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
else
  echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }


I can guarantee you'll see 2 of those there.  Just remove one of them.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on December 18, 2011, 04:16:15 PM
Any help about my problem ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 18, 2011, 04:47:34 PM
If I could I would have replied.  I never use the shoutbox on my forum, so I don't really mess around with it.   I can't really suggest anything..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on December 18, 2011, 04:49:43 PM
I dont think its just a shoutbox problem though. Im sure its in the chat room also.




Nevermind i fixed it. It was cause by this line in my htaccess
DirectoryIndex /folder/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Biology Forums on December 20, 2011, 06:59:36 PM
Is this mod supposed to log you out automatically?  :-\

If I'm inactive after 2 to 5 minutes, I am logged out.

Is there a way to disable this feature?  :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 20, 2011, 07:03:56 PM
Quote from: shuban on December 20, 2011, 06:59:36 PM
Is this mod supposed to log you out automatically?  :-\

If I'm inactive after 2 to 5 minutes, I am logged out.

Is there a way to disable this feature?  :(

You will find the answer in the mods FAQs
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 20, 2011, 08:55:09 PM
Quote from: shuban on December 20, 2011, 06:59:36 PM
Is this mod supposed to log you out automatically?  :-\

If I'm inactive after 2 to 5 minutes, I am logged out.

Is there a way to disable this feature?  :(

chat/lib/config.php   ( there's a lot of neat stuff you can customiz in this same file)

Find
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;


Change the 2 & 5 to longer times.  Though I would set some kind of time limit, or those who dont logout and leave their PC on 24/7 will stayed log in.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Biology Forums on December 20, 2011, 11:38:12 PM
Quote from: hcfwesker on December 20, 2011, 08:55:09 PM
Quote from: shuban on December 20, 2011, 06:59:36 PM
Is this mod supposed to log you out automatically?  :-\

If I'm inactive after 2 to 5 minutes, I am logged out.

Is there a way to disable this feature?  :(

chat/lib/config.php   ( there's a lot of neat stuff you can customiz in this same file)

Find
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;


Change the 2 & 5 to longer times.  Though I would set some kind of time limit, or those who dont logout and leave their PC on 24/7 will stayed log in.

So Awesome!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: R6 on December 21, 2011, 02:54:55 AM
Hi.  My question please, is on correctly accessing Ajax 3.2.1 Chat logs using SMF 2.0.1

As a newbie, I'm trying to access the logs for the first time now I have the forum and chat room working.

Once logged into the forum as the administrator, and then logging into the chatroom logs at URL:

http://www.mywebsite.com/forum/chat/index.php/?view=logs

I selected a channel, a date, and pressed 'search' (leaving the search box empty), yet nothing happened and no logs are presented on the screen.
I then repated the action, this time entering an IP address into the previously blank search box  to test it, e.g.    ip=127.0.0.1

Again nothing happened.

Any ideas what i'm doing wrong?

Thank you for any advice.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 21, 2011, 04:02:49 PM
try just selecting the main channel users use, and set the date and time to something that you know members were active in the chat.  Messages should automatically be pulled up.  Never have to use the Search box

If you use the Search box to search a phrase, dont put a date or time setting.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clothahump on December 28, 2011, 11:16:27 AM
Quote from: .HuNTeR. on August 10, 2011, 03:21:52 AM
@mlw4428
as I'm completely rewriting the mod to use the integration hooks it takes some time

Any news on this working with SMF 2.0.2, my members are in need of a chat room and shoutbox. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 28, 2011, 04:46:30 PM
This works fine with 2.0.2  Though you'll probably have to emulate to a previous version in the package manager to install the MOD.  Other than that it works great.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clothahump on December 28, 2011, 05:09:17 PM
Exactly how do I emulate a previous version?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 28, 2011, 05:21:20 PM
on the browse package manager page, in the bottom right hand side you'll see a linked text 'Advanced'.  click it, and put in the smf version you want to emulate to.  "Ex.  SMF 2 RC5" click "Apply" ...  then, upload and install the MOD (make any manual edits due to install errors) ...

once you're done, go back to the 'Advanced' tab, and simply click "revert" to go back to SMF 2.0.2 then "Apply"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on December 28, 2011, 05:27:58 PM
Use the mod emulation link in my signature.

:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clothahump on December 28, 2011, 05:31:32 PM
Job for another day, need to do some manual edits and it is getting late, thank you for your help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BaghdadGhost on December 28, 2011, 06:38:27 PM
guys I lost tracking in this topic. could someone please direct me to the last package updated by a user here. I know somebody already updated it but cant find the reply.


thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 28, 2011, 06:43:46 PM
Quote from: BaghdadGhost on December 28, 2011, 06:38:27 PM
guys I lost tracking in this topic. could someone please direct me to the last package updated by a user here. I know somebody already updated it but cant find the reply.

here's the link to T3CHNO's newest releases he made.  http://www.simplemachines.org/community/index.php?topic=257973.msg3222028#msg3222028

attached is the file I use on my 2.0.2 site, but i think you have to emulate to smf 2.0 , or maybe smf 2 RC5
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rcorbitt on December 28, 2011, 07:49:28 PM
I am running 3.3a on SMF 2.0.1. I would like to know where to modify the code to enable the "No user in chat." Or "There are 6 users in chat."

Somebody help a newbie, please!

Thanks Rick


Quote from: hcfwesker on December 14, 2011, 02:00:15 PM
Quote from: act4 on December 14, 2011, 12:45:43 PM
That edit isn't necessary for the MOD to work.  All it does is add a line of text under the header table of how many members are in the chat, under the new replies/unread post links up top.  It's pretty poiintless in my opinion, cause the chat button itself shows how many members are in the chat, and there's a list of users in the chat in the info center.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BaghdadGhost on December 28, 2011, 08:05:32 PM
Quote from: hcfwesker on December 28, 2011, 06:43:46 PM
Quote from: BaghdadGhost on December 28, 2011, 06:38:27 PM
guys I lost tracking in this topic. could someone please direct me to the last package updated by a user here. I know somebody already updated it but cant find the reply.

here's the link to T3CHNO's newest releases he made.  http://www.simplemachines.org/community/index.php?topic=257973.msg3222028#msg3222028

attached is the file I use on my 2.0.2 site, but i think you have to emulate to smf 2.0 , or maybe smf 2 RC5


thank you for the quick reply.

btw, since you already installed it is it stable and worth replacing with 3.2.1 (modified for SMF 2 RC3) which I already have?

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 28, 2011, 08:42:38 PM
Quote from: rcorbitt on December 28, 2011, 07:49:28 PM
I am running 3.3a on SMF 2.0.1. I would like to know where to modify the code to enable the "No user in chat." Or "There are 6 users in chat."

Thanks Rick

Admin > Configurations > Modification Settings > Chat ( you'll see the option there)

Quote from: BaghdadGhost on December 28, 2011, 08:05:32 PMthank you for the quick reply.

btw, since you already installed it is it stable and worth replacing with 3.2.1 (modified for SMF 2 RC3) which I already have?

I'm still using it on my SMF 2.0.2 forum. so, yeah, really no need to update if you already have it.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rcorbitt on December 28, 2011, 08:49:48 PM
QuoteAdmin > Configurations > Modification Settings > Chat ( you'll see the option there)

If I don't get any options, I'm guessing I have a bad install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 28, 2011, 10:12:19 PM
open that page, and if it's blank, check your forum error log for any errors from that page.  See if there's any undefined errors, or do you not even have the chat menu in your admin panel?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rcorbitt on December 28, 2011, 10:39:05 PM
I only have the menu option "Chat." The error log shows the Ajax Integration was successfully installed, and there are no other errors.




Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clothahump on December 28, 2011, 10:49:26 PM
Manual edits are no good, unable to even find one string that is supposed to be updated.

echo '
</p>
<p class="last smalltext">


Does not exist in ./Themes/core/BoardIndex.template.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 29, 2011, 01:27:53 AM
Quote from: rcorbitt on December 28, 2011, 10:39:05 PM
I only have the menu option "Chat." The error log shows the Ajax Integration was successfully installed, and there are no other errors.

Goto the ADMIN button in the main menu, and follow this path again .. http://www.simplemachines.org/community/index.php?topic=257973.msg3237492#msg3237492

Quote from: clothahump on December 28, 2011, 10:49:26 PM
Manual edits are no good, unable to even find one string that is supposed to be updated.

echo '
</p>
<p class="last smalltext">


Does not exist in ./Themes/core/BoardIndex.template.php


Make manual edits to that file, but instead, find this line

echo $context['show_who'] ? '</a>' : '', '
<div class="smalltext">';


make backups of that file before editing, just in case.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clothahump on December 29, 2011, 05:34:19 AM
I think I will wait until the package has been updated properly, just finished reinstalling SMF to get rid of loads of problems and do not want to end up going down the same route again, to be fair, if the package does not auto install it should not be available for download.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BaghdadGhost on December 30, 2011, 12:19:23 AM
Quote from: clothahump on December 28, 2011, 10:49:26 PM
Manual edits are no good, unable to even find one string that is supposed to be updated.

echo '
</p>
<p class="last smalltext">


Does not exist in ./Themes/core/BoardIndex.template.php

that was the only error during installation via package manager and I ignored it because all it does to you index is to add "x users in chat now" under the current date and time.

I installed the package hcfwesker attached to me in his reply.

thanks hcfwesker

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on December 30, 2011, 12:33:22 AM
You're welcome, BaghdadGhost  :)

Quote from: clothahump on December 29, 2011, 05:34:19 AM
I think I will wait until the package has been updated properly, just finished reinstalling SMF to get rid of loads of problems and do not want to end up going down the same route again, to be fair, if the package does not auto install it should not be available for download.

Let me ask you this.  Do you plan on letting members use the Core theme?  To me it's not the greatest smf2 theme, and makes it feel like an smf1 forum ( no disrespect to the theme creators, just my personal preference).  Select the Core theme, browse your forum on it for a little bit, then think if you reeeeeally want members using that theme on your forum.  Deleting the Core theme was one of the first things I did on my SMF2 forum :D   If you chose to do the same, then you won't have to worry about the install errors on the Core theme, along with any other SMF MOds that almost always have install errors on the Core theme ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: BaghdadGhost on December 30, 2011, 01:00:58 AM
Quote from: hcfwesker on December 30, 2011, 12:33:22 AM
You're welcome, BaghdadGhost  :)

Quote from: clothahump on December 29, 2011, 05:34:19 AM
I think I will wait until the package has been updated properly, just finished reinstalling SMF to get rid of loads of problems and do not want to end up going down the same route again, to be fair, if the package does not auto install it should not be available for download.

Let me ask you this.  Do you plan on letting members use the Core theme?  To me it's not the greatest smf2 theme, and makes it feel like an smf1 forum ( no disrespect to the theme creators, just my personal preference).  Select the Core theme, browse your forum on it for a little bit, then think if you reeeeeally want members using that theme on your forum.  Deleting the Core theme was one of the first things I did on my SMF2 forum :D   If you chose to do the same, then you won't have to worry about the install errors on the Core theme, along with any other SMF MOds that almost always have install errors on the Core theme ;)

strongly agree and have done the same. I use ClearSky v2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: clothahump on December 30, 2011, 07:07:39 AM
Thanks Guys, I had thought Core was somehow tied in with Default, installed and working perfectly. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: xFDragon on December 30, 2011, 05:49:09 PM
I'm going out on a whim here and saying I did something stupid with this.

Warning: in_array() expects parameter 2 to be array, integer given in /home/rainbowd/public_html/subdomains/forums/chat/lib/class/CustomAJAXChat.php on line 303

Warning: in_array() expects parameter 2 to be array, integer given in /home/rainbowd/public_html/subdomains/forums/chat/lib/class/CustomAJAXChat.php on line 303

Warning: in_array() expects parameter 2 to be array, integer given in /home/rainbowd/public_html/subdomains/forums/chat/lib/class/CustomAJAXChat.php on line 303

Warning: in_array() expects parameter 2 to be array, integer given in /home/rainbowd/public_html/subdomains/forums/chat/lib/class/CustomAJAXChat.php on line 303

Warning: in_array() expects parameter 2 to be array, integer given in /home/rainbowd/public_html/subdomains/forums/chat/lib/class/CustomAJAXChat.php on line 303

Warning: in_array() expects parameter 2 to be array, integer given in /home/rainbowd/public_html/subdomains/forums/chat/lib/class/CustomAJAXChat.php on line 303


This is a fresh install of both SMF 2.0.2 and Ajax 3.3C and B builds, both giving off the same error I have checked all Index.php pages to make sure that they are both chmod'd right. Am I missing something else?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kreator on January 01, 2012, 05:58:23 PM
Hello, I finally got chat to work!,,, hooray!!! and on 2.0.2 things must be changed in both chat and shoutbox so it seems  ( If I dont use the shoutbox can I delete it all or is chat using something from there!)


Now I need help with some things, take a look at this working, Ajax Chat on AUSChristmasLights.com (attachment below)


This looks really cool with icons for returning to other areas of the forum, a neat logo left justified,  smilies across the bottom of the page , with icons for bold italic etc


How did they do that ? any ideas ??


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JamesCameron on January 03, 2012, 05:23:21 PM
I can't find the right file to edit the shoutbox title.

It looks like this:
http://awesomescreenshot.com/045r8ko15
(watch the left side not fitting in)

I'd like to fix that,
but every template file i edited or even erased (except chat/lib/shoutbox.html) had no influence.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 03, 2012, 07:56:14 PM
Quote from: JamesCameron on January 03, 2012, 05:23:21 PM
I can't find the right file to edit the shoutbox title.

This might be what you're looking for ...

./Themes/default/languages/Shout.english.php

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


change the text ShoutBox  to what you want it to be



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JamesCameron on January 03, 2012, 09:00:27 PM
Thanks for your help, but the problem is that wrong displayed bar.
So i need to see the part around this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: JamesCameron on January 04, 2012, 07:37:14 PM
I just found it out by myself by creating my own search-tool.

The file is
SMF\Themes\default\Shout.template.php

In this file you can edit the copyright, the title, the title bar and everything else up of the shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thun88 on January 08, 2012, 02:51:18 PM
I have manually mod this Version, make some change on Installation for 2.02 and fixed FABridge.js (error with Chrome and Chromium).
Check and verify. For my SMF 2.0.2 works :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on January 08, 2012, 05:01:53 PM
I would like to share a little issue i had with lag. I spent a lot of time trying to figure out what happened. Now that its solved, i wanted to pass on this information.

Issue: Lag -  it's almost as if the chat lags and waits til you send something to it to show you what someone before your last message said... if that makes sense

Cause: LiteSpeed Cache added to the server (about a week prior)

Solution: add the following line to the directory's (\chat\)".htaccess" file:-

QuoteRewriteRule (.*) – [E=Cache-Control:no-cache]

This seemed to help but when it came down to it. I had the host disabled LiteSpeed Cache for the whole "forum" directory.

Note: If your forum is in the root you will need to manually change the .htaccess file since the host cannot exclude the root from their controls.

I hope this helps someone one day because i spent hours upon hours troubleshooting possible mod issues. Which ended up being a host issue. You have to prove to them that its not your mods :(



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: evulness on January 10, 2012, 07:51:45 PM
I've installed chat on the new 2.0.2 version, and i've made the manual modifications to my theme, but the chat displays only a blank page, nothing else.
I've followed the FAQ's page regarding blank pages, but it doesn't seem to effect anything.

Any ideas why i'm getting the blank page still?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Loaf on January 11, 2012, 03:30:16 AM
Quote from: thun88 on January 08, 2012, 02:51:18 PM
I have manually mod this Version, make some change on Installation for 2.02 and fixed FABridge.js (error with Chrome and Chromium).
Check and verify. For my SMF 2.0.2 works :)

Hey that is brilliant, thank you very much.  :)

Life saver.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 11, 2012, 03:57:39 AM
Quote from: evulness on January 10, 2012, 07:51:45 PM
I've installed chat on the new 2.0.2 version, and i've made the manual modifications to my theme, but the chat displays only a blank page, nothing else.
I've followed the FAQ's page regarding blank pages, but it doesn't seem to effect anything.

Any ideas why i'm getting the blank page still?

Does it work on the SMF default theme?  If so, then you should double check all manual edits you made to files in custom themes, that were made to the default theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Glowbot on January 12, 2012, 06:38:01 AM
I am using 2.0.1 can anyone tell me how to get the users to show on the main board? will it work with 2.0 parser codes?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 12, 2012, 05:11:13 PM
Yes it will.  Make the manual edits for custom themes that were made for the default theme.  BoardIndex.template.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mayst2008 on January 12, 2012, 10:51:33 PM
where can i find the ajax chat integration version 3.2.2 for my 2.0.2 forum? thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 13, 2012, 05:32:59 PM
Try reading through the mods pages.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 16, 2012, 07:29:44 AM
Updated FABridge.js file attached in post.  It's the update recently released.  Fixes issue with Chrome users in chat, newer messages don't update at the bottom, forcing most to have to scroll down.

Upload to chat/js folder
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: noaccess on January 18, 2012, 03:48:45 AM
Does anyone know how to make the shout box viewable on some themes, but not on others? I would really appreciate some help with this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: WalrusComix on January 19, 2012, 02:18:14 PM
I was able to upload ajax chat and it looks fine.. only none of my users can access it.. when they log in they get a "You can't access the chat." message...

I checked eveything in the modification settings for Chat.. is there something else I missed..

I, as administrator, can see everything.. the shoutbox the whole bit...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 19, 2012, 02:46:45 PM
Quote from: WalrusComix on January 19, 2012, 02:18:14 PMI checked eveything in the modification settings for Chat.. is there something else I missed..

Admin > Permissions >  give permissions to membergroups for chat access
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: WalrusComix on January 19, 2012, 02:57:39 PM
THANKS.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Costner on January 23, 2012, 05:07:48 AM
everything seemed to go smoothly for me, until I launched ajax chat

then it hit me with

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /public_html/forum/chat/lib/class/CustomAJAXChat.php on line 283

any advice?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimras on January 23, 2012, 08:15:53 PM
Same issue as Costner.

Shoutbox works but not chat and if i press chat i get:


Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rootuid on January 27, 2012, 07:34:20 AM
12:33:18) ChatBot: Error: Connection status: 404
(12:33:24) ChatBot: Error: Connection status: 404
(12:33:26) ChatBot: Error: Connection status: 404

?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DJMatt on January 27, 2012, 04:54:37 PM
Hi all,

Can someone help me get the chat to work for me for version RC5?

Kind regards,
DJMatt.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimras on January 27, 2012, 05:11:54 PM
No one able to help me?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 27, 2012, 07:52:09 PM
Quote from: DJMatt on January 27, 2012, 04:54:37 PMCan someone help me get the chat to work for me for version RC5?

I'm confused cause you PM'd me asking for the download for 2.0.2 , and now you're asking in the topic for RC5?

Quote from: Nimras on January 27, 2012, 05:11:54 PM
No one able to help me?

Lets get some details first.

What smf version?  have you modified any chat files?  what theme are you using?  Is it a custom theme?   If so, Have you tested on the SMF default curve theme to see if the issu happens there?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimras on January 27, 2012, 07:58:55 PM
Quote from: hcfwesker on January 27, 2012, 07:52:09 PM

Quote from: Nimras on January 27, 2012, 05:11:54 PM
No one able to help me?

Lets get some details first.

What smf version?  have you modified any chat files?  what theme are you using?  Is it a custom theme?   If so, Have you tested on the SMF default curve theme to see if the issu happens there?

SMF 2.0.2 no custimization of any files in the chat versions TECHNO made just install as is, I have triede 3.3a, 3.3b and 3.3c with no luck.

the installation works fine, shoutbox works if you accept it will not take the autoscrool on or off  unless the icon shouldn't change.

But its the chat that acts up with tons of messages like that and a non working chat.

Atm i only have to themes the 2 installed and is usning the one name core.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 27, 2012, 08:23:34 PM
Uninstall the package you have.  And download the attachment in this post.

http://www.simplemachines.org/community/index.php?topic=257973.msg3237426#msg3237426

Just emulate your version to SMF 2.0 ( or maybe RC5 ) in the package manager, install, and test on the SMF DEFAULT theme.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimras on January 27, 2012, 08:29:49 PM
Quote from: hcfwesker on January 27, 2012, 08:23:34 PM
Uninstall the package you have.  And download the attachment in this post.

http://www.simplemachines.org/community/index.php?topic=257973.msg3237426#msg3237426

Just emulate your version to SMF 2.0 ( or maybe RC5 ) in the package manager, install, and test on the SMF DEFAULT theme.

That worked emulatin 2.0.

Can we from this then get the newer and if i read right better version running?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 27, 2012, 08:35:37 PM
Is the chat working with the zip i linked you to?  If so, just use this version.  It's the same thing, basically.

Unless you want all the extra things TECHNO added in his downloads, if so then you'll have to wait for him on support from those.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimras on January 27, 2012, 08:37:55 PM
Quote from: hcfwesker on January 27, 2012, 08:35:37 PM
Is the chat working?  If so, just use this version.  It's the same thing, basically.

Unless you want all the extra things TECHNO added in his downloads, if so then you'll have to wait for him on support from those.

Ok but how do I cut down on the channel list?

I just want a public for the empire.

One for each alliance and one for each alliance command thats it.

With the channel for each alliance only take those members, the command only those.

I also noticed TECHNO version has way more emotes and so forth you can use even a keyboard is that something I can get over as well?

And also if I wanna use another Theme is that possible?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 27, 2012, 08:41:01 PM
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

FAQ page has some stuff like this listed on there.  scroll down the post to the header  Edit/Remove the channels that are currently boards   &   To have ONLY the Public Room avaliable in the Channel List, change the array to 0 (Thanks stikkki)  and you'll see the edit for doing this.


Quote from: Nimras on January 27, 2012, 08:37:55 PMI also noticed TECHNO version has way more emotes and so forth you can use even a keyboard is that something I can get over as well?

If you want all that then you can remove the package I gave you, re-upload the broken package you been having problems with and hope to get support on it.  I gave you a working chat.   I'm sure thats worth the cost of a few less smileys in the chat that would barely be used anyhow.


Quote from: Nimras on January 27, 2012, 08:37:55 PMAnd also if I wanna use another Theme is that possible?

Yes, just parse the MOD for RC5  http://custom.simplemachines.org/mods/index.php?mod=1319  , and manually install the edits for custom themes index.template.php and BoardIndex.template.php

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimras on January 27, 2012, 08:44:20 PM
Quote from: hcfwesker on January 27, 2012, 08:41:01 PM
http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

FAQ page has some stuff like this listed on there.  scroll down the post to the header  Edit/Remove the channels that are currently boards   &   To have ONLY the Public Room avaliable in the Channel List, change the array to 0 (Thanks stikkki)  and you'll see the edit for doing this.

Cool I will read hopefully it will allow me to make it so each alliance can have their own channel, a public for the entire empire and a channel for the leadership I will read.

What about the extra emotes and so on the one TECHNO versions has will I be able to get them in without runing the chat you think?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 27, 2012, 08:46:41 PM
Quote from: Nimras on January 27, 2012, 08:44:20 PMCool I will read hopefully it will allow me to make it so each alliance can have their own channel, a public for the entire empire and a channel for the leadership I will read.

What about the extra emotes and so on the one TECHNO versions has will I be able to get them in without runing the chat you think?

Read my edited post.

About the channels.  Thy work like Boards.  A member can only have access to a channel name if they have access to the board on the forum of the same name.  So, yes, this works perfectly for teams and clans, etc.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimras on January 27, 2012, 08:49:15 PM
Quote from: hcfwesker on January 27, 2012, 08:46:41 PM
Quote from: Nimras on January 27, 2012, 08:44:20 PMCool I will read hopefully it will allow me to make it so each alliance can have their own channel, a public for the entire empire and a channel for the leadership I will read.

What about the extra emotes and so on the one TECHNO versions has will I be able to get them in without runing the chat you think?

Read my edited post.

About the channels.  Thy work like Boards.  A member can only have access to a channel name if they have access to the board on the forum of the same name.  So, yes, this works perfectly for teams and clans, etc.

Ok so edit using the link you gave me the channel list so it only list the channels that each group has access to rename them and we are going cool.

If I forget the keyboard thing do you think if i move over the images = extra emotes to this version that the chat would be able to use them without to much edit?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on January 27, 2012, 08:56:09 PM
Sorry.  If it' something I don't use myself, then I normally don't mess around with the package/coding.  Again I'll say ... be happy you have a working chat now.  Your members aren't going to be heart broken cause the working chat has less smileys/emotes then the NON-working chat ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nimras on January 27, 2012, 09:02:08 PM
Quote from: hcfwesker on January 27, 2012, 08:56:09 PM
Sorry.  If it' something I don't use myself, then I normally don't mess around with the package/coding.  Again I'll say ... be happy you have a working chat now.  Your members aren't going to be heart broken cause the working chat has less smileys/emotes then the NON-working chat ;)

Lol true i will just get the channels to work right and give users a color matching their group and be happy :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hoffy97 on January 28, 2012, 11:55:21 AM
For days i tried to install this mod with errors every time.
Tried all suggested here with not much success.
I am using the 2.0.2 version and thought i would have to wait
till someone figured it out.
So i wanted to post here what my problem was so others
with the same issues may try what i did to fix it.
First the mod install went fine.
Chat window was there but would not save or display the text.
Or it would come up with a connection error.
After looking at the server log i noticed some errors in a mod
that was installed a while back while i was trying to use the chat.
That mod was the adk gallery.
So i uninsulated it and bingo.
The chat mod works fine.
I also have all chat files set to 755 permissions.
Hope this helps someone.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on February 01, 2012, 11:02:50 AM
Quote from: Nimras on January 23, 2012, 08:15:53 PM
Same issue as Costner.

Shoutbox works but not chat and if i press chat i get:


Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

I know this issue was fixed by installing the other chat package, but I think I duplicated this error, in case you wanted to try TECHNO's mod agagin.   It seems something must have no installed correctly in one of your language files.  Maybe Modifications.english.php   ... that will cause the pop-up chat to throw these errors.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FireDitto on February 05, 2012, 10:42:00 PM
I am getting this error, when entering hte chat room;

QuoteTypeError: Object#<HTMLObjectElemebt> has no method 'create'

OK

Any ideas? It seems to be working fine...


Site in question:
katila.second-pass.net and is 2.0.2 running emulant 2.0 to get the package to Install.

Multiple mods of all shapes and sizes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on February 05, 2012, 11:33:55 PM
Quote from: FireDitto on February 05, 2012, 10:42:00 PM
I am getting this error, when entering hte chat room;

QuoteTypeError: Object#<HTMLObjectElemebt> has no method 'create'

OK

Any ideas? It seems to be working fine...

I'm guessing you're using Google Chrome browser to access the chat.  in that case, check my fix for it in this link. http://www.simplemachines.org/community/index.php?topic=257973.msg3253341#msg3253341
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FireDitto on February 05, 2012, 11:35:37 PM
Ah, yes, I am.


I am also having issues with no sound. Is that Chrome related? The sounds work fine when I open them in their own little window things (eg, follow the direct linking to their location) but do not work in the chat room.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on February 05, 2012, 11:37:13 PM
Just try the fix in the link ;)

Just download the file, and upload it in the folder as stated so it overwrites the original.  should fix the sound issue as well.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FireDitto on February 05, 2012, 11:44:49 PM
Hrm. I did so, and it didn't work =/

I put it in chat/js and overwrote it, as it says.

Twice, even >_> Just to make sure.


EDIT: NVM, it works now xD It was just taking it's time :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on February 05, 2012, 11:49:08 PM
yeah, any changes you make to a chat file, while in chat, just do an F5 hard refresh to make the changes appear quicker ;)

So, everything that was giving issues is working now?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: erpee on February 09, 2012, 04:00:47 PM
I searched in this huge topic, but can't find a solution for my problem.
The chat did not worked anymore after an upgrade from RC3 to 2.02. It simply disappeared from everywhere except in the packages...
Good, if I look at the installed packages, I still see AjaxChat Integration 3.2.1 (modified for SMF 2 RC3).
When i try to uninstall it, it say that the file does not exist.

I don't know what to do tu uninstall ajax chat integration and reinstall it.
All help is more then welcome.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Inti31 on February 09, 2012, 05:08:54 PM
Uh - i installed that AJAX Chat with integration sucessful in a forum (modifed by me) - it  works like a charme

I used the same install package to do the same in my forum... now...
I am logged, the message line (how many are in the chat - it shows the number - all fine

I can login  - but I cant sent a message, i don't see my name in the chat... - nothing..

any idea?

cheers inti31
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Tejan on February 09, 2012, 06:33:33 PM
Quote from: Inti31 on February 09, 2012, 05:08:54 PM
Uh - i installed that AJAX Chat with integration sucessful in a forum (modifed by me) all fine works like a charme

I used the same install package to do the same in my forum... now...
I am logged, the message line (how many are in the chat - it shows the number - all fine

I can login  - but I cant sent a message, i don't see my name in the chat... - nothing..

any idea?

cheers inti31
Change the permission for the Chat and shoutbox folders, as well as all items in them, to 755. (This does require FTP access.)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on February 09, 2012, 07:39:53 PM
Quote from: Inti31 on February 09, 2012, 05:08:54 PMI can login  - but I cant sent a message, i don't see my name in the chat... - nothing..

Using Google Chrome by any chance?

If so, then check this link...  http://www.simplemachines.org/community/index.php?topic=257973.msg3253341#msg3253341
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GlitchPC on February 10, 2012, 02:13:11 AM
Quote from: hcfwesker on February 09, 2012, 07:39:53 PM
Quote from: Inti31 on February 09, 2012, 05:08:54 PMI can login  - but I cant sent a message, i don't see my name in the chat... - nothing..

Using Google Chrome by any chance?

If so, then check this link...  http://www.simplemachines.org/community/index.php?topic=257973.msg3253341#msg3253341

I use the latest version of Google Chrome with no issues, at all.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on February 10, 2012, 03:03:59 AM
Quote from: GlitchPC on February 10, 2012, 02:13:11 AMI use the latest version of Google Chrome with no issues, at all.

are using the actual mod package from the download page, or an updated package posted within the topic?  The Fabridge.js file is out of date in the mod site package, and affects most Google chrome users.  A few in here have used it and it fixed their issues they had when problems were specific to Chrome browsing users in the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GlitchPC on February 10, 2012, 10:30:57 AM
Quote from: hcfwesker on February 10, 2012, 03:03:59 AM
Quote from: GlitchPC on February 10, 2012, 02:13:11 AMI use the latest version of Google Chrome with no issues, at all.

are using the actual mod package from the download page, or an updated package posted within the topic?  The Fabridge.js file is out of date in the mod site package, and affects most Google chrome users.  A few in here have used it and it fixed their issues they had when problems were specific to Chrome browsing users in the chat.

I'm using version 3.2.2b of this mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Inti31 on February 10, 2012, 10:39:51 AM
no luck - I gave alle files in /chat and /shoutBox 666, directories are all 755, I put in /js dir the new FABridge.js... - tried with Chrome, IE, FF...

Why it won't work?
it is just that  - by clicking on Submit - nothing happen (both, in  chat / shoutBox)  - the entered message won't appear, also my name isn't visible...
The rest is working
if I am not logged to my forum and i click on "chat" i can enter my login data - well done - I am in the chat and logged to my forum, the counter says that there is someone in the chat(1)  and also my name is listed in the boardindex

Any other idea?

cheers inti31
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: t24e.com on February 12, 2012, 07:48:48 AM
Hi All,

I am on 2.0.1

I get the below error while trying to install the package.

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

Please help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Inti31 on February 12, 2012, 09:19:34 AM
@t24e: you've to emulate 2.0 RC 3, I guess...


@all - I installed the same package now to my 3rd testforum - no problems - chat is working...

just an idea - maybe this ajax chat needs a php version >  5.2.6-1 ?

I installed it successfull (and working) on:

webhoster 1&1: PHP Version 5.2.17
webhoster (free) CWCity): PHP Version 5.3.9 - http://inti31.cwsurf.de/

not working on my webserver, runs php version  5.2.6-1+lenny13 (http://epica-forum.de)

cheers inti31
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: oldguest on February 13, 2012, 12:03:05 AM
Hello All
I have now installed the newest version of smf 2.02 and the newest version of ajax chat version 3.3A
Now my chat works fine.
After that i install the newest version of the faq module, and no i can't see the messages, there is typed in my chat.
Can anyone tell me, how to do.
Thanks in advance.
Best regards
Noeyes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jmil on February 13, 2012, 10:49:34 AM
I Have Installed Version AJAX CHAT 3.2.1 on a 1.1.16 SMF  Forum.

Since I have a custom Theme I manually Parsed the Edits and in the Default theme - Everything works fine - :CHAT" Button on Menu, Shout box works too, but when I move back to the Custom Theme I do NOT get the "CHAT" Button ( and I did the Manual Parse) and can not find a thread of how to incorporate the Chat Button in the Menu for a custom theme.

The Length of this thread here is enormous!

Any Assistance would be appreciated.

http://forums.midatlanticxriders.com/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: oldguest on February 14, 2012, 06:39:30 AM
Hello all
I use a shared hosting with my smf 2.02 and ajax chat.
I have a problem with Ajax chat, when my members use the chat, it logs the users out.
What can i do, are there other chatrooms i can use with smf 2.02.
I hope anyone can help me.
Best regards
Noeyes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jane77 on February 15, 2012, 08:57:11 PM
Does this chat work with SMF 1.1.15 or 1.1.16?

Anyone see it working on iPhone or iPad?

Ta,

Jane
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jmil on February 16, 2012, 09:37:47 AM
Doesn't seem to be any support here!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 16, 2012, 12:39:04 PM
Quote from: jmil on February 16, 2012, 09:37:47 AM
Doesn't seem to be any support here!

Have you never heard of patience?

I have not used the 1.1.x series for a long time so am unable to help.

There are others who may be able to however.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jmil on February 16, 2012, 02:03:08 PM
Quote from: Old Fossil on February 16, 2012, 12:39:04 PM
Quote from: jmil on February 16, 2012, 09:37:47 AM
Doesn't seem to be any support here!

Have you never heard of patience?

I have not used the 1.1.x series for a long time so am unable to help.

There are others who may be able to however.

No offense on you my friend! Just a simple statement on this particular thread! I do know people are busy!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GlitchPC on February 16, 2012, 02:14:17 PM
Quote from: jmil on February 16, 2012, 02:03:08 PM
Quote from: Old Fossil on February 16, 2012, 12:39:04 PM
Quote from: jmil on February 16, 2012, 09:37:47 AM
Doesn't seem to be any support here!

Have you never heard of patience?

I have not used the 1.1.x series for a long time so am unable to help.

There are others who may be able to however.

No offense on you my friend! Just a simple statement on this particular thread! I do know people are busy!

I used the search box at the top of this page and found the answer to your question...you should give it a try, too.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jmil on February 16, 2012, 04:20:43 PM
I did use the  search Thank You as I would not have posted if I did not first Check as I am not a newbie nor ignorant of the standard protocol and rules of a forum.   

I have corrected this myself so it is closed!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AnilK on February 19, 2012, 10:54:49 AM
Quote from: Inti31 on February 09, 2012, 05:08:54 PM
Uh - i installed that AJAX Chat with integration sucessful in a forum (modifed by me) - it  works like a charme

I used the same install package to do the same in my forum... now...
I am logged, the message line (how many are in the chat - it shows the number - all fine

I can login  - but I cant sent a message, i don't see my name in the chat... - nothing..

any idea?

cheers inti31

Same problem here. I installed 3.2.2b and it was working perfectly. But a few days ago it stopped working. I can login, see the message line but i can't send a message or see the online users. Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on February 19, 2012, 11:26:33 AM
Have you installed any mods or upgraded SMF to 2.0.2?

"i can't send a message" - why not? What happens?

Have you changed host or have you or your host changed any webspace settings?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AnilK on February 19, 2012, 08:07:15 PM
Quote from: Farjo on February 19, 2012, 11:26:33 AM
Have you installed any mods or upgraded SMF to 2.0.2?

"i can't send a message" - why not? What happens?

Have you changed host or have you or your host changed any webspace settings?

I didn't make any changes. I'll ask my host if they did.

www.gelirkapisi.com/chat/index.php
Username: deneme
Password: deneme
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on February 20, 2012, 02:28:44 AM
Do you know how to look up the messages in your database? If so have a look - I just wrote the message "Hello ua_anil let's hope we get this sorted." - has it been saved to the database?

If so you mat be able to fix it by changing the setting to allow users to view messages before they joined chat. This worked for me, but ultimately I got it fixed by changing hosts, which is why I asked if your host had made any changes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AnilK on February 21, 2012, 02:00:14 AM
Quote from: Farjo on February 20, 2012, 02:28:44 AM
Do you know how to look up the messages in your database? If so have a look - I just wrote the message "Hello ua_anil let's hope we get this sorted." - has it been saved to the database?

If so you mat be able to fix it by changing the setting to allow users to view messages before they joined chat. This worked for me, but ultimately I got it fixed by changing hosts, which is why I asked if your host had made any changes.

I can see your message and other logs in database. I allowed guests to view messages but still having the problem.

Also i have another website on this host and its' chat mod working perfectly: http://www.kuponbahis.com/chat/index.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on February 21, 2012, 03:03:31 AM
Quote from: Farjo on February 20, 2012, 02:28:44 AM
If so you may be able to fix it by changing the setting to allow users to view messages before they joined chat. This worked for me, but ultimately I got it fixed by changing hosts, which is why I asked if your host had made any changes.
No not allowing guests to view messages but by changing this parameter of the chat/lib/config.php file:
$config['requestMessagesPriorChannelEnter'] = false;

You could also check the FAQ which mentions this issue a couple of times.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: AnilK on February 23, 2012, 05:08:50 AM
Problem solved. I checked the files with file_check.php and found that index.template wasn't ending with ?>. I removed the blank lines and eveything works fine now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on February 23, 2012, 05:20:10 AM
Well done and thanks for posting the solution.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Swayforth on February 23, 2012, 07:34:44 AM
Anyone setup socket server option on chat? I set it to true but i don't know if its working or not. Anyone have experience with this?


// Defines if the socket server is enabled:
$config['socketServerEnabled'] = false;
// Defines the hostname of the socket server used to connect from client side (the server hostname is used if set to null):
$config['socketServerHost'] = null;
// Defines the IP of the socket server used to connect from server side to broadcast update messages:
$config['socketServerIP'] = '127.0.0.1';

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on March 01, 2012, 12:01:49 PM
Hi I just installed http://www.simplemachines.org/community/index.php?topic=257973.msg3222028#msg3222028  on my new SMF 2.0.2

My users are getting timeout's about every 5 minutes. Can I adjust this to be less often? Its rather annoying
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GlitchPC on March 01, 2012, 12:15:39 PM
Quote from: Blah blah on March 01, 2012, 12:01:49 PM
Hi I just installed http://www.simplemachines.org/community/index.php?topic=257973.msg3222028#msg3222028  on my new SMF 2.0.2

My users are getting timeout's about every 5 minutes. Can I adjust this to be less often? Its rather annoying

Read this from the FAQ of the first post of this mod topic:

Set how long you want members to be idle before they are timed out.

Open.....yourforum/chat/lib/config.php (Change to whatever you like.)

Find

// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on March 01, 2012, 12:55:38 PM
Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on March 01, 2012, 03:22:56 PM
Having another glitch...

Any of you experience a lag in messages showing up in the chat if you are inactive, then when you send your message they all come through at once?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperBrian91 on March 01, 2012, 03:37:53 PM
I get the following database error when I try and install the chat

SQL logic error or missing database
no such table: IF
File: /home/sites/{forum name}/public_html/Packages/temp/Tables_2.php
Line: 12


I am unsure where the problem is but here is the "Tables_2.php" file.

Using SMF 2.0.2

?<?php

if(file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
   require_once(
dirname(__FILE__) . '/SSI.php');
else if(!
defined('SMF'))
   die(
'<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php and SSI.php files.');

if((
SMF == 'SSI') && !$user_info['is_admin'])
   die(
'Admin priveleges required.');

//remove previous version's tabales
$smcFunc['db_query']('''DROP TABLE IF EXISTS ajax_chat_online', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS ajax_chat_messages', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS ajax_chat_bans', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS ajax_chat_invitations', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS ajax_shout_online', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS ajax_shout_messages', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS ajax_shout_bans', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS ajax_shout_invitations', array());

$smcFunc['db_query']('''DROP TABLE IF EXISTS {db_prefix}ajaxchat_online', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS {db_prefix}ajaxchat_messages', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS {db_prefix}ajaxchat_bans', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS {db_prefix}ajaxchat_invitations', array());

$smcFunc['db_query']('''CREATE TABLE {db_prefix}ajaxchat_online (
userID INT(11) NOT NULL,
userName VARCHAR(64) NOT NULL,
userRole INT(1) NOT NULL,
channel INT(11) NOT NULL,
dateTime DATETIME NOT NULL,
ip VARBINARY(16) NOT NULL
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin'
, array());

$smcFunc['db_query']('''CREATE TABLE {db_prefix}ajaxchat_messages (
id INT(11) NOT NULL AUTO_INCREMENT,
userID INT(11) NOT NULL,
userName VARCHAR(64) NOT NULL,
userRole INT(1) NOT NULL,
channel INT(11) NOT NULL,
dateTime TIMESTAMP NOT NULL,
ip VARBINARY(16) NOT NULL,
text TEXT,
PRIMARY KEY (id)
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin'
, array());

$smcFunc['db_query']('''CREATE TABLE {db_prefix}ajaxchat_bans (
userID INT(11) NOT NULL,
userName VARCHAR(64) NOT NULL,
dateTime DATETIME NOT NULL,
ip VARBINARY(16) NOT NULL
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin'
, array());

$smcFunc['db_query']('''CREATE TABLE {db_prefix}ajaxchat_invitations (
userID INT(11) NOT NULL,
channel INT(11) NOT NULL,
dateTime TIMESTAMP NOT NULL
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin'
, array());

$smcFunc['db_query']('''DROP TABLE IF EXISTS {db_prefix}ajaxshout_online', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS {db_prefix}ajaxshout_messages', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS {db_prefix}ajaxshout_bans', array());
$smcFunc['db_query']('''DROP TABLE IF EXISTS {db_prefix}ajaxshout_invitations', array());

$smcFunc['db_query']('''CREATE TABLE {db_prefix}ajaxshout_online (
userID INT(11) NOT NULL,
userName VARCHAR(64) NOT NULL,
userRole INT(1) NOT NULL,
channel INT(11) NOT NULL,
dateTime DATETIME NOT NULL,
ip VARBINARY(16) NOT NULL
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin'
, array());

$smcFunc['db_query']('''CREATE TABLE {db_prefix}ajaxshout_messages (
id INT(11) NOT NULL AUTO_INCREMENT,
userID INT(11) NOT NULL,
userName VARCHAR(64) NOT NULL,
userRole INT(1) NOT NULL,
channel INT(11) NOT NULL,
dateTime DATETIME NOT NULL,
ip VARBINARY(16) NOT NULL,
text TEXT,
PRIMARY KEY (id)
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin'
, array());

$smcFunc['db_query']('''CREATE TABLE {db_prefix}ajaxshout_bans (
userID INT(11) NOT NULL,
userName VARCHAR(64) NOT NULL,
dateTime DATETIME NOT NULL,
ip VARBINARY(16) NOT NULL
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin'
, array());

$smcFunc['db_query']('''CREATE TABLE {db_prefix}ajaxshout_invitations (
userID INT(11) NOT NULL,
channel INT(11) NOT NULL,
dateTime DATETIME NOT NULL
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin'
, array());

if(
SMF == 'SSI')
   echo 
'Database changes are complete!';

?>
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperBrian91 on March 02, 2012, 01:54:12 PM
Any help for my above post? ^^ It is kinda urgent to get it working as members are looking for a chat room to talk and discuss with each other.


Sorry for double posting
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on March 05, 2012, 01:05:58 PM
Hey has anyone gone through and written a tutorial on how to customize the chat for your site? Smileys, chat background, chat name (ie not AJAX CHAT) etc?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 05, 2012, 01:07:40 PM
Quote from: Blah blah on March 05, 2012, 01:05:58 PM
Hey has anyone gone through and written a tutorial on how to customize the chat for your site? Smileys, chat background, chat name (ie not AJAX CHAT) etc?

Look at the FAQs on the mods first post.

You can change the smileys, name and also include a welcome message and profanity filter.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Tonyvic on March 06, 2012, 07:00:09 AM
Running SMF 2.0.2 & AjaxChat Integration3.2.2b

This Mod runs without a hitch for me, until I install the 'Hide Avatars from Guests' Mod.
After which the memberlist in Chat is empty & messages don't transfer to the main window (or get sent) when submitted, 'Users in chat' in 'Users Online' shows the names ok . I checked in the database & everthing submitted is in there.

I have tried the fixes in FAQS:
Quotecaused by either other Mods or some servers
but nothing seems to solve the problem.

Any ideas would be very welcome.

Tony
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Klauser on March 06, 2012, 04:10:00 PM
Quote from: hcfwesker on January 16, 2012, 07:29:44 AM
Updated FABridge.js file attached in post.  It's the update recently released.  Fixes issue with Chrome users in chat, newer messages don't update at the bottom, forcing most to have to scroll down.

Upload to chat/js folder

Than you very much this fixed my TypeError: Object#<HTMLObjectElemebt> has no method 'create' and sound problem in Chrome 19.0.1041.0. It would be great that .HuNTeR. could update the Mod for other Users. The new FABridge.jsis is not in AjaxChat Integration_3.2.1.zip
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: antonio.kizito on March 07, 2012, 03:45:09 AM
Im Newbie in SMF i have a  smf 2.0.2   and instal ajax 3.3a  this mod install correctly but i open the chat dont see the text  that i write, when sent  the text is null or blank.

HELP ME PLZ
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fedxrx on March 07, 2012, 10:26:37 AM
installed ajaxchat and installed this mod, perfectly.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 11, 2012, 03:16:51 PM
Tonyvic

Have you tried installing the hide avatar before the chat?

(clutching at straws)

Can ya link me to the hide avatar mod please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Tonyvic on March 11, 2012, 07:50:48 PM
Quote from: Old Fossil on March 11, 2012, 03:16:51 PM
Tonyvic

Have you tried installing the hide avatar before the chat?

(clutching at straws)

Can ya link me to the hide avatar mod please.

Thanks for the response, I haven't so far but will try tomorrow on my test forum & let you know.
Hide Avatar Mod is  Here (http://custom.simplemachines.org/mods/index.php?mod=2401)

Tony
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sah62 on March 13, 2012, 12:25:31 PM
Quote from: hcfwesker on February 01, 2012, 11:02:50 AM
Quote from: Nimras on January 23, 2012, 08:15:53 PM
Same issue as Costner.

Shoutbox works but not chat and if i press chat i get:


Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

I know this issue was fixed by installing the other chat package, but I think I duplicated this error, in case you wanted to try TECHNO's mod agagin.   It seems something must have no installed correctly in one of your language files.  Maybe Modifications.english.php   ... that will cause the pop-up chat to throw these errors.

I'm having the same issue with 3.3b on SMF 2.0.2. How did you manage to duplicate the error? Modifications.english.php isn't modified by the installation, but Help.english.php is - and as far as I can tell it looks fine.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sah62 on March 13, 2012, 05:32:40 PM
I just found the problem with these "Wrong datatype for second argument in <path>/chat/lib/class/CustomAJAXChat.php on line 283" errors and can confirm that there's a fix. Note that during the mod installation process the line endings in the source file are being changed (at least they were for my forum), so source file line numbers are misleading. Here's the fix:

Open the file chat/lib/class/CustomAjaxChat.php

Look for this block of text around line 152 (with uncorrupted line endings):


$defaultChannelFound = false;

while($row = $result->fetch()) {
// Check if we have to limit the available channels:
if($this->getConfig('limitChannelList') && !in_array($row['ID_BOARD'], $this->getConfig('limitChannelList'))) {
continue;
}

$forumName = $this->trimChannelName($row['name']);


The problem is on this line:


if($this->getConfig('limitChannelList') && !in_array($row['ID_BOARD'], $this->getConfig('limitChannelList'))) {


in_array expects its second argument to be an array, and apparently '$this->getConfig('limitChannelList')' isn't an array. That can be fixed by explicitly setting the type of the getConfig return value.

Change '$this->getConfig('limitChannelList')' to 'array($this->getConfig('limitChannelList'))', like this:



if($this->getConfig('limitChannelList') && !in_array($row['ID_BOARD'], array($this->getConfig('limitChannelList')))) {


Save the file once you've made the change. No more warnings for me, and chat functionality is working.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 14, 2012, 01:16:38 PM
The chat was working okay until I added the Post Notification tip.

Now getting the error:

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

Any ideas anyone?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 15, 2012, 08:40:27 PM
Since the previous message I deleted the edit then deleted the ajaxchat files via phpmyadmin.

Still have the same error.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TradingHub.co on March 15, 2012, 09:14:31 PM
Hello,

First of all awesome mod! I am having troubles though..

I am getting 503 errors 10-20 times a day.. I have about 30-40 members in chat everyday and we are always typing.. happens to some members more than others.. Is there any solution to this? I have contacted my host everyday for a week and they say they see no problems.

The chat also freezes from time to time.. You won't know its frozen, but when you type something all the missed messages pop up at once.

Finally, when there are a lot of members in chat and you go to open/load chat.. it takes forever.. 15-20 min!

Can anybody please help with this? I know a member here, T3CHNO, has been a great help to me.. But I feel bad because I keep contacting him for help.. If anybody can help I would greatly appreciate it. T3CHNO actually logged into my site and set everything up for me and has helped when I have problems. If anybody would be willing to do that it would be a great help because I am code illiterate  :P

Thank you very much!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 15, 2012, 09:37:54 PM
@Trading Hub

Have you checked your error log?

Link to chat? (if open to guests).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TradingHub.co on March 15, 2012, 11:47:51 PM
Quote from: Old Fossil on March 15, 2012, 09:37:54 PM
@Trading Hub

Have you checked your error log?

Link to chat? (if open to guests).

Ok.. woah.. Just check the error log (didn't know what that was before) and there are 635 errors. They started on Feb. 27, 2012.. My site has been up for almost 2 years now. Does the error log have a cap or is 2/27/12 when they started? I don't even know what I am looking for in the error log.

The chat is locked to paying subscribers only.. But I could create a username and grant it access if you or anyone with good intentions wanted to help! I would of course PM this information.. and it would only be used for a limited time.

Most of the error log is this:

http://www.tradinghub.co/forum/index.php?action=admin;area=news;sa=mailingsend

Unable to send mail to the email address '[email protected]'

It's also posting this code with them: 22ff607cc8c4d3cb215bcfacfc1f2bd7


(I used an example as not to give out users email addresses)

This worries me though.. because now I think that users have not been receiving my newsletters. Which would explain the drop off in our traffic numbers. Now another problem I have to deal with..

This is the farthest back error that is showing:

http://www.tradinghub.co/forum/index.php?action=admin;area=packages;sa=install2;package=ForumFirewall_1.1.5.zip;pid=0

8: Undefined index: *

File: /home1/tradinl1/public_html/forum/Packages/temp/install_db.php
Line: 468

dcc403baae82bd1315de8ab2aa996ef0


And this one comes right after it:

Apply Filter: Only show the error messages of this URL
http://www.tradinghub.co/forum/index.php?action=admin;area=packages;sa=install2;package=ForumFirewall_1.1.5.zip;pid=0

2: Invalid argument supplied for foreach()

File: /home1/tradinl1/public_html/forum/Packages/temp/install_db.php
Line: 468

dcc403baae82bd1315de8ab2aa996ef0
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 15, 2012, 11:51:24 PM
You would need to make a post in that mods support topic.

I myself use bad behaviour.

Which other mods are installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TradingHub.co on March 15, 2012, 11:56:15 PM
Only the AJAX chat.. I have not done any of the work myself though.. It has all been done by T3CHNO.. and he really seems to know what he is doing..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: antonio.kizito on March 16, 2012, 05:34:35 AM
Quote from: Tejan on February 09, 2012, 06:33:33 PM
Quote from: Inti31 on February 09, 2012, 05:08:54 PM
Uh - i installed that AJAX Chat with integration sucessful in a forum (modifed by me) all fine works like a charme

I used the same install package to do the same in my forum... now...
I am logged, the message line (how many are in the chat - it shows the number - all fine

I can login  - but I cant sent a message, i don't see my name in the chat... - nothing..

any idea?

cheers inti31

i have of same problem , help me plz
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Inti31 on March 17, 2012, 06:10:24 PM
Quote from: antonio.kizito on March 16, 2012, 05:34:35 AM
Quote from: Inti31 on February 09, 2012, 05:08:54 PM
I can login  - but I cant sent a message, i don't see my name in the chat... - nothing..
i have of same problem , help me plz

I did a fresh install of smf 202 (testforum, see sig) - then i installed ajax chat 33a as 1st mod - it works.
Then i implemented 70 other mods - now it does not work. :(
I forgot to check after installing another mod if the chat is working - maybe next time - strange, all the other 70 mods are working fine


6 Custom buttons / tabs with Sub Menus (4) - 0.5
Activity in Profile - 1.1
Activity_Bar - 1.0.1.3de
Ad Managment - 3.0.1
Admin member list registration date - 1.2
AjaxChat Integration - 3.3a
Align text with Smiley - 1.0
Auto Refresh Who Index - 1.1
Autor In Display - 1.0
Board Viewers Mod - 1.2.1.1c
Bookmarks - 2.5
Categories in Add and Edit Membergroups pages - 0.1.1
Change All Subjects - 1.1.2
Code Highlighting - 0.7.4.2
Contact Page - 3.0
Copy Topics - 1.6
Custom Action Mod - 3.2
Custom Field On Posting - 1.2de
Default Avatar - 2.2
Descriptive Links - 1.0
Downloads System - 1.5
Dynamic_Memberlist - 2.0.6
eBay.de/Amazon.de BBCode - 1.0de
Enhanced PM Popup - 1.0.1
FAQ Mod - 1.2
Faster_parsesmileys - 1.0
Footer Menu v.1 - v.1
Footnotes - 1.08de
Global Headers Footers - 2.0
Glossary - 0.3.1
Google Member Map - 2.6
Hide Post NEW - 1.2
Highslide BBCode and Image Viewer - 1.1
httpBL - 2.5.1
jQuery Slidelogin++ - 1.0de
Line Prefix BBC - 1.2
MemberNumber - 1.1
Moderator and Administrator Comment Tags - 1.8.1
More Spiders - 1.2
Move Old Topics - 1.3.8de
nCode Image Resizer - 1.3.1
New Topic Button - 1.0
Next Post Level - 1.3.3de
NiceTooltips - 1.7de
Order Stickied Topics - 1.01
PDF Tag - 1.1
PM Attachments - 1.6
Reg Bar - 1.0.2de
SA KB - RC1 R19
Show BBCode to guests - 0.1.4
Showcase - 1.0
Simple Audio Video Embedder - 2.0.5
SimplePortal - 2.3.4
SMF Bay PRO - 1.0.6.1
SMF Gallery Lite - 3.1.1a
SMF Multi Quote - 1.1.3de
SMF Search Enhancement Mod - 1.8.2
SMFPacks Shoutbox - 1.0.3
Sneaky Editing - 1.0
Spoiler Tag - 0.7.2
Started By Column - 1.4
Stop Spammer - 2.3.9
Tabbed smileys - 0.3.7
Thumbnails in Tooltips - 0.4
Topic Solved - 1.1.1
Topics Filter - 3.2
Ultimate Profile - 0.9.1
URL+ Popup - 1.0de
Users Online Today - 2.0
View IP Permissions - 1.1
Wrap Text Around Image - 1.3


i don't know which mod is responsible for that ajax chat won't work... - the 755 chmod is set for index.php

cheers inti31
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Tonyvic on March 21, 2012, 12:54:46 AM
Quote from: Tonyvic on March 06, 2012, 07:00:09 AM
Running SMF 2.0.2 & AjaxChat Integration3.2.2b

This Mod runs without a hitch for me, until I install the 'Hide Avatars from Guests' Mod.
After which the memberlist in Chat is empty & messages don't transfer to the main window (or get sent) when submitted, 'Users in chat' in 'Users Online' shows the names ok . I checked in the database & everthing submitted is in there.

I have tried the fixes in FAQS:
Quotecaused by either other Mods or some servers
but nothing seems to solve the problem.

Any ideas would be very welcome.

Tony
Quote from: Tonyvic on March 11, 2012, 07:50:48 PM
Quote from: Old Fossil on March 11, 2012, 03:16:51 PM
Tonyvic

Have you tried installing the hide avatar before the chat?

(clutching at straws)

Can ya link me to the hide avatar mod please.

Thanks for the response, I haven't so far but will try tomorrow on my test forum & let you know.
Hide Avatar Mod is  Here (http://custom.simplemachines.org/mods/index.php?mod=2401)

Tony

Better late than never :-[, sorry!
Installing the 'Hide Avatar from Guests' Mod first then 'Ajax Chat Integration', causes a '500 Internal Server Error' when navigating away from the 'Package Manager' page after installing 'Chat' although it states:
QuoteThe package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes.
So, sadly that straw doesn't help in this case! :'( Maybe another one might help, any more suggestions? :)

Tony
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Wilcop™ on March 23, 2012, 06:41:06 PM
Help me the name "ChatBot" is gone and is still standing in config.php.
I'am using SMF 2.0.2 and AjaxChat Integration_3.3c.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg834.imageshack.us%2Fimg834%2F6400%2F2332012233553.png&hash=7665ce7cea9da1de2ed0491c304ef000eaba0363)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kevin1 on March 24, 2012, 02:16:21 AM
Please update it for 2.0.2, AjaxChat Integration_3.2.1 is nt working in 2.0.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Zuća on March 24, 2012, 05:57:10 AM
Quote from: Akram210712 on March 24, 2012, 02:16:21 AM
Please update it for 2.0.2, AjaxChat Integration_3.2.1 is nt working in 2.0.2

download new version in attachment(in post)

http://www.simplemachines.org/community/index.php?topic=257973.msg3222028#msg3222028
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Kevin1 on March 29, 2012, 11:34:38 PM
^ it is also for smf 2.0.1
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on March 30, 2012, 02:29:02 AM
You just need to change the package-info-xml file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 30, 2012, 11:22:07 AM
Quote from: Zuća on March 24, 2012, 05:57:10 AM
Quote from: Akram210712 on March 24, 2012, 02:16:21 AM
Please update it for 2.0.2, AjaxChat Integration_3.2.1 is nt working in 2.0.2

download new version in attachment(in post)

http://www.simplemachines.org/community/index.php?topic=257973.msg3222028#msg3222028

Several users have had problems installing 3.3c

I myself use 3.2.2 which is more reliable imo.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on March 30, 2012, 11:25:30 AM
Quote from: Wilcop™ on March 23, 2012, 06:41:06 PM
Help me the name "ChatBot" is gone and is still standing in config.php.
I'am using SMF 2.0.2 and AjaxChat Integration_3.3c.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg834.imageshack.us%2Fimg834%2F6400%2F2332012233553.png&hash=7665ce7cea9da1de2ed0491c304ef000eaba0363)

Wilcop

Have a look for version 3.2.2

The chatbot should be there though.



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Carol_i28 on April 03, 2012, 04:55:00 AM
I have installed version 3.3c, on smf 2.0.2 the shout box is awesome, but every time some posts, they have to hit "home" or refresh the page before the post shows in chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoCKeT-88 on April 03, 2012, 10:37:44 AM
I have a question about this great mod.  How can you clear out private created rooms.  I created one and now its like a perm chat room in the list.


Thanks a lot!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: jmil on April 03, 2012, 12:55:04 PM
I got it working Great on my Forum with the Exception of adding the Button (Yes Custom Theme).

Here is what my other Buttons Codes look like in the "index.template.php":

// Show the [chat] button.
echo '
<li><a class="nav" href="', $scripturl, '?action=chat"><span>' , "Chat" , '</span></a></li>';


Here is the Parse Code:

/ the [chat] button
$chatPath = str_replace("index.php", "chat/index.php", $scripturl);
$num = (empty($modSettings['enableChatButtonNo'])) ? 0 : count(chatOnlineUsers());
echo $context['browser']['is_ie4'] ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '', '
<td valign="top" class="maintab_back">
<a href="', $chatPath, '"', empty($modSettings['chatPopUp']) ? 'target="_blank"' : ' onclick="openWindow(this.href);this.blur();return false;"', '>', $txt['chat'], ($num > 0) ?  ('('.$num.')') : '' , '</a>
</td>';


Trying to make it work on my theme! I can easily create the Chat Button (as you see above) and it shows on my template - Just cant figure out the code to incorporate it in my theme and look right!

Any Help would be great.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on April 05, 2012, 02:07:59 PM
Quote from: hcfwesker on February 01, 2012, 11:02:50 AM
Quote from: Nimras on January 23, 2012, 08:15:53 PM
Same issue as Costner.

Shoutbox works but not chat and if i press chat i get:


Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/nimras/yggdrasilempire.com/ToN/chat/lib/class/CustomAJAXChat.php on line 283

I know this issue was fixed by installing the other chat package, but I think I duplicated this error, in case you wanted to try TECHNO's mod agagin.   It seems something must have no installed correctly in one of your language files.  Maybe Modifications.english.php   ... that will cause the pop-up chat to throw these errors.

I'm getting the same error (custom theme - Yem Ye�il Husami SMF version 2.0.2) i didn't see i fix i have version b of T3CHN0's versions installed....

Error:
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/www/420boards.org/forums/chat/lib/class/CustomAJAXChat.php on line 283

here's a screen shot
pic #1: errors on top
pic #2: page down/chat window (user list blank - you can type in the send box but it don't save in the chat window)

(browser - firefox)

PS: My bad i just found the post with the fix...... it's working great on 2.0.2 on my custom theme..... thanks to the folks that worked on this mod...... my forums were dead without a real chat room

THANKZ GUYS!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Inti31 on April 07, 2012, 05:48:57 AM
maybe useful for people who have problems with the chat.

I stated some posts ago that I installed sucessful the chat  but can't see the member in the chat else I was able to post sth.

That happen because of that mod: Wiki BBC (http://custom.simplemachines.org/mods/index.php?mod=2969).

I tried that out - i installed the chat first and it runs fine - I installed then Wiki BBC - the chat won't work anymore. So I just deinstalled the wiki bbc mod and now we are able to use that chat.

cheers Inti31


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Rushmead on April 08, 2012, 03:35:38 AM
Hello
On my Forum I've got The Chat and I have 3 Different Channels Admin_Only Moderators_Only and V.I.P. Is there a Way to Limit It  down so only V.I.P's Can Access V.I.P and public, Moderators can Access V.I.P and Moderators_Only and Public and Admins Can Access all? I've Added my Group V.I.P To it... Any Way? Anybody help?


Thanks Rushmead
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TFroehlichIII on April 11, 2012, 12:05:12 AM
I can't get this to work on my 2.0.2, can someone please help me? Please PM me!!!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Roki [IN] on April 11, 2012, 05:03:27 AM
Quote from: T3CHN0 on December 04, 2011, 10:09:44 AM
Anyone Interested I have made updates or would rather say changes to Ajax 3.2.2b

I made 3 Custom Ajax Chats and tested on 2.0.1 > ""Anyone using 1.1.X that could test it and let others know if it works would be great""

Ajax Chat 3.3A
Is simply the install on custom themes should no longer be a problem
File permissions chmod 755 settings AUTO correct them selves on a normal hosted server such a blue hosting.
The shrink bar shows your forums name as well before the word ShoutBox and copyright removed from shrink bar as there is copyright
in the chat window. the other 2 Ajax Chat B and C have this as well and more
Chat window in 3.3a is the same as it was before in 3.2.2b and shoutbox window syill uses css settings for shoutbox colors.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg710.imageshack.us%2Fimg710%2F9854%2Fajaxchata.png&hash=f7922c1829ab2508b8c4f5552a5cccb0dfaeef7e)

B and C are the same except C has no shrink bar. I have a dark theme and found chat looks better without it.
No one ever shrinks the window anyway so to me was a waist of having it shrink,
But could stay there as well as it might look good on other sites! That's the reason for B still having the shrink bar.
SOUTBOX
More Emoticon
insert image button
sound off or on button
scroll off or on button
emoticons show or hide button
color select button
shrink bar removed ON C ONLY
virtual keyboard
shoutbox backgrown changes color to suit the forum it's installed on

Chat Window
More Emoticon
New style buttons for more modern look
Emoticons show or hide
virtual keyboard
All board index Channels removed, only public channel. users can still make there own channel with there own user name.
NEW Image for header. can be changed to your own forums header logo but keep file width and height the same.

AJAX CHAT B
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg827.imageshack.us%2Fimg827%2F2807%2Fajaxchat33b.png&hash=d300b837726a4a7e7c364ac671e4f54693eb182f)
AJAX CHAT C
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg585.imageshack.us%2Fimg585%2F354%2Fajaxchat33c.png&hash=6b38d796ae889c3f675a0db7a5e5cf61b52a9a99)

Settings
Auto file permissions on install to set \shoutbox\ and \chat\index.php chmod settings to 755.
Also in the admin control a new link to member permissions board.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg64.imageshack.us%2Fimg64%2F3055%2Fajaxchatasettings.png&hash=e4d629afcb8a13cd2edd9e338fc75018890b782a)
Notice the first 4 options are darker, as the last 2 are not important to the mod

Permisions
all I changed was the words to look darker here as well to help newbies locate the permissions faster(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg546.imageshack.us%2Fimg546%2F9166%2Fajaxchatapermissions.png&hash=6474cc7c870cb7245bc98de9e1c2c0f1c986f971)


All the support on this MOD still stands. I only made changes to the pre 3.2.2b
No install edits have changed and the parser for 3.2.1 still applies if needed.

All I did was tell the install to place the edits in other places to fix the custom theme install problems.
some custom themes will still miss out on the numbering of who is in chat under the time, But believe me you don't want it there anyway
as it also shows at the bottom of the main index board and can show on the chat button as well if you want by selecting the 5th option in settings.

I don't think I missed anything. but if I did I will add it later

Over the next few days if you wish to have a look at Ajax Chat C working then go to this

Cheers, I hope you'll like the new edits


Hi,

I just installed T3CHN0's version of the AjaxChat on my SMF v2.0.2 forum. B4 this I also tried out the "AjaxChat v3.2.1 Curve Friendly" and it worked but my forum became slow and laggy periodically. Without the Mod installed the forum ran just fine. When I saw T3CHN0's latest version I decided to try out. I installed it and again the Mod worked fine and this time the forum works normal without any slowdowns or lags whatever.

But now the problem is that the Login / Register links and the Login fields dont display on the index page for Guests. Yes there is the Login menu item but me and my members really like the option of logging into the forum right from the forum index. When the T3CHN0's AjaxChat is uninstalled,the problem goes away and the Login options are there like b4, on the index page. Obviously, the Mod is making a change that's causing this but I don't know what change ofc :P

So I decided to post it here if T3CHN0 or anybody else can help me with this. I really like the new version and would like to keep using it but I can't afford to do without the Login options on the Board Index. If you can post any edits for the required template files or any other file I can attempt those edits and post the result back here.

I thank you for reading my post and also thank in advance for any help that I may get :)

Good day.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 11, 2012, 02:09:14 PM
Quote from: TFroehlichIII on April 11, 2012, 12:05:12 AM
I can't get this to work on my 2.0.2, can someone please help me? Please PM me!!!

Which version did you try?

Look for 3.2.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TFroehlichIII on April 11, 2012, 11:59:52 PM
Quote from: Old Fossil on April 11, 2012, 02:09:14 PM
Quote from: TFroehlichIII on April 11, 2012, 12:05:12 AM
I can't get this to work on my 2.0.2, can someone please help me? Please PM me!!!

Which version did you try?

Look for 3.2.2

I have been looking for it, no luck....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TGB on April 12, 2012, 02:33:11 PM
Quote from: TGB on January 17, 2011, 08:07:17 PM
Where can I set the number of messages displayed in the shoutbox?

??  I don't want it to clear out old messages.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Saahilk2000 on April 12, 2012, 11:41:46 PM


Does this chat mod runs of the same server that the site does? Or is it like NChat that doesnt use any bandwidth? Can someone clarify this please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IngeJones on April 13, 2012, 12:40:50 PM
A big thank you to t3chn0 for updating this mod.  I have just installed 3.2.3b to SMF 2.0.2 with no hiccups at all, everything worked exactly as it should :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Inti31 on April 13, 2012, 04:50:02 PM
Quote from: IngeJones on April 13, 2012, 12:40:50 PM...I have just installed 3.2.3b to SMF 2.0.2 with no hiccups at all,...
Where did you find this version ?

cheers Inti31
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Zuća on April 13, 2012, 05:10:06 PM
hmmm

http://www.simplemachines.org/community/index.php?topic=257973.msg3222028#msg3222028
??
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IngeJones on April 13, 2012, 06:03:28 PM
Yep, that's right
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: IngeJones on April 15, 2012, 07:40:40 PM
Quote from: Wilcop™ on March 23, 2012, 06:41:06 PM
Help me the name "ChatBot" is gone and is still standing in config.php.
I'am using SMF 2.0.2 and AjaxChat Integration_3.3c.

You need to edit fonts.css where it says "#content #chatList span.chatBot"   Someone has made it 0.0em which is, er, too small to see :D   Make it 0.9em and then he's the same as other users.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Tonyvic on April 16, 2012, 05:44:27 PM
Quote from: Tonyvic on March 06, 2012, 07:00:09 AM
Running SMF 2.0.2 & AjaxChat Integration3.2.2b

This Mod runs without a hitch for me, until I install the 'Hide Avatars from Guests' Mod.
After which the memberlist in Chat is empty & messages don't transfer to the main window (or get sent) when submitted, 'Users in chat' in 'Users Online' shows the names ok . I checked in the database & everthing submitted is in there.

I have tried the fixes in FAQS:
Quotecaused by either other Mods or some servers
but nothing seems to solve the problem.

Any ideas would be very welcome.

Still haven't got an answer for the problem! :(
I would really appreciate some help with this as both Chat & Hiding avatars from guests are important to my forum.

TIA for any offers,
Tony
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 16, 2012, 05:53:21 PM
Quote from: Saahilk2000 on April 12, 2012, 11:41:46 PM


Does this chat mod runs of the same server that the site does? Or is it like NChat that doesnt use any bandwidth? Can someone clarify this please?

The chat is on the same server.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on April 17, 2012, 04:04:36 PM
 :) i just dropped in to tell all the folks who worked to update & Support this mod THANK YOU!

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 17, 2012, 06:08:02 PM
Quote from: graaywolf on April 17, 2012, 04:04:36 PM
:) i just dropped in to tell all the folks who worked to update & Support this mod THANK YOU!



The only support the mod receives these days is from the members who use the mod.

The current version 3.2.2 does work on 2.0.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hukrtrend on April 17, 2012, 07:43:39 PM
so i know this is been posted before , but i am running smf 2.0.2 with the BLACKDAY theme. iam kinda new to smf but i really love the forum. everyone keeps saying 3.2.2 works with 2.0.2 . i cant find 3.2.2. people say the link is in this thread. its 420+ pages long .. ive clicked through 200 pages already cant find it. having a real hard time getting a chat mod up for my clans forum. now i dont wanna disappoint them. If someone could take the time to help me that would be greatly appreciated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 17, 2012, 07:46:11 PM
@hukrtrend

The Ajax Chat Integration link is in my signature.

:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hukrtrend on April 17, 2012, 08:05:42 PM
Installations actions for "AjaxChat Integration"
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

whats the best way to install it, i tried uploaded it from my comp. any suggestions.?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 17, 2012, 08:07:01 PM
Use the Mod Emulate link also in my signature.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on April 19, 2012, 12:54:23 PM
Quote from: Old Fossil on April 17, 2012, 06:08:02 PM
Quote from: graaywolf on April 17, 2012, 04:04:36 PM
:) i just dropped in to tell all the folks who worked to update & Support this mod THANK YOU!



The only support the mod receives these days is from the members who use the mod.

The current version 3.2.2 does work on 2.0.2

you folks are who i'm thanking...... :D lol learning as i go...

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoCKeT-88 on April 20, 2012, 01:48:34 AM
I still would like to clear out private rooms that are created.   How would I go about it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 20, 2012, 12:59:50 PM
can you elaborate a bit more on what you are after please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoCKeT-88 on April 20, 2012, 01:14:27 PM
Quote from: Old Fossil on April 20, 2012, 12:59:50 PM
can you elaborate a bit more on what you are after please.

In the channel list is a chat channel for ever board.  You can also create private channels.  When I created a private it created a room called [RoCKeT-88].  After I leave the room is still there shouldn't the room disappear after I leave?  Hope I explained it better now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 20, 2012, 01:16:04 PM
Quote from: RoCKeT-88 on April 20, 2012, 01:14:27 PM
Quote from: Old Fossil on April 20, 2012, 12:59:50 PM
can you elaborate a bit more on what you are after please.

In the channel list is a chat channel for ever board.  You can also create private rooms.  When I created a private it created a room called [RoCKeT-88].  After I leave the room is still there shouldn't the room disappear after I leave?  Hope I explained it better now.

AFAIK the room is there whilst ya logged into the chat.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoCKeT-88 on April 20, 2012, 01:32:30 PM
Quote from: Old Fossil on April 20, 2012, 01:16:04 PM
Quote from: RoCKeT-88 on April 20, 2012, 01:14:27 PM
Quote from: Old Fossil on April 20, 2012, 12:59:50 PM
can you elaborate a bit more on what you are after please.

In the channel list is a chat channel for ever board.  You can also create private rooms.  When I created a private it created a room called [RoCKeT-88].  After I leave the room is still there shouldn't the room disappear after I leave?  Hope I explained it better now.

AFAIK the room is there whilst ya logged into the chat.

Oh I see.  So if Im not logged into chat it's not there?  I should set up a test account I suppose and see exactly what is going on.  Seems like after you leave that private channel the listing for it would go away..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lilariel on April 20, 2012, 01:33:39 PM
Alright, I've been struggling to get this working on my SMF 2.0.2 forum with little to no luck the last two days.

I have only the following other modifications installed to my forum, in case any of these are known to interfere with ajaxchat:
1.   Stop Spammer    2.3.9 (removing this is absolutely out of the question, if this is interfering somehow, then ****** ajaxchat. :P)
2.   Separate the sticky topics 1.0.0
3.   Ohara YouTube Embed 1.0
4.   Wowhead Tooltips (http://www.wowhead.com/tooltips) (Manually pasted into index.template.php.)


After trying Technos 3.2.1b and c versions without any real success (both installed fine without emulation but suffer from the exact same issues as I describe below), I installed this (http://www.simplemachines.org/community/index.php?topic=257973.msg3144830#msg3144830) 3.2.2 version as Old Fossil reccommended. It installs fine, without needing to emulate a different version, although installing to my custom theme gives me the following errors:

QuoteInstall in Other Themes
    WoW-DK 2.0
   Execute Modification   ./Themes/WoW_2/BoardIndex.template.php   Test successful
   1.   Add Before      ./Themes/WoW_2/BoardIndex.template.php   Test successful
   Execute Modification   ./Themes/WoW_2/index.template.php   Test failed
   1.   Replace         ./Themes/WoW_2/index.template.php   Test successful
   2.   Add Before      ./Themes/WoW_2/index.template.php   Test failed

I believe I saw someone mention somewhere in the thread that the changes to the index.template.php files are trivial and unneccessary for the mod to function just fine however, so this should probably (?) not be an issue. I have not been testing the mod in that theme anyway, all issues I've encountered have been in the default theme.


Regardless, after installing without errors, and when testing this in the default theme, the actual shoutbox looks to be displaying mostly okay in Chrome, and perfectly in  Aurora. While using Chrome, when clicking the box to type in anything however, a popup box with the following error appears:

QuoteTypeError: Object #<HTMLObjectElement> has no method 'create'

Typing and shouting anything in the shoutbox does not display any errors, but no messages are displayed whatsoever. I have changed the permissions to the two index.php files from 666 to 755, but this has not solved the issue. The popup or anything similar does not display in Aurora, but text does not display there either, so I assume the same method is missing there as well. I have not installed this (http://www.simplemachines.org/community/index.php?topic=257973.msg3253341#msg3253341) chrome fix, as I believe this is for fixing something entirely different.


The Chat page, however, is completely broken.
When clicking it's button, the following error is displayed, and nothing else:

QuoteWarning: main(/home/02/71/2917102/cgi-bin/lib/custom.php) [function.main]: failed to open stream: No such file or directory in /home/vg008web08/02/71/2917102/web/coj/smf/chat/index.php on line 17

Fatal error: main() [function.require]: Failed opening required '/home/02/71/2917102/cgi-bin/lib/custom.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/vg008web08/02/71/2917102/web/coj/smf/chat/index.php on line 17

I have no idea how to begin attacking this, I haven't been able to find any similar errors in the FAQ's so far. Does anyone have any good ideas?
I've tried including as much information as I could think of, but if anything else in addition will help, I am happy to look for it. Any help is greatly appreciated, I've been wanting to install a shoutbox to my 2.0.2 forum ever since I upgraded from 1.1.16 or whatever several months ago, and Ajaxchat is the only one I can find that suits our needs, that is also (kind of) being updated.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 20, 2012, 01:38:35 PM
Hi there Lilariel

1. Please drop the language it is unneccessary.

2. The chat version which works is shown as a link in my signature.

Regarding the stop spammer and the tooltips you have may I suggest Bad behaviour and Nice Tooltips mods.  :)

Along with the chat these two mods work with no problems on 2.0.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lilariel on April 20, 2012, 01:51:47 PM
Arr, very well, I'll moderate my french, I didn't mean anything by it anyway. :)
The chat version I have installed, is the one linked in your signature, I'm not sure why it's not working.

I'm not really interested in removing/replacing any of my current packages unless it's absolutely neccessary, aka if they are definitely interfering with ajaxchat, and must be removed  as the last resort in order to make it work. I had Bad Behavior before I upgraded to 2.0.2 I believe, but installed the blocker from http://stopforumspam.com/ after someone reccommended using that instead. Both seemed to work just as good as far as I can recall. The Nice Tooltips mod is also not doing the same as the Wowhead one, the wowhead script addition is just a small fidget that displays tooltips from wowhead.com on my forum in the same way as they are displayed on wowhead.com. It's mostly there to make more effective and intuitive Warcraft guides. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 20, 2012, 01:55:23 PM
Regarding the antispam, Bad Behaviour also covers stop forum spam.

As for the tooltips I didn't realise the tooltip was specifically for one thing.

Now to business.

Would ya like me to take a peek?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lilariel on April 20, 2012, 02:04:08 PM
If you don't mind, it would be greatly appreciated, yeah. :)
What specifically do you need to look at? I'm not allowed by the owner of the server to hand out ftp access details if that's what you had in mind, I'll have to work it out in another way, somehow.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 20, 2012, 02:07:42 PM
If you can give me a temp admin account and password I will take a look.

In pm if preferred.

(no stink bombs will be released  ;D )
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 20, 2012, 02:31:18 PM
@Lilariel

can ya answer ya pms please.

:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lilariel on April 20, 2012, 02:33:22 PM
Is done! I'm just a slowpoke, sorry. xD
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: redhanabi on April 22, 2012, 07:27:29 AM
hello,, Im newbie in SMF...
I use SMF 2.0 RC3

and Installed this mods and no problem at all..
but, after I setting this mods with all checks
I found some problem

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi42.tinypic.com%2F16ktmav.jpg&hash=5ab705741164cc4aed040aa469b98fb8a49319a8)

there, is my problem
I enter some words for a test
but my words not showing
all blank.. I try other browser and have same problem too
how to fix this?
please help.. and Im blank with coding :)

sorry for my bad Englsih. thank you  :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 22, 2012, 11:02:16 AM
@redhanabi

You should upgrade to 2.0.2 for obvious reasons.

The recent version of this mod can be found in my signature.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lilariel on April 22, 2012, 04:20:25 PM
@redhnaabi
Amusingly, that's EXACTLY the same problem as the one I have on our forum, only difference being that we do infact use SMF 2.0.2.
Long story short; Old Fossil managed to track down our problems to possibly being with the host itself, and not with the forum or the mod. Haven't been able to find a practical solution to this yet, there might not even be one for all I know, besides switching hosts.

You don't use hostway.com aswell by any chance, do you? :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: redhanabi on April 23, 2012, 07:46:42 AM
Hello thanks for reply Old Fossil and Lilariel

I have install in my localhost, for a test before I upload in my webhost..
I have use 2.0.2

and use AjaxChat Integration_3.3c.zip
coz lot of people download it  ::)

but still same, my words not show up
and get this too  :'(

Quote
Warning: in_array() expects parameter 2 to be array, integer given in C:\xampp\htdocs\....\chat\lib\class\CustomAJAXChat.php on line 303


some problem with me?
why I always get errors  :-[




hello again, I wonder why...
before I installed AjaxChat in my forum and works perfact
but why I get same problem.. any words... can't showing up
why? -____-"

http://balianime.redhanabi.com/

Its works before, but now, not working anymore  :'( :'( :'(
please help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: silber112 on April 24, 2012, 08:33:02 AM
¿Is anyone going to update this mod?

http://sourceforge.net/projects/ajax-chat/   <- Last update 2012-02-20
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 25, 2012, 05:54:51 PM

@silber112

The latest version is the one in my signature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: silber112 on April 25, 2012, 08:15:48 PM
Quote from: Old Fossil on April 25, 2012, 05:54:51 PM

@silber112

The latest version is the one in my signature.

¿Does it work perfectly with smf 2.0.2? ¿Is it the last versión of the ajax chat? Who did the update?

Thanks..  :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 25, 2012, 08:28:15 PM
Quote from: silber112 on April 25, 2012, 08:15:48 PM
Quote from: Old Fossil on April 25, 2012, 05:54:51 PM

@silber112

The latest version is the one in my signature.

¿Does it work perfectly with smf 2.0.2?


I use it myself so.....

QuoteIs it the last versión of the ajax chat?

Unknown

QuoteWho did the update?

Another user. The link in my signature will show whom made the edits.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nikz11 on April 28, 2012, 11:58:08 AM
Hi, i uploaded this to my packages folder in a folder named chatbox.. it appears in the package manager! although i don't see the install button..

I'm using SMF 2.0.2

Ajax chat version 3.2.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 28, 2012, 12:04:00 PM
Nikz11

Have a look at the Mod Emulate link in my signature.

Any problems gimme a shout here.

:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nikz11 on April 28, 2012, 12:06:35 PM
Thanks for the help Old Fossil! Although what version do i emulate it to?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 28, 2012, 12:11:28 PM
Quote from: Nikz11 on April 28, 2012, 12:06:35 PM
Thanks for the help Old Fossil! Although what version do i emulate it to?

Try 2.0 then 2.0 RC4
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nikz11 on April 28, 2012, 12:16:36 PM
Well I managed to install it! thanks for that but I can't send any messages and this message keeps appearing:

ChatBot: Error: Connection status: 500
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 28, 2012, 12:28:27 PM
Have a look at the FAQs on the mods first page.

QuoteIf you get a 500 Connection error you might have to set your file permissions as well.
There are 2 folder for the AJAX Chat Intergration Mod "Chat" and "Shoutbox".
For AJAX Chat Intergration Version 3 be sure to change the file permissions (CHMOD) /chat/index.php and /shoutbox/index.php to 755 (and in some cases CHMOD the actual "Folders" as well).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nikz11 on April 28, 2012, 12:32:26 PM
I did that, I still get those errors... I CHMOD'd the chat and shoutbox folder to 755 and both of the index.php's inside it.. The same error still persists.

Edit: Also for some WEIRD reason when i edit any of the code in index.php in the shoutbox folder no changes are made to the actuall box..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 28, 2012, 12:35:15 PM
Were there any errors on install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nikz11 on April 28, 2012, 12:41:12 PM
I can't remember but I think it said Test Failed with something to do with writing on themes/red/index.template.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 28, 2012, 12:48:35 PM
Quote from: Nikz11 on April 28, 2012, 12:41:12 PM
I can't remember but I think it said Test Failed with something to do with writing on themes/red/index.template.php

This usually mean a manual edit is necessary within the file.

I'm willing to have a peek if ya like.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nikz11 on April 28, 2012, 12:50:17 PM
Can i contact you using MSN or Steam or something?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 28, 2012, 12:54:26 PM
I don't use either.

if ya want me to take a look then send a temp admin account via pm and I'll be there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 28, 2012, 01:22:45 PM
Who is ya host?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nikz11 on April 28, 2012, 02:07:23 PM
ReThinkVPS :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesikaleon on May 01, 2012, 02:44:05 PM
just installed ajax chat 3.3c on smf 2.0.2

i get an error on top of the chat
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/greeksc/public_html/chat/lib/class/CustomAJAXChat.php on line 283

and chat doesnt work, cant send any message
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 01, 2012, 02:46:25 PM
Quote from: thesikaleon on May 01, 2012, 02:44:05 PM
just installed ajax chat 3.3c on smf 2.0.2

i get an error on top of the chat
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/greeksc/public_html/chat/lib/class/CustomAJAXChat.php on line 283

and chat doesnt work, cant send any message

I would suggest you uninstall 3.3c then install 3.2.2 instead which is linked to within my signature.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: thesikaleon on May 01, 2012, 02:55:22 PM
Quote from: Old Fossil on May 01, 2012, 02:46:25 PM
I would suggest you uninstall 3.3c then install 3.2.2 instead which is linked to within my signature.

you rock!!! thanks

for some reason it fails install on other themes than default but i dont really care cause i will use default anyway
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 01, 2012, 02:59:20 PM
Quote from: thesikaleon on May 01, 2012, 02:55:22 PM
Quote from: Old Fossil on May 01, 2012, 02:46:25 PM
I would suggest you uninstall 3.3c then install 3.2.2 instead which is linked to within my signature.

you rock!!! thanks

for some reason it fails install on other themes than default but i dont really care cause i will use default anyway

The test failed just means a manual edit is required. As you only intend to use default there should be no problems.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Walkerneo on May 15, 2012, 10:57:12 PM
The test is failing for 3.2.2 on the Inferno dziner theme and the default theme. The error on the default theme is:

Replace   ./Themes/default/index.template.php
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 15, 2012, 10:58:52 PM
Have you looked at the mods parser to see where it failed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Walkerneo on May 18, 2012, 07:39:43 PM
Quote from: Old Fossil on May 15, 2012, 10:58:52 PM
Have you looked at the mods parser to see where it failed?

What's the mods parser? It's saying Replace ./Themes/default/index.template.php Test failed

Also
Add Before ./Themes/inferno_20rc5/index.template.php Test failed
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 18, 2012, 07:42:31 PM
http://www.tytyweb.net/projects/smf/package-parser/

This link will help.

The two files are missing code.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jane77 on May 23, 2012, 07:06:36 AM
Running AjaxChat Integration 3.2.1 on SMF 1.1.16 and cannot locate the logs for the Chat. I've searched on this and don't find logs anywhere in the FTP listing for Chat folder on the server. Does anyone have a suggestion. Is there chat a log viewer? Ta  Jane
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 23, 2012, 12:28:30 PM
I found the answer by using the Search facility.

Reply 310 gives the answer.

http://www.yourdomain.com/chat/?viewlogs

Of course swap yourdomain for the name of your forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gridfree on May 24, 2012, 09:19:32 PM
sorry for the newb questions, i am 6 hours into SMF and learning, what is a signature, were do i find it? i can not find the download of a compatable ajax chat for smf 2.0.2, complete baby instruction on how to find this mod and install correctly, this is a fresh install and the second package i am trying to install.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 24, 2012, 09:22:35 PM
welcome to smf Gridfree

For the latest version of ajax chat use the link in my signature.

( The area with all the links below the post)

The version you require is 3.2.2

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gridfree on May 24, 2012, 09:47:51 PM
thanks tonnes even tho after you pointed it out it was ahhh  :-[  thanks for the fast reply

i guess i have more reading to doo lol
The package you are trying to download or install is either corrupt or not compatible with this version of SMF
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 24, 2012, 09:50:32 PM
QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF

Have a look at the mod emulate link also in my signature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gridfree on May 25, 2012, 07:18:33 PM
Hi , I tried both 2.0 and 20. RC4 , 20. install but u get a front end error of

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

when i try the 2.0 RC4 i get this error in the backend,

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

thanks for the help
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 25, 2012, 07:20:21 PM
Send me a temp admin account via pm and I'll have a look if ya like.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fmofmpls on June 03, 2012, 06:57:27 PM
Hello. I've installed this mod for 2.0 rc3 curve. It installed fine, but I'm receiving the following error at the top of the chat room - Notice: Undefined index: show_download in /home/monster/public_html/forum/Sources/TPSubs.php on line 201

I can see the chat room and posting field, but nothing happens when I enter text and hit submit?

Thanks for the support!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 03, 2012, 07:01:45 PM
Is the version you installed the one in my signature? ie 3.2.2

This is the version you need.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: fmofmpls on June 03, 2012, 07:39:26 PM
Thanks. I tried to install 3.2.2 and was told that the version is not compatible with my version of smf. I'm using 2.0 rc3.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 03, 2012, 07:41:28 PM
Quote from: fmofmpls on June 03, 2012, 07:39:26 PM
Thanks. I tried to install 3.2.2 and was told that the version is not compatible with my version of smf. I'm using 2.0 rc3.

Might I suggest you

1. Upgrade to 2.0.2

2. Have a read of the Mod Emulate link in my signature.

:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on June 05, 2012, 03:20:39 PM
Hi everyone. I've looked everywhere and I cant find how to add other membergroups as chat admin?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 05, 2012, 03:21:33 PM
Quote from: Blah blah on June 05, 2012, 03:20:39 PM
Hi everyone. I've looked everywhere and I cant find how to add other membergroups as chat admin?

The only chat admin available are the forums admins and global mods.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on June 05, 2012, 03:22:29 PM
The global mods are default admin?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 05, 2012, 03:23:51 PM
Quote from: Blah blah on June 05, 2012, 03:22:29 PM
The global mods are default admin?

From what i remember these are the only membergroups which have the group colours.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on June 05, 2012, 03:27:04 PM
Basically I want a non-admin membergroup to be able to access the chat logs. Is there any way to do this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 05, 2012, 03:29:09 PM
Quote from: Blah blah on June 05, 2012, 03:27:04 PM
Basically I want a non-admin membergroup to be able to access the chat logs. Is there any way to do this?

Now that is a completely different matter entirely.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 05, 2012, 03:34:44 PM
For an admin to view the chat log.

http://www.yourforum.com/chat/?viewlogs

I can'r remember the file you edit if you want everyone to view logs other than admin.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on June 05, 2012, 04:01:02 PM
Well if anyone else knows let me know please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 05, 2012, 06:09:15 PM
Quote from: Blah blah on June 05, 2012, 04:01:02 PM
Well if anyone else knows let me know please.

Alternatively you could use the search function.

But as I said you can either allow admins only to view the logs or everyone.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on June 05, 2012, 09:23:28 PM
The search turned up nada for me.

Well that sucks. Seems like having other membergroups that arent admin able to view the logs (like moderators) would make sense.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Etcher on June 06, 2012, 12:36:49 PM
Hello I have a problem with 3.2.2 running on SMF 2.0.2. It installed fine and everything works like a charm but there's one thing. When someone is in the chatroom and they close the window, it doesn't log them out. Then when they enter the chat again, it shows a duplicate of that user online. So when you list the online users it would show for example Etcher, Etcher. Is there a way to fix it so that when the user closes the chat window it automatically logs them out? Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 07, 2012, 07:55:21 PM
Etcher are there any errors in the error log?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Etcher on June 07, 2012, 08:03:14 PM
Quote from: Old Fossil on June 07, 2012, 07:55:21 PM
Etcher are there any errors in the error log?
No. The problem is that the user doesn't automatically log off when they close the chat window (I'm using the pop-up one).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Etcher on June 07, 2012, 09:32:31 PM
In Sources/Subs.php
How to change the color of the 'Chat' nav link:
Find:
$chatButton = 'Chat';

Replace with:
$chatButton = '<font color="red">Chat</font> ';
You can then of course change "red" to the color of your choice. (use hex)

How to move the 'Chat' nav button next to Home:
Find:
'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),


Replace with:
//Chat nav removed

Find:
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),


Add after:
'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(
),
),


How to disable 'Help' nav button:
Find:
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),


Replace with:
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => false,
'sub_buttons' => array(
),
),


I hope these simple edits will clear some questions up.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on June 08, 2012, 01:17:53 PM
I want a non-admin membergroup to be able to access the chat logs. Is there any way to do this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Etcher on June 08, 2012, 02:21:27 PM
Quote from: Blah blah on June 08, 2012, 01:17:53 PM
I want a non-admin membergroup to be able to access the chat logs. Is there any way to do this?
Yes. Go in chat/lib/config.php

Find:
$config['logsUserAccess'] = false;

Replace with:
$config['logsUserAccess'] = true;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on June 09, 2012, 12:01:49 AM
Quote from: Etcher on June 08, 2012, 02:21:27 PM
Quote from: Blah blah on June 08, 2012, 01:17:53 PM
I want a non-admin membergroup to be able to access the chat logs. Is there any way to do this?
Yes. Go in chat/lib/config.php

Find:
$config['logsUserAccess'] = false;

Replace with:
$config['logsUserAccess'] = true;

Looks like that allows everyone to see the logs. Sadly, I wish we could have more control over this, like defining which exact membergroups can access the logs.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Tom64 on June 09, 2012, 01:01:06 PM
Hi everybody,

I'm using the Ajax Chat in my 1.1.16 with several chatrooms and I would like to enter one of them directely from my profile.
I've tried a few links, but probably not the right caught. So how can I enter the room of my choice with one link?

Many thanks and kind regards.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 09, 2012, 01:03:56 PM
Entering the chat via your profile is not possible.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: eneru on June 13, 2012, 01:13:14 PM
Hello,

I'm running 3.2.1 on 2.0.2 with no problems, thank to all the helpful tips I found on this topic.

I just need to edit the shoutbox left bar corner and I have no clue how, I want to make it rounder as the others.

Here is a screenshot.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scarin on June 14, 2012, 12:37:52 AM
I am trying to install and I get the index.template.php failure message on the add before line both in the main list of files and in the various themes installed.  I went ahead and clicked to install anyway, only selecting the theme i am using.  Install completed and the shoutbox appears however it is unusable. 

Found the respons by T3CHNO and search for the

// Search within current topic?

add it was not present so i am not sure where to place the code


    // 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 am running 2.0.2 and I did the emulation change to install to 2.0 RC3

I have the following packages installed.

1.    AjaxChat Integration    
2.    Global Headers Footers    uploaded but not installed or running
3.    Aeva Media    1.4w    uploaded but not installed or running
4.    Custom Form Mod    1.7    
5.    Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.2
6.    SMF Gallery Lite

Any help would be appreciated.  Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 15, 2012, 12:47:48 AM
Hi Scarin

Just seen ya post.

The version chat you need is the one in my signature.

:)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Heeks on June 15, 2012, 02:02:04 AM
Someone should edit the 1st post with that version :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scarin on June 15, 2012, 12:24:31 PM
Old Fossil thanks for the response. Just to clarify I am downloading this version * AjaxChat Integration_3.2.2.zip (869.93 kB - downloaded 130 times.) That is linked in Farjo's post (Reply 8091). I have uninstalled the old version and will try this one.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 16, 2012, 01:25:21 AM
Quote from: Heeks on June 15, 2012, 02:02:04 AM
Someone should edit the 1st post with that version :D

Only the mods author can do so.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FragaCampos on June 19, 2012, 01:41:56 PM
Sorry if this was already asked and answered but i searched and found nothing.

Is there a way to call the nickname of the user when entering the chat in the following code?

// Overriding client side functionality:
ajaxChat.customInitialize = function() {
   ajaxChat.addChatBotMessageToChatList('Welcome, %s!');


As you see, i tried to use %s, but it didn't work...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on June 19, 2012, 02:30:26 PM
Quote from: Blah blah on June 08, 2012, 01:17:53 PM
I want a non-admin membergroup to be able to access the chat logs. Is there any way to do this?

Just bumping this question to see if anyone has an idea.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 19, 2012, 02:33:22 PM
Quote from: Blah blah on June 19, 2012, 02:30:26 PM
Quote from: Blah blah on June 08, 2012, 01:17:53 PM
I want a non-admin membergroup to be able to access the chat logs. Is there any way to do this?

Just bumping this question to see if anyone has an idea.

As has been said before the only person whom can view the logs is either the admin or everyone.

However the following link is the sourceforge ajax chat pages. You may find a different answer there.

http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Main_Page
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blues Light on June 25, 2012, 07:16:31 PM
Hi there, I downloaded the mod from your signature and it states that the mod is either corrupt or incompatible with my forum, regardless of what version I emulate (and believe me, I emulated every version to see if it would, indeed, install).

I'm at a a loss.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 25, 2012, 08:47:31 PM
Pease pm an admin account and I'll have a look for you.

( Please include the forums link also).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scimmiotto on June 29, 2012, 05:20:39 AM
Hi,

it seems in my update of smf to 2.0.2 no chat or shoutbox can works...it seems is all ok, but when someone attempts to write and press enter, simply nothing happens....someone can help me? it happens both with smpack shoutbox and this shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: was1f on June 30, 2012, 11:22:35 AM
Hello. .

When I m Trying TO Install Chat Room It Show Me This Problem. .

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs15.postimage.org%2Fnhnyzs1uj%2Fproblenm.jpg&hash=12b77d4a250aecba007c6b8e53297188e140d96d) (http://postimage.org/)
upload pictures (http://postimage.org/)

Please Help me How Can I Install This. .
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 30, 2012, 11:25:13 AM
Which version are you trying to install?

Errors in your error log?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: was1f on June 30, 2012, 12:07:07 PM
Quote from: Old Fossil on June 30, 2012, 11:25:13 AM
Which version are you trying to install?

Errors in your error log?

I Have 2.2 Of Smf And I M Try To Install This Version AjaxChat Integration_3.2.1.zip. .

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 30, 2012, 12:10:52 PM
As I said in pm use the one in my signatures link.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: was1f on June 30, 2012, 12:47:18 PM
Quote from: Old Fossil on June 30, 2012, 12:10:52 PM
As I said in pm use the one in my signatures link.

If You  Dont Mind Can You Give Me THe Direct Link Of THat Mood Please

Sorry I M Noob So Thats Why I distrub You Again And Again

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 30, 2012, 12:48:52 PM
http://www.simplemachines.org/community/index.php?topic=257973.msg3144830#msg3144830
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: was1f on June 30, 2012, 01:41:08 PM
I Install AJazchat  C

After Install I See This Problem. .

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs17.postimage.org%2Fndggvaqor%2FProblem2.jpg&hash=b41f97e2de7d0d995eeb25b72c6d36bab47ef75c) (http://postimage.org/image/ndggvaqor/)

Please Fix This Bug. .
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on June 30, 2012, 09:04:10 PM
It is not a bug.

You did not install the correcy version.

I clearly stated version 3.2.2 the version you have installed is NOT 3.2.2

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: was1f on July 01, 2012, 12:41:14 PM
After I Upload I Dont See The Install Option. .

Please Do Something For Me Please. .

here Is Screen Short..
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs18.postimage.org%2Fnqha2ntmt%2Finstall.jpg&hash=6160c62eec3590bdb7217e4faa8d342f5bf3d32e) (http://postimage.org/image/nqha2ntmt/)

Just 2 Option List File And Delete.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 01, 2012, 12:43:34 PM
Read the Mod Emulate link in my signature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: was1f on July 01, 2012, 01:01:02 PM
Next Problem After Install . .

I Dont Know What Is The Problem With Me. .

Please Dont Distrub From Me i m Noob SO. .

Here Is THe NExt Problem. .
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs18.postimage.org%2Fiunaltp6t%2Ftried.jpg&hash=8e9e642f6d03f459b0f8fa07682740cb5f463efd) (http://postimage.org/image/iunaltp6t/)

After Install When I click TO Chat I See This Page. .
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 01, 2012, 01:04:44 PM
The answer for this error is found in the mods FAQs on the mods first post.

The shoutbox and chat folders permissions need to be changed to 755.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scimmiotto on July 02, 2012, 06:35:17 AM
Quote from: scimmiotto on June 29, 2012, 05:20:39 AM
Hi,

it seems in my update of smf to 2.0.2 no chat or shoutbox can works...it seems is all ok, but when someone attempts to write and press enter, simply nothing happens....someone can help me? it happens both with smpack shoutbox and this shoutbox.

up, plz help me
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 02, 2012, 12:07:23 PM
Quote from: scimmiotto on July 02, 2012, 06:35:17 AM
Quote from: scimmiotto on June 29, 2012, 05:20:39 AM
Hi,

it seems in my update of smf to 2.0.2 no chat or shoutbox can works...it seems is all ok, but when someone attempts to write and press enter, simply nothing happens....someone can help me? it happens both with smpack shoutbox and this shoutbox.

up, plz help me

Please list the mods you have installed on your forum.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: scimmiotto on July 03, 2012, 03:22:15 AM
Here it is:




1.Today's Posts2.Simple Image Upload3.Admin Notepad4.SMFPacks Shoutbox5.nneonneo's AJAX ShoutBox6.Thank-o-matic7.Search Focus Dropdown8.AjaxChat Integration9.Add GooglePlus to Posts10.Tapatalk SMF 2.0 RC4/RC5/Final Plugin11.Post History12.Restrict Email Providers on Registration13.Moderator and Administrator Comment Tags14.SMF Archive15.Simple Spoiler16.Password Protect Boards17.Share This Topic18.SMF Chess19.Images on Print Page20.New Topic Button21.Related Topics22.SMF Arcade23.6 Custom buttons / tabs with Sub Menus (4)24.Simple Icons & RSS25.Socialize26.Ad Managment27.Aeva ~ Auto-Embed Video & Audio28.Downloads System29.Copy Topics30.PayPal Donate31.Users Online Today32.Google Search Box With Results


The problem persists even if i use large upgrade package and install ONLY this shoutbox.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 03, 2012, 10:41:27 AM
Scimmiotto

Please pm a temp admin account and I will have a look for you when I get time.

I will do as much as i can.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: lifeguard81 on July 04, 2012, 03:57:26 AM
When i try to uninstall this, i get the message Files not found. Is there a way to remove this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PureLoneWolf on July 06, 2012, 09:30:15 AM
Hi all

I have got it working and customised how I want it (SMF 2.0.2)  but would like to know if there is a way to remove the Chat menu item, if the user has no access to chat.

For example, at the moment, I only want Admins and 2 other membergroups to have access to use AjaxChat...which is working fine.   However, everyone can see that there is a Chat available.

Is there a way to do this inside Subs.php?

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: was1f on July 07, 2012, 03:58:29 PM
Again Problem. .

I Install Chat Room Version 3.2.2 After Install i Change Permission TO 755 But I Got THis Problem.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fs16.postimage.org%2F4w7rsbq01%2Fproblem.jpg&hash=ab0f20871e8691a0e528700bebe60984d4ed1507) (http://postimage.org/image/4w7rsbq01/)

Please Tell Me How Can I Solve This.

Thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Judgey on July 08, 2012, 09:20:33 PM
I dont want the chat text to go, i need it to stay in the shout box, how can i do this plz?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 08, 2012, 09:22:31 PM
Quote from: Judgey on July 08, 2012, 09:20:33 PM
I dont want the chat text to go, i need it to stay in the shout box, how can i do this plz?

Can you elaborate more on what you want.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Judgey on July 08, 2012, 09:25:13 PM
Sorry ill try again :)

When people talk the text disappears after some time, i would like it to stay there so people who dont login for a while can still read it.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 08, 2012, 09:30:19 PM
are your chat and shoutbox integrated?


If you read through the mods topic you will find the chats logs can be read eith by admins only or all members.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperBrian91 on July 11, 2012, 06:19:48 PM
Hi,

I got a question about the chat logs - I know how its possible to allow admins to see the logs but is there anyway to make it so Global Moderators/Moderators can also see the logs?

Thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 11, 2012, 08:14:47 PM
Quote from: SuperBrian91 on July 11, 2012, 06:19:48 PM
Hi,

I got a question about the chat logs - I know how its possible to allow admins to see the logs but is there anyway to make it so Global Moderators/Moderators can also see the logs?

Thanks in advance.

As I have explained before you can either have admins view the logs or everyone.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on July 12, 2012, 03:49:35 AM
I've added the bbc function [you*] to my forum, but it doesn't work in chat or shout. Can this be enabled in some file? (adding bbc functions)

No biggie, just wondering ;) I'm not sure if this is even possible...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Manu.G on July 13, 2012, 09:23:37 PM
Quote from: PureLoneWolf on July 06, 2012, 09:30:15 AM
Hi all

I have got it working and customised how I want it (SMF 2.0.2)  but would like to know if there is a way to remove the Chat menu item, if the user has no access to chat.

For example, at the moment, I only want Admins and 2 other membergroups to have access to use AjaxChat...which is working fine.   However, everyone can see that there is a Chat available.

Is there a way to do this inside Subs.php?

Thanks


I had the same problem, because guests shouldn't see the chat-button and I solved it with a little trick :)
I changed the code

'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => true,
'sub_buttons' => array(

into

'chat' => array(
'title' => $chatButton,
'href' => $chatLink,
'show' => $context['allow_memberlist'],
'sub_buttons' => array(

Guest on my forum aren't allowed to see the Members-List and because of this they can't see the Chat-Button :)


I know it isn't the best solution, but it works :)



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hellboy78 on July 25, 2012, 03:49:13 PM
do you known if there is a version for SMF 1.1.16 ???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 25, 2012, 04:16:03 PM
AFAIK the one in my signature also works on 1.1.16
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hellboy78 on July 26, 2012, 03:07:28 AM
thank you very much for 1.1.16 version

I have a forum for test, and I have install it succefully.

but into my old forum, the real one, I cannot do it,
after clicking the "install now" button, the process is not going on.

what you think can it be the problem?

thanks
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 26, 2012, 03:10:28 AM
Any errors in the log?

Otherwise`I would not have a clue without looking.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hellboy78 on July 26, 2012, 03:11:51 AM
no errors

the browser try to go trought installation, but the process never ends.

what can I show you?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 26, 2012, 03:18:34 AM
Who is ya host?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hellboy78 on July 26, 2012, 03:36:46 AM
I use servage.net

but the forum for testing is into servage.net too

could be something about file permissions?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hellboy78 on July 26, 2012, 06:37:52 AM
I was using previous version of ajaxchat,

do you think I have to remove old table about ajaxchat into my database before upload this mod???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: guy123 on July 26, 2012, 08:30:01 AM
Will this be updated for the 2.0.2 version? Or is there any fix for the 2.0.2 version? Please I really want this.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 26, 2012, 01:47:49 PM
Quote from: MrFarbodD on July 26, 2012, 08:30:01 AM
Will this be updated for the 2.0.2 version? Or is there any fix for the 2.0.2 version? Please I really want this.

Use the chat link in my signature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: guy123 on July 26, 2012, 09:04:59 PM
Will this ever be updated to work with version 2.0.2 or is there a fix? Thanks guys.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 26, 2012, 09:08:49 PM
Quote from: Old Fossil on July 26, 2012, 01:47:49 PM
Quote from: MrFarbodD on July 26, 2012, 08:30:01 AM
Will this be updated for the 2.0.2 version? Or is there any fix for the 2.0.2 version? Please I really want this.

Use the chat link in my signature.

Please read the message above.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hellboy78 on July 27, 2012, 02:21:44 PM
Hi

may I known which are the server requirements for ajaxchat???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hellboy78 on July 28, 2012, 03:17:23 AM
I ask to my hosting to try install the ajaxchat

and this is the message they send me

"I have checked your issue and I am unable to find out anything wrong from server side. When we try to install plugin we get message 'Skipping file' and we are unable to install plugin. "

what "skipping file" means?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on July 28, 2012, 09:07:51 AM
Which file is being skipped?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShadowLurker on July 28, 2012, 11:10:15 PM
ok i have the newish updated version installed on my forum, im using the black ops theme by Akyhne. My problem is, shout works(kinda, no sound no auto refresh even after being turned on etc) we have to refresh the page to see what is written, no sound what so ever, when you open the chat(in a seperate window) it will shows an error(Warning: in_array() expects parameter 2 to be array, integer given in /home/nexusgam/public_html/forum/chat/lib/class/CustomAJAXChat.php on line 152), then load the chat room BUT you dont see anyone in there(including myself) and it has the same problems as the shout(no sound no auto refresh even after being turned on etc) as well as after typing and even a hard refresh you dont see what is written within chat OR shout(which is wierd cos i thought it was supposed to be intergrated). is there anyone who can fix this problem as i havent a clue and have tried everything i can think of
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Stanic on July 29, 2012, 11:28:58 AM
Quote from: Old Fossil on July 26, 2012, 01:47:49 PM
Use the chat link in my signature.
Hi, Old Fossil! There is the version 3.2.2 in your signature, but I found, that Ajax Chat 3.3a,3.3b and 3.3c already exist.
http://www.simplemachines.org/community/index.php?topic=257973.msg3222028#msg3222028

Why  I should to install 3.2.2? Are the versions 3.3 fail? I have SMF 2.0.2 and can't choose, what chat to install.

Sorry for bad english.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: ShadowLurker on July 30, 2012, 12:20:22 AM
Quote from: Stanic on July 29, 2012, 11:28:58 AM
Quote from: Old Fossil on July 26, 2012, 01:47:49 PM
Use the chat link in my signature.
Hi, Old Fossil! There is the version 3.2.2 in your signature, but I found, that Ajax Chat 3.3a,3.3b and 3.3c already exist.
http://www.simplemachines.org/community/index.php?topic=257973.msg3222028#msg3222028

Why  I should to install 3.2.2? Are the versions 3.3 fail? I have SMF 2.0.2 and can't choose, what chat to install.

Sorry for bad english.

your best bet as i have found out last night is to install 3.3a, i found with b and c they gave me errors and played up a little bit. I had to uninstall FB and twitter slide boxes though in order to get 3.3a working just fine, you may or may not have to revert your forum back a couple of version though i am unsure(i did it just to be on the safe side)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on July 30, 2012, 07:10:10 PM
ShadowLurker

The errors you mention are exactly why 3.2.2 is the one to install.

Why?

Because it works.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hurl on August 06, 2012, 04:21:18 AM
Hi
Just a simple question: where can I download 3.2.2 ?
On the mod page there's only 3.2.1 and 3.2.1 RC3_Curve_Friendly
I've searched on this thread and on Google but I just can't find it.
Thanks

Ok, sorry for that I found your post Old Fossil, linking to an attachment.
BTW, why in the mod section the only version showing is 3.2.1 ? and why this topic is still titled "(latest version 3.2.1)" ?
I think it's a little confusing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Lou69 on August 12, 2012, 05:16:51 PM
Quote from: Old Fossil on July 30, 2012, 07:10:10 PM
ShadowLurker

The errors you mention are exactly why 3.2.2 is the one to install.

Why?

Because it works.

3.2.2 would not install on my 2.0.2 forum. Says corrupt package or not compatible.

Installed mods on the forum are: Simple Portal, Highslide 4 SMF, Bad Behaviour Mod and Stop Spammer.

Alas .... no joy.  :)



The 3.3 versions from T3CHNO

http://www.simplemachines.org/community/index.php?topic=257973.msg3222028#msg3222028 (http://http://www.simplemachines.org/community/index.php?topic=257973.msg3222028#msg3222028)

have various levels of functioning.

3.3.a works fine but the shout input box is too short and there appears to be not way to mute the sound.

3.3b has a nice long shout input box, sound is muted ( which is good ) but misses the 'shout' button and does not auto refresh or update after cr/nl is hit.

3.3c has same pros/cons of 3.3b plus it can not be minimalised. Being minimalised is important to my users.

Would love to have a 3.3a that is shrinkable, no sound, long shout input box, has a shout ( cr/nl ) button and updates immediately on input.  :) 


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 12, 2012, 05:19:14 PM
Lou69

Have a look at the mod emulate link in my signature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pftq on August 27, 2012, 09:22:40 AM
How are the chat logs currently stored? They seemed to get wiped every time I reinstall to upgrade SMF right now.  I'm looking for a way to perhaps store the chat logs directly on an SMF board.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Ice_Drake on August 29, 2012, 11:09:52 PM
Hi, I have been searching for answers to my questions through this topic, AJAX Chat wiki, and sourceforge.net but to no avail. Here is what I want to do:

1. I want to change the default channel for the shoutbox, but not for the chatroom. For example, I want the default channel to be 2 for the shoutbox, but the default channel is still 0 for the chatroom.

I tried modifying $config['defaultChannelName'], $config['defaultChannelID'], and $config['limitChannelList'] in config.php file under chat and shoutbox directory to do that, but it didn't work the way I wanted. The default channel for the shoutbox is still 0 no matter what value I changed them to. What can I do to achieve this?

2. I want one shoutbox for channel 0 in the index page, and one shoutbox appears only for a certain board for channel 41 as an example. Before using AJAXChat Integration 3.2.2b, I was using blueimp.net version of AJAXChat for SMF. I was able to get the shoutbox to appear only for a particular board using PortaMX mod with PHP code to add the shoutbox, but it is very unstable. It sometimes works, but mostly, it doesn't work. The code provided in the wiki must be missing something...what is it missing?

3. With AJAXChat Integration 3.2.2b mod, I noticed that maybe I can work around using the mod to leave the shoutbox on the index page on the public channel and use PortaMX mods with the right PHP code to load a shoutbox on a different channel on a particular board. The problem is that I can't find the PHP code for it.

4. As a side question, is it possible to allow one channel to hear from another channel, but not vice-versa?

P.S. I am using SMF 2.0.2.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on August 29, 2012, 11:17:14 PM
Ice_Drake

From what I can remember none of what you are requesting is available with the mod.

Title: Re: AjaxChat Integration
Post by: dan4ever on August 31, 2012, 10:25:32 AM
Quote from: .HuNTeR. on August 27, 2008, 04:52:58 AM

if anynody have an idea for new features i will be glad to know

I'l need support for 2.0.2, Thanks...../Dan

The mods works on 2.0.2 already.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: virtualdave on August 31, 2012, 10:55:00 AM
I just installed the 3.2.2 version on a fresh slightly modded SMF 2.0.2 with out much hassle. Only one tweak was setting perms for the index.php file to 644 after install.
Title: Re: AjaxChat Integration
Post by: TheListener on August 31, 2012, 04:03:14 PM
Quote from: dan4ever on August 31, 2012, 10:25:32 AM
Quote from: .HuNTeR. on August 27, 2008, 04:52:58 AM

if anynody have an idea for new features i will be glad to know

I'l need support for 2.0.2, Thanks...../Dan

QuoteThe mods works on 2.0.2 already.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Ice_Drake on September 01, 2012, 12:51:01 AM
Quote from: Old Fossil on August 29, 2012, 11:17:14 PM
Ice_Drake

From what I can remember none of what you are requesting is available with the mod.


Actually, I just found myself part of the answer to one of my questions. :)

Quote from: Ice_Drake on August 29, 2012, 11:09:52 PM
3. With AJAXChat Integration 3.2.2b mod, I noticed that maybe I can work around using the mod to leave the shoutbox on the index page on the public channel and use PortaMX mods with the right PHP code to load a shoutbox on a different channel on a particular board. The problem is that I can't find the PHP code for it.

I basically use PHP codes below copied and modified from the mod and paste to one of the PortaMX blocks. This will work regardless of whether the Shoutbox on the index page is enabled or not.

<?php
global $boardurl;
echo 
'<link rel="stylesheet" type="text/css" href="'$boardurl'/chat/css/shoutbox.css" />';
echo 
'<div id="ShoutBox"', empty($options['sb_collapsed']) ? '' ' style="display: none;"''>
<span class="upperframe" style="height:18px;"><span><a href="https://blueimp.net/ajax/"><font size="1">AJAX Chat</font></a><font size="1"> © <a href="https://blueimp.net">blueimp.net</a>&nbsp;|&nbsp; </font> <a href="http://4tmu.ir/forum/index.php"><font size="1">Integrated with SMF</font></span></a></span></span>
<div class="roundframe"><div style="margin:-5px;">'
getShoutBoxContent() ,'</div></div>
<span class="lowerframe"><span>&nbsp;</span></span>
</div><br class="clear" />'
;
?>


What left is figuring out how to switch channel for the shoutbox... :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: crowni on September 03, 2012, 11:19:05 AM
Hi im new user hear this shoutbox is great but dont working for SMF 2.0.2 eny help change for this version thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nachtfalke on September 04, 2012, 02:30:25 AM
Hi!
I am using 2.0.2 too and I need help cause I wanna use that fantastic mod like i did before.....
Greetz, Thorsten
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: graaywolf on September 04, 2012, 05:51:37 AM
Hey the mod works great but there is no users in chat in the users online list on my custom theme which is "YemYesil2" in the statistics center... here is a screenshot

#2. Also the chat is working fine but the shoutbox isn't updating/scrolling it shows what people said before you intered but doesn't update after that...

thanks for your time and efforts whoever answers

-=(GW)=-

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Andrew Evenstar on September 04, 2012, 07:15:25 PM
I am willing to pay someone $5.00 through paypay if they can solve this for me.

Is it possible to have a hidden user NOT show up in the "Members in the chat" online list on the board index page?

This is very important to me,
Thanks!

SMF 1.1.16
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: N i g h t m a r e on September 08, 2012, 02:18:46 PM
i just downloaded this mod on my website :s it wont install im using smf 2.0.2 any ideas :l
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 08, 2012, 03:29:47 PM
Quote from: Zeum on September 08, 2012, 02:18:46 PM
i just downloaded this mod on my website :s it wont install im using smf 2.0.2 any ideas :l

Have a look at the ajax chat link in my signature.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: N i g h t m a r e on September 08, 2012, 04:37:28 PM
Quote from: Old Fossil on September 08, 2012, 03:29:47 PM
Quote from: Zeum on September 08, 2012, 02:18:46 PM
i just downloaded this mod on my website :s it wont install im using smf 2.0.2 any ideas :l

Have a look at the ajax chat link in my signature.
i downloaded that file and it still didn't install :l
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 08, 2012, 06:18:52 PM
What do you mean didn't install?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: N i g h t m a r e on September 09, 2012, 12:43:50 AM
I get this error:
This mod is not supported with your version of SMF.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Adrek on September 09, 2012, 09:34:46 AM
Did you try Emulating older SMF version? How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: xanenightwing on September 09, 2012, 03:03:06 PM
Hi, I installed this mod while emulating an older version of SMF and I got an error. it says "unable to load the 'shout_above' template".

how do i fix this?

edit: the site is http://pon3gaming.com (http://pon3gaming.com)

edit edit: nevermind, i found a way to fix it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: N i g h t m a r e on September 09, 2012, 07:12:43 PM
Quote from: phantomm on September 09, 2012, 09:34:46 AM
Did you try Emulating older SMF version? How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)

i attempted  emalulating it
i put: SMF 3.2.2 and i still see No "[Install Mod]" for AjaxChat Integration 3.2.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 09, 2012, 07:14:56 PM
Quote from: Zeum on September 09, 2012, 07:12:43 PM
Quote from: phantomm on September 09, 2012, 09:34:46 AM
Did you try Emulating older SMF version? How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)

i attempted  emalulating it
i put: SMF 3.2.2 and i still see No "[Install Mod]" for AjaxChat Integration 3.2.2

Try 2.0 and 2.0 RC4 or 2.0 RC%

3.2.2 is the mods version number NOT the forums version
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: N i g h t m a r e on September 09, 2012, 07:26:36 PM
Quote from: Old Fossil on September 09, 2012, 07:14:56 PM
Quote from: Zeum on September 09, 2012, 07:12:43 PM
Quote from: phantomm on September 09, 2012, 09:34:46 AM
Did you try Emulating older SMF version? How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)

i attempted  emalulating it
i put: SMF 3.2.2 and i still see No "[Install Mod]" for AjaxChat Integration 3.2.2

Try 2.0 and 2.0 RC4 or 2.0 RC%

3.2.2 is the mods version number NOT the forums version
thanks i finaly got it to work :) all i have to do is fix one of the errors real fast and my anime based website will soon be finished :D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dan4ever on September 12, 2012, 05:37:27 PM
Hi
I'v tryed Ajax Chat 3.3A and in work well until.....now.
Seems like it can't read (or update) from the database anymore . But it write.
In phpmyadmin I can see people trying but nobody can see.

Somebuddy who can help me??

SMF 2.0.2

/Dan
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on September 13, 2012, 02:02:17 PM
Quote from: graaywolf on September 04, 2012, 05:51:37 AM
Hey the mod works great but there is no users in chat in the users online list on my custom theme which is "YemYesil2" in the statistics center... here is a screenshot

Check the edits for BoardIndex.template.php and make those same edits to the same file on your custom themes.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dan4ever on September 14, 2012, 03:40:24 PM
Hi

I need to save the chat-historic to a file so my users can see the talking som days after.
Are there any workaround for that?

/Dan
SMF 2.0.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TrueCoppa on September 15, 2012, 10:07:14 AM
I want to enable it so that guests can use the chat, I enabled everything in the chat\custom\config.php, but it seems that has not worked. If I try to log in as a guest "You can't access the chat".

What do I change to actually allow guests?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on September 15, 2012, 10:30:54 AM
Quote from: TrueCoppa on September 15, 2012, 10:07:14 AM
I want to enable it so that guests can use the chat, I enabled everything in the chat\custom\config.php, but it seems that has not worked. If I try to log in as a guest "You can't access the chat".

What do I change to actually allow guests?

Have you looked at the permissions for guests?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on September 18, 2012, 11:52:50 PM
Seems Chrome is going through more derps with Ajax Chat.  I don't know the fix but know the FABridge.js is whats caused this in the past, file needs some kinda updating.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: josem on September 26, 2012, 06:22:33 PM
I would like to add... i have just installed the chat. 4 different version for trying, followed de faq's but...
i cant even write at the chat!

i press send and nothing appears there, but if i turn off my router I get a message that says error with the connection (so the chat work's itself), but it doesn't even let admins post
The disconnect button doesnt work neither, and... i have all te permissions at 755 so it should be a problem
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nachtfalke on September 27, 2012, 08:59:43 AM
Hello.... I just installed 3.3a on my smf 2.0.2 system and i get errors:

QuoteWarning: file_exists(): open_basedir restriction in effect. File(/customers/findet-tanjagraeff.de/findet-tanjagraeff.de/httpd.www/aps/smf2/cache) is not within the allowed path(s): (/customers/5/f/e/findet-tanjagraeff.de/httpd.www:/customers/5/f/e/findet-tanjagraeff.de/httpd.private:/customers/5/f/e/findet-tanjagraeff.de/tmp:/customers/findet-tanjagraeff.de/findet-tanjagraeff.de:/var/www/diagnostics:/usr/share/php) in /customers/5/f/e/findet-tanjagraeff.de/httpd.www/aps/smf2/SSI.php on line 42 Warning: Cannot modify header information - headers already sent by (output started at /customers/5/f/e/findet-tanjagraeff.de/httpd.www/aps/smf2/SSI.php:42) in /customers/5/f/e/findet-tanjagraeff.de/httpd.www/aps/smf2/chat/lib/class/AJAXChatHTTPHeader.php on line 36 Warning: Cannot modify header information - headers already sent by (output started at /customers/5/f/e/findet-tanjagraeff.de/httpd.www/aps/smf2/SSI.php:42) in /customers/5/f/e/findet-tanjagraeff.de/httpd.www/aps/smf2/chat/lib/class/AJAXChatHTTPHeader.php on line 37 Warning: Cannot modify header information - headers already sent by (output started at /customers/5/f/e/findet-tanjagraeff.de/httpd.www/aps/smf2/SSI.php:42) in /customers/5/f/e/findet-tanjagraeff.de/httpd.www/aps/smf2/chat/lib/class/AJAXChatHTTPHeader.php on line 41

can someone help me because i need a chat feature

thanks a lot
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on September 27, 2012, 01:37:38 PM
Hello everyone,

Is there are way to add a message that the chatbot shouts every few minutes? If not it would be an awesome feature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on September 29, 2012, 02:50:44 AM
Quote from: Blah blah on September 27, 2012, 01:37:38 PM
Hello everyone,

Is there are way to add a message that the chatbot shouts every few minutes? If not it would be an awesome feature.

Any ideas?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smashmash on October 01, 2012, 12:36:38 PM
Since giving up on Flashchat as it simply doesn't work and support is non existent I could really do with a chat room.

What are the chances of getting this working on SMF 2.0.2? Must be do-able as someone's offered to do it....but for $30  :o
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on October 01, 2012, 03:22:20 PM
Quote from: smashmash on October 01, 2012, 12:36:38 PMWhat are the chances of getting this working on SMF 2.0.2? Must be do-able as someone's offered to do it....but for $30  :o

Install the attached package in the package manager.  Emulate to version 2.0 before doing so.  installs fine.   For that info i'll only charge you 29.99 :P

http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn't_work_in_my_SMF_version
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: virtualdave on October 01, 2012, 03:31:28 PM
You have to set the emulate to a genuine SMF version there is no SMF 3.2.2 That is the version of the chat mod, SMF is your forum software. Go to the archived SMF versions (http://download.simplemachines.org/index.php?archive;version=all) and look up the last few versions and try them, one , I forget which, will work.



Quote from: {★-♦-Zeum-♦-★} on September 09, 2012, 07:12:43 PM
Quote from: phantomm on September 09, 2012, 09:34:46 AM
Did you try Emulating older SMF version? How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)

i attempted  emalulating it
i put: SMF 3.2.2 and i still see No "[Install Mod]" for AjaxChat Integration 3.2.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: smashmash on October 01, 2012, 05:23:10 PM
Quote from: hcfwesker on October 01, 2012, 03:22:20 PM
Quote from: smashmash on October 01, 2012, 12:36:38 PMWhat are the chances of getting this working on SMF 2.0.2? Must be do-able as someone's offered to do it....but for $30  :o

Install the attached package in the package manager.  Emulate to version 2.0 before doing so.  installs fine.   For that info i'll only charge you 29.99 :P

I will bear your children!!! :D

You absolute diamond sir!! Worked like a charm. Emulation is my new favourite SMF feature :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dan4ever on October 07, 2012, 01:18:29 PM
Hi, tying again...

I need to save the chat-historic to a file so my users can see the talking som days after.
Are there any workaround for that?

/Dan
SMF 2.0.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Blah blah on October 09, 2012, 02:53:11 AM
Quote from: Blah blah on September 27, 2012, 01:37:38 PM
Hello everyone,

Is there are way to add a message that the chatbot shouts every few minutes? If not it would be an awesome feature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 09, 2012, 06:46:02 PM
Quote from: Blah blah on October 09, 2012, 02:53:11 AM
Quote from: Blah blah on September 27, 2012, 01:37:38 PM
Hello everyone,

Is there are way to add a message that the chatbot shouts every few minutes? If not it would be an awesome feature.

There isn't and it is highly unlikely that it will be included as the mods author has not been active with the mod for a long time.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nikz11 on October 16, 2012, 12:21:54 PM
The author of this mod obviously has abandoned this project and that's really such a shame. I hope someone picks up where this guy left of because I've been looking for a Forum Chatbox for so long. One that is fully working and looks good aswell. I liked the SMFPacks Shoutbox it looked integrated my forums style with the chatbox straight away and it just looked really good although that's a ShoutBox and i need a chatbox :|.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on October 16, 2012, 07:56:11 PM
Quote from: Nikz11 on October 16, 2012, 12:21:54 PM
The author of this mod obviously has abandoned this project and that's really such a shame. I hope someone picks up where this guy left of because I've been looking for a Forum Chatbox for so long. One that is fully working and looks good aswell. I liked the SMFPacks Shoutbox it looked integrated my forums style with the chatbox straight away and it just looked really good although that's a ShoutBox and i need a chatbox :|.

AjaxChat has like 10 different theme styles you can chose from, and set which style you want as the default.

Check the instructions and attached package from this link  http://www.simplemachines.org/community/index.php?topic=257973.msg3414509#msg3414509
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: emmjaibi on October 17, 2012, 07:41:30 PM
Quote from: hcfwesker on October 16, 2012, 07:56:11 PM

AjaxChat has like 10 different theme styles you can chose from, and set which style you want as the default.

Check the instructions and attached package from this link  http://www.simplemachines.org/community/index.php?topic=257973.msg3414509#msg3414509

I'm confused - does the package attached to your referenced post differ from that on the original mod page (http://custom.simplemachines.org/mods/index.php?mod=1319 (http://custom.simplemachines.org/mods/index.php?mod=1319))? It looks to be different in file size. What changed?  ???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on October 18, 2012, 01:22:48 AM
The package on the MOD page hasn't been updated since around july 2011, smf 2 RC3

It's the same MOd, just updated for SMF 2, meaning you'll have to emulate to SMF 2.0 in the package manager when installing
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Loaf on October 21, 2012, 06:18:01 AM
I just migrated servers. I had to changed both my database name, and my server host uses public_html where as before it used httpdocs so this took some configuration changing.

Ajax chat is the last thing I need to fix.

I was getting errors related to settings.php and some of the files in /lib/class, it was breaking the window. When going back later, the errors had disappeared but now no members appear in the user list.

Wondering how I might be able to fix it. I imagine its to do with corrupt settings, any suggestions that don't include removing it altogether?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CandC on October 26, 2012, 01:17:36 PM
Well, I've read more of these 446 pgs than I care to admit trying to find what may indeed turn out to be a simple solution...with no luck.
Either I'm searching incorrectly or no one has asked yet.  ;D

I'm running this mod without any real issues other than people on Chrome are still experiencing the scroll not working properly.
I was however, after searching this topic - able to do the "fix" the sound issues and log in error msg for Chrome.  They're dealing with the scroll, knowing it's just something buggy because they're happy that the other two things were fixed  :)

Hoping a tweak I'd like to make is a simple one. 
We as a group used to be in a chat room that would let you reply to a user by clicking their name and it would appear in the reply window with the @ symbol before it.   In this chat, you can click a user name, and it will appear in the reply, but you have to punctuate or it will just flow into your comment.

Is there a simple edit that will allow the @ symbol to appear before a username if you click their name to reply?


Thanks in advance.


I'm using a customized default theme, 2.02 and open the chat in a new window.
I don't have the shoutbox enabled.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on October 26, 2012, 07:36:00 PM
Quote from: CandC on October 26, 2012, 01:17:36 PMI'm running this mod without any real issues other than people on Chrome are still experiencing the scroll not working properly.
I was however, after searching this topic - able to do the "fix" the sound issues and log in error msg for Chrome.  They're dealing with the scroll, knowing it's just something buggy because they're happy that the other two things were fixed  :)

Yeah, Chrome just derps every few months with ajax, the fix is usually with the FABridge.js file which I try to supply, but a new one hasn't been released that im aware of.

QuoteHoping a tweak I'd like to make is a simple one. 
We as a group used to be in a chat room that would let you reply to a user by clicking their name and it would appear in the reply window with the @ symbol before it.   In this chat, you can click a user name, and it will appear in the reply, but you have to punctuate or it will just flow into your comment.

Is there a simple edit that will allow the @ symbol to appear before a username if you click their name to reply?

Not a simple one.  Well, it would be simple if I could find the action for this.  Chat has a billion files to it, so the hard part of this request is finding the exact spot for this action.  In the meantime just add that space or punctuation, members will get used to it.  No promises but i'll try and see if I can find this because it would be useful for my site as well.  Just please don't bump every 2 hours asking on updates, lol.  May take several days.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on October 26, 2012, 07:36:55 PM
Quote from: Loaf on October 21, 2012, 06:18:01 AMWhen going back later, the errors had disappeared but now no members appear in the user list.

Tried any other themes?  See if memberlist appears when trying another theme and going to ajax.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CandC on October 27, 2012, 08:26:59 AM
Quote from: hcfwesker on October 26, 2012, 07:36:00 PM
QuoteHoping a tweak I'd like to make is a simple one. 
We as a group used to be in a chat room that would let you reply to a user by clicking their name and it would appear in the reply window with the @ symbol before it.   In this chat, you can click a user name, and it will appear in the reply, but you have to punctuate or it will just flow into your comment.

Is there a simple edit that will allow the @ symbol to appear before a username if you click their name to reply?

Not a simple one.  Well, it would be simple if I could find the action for this.  Chat has a billion files to it, so the hard part of this request is finding the exact spot for this action.  In the meantime just add that space or punctuation, members will get used to it.  No promises but i'll try and see if I can find this because it would be useful for my site as well.  Just please don't bump every 2 hours asking on updates, lol. May take several days.

I appreciate your time and being willing to look into my request.  I know some do, but don't fear I'll keep "bumping" this thread, but I'll watch for a notification in my email that there has been a reply.

Your comments indicate to me you'd like to be able to do this as well, so I'll share that in my research before posting here, I was able to find a suggestion by someone on another site that has been able to make it happen. All my attempts to edit the chat.js file and "add" what they suggested did not work.  I'll post the link so you can see if that saves you some work and can just elaborate or edit this procedure.

SourceForge for Ajax Topic - (it's the last reply on that conversation).

http://sourceforge.net/p/ajax-chat/discussion/774132/thread/a7b55066 (http://sourceforge.net/p/ajax-chat/discussion/774132/thread/a7b55066)

(change the hxxp above to http - it keeps breaking the URL format when I try and post a link)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tb0081 on October 28, 2012, 04:57:49 AM
Hi,

will there be a version for 2.02, or not at all?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Shambles on October 28, 2012, 05:06:38 AM
Quote from: tb0081 on October 28, 2012, 04:57:49 AM
Hi,

will there be a version for 2.02, or not at all?

http://www.simplemachines.org/community/index.php?topic=257973.msg3402762#msg3402762
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tb0081 on October 28, 2012, 06:03:03 AM
Quote from: ShamPire on October 28, 2012, 05:06:38 AM
Quote from: tb0081 on October 28, 2012, 04:57:49 AM
Hi,

will there be a version for 2.02, or not at all?

http://www.simplemachines.org/community/index.php?topic=257973.msg3402762#msg3402762

this? http://www.simplemachines.org/community/index.php?topic=257973.msg3143055#msg3143055

not worked with 2.0.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on October 28, 2012, 06:56:17 AM
Of you would have just scrolled up the page, or even searched 2.0.2 in this topic.  You would have come across this post.

QuoteREAD the instructions and use the attached package from this link  http://www.simplemachines.org/community/index.php?topic=257973.msg3414509#msg3414509

Had to emphasize the READ part since you didn't from the last link you were shown.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LindaHT on October 28, 2012, 12:13:16 PM
Is there anyway to chane the header color?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 28, 2012, 06:08:55 PM
Quote from: LindaHT on October 28, 2012, 12:13:16 PM
Is there anyway to chane the header color?

What do you mean by header colour?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: LindaHT on October 28, 2012, 06:33:13 PM
Thank you so much.  I will stop asking questions.

Linda
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on October 28, 2012, 07:07:06 PM
huh?   :o
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on October 28, 2012, 07:09:04 PM
Quote from: hcfwesker on October 28, 2012, 07:07:06 PM
huh?   :o

I thoughts exactly.

::)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on October 28, 2012, 08:19:00 PM
Quote from: CandC on October 27, 2012, 08:26:59 AMYour comments indicate to me you'd like to be able to do this as well, so I'll share that in my research before posting here, I was able to find a suggestion by someone on another site that has been able to make it happen. All my attempts to edit the chat.js file and "add" what they suggested did not work.  I'll post the link so you can see if that saves you some work and can just elaborate or edit this procedure.

SourceForge for Ajax Topic - (it's the last reply on that conversation).

http://sourceforge.net/p/ajax-chat/discussion/774132/thread/a7b55066 (http://sourceforge.net/p/ajax-chat/discussion/774132/thread/a7b55066)

(change the hxxp above to http - it keeps breaking the URL format when I try and post a link)

There's a problem with clicking the username next to their chat message.  How their name appears when you click it.  If you change that, then you change how it appears in the chat messages as well.

Only real work around I see for this, though I know it's tedious to click names in the online list, was add an extra drop down list under member names in the online list.  You can see the attached pic.

If that will be ok enough, let me know any changes you want with what is displayed in the chat message post box, plus i can move the link option to the top directly below the member's name.  I'm still trying soem other options, but this could be a temp solution for now.

I used "@(NAME):  "  so it helps it stand out more with paranthesis.  I'll supply the edits, or if you're not comfy just upload your /chat/js/chat.js file.



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tb0081 on October 29, 2012, 06:40:14 AM
Quote from: hcfwesker on October 28, 2012, 06:56:17 AM
Of you would have just scrolled up the page, or even searched 2.0.2 in this topic.  You would have come across this post.

QuoteREAD the instructions and use the attached package from this link  http://www.simplemachines.org/community/index.php?topic=257973.msg3414509#msg3414509

Had to emphasize the READ part since you didn't from the last link you were shown.

THXXXXXXXXXXXXXXXXXXX worked :)


maybe someone can tell me in which I can change the language file?
http://www.xup.in/dl,19537823/11.png/
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CandC on October 29, 2012, 11:33:39 AM
Quote from: hcfwesker on October 28, 2012, 08:19:00 PM
There's a problem with clicking the username next to their chat message.  How their name appears when you click it.  If you change that, then you change how it appears in the chat messages as well.

Only real work around I see for this, though I know it's tedious to click names in the online list, was add an extra drop down list under member names in the online list.  You can see the attached pic.

If that will be ok enough, let me know any changes you want with what is displayed in the chat message post box, plus i can move the link option to the top directly below the member's name.  I'm still trying soem other options, but this could be a temp solution for now.

I used "@(NAME):  "  so it helps it stand out more with paranthesis.  I'll supply the edits, or if you're not comfy just upload your /chat/js/chat.js file.


hcfwesker - thanks for the photo, it helped me see what you were talking about :)
That would be a nice temp solution and I'd like to try and implement it while you're still looking into other options. 

I'm curious, did you try the edits the guy used on the other site link I posted?
He seemed to indicate that he used that and it worked for him. I couldn't make it work, but then again my coding skills are limited.

I appreciate your help, I'll watch for your post with how to do your temp workaround.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on October 29, 2012, 06:41:10 PM
Quote from: CandC on October 29, 2012, 11:33:39 AMI'm curious, did you try the edits the guy used on the other site link I posted?
He seemed to indicate that he used that and it worked for him. I couldn't make it work, but then again my coding skills are limited.

All his edit does is replace the command for "private messages"(whispers) in the chat.  From "/msg"  to "@".   Which sends a whispers in the chat. But from what I thought, you wanted the message to be posted publicly in the chat but directed at a certain member. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CandC on October 29, 2012, 07:20:46 PM
Quote from: hcfwesker on October 29, 2012, 06:41:10 PM
Quote from: CandC on October 29, 2012, 11:33:39 AMI'm curious, did you try the edits the guy used on the other site link I posted?
He seemed to indicate that he used that and it worked for him. I couldn't make it work, but then again my coding skills are limited.

All his edit does is replace the command for "private messages"(whispers) in the chat.  From "/msg"  to "@".   Which sends a whispers in the chat. But from what I thought, you wanted the message to be posted publicly in the chat but directed at a certain member.

hcfwesker:  You were right in what I was requesting.

I didn't realize what he was proposing would just replace the "pm"
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on October 29, 2012, 08:10:53 PM
Quote from: CandC on October 29, 2012, 07:20:46 PMhcfwesker:  You were right in what I was requesting.

I didn't realize what he was proposing would just replace the "pm"

Yeah, reason I wanted to make that clear.  Was there any changes to how i had it set up in the image you want.  Also there is another tiny workaround.  You can't change the way the name looks when you click it next to their message (without also changing the way it looks in the chat messages.  See attachment 1.

but I can doctor it up in a way for both so it doesn't affect how they're displayed in messages a great deal.  just adding one extra space between the colon and their message.  Attached Pic 2.

But, with this, members just need to type the "@" sign first, then click the members name and it should do as you want.  With an indent space already supplied after the members name.  attached Pic 3 lol

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CandC on October 30, 2012, 09:23:35 AM
Quote from: hcfwesker on October 29, 2012, 08:10:53 PM
Yeah, reason I wanted to make that clear.  Was there any changes to how i had it set up in the image you want.  Also there is another tiny workaround.  You can't change the way the name looks when you click it next to their message (without also changing the way it looks in the chat messages.  See attachment 1.

but I can doctor it up in a way for both so it doesn't affect how they're displayed in messages a great deal.  just adding one extra space between the colon and their message.  Attached Pic 2.

But, with this, members just need to type the "@" sign first, then click the members name and it should do as you want.  With an indent space already supplied after the members name.  attached Pic 3 lol


Option 3 is exactly what our members were used to using before on another chat site, so that would be great!  :)
Perfection would be if the name clicked would then appear bold, but your example in image 3 would be more than enough to make us happy.

I appreciate your hard work on this hcfwesker - looking forward to the instructions on the edit because I'm sure we're not the only people interested in this "tweak".  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on October 31, 2012, 07:43:34 PM
I made a change to the option that goes under their name in the member list.  Naming is "Tag In Message".  When clicking it, it'll bold and italicize their name.

@[b][i]CandC:[/i][/b]
and appear like this.
Quote@CandC: |<---(message typing starts here so its already indented)

^^ that was the first option when this all started.

chat/js/chat/js
Find
menu = '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/msg '
+ encodedUserName
+ ' \');">'
+ this.lang['userMenuSendPrivateMessage']
+ '</a></li>'


Replace
menu = '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/msg '
+ encodedUserName
+ ' \');">'
+ this.lang['userMenuSendPrivateMessage']
+ '</a></li>'
                                        + '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'@[b][i]'
+ encodedUserName
+ '[/i][/b]: \');"> '
+ 'TAG in Message'
+ '</a></li>'





But if you just want the recent, Option 3.

chat/js/chat/js
Find
return '<div id="'
+ this.getMessageDocumentID(messageID)
+ '" class="'
+ rowClass
+ '">'
+ this.getDeletionLink(messageID, userID, userRole, channelID)
+ dateTime
+ '<span class="'
+ userClass
+ '"'
+ this.getChatListUserNameTitle(userID, userName, userRole, ip)
+ ' dir="'
+ this.baseDirection
+ '" onclick="ajaxChat.insertText(this.firstChild.nodeValue);">'
+ userName
+ '</span>'
+ colon
+ this.replaceText(messageText)
+ '</div>';
},


Replace with
return '<div id="'
+ this.getMessageDocumentID(messageID)
+ '" class="'
+ rowClass
+ '">'
+ this.getDeletionLink(messageID, userID, userRole, channelID)
+ dateTime
+ '<span class="'
+ userClass
+ '"'
+ this.getChatListUserNameTitle(userID, userName, userRole, ip)
+ ' dir="'
+ this.baseDirection
+ '" onclick="ajaxChat.insertText(this.firstChild.nodeValue);">'
+ userName
+ ': </span>'
+ this.replaceText(messageText)
+ '</div>';
},




If you haven't made any changes to chat.js ever, then you should be able to use the attached file just fine.  both edits are there, and you can test them both out and see which you prefer.

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CandC on November 01, 2012, 01:47:54 PM
Quote from: hcfwesker on October 31, 2012, 07:43:34 PM
If you haven't made any changes to chat.js ever, then you should be able to use the attached file just fine.  both edits are there, and you can test them both out and see which you prefer.

PERFECT hcfwesker  :) 
Thank you so much for the help.
I installed the edits (I had made some changes to my chat.js file, so just copy/pasted your segments above) and it works perfectly.  They can choose which option they prefer.  I personally like the "Tag In Message" option which works great.

I appreciate your helping me with my inquiry. 

I've got the Chrome issues solved, and now the @ reply - I'm a happy camper  ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: capultor on November 03, 2012, 04:08:33 AM
Okay, I tried searching for an answer as many ways as I can think of and I've got nothing. Is there a way to disable users being able to delete their own messages? It's not the calendar fix because they can't delete other peoples messages. Just their own. I've already tried disabling their ability to delete normal board posts, but that did not change their ability to delete chat messages. Help? ^_^

EDIT: Nevermind, I found it. ^_^

chat/lib/config.php
// Allow/Disallow registered users to delete their own messages:
$config['allowUserMessageDelete'] = true;
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kikwan on November 21, 2012, 07:03:32 AM
Thx for the knowledge ;D
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DKBjorn on November 25, 2012, 08:15:56 AM
I know it's don't have to do with ajax chat....

but i really need at php coder there can help with code a cbox chat module for work in SMF 2.0.2

I had tryed support on cbox homepage , but they say they dont support cbos in smf 2.0.2...

I had attached the file...  it for SMF 2.0 RC1  and dont work in 2.0.2

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dahweeds on December 01, 2012, 07:56:33 AM
Howdy.
I did a modifications to this modification.
Now it installs the latest release of AJAXChat (0.8.5 For SMF).
I added one check box too in the settings section to hide the chat button from guests.

However, I don't know how to upload it or enter it to the testing phase on this forum and such.

I will try attaching. Please test and report bugs.


EDIT: Attached has been removed by Old Fossil
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dahweeds on December 03, 2012, 09:15:37 PM
Quote from: DKBjorn on November 25, 2012, 08:15:56 AM
I know it's don't have to do with ajax chat....

but i really need at php coder there can help with code a cbox chat module for work in SMF 2.0.2

I had tryed support on cbox homepage , but they say they dont support cbos in smf 2.0.2...

I had attached the file...  it for SMF 2.0 RC1  and dont work in 2.0.2

I made it work pretty well in default SMF 2.0.2.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tzora on December 03, 2012, 11:39:29 PM
hey guys, sorry i did not read the whole 447 pages for this post, limited time, lots to do.
just wish to ask, does it work smf 2.0.2? or if u could point me to a post that will help to make it work for the latest smf version.
also, if there are any better chat mods that work for 2.0.2, would appreciate your help a lllllllllllooootttttt. thank you.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DKBjorn on December 04, 2012, 02:52:44 AM
Quote from: dahweeds on December 03, 2012, 09:15:37 PM
Quote from: DKBjorn on November 25, 2012, 08:15:56 AM
I know it's don't have to do with ajax chat....

but i really need at php coder there can help with code a cbox chat module for work in SMF 2.0.2

I had tryed support on cbox homepage , but they say they dont support cbos in smf 2.0.2...

I had attached the file...  it for SMF 2.0 RC1  and dont work in 2.0.2

I made it work pretty well in default SMF 2.0.2.

Nice dahweeds....   can you plz share the install zip file to me then.....
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DKBjorn on December 04, 2012, 03:33:16 AM
Quote from: dahweeds on December 01, 2012, 07:56:33 AM
Howdy.
I did a modifications to this modification.
Now it installs the latest release of AJAXChat (0.8.5 For SMF).
I added one check box too in the settings section to hide the chat button from guests.

However, I don't know how to upload it or enter it to the testing phase on this forum and such.

I will try attaching. Please test and report bugs.

Thx for the AjaxChat....   play around with it on my forum now......
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: electricwildflower on December 06, 2012, 09:14:55 AM
Got a quick question before i install.

Does this feature the option to have multi room IE a few rooms for people to decide on where they want to chat ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dahweeds on December 06, 2012, 06:14:25 PM
I don't know if it is the same as you think. But you can get yourself in a private chat room by your user name, then you can invite others to the room. That is a AJAXChat feature.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tzora on December 06, 2012, 11:01:26 PM
it does not work. i have tried everything but it just won't work on my website :(
and now i'm messing with sidesparks chat and that too have problems. php guys decided to deprecate some codes and the whole world is falling down to hell ..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dahweeds on December 07, 2012, 08:06:50 AM
Maybe better if you post the errors that you find. Then some could help a bit.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tzora on December 07, 2012, 10:09:53 AM
Quote from: dahweeds on December 07, 2012, 08:06:50 AM
Maybe better if you post the errors that you find. Then some could help a bit.

here are the errors that i have been getting (http://www.simplemachines.org/community/index.php?topic=310771.msg3449074#msg3449074)

now if someone can help me out of this misery, i can sleep tight at night :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tzora on December 08, 2012, 12:07:59 AM
so, any help for me guys? i'm counting on you. please, if you know anything about how to replace the deprecated eregi() and ereg_replace() errors, please tell me how can i replace them ...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Henningdk on December 12, 2012, 09:13:07 AM
What have I done and where/how to fix it?
Using smf 2.0.2

Installed ajax versin 0.8.5 smf, installede AjaxChat Integration 3.2.1 RC3 Curve Friendly.
Things looked fine. Changed default lang and css in the lib/config still looks fine. BUT did not test if it was possible to send the messages/chat, it is not.

The chat looks fine, users can log in, but the are not able to send the messages they write, same for admin.

Help please.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dahweeds on December 12, 2012, 09:25:22 AM
Quote from: Henningdk on December 12, 2012, 09:13:07 AM
What have I done and where/how to fix it?
Using smf 2.0.2

Installed ajax versin 0.8.5 smf, installede AjaxChat Integration 3.2.1 RC3 Curve Friendly.
Things looked fine. Changed default lang and css in the lib/config still looks fine. BUT did not test if it was possible to send the messages/chat, it is not.

The chat looks fine, users can log in, but the are not able to send the messages they write, same for admin.

Help please.

Maybe you overlaid the 0.8.5 smf install, because the ACI 3.2.1 also installs a previous AJAX chat.

Why not try removing all that you installed and run the zip from the previous post.
http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558

It worked on default SMF 2.0.2 and also installed AC 0.8.5.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DKBjorn on December 12, 2012, 09:30:15 AM
Quote from: dahweeds on December 12, 2012, 09:25:22 AM
Quote from: Henningdk on December 12, 2012, 09:13:07 AM
What have I done and where/how to fix it?
Using smf 2.0.2

Installed ajax versin 0.8.5 smf, installede AjaxChat Integration 3.2.1 RC3 Curve Friendly.
Things looked fine. Changed default lang and css in the lib/config still looks fine. BUT did not test if it was possible to send the messages/chat, it is not.

The chat looks fine, users can log in, but the are not able to send the messages they write, same for admin.

Help please.

Maybe you overlaid the 0.8.5 smf install, because the ACI 3.2.1 also installs a previous AJAX chat.

Why not try removing all that you installed and run the zip from the previous post.
http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558

It worked on default SMF 2.0.2 and also installed AC 0.8.5.

dahweeds mod of ajxchat    working great.....and with no probs  had used for about 1 week now....
One thing are missing, and it's integrated user, og self made User groups.......

Hope someone can implent some time.....

And dahweeds thx for sharing...  this amazing mod of Ajaxchat for SMF 2.0.2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CandC on December 12, 2012, 09:43:20 AM
Is there a way I can see this mod in action?

I've customized the 3.2.1 version on my site and would hate to have to redo all that.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Henningdk on December 12, 2012, 09:59:33 AM
Quote from: dahweeds on December 12, 2012, 09:25:22 AM
Quote from: Henningdk on December 12, 2012, 09:13:07 AM
What have I done and where/how to fix it?
Using smf 2.0.2

Installed ajax versin 0.8.5 smf, installede AjaxChat Integration 3.2.1 RC3 Curve Friendly.
Things looked fine. Changed default lang and css in the lib/config still looks fine. BUT did not test if it was possible to send the messages/chat, it is not.

The chat looks fine, users can log in, but the are not able to send the messages they write, same for admin.

Help please.

Maybe you overlaid the 0.8.5 smf install, because the ACI 3.2.1 also installs a previous AJAX chat.

Why not try removing all that you installed and run the zip from the previous post.
http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558

It worked on default SMF 2.0.2 and also installed AC 0.8.5.

Need to know to be sure to use this...
This means i do NOT need to install both chat and the integration? This will do everting??

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dahweeds on December 12, 2012, 01:43:11 PM
Quote from: Henningdk on December 12, 2012, 09:59:33 AM

Need to know to be sure to use this...
This means i do NOT need to install both chat and the integration? This will do everting??


It is correct. The original author of AJAXChat Integration provides that chat version from then. It is a one step install.
I updated that source with the AC version that was current at the recent package too.
However, you should first use AJAXCHAT uninstall, if you can find the instructions, then uninstall the previous AC Intergration.
I would recommend also using your database tool to attempt removing the default ajax chat tables too.
They should lhave the name ajax in them if you look throught your PHPMyAdmin screen.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Henningdk on December 12, 2012, 03:41:56 PM
Quote from: dahweeds on December 12, 2012, 01:43:11 PM
It is correct. The original author of AJAXChat Integration provides that chat version from then. It is a one step install.
I updated that source with the AC version that was current at the recent package too.
However, you should first use AJAXCHAT uninstall, if you can find the instructions, then uninstall the previous AC Intergration.
I would recommend also using your database tool to attempt removing the default ajax chat tables too.
They should lhave the name ajax in them if you look throught your PHPMyAdmin screen.

I maneged to uninstall and fix the db. Then tried to install from the mod you provided. But just got 500 Internal Server error, so must have missed something.
Then I installed the chat and then your mod and now it worsk like a charm.
So nice.

Thank U so much every one for helping in this forum.

Henning
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: DKBjorn on December 12, 2012, 03:48:49 PM
Quote from: Henningdk on December 12, 2012, 03:41:56 PM
Quote from: dahweeds on December 12, 2012, 01:43:11 PM
It is correct. The original author of AJAXChat Integration provides that chat version from then. It is a one step install.
I updated that source with the AC version that was current at the recent package too.
However, you should first use AJAXCHAT uninstall, if you can find the instructions, then uninstall the previous AC Intergration.
I would recommend also using your database tool to attempt removing the default ajax chat tables too.
They should lhave the name ajax in them if you look throught your PHPMyAdmin screen.

I maneged to uninstall and fix the db. Then tried to install from the mod you provided. But just got 500 Internal Server error, so must have missed something.
Then I installed the chat and then your mod and now it worsk like a charm.
So nice.

Thank U so much every one for helping in this forum.

Henning

nice you got it to work dude.... :P
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sneakers on December 15, 2012, 12:49:06 PM
Hello,
I installed AjaxChat from here (http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558), but when you click on http://domain.com/chat/index.php (http://domain.com/chat/index.php) I get 403 Forbidden. Why?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: dahweeds on December 16, 2012, 07:03:37 PM
Quote from: sneakers on December 15, 2012, 12:49:06 PM
Hello,
I installed AjaxChat from here (http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558), but when you click on http://domain.com/chat/index.php (http://domain.com/chat/index.php) I get 403 Forbidden. Why?

I also saw some times a permission error when I was testing the installer. However, it also showed a message that "the trouble was fixed." So  I thought it was a permission control applied by SMF install script. maybe it was applied by my hosting companies Apache config though.

As for your try, I can only guess,
a) maybe your site uses a permission controller htacess?
b) maybe you hit the url direct as if you were using the original AJAX Chat?
c) maybe your installer applied a low level (or fobidden level) permission to the index.php.

Anyway, try to set your index.php permission to 644. That is what worked on my test site.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: aljones on December 26, 2012, 02:41:32 PM
I'm going cross eyed looking thorugh this thread, so I'll just post a note of my own.
Running SMF 2.0.3 and chat 0.8.5 ... everything is working fine except the setting for sound go away when I log out and then back in.  A couple of forum users have said they're experiencing the same thing.
We go to tools, set the sounds to sound_1, 2 and 3 and they work fine ... log off and back in and they're not set so we have to reset them again.  Any suggestions on how to make the sounds stay?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: berlin-bob on December 29, 2012, 05:13:28 AM
Hi,

we've recently updated to SMF 2.0.2 and we are now running AjaxChat instead of FlashChat.

I am not the system admin, but as he is very busy, I'm trying to set up a test system so I can try out various mods, without disturbing the running system.  I can then pass the tested mods on to admin, so he only needs to install them.

I have installed the forum and AjaxChat Integration_3.2.2.zip on my computer under XAMPP (1.6.7).
No problems by the installation, but when I link to the chat I get this message:
QuoteThe server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.
Error 500

The "Error 500" fixes mentioned in this thread all suggest CHMOD changes, but as I am running locally, I just have the normal file attributes showing, and all files are R/W.

Has anybody here any suggestions, or indeed, any experience of running the chat under XAMPP ??

thanks,
Bob
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on December 30, 2012, 04:38:17 PM
Quote from: dahweeds on December 16, 2012, 07:03:37 PM
Quote from: sneakers on December 15, 2012, 12:49:06 PM
Hello,
I installed AjaxChat from here (http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558), but when you click on http://domain.com/chat/index.php (http://domain.com/chat/index.php) I get 403 Forbidden. Why?

I also saw some times a permission error when I was testing the installer. However, it also showed a message that "the trouble was fixed." So  I thought it was a permission control applied by SMF install script. maybe it was applied by my hosting companies Apache config though.

As for your try, I can only guess,
a) maybe your site uses a permission controller htacess?
b) maybe you hit the url direct as if you were using the original AJAX Chat?
c) maybe your installer applied a low level (or fobidden level) permission to the index.php.

Anyway, try to set your index.php permission to 644. That is what worked on my test site.

Cheers for your modification but i tried it on SMF2.0.3 and i get this page :(

XML-parsefout: troep na documentelement
Locatie: http://www.ictdirect.net/smf/chat/index.php
Regelnummer 2, kolom 1:<b>Notice</b>:  Use of undefined constant Chat - assumed 'Chat' in <b>/home/deb64462/domains/ictdirect.net/public_html/smf/Sources/Subs.php</b> on line <b>3968</b><br />
^
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Inti31 on December 31, 2012, 06:33:06 AM
use that mod attached created by by dahweeds

http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558

this one works fine in 2.0.2/2.0.3
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RoyalMess on December 31, 2012, 12:27:16 PM
Quote from: Inti31 on December 31, 2012, 06:33:06 AM
use that mod attached created by by dahweeds

http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558

this one works fine in 2.0.2/2.0.3

The above posted is what i get when, i've used that mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: tletourneau on January 18, 2013, 09:44:22 PM
Thanks for doing this dahweeds! This is a huge help!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Endless Flight on February 06, 2013, 11:37:19 AM
Question.

In the navigation bar, is there a way to change the appearance from this...

Chat(1)

to this...

Chat [1]

Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: pastorvictor on February 09, 2013, 03:41:30 AM
Please help. It looks like my chat works now but apparently only if it's in English  ???

As a matter of fact, if you open index.php you can't even see the chat, but if you add "?lang=en" after php, it works. Then if you use the drop-down menu to change the language to Spanish, the chat goes blank and the following error message appears on top of the chat window:

QuoteThis page contains the following errors:

error on line 126 at column 98: Unescaped '<' not allowed in attributes values
error on line 126 at column 98: Encoding error
Below is a rendering of the page up to the first error.

My site's designed for a Spanish-speaking audience, so it's very important for the chat to work in Spanish.

And also, is there any way to "embed" the chat onto a page of my forums? I'd at least like for the users to be able to have a link to take them back to the forums.

Thanks a lot in advance!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nachtfalke on February 17, 2013, 06:30:09 AM
Quote from: RoyalMess on December 31, 2012, 12:27:16 PM
Quote from: Inti31 on December 31, 2012, 06:33:06 AM
use that mod attached created by by dahweeds

http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558

this one works fine in 2.0.2/2.0.3

The above posted is what i get when, i've used that mod.

WORKS GREAT ON 2.0.2  :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: WiseWoodrow on February 17, 2013, 06:51:11 PM
Um, hey guys, I have a question.
When I put it on my site, how do I make it like in picture 3# (On mod page) where
you click the link to be directed to chat page? I honestly don't like it hovering above everything,
because that gets in the way.
Also, how do I get it to work with a different theme?
I made a different theme, which is just the default curve with a different color, and it
doesn't work on the theme.

Help anyone?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 17, 2013, 06:54:32 PM
Did you get any errors on install?

Have a lok at the settings in admin.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: WiseWoodrow on February 17, 2013, 07:05:53 PM
No errors in installation, not getting anything that proves useful in settings.

I'm getting these in settings:


Disable Shoutbox

Auto hide Shoutbox

Default background color of message box    

Default text color of message box    

Shoutbox title    

Time to update Shoutbox and see for new messages
   
Number of messages to show at the first load
   
Number of messages to keep in Shoutbox

Height of Shoutbox    

Class style (CSS) of messages
   
Time text color    

Time format    

Maximum message's length    

Minimum message's length    

Maximum link's length    

Maximum word's length    

Disable BBCode:

Font faces

Pages where Shoutbox will be printed

Pages where Shoutbox's main function will be ignored
   
Show post bar down messages

Show new messages at the end


(Copy and pasted)
Nothing relevant to my problem.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 17, 2013, 07:08:39 PM
I take it the chat and shout are showing on your default theme.

If so then you will have to manually edit the themes index template so the mod will show
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: WiseWoodrow on February 17, 2013, 07:11:41 PM
Well, it is showing up in the Index page, but I still don't see the 'chat' on the top bar (Like in third picture of the screenshots from mod)

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 17, 2013, 07:13:25 PM
Quote from: Old Fossil on February 17, 2013, 07:08:39 PM
I take it the chat and shout are showing on your default theme.

If so then you will have to manually edit the themes index template so the mod will show
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: WiseWoodrow on February 17, 2013, 07:16:54 PM
Quote from: WiseWoodrow on February 17, 2013, 07:11:41 PM
Well, it is showing up in the Index page, but I still don't see the 'chat' on the top bar (Like in third picture of the screenshots from mod)
(Using default theme)
((So the answer to that was no, it is not technically working on default theme either))
;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 17, 2013, 07:18:12 PM
what is the link to your forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: WiseWoodrow on February 17, 2013, 07:24:50 PM
I do believe that the shoutbox doesn't show without registering.
I'll send it to you via message, I really don't want any random people registering on my forums if I post it here for everyone to see. (It in general isn't 'public')
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on February 24, 2013, 05:44:30 PM
Hi, my head is spinning! We've installed a new theme (Crushing). When someone is in Chat the button shows Chat(1) - so far so good. However under the list of online members there is no list of who is in chat.

Not a coder but I've been looking at the code yesterday and today and I'm confused. I've changed the theme's BoardIndex.template.php to:

if (isset($context['chat_links'])) {
echo '<!-- Hello world 1 -->';
}

// users in chat
if (isset($context['chat_links'])) {
echo '<!-- Hello world 2 -->';
if (count($context['chat_links']) == 0 )
  echo '<br />' . $txt['chat_no_user'];
elseif (count($context['chat_links']) == 1 )
  echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
else
  echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }


When I look at the page source I get the first hello world but not the second. What have I missed???

Thanks for any help :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MoreBloodWine on February 28, 2013, 05:39:31 PM
When being used as a chatroom why does it still use a shoutbox title ? I have a TP shoutbox and I wana keep that seperate form this. While yes I know it already will be, if it's being used as a chatroom then having it titled Shoutbox seems weird to me.

I will say I have yet to install this, I am just going by the images displayed on the mods page. One of which shows this being used as a chatroom but having the "window" titled shoutbox.

Also, is there a way to have say a right paned window to the chat showing currently connected users ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on February 28, 2013, 06:27:29 PM
The images are outdated. It now says "Ajax Chat", and not Shoutbox. (and can be changed manually in the files)
The users connected are showed in a window on the right by default...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MoreBloodWine on February 28, 2013, 06:33:53 PM
Quote from: MrNicotine on February 28, 2013, 06:27:29 PM
The images are outdated. It now says "Ajax Chat", and not Shoutbox. (and can be changed manually in the files)
The users connected are showed in a window on the right by default...
Do you have this running on your site ? Id kinda like to get a feel for it before putting it on one of mine.

Thx.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Farjo on March 01, 2013, 09:01:41 PM
Quote from: Farjo on February 24, 2013, 05:44:30 PM
Hi, my head is spinning! We've installed a new theme (Crushing). When someone is in Chat the button shows Chat(1) - so far so good. However under the list of online members there is no list of who is in chat.

Not a coder but I've been looking at the code yesterday and today and I'm confused. I've changed the theme's BoardIndex.template.php to:

if (isset($context['chat_links'])) {
echo '<!-- Hello world 1 -->';
}

// users in chat
if (isset($context['chat_links'])) {
echo '<!-- Hello world 2 -->';
if (count($context['chat_links']) == 0 )
  echo '<br />' . $txt['chat_no_user'];
elseif (count($context['chat_links']) == 1 )
  echo '<br />  1' . $txt['chat_aUser']. ':<br />', implode($context['chat_links']);
else
  echo '<br /> ' . count($context['chat_links']). $txt['chat_users']. ':<br />', implode(', ', $context['chat_links']);
  }


When I look at the page source I get the first hello world but not the second. What have I missed???

Thanks for any help :)

It was because some of the file had CRLF and some had only LF, so I assume php was reading my added block as one long line.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on March 04, 2013, 06:33:18 PM
Quote from: MoreBloodWine on February 28, 2013, 06:33:53 PM
Quote from: MrNicotine on February 28, 2013, 06:27:29 PM
The images are outdated. It now says "Ajax Chat", and not Shoutbox. (and can be changed manually in the files)
The users connected are showed in a window on the right by default...
Do you have this running on your site ? Id kinda like to get a feel for it before putting it on one of mine.

Thx.

Sorry for the late response. I've sent you a personal message...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TGB on March 05, 2013, 03:38:54 AM
Quote from: TGB on April 12, 2012, 02:33:11 PM
Quote from: TGB on January 17, 2011, 08:07:17 PM
Where can I set the number of messages displayed in the shoutbox?

??  I don't want it to clear out old messages.

still wondering how to set  the number of messages that are displayed and how long they last. thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: johnpaul2k2 on March 05, 2013, 04:21:27 AM
please ,

includes facebook plugin or googleplus chat

my suggestions though
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MoreBloodWine on March 05, 2013, 07:24:17 PM
Quote from: T3CHN0 on November 19, 2011, 09:07:32 AM
Quote from: aleks93ts on November 19, 2011, 07:00:13 AM
where can i download ajax chat for smf 2.0.1?
thanks
A few pages back you would have found it but here you go
So I downloaded this and it seemed to install ok but I get this when I click the chat button.

Any ideas why ?

As far as settings go, all I have ticked are the following four of six option.

There was a fail edit on my custom themes index.template.php file so I corrected it to work in the install file but it failed in the default theme.

Even though no one ues the default theme could that be why this isnt working ?

this was the edit I changed.

Changed This
<operation>
<search position="after"><![CDATA[ echo '
<li>', $context['current_time'], '</li>
</ul>';]]></search>
<add><![CDATA[
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>';
}
]]></add>
</operation>


To This
<operation>
<search position="after"><![CDATA[   echo '
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>
  <li>', $context['current_time'],'</li>
</ul>';
]]></search>
<add><![CDATA[
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>';
}
]]></add>
</operation>


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Edit: I also didn't see any group specific permissions, this not include any ?

Also, I noticed the chat button also showed to logged out users.

What code do I need to wrap this around so it only shows for logged in users ?

if($context['user']['is_logged']){

code here...

}
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on March 06, 2013, 01:59:05 AM
This part at the beginning and end, in my opinion, shouldn't be there...

]]></search>
<add><![CDATA[


and

]]></add>

To make sure, place back your backup file of index.template, and follow the parser for this file again.

For permissions, this is placed in your normal permissions field in admin.

Admin->members->permissions

It should be at the top.

As far as not showing the button to quests, it has been discussed before in this topic..
I don't remember what the edit was, because I didn't use it. ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MoreBloodWine on March 06, 2013, 02:46:18 AM
Quote from: MrNicotine on March 06, 2013, 01:59:05 AM
This part at the beginning and end, in my opinion, shouldn't be there...

]]></search>
<add><![CDATA[


and

]]></add>

To make sure, place back your backup file of index.template, and follow the parser for this file again.

For permissions, this is placed in your normal permissions field in admin.

Admin->members->permissions

It should be at the top.

As far as not showing the button to quests, it has been discussed before in this topic..
I don't remember what the edit was, because I didn't use it. ;)
Thats all part of the install file, the add stuff is in all the code. Download the package and look at install_2
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MoreBloodWine on March 06, 2013, 02:47:13 AM
That zip also has all of its contents in a folder so maybe it was zipped wrong ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on March 06, 2013, 06:24:08 AM
Those two bits are command lines, telling to add this edit, it's not part of the actual edit.
For the actual edit, go to the mod page, on the right choose for 2.0 rc3 and click "parse".
There you will find the actual edits, and you will see those parts shouldn't be there.
To use the instal file to do manual edits is only confusing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CandC on March 06, 2013, 12:20:41 PM
I've been monitoring this thread and still deciding if I want to try and update.

A new update of this MOD to 3.2.7 is offered here (http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558) by dahweeds.

But, before I try to delete what I'm using (3.2.1 RC3 Curve Friendly) and install this update, can anyone give a brief description of what changes/updates this would actually give me?

I'm seriously afraid of breaking what's working on our site now just to attempt an update of enhancements I may not need.

I'm SMF 2.0.4
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MoreBloodWine on March 06, 2013, 01:28:30 PM
Ok, well I never said that I added those bits to the file. So yes for this mod to work those bits need to be there as they are part of the install_2 file which is what I said I edited I believe.

I also said why I edited that file was so I could intall / unstill the mod on a whim without needing to do manual edits / unedits. The mod and all my files are still intact. ALL I changed was that one thing in the install_2 file. As for my recent issue, the mod still does not work and I am confident enough to say it has nothing to do with the one edit I made to the install_2 files search line.

Edit: FWIW, I know when doing mnual edits to the actual files like index.template.php that those are not part of the edits. But when doing edits to the mods install files then yes they are supposed to be there.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on March 06, 2013, 02:15:47 PM
You're right (ofcourse), I've read your reply a bit too fast. I overlooked this detail, my apologies...

Then sorry, changing the install files for this is beyond my reach.

Like I've mentioned in my pm's, this part of the code wasn't in my custom theme at all, and it still worked,
so I'm not even sure this is the reason why you get an error for chat...

Like this bit of info helps your question ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MoreBloodWine on March 06, 2013, 05:16:06 PM
Everything helps in it's own weird way but I dount my edit is why it's even givin me the "error" I posted.

If someone could maybe use the package in the post I quoted on a test install that might shed some light on it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on March 06, 2013, 06:31:14 PM
It's late here, but I have time tomorrow to do this. I don't have a test forum at the moment... I'll set it up then.

Maybe a weird idea from a newbie, but what if you put in the edit for the default theme as well as the custom theme?
I would have tried this. I've been looking at my former custom theme and it's not in there either..
Maybe there's a line somewhere that looks for this edit in the default theme?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on March 06, 2013, 06:32:57 PM
Quote from: CandC on March 06, 2013, 12:20:41 PM
I've been monitoring this thread and still deciding if I want to try and update.

A new update of this MOD to 3.2.7 is offered here (http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558) by dahweeds.

But, before I try to delete what I'm using (3.2.1 RC3 Curve Friendly) and install this update, can anyone give a brief description of what changes/updates this would actually give me?

I'm seriously afraid of breaking what's working on our site now just to attempt an update of enhancements I may not need.

I'm SMF 2.0.4

And if I have some time left, I'll try this one too, this is the first I hear of it, and I'm kind of curious myself ;)
I'll let you know what I find...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on March 07, 2013, 05:12:21 AM
Quote from: MoreBloodWine on March 06, 2013, 05:16:06 PM
Everything helps in it's own weird way but I dount my edit is why it's even givin me the "error" I posted.

If someone could maybe use the package in the post I quoted on a test install that might shed some light on it.

Installed on a live testforum, in both regular and your edited install_2. Both work fine.
Yours only gives an extra "Test failed" in default, but when I ignore and install, it works just fine.
Also working perfect in Black Storm. Only thing missing is the extra line besides my avatar telling how many users are in chat.
But as it is also seen in the menubar about an inch further, I'm not troubled ;)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.bestandjedelen.nl%2Ffiles%2F3%2Fchat.PNG&hash=ac7b5906e9dcd605cb2f590bac57c7a9127d08fa)

So you were right that this edit isn't the problem
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on March 07, 2013, 05:26:52 AM
Quote from: MrNicotine on March 06, 2013, 06:32:57 PM
Quote from: CandC on March 06, 2013, 12:20:41 PM
I've been monitoring this thread and still deciding if I want to try and update.

A new update of this MOD to 3.2.7 is offered here (http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558) by dahweeds.

But, before I try to delete what I'm using (3.2.1 RC3 Curve Friendly) and install this update, can anyone give a brief description of what changes/updates this would actually give me?

I'm seriously afraid of breaking what's working on our site now just to attempt an update of enhancements I may not need.

I'm SMF 2.0.4

And if I have some time left, I'll try this one too, this is the first I hear of it, and I'm kind of curious myself ;)
I'll let you know what I find...

Works fine, installs just fine, but no real difference in functionality. the Ajaxchat 0.85 probably is improved internally, but nothing on the surface. That I can find in 10 minutes testing, that is
The "hide chat button from Quests" however, is pretty handy. I like it.

So, thanks, Daweeds ;) ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CandC on March 07, 2013, 07:54:16 AM
Quote from: MrNicotine on March 07, 2013, 05:26:52 AM
Works fine, installs just fine, but no real difference in functionality. the Ajaxchat 0.85 probably is improved internally, but nothing on the surface. That I can find in 10 minutes testing, that is
The "hide chat button from Quests" however, is pretty handy. I like it.
So, thanks, Daweeds ;) ;)

Thanks for the info MrNicotine  :)

However, I keep reading people are deleting things to install the DaWeeds update, even some things off the database. I've never messed with my database files (saying I'm a novice is an understatement). So if I have to do anything but delete and install from the package manager I may not even risk it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: perlape on March 07, 2013, 01:23:11 PM
Hello, I installed the 3.2.7 version and when I enter the chat I get this error:

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

please help me, this chat is the best, regards
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on March 07, 2013, 01:55:28 PM
I would look at the Faq first. It could be something simple like settings the right chmod on your files...

Click here for FAQ Ajaxchat (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on March 07, 2013, 02:26:30 PM
Quote from: CandC on March 07, 2013, 07:54:16 AM
Quote from: MrNicotine on March 07, 2013, 05:26:52 AM
Works fine, installs just fine, but no real difference in functionality. the Ajaxchat 0.85 probably is improved internally, but nothing on the surface. That I can find in 10 minutes testing, that is
The "hide chat button from Quests" however, is pretty handy. I like it.
So, thanks, Daweeds ;) ;)

Thanks for the info MrNicotine  :)

However, I keep reading people are deleting things to install the DaWeeds update, even some things off the database. I've never messed with my database files (saying I'm a novice is an understatement). So if I have to do anything but delete and install from the package manager I may not even risk it.


In case another one of your mods messes up a clean install, you will have to edit some files. I did my test on a clean forum (2.04), with only a Custom theme installed.
So I cannot guarantee this will be the same in your case. Even uninstalling your current version might need some edits.
Going into the database should'nt be necessary, the case you're referring to is a totally different matter...

And one more thing, I now see another difference in Dahweeds version. The shoutbox is a little bigger... ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: perlape on March 07, 2013, 03:00:20 PM
this chat is awesome!!!! many thanks  :-*
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on March 07, 2013, 03:38:17 PM
Are you using Google Chrome?

If yes, try with another browser. If no, could you give the full error?

Edit: Haha, never mind, it was probably this ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: johnpaul2k2 on March 07, 2013, 03:43:55 PM
Quote from: johnpaul2k2 on March 05, 2013, 04:21:27 AM
please ,

includes facebook plugin or googleplus chat

my suggestions though

or does it have it already?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MoreBloodWine on March 08, 2013, 01:45:33 PM
Ok, so now that I have everything working fine I have a few questions since this doesn't seem to be in any mod setting area.

1) It seems each main board and weird enough some but not all children have their own "channels" how can I deny some boards from being listed here ?
1a) This is a curiosity but why would some but not all children boards show as channels ?

2) How does the language thing work ? Like if someone chooses spanis, starts talkin and I am on english, is it translated to me in english and vice versa to them ? If not then how do I remove the language tab and do a force all on english ?

3) What's the timeout period on "users in chat" ? Seems the only way to remove my count is to logout since jut closing the chat window still shows me as in chat.

4) How can I change the date / time settings for what's displayed in the chat window ? Note how what's shown can be confusing if not a lot is going on. Would like to maybe see yesterday / today stuff and before yesterday would maybe show ?/?/?? ?:?pm/am

Plus I'd like to use a 12hr format.

Yesterday
(21:14:06) ChatBot: MoreBloodWine logs out of the Chat.
(21:59:04) ChatBot: MoreBloodWine logs into the Chat.
(22:00:24) MoreBloodWine: Weeee
(22:00:32) ChatBot: MoreBloodWine logs out of the Chat.
(13:38:24) ChatBot: MoreBloodWine logs into the Chat.

Today
(13:46:14) MoreBloodWine: dd

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on March 09, 2013, 06:29:01 PM
1. This is explained in FAQ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766), so  no need for me to explain. ;)
Look for "Edit/Remove the channels that are currently boards." Note that the boards are numbered in the url. (unless you're using something like "Pretty URL's"
1a. the channels are board-permission based. If you have boards that are not accessable by your normal members, they can't acces that channel either.
They are not even given the option to ;) This could be an explanation.

2 No, it doesn't tranlste anything. Everything typed is "as it is". Removing options in this dropdown should also be in /chat/lib/config.php. Simply look for spanish, I suppose.

3. From the top of my head, this is set at 15 minutes. Auto logout at closing the screen isn't possible as yet, since logging out would be forum  based too.
I have tried a solution for this, but it also logged me out of the forum. (don't ask me how I did this, can't remember the file/DB change;) )....
15 Minutes isn't all that bad, not everybody gives a message every 1 minute ;)

4 This one, I'm not sure. I can only assume the time is based on the time that is set on your forum/server. I don't think you can change the PHP to do this, without setting an entirely new command line.... Can't help you there...


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MoreBloodWine on March 09, 2013, 08:21:43 PM
Quote from: MrNicotine on March 09, 2013, 06:29:01 PM
1. This is explained in FAQ (http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766), so  no need for me to explain. ;)
Look for "Edit/Remove the channels that are currently boards." Note that the boards are numbered in the url. (unless you're using something like "Pretty URL's"
1a. the channels are board-permission based. If you have boards that are not accessable by your normal members, they can't acces that channel either.
They are not even given the option to ;) This could be an explanation.

2 No, it doesn't tranlste anything. Everything typed is "as it is". Removing options in this dropdown should also be in /chat/lib/config.php. Simply look for spanish, I suppose.

3. From the top of my head, this is set at 15 minutes. Auto logout at closing the screen isn't possible as yet, since logging out would be forum  based too.
I have tried a solution for this, but it also logged me out of the forum. (don't ask me how I did this, can't remember the file/DB change;) )....
15 Minutes isn't all that bad, not everybody gives a message every 1 minute ;)

4 This one, I'm not sure. I can only assume the time is based on the time that is set on your forum/server. I don't think you can change the PHP to do this, without setting an entirely new command line.... Can't help you there...
I'll look over the FAQ later but I did glance at 1. That's something that I should feel should be an admin side thing from SMF. Same for renaming your Public to like Lounge or whatever like it also says in the FAQ. That's just me though, as for 4, I just meant changing the display of it (whats shown in the chat window.) So, whatever called the display for the time is what needs to be edited. I know the PHP time I want ot use jus not the line to edit for the display.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MarkoKg on March 10, 2013, 04:43:40 PM
Hello there.

Anyone can point me to the place where I can change default width of chat window when i click on "chat" button from menu please? I need to increase width of that window.

Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on April 01, 2013, 11:28:08 AM
The chat box shows blank only on the main forum page. how can i fix this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 01, 2013, 11:35:26 AM
Quote from: PLAYBOY on April 01, 2013, 11:28:08 AM
The chat box shows blank only on the main forum page. how can i fix this?

This is answered in the FAQs on the mods first post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on April 01, 2013, 11:46:08 AM
Quote from: Old Fossil on April 01, 2013, 11:35:26 AM
Quote from: PLAYBOY on April 01, 2013, 11:28:08 AM
The chat box shows blank only on the main forum page. how can i fix this?

This is answered in the FAQs on the mods first post.

If this is what you are talking about

Quotecan set to only in index page or all pages.
    compatible with your theme.
    Bold Italic Underline bb codes and smiley.
    collapsible.
    can integrate shout box and chat room to work together and show same conversation.

I still dont see how can i fix my problem.
I already see the shoutbox but Its blank and just shows white. This happens only in the main page of the forum.

Can somebody show me what is the solution?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 01, 2013, 11:48:52 AM
QuoteIf you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please READ THIS

This is what you are looking for.

Do you have the Pretty urls mod on your forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on April 01, 2013, 11:53:38 AM
QuoteDo you have the Pretty urls mod on your forum?

No. I dont.

QuoteIf you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please READ THIS

I think i am looking at the wrong page. Cant find this part on the first page of this topic, nor the mods download page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 01, 2013, 11:55:40 AM
QuoteThis is answered in the FAQs on the mods first post.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on April 03, 2013, 02:00:21 AM
Quote from: Old Fossil on April 01, 2013, 11:55:40 AM
QuoteThis is answered in the FAQs on the mods first post.

All those solutions and answers are for either shoutbox/chat being blank in all pages or if it`s blank only on portal etc. I couldnt find my problem there.
So again, my chat works very well everywhere except the main page of the forum. Its blank only on that page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: chinaren on April 10, 2013, 04:13:52 AM
Holy cow!! I've been trying to get a chatroom going on my forum for ages, and having all sorts of hassle.  I try this and boom!  It's there!  Many,many thanks!!
I only had one error, which was fixed by this...
Quote from: dahweeds on December 16, 2012, 07:03:37 PM

Anyway, try to set your index.php permission to 644. That is what worked on my test site.


Thanks again!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kerbob on April 15, 2013, 12:42:38 AM
I'm using a host which asks me for an FTP username/password when I try to install this.  I have an FTP username/password, but it doesn't work.  It says logon failure.

I have other mods that do this, and the manual install usually works just fine.

In any case, I modified the files manually with a proper text editor and uploaded Tables_2.php to the root of the web.  When I execute it, I get:

Database Error
Table 'db289696809.smf_ajaxchat_online' doesn't exist
File: /hermes/bosweb25a/b406/ipg.brekus/Sources/Load.php
Line: 2808
Back

Any idea how to fix this?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sneakers on April 15, 2013, 09:16:03 AM
Hello,
I use AJAXChatToSmf.3.2.7 in SMF 2.0.4. Chat still work correct, but today there was a problem..

<b>Warning</b>:  include(mobiquo/smartbanner.php) [<a href="function.include">function.include</a>]: failed to open stream: No such file or directory in <b>/home/user/domains/domain.com/public_html/forum/Sources/Load.php</b> on line <b>1590</b><br />
^
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 16, 2013, 04:43:07 PM
Quote from: sneakers on April 15, 2013, 09:16:03 AM
Hello,
I use AJAXChatToSmf.3.2.7 in SMF 2.0.4. Chat still work correct, but today there was a problem..

<b>Warning</b>:  include(mobiquo/smartbanner.php) [<a href="function.include">function.include</a>]: failed to open stream: No such file or directory in <b>/home/user/domains/domain.com/public_html/forum/Sources/Load.php</b> on line <b>1590</b><br />
^


Do you have the tapatalk mod installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 19, 2013, 12:04:41 AM
Which version are you using?

Only person able to update the mod properly is the mods author and he lost interest a few years back.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: butch2k on April 19, 2013, 05:12:42 AM
Quote from: Liam_michael on April 19, 2013, 12:02:49 AM
I think this mod needs updating. I am getting millions of these nasty apache errors:

[Fri Apr 19 00:03:57 2013] [error] [client ##.**.**.**] PHP Strict Standards:  Non-static method AJAXChatEncoding::getRegExp_NO_WS_CTL() should not be called statically, assuming $this from incompatible context in /***/***/public_html/chat/lib/class/AJAXChatEncoding.php on line 134, referer: http://biology-forums.com/chat/index.php
[Fri Apr 19 00:03:57 2013] [error] [client ##.**.**.**] PHP Strict Standards:  Non-static method AJAXChatEncoding::decodeEntities() should not be called statically, assuming $this from incompatible context in /***/***/public_html/chat/lib/class/AJAXChat.php on line 2859, referer: http://biology-forums.com/chat/index.php
[Fri Apr 19 00:03:57 2013] [error] [client ##.**.**.**] PHP Strict Standards:  Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /***/***/public_html/chat/lib/class/AJAXChat.php on line 2867, referer: http://biology-forums.com/chat/index.php
[Fri Apr 19 00:03:57 2013] [error] [client ##.**.**.**] PHP Strict Standards:  Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /***/***/public_html/chat/lib/class/AJAXChatEncoding.php on line 81, referer: http://biology-forums.com/chat/index.php

Ajax Chat has been updated to fix those issues. Check github for the latest version.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Biology Forums on April 19, 2013, 10:17:46 AM
Quote from: butch2k on April 19, 2013, 05:12:42 AM
Quote from: Liam_michael on April 19, 2013, 12:02:49 AM
I think this mod needs updating. I am getting millions of these nasty apache errors:

[Fri Apr 19 00:03:57 2013] [error] [client ##.**.**.**] PHP Strict Standards:  Non-static method AJAXChatEncoding::getRegExp_NO_WS_CTL() should not be called statically, assuming $this from incompatible context in /***/***/public_html/chat/lib/class/AJAXChatEncoding.php on line 134, referer: http://biology-forums.com/chat/index.php
[Fri Apr 19 00:03:57 2013] [error] [client ##.**.**.**] PHP Strict Standards:  Non-static method AJAXChatEncoding::decodeEntities() should not be called statically, assuming $this from incompatible context in /***/***/public_html/chat/lib/class/AJAXChat.php on line 2859, referer: http://biology-forums.com/chat/index.php
[Fri Apr 19 00:03:57 2013] [error] [client ##.**.**.**] PHP Strict Standards:  Non-static method AJAXChatEncoding::encodeSpecialChars() should not be called statically, assuming $this from incompatible context in /***/***/public_html/chat/lib/class/AJAXChat.php on line 2867, referer: http://biology-forums.com/chat/index.php
[Fri Apr 19 00:03:57 2013] [error] [client ##.**.**.**] PHP Strict Standards:  Non-static method AJAXChatEncoding::getSpecialChars() should not be called statically, assuming $this from incompatible context in /***/***/public_html/chat/lib/class/AJAXChatEncoding.php on line 81, referer: http://biology-forums.com/chat/index.php

Ajax Chat has been updated to fix those issues. Check github for the latest version.

Thanks, so it's a simple replace of the new files in /chat ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on April 19, 2013, 10:38:45 AM
Can somebody give a link for that github so we can download the latest version too?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: butch2k on April 19, 2013, 03:59:48 PM
https://github.com/Frug/AJAX-Chat/tree/master/chat
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Biology Forums on April 20, 2013, 01:05:35 AM
Quote from: butch2k on April 19, 2013, 03:59:48 PM
https://github.com/Frug/AJAX-Chat/tree/master/chat

Thanks ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on April 20, 2013, 05:56:20 AM
Quote from: butch2k on April 19, 2013, 03:59:48 PM
https://github.com/Frug/AJAX-Chat/tree/master/chat

How are we gonna download the full package to upload and install? I couldnt figure out which package and how to download all at once? Do we have to download each file and pack them in the computer?

I know you can download from this page
http://frug.github.io/AJAX-Chat/#downloads

But when you try to upload that package as it is to your forum, it gives an error and cant find the installation file.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Biology Forums on April 20, 2013, 04:28:44 PM
Quote from: PLAYBOY on April 20, 2013, 05:56:20 AM
Quote from: butch2k on April 19, 2013, 03:59:48 PM
https://github.com/Frug/AJAX-Chat/tree/master/chat

How are we gonna download the full package to upload and install? I couldnt figure out which package and how to download all at once? Do we have to download each file and pack them in the computer?

I know you can download from this page
http://frug.github.io/AJAX-Chat/#downloads

But when you try to upload that package as it is to your forum, it gives an error and cant find the installation file.

What is your forum, PLAYBOY? If you don't mind sharing.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on April 20, 2013, 04:37:43 PM
Quote from: Liam_michael on April 20, 2013, 04:28:44 PM
Quote from: PLAYBOY on April 20, 2013, 05:56:20 AM
Quote from: butch2k on April 19, 2013, 03:59:48 PM
https://github.com/Frug/AJAX-Chat/tree/master/chat

How are we gonna download the full package to upload and install? I couldnt figure out which package and how to download all at once? Do we have to download each file and pack them in the computer?

I know you can download from this page
http://frug.github.io/AJAX-Chat/#downloads

But when you try to upload that package as it is to your forum, it gives an error and cant find the installation file.

What is your forum, PLAYBOY? If you don't mind sharing.

I cant share the forum unfortunately. Please understand.
But If you tell me why do you need to know, I may be able to help.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Biology Forums on April 20, 2013, 04:57:36 PM
No particular reason, just asking. :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RustyBarnacle on May 09, 2013, 05:31:43 PM
Quote from: PLAYBOY on April 20, 2013, 05:56:20 AM
Quote from: butch2k on April 19, 2013, 03:59:48 PM
https://github.com/Frug/AJAX-Chat/tree/master/chat

How are we gonna download the full package to upload and install? I couldnt figure out which package and how to download all at once? Do we have to download each file and pack them in the computer?

I know you can download from this page
http://frug.github.io/AJAX-Chat/#downloads

But when you try to upload that package as it is to your forum, it gives an error and cant find the installation file.

So if I'm guessing right on this.  The easiest thing is to install this mod and then upload those files in the chat directory of the file downloaded into the chat directory on the forum?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jarbeat on May 10, 2013, 07:38:33 PM
Quote from: PLAYBOY on April 20, 2013, 05:56:20 AM
Quote from: butch2k on April 19, 2013, 03:59:48 PM
https://github.com/Frug/AJAX-Chat/tree/master/chat

How are we gonna download the full package to upload and install? I couldnt figure out which package and how to download all at once? Do we have to download each file and pack them in the computer?

I know you can download from this page
http://frug.github.io/AJAX-Chat/#downloads

But when you try to upload that package as it is to your forum, it gives an error and cant find the installation file.

I have the same problem here :). How can i install it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on May 11, 2013, 04:02:23 PM
I doubt I'm gonna get an answer for this, but I'll try.  What file in the chat folder calls for the member's information from the database?  I have tirelessly searched and cannot find and file for database calls.  I want toi be able to pull one other bit of info from the smf_members table to add, I know what to do and how to do it, I just can't find the file for where this should be done at.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on May 11, 2013, 04:07:32 PM
Um, it should be reusing Load.php's loadMemberData function...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on May 11, 2013, 04:10:26 PM
as in mem.membername , etc?  If so I'll look into it, I was basically searching through every file looking for the phrase "{db_prefix}members".  That at least gives me another direction to look into.  thanx
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on May 11, 2013, 04:39:10 PM
Yup, loadMemberData pretty much covers that or it should do for almost all cases.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jarbeat on May 13, 2013, 05:20:08 PM
Quote from: Jarbeat on May 10, 2013, 07:38:33 PM
Quote from: PLAYBOY on April 20, 2013, 05:56:20 AM
Quote from: butch2k on April 19, 2013, 03:59:48 PM
https://github.com/Frug/AJAX-Chat/tree/master/chat

How are we gonna download the full package to upload and install? I couldnt figure out which package and how to download all at once? Do we have to download each file and pack them in the computer?

I know you can download from this page
http://frug.github.io/AJAX-Chat/#downloads

But when you try to upload that package as it is to your forum, it gives an error and cant find the installation file.

I have the same problem here :). How can i install it?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arni on May 23, 2013, 04:24:43 PM
Hello,

i installed the chat from github, but i wasn't able to see the configuration in the admin panel of the forum.
Of course you're able to edit the config.php of the chat, but i wasn't able to adjust it the way that only one usergroup of the forum is able to see the chat and use it.
Is this possible?

And another question: Where can i download the version of dahweeds?

Greets, Arni
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: gay on May 28, 2013, 12:42:19 AM
Hello.

Work with 2.0.4?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on May 28, 2013, 03:09:54 AM
I get blank white space in all pages now.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arni on May 30, 2013, 11:03:55 AM
So nobody has an idea to my question from some days ago?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on May 30, 2013, 11:11:31 AM
Quote from: Arni on May 30, 2013, 11:03:55 AM
So nobody has an idea to my question from some days ago?

Patience is a virtue.

As far as I am concerned the version from github is an unofficial version.

When I used the mod a few years ago the permissions determined whom used the chat on the forum.



Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on May 31, 2013, 04:18:57 AM
Can somebody be kind enough to put all the files together and make a zip and attach it to this topic. So people can just download and install at least. My chat doesnt work at all anymore. I have been waiting for some update or a full file package but there is no improvement so far.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arni on May 31, 2013, 01:54:00 PM
Quote from: Old Fossil on May 30, 2013, 11:11:31 AMAs far as I am concerned the version from github is an unofficial version.
Problem is that there isn't a new official version.

Quote from: Old Fossil on May 30, 2013, 11:11:31 AMWhen I used the mod a few years ago the permissions determined whom used the chat on the forum.
Well, i found the configuration to deny the access for guests, but all other usergroups can see it.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on June 04, 2013, 05:26:05 AM
Quote from: PLAYBOY on May 28, 2013, 03:09:54 AM
I get blank white space in all pages now.

Can somebody help me about this please?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FragaCampos on June 09, 2013, 06:12:11 PM
Hello there.

I'm trying to add this mod to my SMF 2.0.4 my forum, but I'm getting this error and I have tapatalk installed.
Any insight on how to solve this?

Thanks.

Quote from: Old Fossil on April 16, 2013, 04:43:07 PM
Quote from: sneakers on April 15, 2013, 09:16:03 AM
Hello,
I use AJAXChatToSmf.3.2.7 in SMF 2.0.4. Chat still work correct, but today there was a problem..

<b>Warning</b>:  include(mobiquo/smartbanner.php) [<a href="function.include">function.include</a>]: failed to open stream: No such file or directory in <b>/home/user/domains/domain.com/public_html/forum/Sources/Load.php</b> on line <b>1590</b><br />
^


Do you have the tapatalk mod installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: realJedi on June 10, 2013, 11:29:35 AM
If you are still greatful for wishes and ideas: I would like to get the colors of the usernames in the chat appearing based on the user's primary group-membership (selected from the given color of the primary group in SMF that is set for online users in "Edit member groups -> Color in online list").

I'm just asking because the tweak "Custom Member Group & Colors (http://www.simplemachines.org/community/index.php?topic=257973.msg2621113#msg2621113)" doesn't use that functionality at all and it would mean a lot of work if there are used some more groups PLUS the eventual creation of new groups would always make it necessary to edit the templates/css. So this would *imho* be a really great functionality to come up with on an update.


Thaaaank you :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sneakers on July 10, 2013, 07:26:05 AM
Quote from: FragaCampos on June 09, 2013, 06:12:11 PM
Hello there.

I'm trying to add this mod to my SMF 2.0.4 my forum, but I'm getting this error and I have tapatalk installed.
Any insight on how to solve this?

Thanks.

Quote from: Old Fossil on April 16, 2013, 04:43:07 PM
Quote from: sneakers on April 15, 2013, 09:16:03 AM
Hello,
I use AJAXChatToSmf.3.2.7 in SMF 2.0.4. Chat still work correct, but today there was a problem..

<b>Warning</b>:  include(mobiquo/smartbanner.php) [<a href="function.include">function.include</a>]: failed to open stream: No such file or directory in <b>/home/user/domains/domain.com/public_html/forum/Sources/Load.php</b> on line <b>1590</b><br />
^


Do you have the tapatalk mod installed?

Downgrade Tapatalk (3.4.0).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FragaCampos on July 10, 2013, 09:27:55 AM
You should never downgrade something to install something else. Just saying...
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sneakers on July 13, 2013, 02:34:44 PM
How to give access moderators to view the chat logs?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PLAYBOY on July 15, 2013, 01:02:16 PM
Quote from: sneakers on July 10, 2013, 07:26:05 AM
Quote from: FragaCampos on June 09, 2013, 06:12:11 PM
Hello there.

I'm trying to add this mod to my SMF 2.0.4 my forum, but I'm getting this error and I have tapatalk installed.
Any insight on how to solve this?

Thanks.

Quote from: Old Fossil on April 16, 2013, 04:43:07 PM
Quote from: sneakers on April 15, 2013, 09:16:03 AM
Hello,
I use AJAXChatToSmf.3.2.7 in SMF 2.0.4. Chat still work correct, but today there was a problem..

<b>Warning</b>:  include(mobiquo/smartbanner.php) [<a href="function.include">function.include</a>]: failed to open stream: No such file or directory in <b>/home/user/domains/domain.com/public_html/forum/Sources/Load.php</b> on line <b>1590</b><br />
^


Do you have the tapatalk mod installed?

Downgrade Tapatalk (3.4.0).

Could you please give me the download link for this version? I couldnt find it anywhere. Hope this will fix my blank screen issue also.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sneakers on July 26, 2013, 07:29:47 PM
Link removed. Please direct to the page the link is on and not the download link itself

btw Is someone working properly ajax chat + latest version of Tapatalk?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: elf_fu on July 28, 2013, 09:29:01 AM
I hate to ask for support here--as I'm not using the mod, but the direct SMF integration from github...But I am getting pretty desperate after spending a week working on my forum and hitting a wall due to my own limitations in code.

I've had to wipe and re-install a new forum due to messing up modifications. I installed my forum with no problem. I installed Simpleportal, hey, not a hitch!

So right now I've got Ajax Chat Integrated 0.8.6 installed in a /chat/ folder in the root where my forum is installed. I ran the install file and all went well.

I visit my url where it's installed (gr.2phatgeeks.com/chat/index.php) and this time around I'm presented with a log in page. So I enter my admin name and password and hit Login aaaaaaaand--


I'm taken to my forum index??

I've tried google searching and I've spent more time looking through this thread than should be normal for any sane person (twitchtwitch) and all I want right now is my chat to work and if you can help me I can't give you money but I will definitely credit your help on my front page in simple portal and link back to your website because sweet nuggets, I want this to work.

Thank you for your time!

SMF version: 2.0.4
Ajax Integrated for SMF version: https://github.com/Frug/AJAX-Chat/tree/smf
Ajax Chat link: http://www.gr.2phatgeeks.com/chat/index.php
Mods currently installed:   
1.     KeyCAPTCHA for SMF    2.5     
2.   SimplePortal
3.   Ban List    2.0 
4.   Dice Roller BBcode    1.3 
5.   SubAccounts Mod    1.0.1
6.   Users Online Today    2.0.3
7.   PM to New Members    1.2 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: elliatt on August 05, 2013, 12:43:20 PM
This mod works fine on my 2 smf installations - no problems with that.

The problem I am having is I am unable to access the administrator page. The administrator log-in page does appear and when I go to log in I receive a blank page.

There are no errors showing up in the smf error log and the only error that shows in my browser log is a generic internal server error. I have checked all my permissions and they appear to be correct.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CandC on August 14, 2013, 05:02:19 PM
Quote from: CandC on March 06, 2013, 12:20:41 PM
I've been monitoring this thread and still deciding if I want to try and update.

A new update of this MOD to 3.2.7 is offered here (http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558) by dahweeds.


Finally decided to give this a try next week.

Since I posted above in March, I removed the old version of Ajax Chat from my forum entirely.  We had issues and I had no time to troubleshoot (think it could have been host) so to stop the errors I simply removed it until I had time to address it again.  Now I'm ready to get Chat feature back on.


But, in reviewing the topic since I made the above post - there have been some changes:

1. The link above which took you to the zip file modification by dahweeds has been removed.
    Does this mean that it didn't work or not relevant now?


2.  There seems to be a new version/update on github:
Quote from: butch2k on April 19, 2013, 03:59:48 PM
https://github.com/Frug/AJAX-Chat/tree/master/chat (https://github.com/Frug/AJAX-Chat/tree/master/chat)



What is my best approach?   
a. Install the original mod here again and use the github version to update it
(or)
b. Ignore the mod entirely and just do a fresh install with the github version


;D And my novice in me will show with this question:
Is it possible to use the SMF package installer feature in the Admin panel to use the tar.gz file from github to put the newest version on my forum or will I have to do the manual install instructions found there?

Many thanks in advance.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CandC on August 19, 2013, 06:58:56 PM
Quote from: CandC on August 14, 2013, 05:02:19 PM

What is my best approach?   
a. Install the original mod here again and use the github version to update it
(or)
b. Ignore the mod entirely and just do a fresh install with the github version


;D And my novice in me will show with this question:
Is it possible to use the SMF package installer feature in the Admin panel to use the tar.gz file from github to put the newest version on my forum or will I have to do the manual install instructions found there?

Answers below:



Since no reply in several days - tried my hand at it today.

1. You can't use the package installer to upload the zip file from github and install into your forum via the Package Manager.

2. I can't find a way to use the install file for this mod and then upgrade using the github version.  I installed the Curve Friendly version again and then tried to update the files located on github but that broke it and I reverted back to the mod version.

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

Edit:  So this morning I decided to delete this mod and just do the manual install of the github version.   I picked this option because I really don't want or need the "shoutbox" feature and I'd rather have the most recent updated versions of the files than the ones provided in this mod.

Only drawbacks I see are:

- You have to put a link to the chat somewhere in your forum because the word "Chat" doesn't appear in the menu bar.
- I'm not able to edit settings inside my SMF admin panel for options, like permissions of certain membergroups who can access chat (default is guests no, members yes).
- The option to make chat open in popup window not in a mod setting you can pick


Perhaps I'll look at what edits are in the theme pages here and see if I can edit them manually.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FragaCampos on August 21, 2013, 08:45:48 AM
CandC, thank you a lot for you feedback on your experiences.
I would reply to you if I knew anything about coding, everything I do is with help or by try and error like you.

Tell me, do you have Tapatalk installed?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CandC on August 21, 2013, 12:53:50 PM
Quote from: FragaCampos on August 21, 2013, 08:45:48 AM
CandC, thank you a lot for you feedback on your experiences.
I would reply to you if I knew anything about coding, everything I do is with help or by try and error like you.

Tell me, do you have Tapatalk installed?
Glad to provide some feedback - this thread isn't posted on much lately.

Tapatalk - Nope, I don't.

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

I've been able to get the chat to function with install instructions on github.   I've even been able to edit some features in the config.php file with no big issues.  :) It would be nice to work settings in admin panel, but no biggie having it not incorporated with the package manager.

The only thing I'm finding thus far (and have a tech inquiry on their forum) is logging in/out for members. If they are logged into the forum they can't log out of chat unless they log out of the forum first, otherwise it logs them right back in.  We're not the only ones experiencing this, it seems to be a "bug" they're trying to figure out.

Somewhat Related:
About 3 weeks ago my host upgraded their Linux server and we've been getting all kinds of error messages, connection reset and the chat behaving wonky because of it.  Yeah, (hangs head) I'm paying for shared hosting on GoDaddy.   Our site is pretty small so I thought it our best option costwise. 

That's the reason I took this MOD off completely a week or so ago and tried a new fresh install from github.   Things worked great until last night, then the errors returned.  :(

So far their tech support has been abysmal and after 3 weeks I finally got that much out of them (their server issue)  after they tried to blame my PC and possible virus.  I couldn't see how that would be the case when our members were all experiencing the same thing.  So it's back to deciding on a host now that will handle Ajax without the security_mod errors and locking our site for minutes at a time.  They're offering to move me to a Windows server etc...but  not sure if I want to be tied to them anymore.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: FragaCampos on August 21, 2013, 02:35:30 PM
I would definitely search for another host... there are plenty of options out there, avoid the bigger ones, especially if they're shared.

Mod related: I asked about tapatalk, because it's the first problem I encounter when installing this mod, which impedes it from working.
I'll try to install it via ftp from Github and I'll share here what happened.

Thanks again.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: johannes47 on September 03, 2013, 04:52:42 PM
Hi people,

How can I make the text field bigger, and where can I find that. Could someone it can help me.

Sincerely,
Johannes
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sneakers on September 24, 2013, 04:17:44 PM
Hello,
Does anyone know how to embed Google Adsense in the chat? I found only this: http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Google_AdSense, but it did not help me..
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kerbob on September 28, 2013, 01:50:18 AM
Is there a version of this AjaxChat that works on 2.0.5 with a simple install?  If not, could someone point me to the post where the instructions are.  This is a FANTASTIC mod and I'd love to bring it back to my site.
http://www.westknoxrc.com
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kerbob on September 29, 2013, 11:13:33 AM
Can anyone re-share Dahweeds mod of this package?  Someone deleted it.  Do we know why?

http://www.simplemachines.org/community/index.php?topic=257973.msg3446558#msg3446558
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on September 29, 2013, 11:28:53 AM
It was removed because modified versions of packages are not supposed to be attached to the thread without permission from the mod author (e.g. explicit permission, or suitable licence)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kerbob on September 29, 2013, 01:48:27 PM
Understood.  Could someone PM me the link to where I can download it?

I can definitely understand copyright infringement, but unless credit has been removed from the code to the original author, I'm not sure what the harm is.  Is there a way for Dahweed to publish this correctly if we can't get the original author's approval?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on September 29, 2013, 01:50:43 PM
Um... no because that would be facilitating copyright infringement. If it was legal we would have allowed it here.

There is no way for it to be published without author's approval, or author giving a suitable licence... that's the point.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: kerbob on September 30, 2013, 02:38:39 AM
I got the AjaxChat Integration_3.2.1 RC3_Curve_Friendly.zip version that is posted on the mod site working.. had to do a manual install.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: krittin98 on September 30, 2013, 11:13:54 AM
tried to install version 3.2.1
it says
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


i have installed the following packages
1.   SA Chat   RC3 Rev63
2.   Social Login   2.5   
3.   SEO Sitemap   2.2.1   
4.   SMF Gallery Lite   3.6a   
5.   Downloads System   2.0a   
6.   Show your social networks   4.0   
7.   SMFPacks: SEO Lite Mod   1.0
8.   Optimus Brave   1.8.6.2   
9.   Sitemap   2.2.0   
10.   Pretty URLs   1.0   
11.   PM to New Members   1.2   
12.   Ad Managment   3.1a   
13.   Facebook Slide Like Box   2.1.3   
14.   SimplePortal   2.3.5   
15.   Registered Links   3.0   
16.   Animation Blue Smiley   2.1   
17.   Blue Smiley   1.0   
18.   Add
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brunob on October 16, 2013, 07:55:39 AM
Hello,

When I add a custom group to the chat than that works well.
If I want to add a second custom group than that will not work  :(

I use this guide ---> http://www.simplemachines.org/community/index.php?topic=257973.6160

So the question is how can I add three custom groups? Should I keep the above instructions or am I supposed to something else?

regards,

Brunob  ;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: brunob on October 20, 2013, 11:21:22 AM
Hello,

anyone with the same problem and solution maybe?  :(

Greatings BrunoB :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: electricwildflower on November 23, 2013, 02:53:05 PM
Out of curiosity i want to install this to my test forum and play around with it. Now i went down the emulation path due to not being a version for 2.0.6. Anyway i go to install and are thrown with the following errors.


Execute Modification    ./Sources/BoardIndex.php    Test failed
Replace    ./Sources/BoardIndex.php    Test failed
Execute Modification    ./Sources/Load.php    Test failed
Sources/Load.php    Test failed
Execute Modification    ./Sources/Subs.php    Test failed
Add After    ./Sources/Subs.php    Test failed
Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
Add Before    ./Themes/default/BoardIndex.template.php    Test failed
Execute Modification    ./Themes/default/index.template.php    Test failed
Add Before    ./Themes/default/index.template.php    Test failed

purple1 theme
--------------------
Execute Modification    ./Themes/purple1/BoardIndex.template.php    Test failed
Add Before    ./Themes/purple1/BoardIndex.template.php    Test failed
Execute Modification    ./Themes/purple1/index.template.php    Test failed
Add Before    ./Themes/purple1/index.template.php    Test failed

what should i do now can i manually add the missing code as shown when you click the icon if it's possible or what route should i take ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: npetrov on November 24, 2013, 04:57:23 AM
Quote from: electricwildflower on November 23, 2013, 02:53:05 PM
Out of curiosity i want to install this to my test forum and play around with it. Now i went down the emulation path due to not being a version for 2.0.6. Anyway i go to install and are thrown with the following errors.


Execute Modification    ./Sources/BoardIndex.php    Test failed
Replace    ./Sources/BoardIndex.php    Test failed
Execute Modification    ./Sources/Load.php    Test failed
Sources/Load.php    Test failed
Execute Modification    ./Sources/Subs.php    Test failed
Add After    ./Sources/Subs.php    Test failed
Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
Add Before    ./Themes/default/BoardIndex.template.php    Test failed
Execute Modification    ./Themes/default/index.template.php    Test failed
Add Before    ./Themes/default/index.template.php    Test failed

purple1 theme
--------------------
Execute Modification    ./Themes/purple1/BoardIndex.template.php    Test failed
Add Before    ./Themes/purple1/BoardIndex.template.php    Test failed
Execute Modification    ./Themes/purple1/index.template.php    Test failed
Add Before    ./Themes/purple1/index.template.php    Test failed

what should i do now can i manually add the missing code as shown when you click the icon if it's possible or what route should i take ?

Hello,
You should add manually the code in files that are marked as "Test failed" and then you should fix permissions in shoutBox/ and chat/ directories. After that the plugin work just fine .

Edit:
Remember, after each update of the settings of this mod you must fix permissions again, because it makes files in chat/ and shoutBox/ writeable by group... (It is possible that this is not mandatory, it depends on your host and webserver/php configuration)
If this is Linux/Unix platform and you have ssh access just issue the following commands:
find chat/ -type f -exec chmod 644 {} ;\
find shoutBox/ -type f -exec chmod 644 {} ;\


Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: electricwildflower on November 24, 2013, 10:21:13 AM
Thanks for the response i will get round to this when i can and give it a whirl and let you know how i get on thanks :)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sneakers on December 14, 2013, 01:20:45 PM
Hello,
Ajax Chat 0.8.2 works ok. Someone installed a new version of Ajax Chat 0.8.6 on SMF 2.0.6. In the chat window, click on "logout" does the action logout-login (chat window doesn't close):
Quote(19:08:31) ChatBot: user logs out of the Chat.
(19:08:32) ChatBot: user logs into the Chat.


After update to 0.8.6 (overwrite old files) doesn't display online chat users numbering on chat button and online users below total logged in time section :(
Title: Unable to get AjaxChat Integration (latest version 3.2.1) to work in SMF 2.0.6
Post by: Big Gee on December 28, 2013, 09:00:48 PM
Having quickly scanned through this thread I can't find a solution to the following problem.

I can install AjaxChat 0.8.6 fine on my server & it works a treat in my SMF 2.0.6 version. However when I try to install AjaxChat Integration 3.2.1 from the Package Manager I get the following error message:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Just in case the downloaded files were corrupt I've re downloaded & attempted to install this mod a few times but get the same error message.

Is AjaxChat Integration 3.2.1 compatible with SMF version 2.0.6?

I am using a "Bright Forest" theme - could this be what's causing the problem? If the theme is the problem do I need to edit any php files in the theme to get the AjaxChat Integration 3.2.1 to work with it? If so could you tell me which files need editing and what is the coding that needs to be inserted/ modified please.

At the moment the Chat feature is useless because there is no indicator on the main site pages to show the activity within the Chat Room. I need to have the AjaxChat software fully integrated.

Many thanks in advance,

G.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: SuperZambezi on January 13, 2014, 01:50:02 AM
I'm having an issue where the shoutbox is blank on my new custom theme while it still works fine on my old custom theme. Here's the strange thing. I left my main page open with the blank shoutbox in one tab while I switched back to the old custom theme in another tab. After the shoutbox loaded on the old theme, the shoutbox on the new theme began to work.

Any ideas on what might be causing this? And I checked the FAQs regarding blank pages. :P Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Arantor on January 28, 2014, 12:57:57 PM
I moved this to the Chat/Shoutboxes category on the mod site.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: richconner on January 30, 2014, 12:49:33 PM
I am receiving a "The package you are trying to download or install is either corrupt or not compatible with this version of SMF." issue when installing AJAXChat.  Any advice on where to start?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on January 30, 2014, 01:17:29 PM
Assuming you're trying to install 3.2.1, you need to emulate an older version of smf. Like 2.0rc3
But be prepared to make necessary edits to your files via parser.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: richconner on January 30, 2014, 01:55:33 PM
Quote from: MrNicotine on January 30, 2014, 01:17:29 PM
Assuming you're trying to install 3.2.1, you need to emulate an older version of smf. Like 2.0rc3
But be prepared to make necessary edits to your files via parser.

How does one emulate an older version of smf
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on January 30, 2014, 01:57:54 PM
Read the mod emulate link in my signature.

;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GamePersia on January 31, 2014, 11:59:46 PM
Not working on SMF 2.0.7  :'(
Any Advice ?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on February 01, 2014, 02:25:08 AM
More specific on what's not working would be nice  :'(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Jeffrey King on February 01, 2014, 09:53:02 AM
Quote from: GamePersia on January 31, 2014, 11:59:46 PM
Not working on SMF 2.0.7  :'(
Any Advice ?


GamePersia, some questions.
What is it doing? What errors are you getting? Did you backup? (In order to install a mod you must backup)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: GamePersia on February 02, 2014, 09:55:43 PM
Quote from: Jeffrey King on February 01, 2014, 09:53:02 AM
Quote from: GamePersia on January 31, 2014, 11:59:46 PM
Not working on SMF 2.0.7  :'(
Any Advice ?


GamePersia, some questions.
What is it doing? What errors are you getting? Did you backup? (In order to install a mod you must backup)
Installations actions for "AjaxChat Integration"
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Backup already done in backup zone !
Help needed
................ :(
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on February 02, 2014, 09:57:47 PM
Quote from: Old Fossil on January 30, 2014, 01:57:54 PM
Read the mod emulate link in my signature.

;)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MrNicotine on February 03, 2014, 06:35:33 AM
Quote from: SuperZambezi on January 13, 2014, 01:50:02 AM
I'm having an issue where the shoutbox is blank on my new custom theme while it still works fine on my old custom theme. Here's the strange thing. I left my main page open with the blank shoutbox in one tab while I switched back to the old custom theme in another tab. After the shoutbox loaded on the old theme, the shoutbox on the new theme began to work.

Any ideas on what might be causing this? And I checked the FAQs regarding blank pages. :P Thanks!

Based on this, your shoutbox refreshes when you put the cursor in the text line, while the rest of your site does not.
So this is no surprise. Did you manually edit the files in your new theme?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sneakers on February 03, 2014, 11:42:04 AM
Hello,
Do shoutbox has a log file? If so, what is the url?
Is it possible to specify the number of messages displayed in the shoutbox?


Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: CreativeITWorld.com on February 19, 2014, 05:07:24 AM
Quote from: hcfwesker on July 23, 2011, 07:50:33 PM

Error Concerning Google Chrome in the Ajax Chat.

Quote from: Farjo on July 23, 2011, 10:35:00 AM
In the previous pages I've noticed this error cropping up:

TypeError: Object #<HTMLObjectElement> has no method 'create'

I can only recreate it in Chrome, not Firefox or Opera. Does this give any clues to its cause / solution?

It is an error for chrome users only.  But I do have the fix.   The solution is an outdated FABridge.js file   , that needs to be updated.

I'll upload the updated one, attached to this post.

Goto  public_html/chat/js/
 
And upload the file there, to overwrite the old one.

Note to Chrome users: Remember to open chat and press CTRL + R to flush Chrome's cache. After you do that, close the chat window and try opening it again.



Since the last post on this subject was about fifty pages back ...

Latest series of updates to Opera from v15 on have the same problem as Google Chrome. Reason: Opera is now built on the same system as Chrome.

Result using supplied fix by hcfwesker: Chat once again works in the latest updates of Chrome and Opera (v19).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Schachazubi on March 07, 2014, 07:37:03 PM
Quote from: hcfwesker on January 16, 2012, 07:29:44 AM
Updated FABridge.js file attached in post.  It's the update recently released.  Fixes issue with Chrome users in chat, newer messages don't update at the bottom, forcing most to have to scroll down.

Upload to chat/js folder

Great, many many thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mistereu on March 12, 2014, 09:38:25 PM
i have issue with my board

Unable to load the 'shout_above' template.

i try to make rever installation now i do not know where to go from other than uninstall it all
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: mistereu on March 14, 2014, 08:34:53 PM
i manage with a little bit of reading, and manual parse, also change the advance installation, i finalley got ajax chat installed with ..smf.  how ever i post below a picture of my issue .  running smf 2.0.7

how do i change the AJAXChat Tittel ? in left and on the tab ?

maybe some one can tell me whats going on and why it's telling me that thing ? , it only happend's when i log on to the chat-
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on March 17, 2014, 11:32:16 AM
its an issue with ajax and google chrome.  search 'chrome' in this topics search bar up top and it should pull up a post by me with the file you need to remove that popup error.  i think someone linked to my post on the previous page.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PPZ-01 on March 30, 2014, 10:13:42 PM
   I moved forum to a new hosting provider, which has newer php version than the old server, and now I run into a problem.

   I have an error:

   
Quote8192: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

   It si supposed that I should modify file /chat/lib/class/AJAXChatTemplate.php , specifficaly line 55:

   // Replace template tags ([TAG/] and [TAG]content[/TAG]) and return parsed template content:
$this->_parsedContent = preg_replace($this->_regExpTemplateTags, '$this->replaceTemplateTags(\'$1\', \'$2\')', $this->_parsedContent);


    Did anyone do this already?
    How modification should look like?

    Thanks.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: br360 on March 31, 2014, 12:11:14 AM
5.3 to 5.4 I'm guessing? This happened to me a couple of times with some different mods when I went to 5.4. Try this, as it should work-

Find this in that code you posted:
preg_replace

change to-

preg_replace_callback

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: PPZ-01 on March 31, 2014, 05:09:11 AM
   It's 5.4 to php 5.5, and I get error in log because of this...

   I am not sure it is so simple just to replace preg_replace with preg_replace_callback as it have different syntax.
   That's why I asked here.
   I will try it ofcourse, and post results.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: furniture1234uk on March 31, 2014, 05:58:51 AM
 AjaxChat Integration
    1. Online Users section.
    2. Beside of chat button.
    3. Below of total time logged in.
    number 2 and 3 can disabled.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: yemliha24 on April 09, 2014, 06:18:27 AM
Managers can see shoutbox,


not by regular members.

everyone appears shoutbox ???


how do I

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RicochetPeter on April 17, 2014, 01:59:55 PM
Hi folks,

it seems the author has been away from simplecmachines.org for more than a year. I wrote him a PM which he doesn't necessarily read.

Is anyone willing/able to pick up this project and update it for current version(s) of SMF?

Cheers,
chefle
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: RicochetPeter on April 18, 2014, 02:24:14 PM
Quote from: RicochetPeter on April 17, 2014, 01:59:55 PM
Hi folks,

it seems the author has been away from simplecmachines.org for more than a year. I wrote him a PM which he doesn't necessarily read.

Is anyone willing/able to pick up this project and update it for current version(s) of SMF?

Cheers,
chefle


Never mind, folks, the creator of AjaxChat has an SMF bridge version, which is fairly simple to set up.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: medicMe on April 25, 2014, 01:29:53 AM
Yeah, I'm experimenting with the creator's bridge version right now. Easy to setup and use. :)

Has anyone here integrated AJAX-Chat into a load balanced SMF setup? Any pointers on how that works best?

AJAX-Chat is really resource hungry per user, I filled a room with ~20 active users and another 10-20 lurkers (users not logged in, but hitting the chat links) and the additional memory that Apache2 and MySQL needed brought an AWS t1.micro instance to it's knees.

I'm going to toss more hardware at the problem, just trying to figure out the best way to accomplish this.. beefier server, dedicated chat server slaved to the main web server, or load balanced across two cheaper servers.. .. mm.. choices.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Impsat-1 on April 25, 2014, 11:07:08 PM
Wow... Hey Guys, any version for SMF 2.0.7? please...

Thanks & Regards 8).-
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: TheListener on April 25, 2014, 11:08:40 PM
Quote from: Impsat-1 on April 25, 2014, 11:07:08 PM
Wow... Hey Guys, any version for SMF 2.0.7? please...

Thanks & Regards 8).-

Please read the previous posts in the topic.

Also drop the bold. It is not necessary.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Impsat-1 on April 25, 2014, 11:47:07 PM
Quote from: Old Fossil on April 25, 2014, 11:08:40 PM
Quote from: Impsat-1 on April 25, 2014, 11:07:08 PM
Wow... Hey Guys, any version for SMF 2.0.7? please...

Thanks & Regards 8).-

Please read the previous posts in the topic.

Also drop the bold. It is not necessary.

Mmm... No SOLUTIONS the Bold for me If Necessary, Thanks For nothing...

Have a Great Time
Thanks & Regards 8)
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MarkJ on August 14, 2014, 04:18:32 AM
I've worked out a way to display a 'User Is Typing' message.  Messy coding but it does work  :) .

http://toffs.club/index.php/topic,591.0.html (http://toffs.club/index.php/topic,591.0.html)

Users Typing Message (http://toffs.club/index.php/topic,591.0.html)

Updated the above post now with an embedded shoutbox so you can see the 'User is Typing' message in action.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Eathuis on August 28, 2014, 06:35:39 PM
I'm hoping this eventually will be compatible with 2.0.8!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: br360 on August 28, 2014, 06:51:43 PM
I have it on a 2.0.8. site and it works fine. You just have to emulate to SMF 2.0 RC3 when you try to upload the package.

Edit- Actually, version 3.2.2b (attached) should work with 2.0.8 without even having to emulate.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Nark0t1k on September 06, 2014, 06:35:48 PM
Quote from: br360 on August 28, 2014, 06:51:43 PM
I have it on a 2.0.8. site and it works fine. You just have to emulate to SMF 2.0 RC3 when you try to upload the package.

Edit- Actually, version 3.2.2b (attached) should work with 2.0.8 without even having to emulate.

Can you explain how did you setup it on 2.0.8 ???
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: br360 on September 06, 2014, 09:11:04 PM
Honestly, I didn't really have to do anything other than install the 3.2.2b version. I downloaded using 2.0.8, didn't have to emulate, and it installed without errors.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: MarkJ on September 12, 2014, 04:32:21 PM
I've added this to full chat now - user is typing etc - instructions can be found here ...

http://toffs.club/index.php/topic,760.0.html
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bob La Londe on October 26, 2014, 12:41:23 PM
3.2.2.b under 2.0.9 (bug fix ony of 2.0.8 as I understand it). 

Click on the chat button and get page not found error, (my error handler forwards to the home page of the site.) 

When shout box is enabled "(09:41:03) ChatBot: Error: Connection status: 500"

Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bob La Londe on October 26, 2014, 12:49:28 PM
Quote from: Bob La Londe on October 26, 2014, 12:41:23 PM
3.2.2.b under 2.0.9 (bug fix ony of 2.0.8 as I understand it). 

Click on the chat button and get page not found error, (my error handler forwards to the home page of the site.) 

When shout box is enabled "(09:41:03) ChatBot: Error: Connection status: 500"

Never mind.  I set index.php to 755 and all works great. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Bob La Londe on October 27, 2014, 10:19:37 PM
I tried adding Ajax Chat Integration to a brand new forum, and I can't get it to work.  Its a new 2.0.9 installation.  I installed 3.2.2.b just like I did on my other 2.0.9 forum.  I went in and set the index.php file in /chat to 755.  It opens the chat popup, but nothing happens.  Users do not load and display.  Text entered does not display, and the orange connection indicator stays orange. 
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rentner on January 05, 2015, 06:38:03 AM
Hello,

I have this Problem "If you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please read HERE"

I also following the instuction are linked but I cannot post anything in the chat. There is nothing shown,

Please can  you help me?

Many thank

PS: Installed 3.2.2b in a SMF 2.0.9
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: rentner on January 06, 2015, 05:09:08 AM
No answer necessery, I have uninstalled this mod.
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Acer1 on January 17, 2015, 04:53:47 AM
Hope you Understand my English.

In the Chat i have all Channels from the Forum. I will have only 1 Channel. What must i do ?

Greets
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: hcfwesker on February 10, 2015, 10:25:26 PM
Quote from: Acer1 on January 17, 2015, 04:53:47 AMIn the Chat i have all Channels from the Forum. I will have only 1 Channel. What must i do ?

Read the FAQ that was linked in the first post of this support topic ;)

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

Scroll down to the section labeled Edit/Remove the channels that are currently boards
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: sneakers on March 15, 2015, 03:05:56 PM
Hello,
On my forum is AjaxChat Integration 3.2.1. Chat does not work:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fgk6PoiB.png&hash=779dc6c74786aa26d5b944f7aea0ae2ce34b4214)

Does anyone know the solution?
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: HtorrentU on March 25, 2015, 01:34:40 PM
Quote from: rentner on January 05, 2015, 06:38:03 AM
Hello,

I have this Problem "If you install the Mod and it looks like it installs fine but the shoutbox and chat room are blank please read HERE"

I also following the instuction are linked but I cannot post anything in the chat. There is nothing shown,

Please can  you help me?

Many thank

PS: Installed 3.2.2b in a SMF 2.0.9

Hi!

I have the same problem.
Ajaxchat Integration 3.2.2.b
SMF 2.0.9

No error message, but the shoutbox is empty. No messages shown, nothing happens if i write...
The sql table is also empty.
I made a testforum with a fresh install of smf 2.0.9, but the same happens. Blank shoutbox and chat. Also if chat or shoutbox is disabled.
Tried with older versions (Ajax 3.2.1 and Smf 2.0.8), too...

Please help us to make it work.
Ajax FAQ examined already.
Any advice are welcome.

Thanks!
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: wintstar on April 19, 2015, 03:56:40 PM
You can Download the edit Version from me of this Mod here => http://www.smfportal.de/index.php/topic,10989.msg85814.html#msg85814 (http://www.smfportal.de/index.php/topic,10989.msg85814.html#msg85814). This works. Sorry the description is of german.
A new Version with Ajax Chat 0.8.8 comming soon the next days with new functions.
The Mod is is already for the next Version 2.1 Beta. Testboard => http://smf.scaricare.de/ (http://smf.scaricare.de/).
Title: Re: AjaxChat Integration (latest version 3.2.1)
Post by: Miker1029 on May 04, 2015, 05:58:06 PM
Hey All,

Sorry to Beat A Dead Horse Here, But I love this MOD, And As Others have said, I've been looking for a Decent chat for Awhile, But I'm Also Suffering From this Blank Page Issue..

I have Done the CHMOD, .HTACCESS, "Fixes" Found here, and none of them work, I Searched for the Integration 3.2.2b and am Assuming the Latest SMF Integration 0.8.7 Found on the Website is the Latest...

I currently am running the standalone version and it works fine, The Integrated is giving me the Blank Pages, Nothing Sent when Typing, Etc...

Here's My .HTACCESS Placed In ROOT, PUBLIC_HTML and PUBLIC_HTML/CHAT/  I commented to show the changes found in this thread.

#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

#Suggested For BLANK Pages
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

#</IfModule>

#Suggested Fix for EzPortal
DirectoryIndex portal.php index.php index.html index.htm

#Came With SMF 2.0.9 Install?!?!??!
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
#Custom Error Pages
ErrorDocument 400 /errorpage.php
ErrorDocument 401 /errorpage.php
ErrorDocument 403 /errorpage.php
ErrorDocument 404 /errorpage.php
ErrorDocument 500 /errorpage.php

#Host Placed, Hot-link Protection & Other stuff ?!?!?!??!
RewriteCond %{HTTP_REFERER} !^http://android-x86.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://android-x86.net$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.android-x86.net/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.android-x86.net$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|bmp|img|iso)$ - [F,NC]



Here Are my Installed MODS:


Mod Name Version
1. SMF 1.1.21 / 2.0.10 Update 1.0 [ Uninstall ]
2. Social Login 3.3 [ Uninstall ]
3. SA Facebook 2.0.5 [ Uninstall ]
4. Users mass actions 0.1.1 [ Uninstall ]
5. SA Twitter 1.2 [ Uninstall ]
6. PM Attachments 1.6 [ Uninstall ]
7. Menu Editor Lite 1.0.5 [ Uninstall ]
8. EzPortal 3.0.3 [ Uninstall ]
9. Add These Sites in Profile, Post & Memberlist 1.1 [ Uninstall ]
10. Add Social Media Icons To Profiles 1.2.0 [ Uninstall ]
11. DNEP - Display Name Edit Permission 1.2.1 [ Uninstall ]
12. Lazy Admin Menu 1.15 [ Uninstall ]
13. SA GPlus 0.3 REV 9 [ Uninstall ]
14. DevCenter 0.4.1 [ Uninstall ]
15. Floating Bar Mod 1.2 [ Uninstall ]
16. Register Redirect 1.0 [ Uninstall ]
17. Add Avatar To Who Is Online Version 1.2 1.0 [ Uninstall ]
18. EmailValidator 1.0 [ Uninstall ]
19. SA Chat 1.0a Rev120 [ Uninstall ]
20. InLine Attachments 1.2.1 [ Uninstall ]
21. Enhanced Dropdown 1.3 [ Uninstall ]
22. Custom BBCodes Manager 1.7 [ Uninstall ]
23. SMF 2.1-style Admin Area 1.7 [ Uninstall ]
24. Country Flags 2.1 [ Uninstall ]
25. Ad Managment 3.2 [ Uninstall ]
26. ACPS - Ajax Continuous Post Scrolling 1.0.2 [ Uninstall ]
27. Say Thanks 1.3 [ Uninstall ]
28. Downloads System 2.5 [ Uninstall ]
29. Default_Membergroup 2.0 [ Uninstall ]
30. Membergroup ID with Group Name 1.1 [ Uninstall ]
31. Topic Solved 1.1.1 [ Uninstall ]


I tried removing ACPS Ajax on my Localhost and it made no Difference, I did do a CLEAN Install of 2.0.9 on Localhost and it worked fine...

And I looked into some of the code, and the only thing I can think of that could be Interfering is SSI.PHP,  Couldn't this mode just do a Database lookup, and have the basically be the Integration?

Dunno, At this point I'm lost, I just DL'd the Test Version and going to give it a try..

If anyone has An Idea Of how to get this to work, OR how to Just have the StandAlone Version Access the Database to Allow my Users in that would be just fine....

Thanks

Mike