Previous Thread
Next Thread
Print Thread
Rate Thread
#179216 09/25/2002 7:52 AM
Joined: Sep 2002
Posts: 10
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 10
Hope ive posted this in the right place.......

Ive often wondered if it would be at all possible to make it so to access a page, external from the ubb it is required that you be registered and logged in.

I assumed that a good start would be to make the board only viewable by registered members and view source - and insert the cookie script into the external pages.

Well this idea failed
And I gave up...But looking on here I see that you guys can make a UBB do anything! - and my proplem seems like a walk in the park in comparasin.

So I wonder if anyone would share with me on how to make asp pages check the cookie from the ubb and act accordingly?

Thanx in advance guys.

Sponsored Links
#179217 09/25/2002 8:31 AM
Joined: Aug 2002
Posts: 97
Member
Member
Offline
Joined: Aug 2002
Posts: 97
http://www.dynamicdrive.com/dynamicindex9/password.htm

Just make a page and put it in a private forum smile long-winded, but this is one way smile

#179218 09/25/2002 8:45 AM
Joined: Sep 2002
Posts: 10
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 10
lol that really isnt how I want to do it tho. Thanks tho matey!

#179219 09/25/2002 9:16 AM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Mmmm... do you have PHP on your server? Take a peek at the Accelerator, it contains methods you can use to determine if a user is logged in and to check his profile to make sure the user is legit.


UBB.classic: Love it or hate it, it was mine.
#179220 09/25/2002 9:28 AM
Joined: Sep 2002
Posts: 10
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 10
only ASP im afraid frown
Isnt there just some code I can pull from the ubb templates that check for the log in cookie?

Sponsored Links
#179221 09/25/2002 7:15 PM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
The cookie will be named "ubber", followed by a Julian date as listed in vars_config as Cookie_Number.

There will be a number of arguments, split by ampersands - the user number, password , usernum, pdn, and others that you can ignore.

If the cookie exists and the usernum file exists, open it and compare the username & password to ensure a match.


UBB.classic: Love it or hate it, it was mine.
#179222 09/26/2002 2:38 AM
Joined: Sep 2002
Posts: 10
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 10
swoooshhhhhhhhhh, well over my head!
Lets change direction.

I have an imagefolio Gallery which I wish to restrict to registered members. The register base is the UBB.

Can I pull code from the ubbs cgi that checks for membership and put it into the imagefolio cgi ?

If so, what code will I need and where do I put it?

<~~~Absolute Noob!

#179223 09/26/2002 2:47 AM
Joined: Sep 2002
Posts: 10
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 10
If no one knows that, can someone tell me which part of the ubb checks for regisration? is it ultimate.cgi itself or the templates, or..or..or?

Then I shall have a starting point on where to begin playing around

cheers

#179224 09/26/2002 9:24 AM
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
The verify_id_num subroutine in ubb_lib is responsible for most of the authentication in the UBB.

It does what I outlined above. smile


UBB.classic: Love it or hate it, it was mine.
#179225 09/26/2002 11:00 AM
Joined: Sep 2002
Posts: 10
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 10
Spot on m8, thanx alot smile
One satified member smile

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)