eXceem

Go Back   eXceem > Websites > Website Design Guides & Articles

Claim your amazing £1,000 slots booster bonus now!


How to quickly change all your referral links!

This is a discussion on How to quickly change all your referral links! within the Website Design Guides & Articles forums, part of the Websites category; Hi all. I recently downloaded Notepad++ which is a nifty little HTML/CSS Editor. Anyway, there’s a great little thing inside ...

Reply
 
Thread Tools
Old 14-03-09, 12:01 PM   #1
Call me Vlad
 
Larkino's Avatar
 
Join Date: Jun 2008
Location: South London
Posts: 9,503
Larkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond repute

How to quickly change all your referral links!


Hi all.
I recently downloaded Notepad++ which is a nifty little HTML/CSS Editor.
Anyway, there’s a great little thing inside it which effectively allows you to find a word and replace it with another. Well, this is great for us freebie hunters, because (well I don’t know about anybody else) I’m constantly changing my links to different networks/sites depending on how many greens/pendings I have on a certain site, and this little thing means you can change every instance of a link to another in a whole page.
Here’s a quick little tutorial on how to do it:

Step 1
Download Notepad++ using the link above.
Find the page you want to edit, and right click and choose Edit with Notepad++:



You’ll end up with a page looking something like this (I’ve blurred out the code, because I don’t’ want you all copying my site do I? ):



Next, you want to go to the menu and select the find tool (or alternatively, you can press CTRL+F5):



A window looking something like this should come up:



Click the Replace tab, and you’ll have something like this:



As the image above shows, enter the referral link you want changing to in the “Find What” box, and enter the new referral link you want to switch it with in the “Replace With” box.
Click the replace all button:



And a little window will come up saying how many times the link has been changed!



Apologies if you already knew about this tool, but I just noticed it and thought it was brilliant!

Then just repeat with each page you want to change the links for!
__________________
 
Reply With Quote
Old 15-03-09, 12:27 PM   #2
Call me Vlad
 
Larkino's Avatar
 
Join Date: Jun 2008
Location: South London
Posts: 9,503
Larkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond repute
has this thread been approved?
__________________
 
Reply With Quote
Old 15-03-09, 12:29 PM   #3
Mini Mac
 
Schism's Avatar
 
Join Date: Jan 2007
Location: Leicester
Posts: 7,400
Schism is a splendid one to beholdSchism is a splendid one to beholdSchism is a splendid one to beholdSchism is a splendid one to beholdSchism is a splendid one to behold
Nice guide matey
__________________



Get loads of Freebies from this thread!
Now been revived!
Free XBox
 
Reply With Quote
Old 15-03-09, 12:33 PM   #4
Call me Vlad
 
Larkino's Avatar
 
Join Date: Jun 2008
Location: South London
Posts: 9,503
Larkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond repute
oh it has, lol.
__________________
 
Reply With Quote
Old 15-03-09, 01:09 PM   #5
R.I.P The REV
 
oli1122's Avatar
 
Join Date: Feb 2009
Location: Kent, England
Posts: 122
oli1122 has a spectacular aura about
Send a message via twitter to oli1122

cool


lol great tutorial but if i wanted to steaL UR ISTE I WOULD ONLY HAVE TO OPE IT WITH A SITE RIPPER AND DONE IT BOUT 5 SECS BUT COOL TUTORAIL THANKX

sorry for caps cant be botherd to re type
 
Reply With Quote
Old 15-03-09, 01:12 PM   #6
Mini Mac
 
Ilikefree's Avatar
 
Join Date: Jul 2008
Location: London
Posts: 5,087
Ilikefree is a name known to allIlikefree is a name known to allIlikefree is a name known to allIlikefree is a name known to all
^^ right.... :/

Great guide Miloooo
__________________
Help an old friend wrap up his freebie-ing by signing up for me in a trade on either Apple FJ or PS3 Kudos! £15 per green!
(pm me and I'll set it up in the trade centre)
 
Reply With Quote
Old 15-03-09, 01:26 PM   #7
Call me Vlad
 
Larkino's Avatar
 
Join Date: Jun 2008
Location: South London
Posts: 9,503
Larkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond repute
Quote:
Originally Posted by oli1122 View Post
lol great tutorial but if i wanted to steaL UR ISTE I WOULD ONLY HAVE TO OPE IT WITH A SITE RIPPER AND DONE IT BOUT 5 SECS BUT COOL TUTORAIL THANKX

sorry for caps cant be botherd to re type
its simple to steal someones site, just look at their source code, grab the css sheet and your away.
__________________
 
Reply With Quote
Old 15-03-09, 01:28 PM   #8
blah blah blah
 
arcticfox's Avatar
 
Join Date: Nov 2005
Location: Here
Posts: 17,866
arcticfox has a reputation beyond reputearcticfox has a reputation beyond reputearcticfox has a reputation beyond reputearcticfox has a reputation beyond reputearcticfox has a reputation beyond reputearcticfox has a reputation beyond reputearcticfox has a reputation beyond reputearcticfox has a reputation beyond repute
Send a message via twitter to arcticfox
Quote:
Originally Posted by Larkino View Post
its simple to steal someones site, just look at their source code, grab the css sheet and your away.
though why someone would want to do that and get penalised from google as well as abuse from us.....dunno why anyone would.

SO GLAD HE TOLD US THOUGH
 
Reply With Quote
Old 15-03-09, 01:42 PM   #9
Mini Mac
 
Emma's Avatar
 
Join Date: Jun 2005
Posts: 5,438
Emma is a splendid one to beholdEmma is a splendid one to beholdEmma is a splendid one to beholdEmma is a splendid one to beholdEmma is a splendid one to behold
Quote:
Originally Posted by oli1122 View Post
lol great tutorial but if i wanted to steaL UR ISTE I WOULD ONLY HAVE TO OPE IT WITH A SITE RIPPER AND DONE IT BOUT 5 SECS BUT COOL TUTORAIL THANKX

sorry for caps cant be botherd to re type
You need a link back to exceem on the site in your sig before you advertise on here
__________________


Spoiler


consoles freebiejeebies |

Free Gifts | Free DSi XL | Free PSP Go | Free DVD Player
 
Reply With Quote
Old 16-03-09, 10:59 AM   #10
iBook
 
messyhead's Avatar
 
Join Date: Oct 2007
Location: Glasgow
Posts: 2,266
messyhead is a glorious beacon of lightmessyhead is a glorious beacon of lightmessyhead is a glorious beacon of light
Nice guide. I've always used Notepad++ as it's great for coding
__________________
Received about £1600 worth so far!
Spoiler
 
Reply With Quote
Old 17-03-09, 08:08 PM   #11
iPod 20gb
 
Join Date: Jan 2008
Posts: 740
Sibbo has a spectacular aura about
Think you can use find/replace in Dreamweaver to.
 
Reply With Quote
Old 30-03-09, 09:03 PM   #12
iPod 60gb
 
JimBeam251's Avatar
 
Join Date: Sep 2008
Location: Liverpool, UK
Posts: 1,521
JimBeam251 is just really niceJimBeam251 is just really nice
You get replace in normal notepad too but it's a great guide, nice Larkino
 
Reply With Quote
Old 30-03-09, 09:59 PM   #13
Mini Mac
 
Join Date: Feb 2008
Posts: 3,135
-null- is a glorious beacon of light-null- is a glorious beacon of light-null- is a glorious beacon of light
Quote:
Originally Posted by Sibbo View Post
Think you can use find/replace in Dreamweaver to.
You can and Dreamweaver allows you to replace all occurrences in all files in a folder or your site (if you've set one up).
 
Reply With Quote
Old 30-03-09, 11:40 PM   #14
iPod Nano 1GB
 
HollyJ's Avatar
 
Join Date: Mar 2009
Location: surrey
Posts: 36
HollyJ is an unknown quantity at this point
Send a message via MSN to HollyJ
whatever happened to coding in wordpad lol
 
Reply With Quote
Old 02-04-09, 10:16 PM   #15
iPod 20gb
 
Blazer's Avatar
 
Join Date: May 2008
Location: London
Posts: 955
Blazer is just really niceBlazer is just really nice
Send a message via MSN to Blazer
Quote:
Originally Posted by HollyJ View Post
whatever happened to coding in wordpad lol
Ah, the good old days
__________________

iphone-3gs.com"]Free iPhone 3GS[/url]
 
Reply With Quote
Old 12-04-09, 03:27 AM   #16
iPod Shuffle
 
Join Date: Apr 2009
Posts: 16
bigalreturn is on a distinguished road
If you really really want to save some time then there's an even easier way - it will take maybe 15 minutes to set up, but after that changing all your URLs will take seconds. It does rely on you having PHP on your server though, but most paid hosts will do.

1) Create a file called urlinformation.php This will contain the following:
Code:
<?php
$url="http://www.yourreferrallink.com/whatever";
?>
2) Place urlinformation.php in the root of your server.
3) At the top of each of the pages on your site, before anything else, add the following code:
Code:
<?php
require("urlinformation.php");
?>
4) Now, wherever your referral link appears in your code, replace the URL with the following:
Code:
<?php echo($url);?>
This means the actual code will look something like:
Code:
<a href="<?php echo($url);?> title="Freebies">Your Link Anchor</a>
5) If all your pages are .php extension, this will now work perfectly, and you can change all your URLs simply by changing the one in "urlinformation.php". If your pages are .html extension, then read on.
6) We need to make your web server process .html files as if they were PHP files, so that the code is replaced with your URL when it serves up the pages. We can do this through cPanel...
7) Go to the advanced tab, then click on "MIME types". We need to add a new mime type, so in the Mime Type Box put "application/x-httpd-php", and in the Extension(s) box put "html" , "htm" , or whatever extension(s) your site uses.
8) Click Add.

You can now automatically update all the referral links on your site, by changing the URL in just one single file!
 
Reply With Quote
Old 12-04-09, 10:04 AM   #17
Call me Vlad
 
Larkino's Avatar
 
Join Date: Jun 2008
Location: South London
Posts: 9,503
Larkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond reputeLarkino has a reputation beyond repute
That's also a good way, but lots of freebie hunters use different referral links for different gifts, so they would have to set up multiple PHP links.

Nice guide though
__________________
 
Reply With Quote
Old 21-07-09, 04:34 PM   #18
iPod Nano 1GB
 
aquascene's Avatar
 
Join Date: Jul 2009
Location: Limerick, Ireland.
Posts: 85
aquascene is an unknown quantity at this point
Nice guide, thanks, i must get notepad ++
 
Reply With Quote
Old 22-12-09, 09:43 AM   #19
iPod Shuffle
 
Join Date: Dec 2009
Posts: 3
Xigmapro is an unknown quantity at this point
Nice guide. I never knew Notepad++ has that feature. I will dowload it now.
 
Reply With Quote
Old 27-01-10, 01:18 PM   #20
iPod 30gb
 
Nero's Avatar
 
Join Date: Jan 2010
Location: Cheltenham England
Posts: 1,495
Nero has a spectacular aura about
Nice guide I should download this software.
__________________
 
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off





All times are GMT. The time now is 08:14 AM.
All trademarks and copyrights held by respective owners. Forum posts are owned by the poster.

Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO
no new posts