I think you could mass replace the twitter domain across the post table by x.comIs there a way to make the Twitter links embed into posts as they used to after the stupid change to X.com?
I am not on PHP 8 yet, so cannot use that plugin.Two solutions:
Update media site
Install s9e BBCode media sites.
Reference:
XF 2.2 - Twitter (now X) no longer auto embedding
It looks like Twitter (now X), is having new post come from X.com instead of Twitter.com, this is now breaking auto embeds. Anyone have a fix, or so we have to wait for an Xenforo update?xenforo.com
no clue what you mean. lolI think you could mass replace the twitter domain across the post table by x.com
I am not on PHP 8 yet, so cannot use that plugin.
x.com/*/status/{$id}
x.com/statuses/{$id}
twitter.com/*/status/{$id}
twitter.com/statuses/{$id}
<xf:page option="jsState.twitter" value="{{ true }}" />
<xf:js src="xf/embed.js" min="1" />
<div class="bbMediaJustifier bbCode-tweet"
data-media-site-id="{$siteId}"
data-media-key="{$id}"
data-xf-init="tweet"
data-tweet-id="{$id}"
data-lang="{$xf.language.language_code}"
data-theme="{{ property('styleType') }}"
><a href="https://x.com/i/web/status/{$id}" rel="external" target="_blank">
<i class="fab fa-twitter" aria-hidden="true"></i> https://x.com/i/web/status/{$id}</a></div>
Don't edit the default one it won't survive through upgrades.BBcode media site:
id = x
name = X
Site URL = https://twitter.com (they don't seem to have change that yet)
Match URLs
Code:x.com/*/status/{$id} x.com/statuses/{$id} twitter.com/*/status/{$id} twitter.com/statuses/{$id}
Embed URL
Code:<xf:page option="jsState.twitter" value="{{ true }}" /> <xf:js src="xf/embed.js" min="1" /> <div class="bbMediaJustifier bbCode-tweet" data-media-site-id="{$siteId}" data-media-key="{$id}" data-xf-init="tweet" data-tweet-id="{$id}" data-lang="{$xf.language.language_code}" data-theme="{{ property('styleType') }}" ><a href="https://x.com/i/web/status/{$id}" rel="external" target="_blank"> <i class="fab fa-twitter" aria-hidden="true"></i> https://x.com/i/web/status/{$id}</a></div>
EDIT: I made a new BBcode media site named X and disable Twitter but you could probably just eat the Twitter one.
Yes but I thought if it is upgraded, it will be ungraded to work with XDon't edit the default one it won't survive through upgrades.
This did not work for me, I created a new site called X and I tried with twitter enabled and disabled, nothing shows up.BBcode media site:
id = x
name = X
Site URL = https://twitter.com (they don't seem to have change that yet)
Match URLs
Code:x.com/*/status/{$id} x.com/statuses/{$id} twitter.com/*/status/{$id} twitter.com/statuses/{$id}
Embed URL
Code:<xf:page option="jsState.twitter" value="{{ true }}" /> <xf:js src="xf/embed.js" min="1" /> <div class="bbMediaJustifier bbCode-tweet" data-media-site-id="{$siteId}" data-media-key="{$id}" data-xf-init="tweet" data-tweet-id="{$id}" data-lang="{$xf.language.language_code}" data-theme="{{ property('styleType') }}" ><a href="https://x.com/i/web/status/{$id}" rel="external" target="_blank"> <i class="fab fa-twitter" aria-hidden="true"></i> https://x.com/i/web/status/{$id}</a></div>
EDIT: I made a new BBcode media site named X and disable Twitter but you could probably just edit the Twitter one. EDIT: doing that will not survive upgrades see below...
This did not work for me, I created a new site called X and I tried with twitter enabled and disabled, nothing shows up.
I assumed that an update would be released quickly and this fix would be included.Was this fixed?
match_urls
should be updated to include x.com.update xf_bb_code_media_site set match_urls = 'twitter.com/*/status/{$id}\ntwitter.com/statuses/{$id}\nx.com/*/status/{$id}\nx.com/statuses/{$id}'...
fixed where?Yes it should be fixed.
We're starting to see Twitter links that use x.com instead of twitter.com posted on our forums, despite the fact that x.com redirects to twitter.com. The "Share" button on tweets now gives an x.com URL. As such,match_urls
should be updated to include x.com.
Other XF customers also appear to be encountering this issue: https://xenforo.com/community/threads/twitter-now-x-no-longer-auto-embedding.215985/
Temporary workaround:
SQL:update xf_bb_code_media_site set match_urls = 'twitter.com/*/status/{$id}\ntwitter.com/statuses/{$id}\nx.com/*/status/{$id}\nx.com/statuses/{$id}'...
- PaulB
- bb code media sites bug twitter
- Replies: 4
- Forum: Resolved bug reports
fixed where?
There may be a delay before changes are rolled out to the XenForo Community.Update Twitter BB code media site to support x.com URLs and update some branding to X, rather than Twitter.
upgrade your Xenforo software to latest version and it will work again.Hello guys,
may I ask what is the best solution now?
Since a few days, twitter completely moved to x.com,
and twitter /x links won't show the tweet on my site, just the link.
Thanks for any suggestion.
We use essential cookies to make this site work, and optional cookies to enhance your experience.