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 Tetris v2.5 | Leaderboard, Comments and High Score System v2.5 :) (https://vborg.vbsupport.ru/showthread.php?t=42293)

e-2 08-21-2002 01:05 PM

I'm not bothered about my Netscape using members, or any other OS besides IE :D They don't deserve the privilidge of playing this game if they can't use a decent browser :p

John 08-21-2002 01:06 PM

Quote:

Originally posted by Zombie
I uploaded the file, then the first game I played I got that error (it could have been a cached page, but I'll keep an eye on it)

BTW, I'm using IE6


Yeah, let it settle down and tell me if it happens again. Does this usually occur on the page after the game?

John 08-21-2002 01:07 PM

Quote:

Originally posted by e-2
I'm not bothered about my Netscape using members, or any other OS besides IE :D They don't deserve the privilidge of playing this game if they can't use a decent browser :p
:banana: I like your style :D

Zombie 08-21-2002 01:14 PM

Quote:

Originally posted by john.eovie



Yeah, let it settle down and tell me if it happens again. Does this usually occur on the page after the game?

Yes, only happens to me after the game is over and is suppose to go to "tetris.php?action=reg"

I'll keep an eye on it and let ya know if it keeps happening

John 08-21-2002 01:48 PM

I've found the problem, coding a fix now

Schorsch 08-21-2002 01:52 PM

If u don't win Level10, you get the no permission error!
what's wrong ?

cu
Schorsch

John 08-21-2002 01:55 PM

It's nothing to do with level 10, it's my own stupid error in the code - fix coming shortly

Zombie 08-21-2002 02:40 PM

Is there a way you could add the option where we could delete the scores (even the delete feature the shoutbox has would be good, for admins only of course)

(I'd like to delete the scores every week or so so people could get a chance to be top scorer)

John 08-21-2002 02:40 PM

Fixed - check first post

Schorsch 08-21-2002 02:45 PM

Quote:

Originally posted by john.eovie
Fixed - check first post
John - Thank you very much!! :)

for upgrading just upload tetris.php and tetris.swf ?

Schorsch

John 08-21-2002 02:47 PM

Don't forget the SQL query

Schorsch 08-21-2002 02:53 PM

I already did this in v2.41 :)

John 08-21-2002 02:56 PM

This is a new query for 2.5

Ron ? DCS 08-21-2002 03:24 PM

Okay, I have one modification question...this is the code to keep unregistered (guests) out:

Code:

if ($bbuserinfo[username] == "Unregistered") {
  show_nopermission();
}

Is there a like-kind code I can keep all but a select few usergroups out? I am thinking of allowing only Supporting Members (usergroup=11 on my board) this perk, as well as other games.

John 08-21-2002 03:26 PM

Quote:

Originally posted by Ron ? DCS
Okay, I have one modification question...this is the code to keep unregistered (guests) out:

Code:

if ($bbuserinfo[username] == "Unregistered") {
  show_nopermission();
}

Is there a like-kind code I can keep all but a select few usergroups out? I am thinking of allowing only Supporting Members (usergroup=11 on my board) this perk, as well as other games.

Upgrade! That's old code. It's a lot easier to block out people in the new version, install it!

portion 08-21-2002 03:35 PM

hope Im not asking too much here, but could you tell us what has changed in the last two revisions. I have changed a lot of the html code to integrate to my forums and it would be easier to change just the code you have updated. Instead of overwriting the whole teris.php file.

Thanks
portion

John 08-21-2002 03:35 PM

And with the new version, all you have to do is replace:

Code:

if (($bbuserinfo[usergroupid] == "1") or ($bbuserinfo[usergroupid] == "3") or ($bbuserinfo[usergroupid] == "4")) {
  show_nopermission();
}

with

Code:

if (($bbuserinfo[usergroupid] != "11") && ($bbuserinfo[usergroupid] != "6") && ($bbuserinfo[usergroupid] != "5") && ($bbuserinfo[usergroupid] != "7")) {
  show_nopermission();
}

wherever it appears (it might appear up a few times)

John 08-21-2002 03:43 PM

Quote:

Originally posted by portion
hope Im not asking too much here, but could you tell us what has changed in the last two revisions. I have changed a lot of the html code to integrate to my forums and it would be easier to change just the code you have updated. Instead of overwriting the whole teris.php file.

Thanks
portion

The two files that have changed are tetris.php and tetris.swf
The only template that's changed is "tetris"
There have been two new SQL queries since 2.0

In the tetris template, "&sec_no=$sec_no" was added to the end of the parameter string. It passes a security number over to the Flash file.

tetris.swf has had a few improvements, including the level 10 fix.

tetris.php has undergone a LOT of changes.
1. New security system. Random variables are generated and passed along the system, should this line be broken or the variable be changed, things won't work.
2. No permission bug fixed, with a date system. It deletes records with a score of 0 that are over 60 minutes old.
3. Loads of tiny security fixes

I can't list the code for al of these, because over half of it has changed. When you say you've made changes to the HTML, are you talking about templates? Few changes have been made to the templates, tetris.php is the important file.

Ninth Dimension 08-21-2002 03:44 PM

You have a problem with your above code, by doing that you will lock yourself and mods out of the game, unless they are usergroup 11, which we all know they won't be :)

John 08-21-2002 03:49 PM

Ignore Ziggy's code above, it's wrong - it doesn't pass any variables along to the Flash file.

If you install that it won't work

Ron ? DCS 08-21-2002 03:58 PM

Thanks John!!! :D

One question, tho'...I just downloaded this thing two days ago, and the code is already old? Did I download the wrong files?

Ninth Dimension 08-21-2002 04:06 PM

back then they where the right files, but since then John has been working hard on improving the script and fixing bugs, and now the old files are out of date.

The best thing is to go back to the first post and download the files again to upgrade it.

ziggy 08-21-2002 04:06 PM

EZ background color change, w/variables this time! :D
Just edit the hex codes to whatever you want?

Code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=6,0,29,0"
  id="_4ums" width="550" height="380">
  <param name="movie" value="tetris.swf?userid=$userid&username=$username&s=$session[sessionhash]&points=$points&cur_high=$cur_high&bbtitle=$bbtitle">
  <param name="quality" value="high">
  <param name="scale" value="exactfit">
  <param name="salign" value="tl">
  <param name="wmode" value="transparent">
  <param name="bgcolor" value="#999999">
  <embed name="_4ums" src="tetris.swf" quality="high" scale="exactfit" salign="tl" wmode="transparent" bgcolor="#999999"
    width="550" height="380"
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
  </embed>
</object>

Ignore the smiley :D you can leave the classid= the same.

Cheers...ziggy

Ninth Dimension 08-21-2002 04:11 PM

Ziggy, the code you have provided looks good, and so far as i can see has all the correct variables being passed to the flash file, the only problem is that on boards with a light background colour you can't read the text very well :(

scottct1 08-21-2002 04:21 PM

Hmm wierd. I have done the 2.5 update from the 2.4 upgrade and now I am getting a no permission when I get to enter my score on the leaderboard.

I put the old 2.4 PHP file back in and everything is fine again.

Yes I did the SQL query instructions. :)

ziggy 08-21-2002 04:21 PM

Hey dan,
You mean in the Flash file or the header/footer table cells?
You can change the wmode params from "transparent" to "opaque" also, this should let you darken it w/hex so yourtext shows better. Theres alot of combinations you could use there? Just something to play with if you're not happy w/the default colors?

I just popped in for a sec, I'm busy on integrating multiple vBportals into a single VB arrgghhh :D

Cheers...ziggy

Ninth Dimension 08-21-2002 04:28 PM

scottct1, can you try something for me please? delibratly get a low score in game (one that would prevent you from adding a score) and let me know what happens.

scottct1 08-21-2002 04:43 PM

I put it back in again and its working now. Wierd. I tried just getting a low score. and its going fine.

John 08-21-2002 04:44 PM

Phew - you had me worried Scott.

Ninth Dimension 08-21-2002 04:50 PM

Quote:

Originally posted by scottct1
I put it back in again and its working now. Wierd. I tried just getting a low score. and its going fine.
So is it all working now, or just when you get a low score?

John 08-21-2002 04:51 PM

I think it all works now :)

John 08-21-2002 04:55 PM

Quote:

Originally posted by Ron ? DCS
Thanks John!!! :D

One question, tho'...I just downloaded this thing two days ago, and the code is already old? Did I download the wrong files?

Yeah, it's out of date!

Upgrade :)

scottct1 08-21-2002 04:59 PM

Im not sure, I never get high enough scores. :)

If its broke one of my users will tell me i'm sure.

John 08-21-2002 05:00 PM

Just received this PM from DestyNova:

Quote:

PM removed
Ok, let's just say that I'm am seriously annoyed now. I will now address any issues which some of you may have.

Re: vB Tetris

1. vB Tetris is not the flash tetris game. It is the hack which allows a scoreboard to be kept of high scores in a GPL game.
2. As a GPL game I can legally distribute it.
3. That's exactly what I'm doing.

Re: The Arcade Hack

1. This, like vB Tetris is a HACK. It's packaged as a hack. All of the games in it are GPL, it is legal for me to distribute them.
2. People who have sent me donatations are not paying for any games. I'm giving them the arcade hack, I AM NOT SELLING FLASH GAMES. Once again, this is legal. If it makes people happy I'll send it as two files - one with the hack in, and one with the games in.
3. I no longer intend to ever release this hack to the public, due to the issues raised here.

DestyNova 08-21-2002 05:21 PM

Since you ahead post it so I guess I should add some bit information. After I email these makers to make sure about GPL, since I m not really fully knowledge with GPL rules anyway I got odd email from one of makers said that they got several complaints about their games "sell" at vb.org. So it force me to email to John about sell issues. But John now clear up about it with me and I email them already that it is not their games that which "sell" but only hack.

Also reason for this email, I dont want to have them sue John for this reason since I dont know who email them several of "complaints" emails, that maker refuse to name whos. I respect John and his works, I want to have him continue his amazing hacks at here so I have to speed up and clear up with these makers.

Schorsch 08-21-2002 05:23 PM

I just hope selling hacks doesn't get practice, because when everybody is doing this it's getting expensive and I'm going back to phpBB2, there it's free of charge :banana:

Ninth Dimension 08-21-2002 05:28 PM

It is true that selling of hacks is viewed as a bit of a no-no, but you have got to remember that John has put a lot of time and hard work into developing the arcade hack, and it's only fair that he gets rewarded for it.

If the author is happy to give away some code for free, for whatever reason (promotion, kindness, whatever) then cool. if not, all you can do is respect their wishes?

After all, when you goto work each day, do you do it for free?

Is vB free?

John 08-21-2002 05:28 PM

Quote:

Originally posted by Schorsch
I just hope selling hacks doesn't get practice, because when everybody is doing this it's getting expensive and I'm going back to phpBB2, there it's free of charge :banana:
What?! I released the standard version (the Tetris hack), the arcade hack was supposed to be a special feature rich version for myself. But now the original isn't good enough... :p :banana:

scottct1 08-21-2002 05:29 PM

From what I can see no one is selling anything, this has all got blown out of proportion.

I like John's hack, and John has been very good in supporting his hack. I am sure his time is valuable just like everyone elses.

I don't think he is looking for "pay me or else" perhaps the way it should have been said was "if you like my hack please send me a donation for beer money" :)

I hope John continues with his work and the Arcade is released to the public.

Ninth Dimension 08-21-2002 05:29 PM

another thing, John has put a lot of time into the tetris hack, if he wants to sell an advanced verson of it with support for more games, good on him :)


All times are GMT. The time now is 09:40 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.02137 seconds
  • Memory Usage 1,831KB
  • 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
  • (5)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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