Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 
Play Blast Billiards on your PC desktop! This downloadable game features six of the best levels from Original, Trick, Ultimate and Deluxe Blast Billiards!


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
Robbouk
regular


Reg'd: Sat
Posts: 19
Loc: Nottingham, UK
Changing some text on lots of webpages
      #66788 - Tue May 11 2004 11:16 AM

Hi everyone.

I have a website which contains a lot of pages, and I want to change the copyright on all of them, but I don't really want to load up each page one by one and manually change them.

Is there a program which will do it automatically?

Something along the lines of you type in what text you want changing and it searches all of the pages you have selected and changes that particular text, or you type in the HTML code that you want changing and it changes it.

Any suggestions?

Many thanks.
Kind Regards.
Anthony Robinson.
Anthony Robinson
anthonyruk@msn.com


Post Extras: Print Post   Remind Me!   Notify Moderator  
clum111
regular


Reg'd: Wed
Posts: 437
Re: Changing some text on lots of webpages [Re: Robbouk]
      #66797 - Tue May 11 2004 11:31 AM

Good question, as I want to change certain things on my web site on every page, but it isn't just text I want to change. I want to change images and other links that appears on each page. So I'll be interested in what replies you get.


Post Extras: Print Post   Remind Me!   Notify Moderator  
TheFatControlleRAdministrator
Forum Admin


Reg'd: Fri
Posts: 6650
Loc: Megatripolis
Re: Changing some text on lots of webpages [Re: Robbouk]
      #66866 - Tue May 11 2004 03:01 PM

Do you use an HTML editing program, or are you a hand coder?
TFC
Nothing is a problem for me...


Post Extras: Print Post   Remind Me!   Notify Moderator  
Robbouk
regular


Reg'd: Sat
Posts: 19
Loc: Nottingham, UK
Re: Changing some text on lots of webpages [Re: TheFatControlleR]
      #66869 - Tue May 11 2004 03:09 PM

Hi.
I made the pages in Macromedia DreamWeaver, but I have hand coded before, just not on this particular website.
Anthony Robinson
anthonyruk@msn.com


Post Extras: Print Post   Remind Me!   Notify Moderator  
t34WRJ
new user


Reg'd: Sat
Posts: 7
Re: Changing some text on lots of webpages [Re: Robbouk]
      #66878 - Tue May 11 2004 03:22 PM

Anthony

There's a shareware program called EditPad Pro that will let you open up all of your web site pages. Then you can go to 'edit' and 'search and replace' to change the same text in all of your HTML documents.

You can download it from www.editpadpro.com

Cheers

James
Web Design and Search Engine Optimisation (SEO)
- www.jameswellburn.co.uk


Post Extras: Print Post   Remind Me!   Notify Moderator  
TheFatControlleRAdministrator
Forum Admin


Reg'd: Fri
Posts: 6650
Loc: Megatripolis
Re: Changing some text on lots of webpages [Re: Robbouk]
      #66892 - Tue May 11 2004 04:30 PM

Stick with Dreamweaver.

Open any page with the text you want to change in code view.

Select the coding to be altered, right-click and select replace (the selected code should appear in then first text-box).

Enter the new coding in the second text-box.

Using the drop-down menu choose all documents in site (working from memory - may be slightly different).

Then either click, Replace or Replace all (make sure you have it right - -or make a copy of the site, just in case).

As an alternative for the future, create your copyright text and save as a Library item (thus when you change the library item all references to it on the site are updated automatically).

There is a Dreamweaver extension available that will automatically change your copyright date to the current year - therefore future-proofing the copyright info.
TFC
Nothing is a problem for me...


Post Extras: Print Post   Remind Me!   Notify Moderator  
gollum
regular


Reg'd: Wed
Posts: 278
Re: Changing some text on lots of webpages [Re: Robbouk]
      #67071 - Wed May 12 2004 01:01 AM

ServerSide Includes (SSI) are a slightly more technical solution if your webhost supports it. I think they are an extension of CGI. Basically, you include a line like this:

When the server parses the document, it will replace that line with the document footer.txt. When you want to change the copyright info, just update footer.txt (or what ever you call it) and it will be picked up. The only downside to this is that you have to name your pages with the extension of .shtml instead of .html
I think any host that supports CGI should support SSI.

HTH


Post Extras: Print Post   Remind Me!   Notify Moderator  
ianm
regular


Reg'd: Fri
Posts: 347
Loc: Colchester
Re: Changing some text on lots of webpages [Re: Robbouk]
      #67074 - Wed May 12 2004 01:23 AM

As Gollum states Server side includes are the way to go. The way i do this is with php, php works with just about all major web host servers.

Take out your footer and put it on a page by itself, put just the html code you need there ie miss out the all the tags like <html> <title> <body>, put just the text or code you want on this page, then save it with the extension .php or .htm. To make things easier put it in a folder called includes,

ok now where your footer is on your page take it out and replace it with this

<?PHP include("includes/footer.php") ?>

the bit inside the brackets should point to the location of your include that now includes your footer, now all you have to do is upload the footer include and your updated pages and as soon as the server sees the page with a .php extension it will act on any php code on that page, in this case it will stick your include page in where that bit of php code is, next time you want to update it just make changes to the include.php file and your done.

I use includes moslty for links, and my header information. In dreamweaver as soon as it sees the php include it will view a bit strange depending on where on the page your include is, the easiest way around this is just go to the include script ie
<?PHP include("includes/htmlheader.php") ?> and just delete the word php and then the page will view ok in dreamweaver while you make changes, but remember to put the php back once your done.

There are many ways to do this but thats how i do it.

Regards Ian


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 13 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 189

Contact Us | Privacy statement Main website