Previous Thread
Next Thread
Print Thread
Rate Thread
#225307 09/26/2002 8:47 AM
Joined: Sep 2002
Posts: 9
Lurker
Lurker
Offline
Joined: Sep 2002
Posts: 9
did you ever manage this?
I'm working on intergrating a links management script into our version of ubbthreads (using v6.1.0).
This script doesn't require ppl to register, but it does require them to leave a username, password and email. I would like the script to use the info the member has put into his ubbthreads registration, as this input.

Anyone made anything that could point me in the right direction here? or do I just have to scavage the ubbt.inc.php after the functions I need?

Any help is appriciated
-Cam

Last edited by Dave_L; 09/26/2002 1:27 PM.
Sponsored Links
#225308 09/26/2002 1:06 PM
Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
I use the UBBT login to verify users on sections of my website, but I do it through php, not the web server. You can do it with checking the user on each page. It's a little bit more work to make each page, but it works great.

Joined: Sep 2002
Posts: 9
Lurker
Lurker
Offline
Joined: Sep 2002
Posts: 9
actually (yes, I'm a n00b ) that was what I meant to do.... any chance you could explain to me how to do it? or show me with some code?

anything would be helpfull
Cheers
-Cam

#225310 09/26/2002 4:21 PM
Joined: Sep 2002
Posts: 9
Lurker
Lurker
Offline
Joined: Sep 2002
Posts: 9
my post was moved to this new thread...
anyone got any advice?
-Cam

#225311 09/26/2002 5:19 PM
Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
This is how you check for a group.

Make sure cookies are set sitewide, and near the top have this:

$user = $userob -> authenticate('U_Groups');

then put this at the begining of the restricted part of the page. Probably after the menu is sent, at the start of the main body of the page.

if (strpos($user['U_Groups'],'-5-') !== false) {

*******BODY*********

} else {
echo 'You are not authorized or not logged in.';
}

Have your body in the { } of the if statement. Change the 5 to the group number you are checking for. This is a real quick answer, but it works

Sponsored Links
Joined: Sep 2002
Posts: 9
Lurker
Lurker
Offline
Joined: Sep 2002
Posts: 9
what do I have to add before my "page" comes?
any file I can copy and paste this from?
-Cam

#225313 09/27/2002 8:18 AM
Joined: Sep 2002
Posts: 9
Lurker
Lurker
Offline
Joined: Sep 2002
Posts: 9
nm, I've managed
thanks for the help
-Cam

Joined: Jun 2002
Posts: 303
Enthusiast
Enthusiast
Joined: Jun 2002
Posts: 303
I used this last year for our members when we bid new crews. We're going to be bidding again next week for our 2003 work schedules, but I'm getting an error.

Fatal error: Call to a member function on a non-object in /home/natcazjx/public_html/bidding/bidconfig.php on line 4



Here are the first four lines of my script I am building;

<?
require ("../forum/main.inc.php");

$user = $userob -> authenticate('U_Groups');


Any idea why I'm getting this error?


Thanks

#225315 09/28/2002 12:27 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Right before that $user = $userob .... line you need to add:

$userob = new user;



UBB.threads Developer
Joined: Jun 2002
Posts: 303
Enthusiast
Enthusiast
Joined: Jun 2002
Posts: 303
Thanks

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
hatter
hatter
USA
Posts: 69
Joined: January 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
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)