News:

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

Main Menu

AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

RoCKeT-88

Ok thanks .HuNTeR I will try it out soon.
Insert Witty Signature Here.

DareDevil1990

#241
@.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

Wolfie1

#242
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

Crackhead

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 :)

newhand

#244
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



.HuNTeR.

@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

mrtrc266

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.

ttuu

Good job.
You can add a function of Permissions?
What happened a group of specific users can enter chat? For example, only admins.

ohioreef

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?

nomnomfish

hey guys, i now have my ajax chat up and functional for the members of my site:
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
A cool site I have come across: Nom Nom Fish - Internet Fishing
Control the Nomming Monster to Nom real fish! | Osama Dead Shirts

mrtrc266

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

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

.HuNTeR.

#251
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

djrem

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?

mrtrc266

#253
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 :)

.HuNTeR.

@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 ?


ttuu

thanks for addition Permissions.

mrtrc266

#256
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  :)

ttuu

i want hide the "chat" button for user cannot have a Permissions in chat or for guest.
it is possible?

ohioreef

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.

nomnomfish

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
A cool site I have come across: Nom Nom Fish - Internet Fishing
Control the Nomming Monster to Nom real fish! | Osama Dead Shirts

Advertisement: