![]() |
Call a template
I'm new to all of this. I'm installing a "Video Game Cheats" hack. Basically I'm setting it up so that the information is in a template and I'd create an index page that would call the template.
My question is: What is the PHP code that would call the template? Thanks! |
PHP Code:
|
I put exactly what you said (added the template name of course). And I got the following error:
Warning: main(./global.php): failed to open stream: No such file or directory in /home/theraven/public_html/cheats/index.php on line 5 What does that mean? |
It means that index.php is not in the same directory as global.php.
If you want to call the template from outside your forum directory you can try this instead: PHP Code:
|
What i did was put the following in member.php:
PHP Code:
|
PHP Code:
|
I knew someone would jump in who really knew what they were doing. Thanks guys. ;)
|
Always use single quotes on strings and double quotes on strings containing variables :)
Makes the script faster... - miSt |
I seriously doubt it makes the script faster than an msec...I always use double-quotes everywhere for consistency except for array keys. :)
|
Thanks for your help, I'm having just one more problem.
I'm using index.php to call the template. How do I eliminate the other elements on the page? The template keeps getting generating the index page and then it puts the template stuff at the bottom. |
All times are GMT. The time now is 01:01 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:
|