Log in

View Full Version : own made usercp


n1ckn4me
02-24-2005, 08:50 AM
Hi there,
I trying to make my own usercp where the user can read te facilities at the board im running. Is the following code going to help me with that ??

// ################################################## ###########################
// spit out final HTML if we have got this far

if ($templatename != '')
{
// make navbar
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');

// shell template
eval('$HTML = "' . fetch_template($templatename) . '";');
eval('print_output("' . fetch_template($shelltemplatename) . '");');
}

Thanks in advanced!

Colin F
02-24-2005, 09:57 AM
Well, it will most likely help you.

What you see here is just the process of fetching / printing the templates, and in this case there's the speciality that the content is saved in $HTML, and the whole thing is echoed out with the shell.

n1ckn4me
02-27-2005, 08:55 PM
ok thanks for the pointout...


I was wondering how I was able to use it or more effectively...how do I make my own usercp ?

thanks in advanced!

Brad
02-28-2005, 03:38 PM
What exactly are you trying to do? From what I can gather you are trying to make a seperate user cp instead of using the one included in vB...

Why? You will have to write alot of php code (or do a copy/paste/adabt). If you are just looking to change the design of the usercp you can do so via the admin cp with the templates.

In almost any chase it will probbly be easier to modify the existing code then writting new code.