Forum Moderators: martinibuster

Message Too Old, No Replies

I want to change all my styles at once

How can I do this

         

ganderla

3:45 am on Dec 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would like the ability to change the coloring of ads for all the pages in a one shot deal, instead of changing every single page. Does anyone know how this can be acomplished?

TheNige

3:48 am on Dec 6, 2003 (gmt 0)

10+ Year Member



I'm assuming that you copied and pasted the AdSense code to all of you pages individually. You'll have to open them all up and do a find-->replace. There are some text editors out there that do it well for many files at once.

If you are using anything like PHP or ASP the best thing is to make an include file for your Adsense code, that way you only have to change it in once place and it updates your whole site.

tombola

7:29 am on Dec 6, 2003 (gmt 0)

10+ Year Member



Write a small Perl script that opens all files and replaces the "old" Adsense code with the new one. You can run this script on your server, so you don't need to download these files in order to change 'm.

eaden

7:51 am on Dec 6, 2003 (gmt 0)

10+ Year Member



You could use an external javascript file so you only have to change it once.

Mario

11:49 am on Dec 6, 2003 (gmt 0)

10+ Year Member



You can do this quite easily in any version of Dreamweaver with find and replace for the whole site - you don't need to have the files open either - just click on the appropriate folder in site view.

fatpeter

2:20 pm on Dec 6, 2003 (gmt 0)

10+ Year Member



Thankyou Mario

I'm not too clever on all this stuff so the last three times i went through the toil of 125 pages manually.

Just did the whole lot in 5 minutes with dreamweaver.

Andy

ganderla

3:21 pm on Dec 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thank you all, I appreciate it.

mailtojitendra

7:27 pm on Dec 6, 2003 (gmt 0)

10+ Year Member



There are many ways in which you can do this

1. Define a website in Dremweaver and find and replace the code, but be careful because this cannot be undone. Better take a backup.

2. Use Editplus like text editor, this is convinent as it saves all files at a time and also makes backups.

3. Use Server side scripts , like perl or PHP scripts, but be careful while you make the changes, try one file for testing if it is successfull try other changes.

4. Make your pages a bit dynamic, Use include files, these are very easy to manage and maintain.

5. Use Adserving software, for example PHPadsnew, this is very convineint and you can also count the number of ads served.

6. Many people use External javascripts, but i dont recommend them as they can server Psa ads.

Have fun