Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by NickyNet NickyNet is offline
Developer Last Online: Mar 2015 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 05-15-2001 Last Update: Never Installs: 0
 
No support by the author.

Quote:
tubedogg on 05.14.2001

The problem here is the installation of the new code, which reset the stats. Wait three days and look at it each day. It should start recording correctly. If it does not, then please come back and show me the stats for each day.
thread:
http://www.vbulletin.com/forum/showt...0&pagenumber=3
for what reason is that thread closed by Kier ?
or the hack will not be "supported" any more ?
should it be removed from the forum ?

@tubedogg:

after 3 days, there is the same problem with topposter: allways showing the entries from yesterday.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-16-2001, 05:35 AM
Angelus_au
Guest
 
Posts: n/a
Default

read the first post.... its been withdrawn due to to many bugs, theres un-installation instructions on it
Reply With Quote
  #3  
Old 05-16-2001, 12:10 PM
Froschie
Guest
 
Posts: n/a
Default

I have modified the Top Poster script now it works at my Forum (http://ra.tribes.de/vb)
the fault was that there is an "if" Clause where it compares the Dates from $today and $toppostall (or so) and if this values were "!=" it requests the Stats from yesterday
but the Days are not equal on every new day !!! so it writes new stats every day
so I have coded another "if" Clause an in the functions.php I have rewritten the toppostall Funtion into two seperate functions one for posts and one for threads
now it works great

but when tubedogg don?t want to support his script anymore I will not post the modifications
Reply With Quote
  #4  
Old 05-16-2001, 12:50 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really didn't want to get involved here, but...

Quote:
Originally posted by Froschie
the fault was that there is an "if" Clause where it compares the Dates from $today and $toppostall (or so) and if this values were "!=" it requests the Stats from yesterday
but the Days are not equal on every new day !!! so it writes new stats every day
This isn't accurate. Here's a basic idea of how it worked:

During installation, it got stats from yesterday and for so far today and wrote them to a "cache" (a hidden template).
Every time that index.php is called, it compares the date today to the date the "cache" was last updated. If it was not updated today, then it needs to be updated, so then it the ran the gettopall and gettop24 functions. (The gettoptoday function runs every time index.php is run because it's a running total of today and needs to be up-to-date.) The gettopall function would then compare yesterday's stats to the stats in the cache. If yesterday's number of posts was greater than in the "cache", it would rewrite that part of the cache, and same for the thread.

So you see the date comparison had little to do with anything except to see if the cache was up to date.

That being said, Froschie if you wish you may release the rewritten hack as your own, however I will not take any responsibility for it nor will I support it.
Reply With Quote
  #5  
Old 05-16-2001, 04:55 PM
NickyNet NickyNet is offline
 
Join Date: Oct 2001
Location: Vienna, .at
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Froschie
I have modified the Top Poster script now it works at my Forum (http://ra.tribes.de/vb)
the fault was that there is an "if" Clause where it compares the Dates from $today and $toppostall (or so) and if this values were "!=" it requests the Stats from yesterday
but the Days are not equal on every new day !!! so it writes new stats every day
so I have coded another "if" Clause an in the functions.php I have rewritten the toppostall Funtion into two seperate functions one for posts and one for threads
now it works great

but when tubedogg don?t want to support his script anymore I will not post the modifications
hi Froschie,

well i think tubedogg's hack was great and i will to use it if you post your modification. if you wan't to make it public you can email me .

thx
nicky
Reply With Quote
  #6  
Old 06-04-2001, 11:25 AM
AnnaFan
Guest
 
Posts: n/a
Default

Hi,

I think this hack does not work with 2.0.0 final. In which files can I include this hack?
Reply With Quote
  #7  
Old 06-05-2001, 02:16 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I withdrew this hack and am no longer supporting it. It looks like you registered after I discontinued this hack and therefore if you have it it is likely not my version, which I will not support in any case.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:31 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03902 seconds
  • Memory Usage 2,253KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (4)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete