Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
vB Tetris v2.5 | Leaderboard, Comments and High Score System v2.5 :) Details »»
vB Tetris v2.5 | Leaderboard, Comments and High Score System v2.5 :)
Version: 1.00, by John John is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-13-2002 Last Update: Never Installs: 93
 
No support by the author.

hack removed, someone please delete this thread.

Apparently the 6 days solid I spend supporting this wasn't good enough (not to mention the 65 page total).

Thanks

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #572  
Old 08-21-2002, 02:47 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't forget the SQL query
  #573  
Old 08-21-2002, 02:53 PM
Schorsch's Avatar
Schorsch Schorsch is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already did this in v2.41
  #574  
Old 08-21-2002, 02:56 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a new query for 2.5
  #575  
Old 08-21-2002, 03:24 PM
Ron ? DCS Ron ? DCS is offline
 
Join Date: May 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #576  
Old 08-21-2002, 03:26 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
  #577  
Old 08-21-2002, 03:35 PM
portion portion is offline
 
Join Date: Apr 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #578  
Old 08-21-2002, 03:35 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
  #579  
Old 08-21-2002, 03:43 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #580  
Old 08-21-2002, 03:44 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #581  
Old 08-21-2002, 03:49 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07687 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete