Hi guys,
First of all i want to say that this community is really awesome. I’m a member since a week (few weeks) and there is lots of useful information here.
Yesterday i submitted my first template to Themeforest, well it’s not my first but it’s the first one that hits Themeforest.
How do you guys solve the “problem” that when you have created all pages for your Site Template and you found a bug, do you fix the bug in all the template files? If it happens one time then it’s not a time-killer but at my first template i had it several times.
A possibility is to write the code without the bug
, but maybe you have some useful tips for me.
- Author had a File in an Envato Bundle
- Author was Featured
- Bought between 1 and 9 items
- Europe
- Exclusive Author
- Has been a member for 2-3 years
- Item was Featured
- Referred between 100 and 199 users
if it has php includes with certain parts of the website you can change a single file, if its all with html your out of luck:( hope i did understand your question:D
I did consider PHP it but isn’t it confusing for the buyer? Now i have a single HTML file of every page.
Are there Site Template with PHP includes for the header, menu, footer etc?
There is a function in Notepad++ called “Search in files”. It saves me a lot of time!
- Author had a File in an Envato Bundle
- Author had a Free File of the Month
- Author was Featured
- Bought between 100 and 499 items
- Europe
- Exclusive Author
- Featured in a Magazine
- Has been a member for 3-4 years
Hey jvanoel,
we had a short interesting discussion about that in this thread: http://themeforest.net/forums/thread/php-includes/30852
Maybe this can help you 
Thanks! That’s seriously a great way when building the template.
This is an old thread but I figured in case someone searches it up and has a similar problem that this will be useful.
Dreamweaver (if you have it I guess) has a fantastic find and replace tool. It can search through multiple files and can search using Regular Expressions. (if you don’t know what RegEx is I guarantee it will be of your benefit to learn it, even though it is a pain)
To give you a 10 second crash course on what RegEx is, is it is patterns, it allows you to search out patterns and apply it to consistent selection of similar things
RegEx has saved my butt a ton when a client asks for some sort of global change that would be impossible to just use a normal find and replace on.
Case and point lets say you have a bunch of img tags and you want to change them into imgs surrounded by anchor tags linking to that image
for example from
<img src="img.jpg" />
to
<a img.jpg href="img.jpg><img src=" />
Now if the source of the image is different throughout all the changes a single find and replace won’t do it but with RegEx you can do a pattern the looks for a string that starts with
<img src="
and then ends in
" />
And then you just tell it to store the middle bit as a variable which is then used in the final replace to add in the anchor tag.
Anyway, good luck!
Also, this RegEx tester is really helpful in creating your patterns. Its designed for As3 but RegEx syntax is pretty much the same all around
I use Windows Grep to help me debug or mass find and replace code. It gives the option to make backups as it goes through the files aswell incase everything goes horribly wrong.
Saved me so much time in the past and works with all files aswell not just web related files. 
I started with .php files now with my new template to include the header, menu and the footer. I have 29 template files and it’s much easier to edit the header now 
