Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-27-2008, 04:55 AM
xXLeighXx2008 xXLeighXx2008 is offline
 
Join Date: Jul 2008
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Coding Error - Please Help

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) . '");');

?>
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09200 seconds
  • Memory Usage 2,873KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete