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)

Link14716 08-27-2002 12:10 AM

Right now just pray that I don't end up with the usual 3,000,000 parse erros ;)

Anyways, right now I am trying to get it as an arcade, and then hard code some ++++, since I'd be the only one using it anyways, put this cord there and.....

trilOByte 08-27-2002 01:27 AM

Quote:

Originally posted by futureal


Run this query:

PHP Code:

$DB_site->query("DELETE FROM arcade WHERE game='tetris'"); 

But be careful! :D

My arcade hack has that option (Reset Scoreboard) in the Admin Panel.

Great, that worked fine - thanks. And I didn't get lynched either ;) :D

futureal 08-27-2002 02:59 AM

As a side note, you can easily modify that query to clear certain types of scores or certain users' scores from the database.

For example, DELETE FROM arcade WHERE game='tetris' AND userid='someone' would delete only a certain user's scores. Similarly, adding "AND score < 200" would eliminate scores below 200, and so on.

LightBringer 08-27-2002 04:29 AM

The arcade hack has gone off without a hitch on my forums and already the members are screaming for more games such as Centipede and Tempest.

hehe

Great work! I hope to see the ability to add more games through the progression of this hack. :)

Odil 08-27-2002 05:01 AM

John,

I have made a donation to recieve your arcade hack, how soon can I expect it? Will it be sent to the email address provided by paypal? That address was girlonvenus@hotmail.com

Thanks!

John 08-27-2002 05:35 AM

Quote:

Originally posted by Odil
John,

I have made a donation to recieve your arcade hack, how soon can I expect it? Will it be sent to the email address provided by paypal? That address was girlonvenus@hotmail.com

Thanks!

What's an eCheck? It says it's clearing at the moment.... (fill me in!)

John 08-27-2002 05:36 AM

Quote:

Originally posted by LightBringer
The arcade hack has gone off without a hitch on my forums and already the members are screaming for more games such as Centipede and Tempest.

hehe

Great work! I hope to see the ability to add more games through the progression of this hack. :)

This goes for anyone - if you see a Flash game with the original source code and thing "Hey, that'd be great for the arcade" - SEND IT TO ME! :banana:

Ron ? DCS 08-27-2002 05:41 AM

John...check your PayPal account! :D

John 08-27-2002 05:43 AM

Quote:

Originally posted by Ron ? DCS
John...check your PayPal account! :D
And check your email account! :banana:

Odil 08-27-2002 05:48 AM

Quote:

Originally posted by john.eovie


What's an eCheck? It says it's clearing at the moment.... (fill me in!)

It's sent using my checking account. It takes a day or two to clear. I would have used a credit card but I didn't have one set up in Paypal.

NexDog 08-27-2002 06:07 AM

/hastily checks to see if anyone has paid their hosting bill via PayPal in the last 24 hours......:)

Oh yea, how to add that button from vggermany. is that in a template or php file?

And how to add to Forum Jump? I should know that already, lol. I'm such a lazy a$$hole. :D

John 08-27-2002 06:08 AM

Quote:

Originally posted by NexDog
/hastily checks to see if anyone has paid their hosting bill via PayPal in the last 24 hours......:)

Oh yea, how to add that button from vggermany. is that in a template or php file?

And how to add to Forum Jump? I should know that already, lol. I'm such a lazy a$$hole. :D

You need to add it into the header template.

Give generously! (For I am poor :()

SemperFidelis 08-27-2002 06:12 AM

The arcade hack rocks John
Thankyou once again for this
I dont think anything will come close to it for hack of the month
:D

Im now on the look out for some more games to implement.
Will send any I find your way.

John 08-27-2002 06:14 AM

Quote:

Originally posted by v-net
The arcade hack rocks John
Thankyou once again for this
I dont think anything will come close to it for hack of the month
:D

Im now on the look out for some more games to implement.
Will send any I find your way.

It can never be hack of the month, because it's not public release :(

SemperFidelis 08-27-2002 06:19 AM

Quote:

Originally posted by john.eovie


It can never be hack of the month, because it's not public release :(

Only one way to fix that......
;)
lol

Even if the arcade hack doesnt go public, the tetris with addons will win it for you.

Odil 08-27-2002 07:18 AM

John,

I have run into one problem, when I click on any game, I get the following errors at the top of the page:

Warning: rand(): Invalid range: 100000000..999999999 in C:\DDVBBoard\upload\arcade.php on line 163

Warning: rand(): Invalid range: 100000000..999999999 in C:\DDVBBoard\upload\arcade.php on line 169

Also when I got to the end of a game, I recieved another error much like the one above but with a diffarent line number.

Any ideas?

Odil

John 08-27-2002 07:28 AM

This is a known problem, it only affects earlier versions of php. Check your PM inbox, I've sent you another version :)

vdinh 08-27-2002 06:20 PM

Thanks, John. Your arcade hack works great :) ...

I'm modifying an Original post by futureal about the Who's Online modification for this Arcade hack:


In online.php, find:

PHP Code:

    case 'spider':
      
$userinfo[where] = "Search Engine Spider";
      break; 

and right above it, add:

PHP Code:

         case 'arcade':
      
$userinfo[where] = "Viewing <a href='arcade.php'>Main Arcade</a>";
      break;
    case 
'tetris':
      
$userinfo[where] = "Playing <a href='arcade.php?action=play&game=tetris'>Tetris!</a>";
      break;
    case 
'snake':
      
$userinfo[where] = "Playing <a href='arcade.php?action=play&game=snake'>Snake!</a>";
      break;
    case 
'spaceinvaders':
      
$userinfo[where] = "Playing <a href='arcade.php?action=play&game=spaceinvaders'>Space Invaders!</a>";
      break;
    case 
'pacman':
      
$userinfo[where] = "Playing <a href='arcade.php?action=play&game=pacman'>Pac Man!</a>";
      break; 

then find:

PHP Code:

  case '/robots.txt':
    
$userinfo[activity] = 'spider';
    break; 

and right above it, add:

PHP Code:

  case 'arcade.php':
    if (
$token1 == 'action=play' && $token2 == 'game=pacman') {
      
$userinfo[activity] = 'pacman';
    } else if (
$token1 == 'action=play' && $token2 == 'game=snake') {
      
$userinfo[activity] = 'snake';
    } else if (
$token1 == 'action=play' && $token2 == 'game=spaceinvaders') {
      
$userinfo[activity] = 'spaceinvaders';
    } else if (
$token1 == 'action=play' && $token2 == 'game=tetris') {
      
$userinfo[activity] = 'tetris';
    } else {
      
$userinfo[activity] = 'arcade';
    }
    break; 


Kars10 08-27-2002 06:34 PM

Cool Vdinh!
Your Online-Thing works like a charm!!! :D

Question: Any Idea, how to make the "Tetris-King Addon" work with all other Arcade-Games (like on the Main Arcade Page)?

Heres the Functions-Code for 2.2.5:

Code:

// King of Tetris Hack, by John Warwick
    global $DB_site;
    $leaderboard = $DB_site->query_first('SELECT userid FROM arcade WHERE game = "tetris" ORDER BY score DESC');
    $kingid = $leaderboard['userid'];
    if ($post[userid] == $kingid) {
    $crown = '<img src="{imagesfolder}/crown.gif" alt="King of Tetris!" />';
} else {
    $crown = '';
}

Thanks!! ;)

LightBringer 08-27-2002 06:36 PM

Ahh yes..thanks for the update for "Who's Online" that worked great!

Schorsch 08-27-2002 06:38 PM

John do you intend to integrate more flash games in the future ?

John 08-27-2002 06:40 PM

Yes :)

Martin64 08-27-2002 08:04 PM

Well, if you can't afford to donate, do like me: write your own. :D

*cough* I did get help from a friend *cough*

:D

Lanigironu 08-27-2002 08:05 PM

Quote:

Originally posted by Martin64
Well, if you can't afford to donate, do like me: write your own. :D

*cough* I did get help from a friend *cough*

:D

It's really not that difficult. I'm working on one right now.

Zombie 08-27-2002 08:45 PM

Here are some images for the arcade hack if anyone wants to use them to link to their games

Martin64 08-27-2002 08:46 PM

Heh, sorry for not asking for permission. :)
You really made them from scratch with no other images as base? Hmm...looks awfully a lot like the logos in the SWF's :D

Zombie 08-27-2002 08:51 PM

Not a problem really, I'm sure others have also :)

That's why I posted them

Schorsch 08-27-2002 08:55 PM

thanks Zombie !

John 08-27-2002 08:57 PM

Ok, tetris hack deleted. No more support, no more hacks (apparently I'm not wanted here). I'll still be releasing to my friends, keep in touch :)

Zombie 08-27-2002 08:58 PM

Quote:

Originally posted by Martin64
You really made them from scratch with no other images as base? Hmm...looks awfully a lot like the logos in the SWF's :D
Yes, they are. So why didn't you make them?

Regardless how they were made, I made them and you used them without permission.

This discussion is stupid and they are free to use by anyone. I know someone can come up with something better. Mine are far from great, but they were mine.

futureal 08-27-2002 09:06 PM

Quote:

Originally posted by john.eovie
Ok, tetris hack deleted. No more support, no more hacks (apparently I'm not wanted here). I'll still be releasing to my friends, keep in touch :)
Sheesh. Nobody ever said you weren't wanted here, and that certainly was not my intent with the other post. In fact, I made that other post with YOU in mind.

Martin64 08-27-2002 09:11 PM

Quote:

Originally posted by Zombie
Yes, they are. So why didn't you make them?

Regardless how they were made, I made them and you used them without permission.

This discussion is stupid and they are free to use by anyone. I know someone can come up with something better. Mine are far from great, but they were mine.

Sweet! I will take a screencap of the vbulletin.org logo and claim I made it. Wow, I'm such a graphics artist! Don't say you didn't take a screencap of the games (except Tetris) because that's exactly what you did. I don't have any problem with this, but please don't make me look like a bad guy.

John 08-27-2002 09:11 PM

Excuse me? Have a quick thread through the thread you started, it soon turned into a "let's bash John" event.

I've spend my ENTIRE week's holiday working on this, I've supported this as best as I can. I simply don't have the time for another 60 pages of fun with the arcade hack. So, when I offered to release it free of charge without support, that STILL wasn't good enough. And this is something I never intended to release in the first place!

I'm sick of all the little kids on this forum, so I'm talking the afterlab approach to hacking. I'll do my hacks, and install them, and maybe tell my close friends. It seems that that's all I can get away with without being attacked.

Martin64 08-27-2002 09:13 PM

You did a great job, john.eovie, you're at least appreciated by most of the people here. :)

John 08-27-2002 09:16 PM

Quote:

Originally posted by Martin64
You did a great job, john.eovie, you're at least appreciated by most of the people here. :)
Until there's something else someone is after, and then people go back to their old selves. Still, thanks for your kind words.

Link14716 08-27-2002 09:16 PM

Quote:

Originally posted by john.eovie
Excuse me? Have a quick thread through the thread you started, it soon turned into a "let's bash John" event.

I've spend my ENTIRE week's holiday working on this, I've supported this as best as I can. I simply don't have the time for another 60 pages of fun with the arcade hack. So, when I offered to release it free of charge without support, that STILL wasn't good enough. And this is something I never intended to release in the first place!

I'm sick of all the little kids on this forum, so I'm talking the afterlab approach to hacking. I'll do my hacks, and install them, and maybe tell my close friends. It seems that that's all I can get away with without being attacked.

Dude, you have to understand that some people are ignorant morons. I appreciate the testris hack 100%, my members love it, and hell, if you want to release the arcade hack without support, that is 200% enough for me. Just ignore the gay sons of +++++es that whine and cry and moan and +++++.

Martin64 08-27-2002 09:20 PM

Quote:

Originally posted by john.eovie


Until there's something else someone is after, and then people go back to their old selves. Still, thanks for your kind words.

Excuse me? What exactly is this supposed to mean? I sincererly hope that this wasn't aimed at me because I have supported you ever since you released the Tetris hack. If there's a problem with me modyfying your Tetris hack to allow me to add more games and leaderboards then let me know.

If I interpreted your post above wrong, don't blame me because English is not my native language. :)

John 08-27-2002 09:20 PM

Yeah, I'd release it - but without support isn't good enough now, according to most of the morons in the other thread.

You can all rest assured that no-one will see any of my hacks again, I can see why afterlab gave up on public releasing a long time ago.

John 08-27-2002 09:21 PM

Quote:

Originally posted by Martin64


Excuse me? What exactly is this supposed to mean? I sincererly hope that this wasn't aimed at me because I have supported you ever since you released the Tetris hack. If there's a problem with me modyfying your Tetris hack to allow me to add more games and leaderboards then let me know.

If I interpreted your post above wrong, don't blame me because English is not my native language. :)

No, it wasn't aimed at you - it was aimed at the people in the other thread.

Martin64 08-27-2002 09:23 PM

Good, because I'm the one letting Stuwee know about this hack and helping you with the latest security fix. :D

Thanks once again, john! :)


All times are GMT. The time now is 09:34 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.02363 seconds
  • Memory Usage 1,848KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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