ThemeForest

Question for Site Template Authors

860 posts
  • Microlancer Beta Tester
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 and 1 000 dollars
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Most Wanted Bounty Winner
  • Grew a moustache for the Envato Movember competition
infuse01 says

Hi everybody,

Lately I’ve been wondering how do you create your Site Templates. Sometimes when I create a Site Template I’m rather using PHP for including files or outsource the settings into a separate file.

But how do you do?

Are you also making .php files with your site template. For sure, for a contact form you’re most likely using PHP , isn’t it? Is it allowed in the Site Template Section to upload site templates with PHP Files? Any troubles?

Thanks in advance

134 posts
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 1 000 and 5 000 dollars
  • Romania
DanThemes says

I use only .html for the page of the theme (for the contact page as well, and yes the contact form is working) and .php for the scripts (obviously :D ), because although it takes more time I find it to be a lot easier to customize.

860 posts
  • Microlancer Beta Tester
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 and 1 000 dollars
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Most Wanted Bounty Winner
  • Grew a moustache for the Envato Movember competition
infuse01 says

So I guess it’s allowed to use PHP Files in Site Templates. How do you integrate some sort of settings or when your client has modified the template how can he/she get updates without the need of re-modifying again?

170 posts I'm a Husky Designer
  • Elite Author
  • Exclusive Author
  • Has been a member for 3-4 years
  • Interviewed on the Envato Notes blog
  • Sold between 100 000 and 250 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
designcrumbs says

An HTML version of your template is required. You can make it in PHP even as the primary version, but you must include an HTML version as well. Thems the rules.

136 posts The Joomla Guy
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Most Wanted Bounty Winner
  • Bought between 100 and 499 items
  • Referred between 200 and 499 users
  • Romania
+3 more
hogash says

Good question!

I always include the html files but also some php “helpers” like: contact form script, a php gallery file (it ease up adding images to gallery), timthumb (php image resizer) etc.

I personally would’ve liked if it was a php version where i could include a single menu.php file, footer.php file, header etc. but there are just few users who use this technique so i think it’s better to have all files html (or mostly).

Good luck!

by
by
by
by
by