![]() |
Letter Statistics in Member Profile v1.0
This hack will add several new statistics to your member's profile pages:
- The number of letters all his/her posts contain. - The average number of letters he/she posts per day. - His/her percentage of all letters in all posts in the database. - The average number of letters a post by him/her contains. File Modifications: 1 (member.php) Template Modifications: 1 (getinfo) This hack was tested with vBulletin 2.2.7 and 2.3.0 Release Candidate 3. I'm confident it will work with every version of vBulletin in the 2.2.x branch. Probably even with older versions. Two screenshots of the hack in action are included in the ZIP archive: screenshot1.gif: Plain vBulletin 2.3.0 RC3. screenshot2.gif: My own forums, a heavily modified vBulletin 2.2.7 translated into German (hack's in English, though). Special thanks to Logician for helping with the SQL syntax used in this hack. :) Have fun with it! |
Perfect. Just perfect. Still you could add a link to a demo site.
|
Thanks. :)
Live demo site: http://www.forenplanet.de/member.php...nfo&userid=450 It's German, though. Buchstaben = letters. (Hack's in English; screenshot of plain English vB 2.3.0 RC3 included.) |
I installed it, nice hack.
|
Nice hack m8. I'll install this soon.
|
Lovely idea. I guess this will be server intensive as it breaks down every word and then processes it into a table?
- miSt |
No, not significantly. We have about 120.000 posts in our database, and for a user with 2500 posts it slows down the generation of the profile page by circa 0.2 seconds (according to vBMicrostats in our footer). On a not particularly powerful, shared server.
The MySQL function LENGTH() returns the length of the specified fields contents for all records in the table, SUM() adds those values together and returns the result. So it's a SUM(LENGTH(pagetext)) for the table "post" WHERE userid=X. That's a pretty fast way to do it - and it doesn't require multiple changes to newthread/editpost/newreply and new table fields to do it statically. I'd advice against using the same technique for the postbit, but for the profile pages its good enough. (Yes, that means spaces between words get counted as well. Well, the user had to push the space button, after all. Fair enough, eh? :)) |
Nice hack Install it :pirate:
|
Nice hack, I might use this :)
|
Hey, I like! :D
[high]* dstruct2k clicks install[/high] |
All times are GMT. The time now is 10:59 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|