Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
Letters statistics On your forum home Details »»
Letters statistics On your forum home
Version: 1.00, by zajako zajako is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-18-2003 Last Update: Never Installs: 5
 
No support by the author.

This hack is based off of the one for member profiles, which is located here.

This hack displays the total number of keystrokes in all posts on your forums. And acording to Sho it should not effect page loads much.

There is one file edit and 1 template edit.

and can be done in less than a minute.

Enjoy!

Show Your Support

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

Comments
  #2  
Old 03-19-2003, 01:01 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as i can see, this will go through all posts on your board and sum up the letters.
on a small board you're right, it wouldn't hurt, but if you have a lot of posts, this would be extremly harmfull..

enable debug mode in config.php then run index.php with &showqueries=1&explain=1 and you'll see how much time this query needs.

i won't use that hack on a great board, from what i can see, but if you use a sort of cache (like the todays birthday just a bit more complicated) it could be an intresting hack

in conclusion: it's no offend, but i think the negative aspect should be shown, too
Reply With Quote
  #3  
Old 03-19-2003, 01:20 PM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the post count on forum home and thread count on forum home go through every post and thread as well.

This one does the small task of counting the letters in the text, it should not be too much on server load.

Now as for cached version i could create a version that runs this query once and stores it in the db and then adds to this count every time a post is made similar to how post counts for members work then make a line in th eadmin panel to update the counters for this. However currently i don't have the time fo rthat, Im currently trying to finsih up my RCS (Rpg Creation System).

So maybe in the future i might update it to that.
Reply With Quote
  #4  
Old 03-19-2003, 01:28 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nope there is a difference.

the post count on forumhome has just to look how much rows there are, that's very fast, the lettercounter has to visit each row and sums up the postlength.

it's like the combination of the 3 pm queries into one.
i've seen on several tests, when you have a lot of pm's the three queries are much faster than the one, because the one query version has to go through each row for the if clauses.
Reply With Quote
  #5  
Old 03-19-2003, 01:48 PM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well then if your a bigger board you can try this till it becomes a problem, and if your a small board you should have no problem. My board has thsese stats since december:

Members: 294, Threads: 1,080, Posts: 19,315 Letters:5,181,800

And i have no problem with lodaing times on 56k.
Yes my board is relatively small so i can't tell you how it would be for large boards.
However the choice is yours and if it produces non desirable results feel free to remove it.

I may in the future produce a version that uses the database and updates it on every post so that the number is a quick query. Though don't wait up for this cause it may take some time to make since i am very busy on my project.
Reply With Quote
  #6  
Old 03-19-2003, 02:42 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i felt a bit bored an worked a bit on your hack.

this version here works with a daily cache, and should fit everyones needs, even on larger boards
Reply With Quote
  #7  
Old 03-19-2003, 02:47 PM
Sho Sho is offline
 
Join Date: Nov 2001
Location: Berlin, Germany
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, Xenon's version might be the better one for forum home. My completely dynamical one was designed for the member's profile pages, where load times are (imo) not much of an issue.
Reply With Quote
  #8  
Old 03-19-2003, 09:39 PM
joeboo's Avatar
joeboo joeboo is offline
 
Join Date: Jun 2002
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can easily do this without hacking, using templates, like the phpinlcude template. But nevertheless, its okay
Reply With Quote
  #9  
Old 03-19-2003, 09:41 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I released this at vBT a long time ago. If not this exact one, then one that counted the number of "words" posted at your forum.
Reply With Quote
  #10  
Old 03-20-2003, 02:54 PM
zajako's Avatar
zajako zajako is offline
 
Join Date: Jan 2002
Location: a place not to far away
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i posted one that count the amout of times your name is said as well.

Anywho, thanks xenon for optimizeing it.
Reply With Quote
Reply

Thread Tools

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 05:00 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.07649 seconds
  • Memory Usage 2,280KB
  • Queries Executed 25 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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