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)
-   -   Total Members (Registrations) Hack (https://vborg.vbsupport.ru/showthread.php?t=54454)

Kaelon 06-22-2003 02:25 PM

Xiphoid:

Actually, you need to run the value through the number_format parcer, otherwise, it won't properly display large numbers (> 999).

Cheers,
Kaelon

Nitesh 06-23-2003 03:24 PM

thank you xiphoid, works fine. Only problem is that it doesnt display the comma ',' but I can live without that lol

Floris 06-24-2003 06:36 AM

Kaelon, it doesn't ?
I am nearing 1000 registrations, so we will find out :)

Kaelon 06-24-2003 11:03 AM

Quote:

Today at 04:36 AM xiphoid said this in Post #23
Kaelon, it doesn't ?
I am nearing 1000 registrations, so we will find out :)

Hi, Xiphoid,

Nope - you need to run it through the number_format parser in order to have it properly add commas for text display of the userid value, otherwise, it'll simply show up as a numerical string completely different from your other value strings.

On a totally different note, I just wanted to let you know that I visited your forum and it looks like vB3 handles user visits differently; I was visiting it and it said that there were 0 members and 0 guests online; I had to refresh a couple of times before the system actually picked me up. I'm guessing deferred guestvisits, a la Jujubee's system?

Kaelon

Flogger 06-29-2003 03:44 PM

great hack

snakes1100 06-29-2003 05:38 PM

Well, for our board it is a nice hack, a big thank you also.

Server load didn't rise either that i can see.

Kaelon 06-30-2003 01:39 PM

Glad that it works well for you! Since there are no added queries, you'll find that there's no shift in performance. :)

Kaelon

Ludelover 07-19-2003 08:33 PM

How would you do the total posts & total threads for the message board? If you were to update the counters would that make this not work?

wez 07-22-2003 12:48 PM

very good 10/10

Kaelon 07-28-2003 09:45 PM

Quote:

How would you do the total posts & total threads for the message board? If you were to update the counters would that make this not work?
Total Posts & Total Threads for the message board are already included, but admittedly, you point out a good situation - it only shows the current total posts and current total threads that still exist on the forum (active). Regrettably, you'd have to add two more queries to forumhome to get the latestthreadid and latestpostid - and that makes for a not-so-great hack.

That being said, others have done this before ("Thread Statistics Hacks on Forumhome"), but I advise against using those hacks because only Total Users has already been queried in the stock vBulletin install (when it shows you the newest member); you'd have to do two more unique queries for latest thread and latest post. Not advisable.

Glad that everyone enjoys this relatively easy/simple hack.


All times are GMT. The time now is 06:26 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.01900 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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