The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||||
vB3 Flash Player - Play Any Flash Game / Movie - Tetris, Pacman, Frogger, Minesweeper
![]() Developer Last Online: May 2013 ![]() ![]()
vB Flash Player 1.1 - Play Any Flash Game or Movie in vB!
----------------------------------------------------------------------- vB3 RC 2 version Updated: Added instructions to fix Who's Online location! Updated: Fixed browser width bug! This is such a simple hack I am almost embarassed to re-release it. But people wanted me to update it, so here it is. ![]() Purpose: ------------------ Install this hack ONCE and you can play any SWF game or movie totally integrated inside your forum! The name of the game or movie will be automatically shown in the page title, forum nav bar, and table heading! Just upload the SWF file to your forums directory and then use this URL (changing it to suit your forum directory): http://www.your-forum.com/forums/fla...?play=filename "filename" being the name of the SWF file (without the .SWF) - the name must be exact (including the capitals or small letters) You can even set the width and height or background color of the Flash movie or game using the URL command line and parameters. http://www.your-forums.com/forums/fl...h=768&b=000000 Good for those of you who run your site at HIGH resolutions. ![]() Installation ----------------------- EASY! Takes 1 minute. All you need to do is create 1 template, 1 phrase and upload 1 file, and you're done. (No db queries to run, no php file edits! ![]() Create a new "games" subdirectory and upload your SWF files there. ********** optional ****************************** To show that the member is playing using the Flash Player in "Who's Online", you can edit another file and add a Who's Online Phrase - instructions added. Parameters: -------------------- play = name of SWF file (without the .swf extension - make sure the capitals and small letters are the same!) w = width of Flash movie or game h = height of Flash movie or game b = background color of Flash movie or game (in hex WITHOUT the # - eg. 000000 for black or FFFFFF for white) To use default width and height is 600 x 400, or default background color which is your forum background color - http://www.your-forum.com/forums/fla...?play=filename "filename" being the name of the SWF file (without the .SWF) - the name must be exact (including the capitals or small letters) To set your own width or height: http://www.your-forums.com/forums/fl...h=768&b=000000 Tetris ----------- For example, with this hack I've included the Tetris SWF file that was included in my original tetris hack. This game is public domain. To let your members play good old-fashioned Tetris on your forums: 1) Upload Tetris.swf to your games directory (included in the zip file). 2) Link to this URL (change it to suit your forums directory): http://www.your-forum.com/forums/flash.php?play=Tetris The Tetris Flash Game will play integrated into your forums. This works for any Flash game or Movie. Flash Games Attachments: --------------------------------- Snipers ![]() A very cool FPS game. Asteroids2000 ![]() The classic Asteroids game now in 3-D. Mars Massacre ![]() A 3-D with twin cannons to shoot spaceships. Spaceship ![]() Spaceship shootemup with nice graphics. Minesweeper ![]() The classic windows game. 5Stones ![]() A classic Chinese board game. Samurai Warrior ![]() A fighting game that's quite high quality. Flash Pacman ![]() The classic! Frogger ![]() Another classic! Galactic Warrior ![]() A Space Invaders-like game. Pong ![]() This is a very basic version. Donkey Kong ![]() The classic game! Other Flash Games: --------------------------- Go here to download 27 other free Flash games that you can integrate into your site using this hack: http://www.miniclip.com/experienced.htm Just upload the SWF file into your forums directory, put the name into the URL and you and your members can play integrated Flash games in your forums! You can basically play ANY Flash game or even MOVIES! If you have any other cool Flash Games to share, or a link to a site with good Flash Games or Movies, just post in this thread! ![]() The vB Flash Player ZIP File: ------------------------------------------- Show Your Support
|
Comments |
#52
|
|||
|
|||
![]()
Thanks erwin..I was testing it out on a clean rc2 install, and decided to wait until I transfer my board. I will try the coding template first and if there are still problems I'll let you know. Thanks again.
|
#53
|
|||
|
|||
![]() Quote:
![]() fix: Template: Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle] - $play</title> $headinclude </head> <body> $header $navbar <center> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="$w" height="$h"> <param name="movie" value="games/$play.swf"> <param name="quality" value="high"> <if condition="$b"><param name=bgcolor VALUE="$b"></if> <embed src="games/$play.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="$w" height="$h"></embed></object> <br> <br> </center> $footer </body> </html> |
#54
|
||||
|
||||
![]()
Update Version 1.1 - Who's Online and Browser Width Bug Fix
Just replace the "flash" template with the contents in the install.txt file (which is the same as the contents in the post above this one - thanks shad-gt!). Who's Online instructions in the install.txt file. |
#55
|
||||
|
||||
![]()
Thx for this update Erwin
![]() |
#56
|
||||
|
||||
![]()
I want to make a button in navbar for users to choose flash game, it's a popup html, with links to games or something like that. How can I do that ?
and this will be better if when users access to flash.php, it will show all the flash games or movies, users just have to choose from their and play ^ ^. |
#57
|
|||
|
|||
![]()
A little fix for this hack..
Code:
if(!file_exists("games/" . $play . ".swf")) { eval(print_standard_error('error_flash')); } A little error output, if someone edits the adress input line. Code:
<?php /*======================================================================*\ || #################################################################### || || # vB Flash Player 1.0 for vB3 RC2 by Erwin Loh # || || # ---------------------------------------------------------------- # || || # All PHP code in this file is ?2000-2004 Dr. Erwin Loh # || || # This file may not be redistributed in whole or significant part. # || || #################################################################### || \*======================================================================*/ //Parameters: // //play = name of SWF file (without the .swf extension - make sure the capitals and small letters are the same!) //w = width of Flash movie or game //h = height of Flash movie or game //b = background color of Flash movie or game (in hex WITHOUT the # eg. 000000 or FFFFFF) // //default width and height is 600 x 400 //default background color is the same as your forum page background color //format - http://www.your-forums.com/forums/fl...?play=filename //Or to customize width, height and background color //format - http://www.your-forums.com/forums/fl...h=768&b=000000 // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'flash'); // ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array(); // get special data templates from the datastore $specialtemplates = array(); // pre-cache templates used by all actions $globaltemplates = array( 'flash', ); // pre-cache templates used by specific actions $actiontemplates = array(); // ######################### REQUIRE BACK-END ############################ require_once('./global.php'); // ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### // guests cannot access Flash Player if ($bbuserinfo['userid'] == 0) { print_no_permission(); } // ensure variables get passed through globalize($_REQUEST, array( 'play' => STR, 'w' => STR, 'h' => STR, 'b' => STR, )); // draw nav bar $navbits = array('' => $play); // main script if(!file_exists("games/" . $play . ".swf")) { eval(print_standard_error('error_flash')); } if ($play) { if (!$w) { $w = 600; } if (!$h) { $h = 400; } } else { eval(print_standard_error('error_flash')); } $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('flash') . '");'); ?> |
#58
|
|||
|
|||
![]()
I agree with deathemperor1st, a file listing on flash.php would be awesome. Then we can just link to that, and users can deal.
![]() |
#59
|
||||
|
||||
![]()
Heh I know this is sorta off subject but I noticed that the flash files work for logged in members only as the default, I was wondering If you could set this same sorta thing up for other files as well for Downloads, rather than using attachments since you need to make your mysql packets size uploads larger..etc By the way..... Erwin do you think you'd be able to make that? I'd really appreciate it.
![]() |
#60
|
||||
|
||||
![]()
Excellent hack.
And for those of you who wish to add a nav menu for it, and put all the links in there like SnowBot did, look no farther than this post on vb.com -> http://www.vbulletin.com/forum/showt...ht=navbar+menu |
#61
|
|||
|
|||
![]()
Great hack! Thanks. Installing the games on the navbar was quite easy!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|