News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

scareshack

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

drhamza

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

[unplugged]

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.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



drhamza

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    user: tester  pass: tester
though this one works www.jumss.net/testforum
:'( :'( :'(

primetime

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?

mrtrc266

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.

mrtrc266

@ drhamza PM me temp FTP access details and I'll clean this up for you.

drhamza

ok, problem solved :D, thanks to mrtrc266, cheers

4b11l

#2468
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?

Kat-2

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


Doyne

#2470
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]

Chit-Chat ChatterBox Boss

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.
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

4b11l

#2472
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?

Chit-Chat ChatterBox Boss

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
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

4b11l

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.

Chit-Chat ChatterBox Boss

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?
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

4b11l

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?

Chit-Chat ChatterBox Boss

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.
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

4b11l

font color and image bbcode settings.

Chit-Chat ChatterBox Boss

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)
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

Advertisement: