Previous Thread
Next Thread
Print Thread
Rating: 5
Page 1 of 2 1 2
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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

Working Under: UBB.Threads 6.2-6.3

Mod Status: Finished

Any pre-requisites: A Chat Room at RaiderSoft

Author(s): JoshPet

Date: 08/07/03

Credits: Chris at Raidersoft.com for Commissioning it

Files Altered: ubbt_registerednav.tmpl, ubbt_unregisterednav.tmpl, /languages/english/online.php (ubbt.inc.php -optional)

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.


Attachments
91189-RaiderSoft-UBBThreadsChat1.5.zip (0 Bytes, 164 downloads)

Sponsored Links
Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Josh, I'm glad that this worked out for the best.

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.

Keep up the great work on the hacks!

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
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.

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Hmmm, okay, I got the authentication script working but it only works after the user logs in with his username and password.

Shouldn't this log the user in automatically with his username and password in which he registered with on the forums?

Last edited by smoknz28; 08/08/2003 8:09 AM.
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Figured I'd pop in and check out the chat room here but it stops loading after a bit giving the following error:

Exception: java.lang.NullPointerException

I haven't had much luck with Sun's Java on this PC running Win2k. Will take a peek again when I get home.

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I don't have the code with me on this machine... but towards the top of the new template it'll say
$aas = 1;

Set that to 0 if you are not using AAS.

Have you altered the Applet code?
Sounds like you've taken out the auto login parameter.

Don't alter the code.... just substitute your chat room id number.

There should be an "auto login = yes" type parameter in there, that's what signs them in automatically.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Here's help in resolving the java setup on your machine:
http://client.sigmachat.com/help_connection.html

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
UBB Threads v6.3.1
SigmaChat Platinum
URL http://www.f-bodyhideout.com/ubbthreads/ubbthreads.php?Cat=

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">";
}

echo <<<UBBTPRINT
$tbopen
<tr>
<td class="tdheader">
{$config['title']} - Chat Room
</td>
</tr>
$tbclose

$tbopen
<tr>
<td class="lighttable" align="center">

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

<applet
codebase="http://client.sigmachat.com/current/"
code="Client.class" archive="scclient_en.zip"
width=600 height=350 MAYSCRIPT>
<param name="room" value="$roomnumber">
<param name="cabbase" value="scclient_en.cab">
<param name="username" value="$Username">
$aasoutput
<param name="autologin" value="yes">
</applet>

</td>
</tr>
$tbclose
UBBTPRINT;
/* UBBTREMARK */ ?>
====================================

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Ahh, it's probably because of the intense firewall they have here at work.

Will try again at home and see if it works.

Joined: Apr 2003
Posts: 359
Enthusiast
Enthusiast
Joined: Apr 2003
Posts: 359
Doh!

There was the issue...HELLO! Mark....read the damn instructions! Put the chat.tmpl file in the templates/default directory.

She's working like a charm Josh...great job buddy!

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Good to hear. I tested pretty well here - but ya never know.

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Works great at home. Of course I don't have Sun Java installed on this machine.

Nice job Josh.

Joined: Feb 2001
Posts: 26
User
User
Offline
Joined: Feb 2001
Posts: 26
Josh, this worked great. I wish RaiderSoft itself were more customizable, but your hack was a breeze. Thank you!

Joined: Feb 2001
Posts: 104
Journeyman
Journeyman
Offline
Joined: Feb 2001
Posts: 104
Heyya Josh...

I just pop'd your mod in, set up an account (Free) with raidersoft and when I run the chat.php I'm getting a blank screen??

Everything is set to 755, so uhhh ?? any ideas?


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Does your browser support inline frames?

Do you have a link where I can see?

Joined: Feb 2001
Posts: 104
Journeyman
Journeyman
Offline
Joined: Feb 2001
Posts: 104
http://www.ladycakes.com/forum/chat.php

I've got both netscape 7.1 and IE 6 running, I'd like to think one of them would handle the Iframes.


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Joined: Feb 2001
Posts: 104
Journeyman
Journeyman
Offline
Joined: Feb 2001
Posts: 104
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.

What'd you end up saving them in ??


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
BBEdit - same thing I do everything else.... but they shouldn't be one long line. That's probably the problem.

Both of those files require you to edit them... make sure that whatever you edit them in preserves the Unix linefeeds. That's probably it.

You might want to start with a fresh download or copy of those scripts (before you edit them) and make sure those line feeds get preserved.

Joined: Feb 2001
Posts: 104
Journeyman
Journeyman
Offline
Joined: Feb 2001
Posts: 104
Well I downloaded a fresh copy from here and still get the same results.

I used a direct link to the chat room by passing the mod and everything worked great.


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Don't know what else to say.

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.

Last edited by JoshPet; 08/17/2003 2:13 AM.
Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
works like a charm on my setup.
I followed your install EXACTLY - it worked first time...

All my users love the option to chat if they ever wanted to

Thanks JP!


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Feb 2001
Posts: 104
Journeyman
Journeyman
Offline
Joined: Feb 2001
Posts: 104
THANKS Josh....

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.


Joined: Feb 2001
Posts: 169
Member
Member
Offline
Joined: Feb 2001
Posts: 169
Great hack, works fine here, I have just a minor problem: my side menu is cutted like shown in the attacched file...
Any suggestion ?
Attachments
94730-Cut.jpg (0 Bytes, 30 downloads)

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

If this doesn't work for you - you might be able to adapt the RaiderSoft stuff to this older chat mod that Dalantech and I worked on.
https://www.ubbdev.com/forum/showthreaded.php?Cat=0&Number=64465

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.

Joined: Feb 2001
Posts: 26
User
User
Offline
Joined: Feb 2001
Posts: 26
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.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Joined: Feb 2001
Posts: 26
User
User
Offline
Joined: Feb 2001
Posts: 26
Okay, I will check that out. This is a brand new issue, though, and I definitely have not changed anything. It started when Raidersoft upgraded.

Joined: Oct 2001
Posts: 157
Member
Member
Offline
Joined: Oct 2001
Posts: 157
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?


Yors Truly

Who? Me? Worry?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Joined: Oct 2001
Posts: 157
Member
Member
Offline
Joined: Oct 2001
Posts: 157
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?

Last edited by crescendo; 10/09/2003 3:50 PM.

Yors Truly

Who? Me? Worry?
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
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

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Are you sure you added the bits to ubbt.inc.php to define

$target = "target="_top"";

Then make sure every link in your menu bar has the $targe tag in the URL. Or simply add:

target="_top"

To each link in the ubbt_registerednav.tmpl or ubbt_unregisterednav.tmpl


Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
The problem I experienced was on this site.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369


I don't know. Works for me - and we've got it installed correctly.

What browser are you using? I'll see if I can test it here - but a target="_top" should be standards compliant.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
working fine now.. not sure what happened. ie 6

Joined: Aug 2002
Posts: 100
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 100
Of interest... I went to raidersoft, registered a chat room, and then went to configure my site to use it.

You should know that they have added another server... In the chat.tmpl file, there is a url to their chat server...

The code in the tmpl file looks like this...

<applet
codebase="http://client.sigmachat.com/current/"
code="Client.class" archive="scclient_en.zip"
width=600 height=350 MAYSCRIPT>
<param name="room" value="$roomnumber">
<param name="cabbase" value="scclient_en.cab">
<param name="username" value="$Username">
$aasoutput
<param name="autologin" value="yes">
</applet>

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.

Hope this helps.

Deej

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Ah - thanks for the tip.

Joined: Oct 2003
Posts: 35
User
User
Joined: Oct 2003
Posts: 35
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.

ThreadsDev.com is a truly excellent resource!

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
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.

Page 1 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)