The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 ? |
#2
|
||||
|
||||
*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? |
#3
|
|||
|
|||
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... |
#4
|
||||
|
||||
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:
|
#5
|
|||
|
|||
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... |
#6
|
||||
|
||||
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 ) |
#7
|
|||
|
|||
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 |
#8
|
||||
|
||||
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. |
#9
|
|||
|
|||
ok you asked for it
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:
|
#10
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|