![]() |
Quote:
If you are wanting to register that variable on each page for use in the template, you need to put that line inbetween the $templater = vB_Template::create('whatever_template') and the $templater->render() lines. edit: Or actually, you may be able to just preregister it at the top of you page for the template. See the article I link to in my first post to find out about preregistering variables. |
Replace the line:
require_one ./gobal With: PHP Code:
|
Quote:
I create new my.php file. and do define this scripts refer to template files. Regards. --------------- Added [DATE]1258599895[/DATE] at [TIME]1258599895[/TIME] --------------- Quote:
|
Quote:
PHP Code:
|
Quote:
|
What's with
PHP Code:
Some files in vB4 have it^^ |
You may need to add those lines depending on what you do in your code. But, every page doesn't need those lines. I *think*, but I'm not positive, that if you have hooks in your page, you will want to include those lines. But, since usually there aren't any hooks added into a custom page, then those lines aren't needed.
|
Brilliant, thank you Lynne.:up:
|
I've set this up on my test site, and it works OK while i'm logged in, but when I'm not logged in, and I visit this custom page, I just get a plain white screen.
looking at a source of this plain white pages shows me: Code:
<!-- BEGIN TEMPLATE: dkp_template --> Code:
{vb:stylevar htmldoctype} |
Quote:
|
All times are GMT. The time now is 06:12 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|