QC Discussion Forum

  • 23 Apr 2014, 04:12
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

let's stop kissing (mod note: Already?)

Pages: [1]   Go Down

Author Topic: New BBCode: Soundcloud and Youtube  (Read 5428 times)

pwhodges

  • God Warrior
  • Administrator
  • Awakened
  • ******
  • Online Online
  • Posts: 11,023
    • My home page
New BBCode: Soundcloud and Youtube
« on: 31 Aug 2012, 09:08 »

You can now embed links to Soundcloud and Youtube.  They look like this:

Code: [Select]
[soundcloud]http://soundcloud.com/jeremy-dawson-1/im-an-organist[/soundcloud]
[youtube]http://www.youtube.com/watch?v=3j1Wdc-ymbI[/youtube]

and generate this:

   


I'll try to modify the theme sometime to stop Soundcloud making a scrollbar in some browsers (Opera, that is).

The youtube tag supports any of the following three formats:
Code: [Select]
http://www.youtube.com/watch?v={ID}
http://www.youtube.com/watch?v={ID}&{Parameters}
http://youtu.be/{ID}
Note in particular that https: is not supported at present. (NB - this has changed - see next post)

Be aware that the soundcloud object doesn't show on Apple devices (it's currently Flash, though an HTML5 interface is available, which I'll look into using), and Tapatalk can't cope with either of these tags.
« Last Edit: 31 Mar 2013, 04:07 by pwhodges »
Logged
"Being human, having your health; that's what's important."
"As long as we're all living, and as long as we're all having fun, that should do it, right?"

pwhodges

  • God Warrior
  • Administrator
  • Awakened
  • ******
  • Online Online
  • Posts: 11,023
    • My home page
Re: New BBCode: Soundcloud and Youtube
« Reply #1 on: 31 Mar 2013, 04:04 »

I have been trying my hand at programming a forum mod myself; specifically, I have modified the YouTube mod, as follows:

(1) Video is left aligned instead of centred (unimportant - it's just a personal preference)
(2) https is now handled (indeed, you can also omit the http and www. parts altogether)
(3) URLs in which the "v=" parameter is not the first are now handled (and a wider range of URLs is recognised)
(4) absence of YouTube button in editor is fixed
(5) smileys after video are now rendered correctly

I have yet to address the problem of:

(6) editing when there is no other content
« Last Edit: 21 Apr 2013, 02:58 by pwhodges »
Logged
"Being human, having your health; that's what's important."
"As long as we're all living, and as long as we're all having fun, that should do it, right?"
Pages: [1]   Go Up