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)

Lesane 08-16-2002 04:26 PM

$_SERVER['HTTP_REFERRER'] is not that reliable.

You could also put an extra useless value in the play action:

PHP Code:

$useless_value="100"

And then by reg action you can use something like this:

PHP Code:

if ($action == "reg" && $useless_value == 100) { 


Stuwee 08-16-2002 04:34 PM

Quote:

Originally posted by Lesane
$_SERVER['HTTP_REFERRER'] is not that reliable.

You could also put an extra useless value in the play action:

PHP Code:

$useless_value="100"

And then by reg action you can use something like this:

PHP Code:

if ($action == "reg" && $useless_value == 100) { 


This also wouldn't be possible since the script is called *again* when the score is submitted, and hence any vars set when the user was playing won't still be set... 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.

Back to the drawing board :).

pgowder 08-16-2002 06:04 PM

How can I intergrate this with Who's Online?

Keta 08-16-2002 06:08 PM

cool hack will be installing

John 08-16-2002 06:19 PM

lol, Lesane Vs. Stuwee - battle of the brains!

xxxsaint 08-16-2002 06:41 PM

You can integrate this into your who's online by opening root/online.php

first find

case 'printthread.php':
$userinfo[activity] = 'printthread';
$blowup = explode('=', $token1);
$threadid = intval($blowup[1]);
$threadids .= ",$threadid";
$userinfo[threadid] = $threadid;
break;

+++++++ do not add this divider ++++++++

and AFTER THAT add

++++++ do not add this divider +++++++++

case 'tetris.php':
$userinfo[activity] = 'tetris';
break;

++++++ do not add this divider +++++++++

then find

+++++++do not add this divider ++++++++

case 'calendar':
$userinfo[where] = "Viewing <a href='calendar.php?s=$session[sessionhash]'>Calendar</a>";
break;

+++++++ do not add this divider ++++++++++++

and AFTER IT ADD

+++++++ do not add this divider ++++++++++++

case 'tetris':
$userinfo[where] = "Going for the King of Tetris Crown";
break;

++++++do not add this divider ++++++++++++++

save , and upload.

** As always , when you are installing a new hack , create a new folder called ' backup ( name of hack ) ' and before you do ANYTHING put the files that you are modifying in there. ALWAYS back your file up , that way if the modded file does not work , you simply upload the one from your new folder.

I added this to my root/online.php on version 2.2.6 and it works just fine.

I put " Going for the King of Tetris Crown " because I also have the crown hack installed.

enjoy.

Ninth Dimension 08-16-2002 06:47 PM

Just a quick note, i'm not sure if anyone else has said this or not, but one of my users has just reported that he got a score of 108697 once he had completed the game - not dieing early but actually getting to the end...

He says that the score did not update or anything, might this be a bug?

xxxsaint 08-16-2002 06:50 PM

I've had users tell me the same thing

Ninth Dimension 08-16-2002 06:56 PM

Quote:

Originally posted by xxxsaint
I've had users tell me the same thing
I've just had to manually add a score for one of my new members because he compained about it LOL

Souly 08-16-2002 07:28 PM

Thx to john.eovie for the Great Hack.

I installed teris and the addon yesterday and now more and more from my users send me PM?s and say that after Lvl10 (theEND) no Score ist updated and the Site ist not refreshed to the leaderboard :(


All times are GMT. The time now is 11:06 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.01711 seconds
  • Memory Usage 1,744KB
  • 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_php_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