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  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


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 7: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 9:04 AM
User is offline Hooligannes
1443 posts
www.nesinteractivos.com
6th 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 10: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 12:33 PM
User is offline Hooligannes
1443 posts
www.nesinteractivos.com
6th 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 4:15 PM
User is offline ROBAX
1731 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.

 


ZLDNN.COM
We provide commercial DotNetNuke modules.
www.zldnn.com
DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk
Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com

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