vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Arcade - Leader Board (v1.4) (https://vborg.vbsupport.ru/showthread.php?t=76897)

Oblivion Knight 02-22-2005 10:00 PM

Arcade - Leader Board (v1.4)
 
This addon provides you with a Leader Board for v3arcade. Currently, it cannot be used for ibProArcade - if you adapt it, please share the code so that it can be added to the zip. You'll be credited for the work.

Dechevious has written a similar addon to this, but this code has been written from scratch and is far more optimized.. Currently, it is not fully phrased - but then again neither is v3arcade itself. Thanks to DRJ for his contributions toward v1.4. Enjoy!


Version History:
? [high]1.0[/high] - Original mod released.
? [high]1.1[/high] - Cached 2 previously uncached templates.
? [high]1.2[/high] - Query changed, orders count by DESC and userid by ASC.
? [high]1.3[/high] - *CRITICAL UPDATE* - Optimized query, improved performance.
? [high]1.4[/high] - arcade.php code block and arcade_kings_bit template changed.


Please click install if you find this useful.. :)

yoyoyoyo 02-23-2005 12:37 PM

It only took me around 3 minutes to add and it seems to work fine. Thanks!

Creed 02-23-2005 12:46 PM

I'm installing now, but I have had a hard time finding any of the hacks done by Dechevious or anyone else over at www.v3arcade.com :( I really need the a-z navigation hack, as well as the scrolling news hack. If you have any ideas were to find them let me know!

Oblivion Knight 02-23-2005 12:47 PM

http://www.v3arcadegames.com/forums/...splay.php?f=13

I believe the addons are free to all.. :)

Creed 02-23-2005 12:48 PM

Wow, that was quick! I didn't know they had a different site up now...or maybe I was just going to the wrong place ;) THX!!!

Oblivion Knight 02-23-2005 12:52 PM

It's an unofficial v3arcade "fansite". There's a membership fee if you wish to download the games there..

Like I say, I'm fairly sure Dechevious said that the addons are free to all though.

SVTOA 02-23-2005 02:43 PM

Nice work Andy. Quick and easy.

Polo 02-23-2005 03:02 PM

thanks, will do the switch ;)

msimplay 02-23-2005 04:58 PM

installed thank you that worked well :D

DR?@M W?@V?R 02-24-2005 08:30 AM

Nice addon :)

Uncached templates: ARCADE (1)
Uncached templates: arcade_header (1)

Change:

$globaltemplates = array(
'arcade_kings',
'arcade_kings_bit'
);

To:

$globaltemplates = array(
'ARCADE',
'arcade_header',
'arcade_kings',
'arcade_kings_bit'
);

Oblivion Knight 02-24-2005 08:59 AM

Whoops, sorry about that.. :o

I've modified my arcade.php file significantly, and all templates are called at the beginning of my file - so I added that bit of code purely for this release and never tested it. I'll update the zip shortly.


[high][EDIT][/high]
Zip updated.

MrLovellz 02-24-2005 11:45 AM

Done that DR€@M W€@V€R , but what exactly does it do lol ?

Oblivion Knight 02-24-2005 11:49 AM

Quote:

Originally Posted by MrLovellz
Done that DR?@M W?@V?R , but what exactly does it do lol ?

Uncached templates add unnecessary queries to the addon. Instead of performing 7 queries, it runs 9. This has now been fixed in the zip.. :)

M1th 02-24-2005 12:56 PM

Big boards... stay away from this hack, it kills your server.

Oblivion Knight 02-24-2005 03:21 PM

I can't imagine the query being overly intensive, but then again I'm no expert..

My board only has 300 members, and the microstats didn't show anything out of the ordinary.
Page generated in 0.09496593 seconds (42.80% PHP - 57.20% MySQL) with 7 queries

M1th 02-24-2005 03:27 PM

Total Time Spent Playing: 3m 2w 6d 19h 32m 43s
Total Plays: 33458

With around 200+ games.

It put too much pressure on my server, taking about 10 seconds for the results to show up.

Polo 02-24-2005 03:31 PM

Quote:

Originally Posted by M1th
Total Time Spent Playing: 3m 2w 6d 19h 32m 43s
Total Plays: 33458

With around 200+ games.

It put too much pressure on my server, taking about 10 seconds for the results to show up.

can you show us what comes in your footer?

Page generated ....................

M1th 02-24-2005 03:39 PM

Quote:

Originally Posted by Polo
can you show us what comes in your footer?

Page generated ....................

Err... dont have microstats installed and I've removed the hack. Sorry.

Oblivion Knight 02-25-2005 07:33 PM

v1.3 has now been released, which should hopefully fix the issue with running this addon on large boards.. It was sent to M1th for him to test, but I never got a response - it has been tested on 2 other fairly active forums, both with positive results.

M1th 02-25-2005 07:34 PM

Sorry, was busy with things.

I have it installed as well and working great. :)

Good work, Andy!

Oblivion Knight 02-25-2005 07:36 PM

That's good to hear.! :D

M1th, if you want the updated layout (check the new screenshot) - update the 2 added templates.

TTG 02-25-2005 07:58 PM

Thanks for the hack ..
Clicked install

M1th 02-25-2005 08:02 PM

Quote:

Originally Posted by Oblivion Knight
That's good to hear.! :D

M1th, if you want the updated layout (check the new screenshot) - update the 2 added templates.

HTML Code:

<img src="$stylevar[imgdir_arcade]/king$row.gif" alt="" />
Good one, though I'd suggest changing the image src to the above... mostly for those who remote host images. :)

SVTOA 02-26-2005 02:35 AM

Well.. after doing the latest version, now I have 4 uncached templates. Will have to manually edit I guess...

SVTOA 02-26-2005 02:47 AM

Quote:

Originally Posted by Oblivion Knight
I can't imagine the query being overly intensive, but then again I'm no expert..

My board only has 300 members, and the microstats didn't show anything out of the ordinary.
Page generated in 0.09496593 seconds (42.80% PHP - 57.20% MySQL) with 7 queries


After manually editing the latest update, I get no uncached templates and
Page generated in 0.08542895 seconds (91.42% PHP - 8.58% MySQL) with 7 queries.

How come your ratio of php-to-MYSQL is so much different? Isn't 57% MYSQL kind of high???

Oblivion Knight 02-26-2005 06:27 AM

Whoops.! As mentioned earlier in this thread, my arcade.php file is significantly different to the default. All of my templates are cached at the beginning of the file and I added a block of code to the arcade.php file to cater for the default arcade.php file, I just forgot to re-add it in the new version of the zip.. :ermm:

The zip has now been updated.


Quote:

Originally Posted by SVTOA
After manually editing the latest update, I get no uncached templates and
Page generated in 0.08542895 seconds (91.42% PHP - 8.58% MySQL) with 7 queries.

How come your ratio of php-to-MYSQL is so much different? Isn't 57% MYSQL kind of high???

Those statistics were from 1.2.. ;) - It's now running at:
Page generated in 0.04567409 seconds (88.21% PHP - 11.79% MySQL) with 7 queries

Vevina 02-26-2005 01:27 PM

Sweet installed .... Really easy for a blonde too :p

djjeffa 02-26-2005 09:44 PM

Quote:

Originally Posted by M1th
Big boards... stay away from this hack, it kills your server.

question how do you tell what hacks kill your boards and whick dont?




PS great hack installed I have 13,000 members is that big lol

M1th 02-26-2005 09:50 PM

Quote:

Originally Posted by djjeffa
question how do you tell what hacks kill your boards and whick dont?




PS great hack installed I have 13,000 members is that big lol


You needn't worry about this hack anymore. The query has been greatly improved and it'll run good on any board. :)


As for your question, you can install the microstats hack to check the query stats on every page.

djjeffa 02-26-2005 10:04 PM

Quote:

Originally Posted by M1th
You needn't worry about this hack anymore. The query has been greatly improved and it'll run good on any board. :)


As for your question, you can install the microstats hack to check the query stats on every page.

thanks fo rthe info

now to try to solve this other problem but i dont think its from this hack, the leaded list is not right but nor is the post bit here is what i have:
here it says im the champ http://www.djjeffa.com/vb//arcade.ph...=spaceinvaders
but in my profile it says im not http://www.djjeffa.com/vb/arcade.php?do=stats&userid=3
now the thing is I did get the high score in a chalange so do you guys have any ideal why its not showing up?

the screen shoots are here https://vborg.vbsupport.ru/showpost....postcount=3149

Oblivion Knight 02-26-2005 11:28 PM

Quote:

Originally Posted by djjeffa
now to try to solve this other problem but i dont think its from this hack, the leaded list is not right but nor is the post bit here is what i have:
here it says im the champ http://www.djjeffa.com/vb//arcade.ph...=spaceinvaders
but in my profile it says im not http://www.djjeffa.com/vb/arcade.php?do=stats&userid=3
now the thing is I did get the high score in a chalange so do you guys have any ideal why its not showing up?

the screen shoots are here https://vborg.vbsupport.ru/showpost....postcount=3149

If it is only Space Invaders that does this, try removing the game and re-installing it.. It's a strange issue indeed, and I've never come across it before.

Polo 02-27-2005 05:34 AM

thanks for the latest update... the hacks is really promising and stable...

neocorteqz 03-09-2005 02:45 AM

Thanks for the hack, very nice work.

Page generated in 0.13486290 seconds (91.03% PHP - 8.97% MySQL) with 9 queries

one quick question, Are you planning on coding this for non vB pages? I installed webtemplates (https://vborg.vbsupport.ru/showthread.php?t=76422), and can't seem to get it to work right.

http://www.nemesisforums.net/view.php?pg=arcade_leader

Oblivion Knight 03-09-2005 10:48 AM

I don't plan on doing this personally, since I don't have webtemplates installed..

Anyone else is free to adapt it though - and hopefully they'll share the code. :)

neocorteqz 03-09-2005 05:11 PM

Quote:

Originally Posted by Oblivion Knight
I don't plan on doing this personally, since I don't have webtemplates installed..

Anyone else is free to adapt it though - and hopefully they'll share the code. :)

I'll figure it out eventually. I usually just stublem apon things.

I was just wondering if you were possibly going to code it for a non vB page, then all i'd have to do is fill in theblanks. No worries though.. :)

Very Nice work on this. :)

Q-v-n-s-Q 03-10-2005 05:49 PM

GJ, i love it

Polo 03-11-2005 01:18 PM

I installed this mod... the templates are really good, it blends in really well with the whole arcade... good job :)

Vevina 03-12-2005 02:01 PM

is there a way of clearing the Top Scorers on the leader board .. ive set all my games score settings back to Zero but need to clear Top Scorers too ????

Vevina 03-12-2005 02:07 PM

its ok finaly worked it out d'oh!

Chrissicom 03-13-2005 09:56 AM

Quote:

Originally Posted by Oblivion Knight
I can't imagine the query being overly intensive, but then again I'm no expert..

My board only has 300 members, and the microstats didn't show anything out of the ordinary.
Page generated in 0.09496593 seconds (42.80% PHP - 57.20% MySQL) with 7 queries

sweet hack I installed it :-)


All times are GMT. The time now is 10:29 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.01356 seconds
  • Memory Usage 1,820KB
  • 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_html_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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