Sociable - Version 4.3.4.1

Version Description

  • Fixed a problem with one site taking over all the links
Download this release

Release Info

Developer sociable
Plugin Icon wp plugin Sociable
Version 4.3.4.1
Comparing to
See all releases

Code changes from version 4.3.4 to 4.3.4.1

Files changed (4) hide show
  1. includes/sociable_output.php +2 -2
  2. js/vuible.js +7 -151
  3. readme.txt +10 -2
  4. sociable.php +1 -1
includes/sociable_output.php CHANGED
@@ -335,7 +335,7 @@ if ($attachments) {
335
  if ($sitename == "More"){
336
  $link .= '<a style="cursor:pointer" rel="nofollow" onMouseOut="fixOnMouseOut(document.getElementById(\'sociable-post'.$location.'-'.$post->ID.'\'), event, \'post'.$location.'-'.$post->ID.'\')" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
337
  }else{
338
- $link .= '<a onClick="ipinit();" style="cursor:pointer" rel="nofollow" title="Vuible.com | Share positive messages (images and videos only)">' . $linkitem . '</a></li>' ;
339
  }
340
  }else{
341
 
@@ -450,7 +450,7 @@ if ($attachments) {
450
  if ($sitename=="More"){
451
  $link .= '<a style="cursor:poainter" rel="nofollow" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
452
  }else{
453
- $link .= '<a onClick="ipinit();" style="cursor:pointer" rel="nofollow" title="Vuible.com | Share positive messages (images and videos only)">' . $linkitem . '</a></li>' ;
454
  }
455
  }else{
456
 
335
  if ($sitename == "More"){
336
  $link .= '<a style="cursor:pointer" rel="nofollow" onMouseOut="fixOnMouseOut(document.getElementById(\'sociable-post'.$location.'-'.$post->ID.'\'), event, \'post'.$location.'-'.$post->ID.'\')" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
337
  }else{
338
+ $link .= "<a onClick=\"javascript:var ipinsite='Good%20Vibes.%20Vuible.com',ipinsiteurl='http://vuible.com/';(function(){if(window.ipinit!==undefined){ipinit();}else{document.body.appendChild(document.createElement('script')).src='http://vuible.com/wp-content/themes/ipinpro/js/ipinit.js';}})();\" style=\"cursor:pointer\" rel=\"nofollow\" title=\"Vuible.com | Share positive messages (images and videos only)\">" . $linkitem . "</a></li>";
339
  }
340
  }else{
341
 
450
  if ($sitename=="More"){
451
  $link .= '<a style="cursor:poainter" rel="nofollow" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
452
  }else{
453
+ $link .= "<a onClick=\"javascript:var%20ipinsite='Good%20Vibes.%20Vuible.com',ipinsiteurl='http://vuible.com/';(function(){if(window.ipinit!==undefined){ipinit();}else{document.body.appendChild(document.createElement('script')).src='http://vuible.com/wp-content/themes/ipinpro/js/ipinit.js';}})();\" style=\"cursor:pointer\" rel=\"nofollow\" title=\"Vuible.com | Share positive messages (images and videos only)\">" . $linkitem . "</a></li>";
454
  }
455
  }else{
456
 
js/vuible.js CHANGED
@@ -1,154 +1,10 @@
1
- var ipinsite = 'Vuible.com',
2
- ipinsiteurl = 'http://vuible.com/';
 
3
  (function(){
4
- var v = "1.7";
 
5
 
6
- if (window.jQuery === undefined || window.jQuery.fn.jquery < v) {
7
- var done = false;
8
- var script = document.createElement('script');
9
- script.src = "//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js";
10
- script.onload = script.onreadystatechange = function(){
11
- if (!done && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) {
12
- done = true;
13
- ipinit();
14
- }
15
- };
16
- document.getElementsByTagName('head')[0].appendChild(script);
17
- } else {
18
- ipinit();
19
- }
20
 
21
- function ipinit() {
22
- (window.ipinit = function() {
23
- if (jQuery('#ipinframe').length == 0) {
24
- jQuery('body').css('overflow', 'hidden')
25
- .append("\
26
- <div id='ipinframe'>\
27
- <div id='ipinframebg'><p>Loading...</p></div>\
28
- <div id='ipinheader'><p id='ipinclose'>X</p><p id='ipinlogo'>" + ipinsite + "</p></div>\
29
- <div id='ipinimages'></div>\
30
- <style type='text/css'>\
31
- #ipinframebg {background: #f2f2f2; display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483646;}\
32
- #ipinframebg p {background: #999; border-radius: 8px; color: white; font: normal normal bold 16px\/16px Helvetica, Arial, sans-serif; margin: -2em auto 0 -9.5em; padding: 12px; position: absolute; top: 50%; left: 50%; text-align: center; width: 15em;}\
33
- #ipinframe #ipinheader {background: white; border-bottom: 1px solid #d4d4d4; border-top: 3px solid #2f2f2f; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); color: white; height: 40px; margin: 0; padding: 0; position: fixed; top: 0; left: 0; text-align: center; width: 100%; z-index: 2147483647;}\
34
- #ipinframe #ipinheader #ipinlogo {color: black; font: normal normal bold 20px\/20px Helvetica, Arial, sans-serif; margin: 0; padding: 12px 15px 13px 20px;}\
35
- #ipinframe #ipinheader #ipinclose {background: #f33; color: white; cursor: pointer; float: right; font: normal normal bold 16px\/16px Helvetica, Arial, sans-serif; margin: 0; padding: 12px 15px 13px 20px;}\
36
- #ipinimages {position: fixed; top: 60px; left: 0; width: 100%; height: 94%; overflow-x: auto; overflow-y: scroll; text-align: center; z-index: 2147483647;}\
37
- #ipinimages .ipinimgwrapper {border: 1px solid #aaa; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); cursor: pointer; display: inline-block; height: 200px; margin: 15px; overflow: hidden; position: relative; width: 200px;}\
38
- #ipinimages .ipinbutton {background: rgba(0, 0, 0, 0.5); border-radius: 8px; color: white; font: normal normal bold 36px/36px Helvetica, Arial, sans-serif; padding: 8px 16px; display: none; margin-left: -24px; margin-top: -24px; position: absolute; top: 50%; left:50%;}\
39
- #ipinimages .ipindimension {background: rgba(255, 255, 255, 0.9); font: normal normal normal 12px/12px Helvetica, Arial, sans-serif; padding: 3px 0; position: absolute; right: 0; bottom: 0; left: 0;}\
40
- #ipinimages img {width: 100%; height: auto;}\
41
- </style>\
42
- </div>");
43
-
44
- jQuery('#ipinframebg').fadeIn(200);
45
-
46
- var imgarr = [];
47
- var videoflag = '0';
48
- var documentURL = document.URL;
49
-
50
- if (documentURL.indexOf('youtube.com/watch') != -1) {
51
- video_id = document.URL.match('[\\?&]v=([^&#]*)');
52
- imgsrc = 'http://img.youtube.com/vi/' + video_id[1] + '/0.jpg';
53
- imgarr.unshift([imgsrc,480,360]);
54
- videoflag = '1';
55
- display_thumbnails(imgarr, videoflag);
56
- jQuery('#movie_player').css('visibility','hidden');
57
- } else if (documentURL.match(/vimeo.com\/(\d+)($|\/)/)) {
58
- video_id = documentURL.split('/')[3];
59
-
60
- jQuery.getJSON('http://www.vimeo.com/api/v2/video/' + video_id + '.json?callback=?', {format: "json"}, function(data) {
61
- imgsrc = data[0].thumbnail_large;
62
- imgarr.unshift([imgsrc,640,360]);
63
- videoflag = '1';
64
- display_thumbnails(imgarr, videoflag);
65
- });
66
- } else {
67
- jQuery('img').each(function() {
68
- var imgsrc = jQuery(this).prop('src');
69
-
70
- var imgwidth = this.naturalWidth;
71
- if (!imgwidth) {
72
- imgwidth = jQuery(this).width();
73
- }
74
-
75
- var imgheight = this.naturalHeight;
76
- if (!imgheight) {
77
- imgheight = jQuery(this).height();
78
- }
79
-
80
- if (imgsrc && imgwidth >= 125) {
81
- imgarr.unshift([imgsrc,imgwidth,imgheight]);
82
- }
83
- });
84
-
85
- display_thumbnails(imgarr, videoflag);
86
- }
87
- }
88
-
89
- jQuery('#ipinheader').on('click', '#ipinclose', function() {
90
- if (documentURL.indexOf('youtube.com/watch') != -1) {
91
- jQuery('#movie_player').css('visibility','visible');
92
- }
93
- jQuery('body').css('overflow', 'visible');
94
- jQuery('#ipinframe').fadeOut(200, function() {
95
- jQuery(this).remove();
96
- });
97
- });
98
-
99
- jQuery('#ipinimages').on('click', '.ipinimgwrapper', function() {
100
- window.open(jQuery(this).data('href'), "ipinwindow", "width=400,height=760,left=0,top=0,resizable=1,scrollbars=1");
101
- if (documentURL.indexOf('youtube.com/watch') != -1) {
102
- jQuery('#movie_player').css('visibility','visible');
103
- }
104
- jQuery('body').css('overflow', 'visible');
105
- jQuery('#ipinframe').remove();
106
- });
107
-
108
- jQuery('#ipinimages').on('mouseover', '.ipinimgwrapper', function() {
109
- jQuery(this).find('.ipinbutton').show();
110
- }).on('mouseout', '.ipinimgwrapper', function() {
111
- jQuery(this).find('.ipinbutton').hide();
112
- });
113
-
114
- jQuery(document).keyup(function(e) {
115
- if (e.keyCode == 27) {
116
- if (documentURL.indexOf('youtube.com/watch') != -1) {
117
- jQuery('#movie_player').css('visibility','visible');
118
- }
119
- jQuery('body').css('overflow', 'visible');
120
- jQuery('#ipinframe').fadeOut(200, function() {
121
- jQuery(this).remove();
122
- });
123
- }
124
- });
125
- })();
126
- }
127
-
128
- function display_thumbnails(imgarr, videoflag) {
129
- if (!imgarr.length) {
130
- jQuery('#ipinframebg').html('<p>Sorry, unable to find any pinnable items on this page.</p>');
131
- } else {
132
- imgarr.sort(function(a,b)
133
- {
134
- if (a[1] == b[1]) return 0;
135
- return a[1] > b[1] ? -1 : 1;
136
- });
137
-
138
- var imgstr = '';
139
- for (var i = 0; i < imgarr.length; i++) {
140
- if (videoflag == '0') {
141
- imgstr += '<div class="ipinimgwrapper" data-href="' + ipinsiteurl + 'pins-settings/?m=bm&imgsrc=' + encodeURIComponent(imgarr[i][0].replace('http','')) + '&source=' + encodeURIComponent(document.URL.replace('http','')) + '&title=' + encodeURIComponent(document.getElementsByTagName('title')[0].innerHTML) + '&video=' + videoflag + '"><div class="ipinbutton">+</div><div class="ipindimension">' + parseInt(imgarr[i][1],10) + ' x ' + parseInt(imgarr[i][2],10) + '</div><img src="' + imgarr[i][0] + '" /></div>';
142
- } else {
143
- imgstr += '<div class="ipinimgwrapper" data-href="' + ipinsiteurl + 'pins-settings/?m=bm&imgsrc=' + encodeURIComponent(imgarr[i][0].replace('http','')) + '&source=' + encodeURIComponent(document.URL.replace('http','')) + '&title=' + encodeURIComponent(document.getElementsByTagName('title')[0].innerHTML) + '&video=' + videoflag + '"><div class="ipinbutton">+</div><div class="ipindimension"> Video </div><img src="' + imgarr[i][0] + '" /></div>';
144
- }
145
- }
146
- jQuery('#ipinframebg p').fadeOut(200);
147
- jQuery('#ipinimages').css('height',jQuery(window).height()-jQuery('#ipinheader').height()-20)
148
- .html(imgstr + "<div style='height:40px;clear:both;'><br /></div>");
149
- if ((navigator.appVersion.indexOf('Chrome/') != -1 || navigator.appVersion.indexOf('Safari/')) && videoflag != '1') {
150
- jQuery('#ipinimages .ipinimgwrapper').css('float','left');
151
- }
152
- }
153
- }
154
- })();
1
+ function ipin(){
2
+ var ipinsite='Good%20Vibes.%20Vuible.com';
3
+ var ipinsiteurl='http://vuible.com/';
4
  (function(){
5
+ var ipinsite='Good%20Vibes.%20Vuible.com';
6
+ var ipinsiteurl='http://vuible.com/';
7
 
8
+ if(window.ipinit!==undefined){ipinit();}else{document.body.appendChild(document.createElement('script')).src='http://vuible.com/wp-content/themes/ipinpro/js/ipinit.js';}})();
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: sociable
4
  Tags: sociable, social bookmarking, social bookmarks, social icons, bookmarking, share, sharing, be sociable share, share and enjoy, digg, delicious, twitter, facebook, blinklist, stumbleupon, gmail, posterous, tumblr
5
  Requires at least: 2.6
6
  Tested up to: 3.3.1
7
- Stable tag: 4.3.4
8
 
9
  Congrats for joining the leader in the sharing space of WordPress plugins. "Sociable" is totally FREE, has over 1,7 million downloads and now you can enjoy Fueto and make your searches more Sociable.
10
 
@@ -59,7 +59,7 @@ Sociable finds its home outside of the WordPress environment on Blogplay.com-
59
 
60
 
61
 
62
- *** Sociable 4.3.4 ***
63
 
64
  = Recent Updates =
65
 
@@ -153,6 +153,14 @@ Please send us an email to sociableblogplay [ at ] gmail.com
153
 
154
  == Changelog ==
155
 
 
 
 
 
 
 
 
 
156
  = 4.3.4 =
157
 
158
  * Bugs Fixed.
4
  Tags: sociable, social bookmarking, social bookmarks, social icons, bookmarking, share, sharing, be sociable share, share and enjoy, digg, delicious, twitter, facebook, blinklist, stumbleupon, gmail, posterous, tumblr
5
  Requires at least: 2.6
6
  Tested up to: 3.3.1
7
+ Stable tag: 4.3.4.1
8
 
9
  Congrats for joining the leader in the sharing space of WordPress plugins. "Sociable" is totally FREE, has over 1,7 million downloads and now you can enjoy Fueto and make your searches more Sociable.
10
 
59
 
60
 
61
 
62
+ *** Sociable 4.3.4.1 ***
63
 
64
  = Recent Updates =
65
 
153
 
154
  == Changelog ==
155
 
156
+
157
+
158
+ = 4.3.4.1 =
159
+
160
+ * Fixed a problem with one site taking over all the links
161
+
162
+
163
+
164
  = 4.3.4 =
165
 
166
  * Bugs Fixed.
sociable.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Sociable
4
  Plugin URI: http://blogplay.com/plugin
5
  Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
6
- Version: 4.3.4
7
  Author: Blogplay
8
  Author URI: http://blogplay.com/
9
  Copyright 2006 Peter Harkins (ph@malaprop.org)
3
  Plugin Name: Sociable
4
  Plugin URI: http://blogplay.com/plugin
5
  Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
6
+ Version: 4.3.4.1
7
  Author: Blogplay
8
  Author URI: http://blogplay.com/
9
  Copyright 2006 Peter Harkins (ph@malaprop.org)