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

Reply
 
Thread Tools
vB Flash Player - Play Any Flash Game or Movie - Tetris, Pacman, Frogger, Minesweeper Details »»
vB Flash Player - Play Any Flash Game or Movie - Tetris, Pacman, Frogger, Minesweeper
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-11-2002 Last Update: Never Installs: 182
 
No support by the author.

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. 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

Attachment: snipers.zip
A very cool FPS game.

Asteroids2000

Attachment: asteroids2000.zip
The classic Asteroids game now in 3-D.

Mars Massacre

Attachment: mars3d.zip
A 3-D with twin cannons to shoot spaceships.

Spaceship

Attachment: spaceship.zip
Spaceship shootemup with nice graphics.

Minesweeper

Attachment: minesweeper.zip
The classic windows game.

5Stones

Attachment: 5stones.zip
A classic Chinese board game.

Samurai Warrior

Attachment: samurai.zip
A fighting game that's quite high quality.

Flash Pacman

Attachment: flashman.zip
The classic!

Frogger

Attachment: frogger.zip
Another classic!

Galactic Warrior

Attachment: warrior.zip
A Space Invaders-like game.

Pong

Attachment: pong.zip
This is a very basic version.

Donkey Kong

Attachment: 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:
-------------------------------------------

Show Your Support

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

Comments
  #272  
Old 08-16-2002, 02:15 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't know Erwin was planning a Store version...
Reply With Quote
  #273  
Old 08-16-2002, 02:42 PM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

alright, well i like to go big, so i made a page that allows ppl to select a wide variety of games and movies to play with

tho i am not too bright so i used the error page to do it

i set a link on the forum home page to go right to flash.php (where it use to say "u didnt select a game") now it has a list of games with links to them :banana:

can anyone think of a better way as sometimes that gives me a error when leaving

basically i just want a good way for ppl to see a assortment of stuff all on one page,
Reply With Quote
  #274  
Old 08-16-2002, 08:50 PM
ipscone ipscone is offline
 
Join Date: Jul 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So what causes this problem

I've installed the flashplayer11 and it almost works. The problem occurs when I try to go back to my vBportal. I get the login screen, when I try to return. But it shows that I'm logged in and I can click Home again and get to home.

What causes this? How do I prevent this intermediate login screen?

My Forums

Click "Flashman" in the Main Menu, then click "Home" at the top and see the problem.

Since the Flash does not show up unless you are logged in you can use "test" as the login and "12345" as the password (temporarily).

Sidenote:
I also want to have a menu selection, similar to "Topics" in the Main Menu that will take me to a page where I can select the games. I have copied Topics.php to Games.php and took out the mysql stuff and have the problem there also.
Reply With Quote
  #275  
Old 08-17-2002, 12:39 AM
Keyser S?ze's Avatar
Keyser S?ze Keyser S?ze is offline
 
Join Date: Apr 2002
Location: USA
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

at my forums i have it set so guests can use the flash games/movies

i dont want alot of ppl signing up and never posting, just to play, too many dead members

anyways, real problem, i have alot of games that need a black BG to see what it is, so can i set it so in the flash section its always black?

also is there a way to force the flash into a certain highth/width?
Reply With Quote
  #276  
Old 08-18-2002, 04:21 AM
DanIAm's Avatar
DanIAm DanIAm is offline
 
Join Date: Aug 2002
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have two wierd problems I would like to bring up for help.

1.) When loading any .SWF file using this hack to play a game for example my top options such as profile, register, calender, etc all load with the cinsistant exception of the search. I can click reload and still it does not load. It does not do this anywhere else in the site, and when I take the time out to right click the red X and click show picture, then it does load. If I was to reload the page again, it's back to the red X (see pic)



2.) When I click on the temp link which I temp placed in the footer section with the link title 'flashman'. I see my main pic/logo which normally resides on the top of the site page, and I see THE profile tab which normally resides on the top as if it was trying to load on the bottom too. It did not complete, this is as far as it got and it does this everytime I try to play flashman... WHY? (see pic)

Reply With Quote
  #277  
Old 08-18-2002, 08:43 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by john.eovie
I didn't know Erwin was planning a Store version...
I'm not. I don't have Lesane's store hack installed, and don't plan to install it. If I do make a points hack addon, it would be with Shinra's Point hack.
Reply With Quote
  #278  
Old 08-18-2002, 08:55 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ipscone
[B]So what causes this problem

I've installed the flashplayer11 and it almost works. The problem occurs when I try to go back to my vBportal. I get the login screen, when I try to return. But it shows that I'm logged in and I can click Home again and get to home.

What causes this? How do I prevent this intermediate login screen?

My Forums

Click "Flashman" in the Main Menu, then click "Home" at the top and see the problem.

Since the Flash does not show up unless you are logged in you can use "test" as the login and "12345" as the password (temporarily).
I tested the game "Pacman/ Flashman" at your forums using that test account, and it worked with no problems.

It could be an intermittent cookie problem - Flash can do this sometimes. Just click on REFRESH, and the problem should go away.
Reply With Quote
  #279  
Old 08-18-2002, 09:01 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by IceMalee
at my forums i have it set so guests can use the flash games/movies

i dont want alot of ppl signing up and never posting, just to play, too many dead members

anyways, real problem, i have alot of games that need a black BG to see what it is, so can i set it so in the flash section its always black?
Easy fix.

The default at the moment is that the Flash Player page uses your page background color as default. To change this:

In the "flash" template:

Find (remove the space inside the {} tags) :

Code:
VALUE={ pagebgcolor}
Replace with:

Code:
VALUE=#000000
THEN, find (remove the space inside the {} tags) :

Code:
bgcolor={ pagebgcolor}
Replace with:

Code:
bgcolor=#000000
Quote:

also is there a way to force the flash into a certain highth/width?
You can adjust the height and width using the parameters already for each game you like.

Default is 600 x 400.

To change the height and width, add

&w=1024&h=768

to the end of the URL, the numbers being the width and height you want. Read the first post for examples.
Reply With Quote
  #280  
Old 08-18-2002, 09:04 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by DanIAm
I have two wierd problems I would like to bring up for help.

1.) When loading any .SWF file using this hack to play a game for example my top options such as profile, register, calender, etc all load with the cinsistant exception of the search. I can click reload and still it does not load. It does not do this anywhere else in the site, and when I take the time out to right click the red X and click show picture, then it does load. If I was to reload the page again, it's back to the red X (see pic)


That happens on occasions. For some reason, the Flash file loading is interfering with your gif file loading. There's nothing you can do about it - it just happens. On my site, this problem is intermittent.

I suggest maybe to rename you search.gif file and see if that helps.

Quote:

2.) When I click on the temp link which I temp placed in the footer section with the link title 'flashman'. I see my main pic/logo which normally resides on the top of the site page, and I see THE profile tab which normally resides on the top as if it was trying to load on the bottom too. It did not complete, this is as far as it got and it does this everytime I try to play flashman... WHY? (see pic)

That's weird.

I have no explanation for that to be honest, since the flash template uses your own footer. Take a look at your footer template and make sure that all the tags are closed. Have a look at the flash template too - make sure you copied and paste the WHOLE of the flash template.

It's a strange problem, and looks like HTML tags not being closed.
Reply With Quote
  #281  
Old 08-18-2002, 09:13 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This solution here solves the following 2 questions.

Quote:
Originally posted by IceMalee
alright, well i like to go big, so i made a page that allows ppl to select a wide variety of games and movies to play with

tho i am not too bright so i used the error page to do it

i set a link on the forum home page to go right to flash.php (where it use to say "u didnt select a game") now it has a list of games with links to them :banana:

can anyone think of a better way as sometimes that gives me a error when leaving

basically i just want a good way for ppl to see a assortment of stuff all on one page,

Quote:

Sidenote:
I also want to have a menu selection, similar to "Topics" in the Main Menu that will take me to a page where I can select the games. I have copied Topics.php to Games.php and took out the mysql stuff and have the problem there also.

Essentially, this are instructions on how to convert the file flash.php into a menu for your games.

So when you link to

http://www.your-forums.com/forums/flash.php

instead of going to the error message, you get a customizable games menu which you set up in your templates.

Thanks to IceMalee for the idea. I have just taken his idea and changed it from an error template to a full template.


Open flash.php

Find:

PHP Code:

        
eval("standarderror(\"".gettemplate("error_flash")."\");"); 
Replace with:

PHP Code:

    
eval("dooutput(\"".gettemplate('flash_menu')."\");"); 
Then go to your Admin CP.

Add a new template:

flash_menu

with these contents:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><title>$bbtitle - Flash menu</title>
$headinclude
</head>
<body>
$header
<!-- breadcrumb -->
<table border="0" width="100%" cellpadding="0" cellspacing="0"><tr>
<td width="100%"><img src="https://vborg.vbsupport.ru/vbimages/vb_bullet.gif" align="absmiddle"> <normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a> &gt; Flash Menu</b></normalfont></td></tr></table>
<!-- /breadcrumb -->
<br>
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#555576"  width="100%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0"  width="100%">
<tr>
<td colspan="2" bgcolor="#606096" align="center"><normalfont color="#FFF788"><b>$bbtitle Flash Menu</b></normalfont></td>
</tr>
<tr>
<td bgcolor="#F1F1F1" align="left" valign="top"><normalfont>
<br><br>
<center>
<normalfont>


<a href="flash.php?play=tetris">Play Tetris</a><br>
<a href="samurai.php?play=samurai">Play Samurai Game</a><br>


</normalfont>
</center>
</td>
</tr>
</table>
</td></tr></table>
$footer
</body>
</html>

Just customize the middle section of the template - you can make it a table, or however you like, using HTML.

Find this code in the "flash_menu" template, and customize it all you like:

Code:
<a href="flash.php?play=tetris">Play Tetris</a><br>
<a href="samurai.php?play=samurai">Play Samurai Game</a><br>

Then, just link to:

http://www.your-forums.com/forums/flash.php

To access the Flash menu. I've never tested this, since I don't use a menu system, but it should work.

Let me know if it works.

IceMalee, use this rather than your current solution, and it should fix your error issues.
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 10:46 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.05122 seconds
  • Memory Usage 2,353KB
  • Queries Executed 25 (?)
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
  • (6)bbcode_code
  • (2)bbcode_php
  • (8)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
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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