Hi, I am hoping that some people can help me with this as I am racking my brains to no avail.
What I am trying to do:
Get username's, Total Members, Board Title to show up on this page
What I've done:
I created a new page called portal.php which has html content with no vb functions and I can't seem to get it to call any user information
Portal.php
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'portal');
define('CSRF_PROTECTION', true);
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('user', 'infractionlevel');
// get special data templates from the datastore
$specialtemplates = array(
'iconcache',
'noavatarperms',
'smiliecache',
'bbcodecache',
);
// pre-cache templates used by all actions
$globaltemplates = array(
'portal_main',
'navbar_portal',
// subscribed threads templates
// subscribed forums templates
// private messages templates
// reputation templates
// infraction templates
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(DIR . '/includes/functions_forumlist.php');
require_once(DIR . '/includes/functions_user.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$userid = $vbulletin->input->clean_gpc('r', 'userid', TYPE_UINT);
$perpage = $vbulletin->input->clean_gpc('r', 'perpage', TYPE_UINT);
$pagenumber = $vbulletin->input->clean_gpc('r', 'pagenumber', TYPE_UINT);
$userinfo = fetch_userinfo($userid);
if (!$vbulletin->userinfo['userid'] OR !($permissions['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']))
{
print_no_permission();
}
// main page:
($hook = vBulletinHook::fetch_hook('usercp_start')) ? eval($hook) : false;
// ############################### start reputation ###############################
// ############################### start pending friends ###############################
// ############################### start visitor messages ###############################
// ############################### start social groups ###############################
// ############################### start picture comments ###############################
// ############################### start private messages ###############################
// ############################### start subscribed forums ###############################
// ############################### start new subscribed to threads ###############################
// if there are some results to show, query the data
// Get Dot Threads
// check to see if there are any threads to display. If there are, do so, otherwise, show message
// draw cp nav bar
construct_usercp_nav('navbar_portal');
$frmjmpsel['usercp'] = 'class="fjsel" selected="selected"';
construct_forum_jump();
($hook = vBulletinHook::fetch_hook('usercp_complete')) ? eval($hook) : false;
eval('$HTML = "' . fetch_template('portal_main') . '";');
// build navbar
$navbits = construct_navbits(array('' => $vbphrase[portal]));
eval('$navbar = "' . fetch_template('navbar_portal') . '";');
if ($_REQUEST['do'] == 'portal' || empty($_REQUEST['do']))
{
$templatename = 'portal_main';
}
eval('print_output("' . fetch_template($templatename) . '");');
?>