Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Can you embed tweets, vines, instagram on the open source version? (2015 edition)
PhilllChabbb
New
Howdy all, kinda of a reboot from this post dating 2014. I've tried the solutions in that post but it didn't work. I'm a Vanilla Forums newbie and simply amazed at the technology.
Is it possible to auto embed tweets, vines and instagram?
I've checked a bit online and found this line of code in "class.format.php" (might be related? to auto-embed?) :
$Configuration['Garden']['Format']['Vimeo'] = TRUE;
Thanks for reading me. (I'll try digging around and if I find a solution will post it here.) ♥
0
Comments
Vanilla 2.1.9 supports youtube and vimeo auto-embedding out of the box. Anything else has to be added via a plugin. If there is a specific one you are looking to support, I am sure you could write/commission a plugin to auto embed it for you.
Vanilla 2.2 supports Youtube, Vimeo, Twitter, Github Commits (maybe), Vine, Instagram, Pintrest, Getty, Twitch, and Hitbox.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Hello @hgtonight , thanks a lot for the help! Very insightful. Exciting to hear about Vanilla 2.2, will def check it out once it's released.
In the meantime, for those reading this who are using 2.1.9 : I've got the auto-embedding working for Vine and Twitter with the Mediator plugin which I added little edit to the code. I'm not sure if I can share links to code in this forum, but I'll gladly share the link to the pastebin with anyone who might need it.
I completely forgot about the Mediator plugin!
http://vanillaforums.org/addon/mediator-plugin
Please share your code
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Alright! Yup that's the one @hgtonight .
Here is the link to the pastebin : pastebin.com/gAfQkgje
Just a tiny forewarning about my code: the twitter part is a bit of a hack, it's not perfect. It relies on a third-party website to get the tweet post information. (It's just the way how embedding tweets work.) Vine works very well though, using the native way to embed.
I'll work on adding code for instagram today and will update the pastebin if I get it working.
You should really to a pull request if you are going to distribute, or at least a proper fork.
https://github.com/swook/Mediator
Mediator is licensed by Creative Commons even though
http://creativecommons.org/tag/gpl
Also swook should really use a GPL2 compatible licence like MIT to be listed in Vanilla Addons repository.
@swook
grep is your friend.
@x00 Hey man, yeah maybe I should. I'm not familar at all with Github, more of a artist background. Maybe I should hide the pastebin?
I'm sure if you open an issue swook will add the code
https://github.com/swook/Mediator/issues
grep is your friend.
Yeah I emailed him 2-3 days ago. Here's hoping.
I say you get the OEmbed Plugin that covers a lot more site, but you need to wait for the Version 2.2 still to come
Oh wow, thanks @sodiq55 ! Will def check it out when 2.2 is out. (Is 2.2 out?) OEmbed released in June 2014 and says requires 2.2? It's weird. haha.
2.2 has these thing included natively, so moot.
2.2 is not yet beta, so don't use it in production.
grep is your friend.
Yeah, I guess it's smart to wait for 2.2 @x00. Excited to know it will come straight out of the box in future updates.
(Thanks again for helping me!)
Shouldn't Vanilla forums join the club too. People and users should be able embed discussions and so on from vanilla forums onto other sites. Or is this coming in 2.2 too. Will create a better way of sharing vanilla forum links and comments (at least when you see a discussion title with snippet preview and the site logo beside; that is better than a long boring link).
???
Vanilla had embed capabilities but it is I not Vanilla's job to allow that on other sites, it is the webmaste's. Vanilla is not a form of media, it is a discussion forum.
Vanilla is also a means to an end. It is Vanilla not Tuti-Fruti. The whole point of vanilla is it is extensible through add-ons.
If you want a link to a comment then just click on the date of the comment, it is a permalink.
grep is your friend.