PDA

View Full Version : What am i doing wrong?


Khoori7
03-29-2014, 01:05 AM
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
@set_time_limit(0);

// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('style');
$specialtemplates = array('products');

// ########################## REQUIRE BACK-END ############################
require_once('./global.php');
require_once(DIR . '/includes/adminfunctions_template.php');

print_cp_header();
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminstyles'))
{
print_cp_no_permission();
}
if ($_REQUEST['do'] == 'forum') {

$vbulletin->input->clean_array_gpc('r', array(
'pagenumber' => TYPE_UINT,
));

$perpage = 100;
if (!$vbulletin->GPC['pagenumber'])
{
$vbulletin->GPC['pagenumber'] = 1;
}
$start = ($vbulletin->GPC['pagenumber'] - 1) * $perpage;

$headercell = array(
$vbphrase['ID'],
$vbphrase['Username'],
$vbphrase['Amount'],
$vbphrase['Name of Item'],
$vbphrase['Status']


);
}

print_cp_footer();
?>


I'm trying to make a page like the ban page to show my donation logs on it.. but.. it doesn't show anything..
http://i.imgur.com/44xIgHh.png

Also the annoying footer keeps staying up everytime.. doesn't go bellow.

ozzy47
03-29-2014, 01:12 AM
Cause you are not calling for any info from the database.

Khoori7
03-29-2014, 01:28 AM
But I just want it to show this.
http://i.imgur.com/5ha76pQ.png
but ofc with my names.

ozzy47
03-29-2014, 01:34 AM
I would suggest looking at this mod I coded for DBTech, https://vborg.vbsupport.ru/showthread.php?t=298033

Look at the file dbtech_search_log in the admincp folder, that is a proper way to write the page.