![]() |
PHP in template
Hey
I really need help i followed this tutorial to make my own page https://vborg.vbsupport.ru/showthrea...4&page=1&pp=15 it works 100% fine if i add HTML to my custom page BUT I WANT TO ADD php in my custom page and it wont work the page just doesnt run the php commands...its just like EMPTY PAGE can any1 help me? please any1 |
anyone :(
|
You can't use PHP in Templates. Point.
|
umm, yeah, i was having this problem! but, ill show you how 2 fix it ^^
PHP Code:
only do it for your suctom part, the stuff at the top, it alwasy works ^^ PHP Code:
if you get stuck, lme know... |
k
can u explain this please where do i add the PHP code in the code tht u gave me lets say thts my php code <?php echo 'blah blah blah' print ' test' $name= 'test' $name2 = 'test1' echo $name . $name2 echo 'more php stuff ?> How would i do that ? and where do i add the code tht u provide me? do i still use tht tutorial for custom page? |
(yes, you need 2 do teh custom template)
ok, np... PHP Code:
PHP Code:
hope this works ^^ |
useful stuff pyro, thanks
|
No prob, lme know if you need anything!
|
k so pyro the code u gave me is for the template...not the php file right?
|
Quote:
No. The php code goes in the php file. It must be placed before this line: PHP Code:
|
All times are GMT. The time now is 01:06 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:
|