vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

amcd 07-28-2008 05:02 AM

Quote:

Originally Posted by Digital Jedi (Post 1585687)
PHP Code:

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

You never changed TEST on this line to your template name.

What's what I told him, too. But he said it doesn't work.

Digital Jedi 07-28-2008 05:11 AM

Quote:

Originally Posted by amcd (Post 1585698)
What's what I told him, too. But he said it doesn't work.

Yes, but for some reason you also told him to change

PHP Code:

$navbits[$parent] = 'MK1'

to
PHP Code:

 $navbits[$parent] = 'Mortal Combat blah blah'

Which is likely why it didn't work.

Quote:

Originally Posted by amcd (Post 1585091)
Code:

$navbits = array();
$navbits[$parent] = 'MK1';
 
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('TEST') . '");');

change this to

Code:

$navbits = array();
$navbits[$parent] = 'Mortal Combat blah blah';
 
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('MK1') . '");');



Goomzee 07-28-2008 12:16 PM

i don;t understand why it's not working where as file is still there

Digital Jedi 07-28-2008 01:14 PM

In chdir('/home/username/public_html/content/mkgames/mk1/');, did you actually put in your username, or did you just leave it like this?

amcd 07-28-2008 05:27 PM

Quote:

Originally Posted by Goomzee (Post 1585913)
i don;t understand why it's not working where as file is still there

A completely blank page usually means php error. See the php error log.

Keesa 07-29-2008 04:40 AM

Hi there,

Do you know how I could edit this template or .php file so that the Notices do not show up if they are active?

Thank you so much for your help!

stevectaylor 07-29-2008 09:48 AM

I Like it, do you know how to add the tag box too it?

mauriceo 07-29-2008 07:54 PM

It must be me but i don't know in wich directory i have to put the template file. Ive uploaded the test.php in the root directory of vbulletin but i can't find a folder with templates to put the test.tpl in. Can anybody tell me what i'm doing wrong?

edit: I've found the way to add templates but when i go to the test.php i've a blanc page.
Quote:

Originally Posted by amcd (Post 1586113)
A completely blank page usually means php error. See the php error log.

Where can i find this error logs... i know i'm a beginner.

Digital Jedi 07-30-2008 12:44 AM

Quote:

Originally Posted by mauriceo (Post 1586902)
It must be me but i don't know in wich directory i have to put the template file. Ive uploaded the test.php in the root directory of vbulletin but i can't find a folder with templates to put the test.tpl in. Can anybody tell me what i'm doing wrong?

edit: I've found the way to add templates but when i go to the test.php i've a blanc page.
Where can i find this error logs... i know i'm a beginner.

Templates are created in the Admin CP in the Style Manager, they're not part of any directory. Make sure the template name is exactly the same as where it's referred to in the PHP code.

mauriceo 07-30-2008 03:04 AM

I've copied unchanged the exact text from the first post (test.php and the template test)


All times are GMT. The time now is 12:13 AM.

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.03530 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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