![]() |
PHP page with my VB forum style
Hi I asked this question here, please read to understand what I am going to ask :)
https://vborg.vbsupport.ru/showthread.php?t=121741 What it is I want is to be able to just have a php pahe with all the code that is needed for the php page like MP3 did here then this template also in the code PHP Code:
Can some one help on this :confused: or is it a big job? |
Hi there,
It seems you are trying to execute PHP (an include) in your template. Wich is not possible, a template is just text that is being read and has no PHP capability's. You should and move that include to your .php file. And use the variables of that file in your templates. Hope this is a little bit clear |
yer thats what I want but I dont know how to add the variables to my php page, as I am not that good on php so I was hoping some one would help me do that bit
Code:
<?php Code:
$stylevar[htmldoctype] |
Move this:
Code:
include('file.php'); PHP Code:
|
is there know way I can do it the other way and just add the template to the php file like these $footer, $header, $navbar etc etc......
that way all I have to do is add the include for the files I need, its just that there scripts these other files |
Not that I know and I woudn't advise it.
The template system is a powerfull tool. Why not take the time and efford to learn how to use it ? |
lol i know how to use the templates section as I have done mods using it, I just want to be able to pull some info from there into some php pages, it must be able to be done as some mod do this.
Can any one help on this?? |
All times are GMT. The time now is 07:05 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:
|