Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Addon: Custom Midi/Mp3 for each Arcade Page in Johns V3 Arcade Mod. Details »»
Addon: Custom Midi/Mp3 for each Arcade Page in Johns V3 Arcade Mod.
Version: 1.00, by BlackxRam BlackxRam is offline
Developer Last Online: Feb 2020 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-15-2004 Last Update: Never Installs: 2
 
No support by the author.

This is a simple template modification with will play a different Midi file on each page in John's V3arcade.

I made this because some flash games come without music on them and i know sometimes playing a game in this arcade with no background sound can be really annoying. So I made this so i can have a MIDI/MP3 playing in the background that sounds like it goes with the Flash Game.

People will always be able to turn it off incase they dont want to listen to the music.

So Here is the little modification:

Step 1:

First you want to look for the Midis or Mp3's you wish to play during certain games. Find the games you want to have Midi files to play and name them exactly the name of the Flash Game Name. If your game was "asteroids", name the file "asteroids" .mid or .mp3 or whatever.

Upload these files into a folder called media in your images/arcade folder in your forums directory.

Step 2: Easy Code Addition

In the arcade_play template find this line. There are 2 instances of it.

Code:
<td class="thead" colspan="2"><span class="smallfont">$thisGame[title]</span>
After that place this code:

Code:
<br><object 
  id="mediaPlayer" 
  classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" 
  codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" 
  standby="Loading Microsoft Windows Media Player components..." 
  type="application/x-oleobject" 
  height=70> 
  <param name="fileName" value="$stylevar[imgdir_arcade]/media/$thisGame[title].mid"> 
  <param name="animationatStart" value="1"> 
  <param name="transparentatStart" value="1"> 
  <param name="autoStart" value="1"> 
  <param name="autoSize" value="0"> 
  <param name="showControls" value="1"> 
  <param name="loop" value="0"> 
  <param name="ShowDisplay" value="0"> 
  <param name="ShowStatusBar" value="1"> 
<embed type="application/x-mplayer2" 
       pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" 
       filename="$stylevar[imgdir_arcade]/media/$thisGame[title].mid" 
       src="$stylevar[imgdir_arcade]/media/$thisGame[title].mid" 
       name=NSPlay 
       showcontrols=1 
       showdisplay=0 
       showstatusbar=1 
       height=70> 
</embed> 
</object>
The first instance covers the Challenge page and the second instance covers the normal page.

The above code is set for midi files. You can easily change it or customize it to mp3 or whatever file you wish to use as long as the PATHS remain in tact.


Have fun with it.

Adam Kauth

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-17-2004, 01:18 PM
dbroomjr dbroomjr is offline
 
Join Date: Aug 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One word - SWEET
Reply With Quote
  #3  
Old 02-17-2004, 01:58 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice, so I choose the music?
Reply With Quote
  #4  
Old 02-18-2004, 01:19 AM
BlackxRam BlackxRam is offline
 
Join Date: Aug 2003
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup. Find Midis You want to Have PLay. A friend of mine decided to use low quality MP3's that he can stream across his pages. As long as the file name of themusic is the same as the Game Title your fine.
Reply With Quote
  #5  
Old 02-18-2004, 01:21 AM
BlackxRam BlackxRam is offline
 
Join Date: Aug 2003
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to see it in ACTION goto http://forums.mogusland.com

Check out Chopper, Pingu and Curveball. Those are the ones im using it for now.
Reply With Quote
  #6  
Old 02-18-2004, 03:18 PM
Hialls's Avatar
Hialls Hialls is offline
 
Join Date: Jul 2002
Location: Reading, England
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very very cool! One modification i have made, allowing there to be an option in usercp "Play music while playing games" As some members complained about loading times. As i have been playing high quality songs
Reply With Quote
  #7  
Old 02-18-2004, 05:13 PM
Rampag33's Avatar
Rampag33 Rampag33 is offline
 
Join Date: Jun 2002
Location: Houston, Texas
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, perfect with games without music and take a while to finish
Reply With Quote
  #8  
Old 03-31-2004, 06:49 PM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i loop the music ?
Reply With Quote
  #9  
Old 03-31-2004, 07:45 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BlackxRam
If you want to see it in ACTION goto http://forums.mogusland.com

Check out Chopper, Pingu and Curveball. Those are the ones im using it for now.
You need to register in order to play in the Arcade. Click here to register.
Reply With Quote
  #10  
Old 04-02-2004, 06:15 PM
Hades666 Hades666 is offline
 
Join Date: Jan 2004
Location: Chicago
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could U please help us here:
https://vborg.vbsupport.ru/showthread.php?t=63356
....thanx!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05080 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete