vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Countdown to posts total (https://vborg.vbsupport.ru/showthread.php?t=264533)

dm_fan 06-01-2011 12:14 AM

Countdown to posts total
 
Hi All
I have a forums where the total posts will be crossing 2,000,000 in a few months. I want to award the person who posts the 2 millionth post a prize. But I'm not sure how I can identify the exact the 2 millionth post. I was hoping there was a mod that would allow me to find the post but haven't had any luck in my search.

Any suggestions?

Thanks

Zachery 06-01-2011 12:54 AM

Chance are you're already over the limit.

What is the highest postid in your database now, what is the current post count on your forum say?

dm_fan 06-01-2011 04:54 PM

The main page of our forums shows Posts: 1,880,638 under statistics.
A post that was posted a few minutes ago was numbered 4332588.

What limit are you refering to?

Thanks

Zachery 06-01-2011 07:10 PM

Everytime a post is made, it gets a unique id, that counts upwards sequetially.

If you've deleted 220+k posts, you've already gone over the 2 million mark. But, since your current postid shows 4,332,558. That means you've deleted 2+ million posts over the corse of the sites life.

Assuming no more posts get deleted, 4451920 will be the 2 millionth post.

dm_fan 06-01-2011 11:30 PM

Thanks
That makes sense.
There will likely be a number of posts deleted between now and when we reach 2 mil so I'll probably have to recalculate a day or two before we cross the line.

You mentioned a limit earlier. Can you explain? I just don't want to be surprised by a sudden DB crash because we exceeded a limit I wasn't aware of. Our posts table has 1932552 records at the moment.

Zachery 06-02-2011 11:22 PM

Over the limit, just me being odd and saying you've already gone over 2 million posts in the postid table.

dm_fan 06-03-2011 10:11 PM

Quote:

Originally Posted by Zachery (Post 2202873)
Over the limit, just me being odd and saying you've already gone over 2 million posts in the postid table.

Got it
Thanks

BirdOPrey5 06-04-2011 05:13 PM

I have a mod that puts a goal and progress bar on the forum index:
https://vborg.vbsupport.ru/showthread.php?t=255898

But there's no way to know for sure that is the 2 millionth post because as was explained posts are constantly getting deleted.

If you edit your postbit (or postbit_legacy) template, find: $post[message]

Right above or below it put:

Code:

<if condition="$post[postid] == 4451920">
This is the 2 Millionth Post!! <br />
</if>

*That's the number calculated by zachery, adjust it to your needs.

This will put a note in your 2 millionth post so someone will know as soon as they make it. Tell them to contact you if they see the message.


All times are GMT. The time now is 06:40 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.01148 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete