HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Audio Player .. that stays playing as you go from page to page

422422 Developer MVP
edited November 2011 in Feedback
So .. by the way this isnt our code, and its remarkably easy to implement. One of our forum Mods, asked us if this could be initiated on our forums.. we said thats a breeze because all you need is to add the call in each page..as an include or within footer

What I do like about this is , just how cool it works.

http://scmplayer.net/

Check it out..
http://sitehelp.com.au/

p.s I have made quite a few skins for different sites, and happy to make ONE and one only for use with this player that is Vanilla flavoured

There was an error rendering this rich post.

Comments

  • Options
    ToddTodd Chief Product Officer Vanilla Staff
    Awesome stuff. Great to have you in the community.
  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    edited November 2011
    422

    I'd like to add that to my forum.

    Would you have the time to explain how I would go about adding the call or making the code an include with a footer?

    I've tried looking at the Vanilla documentation, but can't see where to go (which is my problem, not Vanilla's...)

    Thanks if you can, no worries if you can't.
  • Options
    422422 Developer MVP
    edited November 2011
    Sure but i havent the skill to make as a plugin, but will happily create a tutorial. Its 7 am so will do it later.

    Ste

    There was an error rendering this rich post.

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    Ta very muchly!
  • Options
    422422 Developer MVP
    Tutorial complete : enjoy

    There was an error rendering this rich post.

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    edited November 2011
    422

    Thanks for doing that, and it will be handy when I get things working!

    I'm afraid I wasn't clear in my original post.

    I can get the player to work on a non Vanilla site I have, just not in the Vanilla one.

    If I paste the code into my default.master.php file in my custom theme folder nothing happens.

    I assume I'm putting the code in the wrong place, but don't know where it should go.

    Thanks very much for having the patience to try to help me.

  • Options
    422422 Developer MVP
    edited November 2011
    Ok will run some tests, bear with me.

    There was an error rendering this rich post.

  • Options
    422422 Developer MVP
    Ok its easy.

    Upload the mplayer folder to: website/forums/themes/yourtheme/views/

    Then grab the script code. That you generate, and ensure that the script is pointing to the right place:
    <script type="text/javascript" src="http://yourwebsite.com/forums/themes/yourTheme/views/mplayer/script.php" >

    Make sure you add the script block generated to your default.master.php file ( your OWN custom one in views folder in your themes. )

    Find this code block:

    <div id="Foot"> <?php $this->RenderAsset('Foot'); echo Wrap(Anchor(T('Powered by Vanilla'), C('Garden.VanillaUrl')), 'div'); ?> </div>

    Add the Media Player code block before the closing div tag.

    Like:
    <div id="Foot"> <?php $this->RenderAsset('Foot'); echo Wrap(Anchor(T('Powered by Vanilla'), C('Garden.VanillaUrl')), 'div'); ?> <!--422 Music Player by Steve 422.com.au--> in here is the code you generated for your music player <!--End of 422 Music Player script--> </div>

    The only issue we have is, the new notification code in 2.0.18.1 interferes slightly, but I am sure someone can provide a fix for this.

    This is enough for you to get playing with it, and have some fun ...

    There was an error rendering this rich post.

  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    Thank you so much for taking the trouble to do this.

    It is very much appreciated.
  • Options
    how to remove the google ads in the playlist box?
  • Options
    whu606whu606 I'm not a SuperHero; I just like wearing tights... MVP
    edited November 2011
    cactus - I'm assuming you've followed the above tutorial for hosting on your own site.

    Then, in the mplayer folder you have created, find playlist.html

    Find and remove the following code:
    <script type="text/javascript"><!--
    	google_ad_client = "ca-pub-6799082498278077";
    	/* SCM Image ads */
    	google_ad_slot = "5274592921";
    	google_ad_width = 200;
    	google_ad_height = 200;
    	//-->
    	</script>
    	<script type="text/javascript"
    	src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    	</script>
    
    You're done!
  • Options
    nice ! thanks @whu606 yea i try follow the tutorial above but i fail, it always appear bonk, dunno why. now i am trying it in my wordpress
Sign In or Register to comment.