Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Chat About It!  How to Search/Replace Adsense code on 300 page site ?
Previous Previous
 
Next Next
New Post 6/18/2008 8:26 AM
User is offline JohnPL
20 posts
10th Ranked


How to Search/Replace Adsense code on 300 page site ? 

Hello,

I have just inherited a 250 page site based on DNN, there is Adsense present on most pages, all of it with the previous owner Publisher ID.

A: Does anyone know of a smart way to search/replace the Adsense code, or do I have to edit every single box on each of the pages ?

B: Is there any way to centralise Adsense code in one place, and then reference it as an 'include' whenever required ?

Thankyou

John

 

 
New Post 6/18/2008 10:04 AM
Online now... Hooligannes
1599 posts
www.nesinteractivos.com
5th Ranked






Re: How to Search/Replace Adsense code on 300 page site ? 

If it was included as part of an HTML module with the configuration set to Appear in all pages, then you can change it at one single place. The same should be true for the Admin Site Settings for Ad Words.


Do you know the truth when you hear it?
The Dúnadan Raptor
Check My Blog for DNN advice and more
 
New Post 6/18/2008 11:53 AM
User is offline JohnPL
20 posts
10th Ranked


Re: How to Search/Replace Adsense code on 300 page site ? 

No, its amazing, every time the guy built a new page he tells me he cut paste the Adsense code out of notepad !

My background is classic .asp, and for this kind of problem I would just load up the site in Visual Web Developer and do a sitewide Search/Replace.

Is there no equivalent method with a DNN site  ? or is all the content stored in the Db ? 

I am real reluctant to go searching through the SQL tables without a proper schema that tells me where to look.

Any ideas ?

John

 

 

 

 
New Post 6/18/2008 1:33 PM
Online now... Hooligannes
1599 posts
www.nesinteractivos.com
5th Ranked






Re: How to Search/Replace Adsense code on 300 page site ? 

The content is in the DB. It is possible to run a SQL Script that looks for the ad sense script and replaces it with the new one. However it makes more sense to use the Show in All Pages alternative after deleting all manual instances.


Do you know the truth when you hear it?
The Dúnadan Raptor
Check My Blog for DNN advice and more
 
New Post 6/18/2008 5:15 PM
User is offline ROBAX
1875 posts
5th Ranked


Re: How to Search/Replace Adsense code on 300 page site ? 

If the code is pasted into Text/HTML modules, back up your db and then use this free and handy module to find and replace the ID:

http://www.engagemodules.com/Modules/EngageF3/tabid/64/Default.aspx

Rob

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Chat About It!  How to Search/Replace Adsense code on 300 page site ?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNMasters - modules, consulting, development
DNNMasters developers are involved in DNN development since DNN 1.0.9 and today we offer a broad range of DNN related products and services including custom development of modules, help with ing third party modules for specific needs, general DNN technical support and administrative services.
www.dnnmasters.com
Cygnusoft Custom Software
Cygnusoft has been providing cutting-edge custom software solutions for 20 years. Cygnusoft is also a leading start-up incubator, helping our partners build successful new businesses.
www.cygnusoft.com
Digicon: DotNetNuke design and development
Digicon is based in Brisbane, Queensland, Australia
digicon.com.au

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP