WP Plugin: Shrink your affiliate links

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • $5 submissions
    I help you SUCCEED
    • Nov 2003
    • 32189

    #1

    WP Plugin: Shrink your affiliate links

    Own a WP blog? This is pretty nifty!

    http://wordpress.org/extend/plugins/pretty-link/
    Shrink, track and share any URL on the Internet from your WordPress website. You can now shorten links using your own domain name (as opposed to using tinyurl.com, bit.ly, or any other link shrinking service)! In addition to creating clean links, Pretty Link tracks each hit on your URL and provides a full, detailed report of where the hit came from, the browser, os and host. Pretty Link is a killer plugin for people who want to mask their affiliate links, track clicks from emails, their links on Twitter to come from their own domain, or generally increase the reach of their website by spreading these links on forums or comments on other blogs.
  • Nikitos
    Confirmed User
    • May 2009
    • 372

    #2
    Sounds good. Thanks for sharing! I'll try it.
    IdolBucks.com - the best Asian affiliate program

    Comment

    • fris
      I have to go potty
      • Aug 2002
      • 55730

      #3
      good plugin, I own pretty link pro ;)
      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

      My Latest Theme

      Comment

      • cyber
        Confirmed User
        • Jan 2004
        • 182

        #4
        Also, if anyone is interested in only the short links without all the other tracking information:

        You can have very, very short links like this:

        http://www.cutiesr.us/a/4305

        That go to their corresponding posts. #4305 is the post's ID, and goes here:

        http://www.cutiesr.us/4305-erica-won...fect-tits.html

        (your perma link will change depending on your settings, of course).

        All you need is the following ...

        Create folder "a" in your root.

        Inside, create two files, ".htaccess" and "index.php"

        Inside the .htaccess file, put:

        Code:
        Options +FollowSymlinks
        RewriteEngine On
        
        RewriteRule ^([0-9]+)$ /a/index.php?id=$1 [R=301,L]
        inside index.php put:

        PHP Code:
        <?
        // URL variables
        $id = $_GET['id'];
        if(!ctype_digit($id)){header("Location: /");}
        // Include base WP files and connect to DB
        include('../wp-config.php');
        mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die(mysql_error());
        mysql_select_db(DB_NAME) or die(mysql_error());
        $result = mysql_query("SELECT * FROM {$table_prefix}posts WHERE ID='{$id}' LIMIT 1");
        $row = mysql_fetch_assoc($result);
        
        $url = get_permalink($id);
        header("Location: {$url}");
        exit();
        And whala, you've got your very own short URLs!

        edit: hi fris!

        Comment

        • crockett
          in a van by the river
          • May 2003
          • 76818

          #5
          Nice little plug-in
          In November, you can vote for America's next president or its first dictator.

          Comment

          • $5 submissions
            I help you SUCCEED
            • Nov 2003
            • 32189

            #6
            Bump for a helpful WP resource

            Comment

            • CYF
              Coupon Guru
              • Mar 2009
              • 10973

              #7
              nice stuff
              Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
              AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

              Comment

              • selena
                Confirmed User
                • Aug 2004
                • 7995

                #8
                I've been using Twitter Friendly Links exclusively for that purpose, but I will have to check this out. If I am reading the OP right, that would do away with me having to use a links.php file to mask affiliate urls.

                Coolness, and thanks for sharing!
                ~
                Doer of Things at
                MetArtMoney
                Where Flawless Beauty Meets Art
                ~The MetArt Network ~
                selena.delgado9

                Comment

                • closer
                  Confirmed User
                  • Sep 2005
                  • 1707

                  #9
                  Anyone using the PRO version of this?

                  If I read well, then you can change all exsisting links with the PRO version?

                  Comment

                  • 2012
                    So Fucking What
                    • Jul 2006
                    • 17189

                    #10
                    sounds like a blast. thanks !
                    best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

                    Comment

                    • fris
                      I have to go potty
                      • Aug 2002
                      • 55730

                      #11
                      Originally posted by closer
                      Anyone using the PRO version of this?

                      If I read well, then you can change all exsisting links with the PRO version?
                      ya plus a bunch of other features, i bought the unlimited pro license
                      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                      My Latest Theme

                      Comment

                      • digifan
                        The Profiler
                        • Oct 2002
                        • 14618

                        #12
                        That's very cool!
                        [email protected]
                        Webair Rocks

                        Comment

                        • JeanClaude VanDamme
                          Confirmed User
                          • Apr 2001
                          • 652

                          #13
                          "gocodes" plugin does it well

                          Comment

                          • tranza
                            ICQ: 197-556-237
                            • Jun 2003
                            • 57559

                            #14
                            Seems to be a good one, thanks for sharing!
                            I'm just a newbie.

                            Comment

                            Working...