Jump to content

Suntem in cautare de moderatori / postatori tutorial/resurse . 

mai multe detalii . lasa un pm http://invision-romania.ro/index.php?/profile/1-cold/

  • Announcements

    • Dark_s0uL

      ATENTIE   03/09/2019

      Pentru a downloada un fisier aveti nevoie de 10 POSTs/TOPICs . Nu faceti SPAM -> BAN PERMANENT
Sign in to follow this  
Dark_s0uL

Default Volume For Profile Songs

Recommended Posts

o fix the ear murder simply go to your ACP > Customize > Themes > (Theme you wish to edit) Edit HTML/CSS > Core/global/plugins/ps_display.

From here you want to open it and view the contents. It should show as 


 

Quote

 

{{$profileSong = $member->profileSong();}}
{{if $profileSong->file}}
  <div class='cProfileSidebarBlock ipsPad ipsBox ipsSpacer_bottom'>
    <h2 class='ipsType_sectionHead ipsType_reset'>Profile Song</h2>

    <div class='ipsType_center'>
      <p>
        <audio autoplay="" controls="" loop="" preload="" class="ps_audio">
          <source src="{$profileSong->file->url}"></source>
        </audio>
      </p>
    </div>
  </div>
{{endif}}

 

Now replace it all with -
 

Quote

 

{{$profileSong = $member->profileSong();}}
{{if $profileSong->file}}
  <div class='cProfileSidebarBlock ipsPad ipsBox ipsSpacer_bottom'>
    <h2 class='ipsType_sectionHead ipsType_reset'>Profile Song</h2>

    <div class='ipsType_center'>
      <p>
        <script>
       window.onload = function() {
    var backgroundAudio=document.getElementById("music");
    backgroundAudio.volume=0.09;
}
        </script>
        <audio id="music" autoplay="" controls="" loop="" preload="" class="ps_audio">
          <source src="{$profileSong->file->url}"></source>
        </audio>
      </p>
    </div>
  </div>
{{endif}}

 

 

Now you can freely change the default volume at which the music will play at when you visit a user's profile by changing <backgroundAudio.volume=0.09;> (Do note that .5 is 50% so i recommend .1 or lower!)

  • Like 1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×