Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (mjuby, KuKuKaChu, tradge, Gizmo), 28 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: Yesterday at
Posts: 1
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 24
Dunny 17
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#170589 - 12/19/06 11:15 AM Recognizing user is logged in and retrieving username/id on external page
green_firefly Offline
stranger
Registered: 12/18/06
Posts: 1
Hello,

Would anyone know how I could go about doing this? My website is centered around the UBB.threads bulletin board. I am in the process of making some external pages for other various things, like a chat, and other things that require me to be able to recognize if a user is logged in, and from that retrieve there username or user id.

Thanks
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#170594 - 12/19/06 01:38 PM Re: Recognizing user is logged in and retrieving username/id on external page [Re: green_firefly]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
Not sure exactly what you mean. The software already knows when someone is on or not.
Top
#170601 - 12/19/06 02:17 PM Re: Recognizing user is logged in and retrieving username/id on external page [Re: green_firefly]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
Loc: NJ

I don't know the exact specifics of integrating other products into Threads (to share log-ins), but you'd somehow have to integrate or at least be able to read across databases. Once you know which product(s) you want to integrate, you could try posting a Mod Suggestion at ubbDev...

I want to do the same thing for Chat (there are a couple solutions already on UBBDev) and QuizShock (the latter incorporates in many products, but not Threads - I may have to try writing that one myself)
_________________________
GangsterBB.NET (Ver. 7.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#170618 - 12/19/06 06:27 PM Re: Recognizing user is logged in and retrieving username/id on external page [Re: jgeoff]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
If you have some PHP/MySQL/Smarty/OOP knowledge then I'd sugguest to start by opening some files and reading:
includes/config.inc.php
includes/mysql.inc.php (i think is what it is) then
ubbthreads.php

and you shoudl get the jist on how things work.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#170620 - 12/19/06 06:32 PM Re: Recognizing user is logged in and retrieving username/id on external page [Re: Gizmo]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
As soon as I can I will be making an API that will include some things such as this. Basically the function you're looking for is the authenticate() function in the libs/ubbthreads.inc.php file. That function checks to see if a user is logged in, and grabs a variety of fields from the database if so.
Top
#170629 - 12/19/06 07:06 PM Re: Recognizing user is logged in and retrieving username/id on external page [Re: ntdoc]
David Dreezer Offline

Pooh-Bah
Registered: 07/21/06
Posts: 2199
 Originally Posted By: ntdoc
Not sure exactly what you mean. The software already knows when someone is on or not.


The object though, is to have the software tell a different software if the user is logged in. \:\)
_________________________
This thread for sale. Click here!
Top
#170631 - 12/19/06 07:08 PM Re: Recognizing user is logged in and retrieving username/id on external page [Re: David Dreezer]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
Yes, so it reads the database and says YES/NO not too difficult.

I'm not up on actually coding it for someone though and standing behind the code quite yet
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181695 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image