DansDomain Posted November 7, 2022 Share Posted November 7, 2022 Hey there, Just curious, if I want to embed a Twitter post, especially one with a video, how do I paste the embed code into my ProcessWire site? I have tried hitting the Source button in CKEditor and pasting the embed code in there, but it removes most of it upon saving. I'm using the Classic site of ProcessWire, which, other than visual modifications in CSS, is virtually unchanged for the most part. Is there a module for this or do I not even need one? Total n00b here. Link to comment Share on other sites More sharing options...
elabx Posted November 7, 2022 Share Posted November 7, 2022 I use this fantastic module: https://processwire.com/modules/video-or-social-post-embed/ Link to comment Share on other sites More sharing options...
DansDomain Posted November 7, 2022 Author Share Posted November 7, 2022 1 hour ago, elabx said: I use this fantastic module: https://processwire.com/modules/video-or-social-post-embed/ Thanks. I tried this Module, but there was an error because of a missing semicolon - I fixed that. After that it let me install it but... it doesn't show videos for Twitter. I'm going to look at its code to see if I can figure out what is going on... Specifically I pasted a Twitter link to someone's status post. It puts the Tweet text but the video is missing entirely. Link to comment Share on other sites More sharing options...
DansDomain Posted November 7, 2022 Author Share Posted November 7, 2022 Y'know, maybe I just have the wrong idea about Twitter. You used to be able to directly embed Twitter videos into your page, just like YouTube etc. Is that still possible? Link to comment Share on other sites More sharing options...
DansDomain Posted November 7, 2022 Author Share Posted November 7, 2022 I apologize. I tested my site on a different computer and the videos load... The problem seems localized to my main PC in Google Chrome. It just doesn't like displaying any Twitter widgets... But on my other PC, works like a charm!!! My humble thanks... Link to comment Share on other sites More sharing options...
DansDomain Posted November 7, 2022 Author Share Posted November 7, 2022 Note for anyone who reads this thread, the Module elabx suggested is set to do Twitter posts in Spanish. If you want to switch it to English, change line 277 to: "&maxwidth={$this->maxWidth}&maxheight={$this->maxHeight}&lang=en"; (formerly it was lang=es for Spanish) If you get the missing semicolon problem like I did, just add a semi colon to the end of line 163. 2 Link to comment Share on other sites More sharing options...
DansDomain Posted November 7, 2022 Author Share Posted November 7, 2022 Also, change lang=en to lang=en&theme=dark if you want the black / dark look for your Twitter embeds (I do!) 1 Link to comment Share on other sites More sharing options...
elabx Posted November 7, 2022 Share Posted November 7, 2022 Just noticing I actually messed up that module with a commit I made but someone already sent a fix, let's hope it gets pushed. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now