PDA

View Full Version : Miscellaneous Hacks - Reputation Report


aggiefan
06-27-2008, 10:00 PM
Reputation Report 1.1:

ABOUT THIS PRODUCT:
Users on my VBulletin board can see reputation received in their USERCP. However, we only limit the results to 10 for a "clean" look. Past the 10, the users can't see who gave them rep. I created this Reputation Report in order to show them who's given them reputation, how many times, and how much. It also displays who's given you negative rep and how many times.




FEATURES:
Uses vBulletin easy Product installer/updater/uninstaller
User can see only their rep and what's been given to them -- nobody else's
Easy installation (2 steps)
Report is user customizable meaning...
User can choose to view positive or negative reputation received
User can limit the users displayed on their list - ALL, 25 or 50
User can see how much rep they received in their last x posts
Excludes Rep where the rep value was zero
Clicking on Rep Score will show you all rep given from that user that makes up that value. Includes Thread Title (with link to post), date, and comments.
Smilies and such format correctly on the comments
ADMINCP Templates are grouped in a template group called "REPUTATION REPORT"
Uses Plugins
Automatically inserts navbar link to "REPUTATION REPORT" under QuicklinksINSTALLATION INFORMATION:
Files edited: 0
Templates edited: 0
Files to upload: 2
Time to install: 1 minute maxUPDATES:
Added plugin to show rep report in USERCP underneath rep display.REV 1.2 (Jun 29, 2008):
Removed pop up window when clicking on individual score
Added option to filter by BOTH positive and negative rep
Individual rep screen now shows green/red bars (or however your rep system is) to indicate if the rep was positive or not.REV 1.3 (August 28, 2008):

Included corrections/enhancements by eviltechie
https://vborg.vbsupport.ru/showpost.php?p=1608681&postcount=28ABOUT THE PRODUCT:
I welcome suggestions for improving the product and will gladly integrate changes as needed. This has been tested and is working on my board of 1500+ registered users. Feedback about how it works on larger boards is welcome.

Please post your comments or suggestions for this product.
Please click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=183827)if you installed this product.
Nominate for MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=183827&type=1) if you like it.




SCREENSHOTS:
Picture 1 - Standard Rep Report with Filter at the top






Picture 2 - Negative Rep Report filtered by last 10 posts (showing message where there is no rep)


Picture 3 - Unfiltered Negative Rep showing it does work :)


Picture 4 - Clicked on Rep Points to see rep detail

aggiefan
06-28-2008, 08:04 PM
Updates:
6/28/08 - Added a new plugin (Rep Report Show in USER CP (http://aggiefans.com/forums/admincp/plugin.php?do=edit&pluginid=1143)) that will show a link to the Reputation Report under the USERCP Rep display.

suae
06-28-2008, 09:38 PM
thanx man

but u have to edit the name of php file

coz u write ( Repreport ) not ( repreport )

and when i try to have the rep for last 20 or 25 posts .. it give me all rep from all members !

aggiefan
06-28-2008, 10:12 PM
I can fix the name, that shouldn't be causing you any problems though.

Does it not filter to your last 20 or 25 posts on both the positive and negative rep or just on one? I just uninstalled and reinstalled the product and both mine seem to filter correctly.

Can anybody else validate it's not working for them?

Jase2
06-28-2008, 10:15 PM
Reserved (mainlyl because everybody else does it)

Posts are usually reserved by coders incase they want to add FAQ's, ect into the second post. :)

Anyway, looks good! Will look into it.

aggiefan
06-28-2008, 10:16 PM
Posts are usually reserved by coders incase they want to add FAQ's, ect into the second post. :)

Anyway, looks good! Will look into it.
Thanks. If I see a recurring question or issue, I'll post about it there. :)

aggiefan
06-28-2008, 10:18 PM
went ahead and renamed Repreport.php to repreport.php and also renamed the .xml to repreport.xml just for good measure. Reposted zip file. :)

TimberFloorAu
06-28-2008, 10:46 PM
Like the idea.

Can it be configured, to NOT have navbar link, but usercp link instead.

We limit our members rep to (last 10 received )

But are being asked how they can view the lot...

This sounds ideal.

But prefer the link from within usercp ( perhaps in Stats )

aggiefan
06-29-2008, 12:40 AM
Like the idea.

Can it be configured, to NOT have navbar link, but usercp link instead.

We limit our members rep to (last 10 received )

But are being asked how they can view the lot...

This sounds ideal.

But prefer the link from within usercp ( perhaps in Stats )
You can turn the navbar link off by disabling the plugin:

1) Go to Plugins & Products
2) Choose Plugin Manager
3) Find the product REPUTATION REPORT
4) Uncheck the Reputation Report Navbar plugin
5) Choose "Save Active Status" at the bottom.

I haven't looked into how to integrate it into the USERCP. I'll look at that and see if I can find a way for you to accomplish.

aggiefan
06-29-2008, 01:02 AM
Do you mean in the member.php or in the usercp.php? I didn't see a "stats" under USERCP, but see it if you browse somebody else's profile (which is member.php in the url).

Considering you can only see your own reputation on this report, I'm assuming you'd want it near/around the rep you see on your own USERCP (like below your 10 displayed rep points).

I added a new plugin which will show a link under the USERCP reputation section (see screenshot). You can adjust the wording as needed by editing the plugin. I took a screenshot of what it will make it look like in the USERCP and attached it to this post.

This what you need? If so, redownload the XML file and import it again to get the new plugin.

aggiefan
06-29-2008, 02:57 AM
I have added a few more tweaks (not yet posted). I have added another option to show "both" rep at once, not just positive and negative.

I also have the positive/negative rep image next to the rep in the individual report -- similar to what you see in the USERCP (green bar/red bar).

I will post these changes tomorrow under version 1.2 after waiting to see if there's any other enhancements that are requested.

suae
06-29-2008, 08:22 AM
see this problem also

https://vborg.vbsupport.ru/

the blue footer bar ..

TimberFloorAu
06-29-2008, 09:27 AM
Do you mean in the member.php or in the usercp.php? I didn't see a "stats" under USERCP, but see it if you browse somebody else's profile (which is member.php in the url).

Considering you can only see your own reputation on this report, I'm assuming you'd want it near/around the rep you see on your own USERCP (like below your 10 displayed rep points).

I added a new plugin which will show a link under the USERCP reputation section (see screenshot). You can adjust the wording as needed by editing the plugin. I took a screenshot of what it will make it look like in the USERCP and attached it to this post.

This what you need? If so, redownload the XML file and import it again to get the new plugin.

THAT B THE 1 !! ty :)

will download ASAP

aggiefan
06-29-2008, 11:17 AM
see this problem also

http://img179.imageshack.us/img179/3293/reprg9.jpg

the blue footer bar ..

That blue footer bar came from this install? Do you normally have a footer on your other pages?

chatzworld
06-29-2008, 11:35 AM
where is the .php file?

its not on this mod ?

aggiefan
06-29-2008, 11:49 AM
You're right...not sure what happened to the attachment. I'll re-upload it now.

aggiefan
06-29-2008, 11:52 AM
File was reposted. Screenshots have been updated to include the 1.2 changes.

chatzworld
06-29-2008, 12:05 PM
thanks working fine now :)

suae
06-29-2008, 04:09 PM
That blue footer bar came from this install? Do you normally have a footer on your other pages?

ya i normally have it in other pages

but in this page i don't know why it looks like that !! too long ;)

aggiefan
06-30-2008, 01:38 AM
I still don't understand how this product could have affected the length of your footer. Anybody else that installed it seeing a similar problem?

TimberFloorAu
06-30-2008, 02:38 AM
Do you offer a brand free version of this.

Also a test account so that we may see it working?

Regards Ozzy

aggiefan
06-30-2008, 10:49 AM
I can accomodate a brand free version if you'd like to make a small donation.

aggiefan
06-30-2008, 11:33 AM
Also a test account so that we may see it working?


I have sent a PM with login information for the test account. If anybody else is interested in seeing a "demo", PM me and I'll get you the information.

TimberFloorAu
07-01-2008, 08:44 PM
Apologies, because I have been conversing with you in PM, i forgot to post here also.

Top fella AGGIE.

Many many thanks for your messages, and answering questions.

:up::up::up:

aggiefan
07-03-2008, 11:54 PM
15 installs so far. Not bad. Was hoping for more.

aggiefan
07-26-2008, 02:17 PM
It's been out for a month with no complaints -- I'm guessing no bugs or issues...great!

TilkiBey
07-27-2008, 01:14 PM
good hack
installed ;)

but, i cannot see link on usercp
i can see only Quick Links

eviltechie
08-28-2008, 02:51 AM
I like the idea of this mod. I was actually thinking I'd have to write it myself, but you saved me some work. :)

That said, I did notice a few problems with it.

1. The repreport.php file is missing quite a few instances of TABLE_PREFIX. This caused errors until I fixed them. I've attached a fixed version of the file with full TABLE_PREFIX'ing.

2. The templates had some bugs. Missing closing </form> tags. Extra </table> closing tags. Line breaks in weird places, etc. Below are my modified versions...in case anyone needs them.

RepReport
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase> - Reputation Report</title>
$headinclude
</head>
<body>
$header
$navbar
<!-- main -->

<form name="vbform" action="repreport.php?do=rank&rb=$rb&mu=$mu">
<input type="hidden" value="rank" name="do" />
<input type="hidden" value="submit" name="action" />
<input type="hidden" value="$rb" name="rb" />
<input type="hidden" value="$mu" name="mu" />

<table class='tborder' cellpadding='$stylevar[cellpadding]' cellspacing='$stylevar[cellspacing]' border='0' width='80%' align='center'>
<tr align='center'>
<td class='thead'><div class="smallfont"><b><center>RANKED BY</b></center></center></div></td>
<if condition="$rb == ''">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=1&mu=$mu&posts=$post><center><b>Positive Rep</b></a></center></div></td></if>
<if condition="$rb == '1'">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=1&mu=$mu&posts=$post><center><b>Positive Rep</b></a></center></div></td></if>
<if condition="$rb != ''">
<if condition="$rb != '1'">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=1&mu=$mu&posts=$post><center>Positive Rep</a></center></div></td></if></if>
<if condition="$rb== '2'">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=2&mu=$mu&posts=$post><center><b>Negative Rep</b></a></center></div></td></if>
<if condition="$rb != '2'">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=2&mu=$mu&posts=$post><center>Negative Rep</a></center></div></td></if>
<if condition="$rb== '3'">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=3&mu=$mu&posts=$post><center><b>Both</b></a></center></div></td></if>
<if condition="$rb != '3'">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=3&mu=$mu&posts=$post><center>Both</a></center></div></td></if>
</tr>

<tr align='center'>
<td class='thead'><div class="smallfont"><b><center>MAX USERS LISTED</b></center></center></div></td>
<if condition="$mu == ''">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=$rb&mu=1&posts=$post><center><b>All Users</b></a></center></div></td></if>
<if condition="$mu == '1'">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=$rb&mu=1&posts=$post><center><b>All Users</b></a></center></div></td></if>
<if condition="$mu != ''">
<if condition="$mu != '1'">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=$rb&mu=1&posts=$post><center>All Users</a></center></div></td></if></if>
<if condition="$mu == '2'">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=$rb&mu=2&posts=$post><center><b>25</b></a></center></div></td></if>
<if condition="$mu != '2'">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=$rb&mu=2&posts=$post><center>25</a></center></div></td></if>
<if condition="$mu== '3'">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=$rb&mu=3&posts=$post><center><b>50</b></a></center></div></td></if>
<if condition="$mu != '3'">
<td class='tcat'><div class="smallfont"><a href=repreport.php?do=rank&rb=$rb&mu=3&posts=$post><center>50</a></center></div></td></if>
</tr>

<tr align='center'>
<td class='thead'><div class="smallfont"><b>TIME FRAME<b></div></td>
<td class='tcat' colspan='3'><div class="smallfont">View Rep from last&nbsp;<INPUT TYPE="text" SIZE="3" NAME="posts" value="$post" >&nbsp;posts&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="Submit" name="submit" style="font-family: Verdana; font-size: 10pt" class="button" /></div>
</td>
</tr>
</table>


<br />


<table class='tborder' cellpadding='$stylevar[cellpadding]' cellspacing='$stylevar[cellspacing]' border='0' width='60%' align='center'>
<tr><td class='thead' colspan='4'><center><b>$yourname's Rep Report<b></center></td></tr>
<tr><td class='thead'><center><b>Rank</b></center></td><td class='thead'><center><b>Username</b></center></td><td class='thead'><center><b>Rep Points</b></center></td><td class='thead'><center><b>Frequency</b></center></td></tr>
$repreport
<if condition="$repreport == ''">
<if condition="$rb == '1'">
<tr><td class='alt1' colspan=4><center>You have no positive reputation</center></td></tr>
</if>
<if condition="$rb == '2'">
<tr><td class='alt1' colspan=4><center>You have no negative reputation</center></td></tr>
</if>
<if condition="$rb == '3'">
<tr><td class='alt1' colspan=4><center>You have received no reputation points</center></td></tr>
</if>
</if>
<tr align="center">
<td class="thead" colspan="4"><div class="smallfont">Aggiefans.com ? $copyrightyear <br/>Version $version</div></td>
</tr>
</table>



</form>
<!-- /main -->
$footer
</body>
</html>



RepReport_Posts
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase> - Reputation Report</title>
$headinclude
</head>
<body>
$header
$navbar
<!-- main -->

<form name="vbform" action="repreport.php?do=rank&rb=$rb&mu=$mu">
<input type="hidden" value="rank" name="do" />
<input type="hidden" value="submit" name="action" />
<input type="hidden" value="$rb" name="rb" />
<input type="hidden" value="$mu" name="mu" />

<table class='tborder' cellpadding='$stylevar[cellpadding]' cellspacing='$stylevar[cellspacing]' border='0' width='60%' align='center'>
<br/><br/>
<tr><td class='thead' colspan='4'><center><b>$yourname's Rep Received from $giver <b></center></td></tr>
<tr><td class='thead'>&nbsp;</td><td class='thead' width=250><center><b>Date</b></center></td><td class='thead'><center><b>Thread Title</b></center></td><td class='thead' width=300><center><b>Comment</b></center></td></tr>
$repreport
<tr align="center">
<td class="thead" colspan="4"><div class="smallfont">Aggiefans.com ? $copyrightyear <br/>Version $version</div></td>
</tr>
</table>
</form>
<!-- /main -->
$footer
</body>
</html>

aggiefan
08-28-2008, 04:28 PM
thanks!

students_forum
09-12-2008, 08:38 PM
It doesn't seem to function at all on 7.2.2

Vackrick
09-16-2008, 02:10 PM
my admincp become worst after installing this product when i click on reputation report on vb admin cp database error...

omg...

i uninstall the report rep still there....

aggiefan
09-24-2008, 11:21 AM
It doesn't seem to function at all on 7.2.2
I think you meant 3.7.2. I don't know -- I haven't upgraded my forums to that.

aggiefan
09-24-2008, 11:22 AM
my admincp become worst after installing this product when i click on reputation report on vb admin cp database error...

omg...


i uninstall the report rep still there....
Umm....not very helpful. You're 1 of about 30 people who got this error, so I doubt it's the product. What error did you get and what didn't uninstall?