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.

speedway 01-07-2004 10:59 AM

Only problems I seem to have are:

Size definition is ignored in Mozilla Firebird
Drop down menus (eg. Quick Links) go behind the game space.

Are these just "live with it" type things? :)

poolking 01-07-2004 04:25 PM

Is there any background music to these games?

DarkJediKiller 01-07-2004 06:49 PM

This is a great hack :D All it needs is like a page where you can click the link to your games

SnowBot 01-07-2004 08:41 PM

Quote:

Originally Posted by DarkJediKiller
This is a great hack :D All it needs is like a page where you can click the link to your games

add them to a menu on your navbar, i called mine interactive. www.synergyforums.com have a look and i can run you through how to do it if needed.

DarkJediKiller 01-07-2004 10:04 PM

Alright that would be great! Thanks ^^

Erwin 01-07-2004 10:33 PM

Quote:

Originally Posted by speedway
That's in the template. Just edit the offending "phrase" bit out.

Oops. Don't know how it got there. I fixed the install.txt. :)

albibak 01-08-2004 08:33 AM

Thx for this hack, it's very very cool.
I would like to konw if in a futur version you do this hack with high score ?
Because I think this was on vB2, no ?

Erwin 01-08-2004 10:07 AM

Quote:

Originally Posted by albibak
Thx for this hack, it's very very cool.
I would like to konw if in a futur version you do this hack with high score ?
Because I think this was on vB2, no ?

That was a different hack - the Arcade hack. :) Some of the flash games here cannot be modified without author permission. You need to be able to modify the flash file to keep score.

StoneHalo 01-08-2004 11:54 AM

Does this just allow users in the 'Registered users' usergroup to play? Or can it be set to other usergroups?

I have two subscription groups that I would like to have access to this but not those in the normal registered group.

Thanks

hume 01-08-2004 11:59 AM

this site have many game Flash http://www.flash-games.net/

albibak 01-08-2004 12:51 PM

Erwin => Thx for your answer.

hume => Cool an other website :) and it's a french site ;)

Erwin 01-08-2004 07:26 PM

Quote:

Originally Posted by StoneHalo
Does this just allow users in the 'Registered users' usergroup to play? Or can it be set to other usergroups?

I have two subscription groups that I would like to have access to this but not those in the normal registered group.

Thanks

It's automatically set up to stop guests from playing, but allow everyone else. In flash.php, find:

PHP Code:

if ($bbuserinfo['userid'] == 0)
{
    
print_no_permission();


Change it to:

PHP Code:

if ($bbuserinfo['userid'] == OR $bbuserinfo['usergroupid'] == 2)
{
    
print_no_permission();


And keep adding usergroups to the end of that line you want NOT to be able to play.

StoneHalo 01-08-2004 08:53 PM

Thats great, i'll be installing hacks after vB3 goes gold :)

???`S?LV?R???` 01-09-2004 12:12 AM

This Is Great Erwin, I Like The Fact That Only Registered Members Can Get To Them. Would You Mind Making One That's Just Let's Members Download Certain Files? Sorta Like vBportal where it has the downloads section and only worked for logged in members. I'd Really Appreciate It ;) :)

webrats 01-09-2004 02:49 AM

will this work with rc2

???`S?LV?R???` 01-09-2004 03:32 AM

yeah, it works with rc2 aswell.

SnowBot 01-09-2004 06:56 AM

only thing is ppl show up in whos online in UNKNOWN LOCATION Can this be fixed ?

Erwin 01-09-2004 09:31 AM

Quote:

Originally Posted by SnowBot
only thing is ppl show up in whos online in UNKNOWN LOCATION Can this be fixed ?

I added instructions to the install.txt in the ZIP file to fix this. :)

Nmidia 01-09-2004 06:28 PM

Quote:

2) Create new phrase under "Front End Error Messages".
Call it "flash"
Make the contents the following:

You did not specify a file name!

How do I do this then? I'm a total noob:)

Nmidia 01-09-2004 06:37 PM

Quote:

Originally Posted by Nmidia
How do I do this then? I'm a total noob:)

ahh - i opened my eyes and it was right in front of them:)

gmarik 01-09-2004 06:58 PM

Like all the old games from vB2 could
be transferred to your great remake?

Erwin 01-09-2004 10:09 PM

Quote:

Originally Posted by gmarik
Like all the old games from vB2 could
be transferred to your great remake?

This hack players ANY flash game, or movie.

Kewl 01-10-2004 10:50 PM

Quote:

Originally Posted by SnowBot
add them to a menu on your navbar, i called mine interactive. www.synergyforums.com have a look and i can run you through how to do it if needed.

Great Job

How do you add to the nav bar?

Thanks

blubber12 01-11-2004 12:19 AM

Perhaps, without a snide remark, someone would actually be able to identify where exactly the Front End Error Messages are located. I am not a noob and have been searching for quite a while now. I thank anyone who can assist me and others.

Kewl 01-11-2004 12:22 AM

Quote:

Originally Posted by blubber12
Perhaps, without a snide remark, someone would actually be able to identify where exactly the Front End Error Messages are located. I am not a noob and have been searching for quite a while now. I thank anyone who can assist me and others.

In the phrase manager

blubber12 01-11-2004 12:27 AM

Thanks very much Kewl I appreciate that very much. Sometimes the most obvious is overlooked. :) I would not have thought to look in Languages and Styles automatically.

Kewl 01-11-2004 01:15 AM

In the install instructions for the who's on-line function of the hack the phrase name needs to be flash not Flash

just an FYI

Great Job Thanks

blubber12 01-11-2004 01:22 AM

One more question please...Followed all directions, but when directing url to game all I get is a blank page...no error message..just a blank page. All files are in the correct place but can't see to get it to run...any ideas?

Kewl 01-11-2004 01:38 AM

Quote:

Originally Posted by blubber12
One more question please...Followed all directions, but when directing url to game all I get is a blank page...no error message..just a blank page. All files are in the correct place but can't see to get it to run...any ideas?

did you create a dir /forum/games
and upload the game .swf files there

then put flash.php into your forum directory

and your link should look like this

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

blubber12 01-11-2004 02:09 AM

yeah that's exactly what i did..but get a blank page...my host accepts swf and all streaming media..so I can't figure out whats wrong..thanks kewl


All times are GMT. The time now is 05:28 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.01472 seconds
  • Memory Usage 1,840KB
  • 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
  • (2)bbcode_php_printable
  • (12)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
  • (40)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