I was wondering if UBB provides a mechanism for creating custom pages so that I could add pages to a UBB installation and leverage its login mechanism, etc., as opposed to adding UBB to a site with stand alone custom pages?
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#231988 - 12/10/0909:48 AMRe: Does UBB provide a mechanism for custom pages?
[Re: AmyGraper]
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Yes, there is a sample script and template included with the software that you can use to include your own pages within. By modifying the samples you can create as many custom pages as you want which will have access to all of the ubb functions, login, etc.
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
Originally Posted By: Rick
Yes, there is a sample script and template included with the software that you can use to include your own pages within. By modifying the samples you can create as many custom pages as you want which will have access to all of the ubb functions, login, etc.
there is? I gotta read my documentation! lol
_________________________
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
It's one of those undocumented things (We will be better at this with 8.0, I promise . But inside the scripts directory is a sample.inc.php file and inside the templates/default directory is a sample.tpl file. Both commented so they are pretty easy to follow.
Registered: 05/13/08
Posts: 596
Loc: Coast of Maine
I will have to check this out later when I have a few minutes.
_________________________
"No matter where you go, there you are." "If you can't do something smart, Do something right" "There are three kinds of people in the world, those who can count, and those who can't"
Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
if you want a good easy to follow example of a custom script, go to UBBDev and download my pJIRC addon and compare it to the sample page; you'll see how to call just about anything
Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Well, the pJIRC does a better job of showing how things work than the wrapper... Though the wrapper is great if you just want to wrap pages into the UBB with little know-how needed...