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)

Castel 08-17-2002 01:23 AM

Quote:

Originally posted by Jashugan
Castel

Umm, list of 50 members sounds good but where will we put these codes that you post above? If add then after or before which code, if replace then which?

Check edited post above

Castel 08-17-2002 01:28 AM

Quote:

Originally posted by NexDog
Could you post what needs to be added to the templates and where? I'm dealing with a HD failure right now. :(
My last row of tetris_leader_main looks liek this:

PHP Code:

<tr
          <
td bgcolor="{tableheadbgcolor}" colspan="4" align="center"><smallfont color="{tableheadtextcolor}">&nbsp; <b>$thefooter</b> &nbsp;</smallfont></td>
        </
tr


Jashugan 08-17-2002 01:29 AM

Castel

TY :)

NexDog 08-17-2002 04:52 AM

All well and good, but none of this changes the link colour for the word, "here".

Lesane 08-17-2002 09:40 AM

Quote:

Originally posted by Stuwee
I actually can't think of a 100% reliable way around this right now - the referrer is the best way I can think of, but as we all know, it can be easily poisoned.
From the manual:

Quote:

PHP Manual:
The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
http://www.php.net/manual/en/reserve...riables.server

Basically, do not use it for any form of validation. (as the manual says) trust it.

I will secure my tetris and i will let you know when i'm done with it, then you can check if it's 100% secure if you want.

Souly 08-17-2002 09:48 AM

I have found one Problem in the Game.swf:

Is it not good, that you can stop (Pause) the Game and see the next item and all other from the game :D .. In the original tetris a very big Pausescreen will show and you can?t see anything. Is it possible to make the Pausescreen bigger?

Schumi 08-17-2002 10:51 AM

Hello.

I want play Tetris on my forum. I opened the play, but I got the notice that I have no permisson. Many user got this notice.

What can I do?

Ninth Dimension 08-17-2002 12:43 PM

I've just discovered another bug, it's not anything that would bother me personally because of the way I've got my forum set-up, but for anyone with a forum that requires either moderation of new members, or forums that require email checks on new members, this hack totally by-passes it, alloing someone to sign-up with a fake email, or ignore the sign-up email, and go stright to the tetris game.

I'm guessing that this can be fixed by changing the
PHP Code:

error_reporting(7); 

code, but I don't know what to.

ps. Castel nice add-on :)

Ninth Dimension 08-17-2002 12:44 PM

OK, i've just realised that it's not the error_reporting thing that needs changing, but the:
PHP Code:

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


but yet again, I don't know what it needs to be changed to.

Ninth Dimension 08-17-2002 01:03 PM

Right, I can NOT gurantee that this will fix the problem I suggested above, but here is what I think you need to do:

Find:
PHP Code:

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


Replacewith
PHP Code:

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


this will have to be done 4 times (I think).

I've not tested this yet, i'm just about to, if you do try it, MAKE A BACK UP of tetris.php first.

PS, 1 is Unregistered / Not Logged In
3 is Users Awaiting Email Confirmation
and 4 is (COPPA) Users Awaiting Moderation.

if you have any other usergroups that you don't want to give access to, you need to add them as well (like i've got 8 which is BANNED!! :))

edit - fixed code :)


All times are GMT. The time now is 10:00 AM.

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.02563 seconds
  • Memory Usage 1,753KB
  • 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_php_printable
  • (4)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