Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin - Version 1.4.51

Version Description

  • Removed cloaking & pretty bar redirection to comply with wordpress.org policy requirements
Download this release

Release Info

Developer supercleanse
Plugin Icon 128x128 Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin
Version 1.4.51
Comparing to
See all releases

Code changes from version 1.4.50 to 1.4.51

classes/models/PrliUtils.php CHANGED
@@ -294,6 +294,7 @@ class PrliUtils
294
 
295
  switch($pretty_link->redirect_type)
296
  {
 
297
  case 'pixel':
298
  header("HTTP/1.1 200 OK");
299
  break;
@@ -306,6 +307,7 @@ class PrliUtils
306
  header("HTTP/1.1 200 OK");
307
  require_once PRLI_VIEWS_PATH . '/prli-links/ultra-cloak.php';
308
  break;
 
309
  case '301':
310
  header("HTTP/1.1 301 Moved Permanently");
311
  header('Location: '.$pretty_link_url.$param_string);
294
 
295
  switch($pretty_link->redirect_type)
296
  {
297
+ /*
298
  case 'pixel':
299
  header("HTTP/1.1 200 OK");
300
  break;
307
  header("HTTP/1.1 200 OK");
308
  require_once PRLI_VIEWS_PATH . '/prli-links/ultra-cloak.php';
309
  break;
310
+ */
311
  case '301':
312
  header("HTTP/1.1 301 Moved Permanently");
313
  header('Location: '.$pretty_link_url.$param_string);
classes/views/prli-links/form.php CHANGED
@@ -49,9 +49,11 @@
49
  <select id="redirect_type" name="redirect_type" style="padding: 0px; margin: 0px;">
50
  <option value="307"<?php echo $values['redirect_type']['307']; ?>>307 (Temporary)&nbsp;</option>
51
  <option value="301"<?php echo $values['redirect_type']['301']; ?>>301 (Permanent)&nbsp;</option>
 
52
  <option value="prettybar"<?php echo $values['redirect_type']['prettybar']; ?>>Pretty Bar&nbsp;</option>
53
  <option value="cloak"<?php echo $values['redirect_type']['cloak']; ?>>Cloaked&nbsp;</option>
54
  <option value="pixel"<?php echo $values['redirect_type']['pixel']; ?>>Pixel&nbsp;</option>
 
55
  </select><a class="toggle">&nbsp;[?]</a>
56
  <div class="toggle_pane description"><strong>307 Redirection</strong> is the best option if your Target URL could possibly change or need accurate reporting for this link.<br/><br/><strong>301 Redirection</strong> is the best option if you're <strong>NOT</strong> planning on changing your Target URL. Traditionally this option is considered to be the best approach to use for your SEO/SEM efforts but since Pretty Link uses your domain name either way this notion isn't necessarily true for Pretty Links. Also, this option may not give you accurate reporting since proxy and caching servers may go directly to your Target URL once it's cached.<br/><br/><strong>Pretty Bar Redirection</strong> is the best option if you want to show the Pretty Bar at the top of the page when redirecting to the Target URL.<br/><br/><strong>Cloak Redirection</strong> is the best option if you don't want your Target URL to be visible even after the redirection. This way, if a Target URL doesn't redirect to a URL you want to show then this will mask it.<br/><br/><strong>Pixel Redirection</strong> is the option you should select if you want this link to behave like a tracking pixel instead of as a link. This option is useful if you want to track the number of times a page or email is opened. If you place your Pretty Link inside an img tag on the page (Example: <code>&lt;img src="<?php echo $prli_blogurl . "/yourslug"; ?>" /&gt;</code>) then the page load will be tracked as a click and then displayed. Note: If this option is selected your Target URL will simply be ignored if there's a value in it.</div>
57
  </div>
49
  <select id="redirect_type" name="redirect_type" style="padding: 0px; margin: 0px;">
50
  <option value="307"<?php echo $values['redirect_type']['307']; ?>>307 (Temporary)&nbsp;</option>
51
  <option value="301"<?php echo $values['redirect_type']['301']; ?>>301 (Permanent)&nbsp;</option>
52
+ <!--
53
  <option value="prettybar"<?php echo $values['redirect_type']['prettybar']; ?>>Pretty Bar&nbsp;</option>
54
  <option value="cloak"<?php echo $values['redirect_type']['cloak']; ?>>Cloaked&nbsp;</option>
55
  <option value="pixel"<?php echo $values['redirect_type']['pixel']; ?>>Pixel&nbsp;</option>
56
+ -->
57
  </select><a class="toggle">&nbsp;[?]</a>
58
  <div class="toggle_pane description"><strong>307 Redirection</strong> is the best option if your Target URL could possibly change or need accurate reporting for this link.<br/><br/><strong>301 Redirection</strong> is the best option if you're <strong>NOT</strong> planning on changing your Target URL. Traditionally this option is considered to be the best approach to use for your SEO/SEM efforts but since Pretty Link uses your domain name either way this notion isn't necessarily true for Pretty Links. Also, this option may not give you accurate reporting since proxy and caching servers may go directly to your Target URL once it's cached.<br/><br/><strong>Pretty Bar Redirection</strong> is the best option if you want to show the Pretty Bar at the top of the page when redirecting to the Target URL.<br/><br/><strong>Cloak Redirection</strong> is the best option if you don't want your Target URL to be visible even after the redirection. This way, if a Target URL doesn't redirect to a URL you want to show then this will mask it.<br/><br/><strong>Pixel Redirection</strong> is the option you should select if you want this link to behave like a tracking pixel instead of as a link. This option is useful if you want to track the number of times a page or email is opened. If you place your Pretty Link inside an img tag on the page (Example: <code>&lt;img src="<?php echo $prli_blogurl . "/yourslug"; ?>" /&gt;</code>) then the page load will be tracked as a click and then displayed. Note: If this option is selected your Target URL will simply be ignored if there's a value in it.</div>
59
  </div>
classes/views/prli-options/form.php CHANGED
@@ -37,13 +37,16 @@ if(!$permalink_structure or empty($permalink_structure))
37
  <select name="<?php echo $link_redirect_type; ?>">
38
  <option value="307" <?php echo (($prli_options->link_redirect_type == '307')?' selected="selected"':''); ?>/>Temporary (307)</option>
39
  <option value="301" <?php echo (($prli_options->link_redirect_type == '301')?' selected="selected"':''); ?>/>Permanent (301)</option>
 
40
  <option value="prettybar" <?php echo (($prli_options->link_redirect_type == 'prettybar')?' selected="selected"':''); ?>/>Pretty Bar</option>
41
  <option value="cloak" <?php echo (($prli_options->link_redirect_type == 'cloak')?' selected="selected"':''); ?>/>Cloak</option>
42
  <option value="pixel" <?php echo (($prli_options->link_redirect_type == 'pixel')?' selected="selected"':''); ?>/>Pixel</option>
 
43
  </select>
44
  <br/><span class="description">Select the type of redirection you want your newly created links to have.</span>
45
  </li>
46
  </ul>
 
47
  <h3><a class="toggle prettybar-toggle-button">PrettyBar Options <span class="prettybar-expand" style="display: none;">[+]</span><span class="prettybar-collapse">[-]</span></a></h3>
48
  <table class="prettybar-toggle-pane form-table">
49
  <tr class="form-field">
@@ -57,7 +60,7 @@ if(!$permalink_structure or empty($permalink_structure))
57
  <td valign="top" width="15%"><?php _e("Background Image URL:", $prettybar_background_image_url ); ?> </td>
58
  <td width="85%">
59
  <input type="text" name="<?php echo $prettybar_background_image_url; ?>" value="<?php echo $prli_options->prettybar_background_image_url; ?>"/>
60
- <br/><span class="description">If set, this will replace the background image on PrettyBar. The image that this URL references should be 65px tall -- this image will be repeated horizontally across the bar.</span>
61
  </td>
62
  </tr>
63
  <tr>
@@ -143,6 +146,7 @@ if(!$permalink_structure or empty($permalink_structure))
143
 
144
  <?php do_action('prli-prettybar-options'); ?>
145
  </table>
 
146
  <h3><a class="toggle reporting-toggle-button">Reporting Options <span class="reporting-expand" style="display: none;">[+]</span><span class="reporting-collapse">[-]</span></a></h3>
147
  <table class="reporting-toggle-pane form-table">
148
  <tr class="form-field">
37
  <select name="<?php echo $link_redirect_type; ?>">
38
  <option value="307" <?php echo (($prli_options->link_redirect_type == '307')?' selected="selected"':''); ?>/>Temporary (307)</option>
39
  <option value="301" <?php echo (($prli_options->link_redirect_type == '301')?' selected="selected"':''); ?>/>Permanent (301)</option>
40
+ <!--
41
  <option value="prettybar" <?php echo (($prli_options->link_redirect_type == 'prettybar')?' selected="selected"':''); ?>/>Pretty Bar</option>
42
  <option value="cloak" <?php echo (($prli_options->link_redirect_type == 'cloak')?' selected="selected"':''); ?>/>Cloak</option>
43
  <option value="pixel" <?php echo (($prli_options->link_redirect_type == 'pixel')?' selected="selected"':''); ?>/>Pixel</option>
44
+ -->
45
  </select>
46
  <br/><span class="description">Select the type of redirection you want your newly created links to have.</span>
47
  </li>
48
  </ul>
49
+ <!--
50
  <h3><a class="toggle prettybar-toggle-button">PrettyBar Options <span class="prettybar-expand" style="display: none;">[+]</span><span class="prettybar-collapse">[-]</span></a></h3>
51
  <table class="prettybar-toggle-pane form-table">
52
  <tr class="form-field">
60
  <td valign="top" width="15%"><?php _e("Background Image URL:", $prettybar_background_image_url ); ?> </td>
61
  <td width="85%">
62
  <input type="text" name="<?php echo $prettybar_background_image_url; ?>" value="<?php echo $prli_options->prettybar_background_image_url; ?>"/>
63
+ <br/><span class="description">If set, this will replace the background image on PrettyBar. The image that this URL references should be 65px tall - this image will be repeated horizontally across the bar.</span>
64
  </td>
65
  </tr>
66
  <tr>
146
 
147
  <?php do_action('prli-prettybar-options'); ?>
148
  </table>
149
+ -->
150
  <h3><a class="toggle reporting-toggle-button">Reporting Options <span class="reporting-expand" style="display: none;">[+]</span><span class="reporting-collapse">[-]</span></a></h3>
151
  <table class="reporting-toggle-pane form-table">
152
  <tr class="form-field">
pretty-link.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
- Plugin Name: Pretty Link
4
  Plugin URI: http://blairwilliams.com/pretty-link
5
  Description: Shrink, track and share any URL on the Internet from your WordPress website!
6
- Version: 1.4.50
7
  Author: Caseproof
8
  Author URI: http://caseproof.com
9
  Copyright: 2009-2010, Caseproof, LLC
1
  <?php
2
  /*
3
+ Plugin Name: Pretty Link (Lite Version)
4
  Plugin URI: http://blairwilliams.com/pretty-link
5
  Description: Shrink, track and share any URL on the Internet from your WordPress website!
6
+ Version: 1.4.51
7
  Author: Caseproof
8
  Author URI: http://caseproof.com
9
  Copyright: 2009-2010, Caseproof, LLC
readme.txt CHANGED
@@ -1,16 +1,16 @@
1
- === Pretty Link ===
2
  Contributors: supercleanse
3
  Donate link: http://www.blairwilliams.com/pretty-link/donate/
4
- Tags: links, link, url, urls, affiliate, affiliates, pretty, marketing, redirect, forward, plugin, twitter, tweet, rewrite, shorturl, hoplink, hop, shortlink, short, shorten, click, clicks, track, tracking, tiny, tinyurl, budurl, shrinking, domain, shrink, mask, masking, slug, slugs, admin, administration, stats, statistics, stat, statistic, cloaking, cloak, email, ajax, javascript, ui, csv, download, page, post, pages, posts, shortcode, seo, automation, widget, widgets, dashboard
5
  Requires at least: 2.9
6
  Tested up to: 3.0.1
7
- Stable tag: 1.4.50
8
 
9
  Shrink, track and share any URL on the Internet from your WordPress website. Create short links suitable for Twitter using your own domain name!
10
 
11
  == Description ==
12
 
13
- 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.
14
 
15
  = Upgrade to Pretty Link Pro =
16
 
@@ -24,7 +24,7 @@ This is a link setup using Pretty Link that redirects to the Pretty Link Homepag
24
 
25
  http://blairwilliams.com/pl
26
 
27
- Here's a named Pretty Link (I used the slug 'aweber') that redirects to my affiliate link for aweber.com:
28
 
29
  http://blairwilliams.com/aweber
30
 
@@ -32,13 +32,9 @@ Here's a link that Pretty Link generated a random slug for (similar to how bit.l
32
 
33
  http://blairwilliams.com/w7a
34
 
35
- Here's a Pretty Link that uses the configurable Pretty Link PrettyBar:
36
-
37
- http://blairwilliams.com/x0z
38
-
39
  = Features =
40
 
41
- * Gives you the ability to create clean, simple URLs on your website that redirect to any other URL
42
  * Generates random 2-3 character slugs for your URL or allows you to name a custom slug for your URL
43
  * Tracks the Number of Hits per link
44
  * Tracks the Number of Unique Hits per link
@@ -48,7 +44,6 @@ http://blairwilliams.com/x0z
48
  * Intuitive Javascript / AJAX Admin User Interface
49
  * Pass custom parameters to your scripts through pretty link and still have full tracking ability
50
  * Ability to rewrite these custom Parameters before forwarding to Target URL
51
- * Setup Pretty Links as Tracking Pixels and track impressions
52
  * Exclude IP Addresses from Stats
53
  * Enables you to post your Pretty Links to Twitter directly from your WordPress admin
54
  * Enables you to send your Pretty Links via Email directly from your WordPress admin
@@ -57,9 +52,6 @@ http://blairwilliams.com/x0z
57
  * Organize Links into Groups
58
  * Create nofollow/noindex links
59
  * Turn tracking on / off on each link
60
- * Keep users on your site even when being redirected by using the PrettyBar which stays at the top of the page
61
- * Ability to configure and skin the PrettyBar to mirror the look and feel of your site
62
- * Hide the Target URL by loading it in a full-screen frame
63
  * Pretty Link Bookmarklet
64
 
65
  == Installation ==
@@ -72,6 +64,9 @@ http://blairwilliams.com/x0z
72
 
73
  == Changelog ==
74
 
 
 
 
75
  = 1.4.50 =
76
  * Updated to use the Twitter oAuth authentication protocol
77
  * Updated the tweetbadge to use the new Twitter Tweet Button
@@ -269,6 +264,9 @@ http://blairwilliams.com/x0z
269
  * Fixed some issues surrounding keyword content caching in Pro
270
 
271
  == Upgrade Notice ==
 
 
 
272
  = 1.4.50 =
273
  * If you are a pro user and use the twitter related features of Pretty Link Pro you need to update immediately -- non-pro users will be pretty much unchanged by this release
274
 
1
+ === Pretty Link (Lite Version) ===
2
  Contributors: supercleanse
3
  Donate link: http://www.blairwilliams.com/pretty-link/donate/
4
+ Tags: links, link, url, urls, affiliate, affiliates, pretty, marketing, redirect, forward, plugin, twitter, tweet, rewrite, shorturl, hoplink, hop, shortlink, short, shorten, click, clicks, track, tracking, tiny, tinyurl, budurl, shrinking, domain, shrink, mask, masking, cloak, cloaking, slug, slugs, admin, administration, stats, statistics, stat, statistic, email, ajax, javascript, ui, csv, download, page, post, pages, posts, shortcode, seo, automation, widget, widgets, dashboard
5
  Requires at least: 2.9
6
  Tested up to: 3.0.1
7
+ Stable tag: 1.4.51
8
 
9
  Shrink, track and share any URL on the Internet from your WordPress website. Create short links suitable for Twitter using your own domain name!
10
 
11
  == Description ==
12
 
13
+ 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 clean up 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.
14
 
15
  = Upgrade to Pretty Link Pro =
16
 
24
 
25
  http://blairwilliams.com/pl
26
 
27
+ Here's a named Pretty Link (I used the slug 'aweber') that does a 307 redirect to my affiliate link for aweber.com:
28
 
29
  http://blairwilliams.com/aweber
30
 
32
 
33
  http://blairwilliams.com/w7a
34
 
 
 
 
 
35
  = Features =
36
 
37
+ * Gives you the ability to create clean, simple URLs on your website that redirect to any other URL (allows for 301 and 307 redirects only)
38
  * Generates random 2-3 character slugs for your URL or allows you to name a custom slug for your URL
39
  * Tracks the Number of Hits per link
40
  * Tracks the Number of Unique Hits per link
44
  * Intuitive Javascript / AJAX Admin User Interface
45
  * Pass custom parameters to your scripts through pretty link and still have full tracking ability
46
  * Ability to rewrite these custom Parameters before forwarding to Target URL
 
47
  * Exclude IP Addresses from Stats
48
  * Enables you to post your Pretty Links to Twitter directly from your WordPress admin
49
  * Enables you to send your Pretty Links via Email directly from your WordPress admin
52
  * Organize Links into Groups
53
  * Create nofollow/noindex links
54
  * Turn tracking on / off on each link
 
 
 
55
  * Pretty Link Bookmarklet
56
 
57
  == Installation ==
64
 
65
  == Changelog ==
66
 
67
+ = 1.4.51 =
68
+ * Removed cloaking & pretty bar redirection to comply with wordpress.org policy requirements
69
+
70
  = 1.4.50 =
71
  * Updated to use the Twitter oAuth authentication protocol
72
  * Updated the tweetbadge to use the new Twitter Tweet Button
264
  * Fixed some issues surrounding keyword content caching in Pro
265
 
266
  == Upgrade Notice ==
267
+ = 1.4.51 =
268
+ * Removed cloaking & pretty bar redirection to comply with wordpress.org policy requirements
269
+
270
  = 1.4.50 =
271
  * If you are a pro user and use the twitter related features of Pretty Link Pro you need to update immediately -- non-pro users will be pretty much unchanged by this release
272