![]() |
The making of a "new" php-file.
I've made a whole new .php file that looks about the same a the $header but instead of $forumbits I have my own phpcode. I saved it and placed it in my root....
$stylevar[htmldoctype] $headinclude $header $navbar 65">$vbphrase[mycode_title] 65"> $vbphrase[mycode_body] $footer What do I need to program to make it happen ? Is it something with phpinclude_start ? |
*confused*
$header is a variable containing a parsed template (header), what you posted looks like part of an uncompiled template, you say you've created a new .php file (what's in it?) and you mention phpinclude_start. So ... what do you actually want to achieve? |
sorry for the confusion...
My Idea of phpinclude_start was that you are only to be able to make a code that you could put in your $header or $footer. What I finally want is that I want to have a .php file that doesn't contain the forums but just my own made code that I've put in phpinclude_start... does this make it more clear ? and most of all how is this done ? ps. KirbyDE thanks for your respond anyways... |
No ;)
phpinclude_start will be executed on every page. So if you want your code to be only executed on one page it' suggest to create a new php-file You can use this as a start: PHP Code:
|
This was just want I needed! although you didn't know what I wanted lol :P
I just have to ask what 'myscript' and 'mytemplate' is or with what I need to replace it ? ps. thanks for the pations... |
myscript is just an identifier (used for SQL error reports for example).
mytemplate is the Template that the script should output. If you don't have/need a template: leave the array blank and remove the print_output line (but this will most likely be a pretty boring page then as it does not output anything ;)) |
hmm well I still don't really get it but let me sleep it over :P
I surtenly aprieciate your helping hand !! im just a noob trying to learn :p |
Attach your code so we can see what you are trying to do.
Because without knowing that I can't help much more except giving general advices. |
ok you asked for it :p
I just didn't get it to work and that means I doing something wrong :( The next code is de phpcode I want as a new .php-file... it's called "temp.php" PHP Code:
|
Hmm, I don't see any PHP-Code at all - only a template :)
Save this as a template (mytemplate for example) and use the PHP-File I posted above. |
ey!
ok so this called a template then..hehe So I did what you said...I saved the template as "mytemplate.php" and I saved your earlier code as "facil.php" and uploaded that to my root so I would typ in my browser : myhostdomain.com/facil.php and than I get a blanco page that has as a sourcecode: <html><body></body></html> ?? did I forgot something ? thanks for sticking with me on this one!! |
For information on what $PHP_Include start can do check my sig.
|
Quote:
Got ro youre Admin Control Panel, Select Styles & Templates, Style Manager. Then on the right, from the dropdown select Add New Template, sace it under the name you have in facil.php |
Thanks Michael Morris! I've read your tut before I posted this thread and found it very usefull to understand how about using the phpinclude_start but KirbyDE showed me that it isn't really nessesry for what I wanted to do... thanks for your respond anyways :)
ey KirbyDE.. I know understand how this works! and guess what...IT WORKS!! :D Im sooo glad you sticked to till the end with me!! I learned alot from you! Thanks again for the help and will catch ya soon on the boards I guess ;) |
All times are GMT. The time now is 10:36 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|