Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
3 registered (Sirdude, Yomar, 1 invisible), 23 Guests and 21 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 12/15/08
Posts: 7
Top Posters (30 Days)
Ruben Rocha 103
Rick 81
Mark S 72
Thelockman 56
Gizmo 50
driv 35
ntdoc 32
Sirdude 30
packlite 24
AllenAyres 22
Latest Photos
bear test
Beach Barbie-Q
Sunset
Accept the challenge!
Trees
Topic Options
Rate This Topic
#67741 - 10/22/01 08:29 AM Setting UBB cookie using PHP
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.

Top
#67742 - 10/22/01 07:30 PM Re: Setting UBB cookie using PHP
Anonymous
Unregistered


Just set the relevant cookie.

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

Top
#67743 - 10/22/01 07:49 PM Re: Setting UBB cookie using PHP
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.

Top
#67744 - 10/23/01 06:40 PM Re: Setting UBB cookie using PHP
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.

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

Top
#67745 - 10/29/01 03:58 AM Re: Setting UBB cookie using PHP
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);

Top
#67746 - 10/29/01 05:08 AM Re: Setting UBB cookie using PHP
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.

Top
#67747 - 10/30/01 12:08 PM Re: Setting UBB cookie using PHP
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

Top


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

Today's Birthdays
GOTMYSELFA...., smilinjack
Recent Topics
New members don't get access and are not displayed in the config panel
by Yomar
Today at 03:32 AM
How to Change Link Color / Underline in styles?
by ECNet
Yesterday at 10:00 PM
Chaging the "max online" number and date
by wanted
Yesterday at 02:22 PM
7.4.1. In Threaded Mode - "Mark All Read" Doesn't Work
by packlite
Yesterday at 10:26 AM
Custom island with sql connection
by Robje01
Yesterday at 09:13 AM
Forum Stats
4296 Members
33 Forums
30687 Topics
156017 Posts

Max Online: 978 @ 06/24/07 08:19 PM