TwitterX

TwitterX

MODX extra

Install on MODX

App Details

TwitterX v1.4.0

This uses twitteroauth v3.1.0: https://github.com/abraham/twitteroauth for support for PHP 7.3 and 8.0+.

As twitteroauth only supports PHP versions that are actively supported, the next version of TwitterX will drop support for 7.3 and add support for 8.1. For more information, you can review the releases list at: https://github.com/abraham/twitteroauth/releases

This package loads Twitter feeds using the 1.1 API. You will need to create a Twitter app here:

https://dev.twitter.com/apps/new

Once youve created your new application you will need to generate tokens and use those tokens when you call the TwitterX snippet which will load your statuses:

Snippet TwitterX

This should be called uncached if you are using :ago in the chunk otherwise it can be cached.

  • twitter_consumer_key - your twitter consumer token (REQUIRED)
  • twitter_consumer_secret - your twitter consumer secret (REQUIRED)
  • twitter_access_token - your twitter access token (REQUIRED)
  • twitter_access_token_secret - your twitter access token secret (REQUIRED)
  • limit - limit how many statuses to display (default: 5)
  • timeline - which twitter timeline to load (default: user_timeline, retweeted_by_me etc)
  • chunk - which chunk to load when rendering the statuses (default: TwitterXTpl)
  • cache - how many seconds to cache the twitter data feed (default: 7200)
  • screen_name - which user you want to load
  • include_rts - should this include retweets (default: 1)
  • cache_id - unique ID for caching in case you want to view multiple feeds or different feeds (default: TwitterX_PAGEID)
  • toPlaceholder - a placeholder ID if you want to use content as a placeholder instead of outputting directly (default: )
  • toPlaceholderPrefix - if you want to prefix the placeholder values. E.g. twitterx would create placeholders like (default: )
  • slug - for when loading a twitter list, you must specify a screen_name and a slug (default: )

Loading timelines

As the 1.1 API is more restrictive the tweets available have changed. The snippet defaults to user_time line but you can load any of these:

  • public_timeline
  • public_timeline
  • friends_timeline
  • user_timeline
  • mentions
  • retweets_of_me
  • favourites

Loading lists New as of 1.3

You can now load lists by using the following:

&timeline=lists/statuses &slug=NAME_OF_YOUR_SLUG &screen_name=SCREEN_NAME_OF_LIST_OWNER

An example of this would be the MODX List: https://twitter.com/modx/the-modx-team

&timeline=lists/statuses &slug=the-modx-team &screen_name=modx Searching Twitter

TwitterX now supports basic Twitter searches using the &search parameter:

&search=MODX

Snippet TwitterXFormat

Use this snippet in your chunk placeholders to format the status text and automatically link any search, usernames or topics:

Chunk options

The package comes with a chunk for displaying the statuses called TwitterXTpl. You can customise this by using the following placeholders:

  • created_at - date status was created
  • source - source of the Tweet (application like web, iOS etc)
  • id - status id on timeline
  • id_str - status id on Twitter (twitter.com/user/statuses/id_str)
  • text - status main text
  • name - Twitter name
  • screen_name - Twitter username
  • profile_image_url - Twitter avatar image url for this user (uses https as of version 1.3.3)
  • location - This users location
  • url - This users URL (if specified)
  • description - This users profile information

Retweets (where applicable)

  • retweet_created_at - date status was created
  • retweet_source - source of the Tweet (application like web, iOS etc)
  • retweet_id - status id on timeline
  • retweet_id_str - status id on Twitter (twitter.com/user/statuses/id_str)
  • retweet_text - status main text
  • retweet_name - Twitter name
  • retweet_screen_name - Twitter username
  • retweet_profile_image_url - Twitter avatar image url for this user (uses https as of version 1.3.3)
  • retweet_location - This users location
  • retweet_url - This users URL (if specified)
  • retweet_description - This users profile information

Further info

For information and support, check out my blog:

https://www.qodo.co.uk/twitterx/

Created by Stewart Orr @ Qodo Ltd (https://www.qodo.co.uk). Contributers: @sepiariver (http://www.sepiariver.ca), @OostDesign (http://www.oostdesign.com/), @scottborys (http://scottborys.com/), Dameon87 (https://github.com/Dameon87)

Pricing

Starting from $0 per month.

Check Out the Vimeo Carousel Widget

By Common Ninja

Vimeo CarouselTry For Free!

App Info

Rating

Reviewers

No reviews

Tags

No tags

Developed By

Qodo

Common Ninja Apps

Some of the best Common Ninja extras for MODX

Browse our extensive collection of compatible extras, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

Vimeo Carousel for MODX logo

Vimeo Carousel

Show Vimeo videos with a Vimeo carousel that displays clips in a smooth, flexible layout to boost visibility and engagement.

TikTok Feed for MODX logo

TikTok Feed

Show your latest TikTok videos in a live feed that keeps content fresh, builds social proof, and keeps visitors engaged.

Before & After Slider for MODX logo

Before & After Slider

Add an interactive before and after slider to your site to show visual transformations, capture attention, and help visitors understand real results.

Mega Footer for MODX logo

Mega Footer

Create a mega footer that organizes navigation links, contact info, logos, social icons and improves usability and site structure.

YouTube Slider for MODX logo

YouTube Slider

Show YouTube videos with a YouTube slider that displays clips in a smooth, customizable layout to boost engagement.

TikTok Carousel for MODX logo

TikTok Carousel

Show TikTok videos with a TikTok carousel that arranges clips in a smooth, customizable layout to boost engagement and keep visitors watching.

PDF Flipbook for MODX logo

PDF Flipbook

Transform PDFs into interactive flipbooks with a PDF flipbook widget that improves reading and keeps visitors engaged.

Coolest Thing Made In Contest Builder for MODX logo

Coolest Thing Made In Contest Builder

Run engaging public voting contests that showcase products and crown a winner

Telegram Conversation for MODX logo

Telegram Conversation

Show Telegram conversations on your website in a clear, authentic chat format.

Donation Form for MODX logo

Donation Form

Collect and manage donations securely with a customizable online donation form that supports Stripe or PayPal and helps increase contributions.

Progress Bars for MODX logo

Progress Bars

Show progress clearly with animated progress bars that visualize goals, highlight achievements, and keep visitors engaged and motivated.

Music Player for MODX logo

Music Player

Add a no-code music player to your site to stream audio, share playlists, and support multiple formats with easy setup.

More extras

extras You Might Like

insertinsert

insert

Have you ever wanted to make CSS/JS changes to a Live site, and be…

Discover extra
frontpagefrontpage

frontpage

Frontpage is a front end content editor and creator. It's intended…

Discover extra
MessageMessage

Message

Message manager is a CMP (custom manager page) and snippet for MODX…

Discover extra
MODX-Revo-Boilerplate-With-SubpackagesMODX-Revo-Boilerplate-With-Subpackages

MODX-Revo-Boilerplate-With-Subpackages

NOTE: Having had some issues with subpackages, I've decided to only…

Discover extra
DomaineerDomaineer

Domaineer

Domaineer was developed to provide a way to easily manage domain-specific…

Discover extra
Omise Payment Gateway for CommerceOmise Payment Gateway for Commerce

Omise Payment Gateway for Commerce

Accept credit card payments in Commerce via Omise!

Discover extra
instagramWidgetinstagramWidget

instagramWidget

A MODX Revolution Extra, Snippet and Chunk to pull Instagram JSON…

Discover extra
antiSpamBotantiSpamBot

antiSpamBot

This extra helps you to embed email addresses to your site…

Discover extra
PingoMatiXPingoMatiX

PingoMatiX

This plugin allows you to ping http://pingomatic.com/ which…

Discover extra
Social Share ButtonsSocial Share Buttons

Social Share Buttons

Share buttons provide an additional and very easy way to get your…

Discover extra

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms