Welcome, Guest. Please Login or Register.
November 28, 2024, 01:33:44 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Passing Login Information « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Passing Login Information  (Read 721 times)
Brat
Noobie
*
Posts: 4


I'm a llama!

Passing Login Information
« on: October 05, 2003, 10:56:48 PM »
Reply with quote

YaBB SE Version: 1.5.4
PHP Version: 4.3.2
MySQL Version: 3.23.x
Server Platform: Unix, Linux, or BSD
Link to Forum:

Problem Description:
Hello, and thanks in advance for whatever help you can provide.

The issue isn't the boards; they're working perfectly.

I have a question about interfacing YABBSE with a separate program.

I have a chat program installed - nothing fancy, and it doesn't even have a real login routine, at least not something complicated like phpmychat. The program can accept login information from another progam, such as YABBSE.

Okay, that said...

I want to do the following:

1) Add a link to the forum where users can click to access the chat.

2) On click, chat program checks to see if user is a board member and already logged in.

3) If member is logged in, then program gets the user ID and user is dropped into the chat.

4) If the user isn't a member who is currently logged in, then the chat gives a nice message that only logged in members can access the chat, and redirects to the main forum login screen.

I've read other posts here about integration, but couldn't quite find the answer.

Generally, what is the BEST way to do this? For example, the program could check for a valid session cookie (which would mean the user is logged in)... but how do I pass to the program the username?

As an extra added bonus... is there a way I can pass a member's status? For example, the mods on the site could then be logged in as mods for the chat.

Again, if I could get a good outline of what to do, I can probably take it from there.

Thanks again!

Regards,
Brat.
« Last Edit: October 05, 2003, 10:58:09 PM by Brat » Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Passing Login Information
« Reply #1 on: October 06, 2003, 12:56:18 AM »
Reply with quote

First off, what language is the chat in?

PHP, ASP, Java, JSP...?

-[Unknown]
Logged
Brat
Noobie
*
Posts: 4


I'm a llama!

Re:Passing Login Information
« Reply #2 on: October 06, 2003, 01:07:42 AM »
Reply with quote

I'm sorry, I should have provided more info.  :-[

The chat is a product called FlashChat version 3.7. The primary scripting language is php.

The chat is located here:
http://www.tufat.com/chat.php

I have the source files if you just want to see, but basically it's a combination of php and Flash.

It has a crude login system at best; it's programmed to be used as a 'Nuke or Xoops module, though it can function standalone.

Regards,
Brat.


Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Passing Login Information
« Reply #3 on: October 06, 2003, 06:04:55 AM »
Reply with quote

Hmmm... well, it's probably not too hard, I'd have to see the code...

-[Unknown]
Logged
Brat
Noobie
*
Posts: 4


I'm a llama!

Re:Passing Login Information
« Reply #4 on: October 06, 2003, 06:10:28 AM »
Reply with quote

Quote from: [Unknown] on October 06, 2003, 06:04:55 AM
Hmmm... well, it's probably not too hard, I'd have to see the code...

-[Unknown]

If'd like, I could forward it to you. Just let me know what's more convenient.

Again, thank you.

Regards,
Brat.
Logged
Brat
Noobie
*
Posts: 4


I'm a llama!

Re:Passing Login Information
« Reply #5 on: October 11, 2003, 07:27:38 AM »
Reply with quote

Just wanted to say that I've solved this problem on my own.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Passing Login Information « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.022 seconds with 20 queries.