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

andy40

hi is there a way i can turn the sound off on the shoutbox???

kalleanka

any solution to the constant lagging in the shoutbox? Messages get stuck and then come at the same time.

mrtrc266

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/

mrtrc266

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

sombra

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

kalleanka

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?

Shades.

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.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

mrtrc266

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

sombra

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 ?

Kilgore Trout

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/

sombra

 "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

sombra

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

mrtrc266

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.

mrtrc266

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.

mrtrc266

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

mrtrc266

@ KT, glad you got it sorted and tyvm for your generousity. Post back if your need any more help.

sombra





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




Shades.

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! ???
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

jbloudg20

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

mrtrc266

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?

Advertisement: