The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Music Player Help?

View previous topic View next topic Go down

Music Player Help?

Post by OGChiger on September 14th 2010, 11:32 pm

Code:
<img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://counters.gigya.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEyODQ*OTgzNzY5ODQmcHQ9MTI4NDQ5ODM5MDE4MyZwPTY5NDMwMSZkPSZnPTEmbz1jYjU4MjY3YTczY2M*MzE5ODli/NjkwNWNiOTcyMjQ3NyZvZj*w.gif" /><div style="text-align: center; margin-left: auto; visibility:visible; margin-right: auto; width:450px;"> <object width="435" height="270"> <param name="movie" value="http://www.musiclist.us/mc/mp3player_new.swf"></param> <param name="allowscriptaccess" value="never"></param> <param name="wmode" value="transparent"></param> <param name="flashvars" value="config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_regular_shuffle.xml&mywidth=435&myheight=270&playlist_url=http%3A%2F%2Fwww.musiclist.us%2Fpl.php%3Fplaylist%3D80207355%26t%3D1284498378&wid=os"></param> <embed style="width:435px; visibility:visible; height:270px;" allowScriptAccess="never" src="http://www.musiclist.us/mc/mp3player_new.swf" flashvars="config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_regular_shuffle.xml&mywidth=435&myheight=270&playlist_url=http%3A%2F%2Fwww.musiclist.us%2Fpl.php%3Fplaylist%3D80207355%26t%3D1284498378&wid=os" width="435" height="270" name="mp3player" wmode="transparent" type="application/x-shockwave-flash" border="0"/> </object> <br/> <a href="http://www.musiclist.us"><img src="http://www.musiclist.us/mc/images/create_gray.jpg" border="0" alt="Get a playlist!"/></a> <a href="http://www.musiclist.us/playlist/20533082891/standalone" target="_blank"><img src="http://www.musiclist.us/mc/images/launch_gray.jpg" border="0" alt="Standalone player"/></a> <a href="http://www.musiclist.us/playlist/20533082891/download"><img src="http://www.musiclist.us/mc/images/get_gray.jpg" border="0" alt="Get Ringtones"/></a> </div>

It works, I resized it to what I need it to be, but I want it to play across the forum, so no matter what topic they go to the same song plays. If anyone can help me that would be AWESOME...TYIA

OGChiger
New Member

Posts : 5
Reputation : 0
Language : English

Back to top Go down

Re: Music Player Help?

Post by OGChiger on September 18th 2010, 6:19 am

Hmmm..Someone please help me with this problem....update...Maybe if someone can give me a code or way to make it so the forum part of the website is a free standing page kinda like a frame, so that only the forum part of the portal would change that would be cool....

OGChiger
New Member

Posts : 5
Reputation : 0
Language : English

Back to top Go down

Re: Music Player Help?

Post by RoNo on September 18th 2010, 1:34 pm

For uninterrupted listening... make your player a popup.
Place this link in a widget or on your homepage message
Code:
<center><table border="0" cellpadding="1" cellspacing="0"><tr><td><img src="http://i54.tinypic.com/o0xa2u.jpg"></td> <td><a href="http://www.playlist.com/" onclick="window.open('http://www.musiclist.us/mc/mp3player_new.swf?config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_regular_shuffle.xml&mywidth=435&myheight=270&playlist_url=http%3A%2F%2Fwww.musiclist.us%2Fpl.php%3Fplaylist%3D80207355%26t%3D1284498378&wid=os', 'popup1','width=435px,height=300,height=300,left=150,top=250'); return false">Popup Music Player</a></td><tr></table></center>

Link and player examples
Spoiler:
Player Link:




Popup Player:

RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Re: Music Player Help?

Post by OGChiger on September 18th 2010, 7:02 pm

Ok, that is fine, but I want it to start automatically.

OGChiger
New Member

Posts : 5
Reputation : 0
Language : English

Back to top Go down

Re: Music Player Help?

Post by RoNo on September 18th 2010, 10:06 pm

Sorry, there isn't a quick "copy & paste" code for that.
An auto popup player will require some work on your part.


We don't want an auto popup every time the page is
loaded because the music will restart with each reload.

Here's the best way to add an auto popup player, imo...

Keep the popup player link option and use the method below
to have it auto popup once per day (by reading cookies)


*Create an Html page with this
Code:
<html>
<head>
<title>Music Player 1</title>
<link rel="shortcut icon" href="http://www.icobox.net/Icons/16x16_phone_icons/Phone_01.gif">
<style type="text/css">
body {background-color:#000000}</style>
</head>
<body>
<object width="435" height="270"> <param name="movie" value="http://www.musiclist.us/mc/mp3player_new.swf"></param> <param name="allowscriptaccess" value="never"></param> <param name="wmode" value="transparent"></param> <param name="flashvars" value="config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_regular_shuffle.xml&mywidth=435&myheight=270&playlist_url=http%3A%2F%2Fwww.musiclist.us%2Fpl.php%3Fplaylist%3D80207355%26t%3D1284498378&wid=os"></param>  <embed style="width:435px; visibility:visible; height:270px;" allowScriptAccess="never" src="http://www.musiclist.us/mc/mp3player_new.swf" flashvars="config=http%3A%2F%2Fwww.indimusic.us%2Fext%2Fpc%2Fconfig_regular_shuffle.xml&mywidth=435&myheight=270&playlist_url=http%3A%2F%2Fwww.musiclist.us%2Fpl.php%3Fplaylist%3D80207355%26t%3D1284498378&wid=os" width="435" height="270" name="mp3player" wmode="transparent" type="application/x-shockwave-flash" border="0"/> </object>
</body>
</html>


Get the new player page Url from "Html pages management"
and add it to: var page = (in the auto popup script below)

Place the auto popup script in your
homepage message (for auto popup on the index)
and create a *widget for your *portal with the script
(to have an auto popup player on your portal)...

Admin Panel»Display»Homepage»Generalities»Message content
Code:
<script type="text/javascript">
var expDays = 1;

var page = "http://YOUR SITE/PLAYER PAGE.htm";
var windowprops = "width=435,height=300,height=200,left=23,top=460,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes";

function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document·cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document·cookie.substring(i, j) == arg)
    return getCookieVal (j);
    i = document·cookie.indexOf(" ", i) + 1;
    if (i == 0) break;
  }
  return null;
}

function SetCookie (name, value) {
  var argv = SetCookie.arguments;
  var argc = SetCookie.arguments.length;
  var expires = (argc > 2) ? argv[2] : null;
  var path = (argc > 3) ? argv[3] : null;
  var domain = (argc > 4) ? argv[4] : null;
  var secure = (argc > 5) ? argv[5] : false;
  document·cookie = name + "=" + escape (value) +
    ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
    ((path == null) ? "" : ("; path=" + path)) +
    ((domain == null) ? "" : ("; domain=" + domain)) +
    ((secure == true) ? "; secure" : "");
}

function DeleteCookie (name) {
  var exp = new Date();
  exp.setTime (exp.getTime() - 1);
  var cval = GetCookie (name);
  document·cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

function amt(){
  var count = GetCookie('count')
  if(count == null) {
    SetCookie('count','1')
    return 1
  } else {
    var newcount = parseInt(count) + 1;
    DeleteCookie('count')
    SetCookie('count',newcount,exp)
    return count
  }
}

function getCookieVal(offset) {
  var endstr = document·cookie.indexOf (";", offset);
  if (endstr == -1)
  endstr = document·cookie.length;
  return unescape(document·cookie.substring(offset, endstr));
}

function checkCount() {
  var count = GetCookie('count');
  if (count == null) {
    count=1;
    SetCookie('count', count, exp);
    window.open(page, "", windowprops);
  } else {
    count++;
    SetCookie('count', count, exp);
  }
}

window.onload=checkCount;
</script>
Note: Delete forum cookies if you have closed the player
& want it to auto popup again during your current session.
Or just click your popup player link Cool


RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Re: Music Player Help?

Post by OGChiger on September 18th 2010, 11:47 pm

Awesome..Sorry for putting you through that work. But I couldn't get that to work so I simply put both on the website. The playlist on the website that changes, and the popout, so that I get the autostart and the ability to popout the music. Haha I also just realized I have to figure out how to STOP the autoplayer if the popup is open.

OGChiger
New Member

Posts : 5
Reputation : 0
Language : English

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum