vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Some basics of vB3(mini howto) (https://vborg.vbsupport.ru/showthread.php?t=59939)

Zachery 01-09-2004 03:49 PM

[high]* Faranth is now confused :([/high]

MindTrix 01-09-2004 04:18 PM

Yup that was my main aim :) Lol, nah i meant at first that it was confusing because i was reading too fast, and still scratching up on the ol' PHP

Zachery 01-09-2004 04:19 PM

Quote:

Originally Posted by MindTrix
Yup that was my main aim :) Lol, nah i meant at first that it was confusing because i was reading too fast, and still scratching up on the ol' PHP

you worried me for a moment :P

:) hope it helped

Floris 01-09-2004 04:50 PM

Quote:

Originally Posted by Faranth
you worried me for a moment :P

:) hope it helped

Good job faranth, looks complete and hopefully helps some noobs :)

Zachery 01-10-2004 02:28 AM

Quote:

Originally Posted by Mr. HillBilly
Nice jobs, could you make a mini guide for making templates?

whatcha mean? templates are simple to make, its just html >.<

Brad 01-10-2004 05:22 AM

Hi, I notcied one error with the action templates call. It should be:

PHP Code:

$actiontemplates = array(
                            
'small' => array(
                                                     
'other'
                                                    
)
); 

:)

Zachery 01-10-2004 05:23 AM

whatchu talkin about foo :P

Mr. HillBilly 01-10-2004 06:32 AM

Thanks much for the guide!

I made a page, first time I've ever done it.

http://ph33rnet.com/uc.php

rrottman 01-11-2004 07:49 PM

Faranth, any hint:
I copied the first code block (the very easy one :-) ) and tried it: Nothing gets displayed. Any hint?

rrottman 01-11-2004 07:52 PM

I created a new, empty file. This is all and exactly what's in there:

PHP Code:

<?php
    chdir
("./forum");
    
error_reporting(E_ALL & ~E_NOTICE);
    
$globaltemplates = array('main');
    require_once(
"./global.php");
    eval(
'print_output("' fetch_template('main') . '");');
?>

It's saved as index.php in the website root, while vB sits in /forum.
If I open http://www.mydomain.com in a browser, this is what I receive:

HTML Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>

Any idea?
For troubleshooting I replaced the print_output with:

echo fetch_template('main');

and received an empty string, too.

Please help.


All times are GMT. The time now is 11:32 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.05083 seconds
  • Memory Usage 1,742KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete