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)

Mr_P 08-12-2002 05:35 PM

removing them did`nt work

I can preview the tetris template in admin cp and it plays the game there (using fireflys preview template hack) but when i got to forums/tetris.php it just dont load at all

Mr_P 08-12-2002 05:38 PM

sorted maybe id better wake up now cheers m8

John 08-12-2002 05:43 PM

Lol, no worries :D

Schorsch 08-12-2002 05:46 PM

:banana: I want a highscore list :banana:

who is a good coder and can add this feature ? :nervous:

John 08-12-2002 05:47 PM

Quote:

Originally posted by Schorsch
:banana: I want a highscore list :banana:

who is a good coder and can add this feature ? :nervous:

Read the thread :| ;)

michealo 08-12-2002 06:06 PM

yeah, worked fine after remocing the ../

a leaderboard would be the coolest thing for this

thanks

proxyMX 08-12-2002 06:09 PM

Im offering this feature as a "Bonus" to all my users. I dont see why they should post and refer for everything.

John 08-12-2002 06:31 PM

I'm not doing this as a "pay and play" system, you pay to win more points if you get on the leaderboard. You can always make it really cheap to play...

joeboo 08-12-2002 07:10 PM

oh ho! this hack is sweet! i got to install this.. i would integrate it with Lesane's store hack, but meh.. now everything has a freakin price.. lol

Erwin 08-12-2002 07:19 PM

Quote:

Originally posted by michealo
yeah, worked fine after remocing the ../

a leaderboard would be the coolest thing for this

thanks

Oops!

I've updated the ZIP file to version 1.1 - to fix this minor bug.

For those who have installed vB Tetris 1.0, just do this:

In the "tetris" template:

Find:

Code:


../tetris.swf

It occurs twice. REPLACE with:

Code:


$bburl/tetris.swf

This will ensure that the Tetris game will work no matter where you link to it from.

I've updated the ZIP file - if you download version 1.1 you'll be fine! :)

Glad people are enjoying this. As for copyright - the game was a free addon for vBPortal, so I assume it is in the public domain.

Erwin 08-12-2002 07:25 PM

Like I said in the first post, I "ported" this over from a vBPortal add-on - I'm not responsible for coding the actual Flash game itself - I've left all the credits in the actual game to the original programmer. :) All I did was make it work for vB. As it was free with the vBPortal addon, I assume the same applies to vB.

John 08-12-2002 07:31 PM

Glad it's public domain, I've already hacked it to pieces!

In order to do the leaderboard system, I'm going to need to redistribute a new flash file. I'll try to make some improvements, as long as you're sure that it's legal.

zootsuit 08-12-2002 07:31 PM

Awesome hack, Erwin! Thank you! :D


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.
If it counts, I'm interested!!! ;)

kenny@ecn 08-12-2002 08:43 PM

Hey guys, installed the hack on my board:

http://www.exoticcarforums.com/tetris.php?s=

Looks great, but I would like to modify the SWF file a little bit- change the style of the font/lettering to match my board- maybe add a "featured at ExoticCarForums.com" image. How do I do this?

Any help?

Also, I would love to have a high scores board. I think someone should do a step by step installation of that for dumbies like me :)

John 08-12-2002 08:48 PM

Do you have Flash Kenny?

Just in case anyone was wondering, the Flash is under GPL :D

kenny@ecn 08-12-2002 08:50 PM

Quote:

Originally posted by JohnWarwick
Do you have Flash Kenny?

Just in case anyone was wondering, the Flash is under GPL :D



What is GPL? And yes, I have Flash. Not proficient at all with it :(.

John 08-12-2002 08:51 PM

General Public Licence - it means we can edit it all we want :)

kenny@ecn 08-12-2002 08:52 PM

Quote:

Originally posted by JohnWarwick
General Public Licence - it means we can edit it all we want :)

Any advice into how to edit it in flash?

Erwin 08-12-2002 08:58 PM

Quote:

Originally posted by JohnWarwick
Glad it's public domain, I've already hacked it to pieces!

In order to do the leaderboard system, I'm going to need to redistribute a new flash file.

Please do share your improvements here. :)

John 08-12-2002 09:02 PM

Well, so far:

http://www.eovie.co.uk/pics/tetris.swf


Take into account that it's not fullscreened when embedded in the page, and looks a lot better. Also: it displays the username of the person playing it and the amount of points they have, you won't see that because it's not in the page!

Edit: To see it with the fields filled in:

http://www.eovie.co.uk/pics/tetris.s...isitor&left=50

Also, the logo is supposed to be pixelated. It doesn't look that bad when it's smaller!

kenny@ecn 08-12-2002 09:08 PM

Was it real hard to mod that board the tetris the way you did? I really don't even know where to start, if you would just give me some direction :)

John 08-12-2002 09:15 PM

Well, it was a lot of messing about. The biggest problem for me is that all of the code is in Italian (I think), it makes it impossible to do anything quickly.

I'm going to try to clean up the file and redistribute it - it should make things easier for everyone out there wanting to edit the whole thing!

kenny@ecn 08-12-2002 09:44 PM

Quote:

Originally posted by JohnWarwick


I'm going to try to clean up the file and redistribute it - it should make things easier for everyone out there wanting to edit the whole thing!


GREAT!!!! Thank you soo very much. Keep me posted :)

Erwin 08-12-2002 09:48 PM

Did you manage to integrate the top scores into the mysql database? It won't be that easy...

kenny@ecn 08-12-2002 09:50 PM

Quote:

Originally posted by Erwin
Did you manage to integrate the top scores into the mysql database? It won't be that easy...

Nope, not at all... I didn't even get the username of the person who is logged in into it...

John 08-12-2002 09:58 PM

YES!!!

You know when you've been coding for hours, and suddenly you make a breakthrough? - that just happened to me!!

Here's how far I've got:

1. Added the "Play Tetris" action to the store.
2. Clicking on the "Play" button takes you to the next page, where it tells you that it'll cost a certain number of points per play.
3. The tetris page then loads up, checks to see if you're a valid member and have enough points, and then decucts the right number of points from the member's account.
4. The tetris Flash file loads, it shows the username of the member who's playing, and how many points they have.
5. When at the end of the game, it goes to another page where it records the username, userid, the current number of points, and their highscore to the database.

I love vB :)

DestyNova 08-12-2002 10:02 PM

Quote:

Originally posted by JohnWarwick
YES!!!

You know when you've been coding for hours, and suddenly you make a breakthrough? - that just happened to me!!

Here's how far I've got:

1. Added the "Play Tetris" action to the store.
2. Clicking on the "Play" button takes you to the next page, where it tells you that it'll cost a certain number of points per play.
3. The tetris page then loads up, checks to see if you're a valid member and have enough points, and then decucts the right number of points from the member's account.
4. The tetris Flash file loads, it shows the username of the member who's playing, and how many points they have.
5. When at the end of the game, it goes to another page where it records the username, userid, the current number of points, and their highscore to the database.

I love vB :)

wow..fast work

John 08-12-2002 10:09 PM

I aim to please :D

zootsuit 08-12-2002 10:09 PM

Wow, that is fast! :)

John 08-12-2002 10:11 PM

Is it?! I've been doing it all afternoon!

zootsuit 08-12-2002 10:14 PM

hehe, Yes, it is...even for someone who has oodles of experience.

Erwin 08-12-2002 10:14 PM

Do you mind sharing the php file that records the user's high score? :) With your permission, I will add it to the original hack.

John 08-12-2002 10:22 PM

I'm currently working on integrating it with the store hack, the code that records is intermingled with store stuff.

The fact that it redirects to a completely different page at the end of the game will annoy users, as if they want to start a new game they'll have to reload the page. So, after I've finished the store addon, I'll redo the code and pass it onto you so you can update the hack. You'd also have to redistribute the new flash file I've made, it's a lot cleaner and it passes the variables along.

Erwin 08-12-2002 10:25 PM

:) Sounds good.

I really don't use the Lesane store hack, so I may have to remove that section... I'll just post 2 versions, one integrated with the store hack, one without.

Velocd 08-12-2002 10:30 PM

This hack looks pro, although I'm not exactly crazy about Tetris, I may look for another flash game and try to integrate it with the concepts and ideas mentioned in this thread.

John 08-12-2002 10:31 PM

It's more of an addon for the store rather than this hack, and it's quite big - so I'll post it as a seperate hack (giving all credit to all 4 authors of course!)

Just curious, which is better? Should I have the "High Score" box in the Flash file showing the highest score that the user has obtained, or the highest score that any member has obtained?

kenny@ecn 08-12-2002 10:34 PM

Quote:

Originally posted by JohnWarwick

Just curious, which is better? Should I have the "High Score" box in the Flash file showing the highest score that the user has obtained, or the highest score that any member has obtained?

Have both...


Can we impliment this 'high score' box without doing the store hack?

John 08-12-2002 10:39 PM

After I do the store hack version, I'm going to do the non store hack version :)

Erwin 08-12-2002 10:39 PM

I am only interested in having the high score bit... :) If you can PM me how you did it, it would be good.

Erwin 08-12-2002 10:41 PM

Lesane's store hack has a lot to answer for... LOL!


All times are GMT. The time now is 04:54 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.02099 seconds
  • Memory Usage 1,819KB
  • 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_code_printable
  • (10)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