1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Audio BBCODE with Dropbox possible?

Discussion in 'Styling and Customization Questions' started by Chad, Jan 30, 2015.

  1. Chad

    Chad Active Member

    I have this audio bbcode mod installed that uses native HTML5 player. Works fine with direct mp3 files (remote). But, using a shared dropbox link, it doesn't work. The strange thing that happens is that the player will show up, and about 3 seconds later just disappear from the browser. Weird outcome.

    Anyone know of a trick around this? I'd like to utilize Dropbox (or even OneDrive) to use these uploaded files remotely and offset from the site's own drive and server.
     
  2. Optic

    Optic Well-Known Member

    When you share a link within your Dropbox, the link leads to a Dropbox landing page, so the embed will fail as it expects an audio file, not a webpage:
    https://www.dropbox.com/s/xjcgo6hr0l3x26j/changes.jpg?dl=0

    But if you change the query at the end (dl=1) then that seems to bypass the landing page and gives you a direct link. That should work:
    https://www.dropbox.com/s/xjcgo6hr0l3x26j/changes.jpg?dl=1


    Just be careful when doing this. On free accounts Dropbox has a daily quota limit of 20 GB or 100,000 downloads (whichever comes first). If you exceed this your share links will be banned.
    https://www.dropbox.com/en/help/4204
     
  3. Chad

    Chad Active Member

    Thanks @Optic

    Actually, even with the full link past the .mp3 extension causes the native HTML5 audio player not to show up at all.
     

Share This Page