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)

Julio 11-09-2002 03:32 PM

Is there a way I can have my flash games (swf and dcr) under another folder (games) instead of my forum folder? I have many games and would like to keep my folders organized, nice and clean.

Also have someone tested this on a local PC testboard? Whenever I try to play a game, the page will not finish to load....Will show the page and the blach square whre the game is supposed to go.

Erwin 11-09-2002 07:25 PM

In the "flash" template, find the TWO occurrences of

Code:

$bburl/$play.swf
And change it to:

Code:

$bburl/games/$play.swf
Or whatever you want it to be.

Remember, there are 2 occurrences of this in that template.

Also, for the Flash games to work, the title of the filename is CASE SENSITVE. Also, make sure the URL of your forums in your Admin CP, vBulletin Options is set up to point to your forum URL.

Julio 11-13-2002 04:51 AM

I have been trying to use the valign="middle" to center the games into the page frame, but it keeps showing on the bottom of the table. How can I make it "centered"?

Erwin 11-13-2002 05:08 AM

That's strange. By default, the Flash Game is centred in the flash template that I provided.

You can add <center> </center> tags above and below where the Flash game is meant to show. That should center it.

Julio 11-13-2002 05:32 AM

Erwin: In fact you already have the tags in your code:


Code:

<center><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
 width=$w height=$h>
 <PARAM NAME=movie VALUE="$bburl/juegos/$play.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE="$b">  <EMBED src="$bburl/juegos/$play.swf" quality=high width=$w height=$h bgcolor="$b"  TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT></center>


Aligment is centered, though Vertical Aligment shows as bottom.

Erwin 11-13-2002 05:45 AM

The <td> tags already have the valign="top" in them. And my Flash games or movies are aligned at the top.

<td bgcolor="{firstaltcolor}" align="left" valign="top">

So I don't know why yours go to the bottom to be honest...

Delete all the <br> tags at the top and see.

Julio 11-13-2002 06:12 AM

OK, forced it under the html...

Will get some sleep now

Erwin 11-13-2002 06:28 AM

LOL! Glad to hear it worked. Go to bed! :)

Sanni 11-13-2002 11:01 AM

hi all,

was just wondering what kind of serverload/stress this hack places on the system?

it sounds like a great hack and i would love to install it but would be hesitant to do so if it placed a lot of stress on the server...

Erwin 11-13-2002 06:16 PM

It wouldn't place any stress on the server since Flash is downloaded onto the user's computer and played there - but it will affect your bandwidth depending on the size of the Flash game or movie since the user will have to download the file from your server.

Sanni 11-15-2002 05:13 AM

excellent news! thanks for the reply :)

Julio 11-19-2002 03:58 PM

Talking about bandwith....

I noticed games are being used way more than I thought. I already have 20 games and was planning on adding more, but they are taking my bandwith away.

I tried to re-direct from ****play=(URL HERE) but it doesn't work. Just wondering if this may be possible somehow?

For example, most of the games I (we) downloaded from this thread come from www.miniclip.com, so the line your be: (http://www.your-forum.com/forums/fla...Flash/gamename)

I even tried getting Miniclip's HTML they provide to link to their GameRoom into an html and use Erwin's html, java, text integrator to call the html, but it will display as text inside the board...

Any suggestions?

Erwin 11-19-2002 09:48 PM

Quote:

Originally posted by Julio
I tried to re-direct from ****play=(URL HERE) but it doesn't work. Just wondering if this may be possible somehow?

It's possible, but I won't be releasing a version of this hack that allows you to remote-link to Flash files hosted elsewhere as this is considered leeching and is unfair to the other server. How would you like it if someone linked to files on your server, using up your bandwidth? :) I purposely made this hack to prevent this from happening. Flash games, if very large, can chew up bandwidth, so use with care.

Julio 11-19-2002 10:35 PM

Erwin: I perfectly understand your point. However www.miniclip.com do provide an area where you "get" an html code that you place in your site as Game Room. So literally allo you to do it.

What is strange is that I placed the html code they provided in an html file locally in my forums folder, and called it using your HTML, Java, TXT integration file, but it doesn't work either...

I do have another host of 5Gb of space and 30Gb bandwith with just one small site... I would have no problem on palcing there my games and some other files, I can "call" with that function.

Erwin 12-09-2002 02:21 AM

Donkey Kong

New Flash Game that can be used with Flash Player.

To play:

1) Install Flash Player
2) Upload DonkeyKong.swf to your forum directory
3) Use this URL:

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

Enjoy!

mheinemann 12-09-2002 08:53 PM

What are the controls for that game? I can't get Mario to move.

Julio 12-13-2002 12:46 AM

OK Guys... Here's a good question...

I had my forum on a domainB and another domainA parked to domain B Today I got rid of domainB and everything points to domainA except I redirected index.html to domainA/forum/index.php, changed the URL under control panel, etc. Now, my games will not load... does my changes may have anything to do?

Erwin 12-13-2002 01:00 AM

Check that the forum URL in your Admin CP vBulletin Options is pointing at your forum directory.

Julio 12-13-2002 11:04 AM

Quote:

Originally posted by Erwin
Check that the forum URL in your Admin CP vBulletin Options is pointing at your forum directory.
Erwin: Everything is OK (At least it seems)

I was thinking that since Im redirecting thr index.html to www.domain/forum/index.php maybe the flash.php recognizes it as www.domain/forum/forum/flash.php?

Erwin 12-13-2002 09:55 PM

Possibly.

Go to the "Flash" template, and change the TWO occurences of $bburl to your whole site's URL.

Erwin 12-13-2002 09:58 PM

Quote:

Originally posted by mheinemann
What are the controls for that game? I can't get Mario to move.
Arrow buttons. Space bar to jump or go up.

PsyBlast 12-14-2002 12:16 PM

Quote:

Originally posted by john.eovie


I had this problem -

Open your "tetris" template:

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

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

Im also getting just a white screen when I try to play a game

there is no "tetris" template, I have 2 templates that I made, and there is no ../tetris.swf link in either of them

Did you mean the "flash" template? if you didnt then I am totaly lost and need help

mheinemann 12-14-2002 01:19 PM

Quote:

Originally posted by Erwin


Arrow buttons. Space bar to jump or go up.

Thanks, found out I had to click my mouse in the game. That's why it wasn't working for me.

Julio 12-14-2002 02:45 PM

Erwin:

I tried that but still doesn't work...

What would be the way I should use if I want to redirect index.html to my forums index.php?

I mean.. I have no index.html under my public_html folder... so under .htaccess I wrote:

Redirect permanent /index.html http://www.mydomain.com/forums/index.php

it works...but now my games page doesn't work, as described previously. It seems the redirect (or the way it's being redirected) is the problem(?)

I know there are other ways to redirect, but don't know which to use. :disappointed:

Erwin 12-15-2002 12:55 AM

Quote:

Originally posted by PsyBlast

Im also getting just a white screen when I try to play a game

there is no "tetris" template, I have 2 templates that I made, and there is no ../tetris.swf link in either of them

Did you mean the "flash" template? if you didnt then I am totaly lost and need help

That is a post by john.eovie that deals with his Tetris hack which has nothing to do with this hack. Read it carefully.

Your problem has been dealt with many times in this thread by myself - read through the more recent posts.

Some tips:
Make sure you have uploaded the tetris.swf file into your forum directory.
Make sure your URL is using the exact case of the file name without the .swf part
Make sure you have not modified the flash template.
Make sure the URL to your forum directory us correct in your Admin CP vB Options.

Erwin 12-15-2002 12:56 AM

Quote:

Originally posted by Julio
Erwin:

I tried that but still doesn't work...

What would be the way I should use if I want to redirect index.html to my forums index.php?

I mean.. I have no index.html under my public_html folder... so under .htaccess I wrote:

Redirect permanent /index.html http://www.mydomain.com/forums/index.php

it works...but now my games page doesn't work, as described previously. It seems the redirect (or the way it's being redirected) is the problem(?)

I know there are other ways to redirect, but don't know which to use. :disappointed:

Not much I can do here. You just have to play around with the flash template to point to the correct directory for your Flash games. Note that there are 2 instances in the template you have to change.

Julio 12-15-2002 01:15 AM

Erwin: Everything is exaclty the same as besfore, except my domain name is now another one... (I replaced the info on VB and everything works except the games)

Remember now I have a redirect of index.html to http://www.mydomain.com/forums/index.php I don't know if this is the best way to do it... this seems to be the cause, since I can perfectly play the games in my local testboard.

Erwin 12-15-2002 01:17 AM

Redirecting index.html to index.php has no effect on the flash.php or flash templates, so I don't know what the problem you have is. Did you upload the games to your forum directory? Are you using the correct filenames?

Julio 12-15-2002 01:51 AM

In the two $bburl instances, I asked you once how to "call" the games from another folder under forums....

It reads $bburl/games/$play.swf

Erwin 12-15-2002 01:55 AM

Change that to:

http://www.mydomain.com/forums/games/$play.swf

(didn't I say that - to hardcode your forum URL?)

Julio 12-15-2002 03:09 AM

Erwin: The only different thing I did to my site besides changing the domain, was CHModed some files and folders to use (edit, etc) with your VBFTP hack...

In fact I chModed those to 777 except games, but games folder and forum folder are 777. Does this has anything to do with it?

Erwin 12-15-2002 06:49 AM

CHMOD would make no difference. It's probably something simple stopping you, like the wrong filename case...

Julio 12-15-2002 01:13 PM

Erwin:

What is strange is I can "play" the games locally...but online...it will show a blank space where the game is suppose to be shown.

I even replaced the flash.php and templates with the ones locally and still nothing shows.

I placed the games under forum folder instead of games folder, edited the 2 instances, and still not works. I have read and compared the origianl file I downloaded from this thread. even tried using $bburl in lower and caps.

theoneandonly 12-17-2002 08:17 PM

uhh when it says link to this url what does that meen? does it meen take the modified url to fit ur forum's address and put it in the forumhome template? or what? i dont get it... ive uploaded the tetris.swf and flash.php and created the templates but now what do i do in the linking part?

Erwin 12-17-2002 08:25 PM

Read the instructions in the text file, or in the first post carefully.

theoneandonly 12-17-2002 08:26 PM

i did i just dont get what i did wrong

theoneandonly 12-17-2002 08:30 PM

wait the instructions says it is a public domain game... does that mean i have to have a domain? cuz my url is http://ensim.ionhosting.com/~admin71/forum

theoneandonly 12-17-2002 08:45 PM

bump please.:) what i did when it said link to this url i went into forum home template and put the link it said http://ensim.ionhosting.com/~admin71...hp?play=tetris and thats it.. but only that TEXT appeared on my forumhome

Erwin 12-17-2002 08:59 PM

Don't use absolute paths.

Use your sites URL.

What is your site's address? The one in your profile is offline.

theoneandonly 12-17-2002 09:39 PM

i dont have a site i only got a forum, but if thats what u mean that url is http://ensim.ionhosting.com/~admin71/forum


All times are GMT. The time now is 11:39 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.02128 seconds
  • Memory Usage 1,825KB
  • 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
  • (3)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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