Forum Moderators: skibum
I was told Dreamweaver does the trick, could someone care to explain? I don’t know where to start.
or if anyone else have any ideas on what tools/codes to use so I can do this modifcation without going through 200 text file pages?
Also, For example, if I wanted to play around with the position of my ads in the content page, going through 200 pages is a nightmare.
I think this is not a Php issue, is more of using a tool (possible dreamweaver) that would help me play around with the content of all my pages at once, such as adding a word or simle code or table.
Thanks for yoru help.
As far as ads in the articles or content itself u have to build a template system to achieve what your looking for.
That has nothing to do with the header or footer. Its got to do with the middle (content) aspect.
[edited by: jaames at 10:01 pm (utc) on Sep. 21, 2005]
The common stylesheet linked to each page handles the appearance of elements including their positioning.
And as already mentioned use php includes for any repeating sections like headers and footers.
You find the code you want to change and then choose a folder in which you need this code replaced with something else, or open only few selected files from the folder and change it only in the open files.
I use it all the time, it supports regular expressions, you can also find particular tag, let's say, <td> which has an attribute class=header and replace it throughout the site with, for example, <td class=somethingelse height="30" align=center> and so on...
And yes, it changes all files at once, you don't have to go manually through all of them.
Hope this helps.
I was wondering if there was a tool that i can find and replace for all the 200 pages.
I use Notetab rather than DW, but it makes quick work of a global search and replace.
I'm not very good at WYSIWYG and much prefer using a versatile text editor. The free version of Notetab is probably not the best text editor in the universe, but I'm very comfortable with it.
Open any one of the files you want to change, select and copy the text or code you want to change, press ctrl+f to bring up the find and replace box. Put the original code in the top, then the new replacement code below it. Then at the top you can select where/what you want to replace ie. in one file, all files in one folder, entire local site etc. Click replace all and watch the magic!
I just wanted to let you know, most PHP developers never run into this problem once they've been coding for a while. In fact, it's probably the first problem that they deal with.
You might want to look into a templating system. I have a site with over 2000 "pages". I have about 5 files that run about 95% of the site. And other 10 files that do the rest.
It's extremely easy to update your site if you are using a database backend, a template system, and correct XHTML and CSS.
Click Find Next first and see what it finds. If this is correct hit replace. Now go back and see what it has replaced just to make sure this is correct. If everything looks ok, try a few more like this, and if you are happy then you can go for the big one. Open the find and replace again and this time choose replace all. You probably get a warning, but if you are happy go ahead.
This is the way I used to change thousands of pages at once - very simple and a GREAT time saver! Imagine changing each file by hand?! Make sure when you do this though that you include enough around the find text to make it unique to what you are finding. I have now moved to Mysql, templated system and it works sooo much better =)
Hope this helps.