Support » Plugin: Rotating Tweets (Twitter widget and shortcode) » Default Message/No Tweets?

  • Is there a way to have a default message in case there are no tweets for the account? I think I am getting the message:

    “Problem retrieving data from Twitter”

    Because there are no tweets. Should I just go into the plugin file and modify the default message?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Martin Tod

    (@mpntod)

    That would work.

    Any thoughts on what you’d like the message to be? It’s an easy fix to add a different message for this scenario.

    From my brief file searching, I wasn’t able to find the message in your files.

    Something like…

    if account.messages = 0
    then return ‘no tweets found’ or ” (nothing at all)

    The current message suggests a technical issue to me.

    It’s really just for our situation, where we use the plugin as a way to have an quick announcement for the website.

    Great plugin, thanks Martin!

    Plugin Author Martin Tod

    (@mpntod)

    Are you using a shortcode or the widget?

    If you’re using a shortcode, then the development version will accept msg_no_tweets as a variable where you can set a message.

    Either way, the default message for no tweets has been set to ‘No Tweets found’.

    Plugin Author Martin Tod

    (@mpntod)

    Did this work for you?

    Thank you for that and following up with me. Very interesting. I tested it out. With 0 tweets, I get that “Problem retrieving data from Twitter” message. So I test-tweeted (tweet count:1), and actually, the tweet showed up, so it’s not a configuration issue. Though I deleted the tweet and even with the 2 minute cache it’s still there 20 minutes later.

    Here’s my shortcode

    [rotatingtweets screen_name=’waialuafcu’ official_format_override=0 links_in_new_window=1 show_meta_screen_name=0 rtw_display_order=’meta,info,main,media’ rotation_type=’fade’ speed=3000 show_meta_via=0 show_meta_prev_next=0 show_meta_pager=1 show_meta_pager_blob=’■’ msg_no_tweets]

    • This reply was modified 1 year, 3 months ago by R J.
    • This reply was modified 1 year, 3 months ago by R J.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Default Message/No Tweets?’ is closed to new replies.