vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   own made usercp (https://vborg.vbsupport.ru/showthread.php?t=76958)

n1ckn4me 02-24-2005 08:50 AM

own made usercp
 
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 ??

PHP Code:

// #############################################################################
// 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.


All times are GMT. The time now is 11:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01034 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete