Jeph Jacques's comics discussion forums

  • 10 Dec 2016, 10:25
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: New BBCodes: Soundcloud, Youtube and Twitter  (Read 9586 times)

pwhodges

  • Admin emeritus
  • Awakened
  • *
  • Online Online
  • Posts: 13,821
  • Blessed Vessel
    • My home page
New BBCodes: Soundcloud, Youtube and Twitter
« 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: 03 Jun 2014, 03:37 by pwhodges »
Logged
"Being human, having your health; that's what's important."  (from: Magical Shopping Arcade Abenobashi )
"As long as we're all living, and as long as we're all having fun, that should do it, right?"  (from: The Eccentric Family )

pwhodges

  • Admin emeritus
  • Awakened
  • *
  • Online Online
  • Posts: 13,821
  • Blessed Vessel
    • 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."  (from: Magical Shopping Arcade Abenobashi )
"As long as we're all living, and as long as we're all having fun, that should do it, right?"  (from: The Eccentric Family )

pwhodges

  • Admin emeritus
  • Awakened
  • *
  • Online Online
  • Posts: 13,821
  • Blessed Vessel
    • My home page
Re: New BBCodes: Soundcloud, Youtube and Twitter
« Reply #2 on: 03 Jun 2014, 03:36 »

There is now a code to display a tweet in the common manner (but there's no button for it yet).

Given the twitter URL:
https://twitter.com/ToonamiNews/status/470285730154295297

then:
[tweet]470285730154295297[/tweet]

produces:

{EDIT}  Now the URL (as above, but I disabled it there) will be converted to an embedded tweet automatically, like this:
« Last Edit: 23 Sep 2016, 03:14 by pwhodges »
Logged
"Being human, having your health; that's what's important."  (from: Magical Shopping Arcade Abenobashi )
"As long as we're all living, and as long as we're all having fun, that should do it, right?"  (from: The Eccentric Family )

pwhodges

  • Admin emeritus
  • Awakened
  • *
  • Online Online
  • Posts: 13,821
  • Blessed Vessel
    • My home page
Re: New BBCodes: Soundcloud, Youtube and Twitter
« Reply #3 on: 16 Oct 2014, 04:15 »

Oh look!, you can use Vimeo as well:

Logged
"Being human, having your health; that's what's important."  (from: Magical Shopping Arcade Abenobashi )
"As long as we're all living, and as long as we're all having fun, that should do it, right?"  (from: The Eccentric Family )

pwhodges

  • Admin emeritus
  • Awakened
  • *
  • Online Online
  • Posts: 13,821
  • Blessed Vessel
    • My home page
Re: New BBCodes: Soundcloud, Youtube and Twitter
« Reply #4 on: 13 Feb 2016, 03:14 »

Changes in Flash support in browsers mean that the SoundCloud tag no longer works in many of them.  I guess I'd better look into that...

{EDIT} see next post...
« Last Edit: 23 Sep 2016, 03:10 by pwhodges »
Logged
"Being human, having your health; that's what's important."  (from: Magical Shopping Arcade Abenobashi )
"As long as we're all living, and as long as we're all having fun, that should do it, right?"  (from: The Eccentric Family )

pwhodges

  • Admin emeritus
  • Awakened
  • *
  • Online Online
  • Posts: 13,821
  • Blessed Vessel
    • My home page
Re: New BBCodes: Soundcloud, Youtube and Twitter
« Reply #5 on: 23 Sep 2016, 03:09 »

Several updates to all these options:

(1) SoundCloud now uses HTML5 instead of Flash, and so should work in a lot more places than before.

(2) Twitter URLs are autmatically converted to embedded tweets

(3) YouTube items can be specified by their ID alone; also a number of bugfixes.  There is  the possibility for YouTube URLs to be automatically converted to embedded form - but I haven't enabled that yet, as I'm concerned that many old posts might be messed up by it.
Logged
"Being human, having your health; that's what's important."  (from: Magical Shopping Arcade Abenobashi )
"As long as we're all living, and as long as we're all having fun, that should do it, right?"  (from: The Eccentric Family )
Pages: [1]   Go Up