Jump to content

Recommended Posts

Posted

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.

Posted
1 hour ago, elabx said:

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.

Posted

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?

Posted

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...

Posted

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.

  • Like 2
Posted

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. 

 

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...