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

Chit-Chat ChatterBox Boss

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

fext

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

EduardoP737

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

Chit-Chat ChatterBox Boss

#2323
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?
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.

Chit-Chat ChatterBox Boss

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


Chit-Chat ChatterBox Boss

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


philcross

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

mrtrc266

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.


philcross


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


fext

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

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?

mrtrc266

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.

mrtrc266

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

fext

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


mrtrc266

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

fext

Cheers buddy...

What about deleting messages including my own?

mrtrc266

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

fext

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

Advertisement: