Help - Search - Members - Calendar
Full Version: Adding Music to phpBB2
BleepingComputer.com > Internet & Networking > Web Site Development
   
PrittStick
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! smile.gif
ColdinCbus
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.
CODE
<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
CODE
<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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.