Mod Name / Version: RaiderSoft UBBThreads Integrated Secure Chat 1.5
Description: This integrates RaiderSoft's Java Based Chatroom into your site and updates the who's online information. This works with all versions of the RaiderSoft Chat Room (including the Free Version) but to get all the features to work (Database Authentication and the ability to view profiles) you'll need the Platinum Level Account (currently $100/year from RaiderSoft.com). This will also update the Who's Online Screen with "In the Chat Room" if the user is in the chatroom.
Featues:
Integrates with the look/stylesheet of your UBB.Threads
Can automatically log the user into chat, using their Threads Username
Option to limit chat to logged in/registered users
Option to temporarily close the chatroom
Updates the Threads Who's Online page with "In The Chat Room" when users are using Chat.
Optional Instructions included to display the number of users in the chat room at the top of every page of your forum
Can Authenticate chat username/password against your UBB.Threads Forum User Database. This eliminates the possibility of users being able to login as or impersonate other users in the chat room. This is the most secure authentication method. (Requires Platinum Level Service)
Allws you to right click a user from the list in the chat room and view their profile. (Requires Platinum Level Service)
Demo: Here at ThreadsDev.com - click "Chat Room" in our menu bar. Thanks to Chris at Raidersoft for our License
New Files: chat.php, chatheader.php, chatroom.php, chatauth.php, chatprofile.php, chat.tmpl
Database Altered: No
Info/Instructions: Visit RaiderSoft to signup for an account. Start with a free account, which will enable you to set this up and test. You can upgrade your account at any time by logging in at the RaiderSoft site. While there is a "professional" level service, to make use of the Database authentication and the ability to view profiles in chat, be sure to upgrade to the "Platinum" level service. If you already have a RaiderSoft "Professional" level account, you can login at RaiderSoft and upgrade the account to the "Platinum" level Service.
Additional help/instructions and troubleshooting documentation is included in the Instruction file in the attached ZIP file.
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Chris at RaiderSoft gave me a call in reference to some questions I had. We talked a bit and I had directed him to the hack you were working on as he was not aware of this. Figured it would be a good thing for the two of you to put your heads together and sort through this for the better of our community. He did mention that he would work on the licensing for ThreadsDev as well.
Glad it's all worked out and now...it's time for me to get this booger working.
Thanks to Chuck for helping out on this hack. However, I'm not getting authentication to work.
JOsh, I'm going through your instructions and I see this:
## In chat.tmpl template file ##
- Set the option if you are using AAS (Alternative Authtication System) Requires a Platinum Raidersoft Account - details at www.raidersoft.com If you are not using this option - or do not have a Platinum Raidersoft account make sure you set this to 0.
- Edit your Raidersoft Chat Room ID Number (If you are not sure, Login to your account at Raidersoft.com and click "Link Instructions", you'll see your room ID number there - it's usually a 5 digit number). ---------------------------------------
I'm using the Platinum verion of SigmaChat now but even if I choose not to use the authentication directly from RaiderSoft...I don't see where a person would set their option to 0 in their chat.tmpl file.
Thanks Josh for the response. The program is still not automatically logging our members in. Here's what I have in my ubbthreads/templates/chat.tmpl file:
================================= // ## VARIABLES ## // Are you using the RaiderSoft Alternative Authentication System (AAS)? // Put 0 for NO and 1 for YES $aas = 1;
// What is your Raidersoft Chatroom Number? // Click "Link Instructions at Raidersoft.com if you're not sure $roomnumber = 45816;
// END OF VARIABLES - Do Not Edit Below this Line
// if we are using AAS - pass the Password Parameter if ($aas) { $aasoutput = "<param name="password" value="$Password">"; }
<!-- NOTE: You will need to alter the "room" number --> <!-- Put the number of your chatroom where you see XXXXX below --> <!-- Signup for Free or Paid Chatroom at www.raidersoft.com -->
I'd double check the chatheader.php and chatroom.php files. I can't think of any reason why they would be blank... but those are the 2 that aren't loading.
I dunno either, but it's odd, I looked at those files in notepad and they're one big run on line, not formatted at all. Looking at them in another editor and they're fine.
I've probably got this mod running on ~40 or so sites right now. Make sure you are uploading your files in ASCII mode - there should be line feeds in there. I think that's the biggest clue of what's wrong - when you looked and didn't see line feeds.
PM me with FTP details etc.... and I can see what happens if I drop the script on your server.
I seem to have it working fine now. I basically loaded the files up in dreamweaver and then re-saved them and had dreamweaver do the upload to the server. Looks like cuteftp may be having a problem with ascii transfers... Either way, Nice Job on the mod.
What the chat page has to do - is load the header of the page in an IFRAME which contains the "send header" function. This part of the page refreshes every 9 minutes (or else the user drops off the Who's Online list after 10 minutes of not reloading any pages).
Then the middle of the page is another IFrame containing the chatmodule and the footer of the page.
So for this to work right, you need to turn off the sidebar on the chat page.
If you're using the IIP sidebar mod posted here - you can disable the sidebar on specific pages by placing:
$config['iip_call'] = 1;
above the send_header function on the page you don't want the sidebar.
It uses a regular page - so the sidebar will work fine. But instead of being able to refresh the header, it uses a little popup window which pops under the chat page, and refreshes every 9 minutes to update the who's online page.
But it's an old mod and was written for Jpilot.... but you could probably easily inert the Raidersoft chat code in instead.
Bumping this thread to ask if anyone is having problems with the RaiderSoft integration since RaiderSoft's recent upgrade. Some of my users are reporting difficulty getting out of the integrated chat page -- none of the header links ("main index," etc. -- the UBB links) are working for them, and the Java chat page constantly refreshes. I'm not having the problem myself so it's a little hard to describe.
Also, none of my Mac users can access chat anymore, but I think that is an issue of RaiderSoft's new Java implementations, whereas the other one seemed like it might have something to do with the actual integration with UBBthreads.
Hmm..... I have this on a few sites...... haven't had or heard any problems. I use a Mac as well.
I'd make sure the HTML in your header is prefect/validates (for exmaple no open tags by mistake etc....) as that can sometimes cause havoc with this type of stuff.
Installed this last week on my site and worked like a breeze!! Thanks Josh.
The only problem (with the free version) is that mischief makers can easily logout and login again using any other name. This is being misused by some impersonating as other members. I wish that the ONLY way to get into chatroom was through UBBT and no option for Login was there in the chat room. Anyway to do this?
No - not with the free version. The fully integrated one (paid version) you can authenticate against the Threads Database and even restrict it so it can ONLY be loaded from your domain name. But they don't give you the access to those controls for the free version.
I understood that, but as a policy we try to buy softwares as much as possible on a lifetime licence. Unfortunately Raidersoft doesnt seem to have any scheme like that. I will post on their support forum regarding this.
As a last issue Josh -- is it possible to have a "Invite User to Chat" somehow? Possibly through a popup box, which can be a) Accepted b) Declined c) Ignore for each session?
The links on the chat window don't break you out of the chat room. I had to use open other window commands to get the windows to open. That is on this 6.4 b2 site
I couldnt get my chat room to connect. It kept saying the chat room was closed.... I talked to the admins there, and we figured it out finally that all chat rooms with a room number of OVER 50000 are on client1.sigmachat.com!! So if you are having problems, just add the "1" in the url and you will be good to go.
Thank you very much for posting that tip, Deejay. I had the same problem, and came here to see if anyone else did. And sure enough, a solution was here -- posted not even two hours ago. Now everything works.
is it possible to have this set to a different timer than whos online? my chatroom says I have way to many folks most of the time with the whos online having a 90 minute setting.
Where the query is done to determine how many peopl are in chat - Above the query add this:
$LastOnChat = $this -> get_date() - 600;
600 seconds is 10 minutes.
Then alter the query a bit like this
$query = " SELECT COUNT(*) FROM {$config['tbprefix']}Online WHERE O_Last > '$LastOnChat' AND (O_What = 'chatheader' OR O_What = 'chatroom' OR O_What = 'chat') ";
[] Thank you very much for posting that tip, Deejay. I had the same problem, and came here to see if anyone else did. And sure enough, a solution was here -- posted not even two hours ago. Now everything works [/]
Yes for 6.4, we're using it here. It's pretty much an addon, no real threads files even altered except for the link in the menubar and the online langugae file.
I believe the paid version of raidersoft allows multiple rooms. But I'm not sure. You'd have to visit www.raidersoft.com and check out the various plans to be sure.
I was looking at thier plans and the higher end plans do allow for multiple rooms. So, basically, I would just need to put multiple links in the nav bar(or whereever) pointing to the appropriate place.
I downloaded the mod and got it working with a bit of changes on the java applet. Which version of Radiersoft is this site running ? the free one ? I would like to try a site that has the pro version to see if it looks any better. My folks DONT like it compared to the digichat software I currently run, but I sure do like the intergration that this version has.
I was wondering if there was any way to limit the chatroom to one group. I created a group on my board called "chat" and I want only that group to have access to the chatroom. Can this be done?
Yeah, there are lots of threads around here which cover general group restriction in more detail. but basically below the authenticate() function, add something like this: (substitute the group number you want to allow)
- Add U_Groups into the authenticate() function query.
- Below it add:
Code
<br />if (!strstr($user['U_Groups'],"-5-")) {<br /> $html = new html;<br /> $html -> not_right("you are not allowed to do this.",$Cat);<br />}<br />
The above would all user group 5 access to the chatroom and block everyone else.
Got this added back in with 6.4.1 but for some reason I can not figure out how to make the "There is currently 1 user in the Chat Room. Join them!" center bellow the navigation table. Right now it is stuck under the welcome table.
Josh, you can read my mind. Thats frightening. Yesterday I set up the chat for testing and got the table problem with the nav-bar. I put in the colspan and got to bed.
Right now I come back to write it here in this thread and see that this done
But there is something else: in chat.tmpl is the codebase url. After verify the link generator from Raidersoft i notice that I got an other url: codebase="http://client1.sigmachat.com/current/
You have in your template: codebase="http://client.sigmachat.com/current/
For some reason chatheader.php is not "refreshing" like it use to when installed with 6.3.2. Could I have not installed it correctly, or is there something that needs to be changed to make it refresh with 6.4.1?
[]JoshPet said: It should function the same way - in fact it's the same file - should just be using a Meta refresh in the file to do this. [/] Interesting
Maybe it's my browser or something as it is definetly not refreshing. I am using IE 6
I just installed this mod on my server and the applet doesn't run. It reads "Applet Halted. This chat room is closed."
I already made sure that my room number was entered properly. I am also pretty sure that it is not a java problem for me because the chat room works when I link to it directly.
Yeah, follow their java help at the www.raidersoft.com site. Also - an update to this mod. Search the chat.tmpl file - for the name of the actual server - and verify it against your own server. Since this mod was made - they started using different server names as they grew.
So the mod may have something like "client.sigmachat.com" but verify against the links & code they give you and you'll really need to use "client1.sigmachat.com" or "client2.sigmachat.com" or similar. So edit the applet code accordingly in the chat.tmpl file.
Those instructions need to be updated here as I think they now have multiple chat servers.
Whos in the chat room not working independent on my whosonline in chat updates again. I have it listed like previously in this thread.
Would this have changed in 6.4
[] // ---------------------------- // Let's see if there are any people in the chat room - by JoshPet $LastOnChat = $this -> get_date() - 600; $query = " SELECT COUNT(*) FROM {$config['tbprefix']}Online WHERE O_Last > '$LastOnChat' AND (O_What = 'chatheader' OR O_What = 'chatroom' OR O_What = 'chat') "; $sth = $dbh -> do_query($query); list($chatcount) = $dbh -> fetch_array($sth); if ($chatcount == "1") { $chatoutput = "<tr><td class="lighttable" colspan="2" align="center"><b>There is currently $chatcount user in the <a href="{$config['phpurl']}/chat.php" target="_top">Chat Room</a>. Join them!</td></tr>"; } else if ($chatcount > "1") { $chatoutput = "<tr><td class="lighttable" colspan="2" align="center"><b>There are currently $chatcount users in the <a href="{$config['phpurl']}/chat.php" target="_top">Chat Room</a>. Join them!</td></tr>"; } else { $chatoutput = ""; } [/]
doesn't seem to make any difference at what I set time. it just reads how many are on screen in whosonline and reports that. trying - 10600 and still no twitching of meter..ugh
Changing the time should do it - the only change needed for 6.4 (and I swear there's a 6.4 version of this posted somewhere, I'm using it on alot of sites).
Thanks not sure what is not working on this but will leave it be for now. I swapped out the code didn't appear to make a difference. (still reading all screen names that have been in chat) Will see how it does next couple days.
* I installed this and it works like a charm (although I have no idea how to log in and mod it) but now all of a sudden I'm getting a "?>" at the top of every page that uses the generic header. A view source of the rendered code gives me this: [] ?> <!-- START OF header.tmpl TEMPLATE --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="ltr"> <link rel="SHORTCUT ICON" href="http://www.calpernia.com/favicon.ico" /> <head>[/] * I don't know where that ?> is coming from, or where that line <!-- START of header.tmpl is coming from, I did a sitewide code search and could not find that string in my code anywhere. * This isn't a chat mod question per se, but the problem came up after installation, and I can't find where I messed anything up. Everything works, just that extra code there...
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.