590 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 4-5 years
  • Europe
  • Exclusive Author
  • Referred between 50 and 99 users
  • Bought between 100 and 499 items
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
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+2 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 between 100 000 and 250 000 dollars
  • Has been a member for 4-5 years
  • Europe
  • Exclusive Author
  • Referred between 50 and 99 users
  • Bought between 100 and 499 items
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
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
  • Sold between 50 000 and 100 000 dollars
  • Won a Competition
tonyc says

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

548 posts Themes and Graphics
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Elite Author
  • Envato Studio (Microlancer) Beta Tester
  • Europe
  • Exclusive Author
+4 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 between 100 000 and 250 000 dollars
  • Has been a member for 4-5 years
  • Europe
  • Exclusive Author
  • Referred between 50 and 99 users
  • Bought between 100 and 499 items
CodeSwift says

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

terminalvelocity
terminalvelocity Recent Posts Threads Started
5 posts
  • Bought between 1 and 9 items
  • Canada
  • Exclusive Author
  • Has been a member for 3-4 years
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/

197 posts
  • Attended a Community Meetup
  • Elite Author
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 200 and 499 users
  • Sold between 250 000 and 1 000 000 dollars
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 between 100 000 and 250 000 dollars
  • Has been a member for 4-5 years
  • Europe
  • Exclusive Author
  • Referred between 50 and 99 users
  • Bought between 100 and 499 items
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