Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
If anyone is using RaiderSoft's chat at the Platinum level, here is a custom authentication script for it.

If you go to your RaiderSoft control panel, click User Accounts, then Options, scroll to the bottom and select "Custom Authentication Script". In the field, enter:
Code
http://www.yoursite.com/ubbthreads/chatAuthentication.php
or wherever you upload the file to.

Then if you pass the following params to your chat applet:

<param name="username" value="$Username">
<param name="password" value="$Password">
<param name="autologin" value="yes">

You will be automatically logged in when you invoke the applet. The authentication script also takes advantage of the return value of 2, which grants moderators and admins chat room op status (they can kick and ban and such).

Cheers,

Chris
Attachments
74708-chatAuthentication.zip (0 Bytes, 240 downloads)


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Sponsored Links
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
You can also pass these with the applet parameters

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Pass what?


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Cool, I registered on your site to check it out, does having the chat software on your server slow your site down at all? Also, do you know if there is a way to only allow a certain "group" access to the chat?

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Hey there,

I am actually working with RaiderSoft on the login problem... should be fixed soon, but it you just refresh the page a few times when you have that problem you will get in.

As for performance, the chat hosting is done by RaiderSoft's machines and is very quick.

You can allow anyone access through several methods of authentication. For our site, you MUST enter the chat room through a specific page, and that page can only be accessed by registered members of our site.

You could easily create UBB.threads groups and have the chat link available only to them.

HTH,

Chris


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Sponsored Links
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Cool, that's what I need.

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Do you know how to do it or do you want some help?


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Feb 2002
Posts: 950
Hacker
Hacker
Offline
Joined: Feb 2002
Posts: 950
Looks good; I am considering this for our site. $100 for a year seems reasonable, too. Maybe I can get some of our users to cough up some $$$. lol

Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
I will let you know, looking at all the options so far but this one does look good. Is there a hack for this that will display on the forums how many people are in chat? I could have sworn I saw something like that here but can't find anything.

Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
Here's the link you're looking for:

https://ubbdev.com/threads/php/...ew=collapsed&sb=5&o=&fpart=1

I use this chat on my site and it works quite well. Registered users from my Threads board are automatically logged into the chatroom, and an indicator on the message board records how many users are currently chatting. In addition, I've got a "banned from chatroom" user group so I can ban naughty people from chat without banning them completely from the message board. I don't think the "Banned from Chatroom usergroup" mod is posted here, but when Josh comes back I'm sure he'll happily write it up.

Sponsored Links
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Sorry Chris brain fart... this is what your passing in this example.
I like the idea of the banning of somebody from chat with the board database.

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
No worries, Marty. Got me wondering, though!


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
[]You could easily create UBB.threads groups and have the chat link available only to them.
[/]
My problem currently is that Members are giving the password out to non-members so even if I were to hide the link to chat so only Members could access it, Members could still give out the URL to no-members so I would like chat access to be by group like the forums are: You are a Member you get access if not you don't, no way around it, can this be done?

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Yes, absolutely... first in the RaiderSoft control panel you want to be sure to specify the referrer URL, so that the chat app will only load if it was accessed from that location.

While you are there set the custom authentication script URL.

Then upload the custom authentication script (the attached file in this thread). In your page that loads the chat applet just specify the params above and you got it.

The way I do it is with a link to rchat.php, which verifies that the user is a valid user, and if so it gives them the rchat.tmpl file which has the applet code embedded in it.

Let me know if that helps. I can send you the files if you'd like.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Cool, I am going to purchase raidersoft right now, it is cheaper than what I am using anyway.

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Good deal. Let me know if you need help with getting this all set up.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
In order for this to work does the link to the chatroom have to come from the forums?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
[]coy7 said:
Here's the link you're looking for:

https://ubbdev.com/threads/php/...ew=collapsed&sb=5&o=&fpart=1

I use this chat on my site and it works quite well. Registered users from my Threads board are automatically logged into the chatroom, and an indicator on the message board records how many users are currently chatting. In addition, I've got a "banned from chatroom" user group so I can ban naughty people from chat without banning them completely from the message board. I don't think the "Banned from Chatroom usergroup" mod is posted here, but when Josh comes back I'm sure he'll happily write it up. [/]

I didn't see this while I was gone. Yeah, the Raidersoft is fully integrated in a threads page. When they visit, it logs them in using their forum username.

If she wants to Ban someone from chat, she simply adds them to the "chat banned" group in threads. Then on the chat page, Below the authenticate function, I used a simple step that checks if they are part of the "banned" group and intercept them if they are.

The "kiddies" on her side did just discover a bit of a loophole where they could still sign in if they opened a new window within chat. I added a step that stopped the chat page from reloading if the online table already showed them in "chat". And also disabled the "float" function of Riadersoft.

The group thing could easily be adapted to only allow certain groups into chat.... everyone else gets a page that they are not authorized to use chat.


Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
[]The group thing could easily be adapted to only allow certain groups into chat.... everyone else gets a page that they are not authorized to use chat.
[/]

Do tell

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Not sure which part you mean... if you want to keep people from being able to access your chat room outside of your site, then yes, you need to have a link on your site that goes to some page that will load the applet. Then in your RaiderSoft control panel you specify the URL of the page at the end of your link as the ONLY access point.

Does that answer your question?


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Basically create a group called "Chatters" or whatever, and then assign who is a part of it.

Then when a user goes to the rchat.php page, you just check to see if they are a member of that group. If not, give them the access denied page.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
OK - Use that Mod Coy pointed you to.

Then find out the group number that you want to allow into chat. Do the SQL Query:
SELECT *
FROM w3t_Groups

if you don't already know the group number. For this example, I'll use group #5. We'll also Allow Admins & Mods in.


Then below the authenticate function..... do this:

Code
<br />if ((!strstr($user['U_Groups'], '-5-')) || (!$user['U_Status'] == "Administrator") ||(!$user['U_Status'] == "Moderator")) {<br />     $html = new html;<br />     $html = not_right('You are not Authorized to Use Chat',$Cat);<br />}<br />


That should do the trick.

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Thanks for "whippin' that out", Josh!


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
[]Then below the authenticate function..... do this: [/]
OK, I'm a dummy, where is the authenticate function?

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
In the rchat.php script.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, should be near the top.

Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Right under this?

// Block if Not Logged in
if (!$Username) {
$html = new html;
$html -> not_right('You must <a href="login.php">Login</a> or <a href="newuser.php">Register a Username</a> To use the Chatroom.',$Cat);
}

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yeah, that would work.

Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
OK, guys, what am I doing wrong? I uploaded the scripts and such but it doesn't load my username?
My chat room

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Look at the top of this thread... you are missing the params to the applet.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Are you talking about this?

Then if you pass the following params to your chat applet:

<param name="username" value="$Username">
<param name="password" value="$Password">
<param name="autologin" value="yes">

Where do I put this?

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Yes... it goes in the applet tag with all of the other Param tags.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Sorry, I am kind of new to this , where is the applet tag?

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Sorry... In your rchat.php file search for "<applet"

That is the beginning of the applet tag. You will see a bunch of other PARAM tags within it. Just add those three to the end of the list, before the </applet>.

That should do you up. If you can't get it from that I will look at your site and paste the right code here. Just let me know.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Are we looking at the same file, there is no "<applet" in rchat.php?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It'll be in rchat.tmpl

Joined: Jul 2001
Posts: 442
Enthusiast
Enthusiast
Offline
Joined: Jul 2001
Posts: 442
Ahh, OK, I put them in coloradok5.com/forums/templates/default/rchat.tmpl

what else do I need besides a beer to get this working?

Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Yeah... sorry... had my boss in here and was not thinking clearly!


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
I am still not seeing the params added to your applet tag... did you upload it?

Do that and try it, then we will move forward as necessary.


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
Joined: Jan 2003
Posts: 250
Member
Member
Offline
Joined: Jan 2003
Posts: 250
Hey Steve, are you on ICQ?


"Some dream of doing great things, while others stay awake and get on with it."
      -- Anonymous
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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
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
Morgan 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 20240506)