vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   What am i doing wrong? (https://vborg.vbsupport.ru/showthread.php?t=310008)

Khoori7 03-29-2014 01:05 AM

What am i doing wrong?
 
Code:

<?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.


All times are GMT. The time now is 07:30 AM.

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.00961 seconds
  • Memory Usage 1,717KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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