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)

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


All times are GMT. The time now is 01:15 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.04048 seconds
  • Memory Usage 1,741KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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