vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Error with custom page (https://vborg.vbsupport.ru/showthread.php?t=157326)

The-Ensemble 09-08-2007 02:27 PM

Error with custom page
 
I created a custom page and I got a problem when trying to make it looks integrated into the USERCP.

The section its having problems with.
PHP Code:

$navbits = array();
// change the line below to contain whatever you want to show in the navbar (title of your custom page)
$navbits[$parent] = 'Custom Page ';


    
// sets the area discription, feel free to change
    
$navbits[''] = "Custom Page";
    
// sets shell template
    
$shelltemplatename 'USERCP_SHELL';



$navbits construct_usercp_nav("$navbits");
eval(
'$navbar = "' fetch_template('navbar') . '";');

// change the line below to contain the name of the actual main output template used in your script
eval('print_output("' fetch_template('customtemp1') . '");'); 

Its says the problem is "construct_usercp_nav("$navbits")" Is this not a correct function or did I do something else wrong with the coding?

Paul M 09-08-2007 03:18 PM

What is the actual error message ?

The-Ensemble 09-08-2007 06:45 PM

"Fatal error: Call to undefined function: construct_usercp_nav() in /X/custompagename.php on line 54"

Thanks for the reply Paul ;)

Opserty 09-08-2007 10:54 PM

You need to include the functions_user.php file from the includes directory in your forum root, as that is where the function is defined ;)

The-Ensemble 09-08-2007 11:47 PM

Quote:

Originally Posted by Opserty (Post 1335084)
You need to include the functions_user.php file from the includes directory in your forum root, as that is where the function is defined ;)

Ok, how would I do this?

ETA moment of complete dumbness there LOL I've done this it has changed nothing, the error message is the same.

Dismounted 09-09-2007 06:25 AM

PHP Code:

require_once(DIR '/includes/functions_user.php'); 



All times are GMT. The time now is 10:25 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.00988 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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