Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-02-2006, 12:42 PM   #1
Quickdraw
Confirmed User
 
Join Date: Mar 2004
Location: → → →
Posts: 1,717
Changing links sitewide in Dreamweaver

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.
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/

Last edited by Quickdraw; 05-02-2006 at 12:43 PM..
Quickdraw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2006, 07:52 AM   #2
Quickdraw
Confirmed User
 
Join Date: Mar 2004
Location: → → →
Posts: 1,717
only 12 views
Maybe I should add a sig and become an unsuccessful board whore

Going against RRRed's advice and bumping my own thread
Quickdraw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2006, 08:26 AM   #3
Shok
Confirmed User
 
Shok's Avatar
 
Join Date: Apr 2001
Location: LIVE EVIL
Posts: 5,611
not really sure what your trying to say.

But changing links site wide on dreamweaver is very simple, jusy hit CTRL F and make the change there and hit go.
Shok is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2006, 08:54 AM   #4
Quickdraw
Confirmed User
 
Join Date: Mar 2004
Location: → → →
Posts: 1,717
Quote:
Originally Posted by Shok
not really sure what your trying to say.

But changing links site wide on dreamweaver is very simple, jusy hit CTRL F and make the change there and hit go.
It was the use of REGEX or regular expressions within Dreamweaver that excited me. If all the links were identical, regex wouldn't be needed. Of course there are many programs that allow this, but I was happy not to have to open another program.

I purchased a network of sites from a guy that did everything 'static', so when his sponsor changed the way they worked he got frustrated and quit basically as his links were all out of date, and fixing them was more a pain than he wanted.
All his codes were different as each link went to different sites/campaigns with that sponsor, so just doing a 'specific tag' search for a specific sponsor URL didn't work very fast.

The code above basically looks for a '<a' statement that contains something unique about all the links I was trying to replace. So basically I could ditch all those dead links in one go instead of finding and replacing each and every different style of link individually.

If you read all that, I hope I was able to clear it up abit I think my my communication skills are lacking
Quickdraw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2006, 09:00 AM   #5
OG LennyT
Wall Street Pimp
 
OG LennyT's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Phoenix, AZ
Posts: 14,345
I always copy and paste to Notepad and use the 'replace all' function to do mass url changes.

I love notepad
OG LennyT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2006, 09:00 AM   #6
Fetish Gimp
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Posts: 1,699
Cool tip, thanks. You'd still have to upload all those pages, although using the "Select Recently Modified" it might not be that bad.
__________________
Strapon Seduction - femdom blog | Twitter
Fetish Gimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2006, 09:04 AM   #7
Quickdraw
Confirmed User
 
Join Date: Mar 2004
Location: → → →
Posts: 1,717
Quote:
Originally Posted by Fetish Gimp
Cool tip, thanks. You'd still have to upload all those pages, although using the "Select Recently Modified" it might not be that bad.
Yes, the synchronize option comes in handy
Quickdraw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2006, 09:06 AM   #8
Mighty Chin
Confirmed User
 
Join Date: Aug 2003
Location: Burnaby BC
Posts: 781
Find and replace...pretty simple...even shok knows that!
__________________
Do you need design work done. I am available check out my site TMC Web Designs
Mighty Chin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2006, 09:06 AM   #9
Quickdraw
Confirmed User
 
Join Date: Mar 2004
Location: → → →
Posts: 1,717
Quote:
Originally Posted by dvd316
I always copy and paste to Notepad and use the 'replace all' function to do mass url changes.

I love notepad
I like notepad too, but I tend to have a bunch of programs open and this just made it so I could use one less program while getting my 400 bones worth out of Dreamweaver
Quickdraw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2006, 09:10 AM   #10
Quickdraw
Confirmed User
 
Join Date: Mar 2004
Location: → → →
Posts: 1,717
Quote:
Originally Posted by Mighty Chin
Find and replace...pretty simple...even shok knows that!
yeah, well, some of us aren't as smart as others and it takes a while to figure out the more advanced features of programs.. Most people I have talked to had no idea they could use regex in DW
Quickdraw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-05-2006, 09:15 AM   #11
Mighty Chin
Confirmed User
 
Join Date: Aug 2003
Location: Burnaby BC
Posts: 781
Thats the first time I've heard someone call Shok smart!
__________________
Do you need design work done. I am available check out my site TMC Web Designs
Mighty Chin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.