| |||||||
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 ...
![]() |
| | Thread Tools |
| | #1 |
| Call me Vlad Join Date: Jun 2008 Location: South London
Posts: 9,503
![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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!
__________________ |
|
| | #2 |
| Call me Vlad Join Date: Jun 2008 Location: South London
Posts: 9,503
![]() ![]() ![]() ![]() ![]() ![]() ![]() | has this thread been approved?
__________________ |
|
| | #4 |
| Call me Vlad Join Date: Jun 2008 Location: South London
Posts: 9,503
![]() ![]() ![]() ![]() ![]() ![]() ![]() | oh it has, lol.
__________________ |
|
| | #5 |
| R.I.P The REV | coollol 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 |
|
| | #6 |
| Mini Mac Join Date: Jul 2008 Location: London
Posts: 5,087
![]() ![]() ![]() ![]() | ^^ 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) |
|
| | #7 |
| Call me Vlad Join Date: Jun 2008 Location: South London
Posts: 9,503
![]() ![]() ![]() ![]() ![]() ![]() ![]() | its simple to steal someones site, just look at their source code, grab the css sheet and your away.
__________________ |
|
| | #8 | |
| blah blah blah | Quote:
SO GLAD HE TOLD US THOUGH
__________________ | |
|
| | #9 |
| Mini Mac Join Date: Jun 2005
Posts: 5,438
![]() ![]() ![]() ![]() ![]() | You need a link back to exceem on the site in your sig before you advertise on here
__________________ |
|
| | #10 |
| iBook Join Date: Oct 2007 Location: Glasgow
Posts: 2,266
![]() ![]() ![]() | Nice guide. I've always used Notepad++ as it's great for coding
__________________ Received about £1600 worth so far! Spoiler |
|
| | #11 |
| iPod 20gb Join Date: Jan 2008
Posts: 740
![]() | Think you can use find/replace in Dreamweaver to. |
|
| | #12 |
| iPod 60gb Join Date: Sep 2008 Location: Liverpool, UK
Posts: 1,521
![]() ![]() | You get replace in normal notepad too but it's a great guide, nice Larkino |
|
| | #13 |
| Mini Mac Join Date: Feb 2008
Posts: 3,135
![]() ![]() ![]() | |
|
| | #14 |
| iPod Nano 1GB | whatever happened to coding in wordpad lol |
|
| | #15 |
| iPod 20gb |
__________________ iphone-3gs.com"]Free iPhone 3GS[/url] |
|
| | #16 |
| iPod Shuffle Join Date: Apr 2009
Posts: 16
![]() | 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"; ?> 3) At the top of each of the pages on your site, before anything else, add the following code: Code: <?php
require("urlinformation.php");
?>
Code: <?php echo($url);?> Code: <a href="<?php echo($url);?> title="Freebies">Your Link Anchor</a> 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! |
|
| | #17 |
| Call me Vlad Join Date: Jun 2008 Location: South London
Posts: 9,503
![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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
__________________ |
|
| | #18 |
| iPod Nano 1GB Join Date: Jul 2009 Location: Limerick, Ireland.
Posts: 85
![]() | Nice guide, thanks, i must get notepad ++ |
|
| | #19 |
| iPod Shuffle Join Date: Dec 2009
Posts: 3
![]() | Nice guide. I never knew Notepad++ has that feature. I will dowload it now. |
|
| | #20 |
| iPod 30gb Join Date: Jan 2010 Location: Cheltenham England
Posts: 1,495
![]() | Nice guide I should download this software.
__________________ |
|
![]() |
| Thread Tools | |
| |