@cagatay That matches what I see
4f0f858d-9812-42b1-9f61-ffb13d31dccd-image.png
Itโs probably a long shot, I did think about posting this in the NodeBB forum, but thought Iโd come here first to see if yourself or anyone else knows if this is possibleโฆ
I wonder if there is a way to get the latest tweets say for a category so โWordpressโ for example and display Wordpress tweets or Tweets from the WordPress account if a post is generated in the WordPress category for example.
Iโm looking to do this with my football forum , so for example The club account Tweets next to the โOfficial Club Newsโ topic etc.
Academy tweets next to academy news etcโฆ
Many thanks
@jac Very easily done. You just use the HTML widgets and place them where you want
@phenomlab said in Display tweets in widget [NodeBB]:
Wow, yes something just like this!
The only issue is itโs 6 years old that thread but maybe it would still work. Another issue probably could be the width of the tweet/ Twitter profile.
@jac neither of those will be an issue from what I can see.
@phenomlab said in Display tweets in widget [NodeBB]:
@jac neither of those will be an issue from what I can see.
Brilliant! Unfortunately like the one earlier Iโve only just seen this.
Essentially on desktop / tablet Iโm looking to display a widget of the latest tweets but it needs to be categorised so catagory based where it allows you to add a widget, now that is something Iโm not quite sure is possible as a feature, but if it could be done it would be a very welcome addition to the forum indeed!
@jac I think itโs one of those things weโd need to test first to see what the output is. We can then play with the CSS afterwards.
@phenomlab said in Display tweets in widget [NodeBB]:
@jac I think itโs one of those things weโd need to test first to see what the output is. We can then play with the CSS afterwards.
Of course, sounds fantastic! .
@phenomlab said in Display tweets in widget [NodeBB]:
@jac I think itโs one of those things weโd need to test first to see what the output is. We can then play with the CSS afterwards.
Looking forward to delving deeper into this over the weekend after work .
@jac let me know how you get on. Iโm planning something similar in fact.
@phenomlab said in Display tweets in widget [NodeBB]:
@jac let me know how you get on. Iโm planning something similar in fact.
Great, itโll be interesting to see both results. I simply plan to display a Twitter profile of the news / content displayed, Iโm hoping it works out although displaying widgets for specific categories could be an issue.
Still yet to do this. Have you had any success?
Iโm curious to see how it will look.
@jac not yet.
@phenomlab said in Display tweets in widget [NodeBB]:
@jac not yet.
Did you ever get round to this? I still need to test myself, although I do wonder how it can be done specifically for categories.
@jac I havenโt done anything with this since we last briefly discussed it. When you say โtweetsโ are you referring to content directly from Twitter ?
@phenomlab I am indeed mate, so for example the โStockport Countyโ category content would display a widget that shows the clubโs official tweets or Twitter profile. May not be possible but would definitely be good if it could be pulled off. Itโs just whether this sort of thing would impact load times etc.
@jac As a quick POC I decided to create a Twitter widget on your Categories page - see below for what it looks like
Itโs not styled as such yet, but is nothing more than a widget taken from Twitter directly here
This then gives you the code to place into any widget
<a class="twitter-timeline" data-height="800" data-dnt="true" data-theme="light" href="https://twitter.com/StockportCounty?ref_src=twsrc%5Etfw">Tweets by StockportCounty</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
The widget code is shown as below
Save the widget, and off you go
Clearly, you need to tailor this a little depending on what you actually want to capture, but this is the overall concept.
@phenomlab said in Display tweets in widget [NodeBB]:
@jac As a quick POC I decided to create a Twitter widget on your Categories page - see below for what it looks like
Itโs not styled as such yet, but is nothing more than a widget taken from Twitter directly here
This then gives you the code to place into any widget
<a class="twitter-timeline" data-height="800" data-dnt="true" data-theme="light" href="https://twitter.com/StockportCounty?ref_src=twsrc%5Etfw">Tweets by StockportCounty</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
The widget code is shown as below
Save the widget, and off you go
Clearly, you need to tailor this a little depending on what you actually want to capture, but this is the overall concept.
Wow, looks phenomenal mate, is there any way to limit the amount of tweets shown at all? And more specifically how can they be displayed on each category?
@jac said in Display tweets in widget [NodeBB]:
is there any way to limit the amount of tweets shown at all?
Yes, but only by adjusting the height of the widget itself (via Twitter) from what I recall seeing.
And more specifically how can they be displayed on each category?
That part Iโm not so sure of. Iโd say Iโm 99% certain itโll be possible, but I havenโt invested any time yet to determine this.
@phenomlab said in Display tweets in widget [NodeBB]:
@jac said in Display tweets in widget [NodeBB]:
is there any way to limit the amount of tweets shown at all?
Yes, but only by adjusting the height of the widget itself (via Twitter) from what I recall seeing.
And more specifically how can they be displayed on each category?
That part Iโm not so sure of. Iโd say Iโm 99% certain itโll be possible, but I havenโt invested any time yet to determine this.
Thanks Mark, at least itโs there and can be added on when possible .