![]() |
Reputation Click Tracker
(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. |
Wow. Am I the first? Gosh...
Installed, in a matter of minutes, very easily. Works great! Thanks. rich russbo.com |
Quote:
|
is there anyway to put this in your postbit? my users would use the rep function more if they see how much they have to give from the forum displays. or can you put it in the navbar area?
|
nice work :)
|
|
Thanks for the good work!
|
seems to work fine, my members will love you for this- they know and care more about rep than i do!
|
Nice one ;)
|
well done! Well done indeed!
|
A bug? The following was reported by one our members who had exceeded their daily limit...
Quote:
|
Just tested this myself (gave reputation to 10 users) and I'm seeing the same message. Any ideas?
|
Quote:
In usercp.php find this line: $earliest = $check['dateline']; Move it right below $sofar++; so it's above the }, i.e. Code:
$sofar++; Code:
$nexttime = date($vboptions['dateformat'].' '.$vboptions['timeformat'], ($check['dateline']+86400)); Code:
$nexttime = vbdate($vboptions['dateformat'].' '.$vboptions['timeformat'], ($earliest+86400)); |
Wow that was very quick :D Implemented those changes and it works perfectly....... thanks alot. Very useful hack.
|
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?
|
Quote:
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. |
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?
|
This is great. :) Thanks!
|
Correct this if i'm wrong:
HTML Code:
<if condition="$bbusergroupid = 6"> HTML Code:
<if condition="$bbusergroupid != 6"> |
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:
PHP Code:
|
One suggestion:
Show the reputation giving power as well. :) |
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 |
Quote:
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. |
Quote:
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. |
Quote:
|
Quote:
|
Kevin thanks!!!
Now get back to work on Hivemail! :-) (I kid I kid!!) |
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. |
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]"> Code:
<tbody id="collapseobj_usercp_tracker" style="$vbcollapse[collapseobj_usercp_tracker]"> Code:
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_forums')"> Code:
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_tracker')"> |
Thanks!
|
nice work.. installed
|
Quote:
|
/me clicks install.
Very useful hack. Great work. |
installed! it looks and works great! thanks.
|
I still get this message:
In the last 24 hours, you have given reputation to 0 posters. This is the daily limit, so you may not give reputation again until 01-02-1970 01:00 AM. |
My users can't see the poll images... :(
|
For some reason in IE only the USERCP page is stretched really wide after installing this hack and the Display reputation giving hack. Don't know which one caused the problem. Firefox and Opera work fine, IE is the only one with the problem. Any ideas?
|
I just realized it's not only stretched, it doesn't show who gave the reputation or the comment.
|
Quote:
|
coul'd somebody help me with that strange thing in graf ? vb 3,0,6
|
All times are GMT. The time now is 04:43 PM. |
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:
|