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

Need a good donation widget

Discussion in 'Resource and Add-on Requests' started by RichardGaspa, Dec 10, 2014.

  1. RichardGaspa

    RichardGaspa Active Member

    I am in need of a good donation widget, addon or whatchamacallit for my site. Dose anyone know of one that will work with Arty's Graphic Styles and Bogans Portal? I been looking but don't know which one is the best.

    I also am looking for a audio file addon that can handle mp3 files.
     
  2. ForestForTrees

    ForestForTrees Well-Known Member

    I can't really answer your question since for relatively unsophisticated tasks, I'm a "code your own" type of guy. In other words, the following might not be helpful if you are just looking for a plugin. The support I can provide for them will be very limited.

    We just coded our own page using PayPal. It wasn't so hard if you don't mind writing a little simple HTML and reading some of the PayPal documentation. It works very well.

    We created our own BBCode Media Site to play HTML5 audio. Here's the code:
    Code:
    <audio controls width="400" ID="audiotag_{$id}">
      <source src="http://www.ourdomain.org/audio/{$id}.oga" type="audio/ogg">
      <source src="http://www.ourdomain.org/audio/{$id}.mp3" type="audio/mpeg">
    </audio>
    <script type="text/javascript">
      var audioTag = document.createElement('audio');
      if (!(!!(audioTag.canPlayType) && ("no" != audioTag.canPlayType("audio/mpeg")) && ("" != audioTag.canPlayType("audio/mpeg")) )) {
      AudioPlayer.embed("audiotag_{$id}", {soundFile: "http://www.ourdomain.org/audio/{$id}.mp3"});
      }
    </script><br />
    <a href="http://www.ourdomain.org/audio/{$id}.mp3">Click here to download the mp3</a>
    
    If you want to try on your own, it's not hard to find tutorials on adding HTML5 audio.

    I can't afford to support the code, in any significant manner, unfortunately. It is there only for example purposes. Also, I'm not 100% sure that the above uses HTML5, as this might be a version that I created before deciding to go the HTML5 route. In that case, it might not even work without an external library. Sorry for no support!

    Again, probably not what you were looking for, but it might be nice to know that if you can't find a plugin, relatively simple and very reliable options are available.
     

Share This Page