View Full Version : PHP Coding - Custom Template
amhost
11-23-2004, 07:30 PM
When developing a custom template, is it possible to create the index file as a php file or does it have to be htm or html file?
Cameron Allen
11-23-2004, 09:04 PM
It needs to be index.html, but you can include the #CUSTOMINC# into your template. What this days is pull an include and place it on the temlate where ever you have the #CUSTOMINC# tag. Next you have to rename your php include to includethis.inc and include it in the same folder that the index.html is in for the custom template. The #CUSTOMINC# tag pulls includethis.inc . You can add additional php includes by using #CUSTOMINC2# which would pull from includethis2.inc and so on. Let me know if this is not clear enough for you, I know this can get a bit confusing.
amhost
11-24-2004, 12:17 AM
Hey that was a perfect explanation. I appreciate your help. Thanks!
builtsmarter
11-29-2004, 05:21 AM
I have a question on this. If we include a file like file.inc can that file.inc be editable via the tool? Another words I'm wanting to include a page that a editor can edit. So if I had a include.inc which really was content from include.html could that be editabel throught he WYSIWYG tool?
Cameron Allen
11-29-2004, 06:57 PM
Currently we don't have a way to edit includes once they are uploaded. This is a great idea though, I will go ahead and add this to requested features.
jimromo
04-20-2006, 03:44 PM
It needs to be index.html, but you can include the #CUSTOMINC# into your template. What this days is pull an include and place it on the temlate where ever you have the #CUSTOMINC# tag. Next you have to rename your php include to includethis.inc and include it in the same folder that the index.html is in for the custom template. The #CUSTOMINC# tag pulls includethis.inc . You can add additional php includes by using #CUSTOMINC2# which would pull from includethis2.inc and so on. Let me know if this is not clear enough for you, I know this can get a bit confusing.
Cameron,
I'm trying to include some php code in a custom template. I'm running
"Soholaunch SMT Version 4.5 Build 050805.
First, with this version, you don't need to have your template named 'index.html'.
However, I named my template index.html, i placed the #CUSTOMINC# tag and also placed the includethis.inc file in the same directory as the custom template.
However, when I bring up the page I just see the #CUSTOMINC# , and it is not being replaced.
Is this supported in the version used by my hosting company? Is there any other way to get php code to run in my template?
Thanks,
Jim
lwyau
04-20-2006, 05:44 PM
What Cameron described does not work with 4.5.
However, you can use the #CUSTOMPHP# tag in your custom template and uploaded template_include.inc using File Manager to do the same.
rocky
10-11-2006, 01:51 AM
What Cameron described does not work with 4.5.
However, you can use the #CUSTOMPHP# tag in your custom template and uploaded template_include.inc using File Manager to do the same.
template_include.inc????
i know what this file..but what is on this file...???
lwyau
10-11-2006, 08:19 AM
It is a PHP script doing whatever you want with the template.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.