Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Adding Music to phpBB2


  • Please log in to reply
1 reply to this topic

#1 PrittStick

PrittStick

  • Members
  • 97 posts
  • OFFLINE
  •  
  • Location:Wolverhampton, England
  • Local time:03:48 PM

Posted 22 March 2005 - 08:45 AM

I have a phpBB2 forum and basically, I have no clue on how to edit it once you leave the Administration Panel. My question is, how do you add music? Like someone clicks play or stop and stuff. Please reply! :thumbsup:

BC AdBot (Login to Remove)

 


m

#2 ColdinCbus

ColdinCbus

  • Members
  • 312 posts
  • OFFLINE
  •  
  • Local time:11:48 AM

Posted 23 March 2005 - 01:37 PM

You are probably going to need to use a javascript or flash to make that happen.
here is an example of a really simple form that will do that.
<form>
    <p align="center"><select name="s" size="1">
        <option value>Juke Box</option>
        <option value="1.mid">Sample 1</option>
        <option value="3.mid">Sample 2</option>
        <option value="2.mid">Sample 3</option>
    </select></p>
    <div align="center"><center><table border="0" cellpadding="3"
    cellspacing="5">
        <tr>
            <td><input type="button" name="play"
            value="   Play   "
            onclick="window.top.parent.location=s.options[s.selectedIndex].value"></td>
        </tr>
    </table>
    </center></div>
</form>

replace
<option value="1.mid">Sample 1</option>
        <option value="3.mid">Sample 2</option>
        <option value="2.mid">Sample 3</option>
with your music files.

You would need to add that into the template files. You may want to head over to one of the phpbb2 mod forums to see if they have a mod to do this with install instructions.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users