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

hcfwesker

#8480
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.


duckydan69

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?

T3CHN0

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

duckydan69

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

T3CHN0

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

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

T3CHN0

#8485
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.

duckydan69

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.

T3CHN0

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

T3CHN0

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"

cutedoctor

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

TheListener

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

hcfwesker

#8491
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. 

hcfwesker

#8492
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.

PLAYBOY

all of a sudden i started getting this error in my shoutbox
(20:12:56) ChatBot: Error: Connection status: 508

Any ideas?

hcfwesker

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.

PLAYBOY

So both 503 and 508 are caused by the cpu usage?
What should i do then?

societyofrobots

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. :-\

BaghdadGhost

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

hcfwesker

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

T3CHN0

#8499
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 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.

Advertisement: