NodeBB Twitter / X embeds
-
I’ve had limited success with the plugin
nodebb-plugin-twitter
and its various forks in the sense that the embeds failed to load - here’s an example of that exact problem (never resolved from what I can see)I decided to write my custom
JS
which can be found hereThis not only works in the same way as the NodeBB plugin, but will also render client-side so does not pile up in terms of resources on your server
In addition, the available arguments for the embeds are below
Here’s a real-life example
Loading...
Please wait while the description loads.
Loading...
-
-
Why not create your own plugin instead?
-
@OT I probably will at some point. This was really for quickness to assist a Sudonix user.
-
This does work well. One behavior is that sometimes it will show the link embeded multiple times, then it clears back to singular when you refresh the page.
-
This does work well. One behavior is that sometimes it will show the link embeded multiple times, then it clears back to singular when you refresh the page.
@OT Yes, I noticed the same thing and will fix that in due course. I also looked at creating a plugin, which I will also address when I have time.
-
Tested.
It seem embed is on a blockquote.
I play with this classblockquote.content.twitter-tweet
for better résult (transparency of blockquote)I notice it seems the beginning of URL appears (https://)
Result int the screenshot :
cya
@DownPW strange. I’m not able to replicate these specific issues. Can you provide me with the url of the tweet in a PM so I can test?
Thanks
-
great work thank you Mark.
-
This is how it shows up for us. Just have the random dupes of the same tweet. Of course, users are complaining of seeing a tweet repeat three times, but they quickly forgot that a tweet was just showing the X.com using Iframely or any other plugin.
-
This is how it shows up for us. Just have the random dupes of the same tweet. Of course, users are complaining of seeing a tweet repeat three times, but they quickly forgot that a tweet was just showing the X.com using Iframely or any other plugin.
@OT can you post the actual tweet url ?
-
Updated code to address the duplicate tweet issue
-
Updated code to address the duplicate tweet issue
https://github.com/phenomlab/nodebb-twitter-embeds/blob/main/embeds.js
@phenomlab That is awesome, great job!
-
Have you experienced that some posts will not show up after they have been posted, or that the post will look greyed out? This goes away if you refresh the page.
-
Have you experienced that some posts will not show up after they have been posted, or that the post will look greyed out? This goes away if you refresh the page.
@OT Not seen this personally. Are you using the latest commit?
-
An exemple of tweet don’t embed with last code @phenomlab
Loading...
Please wait while the description loads.
Loading...
EDIT:
Strange, work here but not on my forum:
Other tweets works great
Mistery
-
An exemple of tweet don’t embed with last code @phenomlab
EDIT:
Strange, work here but not on my forum:
Other tweets works great
Mistery
@DownPW Are you sure you’re using the latest commit?
-
An exemple of tweet don’t embed with last code @phenomlab
EDIT:
Strange, work here but not on my forum:
Other tweets works great
Mistery
@DownPW said in NodeBB Twitter / X embeds:
EDIT:
Strange, work here but not on my forum:
Just looking at this again, and it seems that SaxX in the URL is written as SaxX - was that intentional?
-
@DownPW said in NodeBB Twitter / X embeds:
EDIT:
Strange, work here but not on my forum:
Just looking at this again, and it seems that SaxX in the URL is written as SaxX - was that intentional?
@phenomlab said in NodeBB Twitter / X embeds:
Just looking at this again, and it seems that SaxX in the URL is written as SaxX - was that intentional?
I don’t know. I guess but that doesn’t explain that working here and not on my forum… hmm
URL:
Itt seems on my forum the “_” character was delete in the URL (Don’t know why) :
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (ether email, or push notification). You'll also be able to save bookmarks, use reactions, and upvote to show your appreciation to other community members.
With your input, this post could be even better 💗
RegisterLog in