Martin Tod
Forum Replies Created
-
Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Microsoft Edge FormattingNot unless it involves getting stuck into detailed CSS!
What happens if you change the JavaScript version on the Rotating Tweets settings page?
Martin
Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Follow button not displayingIt’s working for me. Looks great!
Do you have Do Not Track switched on? The standard Twitter code (which displays the button) is switched off if DNT is enabled…
Otherwise, does the Console show some JavaScript crashing on your browser? This could have a simlar effect.
Martin
It’s all there but displaying as black on black.
If you add some CSS like:
div.rotatingtweet p, div.rotatingtweet p a { color: white; }it should all appear.
- This reply was modified 9 years, 5 months ago by Martin Tod.
Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Show serach results?Three things to fix and one possible simplification:
- Go to the Rotating Tweets settings page and change to version 2 of the JavaScript
- Remove
no_rotate=1 - If you want more than 10 Tweets to be rotating through, change
tweet_count=10to a higher number!tweet_count=20? - I don’t think
carousel_responsive=1works with a vertical carousel, so you can probably do without it.
Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Show serach results?You need to switch to version 2 of the JavaScript in the plug-in settings for the Carousel to work.
With number shortcodes you can get rid of inverted commas which makes them a bit easier
[rotatingtweets screen_name='tagzagnz' official_format=2 rotation_type='carousel' carousel_count=10 include_rts=1 carousel_responsive=1 show_media=1]Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Show serach results?Happy to help!
Agree that the shortcode options might need to be split into basic and advanced!
Hi there.
There are two different problems here.
1. Changing the current button means changing the CSS in an iframe created by Twitter (via some JavaScript) – and that isn’t easily possible. You can read more about changing CSS in an iframe here.
Currently the only real solution to this would either be:
- to switch off the Twitter JavaScript (which I could probably add a switch for – since it already switches off for people who have ‘do not track’ enabled) and write your own – or
- change Rotating Tweets to include its own Twitter button that popped open the relevant Twitter window and was style-able in the same way as the rest of the plug-in
2. Changing the border round all the tweets is pretty straightforward. Something like:
#content #main .rotatingtweets { border: solid thick #007acc; }should do it. If that doesn’t work, you might need to make your CSS selector more ‘specific’. You can read about CSS specificity here.
- This reply was modified 9 years, 6 months ago by Martin Tod.
- This reply was modified 9 years, 6 months ago by Martin Tod.
The latest upgrade should fix this.
The latest upgrade should fix this.
Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Only rtsYou can try it to see if it works.
Try changing line 1184 from:
$apioptions = array('screen_name'=>$tw_screen_name,'include_entities'=>1,'count'=>60,'include_rts'=>$tw_include_rts,'exclude_replies'=>$tw_exclude_replies);to
$apioptions = array('screen_name'=>$tw_screen_name,'include_entities'=>1,'count'=>200,'include_rts'=>$tw_include_rts,'exclude_replies'=>$tw_exclude_replies);Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Only rtsThere isn’t a function on Twitter to only find retweets, so if
only_rts=1is set, Rotating Tweets loads the last 60 Tweets and looks through them for retweets from other accounts.If there aren’t any, then it won’t show any tweets.
I think this might be what’s happening in your case.
Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Only rtsDo you have the right screen name?
And do you need a semi-colon in there?
<?php echo do_shortcode( "[rotatingtweets screen_name='mytwitter' only_rts=1 links_in_new_window=1]" ); ?>If you view source (
CTRL+U), you should see error messages in your HTML that tell you what’s going wrong.Forum: Plugins
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Only rtsThat’s odd.
What happens if you use the development version?
I’ve just tried it on my own test site and it seems to be working properly.
A quicker answer that you might want to try first is:
<?php echo do_shortcode( "[rotatingtweets screen_name='mytwitter' only_rts=1]" ) ?>By the way, when I copied your text, it had
’instead of'.There’s now a development version that uses the longer tweet.
Does it work for you?
There’s now a development version that uses the longer tweet.
Does it work for you?