Profile Music Uploader

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    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
    ________________
    Jacques
    jacques@gw-designs.co.za
    http://coding.biz.tm
    Come join and lets make it a place to learn all the noobies how to code
    __________________

    NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

    Comment


      #17
      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 song
      echo "<embed name=\"$music\"src=\"/music/$musiclink\"loop=\"false\"hidden=\"true\"autostart =\"true\"></embed>";
      and when I put this code
      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
      sigpichttp://happy.srecnica.com/web

      Comment


        #18
        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


          #19
          Originally posted by riderz View Post
          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
          yeah 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.
          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


            #20
            Originally posted by capofret View Post
            yeah 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.
            capofret im looking always at his comment he NEVER help he always say ah its easy to do so wara wara etc etc but i never saw him ever help just braging so i dnt know why he is on this coding site coding-talk are here to HELP ppl code not just braging
            ________________
            Jacques
            jacques@gw-designs.co.za
            http://coding.biz.tm
            Come join and lets make it a place to learn all the noobies how to code
            __________________

            NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

            Comment


              #21
              Originally posted by capofret View Post
              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.
              to ... 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
              Last edited by srecnica; 24.09.09, 08:26.
              sigpichttp://happy.srecnica.com/web

              Comment


                #22
                Originally posted by srecnica View Post
                to ... 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
                for Opera or IE

                <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


                  #23
                  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&amp;sid=$sid\"><img src=\"http://coding-talk.com/images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
                  echo "HAPPY</a>";

                  echo "</p>";
                  echo xhtmlfoot();
                  exit();
                  }
                  in lists.php
                  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&amp;sid=$sid&amp ;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&amp;sid=$sid&amp;pag e=$ppage&amp;view=$view\">«Prev</a> ";
                  }
                  if($page<$num_pages)
                  {
                  $npage = $page+1;
                  echo "<a href=\"lists.php?action=music&amp;sid=$sid&amp;pag e=$npage&amp;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&amp;sid=$sid\"><img src=\"http://coding-talk.com/images/themes/$themeimageset[0]/home.gif\" alt=\"*\"/>";
                  echo "HAPPY</a>";

                  echo "</p>";
                  echo xhtmlfoot();
                  exit();
                  }
                  in index.php action wievuser profile
                  $musiclink = getmusic($who);
                  echo"<embed src=\"$musiclink\" loop=\"infinite\" autostart=\"true\" WIDTH=0 HEIGHT=0></embed>";
                  in core.php
                  function getmusic($uid)
                  {
                  $music = mysql_fetch_array(mysql_query("SELECT music FROM ibwf_users WHERE id='".$uid."'"));
                  return $music[0];
                  }
                  in admincp
                  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&amp;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&amp;sid=$sid\">< img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
                  echo "Vlasnicki panel</a><br/>";
                  echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
                  echo "HAPPY</a>";
                  echo "</p>";
                  echo "</card>";
                  }
                  in admonproc.php
                  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&amp;sid=$sid\">";
                  echo "Panel Muzike</a><br/>";
                  echo "<a href=\"ownercp.php?action=ownercp&amp;sid=$sid\">< img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>";
                  echo "Vlasnicki panel</a><br/>";
                  echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>";
                  echo "HAPPY</a>";

                  echo "</p></card>";
                  }
                  SQL
                  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 ;
                  sql users add music varchar 200
                  create a music folder and upload it midi files
                  thanks for the help
                  Last edited by srecnica; 01.10.09, 20:52.
                  sigpichttp://happy.srecnica.com/web

                  Comment


                    #24
                    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
                    in genproc.php
                    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&amp;sid=$sid\">";
                    echo "HAPPY</a>";
                    echo "</p>";
                    echo xhtmlfoot();
                    }
                    in index.php acnion=main
                    $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&amp;sid=$sid&amp;ac t=dis\">Turn music</a><br/>";
                    }else{
                    echo "<a href=\"genproc.php?action=musi&amp;sid=$sid&amp;ac t=enb\">Allow music</a><br/>";
                    }
                    in index.php action wievuser profile
                    $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"){
                    }
                    sigpichttp://happy.srecnica.com/web

                    Comment


                      #25
                      does this work 4 wap v2 ne1

                      Comment


                        #26
                        dnt use this uploader.. im sure u will get haked


                        ....................................
                        http://photomag.lk/
                        ....................................

                        Comment

                        Working...
                        X