wapmetal u also have something to say but why never u help ppl with the codings once just give some codes to help us please
Profile Music Uploader
Collapse
X
-
This code is good and works but I have a problem because we only work in the Opera browser on the computer and Mozilla does not work .. and not to autostart true I have to click to start the songecho "<embed name=\"$music\"src=\"/music/$musiclink\"loop=\"false\"hidden=\"true\"autostart =\"true\"></embed>";
echo "<br/><bgsound src=\"music/$musiclink\" loop=\"1\"/>";
then we do not work ... signs can only be seen if the player with embed code, but how to set autostart?? ...If I put autostart = false as me and autoestart = true ...and should when autostart = true to the song begins as soon as the load page .. and when autostart = false to begin when you click on the song. and to me the same .. I have to click to start music
Comment
-
the correct code depends on which browser u want it to be played. opera, firefox, internet explorer each has code that it only accepts. mobile browser built in also has its own code. So dont be surprised if it doesnt play. I think some browsers dont allow background music to be played automatically and some require plug in.LDSWAPWORLD sigpic
site closed.
im busy with other things in life like facebook , send me PM so i can add you
www.pinoySG.com
don't ask for help if you're not even helping yourself!
i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.
Comment
-
Originally posted by riderz View Postwapmetal u also have something to say but why never u help ppl with the codings once just give some codes to help us please
his comments are not even helpful. he only makes himself as if he knew everything. look at all his posts.LDSWAPWORLD sigpic
site closed.
im busy with other things in life like facebook , send me PM so i can add you
www.pinoySG.com
don't ask for help if you're not even helping yourself!
i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.
Comment
-
Originally posted by capofret View Postyeah he always comments that its easy to do but he never gave the code for it to begin with.
his comments are not even helpful. he only makes himself as if he knew everything. look at all his posts.
Comment
-
Originally posted by capofret View Postthe correct code depends on which browser u want it to be played. opera, firefox, internet explorer each has code that it only accepts. mobile browser built in also has its own code. So dont be surprised if it doesnt play. I think some browsers dont allow background music to be played automatically and some require plug in.Last edited by srecnica; 24.09.09, 08:26.
Comment
-
Originally posted by srecnica View Postto ... Mozilla we require a plug in but when I go to download it does not give anything .. to know that we plug in to ...I have a Mozilla plugin for Windows Media Player, Flash Player .. real player .. I do not know which player to install it yet
<bgsound src="file.mid" loop="infinite">
for all browsers
<embed src="file.mid" autostart="true" loop="true"
width="2" height="0">
</embed>
<noembed>
<bgsound src="file.mid" loop="infinite">
</noembed>
autostart - choose if the media file will start automatically
loop - sets the media file to repeat or not
dont forget to add in your .htaccess the correct mime type
AddType audio/midi .midi
AddType audio/mpeg .mp3
AddType audio/x-wav .wav
plugins
IE- activeX
Mozilla - Quicktime
just try the other media players to see which one really works.LDSWAPWORLD sigpic
site closed.
im busy with other things in life like facebook , send me PM so i can add you
www.pinoySG.com
don't ask for help if you're not even helping yourself!
i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.
Comment
-
Here's how I did all of this and all very nice work
in genproc.php
else if($action=="upmusic")
{
addonline(getuid_sid($sid),"Updating music","");
$musicid = $_GET["musicid"];
$musiclink = $_POST["musiclink"];
$pstyle = gettheme($sid);
echo xhtmlhead("$stitle",$pstyle);
echo "<p align=\"center\">";
//$uid = getuid_sid($sid);
$musiclnk = mysql_fetch_array(mysql_query("SELECT musiclink FROM ibwf_music WHERE id='".$musicid."'"));
$res = mysql_query("UPDATE ibwf_users SET music='".$musiclnk[0]."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/>Muzika je Odabrana <br/>";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>Greska!<br/>";
}
echo "<br/>";
$thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'"));
$themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'"));
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
echo "</p>";
echo xhtmlfoot();
exit();
}
else if($action=="music")
{
addonline(getuid_sid($sid),"Music List","");
$pstyle = gettheme($sid);
echo xhtmlhead("Music List",$pstyle);
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_music"));
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
//changable sql
$sql = "SELECT id, musiclink,title FROM ibwf_music ORDER BY id DESC LIMIT $limit_start, $items_per_page";
echo "<p>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
echo "$item[2]<br/>";
echo "<a href=\"genproc.php?action=upmusic&sid=$sid& ;musicid=$item[0]\">Izaberi</a><br/>";
echo "<br/>";
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"lists.php?action=music&sid=$sid&pag e=$ppage&view=$view\">«Prev</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"lists.php?action=music&sid=$sid&pag e=$npage&view=$view\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
$rets = "<form action=\"lists.php\" method=\"get\">";
$rets .= "Jump to page<input name=\"page\" format=\"*N\" size=\"3\"/><br/>";
$rets .= "<input type=\"submit\" value=\"GO\"/>";
$rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
$rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
$rets .= "</form>";
echo $rets;
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=cpanel\">";
echo "CPanel</a><br/>";
$thid = mysql_fetch_array(mysql_query("SELECT themeid FROM ibwf_users WHERE id='".$uid."'"));
$themeimageset = mysql_fetch_array(mysql_query("SELECT themedir FROM ibwf_iconset WHERE id='".$thid[0]."'"));
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
echo "</p>";
echo xhtmlfoot();
exit();
}
$musiclink = getmusic($who);
echo"<embed src=\"$musiclink\" loop=\"infinite\" autostart=\"true\" WIDTH=0 HEIGHT=0></embed>";
function getmusic($uid)
{
$music = mysql_fetch_array(mysql_query("SELECT music FROM ibwf_users WHERE id='".$uid."'"));
return $music[0];
}
else if($action=="addmus")
{
echo "<card id=\"main\" title=\"Vlasnicki panel\">";
echo "<p align=\"center\">";
echo "<b>Dodaj Muziku</b><br/><br/>";
echo "<b>Naziv pesme</b><br/>";
echo "<input name=\"title\"/><br/>";
echo "Link Muzike:<input name=\"musiclink\" maxlength=\"200\"/><br/>";
echo "<anchor>POTVRDI";
echo "<go href=\"ownerproc.php?action=addmus&sid=$sid\" method=\"post\">";
echo "<postfield name=\"musiclink\" value=\"$(musiclink)\"/>";
echo "<postfield name=\"title\" value=\"$(title)\"/>";
echo "</go></anchor>";
echo "<br/><br/><a href=\"ownercp.php?action=ownercp&sid=$sid\">< img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
echo "Vlasnicki panel</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
echo "</p>";
echo "</card>";
}
else if($action=="addmus")
{
$title = $_POST["title"];
$musiclink = $_POST["musiclink"];
echo "<card id=\"main\" title=\"HAPPY Forum\">";
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("INSERT INTO ibwf_music SET title='".$title."', musiclink='".$musiclink."'");
if($res)
{
echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Muzika uspesno dodata!";
}else{
echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Nemoguce dodati Muziku!";
}
echo "<br/><br/><a href=\"ownercp.php?action=addmus&sid=$sid\">";
echo "Panel Muzike</a><br/>";
echo "<a href=\"ownercp.php?action=ownercp&sid=$sid\">< img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
echo "Vlasnicki panel</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
echo "HAPPY</a>";
echo "</p></card>";
}
CREATE TABLE IF NOT EXISTS `ibwf_music` (
`id` int(10) NOT NULL auto_increment,
`musiclink` varchar(300) NOT NULL default '',
`title` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `musiclink` (`musiclink`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
create a music folder and upload it midi files
thanks for the helpLast edited by srecnica; 01.10.09, 20:52.
Comment
-
as WhiteWarrior said music is an expensive option, and here's an option to choose whether the user wants to music or do not want
in the SQL table users add
showmusic INT 100
else if($action=="musi")
{
addonline(getuid_sid($sid),"Azuriraj muziku","");
$act = $_GET["act"];
$acts = ($act=="dis" ? 0 : 1);
$pstyle = gettheme($sid);
echo xhtmlhead("$nazivsajta",$pstyle);
echo "<p align=\"center\">";
//$uid = getuid_sid($sid);
$res = mysql_query("UPDATE ibwf_users SET showmusic='".$acts."' WHERE id='".$uid."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"o\"/>muzika azururana!<br/>";
}else{
echo "<img src=\"images/notok.gif\" alt=\"x\"/>Nemoguce azurirati vas profil!<br/>";
}
echo "<br/><img src=\"images/home.gif\" alt=\"*\"/> <a href=\"index.php?action=main&sid=$sid\">";
echo "HAPPY</a>";
echo "</p>";
echo xhtmlfoot();
}
$sml = mysql_fetch_array(mysql_query("SELECT showmusic FROM ibwf_users WHERE id='".getuid_sid($sid)."'"));
if($sml[0]=="1")
{
echo "<a href=\"genproc.php?action=musi&sid=$sid&ac t=dis\">Turn music</a><br/>";
}else{
echo "<a href=\"genproc.php?action=musi&sid=$sid&ac t=enb\">Allow music</a><br/>";
}
$showmusic = mysql_fetch_array(mysql_query("SELECT showmusic FROM ibwf_users WHERE id='".$uid."'"));
if($showmusic[0]=="1"){
$musiclink = getmusic($who);
echo"<embed src=\"$musiclink\" loop=\"infinite\" autostart=\"true\" WIDTH=0 HEIGHT=0></embed>";
}
else
if($showmusic[0]=="0"){
}
Comment
Comment