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)

John 08-14-2002 05:16 PM

Thanks! I didn't realise everyone's so generous!

kenny@ecn 08-14-2002 05:18 PM

Quote:

Originally posted by JohnWarwick
Thanks! I didn't realise everyone's so generous!


It's that we appreciate you and Erwin's work- and we know that most people would charge without thinking twice- but you did this for free for us- and I support that.

John 08-14-2002 05:31 PM

Ok, I'm typing out the post for the hack now :)

(This is the standard version, not the store addon)

John 08-14-2002 05:51 PM

*cough* https://vborg.vbsupport.ru/showthread.php?postid=284913 *cough*

kenny@ecn 08-14-2002 06:03 PM

Quote:

Originally posted by JohnWarwick
*cough* https://vborg.vbsupport.ru/showthread.php?postid=284913 *cough*


The hack doesn't work... I posted in that thread.

UltimaKing 08-14-2002 07:33 PM

Wow, this is amazing. I will definately install when I get time. :)

Thanks a lot!

Keyser S?ze 08-14-2002 07:37 PM

this may have been coverd but i didnt see it, but did u update the online.php setting?

Erwin 08-14-2002 10:08 PM

The easiest thing to do is install Firefly's Who's Online Hack, which will let you use your Admin CP to set any php file as a Who's Online location - once you've installed that, just place "flash.php" into the file section, and place the comment "Playing Flash". :)

Sadie Frost 08-14-2002 10:44 PM

Hi all :) Love the hack!

I am having a small problem that I hope someone will be able to give me some direction on. After I play any .swf game, then click on my banner which sends you back to the index.php, I get a no permissions error, then the following error:

Quote:

HTTP/1.1 200 OK Date: Wed, 14 Aug 2002 23:37:14 GMT Server: Apache/1.3.26 (Unix) mod_log_bytes/0.3 mod_bwlimited/1.0 PHP/4.2.2 FrontPage/5.0.2.2510 mod_ssl/2.8.9 OpenSSL/0.9.6b X-Powered-By: PHP/4.2.2 Content-Length: 78883 Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Content-Type: text/html
then my forums as usual beneath that.

I don't think I had a problem before I upgraded to the flash player, but I'm not really sure.

If I then refresh the index.php, it displays fine.

Here's a screenshot of the error:

Erwin 08-14-2002 11:19 PM

Weird... make sure that the links to your index.php is correct. Does clicking on the Forum Nav Bar link bring you back to the forum index page with no problems? What is the link of your homepage banner? How is it setup?

That error is a server error... is this happening to anyone else? Doesn't happen to me.

Erwin 08-15-2002 12:07 AM

Upgrade to v1.1: You can now set the width and height of the Flash Movie or Game using the URL command line and parameters!

Good for those of you who run your site at HIGH resolutions. :D

If you don't enter any width or height parameters, the Flash movie or game will automatically default to 600 x 400.

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

default width and height is 600 x 400

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


Upgrade to 1.1
------------------------

If you want to be able to manually set the width and height for different Flash movies and games using the parameters, upgrade from v1.0 to v1.1 - just replace the old "flash" template with the new one, and replace the old "flash.php" with the new file. :)

Enjoy!

Schorsch 08-15-2002 12:27 AM

hmm it's a little chuckleheaded all together, now we have two hacks, every hack has it's advantages and disadvantages, Erwin, yours with this new great parameters and with the possibility to play every flash game u want, but no highscore list.

on the other side, JohnWarwicks Hack, with a great highscore list but no ability to play different flash games, just tetris with only 10 short levels

nevertheless big thanks for your work Erwin and John :banana:

Erwin 08-15-2002 12:32 AM

Quote:

Originally posted by Schorsch
hmm it's a little corny all together, now we have two hacks, every hack has it's advantages and disadvantages, Erwin, yours with this new great parameters and with the possibility to play every flash game u want, but no highscore list.
To add a highscore list to a Flash game, you need to manually edit the Flash game file to integrate it with the vB database - it's not easy, and not all Flash games allow you to do this because of copyright and licenses. :) Make sure you find out that you can hack other people's Flash games before you do it - otherwise their lawyers may call you! :)

I aimed to make my hack easy to use - once it's installed, it's just a matter of uploading the SWF file to your forums directory, and using the command line and parameters. No need to edit anything. It even plays movies.

I can even make it play remote SWF files - but I won't do it because it would be unethical to play games on your forums hosted on another person's server.

Link14716 08-15-2002 01:01 AM

Quote:

Originally posted by Schorsch
hmm it's a little chuckleheaded all together, now we have two hacks, every hack has it's advantages and disadvantages, Erwin, yours with this new great parameters and with the possibility to play every flash game u want, but no highscore list.

on the other side, JohnWarwicks Hack, with a great highscore list but no ability to play different flash games, just tetris with only 10 short levels

nevertheless big thanks for your work Erwin and John :banana:

CORRECTION, he has only that capability NOW ;)

Erwin 08-15-2002 02:40 AM

Quote:

Originally posted by Link14716

CORRECTION, he has only that capability NOW ;)

Well, he can only do it with Flash games that are in public domain, like the Tetris one he used from my original hack. He's done a good job with it. However, not many Flash games out there will allow you to edit the source code so you can save the high score into your database. You can still integrate it into your forums with this hack.

If anyone comes across a good SWF game, please post here so we can all share it. :)

John 08-15-2002 02:47 AM

Quote:

Originally posted by Erwin

However, not many Flash games out there will allow you to edit the source code so you can save the high score into your database.

Tell me about it, lol! I'm going to write pong myself, and I'm asking the copyright owners of some good flash games if they'll share their stuff.

The thing I love about the whole leaderboard concept is that you're introducing a competitive spirit into the forum, making things a whole lot more fun! Still, I like that you're doing with this hack :)

:banana:

Erwin 08-15-2002 08:12 AM

Quote:

Originally posted by JohnWarwick


Tell me about it, lol! I'm going to write pong myself, and I'm asking the copyright owners of some good flash games if they'll share their stuff.

The thing I love about the whole leaderboard concept is that you're introducing a competitive spirit into the forum, making things a whole lot more fun! Still, I like that you're doing with this hack :)

:banana:

Well, here's a very basic Pong Flash Game I found - 1 player, you use the cursor keys to move the paddle. You can probably improve on it...

Unzip the ZIP file and upload pong.swf to your forums directory.

To run this integrated into your forum with my hack, use this command line (modifying the URL for your forums of course):

http://www.your-forums.com/forums/flash.php?play=pong

Erwin 08-15-2002 08:14 AM

Alternatively, you can let your members watch this hilarious Pong movie integrated into your forums.

Unzip the ZIP file and upload pongmovie.swf to your forums directory.

To run this integrated into your forum with my hack, use this command line (modifying the URL for your forums of course):

http://www.your-forums.com/forums/flash.php?play=pongmovie

Erwin 08-15-2002 09:26 AM

A cool Flash Pacman game from the site in my first post. It's a free download and free to use.

Unzip the ZIP file and upload flashman.swf to your forums directory.

To run this integrated into your forum with my hack, use this command line (modifying the URL for your forums of course):

http://www.your-forums.com/forums/flash.php?play=flashman

Erwin 08-15-2002 09:32 AM

This is one of the better games from the same site. Again, it's a free download and free to use. It's a Samurai Fighting game, similar to the old style Karateka/ Budokan fighting (but with better graphics).

Unzip the ZIP file and upload samurai.swf to your forums directory.

To run this integrated into your forum with my hack, use this command line (modifying the URL for your forums of course):

http://www.your-forums.com/forums/flash.php?play=samurai

The ZIP file is fairly large, and your members will have to wait for the swf file to load in your forums, but it's not a bad game at all to be able to offer online at your forums! :)

Erwin 08-15-2002 09:39 AM

If you come across a very good Flash game or movie, please do share by posting an attachment here! :)

E 08-15-2002 11:08 AM

love it :)

I installed all 22 games from that site. If you wanna play any or test drive them, just use my sig :)

Thx for tha hack

Erwin 08-15-2002 01:03 PM

Galactic Warrior - a Space Invaders-like game - free for public use.

Unzip the ZIP file and upload warrior.swf to your forums directory.

To run this integrated into your forum with my hack, use this command line (modifying the URL for your forums of course):

http://www.your-forums.com/forums/flash.php?play=warrior

Erwin 08-15-2002 04:37 PM

Frogger - another classic game - Flash SWF is public domain.

Unzip the ZIP file and upload Frogger.swf to your forums directory.

To run this integrated into your forum with my hack, use this command line (modifying the URL for your forums of course):

http://www.your-forums.com/forums/flash.php?play=Frogger

xxxsaint 08-15-2002 05:09 PM

I found a nice little free resource site that lets you have the .fla's and all , and the one I'm messing with now is Space Invaders. It even has a high scores script , but I can't figure out how to get it to work, somebody grab it and help ! w00oooOhoooo!

http://www.neave.com/

E 08-16-2002 04:06 AM

niceness.. ive added them all, use ma sig and play if you want to see how it works on your forums :) thx Erwin

DestyNova 08-16-2002 06:02 AM

Erwin, check at my post Your idea stole??

xxxsaint 08-16-2002 06:52 AM

ok , well check this out for me , this version of space invaders includes a high score script , can anyone figure out how to get it to work ?

Erwin 08-16-2002 07:10 AM

Quote:

Originally posted by DestyNova
Erwin, check at my post Your idea stole??
LOL!

I replied to your post there.



Anyway, just letting people know that I will be away this whole weekend to the country, where there is no internet connection :eek: I am leaving now... so if you have any bugs to report, please post here, and I will sort them out when I get back.

Glad that people like this hack. :)

Also, please share any Flash games by posting them here.

See you all after the weekend...

BigJohnson 08-16-2002 02:13 PM

When should we expect the store intgrated version for this?

John 08-16-2002 02:15 PM

I didn't know Erwin was planning a Store version...

Keyser S?ze 08-16-2002 02:42 PM

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

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,

ipscone 08-16-2002 08:50 PM

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.

Keyser S?ze 08-17-2002 12:39 AM

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?

DanIAm 08-18-2002 04:21 AM

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)

https://vborg.vbsupport.ru/

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)

https://vborg.vbsupport.ru/

Erwin 08-18-2002 08:43 AM

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.

Erwin 08-18-2002 08:55 AM

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.

Erwin 08-18-2002 09:01 AM

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.

Erwin 08-18-2002 09:04 AM

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)

http://www.mentalmingle.com/images/unloadedregister.jpg

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)

http://www.mentalmingle.com/images/footerprob.jpg

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.

Erwin 08-18-2002 09:13 AM

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

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.


All times are GMT. The time now is 10: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.01830 seconds
  • Memory Usage 1,869KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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