vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Flash Player - Play Any Flash Game / Movie - Tetris, Pacman, Frogger, Minesweeper (https://vborg.vbsupport.ru/showthread.php?t=59816)

Erwin 01-06-2004 10:00 PM

vB3 Flash Player - Play Any Flash Game / Movie - Tetris, Pacman, Frogger, Minesweeper
 
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. :D If you don't enter the width or height parameters, the Flash game or movie will automatically default to 600 x 400. If you don't enter the background color, it will default to your forum page background color. Only registered members will be able to play the game or movie - unregistered users will get the "no permission" log-in page.


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

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: snipers.zip
A very cool FPS game.

Asteroids2000

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: asteroids2000.zip
The classic Asteroids game now in 3-D.

Mars Massacre

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: mars3d.zip
A 3-D with twin cannons to shoot spaceships.

Spaceship

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: spaceship.zip
Spaceship shootemup with nice graphics.

Minesweeper

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: minesweeper.zip
The classic windows game.

5Stones

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: 5stones.zip
A classic Chinese board game.

Samurai Warrior

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: samurai.zip
A fighting game that's quite high quality.

Flash Pacman

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: flashman.zip
The classic!

Frogger

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: frogger.zip
Another classic!

Galactic Warrior

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: warrior.zip
A Space Invaders-like game.

Pong

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: pong.zip
This is a very basic version.

Donkey Kong

https://vborg.vbsupport.ru/external/2010/10/8.gifAttachment: DonkeyKong.zip
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:
-------------------------------------------

Link14716 01-07-2004 12:12 AM

Such a simple and useful hack. :)

Nice job Erwin. I have no use for it, but it should be useful to others. :)

MGM 01-07-2004 12:28 AM

Very nice... kinda like a dumbed-down version of the Arcade but without a Scores system ;)

should be tons of fun though!

i won't use it myself, but who says I cant click install? :D

[high]* MGM clicks Install
[/high]

MGM out

Nam 01-07-2004 12:36 AM

This is GREAT hack, very simple, no file to edit, but very cool.

Why should you feel "I am almost embarassed", don't be, because this is really worth it.

Thank you,

deathemperor 01-07-2004 01:54 AM

I can't even believe that this will happen !
what a great hack !
thanks alot, Erwin !
edit: I got some music/funny flashes, care to take ^ ^ ?
a little gun play game: Gun Play ( I cant attach due to file too large, so just download from that
, have fun ^ ^.

dede1 01-07-2004 06:16 AM

Very good,thank you

Dennis B 01-07-2004 06:53 AM

Thanks Erwin, got plenty of Flash ads on my site already, but you just made it much simpler. :)

acid2003 01-07-2004 09:22 AM

Great job.

Is it supposed to show game title on browser top like this:

Tetris</phrase>

http://forum.armkb.com/flash.php?play=Tetris

Regards
Souren.

acid2003 01-07-2004 10:22 AM

Almost forgot. Is it possible to show users playing game in Who's Online section ?
It shows

Unknown Location
/flash.php?play=Tetris

Thanks.

speedway 01-07-2004 10:55 AM

Quote:

Originally Posted by acid2003
Great job.

Is it supposed to show game title on browser top like this:

Tetris</phrase>

http://forum.armkb.com/flash.php?play=Tetris

Regards
Souren.

That's in the template. Just edit the offending "phrase" bit out.


All times are GMT. The time now is 07:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01179 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete