View Single Post
Old 05-23-2006, 10:49 PM  
Quickdraw
Confirmed User
 
Join Date: Mar 2004
Location: → → →
Posts: 1,717
Quote:
Originally Posted by Sosa
heh try editing 1000+ html pages chaning out some linking code that is different for every 10 pages. talk abotu time consuming. I should get a php script to do it
In Dreamweaver? I posted this a while back-- I had the same problem-- Just have to

After spending some time trying to figure out how to get rid of sponsor links in a fast way across an entire 'static' site, I (finally) discovered Dreamweaver can successfully use Regular Expressions to find the list of everchanging styles of links, whether they be banners or different text.

Check the regular expressions box in the 'Search for' panel
This goes in the 'Search For' box when finding within your source code option.
Code:
<a(.*?)(SOMETHING_IN_URL_UNIQUE_LIKE_YOUR_AFF_ID)(.*?)">(.*?\s*?.*?)</a>
If you want to save some of the data just use $1, $2, $3, respectively for each set of parentheses. If you wanted to keep the linking text(or image) you would use $4 somewhere within your 'Replace With' box. Of course if you are using banners using $4 will just leaved an unlinked sponsor banner.

Anyway, I know it's nothing special, but might save someone some time.
Oh, and if you use Dreamweaver this url might come in handy before your next crash.
http://mm-exporter.joexx.de/
Quickdraw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote