vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   display Debug Information below mypage (https://vborg.vbsupport.ru/showthread.php?t=202404)

booktoweb 01-20-2009 12:36 AM

display Debug Information below mypage
 
hi,

i have outside page integrated with forum
how can i display Debug Information in the footer when i enabled it ?

Dismounted 01-20-2009 04:57 AM

Debug information is only shown when you utilise vBulletin templates and the vBulletin system.

How to create your own vBulletin-powered page!

booktoweb 01-20-2009 08:39 PM

yes,
i using this way

but Debug information doesn't appear in the footer of page

--------------- Added [DATE]1232495496[/DATE] at [TIME]1232495496[/TIME] ---------------

when i echo $debughtml in functions.php(5657) its appear in header of page
which i have this in my config
PHP Code:

$config['Misc']['debug'] = true

and its working fine inside forum pages

Dismounted 01-21-2009 04:26 AM

Please post the code of your custom page (including templates).

booktoweb 01-21-2009 09:07 PM

PHP Code:

<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_PART''soft');
define('THIS_SCRIPT''soft'); 

// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();

// get special data templates from the datastore
$specialtemplates = array();

// pre-cache templates used by all actions
$globaltemplates = array(
        
// change the lines below to the list of actual templates used in the script
        
'soft_display',
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ########################## REQUIRE BACK-END ############################
chdir('C:/AppServ/www/vb38');
require_once(
FORUM_PATH.'/global.php');

// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################



eval('$navbar = "' fetch_template('navbar') . '";');

eval(
'print_output("' fetch_template('soft_display') . '");');

?>


Dismounted 01-22-2009 03:07 AM

And the template?

BTW, this line:
PHP Code:

require_once(FORUM_PATH.'/global.php'); 

Can be just this:
PHP Code:

require_once('./global.php'); 


booktoweb 01-22-2009 01:01 PM

Quote:

Originally Posted by Dismounted (Post 1720816)
And the template?

BTW, this line:
PHP Code:

require_once(FORUM_PATH.'/global.php'); 

Can be just this:
PHP Code:

require_once('./global.php'); 


this page in outside path not vbulletin directory

this template

HTML Code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$foruminfo[title_clean]</title>
</head>
<body>
$header
$navbar

hello

$footer

everything ok unless debug information doesn't appear else i echo it from functions.php

Marco van Herwaarden 01-22-2009 01:03 PM

Quote:

this page in outside path not vbulletin directory
Then you must first chdir() to the vB directory.

Lynne 01-22-2009 02:09 PM

You template is not complete. You need to have these lines on the bottom after the $footer:

HTML Code:

</body>
</html>


booktoweb 01-24-2009 11:15 PM

Quote:

Originally Posted by Lynne (Post 1721212)
You template is not complete. You need to have these lines on the bottom after the $footer:

HTML Code:

</body>
</html>


thans
that's work :)


All times are GMT. The time now is 01:51 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.01040 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_html_printable
  • (6)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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