vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Flash Player - Play Any Flash Game or Movie - Tetris, Pacman, Frogger, Minesweeper (https://vborg.vbsupport.ru/showthread.php?t=42196)

Erwin 08-11-2002 10:00 PM

vB Flash Player - Play Any Flash Game or Movie - Tetris, Pacman, Frogger, Minesweeper
 
vB Flash Player 1.3 - Play Any Flash Game or Movie in vB!
-----------------------------------------------------------------------

NOTE: This used to be my vB Tetris 1.2 hack. It's been improved to play any Flash game or movie.

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/flash.php?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/flash.php?play=filename&w=1024&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 2 templates, and upload 1 file, and you're done. (No db queries to run, no php file edits! :) )

1) Create 2 templates with the text files included - just copy the contents of the text files into the templates with the same name:
flash
error_flash
2) Upload flash.php into your forum directory. The hack is finished! ;)

Then, to play any Flash SWF Game or Movie inside your forum:
1) Upload the SWF file to your forum directory.
2) Link to this URL (change it to suit your forums directory):
http://www.your-forum.com/forums/flash.php?play=filename
"filename" being the name of the SWF file (without the .SWF) - the name must be exact (including the capitals or small letters)


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/flash.php?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/flash.php?play=filename&w=1024&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 forums 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! :)

Addons:
-------------------

1) Hellsatan's Game's Info and Listing
https://vborg.vbsupport.ru/showthrea...threadid=42693

2) Demonslayer's DCR format addon
https://vborg.vbsupport.ru/showthrea...threadid=42744

3) Lanigironu's flash gallery hack addon
https://vborg.vbsupport.ru/showthrea...threadid=42674


To receive updates if there are bug fixes or upgrades to this hack, please click the "Install" link at the bottom of this thread.

The vB Flash Player ZIP File:
-------------------------------------------

Erwin 08-12-2002 11:16 AM

I've changed the screenshot to Snipers:

Very nice first-person-shooter game with nice graphics - just use your mouse to shoot the bad guys! It's the best game I've seen so far in Flash. You are a sniper with a machine gun shooting balaclava-clad terrorists.

Download the game in this post here:

https://vborg.vbsupport.ru/showthrea...164#post287164

The game will be integrated into your forums with this hack, with your own header, footer and enclosed in a table, with the name of the game as the page title, table title and nav bar title.

Screenshot:

Neo 08-12-2002 11:28 AM

You are hardcore... I can see it now.. vb Tetris w/ Lesane store hack... I am goint to request that right now!!!!?!?!?!?

Erwin 08-12-2002 11:29 AM

LOL!

No, I'm not integrating this with Lesane's store hack, simply because I use Shinra's Points hack. :)

[D]Vincent 08-12-2002 11:52 AM

lol I would install this if I had use for it.

Erwin 08-12-2002 11:56 AM

:D

Yeah, it's a hack that's purely for the enjoyment of your members. You'd be surprised how many people out there love the game.

John 08-12-2002 12:01 PM

I'm integrating this with the store hack now for my own forum, if there's enough interest I'll release it.

Erwin 08-12-2002 12:03 PM

Quote:

Originally posted by JohnWarwick
I'm integrating this with the store hack now for my own forum, if there's enough interest I'll release it.
Go ahead, and make a lot of people happy! ;)

John 08-12-2002 12:07 PM

Already hit my first snag tho - for some reason, the tetris page loads, but the flash in the middle keeps on loading. But nothing ever comes up :(

[D]Vincent 08-12-2002 12:07 PM

Just don't say you coded it if you're using his XD
I might install it later, but right now I'm trying to cut down on hacks ^^

John 08-12-2002 12:08 PM

Quote:

Originally posted by [D]Vincent
Just don't say you coded it if you're using his XD
I might install it later, but right now I'm trying to cut down on hacks ^^

You're talking to me?

Edit: Fixed the above "non display" problem, simply got rid of the ../ before tetris.swf in the tetris template.

John 08-12-2002 12:32 PM

Ok, I've actually got the original source for the tetris flash file, I'm going to make see how it works, and add a few things - like a leaderboard :)

[D]Vincent 08-12-2002 12:38 PM

Vincent]:rolleyes: I'm talking to the headless horseman.

Odil 08-12-2002 12:45 PM

Hi

I installed this great and fun game in my forum and it works great and all. The only problem is with whos online, unkown location shows up with the tetris link. Is there any way to fix this monor problem?

Thanks for the great game!

Odil

NexDog 08-12-2002 12:50 PM

Can this hack know who's playing and create stats etc? Now that would be cool. :)

[D]Vincent 08-12-2002 12:54 PM

Vincent]
Quote:

Originally posted by Odil
Hi

I installed this great and fun game in my forum and it works great and all. The only problem is with whos online, unkown location shows up with the tetris link. Is there any way to fix this monor problem?

Thanks for the great game!

Odil

Open online.php
Find:
PHP Code:

    case 'index':
      
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";
      break; 

Add under that:
PHP Code:

    case 'tetris':
      
$userinfo[where] = "Playing <a href='tetris.php?s=$session[sessionhash]'>Tetris</a>";
      break; 

That should work for the who's online problem.

Odil 08-12-2002 01:09 PM

Quote:

Originally posted by [D]Vincent

Open online.php
Find:
PHP Code:

    case 'index':
      
$userinfo[where] = "$bbtitle <a href='index.php?s=$session[sessionhash]'>Main Index</a>";
      break; 

Add under that:
PHP Code:

    case 'tetris':
      
$userinfo[where] = "Playing <a href='tetris.php?s=$session[sessionhash]'>Tetris</a>";
      break; 

That should work for the who's online problem.

Excellent, thank you! I should have figured it would be that easy, I was adding a hack earlier where I changed just this stuff on the online.php

Thanks!

Odil

Odil 08-12-2002 01:19 PM

Quote:

Originally posted by Odil


Excellent, thank you! I should have figured it would be that easy, I was adding a hack earlier where I changed just this stuff on the online.php

Thanks!

Odil

I take that back, it still shows unknown location. I double checked to see that I copied and placed it exactly as shown. No luck.

Odil

[D]Vincent 08-12-2002 01:39 PM

Let me check again then.

John 08-12-2002 01:43 PM

lol! "I take that back"

:D

Neo 08-12-2002 01:44 PM

HAHAHAHAHAH why does every hack have to be integrated with the Lesane store hack??? I sware user options and getting smaller and smaller....

[D]Vincent 08-12-2002 01:45 PM

Vincent]Okay try this also.
Do what I said before and then also find:
PHP Code:

  case 'index.php':
    
$userinfo[activity] = 'index';
    break; 

And add under it:
PHP Code:

  case 'tetris.php':
    
$userinfo[activity] = 'tetris';
    break; 

That should work if not I'll look again lol.

[D]Vincent 08-12-2002 01:48 PM

I guess everyone likes to make thier members work for the good stuff XD or else get paid for stupid things.

Neo 08-12-2002 01:51 PM

Quote:

Originally posted by [D]Vincent
I guess everyone likes to make thier members work for the good stuff XD or else get paid for stupid things.
I am seriously going to make a hack addon for Lesanes store that makes users pay to post. I wonder who many people will install it :banana:


I think this hac shoul dbe updated so its Doctor Mario Tetris :D

proxyMX 08-12-2002 02:31 PM

great! where do i get vbportal?

John 08-12-2002 02:53 PM

I'm not sure if that Tetris flash file is free from copyright - if it's not, it means I'm not going to be able to release it... :s

[D]Vincent 08-12-2002 03:07 PM

Vincent]if you made it to whereyou could make them pay to go to a certain forum i would install it :D
i hate having to use the on-screen keyboard >_<

afterlab 08-12-2002 03:11 PM

Nothing is better than the old school, Tetris. Thanks for the hack, bro.

Schorsch 08-12-2002 03:13 PM

thanks Erwin, I'll install this when I'm at home :)

cu
Schorsch

scottct1 08-12-2002 03:26 PM

Installed it, my users are already raving about it. :)

Now only if it kept the high score instead of it reseting each time. :)

Schorsch 08-12-2002 03:35 PM

I have a question:

is there a possibility that someone can code a little highscore list ? that would be a great incentive for the users !

afterlab 08-12-2002 04:55 PM

Wouldn't be too hard to do, just code the scores into the database.

John 08-12-2002 04:58 PM

But first you have to get the Flash file to throw out the variable, pass it to another page for processing, and award new members on the leaderboard with some extra points.

I'm integrating it now, coming along nicely!

John 08-12-2002 05:10 PM

Rough pictures without a style, I'm completely redeveloping my forums so I'm getting the code done first.

Integration progress so far (with "nuggets" being the form of currency on the forums):

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

https://vborg.vbsupport.ru/

DestyNova 08-12-2002 05:14 PM

Quote:

Originally posted by JohnWarwick
Rough pictures without a style, I'm completely redeveloping my forums so I'm getting the code done first.

Integration progress so far:

http://www.eovie.co.uk/pics/1.gif

http://www.eovie.co.uk/pics/2.gif

http://www.eovie.co.uk/pics/3.gif

http://www.eovie.co.uk/pics/4.gif

Will you release that hack addon?

Also I m not that skill with PHP yet but I agree with above about add the high score so how? Erwin, I wonder can you do that?

thanks

Mr_P 08-12-2002 05:19 PM

what can we say - looking better all time (hope you do release it for those of us who aint into programming

Also as a sideline i cant get my tetris to load on the website its just has a white screen and blue counts up and thats it

But if i use the swf in IE on its own it works fine ?

any ideas anyone

John 08-12-2002 05:19 PM

The high score thing is easy - just pass the variable from Flash to another page, and put the fields into the database. Might be something to put on the front page - "Tetris Highest Score: $score ($username)"

If enough people want it, I'll release my store addon code - after it's finished of course :D

John 08-12-2002 05:22 PM

Quote:

Originally posted by Mr_P
what can we say - looking better all time (hope you do release it for those of us who aint into programming

Also as a sideline i cant get my tetris to load on the website its just has a white screen and blue counts up and thats it

But if i use the swf in IE on its own it works fine ?

any ideas anyone

I had this problem -

Open your "tetris" template:

Find the two instances of:
#########################
../tetris.swf
#########################

And REPLACE both of them with:
#########################
tetris.swf
#########################

DestyNova 08-12-2002 05:26 PM

Quote:

Originally posted by JohnWarwick
The high score thing is easy - just pass the variable from Flash to another page, and put the fields into the database. Might be something to put on the front page - "Tetris Highest Score: $score ($username)"

If enough people want it, I'll release my store addon code - after it's finished of course :D

great, I want it! however ok which kind of variable to get that kind of high score feature and field for mysql? ahh I wish I spend lots time on PHP so I can undy this foreign instruction...

John 08-12-2002 05:28 PM

I'm not a Flash Actionscript expert :( - so I'm learning it now!

I'll explain once I've got a better grasp of it


All times are GMT. The time now is 04:31 AM.

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.01545 seconds
  • Memory Usage 1,859KB
  • 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
  • (6)bbcode_php_printable
  • (9)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