Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: April 19, 2024, 3:10 am

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New "Auto Media" Feature
#1
New "Auto Media" Feature
Ok, so this was a long suggested feature by a few members, and I found a plugin that seems to work nicely. In the past you had to take a video url, take the ID of the video out of it, put it between the correct tags (as here: http://atheistforums.org/thread-406.html), and then you'd have an embedded video in your post. Well we always want to make things easier for you, so the new plugin tries to automatically detect urls to video sites, and then embeds to video for you.

For instance, in the past if I wanted to embed this video: http://www.youtube.com/watch?v=I8ki125wp6M&feature=sub, I'd have to take the ID out of it (I8ki125wp6M) and put it between [youtube] tags.

Well, you can still do that (we're backwards compatible so as not to ruin a load of posts still using the tags), but it is far easier just to paste the url as it is:

http://www.youtube.com/watch?v=I8ki125wp6M&feature=sub

See? That's all I posted:
Code:
http://www.youtube.com/watch?v=I8ki125wp6M&feature=sub

Oh, and if you *really* want to post a link instead of embedding the video, you can disable the automatic embedding by surrounding the url with "amoff" tags, like so:

Code:
http://www.youtube.com/watch?v=I8ki125wp6M&feature=sub

Which produces this:http://www.youtube.com/watch?v=I8ki125wp6M&feature=sub

As usual, please report bugs / sites that are missing. I should be able to add them to the plugin. I'm first going to tweak the sizes of the video players so they are a bit larger (especially for YouTube videos).

Update: This feature is disabled in the shoutbox for obvious reasons. If you post a url in the shoutbox, it'll just be a url. Big Grin

Supported sites:

Reply
#2
RE: New "Auto Media" Feature
I will add this to the BB Code thread, however, can you automatically turn off the embedding for the shoutbox? Arcanus posted a video in there for me, and it came up as a video which doesn't work so well for that.
"The way to see by faith is to shut the eye of reason." Benjamin Franklin

::Blogs:: Boston Atheism Examiner - Boston Atheists Blog | :Tongueodcast:: Boston Atheists Report
Reply
#3
RE: New "Auto Media" Feature
Pretty sweet Adrian, even better than i had asked for.
Best regards,
Leo van Miert
Horsepower is how hard you hit the wall --Torque is how far you take the wall with you
Pastafarian
Reply
#4
RE: New "Auto Media" Feature
Added a list of supported sites:


Reply
#5
RE: New "Auto Media" Feature
But not Tangle.com ...that figures. Big Grin
Man is a rational animal who always loses his temper when
called upon to act in accordance with the dictates of reason.
(Oscar Wilde)
Reply
#6
RE: New "Auto Media" Feature
Tangle.com is the new "GodTube" right?
Reply
#7
RE: New "Auto Media" Feature
(October 17, 2009 at 5:45 am)Tiberius Wrote: Tangle.com is the new "GodTube" right?

Yep, very depressing.



You can fix ignorance, you can't fix stupid.

Tinkety Tonk and down with the Nazis.




 








Reply
#8
RE: New "Auto Media" Feature
(October 17, 2009 at 5:45 am)Tiberius Wrote: Tangle.com is the new "GodTube" right?

Google thinks so Smile

[Image: bi7xv9.jpg]
.
Reply





Users browsing this thread: 1 Guest(s)