• Who's in Chat for Pro_Portal
  • Uploader:leefish
#1
This is a pro_portal block that shows who is in chat

Assumptions:

Your chat is located as so: www . yoursite/(path to forum if site is in sub-directory)/chat/

Requirements

For the pro_portal block to work then you will need to have the AjaxChat installed on your board.


Installing to ProPortal:

When you add the ajax_chat block, put this in the block settings
block_title = <a href="http://www.yoursite.com/forums/chat">Chat</a>
Use Custom Block Template = NO
Block File: ajaxchat

Screenshots
Who's in Chat for Pro_Portal Screenshot Who's in Chat for Pro_Portal Screenshot  
Download link
Filesize 1.03 KB | File Name WhoIsInAJAXChat.rar | # of Downloads 90
File Updated 18-03-2012

Comments
#21 15-03-2012 
Hi Yin, yea, I don't allow guests to edit posts. Big Grin

On your question - have you actually been able to use your chat BEFORE Installing this block? As you can see from the added screenie I have this running just fine on 1.6.6
The site don't jive? PRESS F5 Flower

#22 15-03-2012 
  • Yin
 
Yep, I've been using it for about 3 days. It's closed and only admin can get in there right now though, so there's no way to test it. The error only pops up when the block is enabled. With the block disabled, I see a shoutbox on the right side, there's no formatting, it's just text. But I'm guessing that's because of the modified portal file.
Oh and the chat still works too, it's just the block gives that weird error.

#23 15-03-2012 
Ok, I am baffled...

Is this true for your chat?

Assumptions:

Your chat is located as so: www . yoursite/(path to forum if site is in sub-directory)/chat/

It could also be that only admin can access it is throwing it off. Not sure of course. Are you viewing as admin?
The site don't jive? PRESS F5 Flower

#24 15-03-2012 
  • Yin
 
I've tried both. My chat is located at cavernofcreativity.com/Atlas/chat I've already corrected that in the file as well. Is there anywhere else that I need to specify that?

#25 15-03-2012 
In the block file there is this code:

Code:
// If your forum is located anywhere other than:
   //    www.yoursite.com/
   // you will need to alter the url so that it points to your forums!

   $chatplink= "{$mybb->settings['bburl']}/member.php?action=profile&uid={$chatuID}"; // MyBB
   $chatlist.="<a href='{$chatplink}'><b>{$chatName}</b></a><br />";
}
   // If you modified that code, you'll need to modify this URL as well:
   $chatURL="{$mybb->settings['bburl']}/chat/";
    $new.="<br />";
    $chatlink.="<a href='{$chatURL}'>Click to join the chat</a>";

Is the ChatUrl correct?
The site don't jive? PRESS F5 Flower

#26 15-03-2012 
  • Yin
 
Code:
// If your forum is located anywhere other than:
   //    www.yoursite.com/
   // you will need to alter the url so that it points to your forums!

   $chatplink= "{$mybb->settings['bburl']}/Atlas/member.php?action=profile&uid={$chatuID}"; // MyBB
   $chatlist.="<a href='{$chatplink}'><b>{$chatName}</b></a><br />";
}
   // If you modified that code, you'll need to modify this URL as well:
   $chatURL="{$mybb->settings['bburl']}/Atlas/chat/";
    $new.="<br />";
    $chatlink.="<a href='{$chatURL}'>Click to join the chat</a>";

That's my block settings

#27 16-03-2012 
Ok, I have to go to bed soon - work tomorrow - but try taking that Atlas line out and making it
Code:
$chatURL="{mybb->settings['bburl']}/chat/";
The site don't jive? PRESS F5 Flower

#28 16-03-2012 
  • Yin
 
Ok, will try that if it does not work, can we continue this tomorrow or some other time when you have time?

#29 16-03-2012 
Hi Yin - I had problems sleeping so I got up Big Grin

I will of course keep trying until we get this to work.
The site don't jive? PRESS F5 Flower

#30 16-03-2012 
  • Yin
 
Thank you, didn't realize you came back!
I've fixed that information, but it still gives the error. (By the way, I fixed the shoutbox on the portal I had forgot to import the shoutbox.css) Just the who's in chat box is not working. It only happens when the block is enabled.

I do have other plug ins related to ajax chat installed. Maybe it can be the cause. Here's the list:

Ajax chat user count from mybb mods site (works partially, always shows 1 person in the room even when there's none)
who is in ajax chat by you and megaleecher (didn't work)

Also, this has nothing to do with the whos in chat proportal plugin for mybb, but thought I'd ask anyway. With the php in templates, would this block of code work to remove chat users from the room if users don't log out? The counter stays at 1 even when there's nobody in the room.

http://sourceforge.net/apps/mediawiki/aj...e_Chatters


Sorry, that is a members only option