Rotating Tweets (Twitter widget and shortcode) - Version 1.3.10

Version Description

Includes an important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API. Fixed problem with hashtags.

=

Download this release

Release Info

Developer mpntod
Plugin Icon wp plugin Rotating Tweets (Twitter widget and shortcode)
Version 1.3.10
Comparing to
See all releases

Code changes from version 1.3.9 to 1.3.10

Files changed (3) hide show
  1. js/rotating_tweet.js +1 -30
  2. readme.txt +12 -3
  3. rotatingtweets.php +2 -2
js/rotating_tweet.js CHANGED
@@ -124,22 +124,6 @@ jQuery(document).ready(function() {
124
  jQuery(this).width(rt_max_width);
125
  });
126
  };
127
-
128
- /*
129
- jQuery(rotate_id).cycle({
130
- pause: 1,
131
- height: rotate_height,
132
- timeout: rotate_timeout,
133
- prev: jQuery(rotate_id).find('.rtw_prev'),
134
- next: jQuery(rotate_id).find('.rtw_next'),
135
- pager: rotate_id + '_nav',
136
- pagerAnchorBuilder: function(idx, slide) {
137
- // return sel string for existing anchor
138
- return rotate_id + '_nav a:eq(' + (idx) + ')';
139
- },
140
- fx: rotate_fx
141
- });
142
- */
143
  });
144
  // Script to show mouseover effects when going over the Twitter intents
145
  jQuery('.rtw_intents a').hover(function() {
@@ -158,23 +142,10 @@ jQuery(document).ready(function() {
158
  jQuery('.rtw_expand').show();
159
  jQuery('.rotatingtweets').has('.rtw_wide').hover(function() {
160
  jQuery(this).find('.rtw_intents').show();
161
- // jQuery(this).find('.rtw_expand').css('color','blue');
162
  },function() {
163
  jQuery(this).find('.rtw_intents').hide();
164
- // jQuery(this).find('.rtw_expand').css('color','red');
165
  });
166
  });
167
- /*
168
- jQuery(window).ready(function() {
169
- // Experimenting with resizing the size of the box when using displayed tweets
170
- twttr.ready(function(twttr) {
171
- jQuery('blockquote').each( function() {
172
- console.log(jQuery(this).prop('class'));
173
- console.log(jQuery(this).height());
174
- });
175
- });
176
- });
177
- */
178
  /* And call the Twitter script while we're at it! */
179
  /* Standard script to call Twitter */
180
- !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
124
  jQuery(this).width(rt_max_width);
125
  });
126
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  });
128
  // Script to show mouseover effects when going over the Twitter intents
129
  jQuery('.rtw_intents a').hover(function() {
142
  jQuery('.rtw_expand').show();
143
  jQuery('.rotatingtweets').has('.rtw_wide').hover(function() {
144
  jQuery(this).find('.rtw_intents').show();
 
145
  },function() {
146
  jQuery(this).find('.rtw_intents').hide();
 
147
  });
148
  });
 
 
 
 
 
 
 
 
 
 
 
149
  /* And call the Twitter script while we're at it! */
150
  /* Standard script to call Twitter */
151
+ !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual
5
  Requires at least: 2.6
6
  Tested up to: 3.5
7
- Stable tag: 1.3.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -89,11 +89,20 @@ In most cases, each use (or "instance") of this plug-in gets data from Twitter e
89
  = How can I add a Twitter bird to the left of my tweets? =
90
  You can do this by going to the `rotatingtweets/css` directory and renaming `yourstyle-sample.css` to `yourstyle.css`. This displays a Twitter bird to the left of your tweets. Any CSS you put into `yourstyle.css` won't be overwritten when the plug-in is upgraded to the latest version.
91
 
 
 
 
 
 
 
92
  == Upgrade notice ==
93
- = 1.3.9 =
94
- Includes an important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API. Fixed problem with cacheing.
95
 
96
  == Changelog ==
 
 
 
97
  = 1.3.9 =
98
  Moved to [Semantic Versioning](http://semver.org/)
99
 
4
  Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual
5
  Requires at least: 2.6
6
  Tested up to: 3.5
7
+ Stable tag: 1.3.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
89
  = How can I add a Twitter bird to the left of my tweets? =
90
  You can do this by going to the `rotatingtweets/css` directory and renaming `yourstyle-sample.css` to `yourstyle.css`. This displays a Twitter bird to the left of your tweets. Any CSS you put into `yourstyle.css` won't be overwritten when the plug-in is upgraded to the latest version.
91
 
92
+ = The Rotating Tweets are not rotating. What can I do? =
93
+ This normally happens if there is more than one copy of jQuery installed on a page - or more than one copy of jQuery.cycle.
94
+ To see if this is the case, you can search the HTML on your website to see if either script is called more than once. The quickest way is to search the page for `jquery` and look out for lines that contain `jquery.min.js` or `jquery.cycle.all.min.js`.
95
+ The problem is that the second (or third) copy of the script overwrites all previous versions and the scripts that go with them. This is particularly likely to happen with old templates or plug-ins.
96
+ If this is the case, the first thing to check is that you have upgraded your template or your plug-in to the latest version.
97
+
98
  == Upgrade notice ==
99
+ = 1.3.10 =
100
+ Includes an important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API. Fixed problem with hashtags.
101
 
102
  == Changelog ==
103
+ = 1.3.10 =
104
+ Fixed hashtag links
105
+
106
  = 1.3.9 =
107
  Moved to [Semantic Versioning](http://semver.org/)
108
 
rotatingtweets.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Rotating Tweets (Twitter widget & shortcode)
4
  Description: Replaces a shortcode such as [rotatingtweets screen_name='your_twitter_name'], or a widget, with a rotating tweets display
5
- Version: 1.3.9
6
  Text Domain: rotatingtweets
7
  Author: Martin Tod
8
  Author URI: http://www.martintod.org.uk
@@ -898,7 +898,7 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
898
  endforeach;
899
  endif;
900
  $before[]="%#([0-9]*[a-zA-Z]+\w*)%";
901
- $after[]='<a href="http://search.twitter.com/search?q=%23$1" title="#$1"'.$targetvalue.'>#$1</a>';
902
  $main_text = preg_replace($before,$after,$main_text);
903
 
904
  # Now for the meta text
2
  /*
3
  Plugin Name: Rotating Tweets (Twitter widget & shortcode)
4
  Description: Replaces a shortcode such as [rotatingtweets screen_name='your_twitter_name'], or a widget, with a rotating tweets display
5
+ Version: 1.3.10
6
  Text Domain: rotatingtweets
7
  Author: Martin Tod
8
  Author URI: http://www.martintod.org.uk
898
  endforeach;
899
  endif;
900
  $before[]="%#([0-9]*[a-zA-Z]+\w*)%";
901
+ $after[]='<a href="http://twitter.com/search?q=%23$1&src=hash" title="#$1"'.$targetvalue.'>#$1</a>';
902
  $main_text = preg_replace($before,$after,$main_text);
903
 
904
  # Now for the meta text