Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Ah, but being dangerous is fun.

The best source to figure out how the styles work and how authentication works is ultimatebb.cgi itself.

The styles are pretty straightforward... pretty much everything from the old Styles.file is there, as well as the header/footer from UltBB.setup. The trick is that they're in a hash... Ted didn't use hashes much back in the 5 series - are you familiar with their use?

Inside the code, the vars_style files are never really touched manually - that's all delegated to the LoadStyleTemplate subroutine. Check out part of ultimatebb.cgi, around line 130, starting with "if(defined $templatefile) {"

verify_id is also straightforward.. pass it a username and password, and it will return the PDN, daysprune, user number, modq flag, PNTF pref, and avatar prefs for the user. You can then use the user number to open up the profile. Check out the code in the do_login block in ultimatebb.cgi, around line 340.

Do beware the verify_id will throw StandardHTML if the user authentication fails. If you need to just auth the user, then you'll need to do so manually.

Now, actually using these subs can be a real pain... you can't just include the library and call the functions, as there are certain globals that need to be present.

Off the top of my head, you'll need, in order:

vars_config, vars_display, vars_misc, vars_wordlets, vars_wordlets_err, ubb_lin, ubb_lib_filehandler, ubb_lib_filehandle, ubb_lib_files, ubb_lib_time....

Don't forget to initialize the filehandler! You'll probably also need to load public_common, or at least provide the subs it contains...

Check out the code around line 80 of ultimatebb.cgi to see how all this is done...

Overwhelmed yet? smile

Getting that redirect trick done might be a real pain... all the transitions are handled by sub Transition in public_common, but it can only take one URL as an argument. Hijacking it to be able to take additional URLs would probably be the best route.


UBB.classic: Love it or hate it, it was mine.
Sponsored Links
Entire Thread
Subject Posted By Posted
finally upgraded from 5.47 to 6.4 wpg 02/06/2003 11:46 PM
Re: finally upgraded from 5.47 to 6.4 wpg 02/06/2003 11:48 PM
Re: finally upgraded from 5.47 to 6.4 PrimeTime 02/07/2003 2:09 AM
Re: finally upgraded from 5.47 to 6.4 PrimeTime 02/07/2003 2:19 AM
Re: finally upgraded from 5.47 to 6.4 wpg 02/07/2003 9:08 AM
Re: finally upgraded from 5.47 to 6.4 wpg 02/08/2003 3:31 AM
Re: finally upgraded from 5.47 to 6.4 wpg 02/09/2003 12:01 AM
Re: finally upgraded from 5.47 to 6.4 Charles Capps 02/09/2003 2:02 AM
Re: finally upgraded from 5.47 to 6.4 wpg 02/09/2003 5:56 AM
Re: finally upgraded from 5.47 to 6.4 wpg 02/09/2003 7:45 AM
Re: finally upgraded from 5.47 to 6.4 Charles Capps 02/09/2003 11:26 PM
Re: finally upgraded from 5.47 to 6.4 PrimeTime 02/10/2003 2:17 PM

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)