The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Adding a sound bite for when people enter the forum

+2
Cool-processor
assassingr
6 posters

Go down

Solved Adding a sound bite for when people enter the forum

Post by assassingr March 5th 2010, 3:21 pm

i did manage to embed music bt it only works at home page. When i press log in it starts all over and when i go from home page to a thread it just stops playing... Confused Confused Confused Confused

is there any way to make it follow through pages in forum (continius play not start again)?
avatar
assassingr
New Member

Posts : 7
Reputation : 0
Language : Ελληνικά

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by Cool-processor March 5th 2010, 3:42 pm

may i see the link to your forumotion forum?
thank you Wink
Cool-processor
Cool-processor
Forumember

Male Posts : 724
Reputation : -55
Language : HTML | CSS/3 | JQuery
Location : To my own coding world

http://www.creative-labz.com

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by Maki1 March 5th 2010, 3:47 pm

Maki1
Maki1
Hyperactive

Male Posts : 2529
Reputation : 442
Language : English »» CSS Stylesheet
Location : The » Support » forum » Section! • No support by PM If you need custom theme please contact me!

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by assassingr March 6th 2010, 6:02 pm

avatar
assassingr
New Member

Posts : 7
Reputation : 0
Language : Ελληνικά

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by assassingr March 7th 2010, 10:51 am

i need help ppl plssssssssssssssssssssssssssssss
avatar
assassingr
New Member

Posts : 7
Reputation : 0
Language : Ελληνικά

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by Sanket March 7th 2010, 10:55 am

RoNo wrote:Use this for your hidden intro sound
Code:
<embed src="http://www.youtube.com/v/Ovp1nt4m5Tc&hl=en_US&fs=1&rel=0&autoplay=1&loop=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="false" width="1" height="1">

Sound test (varoom)
Adding a sound bite for when people enter the forum Driving

Also, its not possible to keep it continuous when you refresh the page or go onto other pages.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by assassingr March 7th 2010, 11:22 am

yes i know that but i need it to popup and start when i login forum! play the moment i log in and through my serf in forum pages....(not start over) i want it as a popup so ppl can still choose songs if they want. tu in front!
avatar
assassingr
New Member

Posts : 7
Reputation : 0
Language : &#917;&#955;&#955;&#951;&#957;&#953;&#954;&#940;

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by assassingr March 7th 2010, 11:30 am

i can use this still of bb

<a href="http://www.mixpod.com/standalone.php?id=29107141" target="popup" onclick="window.open('http://www.mixpod.com/standalone.php?id=29107141', 'popup', 'width=400,height=200,height=200,left=150,top=250,scrollbars=no'); return false"><font face="times new roman" size="2">Popup Music Player</font></a>

but this 1 waits for me to cling on target. I want to to start auto when i log on
avatar
assassingr
New Member

Posts : 7
Reputation : 0
Language : &#917;&#955;&#955;&#951;&#957;&#953;&#954;&#940;

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by assassingr March 7th 2010, 11:34 am

this is the code i need to make it pop up it works 90% as i want it to but it wont popup so it can go on playing when i serf forum threads

<center><p style="visibility:visible;"><object type="application/x-shockwave-flash" data="http://assets.myflashfetish.com/swf/mp3/mixpod.swf" height="311" width="410" style="width:410px;height:311px"><param name="movie" value="http://assets.myflashfetish.com/swf/mp3/mixpod.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="TL" /><param name="wmode" value="transparent"/><param name="flashvars" value="myid=46384341&path=2010/03/06&mycolor=312d3b&mycolor2=4f93b0&mycolor3=99bfbe&autoplay=true&rand=0&f=4&vol=100&pat=2&grad=false"/></object>
avatar
assassingr
New Member

Posts : 7
Reputation : 0
Language : &#917;&#955;&#955;&#951;&#957;&#953;&#954;&#940;

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by Sanket March 7th 2010, 11:37 am

May I remind you that double/triple posting isn't tolerated unless separated by 24 hours (Use the edit button) Wink
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by RoNo March 8th 2010, 5:36 am

You can use a script to auto-popup a music player, chatbox etc...

A basic "onload" popup script will have the same issue you mentioned earlier:
"music restarting each time the page is loaded". You can workaround the issue by adding a "GetCookie" function that will check to see if members are logged in and "not" popup again for a set amount of time (hours/days). Deleting cookies will allow the onload popup player to appear again if you close it by mistake during a session.

The script below is what I use for an auto-popup player (try it in
*this editor)
Code:
<script type="text/javascript" src="http://www.yourjavascript.com/4600112232/grunge-popup.js"></script>

Adding a sound bite for when people enter the forum Break_gray1

1st... you'll need a music player page (Url) for the popup script.
Create an Html page with this...
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><title>Elite Army Playlist</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="author" content="rono">
<meta name="description" content="Elite Army Playlist for Popup">
<link rel="shortcut icon" href="http://i49.tinypic.com/dpbz3q.png"></head>
<body style="background-image: url(); background-color:black; background-repeat:repeat">
<center><object type="application/x-shockwave-flash" data="http://assets.myflashfetish.com/swf/mp3/mixpod.swf" height="311" width="410" style="width:410px;height:311px"><param name="movie" value="http://assets.myflashfetish.com/swf/mp3/mixpod.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="TL" /><param name="wmode" value="transparent"/><param name="flashvars" value="myid=46384341&path=2010/03/06&mycolor=312d3b&mycolor2=4f93b0&mycolor3=99bfbe&autoplay=true&rand=0&f=4&vol=100&pat=2&grad=false"/></object>
</center>
</body>
</html>

Adding a sound bite for when people enter the forum Break_gray1

Copy your new player page address from "Html Pages Management"
and add it to this script...
Code:
var expDays = 1;

var page = "YOUR PLAYER PAGE ADDRESS.htm";
var windowprops = "width=425,height=325,height=200,left=150,top=250,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;
If you want the player to popup again in a set amount of hours...
Change the cookie expiration from: var expDays = 1
to: var expHours = 3 (or however many hours you want)

Once you close the player it will not popup again until the set
amount of time has passed or you clear/delete your forum cookies.

Adding a sound bite for when people enter the forum Break_gray1

Save the above script as player1.js & upload it to yourjavascript.com

yourjavascipt.com will send you an email containing the script link.
Place the script link in your homepage message, or site description.

[ see example email below ]
Spoiler:
RoNo
RoNo
Active Poster

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

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by Mathia March 8th 2010, 10:01 pm

This is the sound i want it to play https://www.youtube.com/watch?v=ZaflNU45bVY ive tryed everything and can't get it to work can you make this into the correct HTML form also ive been putting it in the "Homepage Message" is that the correct area ?
avatar
Mathia
New Member

Posts : 5
Reputation : 0
Language : English

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by assassingr March 8th 2010, 10:11 pm

:wouhou: :wouhou: :wouhou: :wouhou: :wouhou: :wouhou: :wouhou:

tu Rono :wouhou: :wouhou: :wouhou: :wouhou: :wouhou: :wouhou: prob solved
avatar
assassingr
New Member

Posts : 7
Reputation : 0
Language : &#917;&#955;&#955;&#951;&#957;&#953;&#954;&#940;

Back to top Go down

Solved Re: Adding a sound bite for when people enter the forum

Post by RoNo March 8th 2010, 10:43 pm

@ Mathia,
assassin gr's player works by placing this script in a widget
Spoiler:
You'll need to create a player page for an auto-popup.
If you just want the song to play when the page loads...
Add this to: Admin Panel/Display/Homepage/Generalities/Message Content
Code:
<embed src="http://www.youtube.com/v/ZaflNU45bVY&hl=en_US&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="sameDomain" allowfullscreen="false" width="1" height="1" style="visibility:hidden">
Be sure to *enable Html

Adding a sound bite for when people enter the forum Cool2

Way to go assassin gr!
This topic is closed. Glad I could help.

LockedAdding a sound bite for when people enter the forum Lock2RoNo
Adding a sound bite for when people enter the forum Bullet_blue2 General rules
Adding a sound bite for when people enter the forum Bullet_blue2 Tricks & Tips
Adding a sound bite for when people enter the forum Bullet_blue2 FAQ listing
Adding a sound bite for when people enter the forum Bullet_blue2 For founders who lost their passwords
Adding a sound bite for when people enter the forum Bullet_blue2 About support requests by PM
Adding a sound bite for when people enter the forum Bullet_blue2 Announcements & Updates
RoNo
RoNo
Active Poster

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

http://bf2mercenaries.forumotion.com/

Back to top Go down

Back to top

- Similar topics

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