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
  #12  
Old 12-12-2004, 07:12 PM
nighteyes's Avatar
nighteyes nighteyes is offline
 
Join Date: Oct 2001
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A bug? The following was reported by one our members who had exceeded their daily limit...

Quote:
In the last 24 hours, you have given reputation to 10 posters.
This is the daily limit, so you may not give reputation again until 01-02-1970 01:00 AM.
Reply With Quote
  #13  
Old 12-12-2004, 07:22 PM
nighteyes's Avatar
nighteyes nighteyes is offline
 
Join Date: Oct 2001
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just tested this myself (gave reputation to 10 users) and I'm seeing the same message. Any ideas?
Reply With Quote
  #14  
Old 12-12-2004, 07:25 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 nighteyes
A bug? The following was reported by one our members who had exceeded their daily limit...
Easy fix.

In usercp.php find this line:
$earliest = $check['dateline'];

Move it right below $sofar++; so it's above the }, i.e.
Code:
		$sofar++;
		$earliest = $check['dateline'];
	}
Change this line:
Code:
		$nexttime = date($vboptions['dateformat'].' '.$vboptions['timeformat'], ($check['dateline']+86400));
To this:
Code:
		$nexttime = vbdate($vboptions['dateformat'].' '.$vboptions['timeformat'], ($earliest+86400));
ZIP updated to v1.0.1.
Reply With Quote
  #15  
Old 12-12-2004, 07:34 PM
nighteyes's Avatar
nighteyes nighteyes is offline
 
Join Date: Oct 2001
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow that was very quick Implemented those changes and it works perfectly....... thanks alot. Very useful hack.
Reply With Quote
  #16  
Old 12-12-2004, 07:37 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the fix tubedogg, but I have a question to ask ... isn't this true that admins have no restrictions to giving rep points? If so, then can there be a condition where if this is true, then all that shows up for admins is how many times they have given rep points?
Reply With Quote
  #17  
Old 12-12-2004, 08:24 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 Bison
Thanks for the fix tubedogg, but I have a question to ask ... isn't this true that admins have no restrictions to giving rep points? If so, then can there be a condition where if this is true, then all that shows up for admins is how many times they have given rep points?
Yes you're right...admins have no limit. However determining how many times an admin has given reputation could put a lot of load on the server, if the admin has given a lot.

A condition could be used to say "you have no limit", but I'm not sure I'd want to determine the number of times reputation has been given for the above reason.
Reply With Quote
  #18  
Old 12-12-2004, 08:28 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Under the current situation, an admin is shown that he has only X amount of times that he can give Rep points. How could I fix it to show that there's no limit?
Reply With Quote
  #19  
Old 12-12-2004, 08:33 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great. Thanks!
Reply With Quote
  #20  
Old 12-12-2004, 08:48 PM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Correct this if i'm wrong:

HTML Code:
<if condition="$bbusergroupid = 6">

		<td align="left" valign="top" class="alt1" width="50%">
			In the last 24 hours, you have given reputation to <b>$sofar</b> posters.<br />
			There is no daily limit for <b>admins</b>, so you may give reputation as often as you like.</td>
</if>
For non-admins:

HTML Code:
<if condition="$bbusergroupid != 6">
		<td align="left" valign="top" class="alt1" width="50%">
			In the last 24 hours, you have given reputation to <b>$sofar</b> posters.<br />
			<if condition="$nexttime != 0">
			This is the daily limit, so you may not give reputation again until $nexttime.
			<else />
			You can give reputation to <b>$clicksremain</b> more poster<if condition="$clicksremain > 1">s</if> today.</td>
			</if>
Reply With Quote
  #21  
Old 12-13-2004, 06:27 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You might want to add the 'usercp_reptracker' template to the templatecache of usercp.php to save that 1 query.

In usercp.php, find:

PHP Code:
    'usercp_reputationbits' 
REPLACE with:

PHP Code:
    'usercp_reputationbits',
    
'usercp_reptracker' 
Done!
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:21 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.07066 seconds
  • Memory Usage 2,320KB
  • Queries Executed 27 (?)
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
  • (3)bbcode_code
  • (2)bbcode_html
  • (2)bbcode_php
  • (3)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
  • (3)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete