590 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
  • Sells items exclusively on Envato Market
+5 more
CodeSwift says

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 :P, but maybe you have some useful tips for me.

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+7 more
duotive says

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

590 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
  • Sells items exclusively on Envato Market
+5 more
CodeSwift says

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?

164 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+3 more
tonyc says

There is a function in Notepad++ called “Search in files”. It saves me a lot of time!

585 posts Themes and Graphics
  • Has been part of the Envato Community for over 5 years
  • Has referred 50+ members
  • Has sold $250,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+9 more
Bebel says

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 :)

590 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
  • Sells items exclusively on Envato Market
+5 more
CodeSwift says

Thanks! That’s seriously a great way when building the template.

terminalvelocity
terminalvelocity Recent Posts Threads Started
5 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Canada
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
terminalvelocity says

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

http://gskinner.com/RegExr/

201 posts
  • Has referred 200+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Attended one of our Meetups around the world
+4 more
themeva says

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. :)

590 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Made it to the Authors' Hall of Fame
  • Sells items exclusively on Envato Market
+5 more
CodeSwift says

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 :P

by
by
by
by
by
by