![]() |
Posts Made by User Over the Past Week and PPD Trend
[ Feature Description ]
While I was taking a shower I thought it would be pretty cool to display how many posts someone made over the past 7 days (week) and show how active the user was over that period of time compared to normal. The posts made over the past 7 days is pretty much self explanatory but let me explain the trend part. Say your current posts per day is 100. Over the past week you made 140 posts making the ppd average for the past 7 days 20. Your ppd trend is -80 posts per day for the past 7 days. If you don't post at all that week, and your ppd is 100, your trend will be -100. I thought it was a clever way to show how active the user was over the past week. The query runs pretty fast even on my database of over 700k posts. Only one block of code to add to member.php and one template to edit! [ What you need to modify/add ] File to modify: member.php (1 time) Templates to modify: getinfo Templates to add: none [ Tested on ] vBulletin version 2.2.6 (should work on any vB 2+) [ Example ] http://www.gamingforce.com/forums/me...fo&userid=2262 Enjoy, and as always, comments are appreciated! |
Cool!:)
Satan |
Wow your forums are mega cool!!
|
If you don't already have an index on dateline (post table), one might speed up the query.
|
Good job, gamingforce. I'll be planning to install this onto my forums.
|
I don't suppose anybody could post of a picture of what this looks like, unless it's really simple. Maybe even a text version..:p
Anyways, it sounds cool, I'll defiantly have to add it :D *clicks install* |
@Gamingforce
Your forum looks nice. Can you tell me, which hacks you used in the member bios? Thanks! |
I need some help, that second step has me baffled:
Quote:
What do I find to replace? What do I do? Some advice? THanks. -Kenny |
This is my getinfo template, can someone just add it in there for me? lol
Quote:
|
Keeny in get info just add this as an example
Latest Posts From $userinfo[username]<br>Who has made $postsweek posts within last 7 Days($ppdtrend posts per day) |
All times are GMT. The time now is 12:35 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:
|