Hi Lynne!
So I'm trying to create an extra page in my UserCP. I'm finding that although it renders the UserCP template correctly it's missing some fields on the left sidebar.
The following don't display:
Inbox, Sent Items, Edit Email & Password, Edit Ignore List, All Moderation Listings(Deleted Items, Moderated Items, New Items)
My code thus far:
PHP Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT', 'shoop');
define('CSRF_PROTECTION', true);
$phrasegroups = array();
$specialtemplates = array();
$globaltemplates = array('USERCP_SHELL',
);
$actiontemplates = array();
require_once('./global.php');
require_once('includes/functions_user.php');
$navbits = construct_navbits(array('' => 'shoop'));
construct_usercp_nav('pokersites');
$navbar = render_navbar_template($navbits);
$pagetitle = 'shoop';
$templater = vB_Template::create('USERCP_SHELL');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
print_output($templater->render());
?>