Previous Thread
Next Thread
Print Thread
Hop To
#67741 10/22/2001 11:29 AM
Anonymous
Unregistered
Anonymous
Unregistered
What I am trying to do is to set cookies using my PHP codes so that the UBB will recognize them. I do know how to set cookies using PHP. I am totally integrating UBB into the site. The site consists of its own member list (MySQL) and logging in interface. So I wanted the registration to be one stop deal. I accomplished this by manipulating files under Members folder, where 0000xx.cgi, memberfiles.cgi, emaillist.cgi... exist. However, my problem is when a member logs in to the site s/he has to log in one more time with UBB to post and reply. I want to eliminate this. I want a user to be in logged on state with UBB when s/he logs in to the site. So I guess that means I will have to write the cookie for UBB as well. I want to know how I can do this. Thanks.

PS - Sorry for the long post.

Anonymous
Unregistered
Anonymous
Unregistered
Just set the relevant cookie. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

The format is:
ubber1234567.8901=User&pw&PubName&DP&dddddddd
where
User = username
pw = password
PubName = public name
DP = DaysPrune setting
dddddddd = member number

1234567.8901 varies per board. Look at your cookie files or your vars_config.cgi for your instance's number.

Graeme

Moderator: UBB6 How Do I?

NOTE: Any email requests for support will be ignored.

"The ships hung in the sky in much the same way that bricks don't." --Douglas Adams

Anonymous
Unregistered
Anonymous
Unregistered
Thanks! That's what I was trying to do, but when I looked at the cookie I just couldn't figure out the number part of ubberxxxxx.xxx.

Anonymous
Unregistered
Anonymous
Unregistered
To elaborate..

It is a unique number representing the time/date of initial setup of the UBB. (The very first time it was installed or upgraded to UBB6).

It was added to get around the problems we were having with two UBBs on the same site whose cookies were conflicting with each other. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

Graeme

Moderator: UBB6 How Do I?

NOTE: Any email requests for support will be ignored.

"The ships hung in the sky in much the same way that bricks don't." --Douglas Adams

Anonymous
Unregistered
Anonymous
Unregistered
Just to post this information for any other PHP newbies trying to work this out...

UBB creates the cookie name with a period in it but PHP converts this to an underscore when you try to read this value. You need to use something like this...

echo ($ubber1234567_8901);

Anonymous
Unregistered
Anonymous
Unregistered
If you do want to create the cookies for UBB, so that you can login elsewhere on your site, what do the other cookies affect?

i.e. Ell1234567.8901 and login1234567.8901

The login one appears to be the time and date the login occurred but what's the magic number on the end? Is this cookie used to indicate which topics are new?

It also appears that Ell and ubber are set for a two year expiry but login is only set for one year. Is that correct?

Can you send a user to 'ultimatebb.cgi?ubb=login' and then bounce them back to a page outside the UBB? If so, how?

I'd prefer to share UBB's login architecture rather than making UBB share mine. Thanks.

Anonymous
Unregistered
Anonymous
Unregistered
Ell is who's online (stands for Elliot (sp?) - the hack's author).
login is the last visit time.

You would have to implement a code hack to allow UBB to redirect to a non UBB page.

Graeme

Moderator: UBB6 How Do I?

NOTE: Any email requests for support will be ignored.

"The ships hung in the sky in much the same way that bricks don't." --Douglas Adams


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Slow Queries - Any Ideas?
by BellaOnline - 10/16/2026 4:34 PM
Selling a Forum?
by ECNet - 10/10/2026 10:54 AM
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Who's Online Now
0 members (), 214 guests, and 119 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)