Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
4 registered (blaaskaak, EarleW, Rick, 1 invisible), 19 Guests and 23 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 11/30/08
Posts: 2
Top Posters (30 Days)
Ruben Rocha 179
Gizmo 112
Rick 104
Thelockman 80
driv 43
AllenAyres 35
ntdoc 28
Ian 24
Sirdude 23
ScriptKeeper 20
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
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
No Birthdays
Recent Topics
Fatal error: Smarty::require_once
()

by ThreadsUser
Today at 08:17 AM
PayPal batch file for ID'ing expired and failed payment subscriptions?
by Mitch P.
Today at 06:02 AM
Shrinking graemlins
by Djuma
Yesterday at 05:48 PM
2 problems I'm seeing now.
by DougMM
Yesterday at 04:39 PM
Which CSS Style Controls the bottom lines
by David DelMonte
Yesterday at 01:51 PM
Forum Stats
4261 Members
33 Forums
30534 Topics
154967 Posts

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