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
Posts Made by User Over the Past Week and PPD Trend Details »»
Posts Made by User Over the Past Week and PPD Trend
Version: 1.00, by Gamingforce Gamingforce is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-31-2002 Last Update: Never Installs: 13
 
No support by the author.

[ 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!

Show Your Support

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

Comments
  #12  
Old 08-01-2002, 07:01 PM
kenny@ecn kenny@ecn is offline
 
Join Date: Apr 2002
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol, where how? can you just add it into that code I put in there?
Reply With Quote
  #13  
Old 08-01-2002, 07:30 PM
Mr_P Mr_P is offline
 
Join Date: Jan 2002
Location: Uk.
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mr_P

Latest Posts From $userinfo[username]<br>Who has made $postsweek posts within last 7 Days($ppdtrend posts per day)

what i have in quotes above copy the full line into your getinfo template in admin cp

then go to a user profile and u will see it has filled the name and post(s) in for u.

now delete it and follow the orginal hack now as its dead easy to install this one
Reply With Quote
  #14  
Old 08-01-2002, 07:35 PM
kenny@ecn kenny@ecn is offline
 
Join Date: Apr 2002
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

should i replace everything in my getinfo template with that stuff?
Reply With Quote
  #15  
Old 08-01-2002, 07:38 PM
Mr_P Mr_P is offline
 
Join Date: Jan 2002
Location: Uk.
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no u see this bit at end of your getinfo

<br>

<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td align="center"><smallfont><b>
Administrative Options: <a href="moderator.php?s=$session[sessionhash]&action=useroptions&userid=$userinfo[userid]">User Options</a>
</b></smallfont></td>
</tr>
</table>

$footer

</body>
</html>

ok i have added it for u now put it in get info and view a profile - u will kick yourself when u see how easy it is

<br>
Latest Posts From $userinfo[username]<br>Who has made $postsweek posts within last 7 Days($ppdtrend posts per day)

<table cellpadding="2" cellspacing="0" border="0" width="95%" align="center">
<tr>
<td align="center"><smallfont><b>
Administrative Options: <a href="moderator.php?s=$session[sessionhash]&action=useroptions&userid=$userinfo[userid]">User Options</a>
</b></smallfont></td>
</tr>
</table>

$footer

</body>
</html>
Reply With Quote
  #16  
Old 08-01-2002, 09:52 PM
tacoX tacoX is offline
 
Join Date: Feb 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That 'bios' looks great! One of the best so far that I have seen!
Reply With Quote
  #17  
Old 08-01-2002, 10:53 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tacoX your signatures are going to get manipulated by Firefly if you don't remove 2 out of the 3, since you can only have 1 image signature. :cheeky:

As for this hack and what it does, I now understand

Those of you who keep buggin Gamingforce about what hacks he uses in his postbit, don't because that is not what this thread is meant for.
Reply With Quote
  #18  
Old 08-02-2002, 07:46 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good guess...
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 11:18 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.04174 seconds
  • Memory Usage 2,271KB
  • Queries Executed 22 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete