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

Reply
 
Thread Tools
Reputation Click Tracker Details »»
Reputation Click Tracker
Version: 1.0.1, by tubedogg tubedogg is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 12-11-2004 Last Update: 12-11-2004 Installs: 25
 
No support by the author.

(I couldn't think of a good name for this, so there you go...)

This is a relatively simple hack that adds a box to the User CP showing a user how many reputation clicks he has given in the last 24 hours, and how many more he can give, and it also shows this information in a small graph (using the poll images). [see the screenshot]

It requires you to modify one file, one template, and add one template. Instructions are in the file named INSTALL in the ZIP archive attached to this post.

Questions, post em here. Please do not contact me privately about this hack as it will be ignored.

Version History
1.0.1, 12 December 2004 4:25PM EST:
- Fixed small bug with date display.

1.0.0:
- Initial release.

Show Your Support

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

Comments
  #22  
Old 12-13-2004, 06:28 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One suggestion:

Show the reputation giving power as well.
Reply With Quote
  #23  
Old 12-13-2004, 03:02 PM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure this works correctly? It's not refreshing down to zero on a daily basis (it still holds onto the three reputations I gave out last week (OK, I'm not too generous... LOL)

rich
Reply With Quote
  #24  
Old 12-13-2004, 06:17 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by docvader
Sure this works correctly? It's not refreshing down to zero on a daily basis (it still holds onto the three reputations I gave out last week (OK, I'm not too generous... LOL)

rich
The query looks for up to the last X times you've given in the last 24 hours, where X is the daily limit...

AND dateline >= ".(time()-86400)."

Unless time() is malfunctioning on your server, I can't see any reason why it would show 3 that you gave last week.
Reply With Quote
  #25  
Old 12-13-2004, 06:18 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Erwin
One suggestion:

Show the reputation giving power as well.
Not a bad idea...

I'll be doing an updated version later today or tommorrow that takes this into account, plus the template caching and showing the admin how many times he has given overall.
Reply With Quote
  #26  
Old 12-13-2004, 06:43 PM
docvader's Avatar
docvader docvader is offline
 
Join Date: Dec 2002
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tubedogg
Not a bad idea...

I'll be doing an updated version later today or tommorrow that takes this into account, plus the template caching and showing the admin how many times he has given overall.
Time is ok and functioning on my server, but I'm using Mac OSX, Jaguar 10.2 for my operating system. Not sure if the query is hitting it correctly, nor do I know how to check it, LOL.
Reply With Quote
  #27  
Old 12-13-2004, 08:23 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tubedogg
Not a bad idea...

I'll be doing an updated version later today or tommorrow that takes this into account, plus the template caching and showing the admin how many times he has given overall.
Thanks Tubedogg! :banana:
Reply With Quote
  #28  
Old 12-13-2004, 11:19 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kevin thanks!!!

Now get back to work on Hivemail! :-) (I kid I kid!!)
Reply With Quote
  #29  
Old 12-18-2004, 04:58 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is still not 100% right.

If you exceed the daily limit, the tracker simply says this:

In the last 24 hours, you have given reputation to 15 posters.
You can give reputation to 0 more poster today

In other words, the condition based around $nexttime is not working, it is not displaying the message about when you can give rep again.
Reply With Quote
  #30  
Old 12-18-2004, 05:31 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...fixed this by changing $nexttime != 0 to $nexttime != '0' in the usercp_reptracker template.....

Also noticed the collapse toggle needs fixing as it currently collapses a different table.

In the usercp_reptracker find:
Code:
<tbody id="collapseobj_usercp_forums" style="$vbcollapse[collapseobj_usercp_forums]">
Change to:
Code:
<tbody id="collapseobj_usercp_tracker" style="$vbcollapse[collapseobj_usercp_tracker]">
Also find code:
Code:
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_forums')">
Change to:
Code:
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_tracker')">
Reply With Quote
  #31  
Old 12-18-2004, 10:18 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
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 06:40 AM.


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.05227 seconds
  • Memory Usage 2,307KB
  • 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
  • (4)bbcode_code
  • (4)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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