Back to vBulletin 3.5 Template Modifications

Battle music in RPG Inferno lite
Mod Version: 2.00, by Renmiri

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 1
Released: 07 Aug 2006 Last Update: 08 Aug 2006 Downloads: 5
Not Supported Uses Plugins Template Edits  

You know how the music starts again every time you attack ? A bit annoying, isn't it ? Easily fixed with just 2 minimal template changes and a lil' plugin.

Step 1
Download the plugin from here and import it.

Step 2
On the inferno_battle_music template remove all that is there (causes the music to restart every time the page gets reloaded, which is every time someone attacks)

Step 3
On the inferno_battle_your_battle template (or any of those "inferno_battle..." templates) add a link to the battle music using the code below, which opens a new window for your music (which never gets reloaded so your battle music will stop "stuttering").

On to inferno_battle_your_battle
Find:
Code:
<td class="thead" width="100%" align='center'>{$turn}
Add right after {$turn} (or instead of it, like I did in the screenshot below)
Code:
 Music: $inferno_battle_music2
Step 4:
Add the template $inferno_battle_music2 to your styles with this code:

Code:
<FORM>
<select onChange="if(options[selectedIndex].value) window.open(options[selectedIndex].value,'_blank','config');" size="1">$GLOBALS[bmusic]
</SELECT> 
</FORM>
You are done!

Now the users need to click on the link you added to hear the battle music, which will be launched in a popup window by the javascript file. Sorry for the popup window but it is necessary: Being on a different window, the soundtrack won't start and stop anymore at every page refresh

Depending on each of your user's browser plugins (i.e if they have set Quicktime or Flash to handle midi files properly) the new window will also allow them to pause, stop, change the music volume, etc...

Version 2.0
* Eliminated the need for a javascript
* Added a Music selection bar instead of just replaying the same music over and over
* the new template with the music selection bar works ANYWHERE on the forum, including Forumhome and footer (second screenshot)!

Download

This modification is archived and cannot be downloaded.

Screenshots

   

Similar Mods

Integration with vBulletin [ITECH] Inferno External Lite vBulletin 3.6 Add-ons
Major Additions [ITECH] [AJAX] Inferno Battle Polls Lite vBulletin 3.7 Add-ons
Major Additions [ITech] RPG Inferno 2.4 Lite Modification Graveyard
Major Additions RPG Inferno v2.4 Lite Modification Graveyard
Major Additions RPG Inferno Lite Modification Graveyard

vblts.ru supports vBulletin®, 2022-2024