PDA

View Full Version : Profile Enhancements - Display Reputation Comments Given


Paul M
07-30-2006, 10:00 PM
This modification is no longer available or supported.

This shows members who their last few reputation comments have been given to - in the same manner as their received comments. The list is collapsable and appears in the usercp under the reputation received list. The users current repping power is also displayed, in the same manner as their points total.

The number of comments to display is a setting in the reputation section of vb Options.

If upgrading from the 3.5 version you will need to remove the template edit (or just revert the usercp template).

From version 2.47 onwards users can delete reputation they have given within a certain timeperiod (default = 5 minutes). This allows the removal of comments given in error (or regretted !). This was from a suggestion by Makc666 (https://vborg.vbsupport.ru/showpost.php?p=1139710).


History:

v2.40 : First release for vb 3.6, template edit replaced by template injection.
v2.41 : Dependancies updated for 3.6.0 Gold.
v2.42 : Updated for Version Checking.
v2.43 : Dependancies updated, URL's updated (not released).
v2.44 : SQL changed to use slave.
v2.45 : Phrase errors fixed.
v2.46 : Internal Development Version (not released).
v2.47 : Added ability for member to delete reputation given.
v2.48 : Fixed display permission issue (see posts 50 & 51).
v2.49 : Minor template change.

Posof
07-31-2006, 01:03 AM
Wooow first post,

Thanks for the hack.. ;)

A_N_K_A_R_A
07-31-2006, 04:45 AM
woowww nice hack thanks

Snake
07-31-2006, 09:32 AM
Excellent! :)

Mudvayne
08-01-2006, 08:03 AM
* Mudvayne clicks install..
Thnx Paul M.. :)..

h_kakashi
08-02-2006, 12:32 AM
Very nice :) works fine on RC3

h_kakashi
08-03-2006, 11:41 PM
I cannot see the Reputation Given section in UserCP.

All the templates were reverted prior to installation. Installation was done and I can see the option of how many to display in vbulletin Options -> User Reputation (Default = 10). However can't see anything T_T

Edit : Nevermind found the problem. Had the Plugin based Template Cache installed, and needed to include USERCP as a template not to be cached.

Thanks :)

Breathex
08-04-2006, 10:23 AM
what should i do to see who gave me rep. points?

Mudvayne
08-12-2006, 06:09 AM
Thrs another hack by Paul M ;).. Try that one.. U can see on ur profile that who give u reputation.. Infact all user can see :D..

version2
08-24-2006, 12:07 AM
Someone want to tell me how I can get the:

"New Posts since your last visit: XXX"

BELOW the:

"You have no new reputation comments."

Or above it. I just don't like it right under the Welcome message.

Paul M
08-24-2006, 12:40 AM
Erm, you might want to check what thread you are in.

version2
08-24-2006, 12:57 AM
Erm, you might want to check what thread you are in.
Doh! Thanks! =]

G_Man
08-27-2006, 07:19 PM
I need a Mod that automatically tells me when you've released another hack. ;)

thanks again, Paul.

Paul M
08-27-2006, 10:27 PM
I need a Mod that automatically tells me when you've released another hack. ;)

thanks again, Paul.I think that's called "Get New Posts" ;)

Takkero
08-28-2006, 08:30 AM
installed but doesn't work....

what shuld i do to see this?

p.s. i see the option in the Admin CP (set to 10 by default)

Paul M
08-28-2006, 07:31 PM
You don't need to do anything. Have you given anyone reputation ? Are you looking in your usercp (under the received) ?

davelacey
08-31-2006, 04:10 PM
Thanks.

*clicks install*

Insert Username
09-19-2006, 06:07 PM
I get the following error after installing when I go to my CP:

Database error in vBulletin 3.6.1:

Invalid SQL:

SELECT user.username, reputation.userid, reputation.postid as postid, reputation.reputation,
reputation.reason, post.threadid as threadid, reputation.dateline as dateline, thread.title as title
FROM reputation AS reputation
LEFT JOIN post AS post ON(reputation.postid = post.postid)
LEFT JOIN thread AS thread ON(post.threadid = thread.threadid)
LEFT JOIN user AS user ON(user.userid = reputation.userid)
WHERE reputation.whoadded = 6
ORDER BY reputation.dateline DESC
LIMIT;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9
Error Number : 1064


I'll have to dive into the code a bit, but if anyone has a quick answer, that would be great.

Paul M
09-19-2006, 06:28 PM
Either the vb options were not imported properly, or you have a blank setting (it needs to be a number).

Insert Username
09-19-2006, 06:33 PM
Either the vb options were not imported properly, or you have a blank setting (it needs to be a number).
Not sure what you mean. A blank setting where? Not sure if it was imported properly.

I wonder if an existing mod to the CP got in the way of this one properly placing the code?

Paul M
09-19-2006, 06:39 PM
On import, this creates a setting in vBulletin Options > User Reputation Options called "Number of Reputation Given Comments to Display" with a default value of 10.

Insert Username
09-19-2006, 06:43 PM
Interesting. Third time's a charm, I guess. Imported just fine this time. Far as I know, anyway. ;)

Thanks!

ESADCG
10-08-2006, 03:48 AM
Installed, cool mod!

Nathan2006
10-17-2006, 02:10 AM
Thank you Paul

Install

SideDraft260
11-23-2006, 07:00 PM
For some reason I've installed it several times, but can not get it show the "reputation given" options in AdminCP, nor does it show in the user profiles. My reputation received works just fine, however. Any ideas?

Paul M
11-24-2006, 07:40 AM
There is only one option (max number of comments to display) which appears in the reputation settings above the Administrator's Reputation Power setting.

soulface
12-13-2006, 03:35 PM
the auto templates edit settings kinda bad i think..

$search_text = '<table cellpadding=';
$vbulletin->templatecache['USERCP'] = str_replace($search_text,$vbulletin->templatecache['Display_Reputation_Given'].$search_text,$vbulletin->templatecache['USERCP']);
}

its catching every table in usercp. when i installed it first, i got 5 'reputation given box' in usercp. so i change it to

$search_text = '<!-- ############## NEW REPUTATION ############## -->';
$vbulletin->templatecache['USERCP'] = str_replace($search_text,$vbulletin->templatecache['Display_Reputation_Given'].$search_text,$vbulletin->templatecache['USERCP']);
}

Paul M
12-13-2006, 05:12 PM
What other tables ?

I cannot replicate any such occurance on any of my forums.

Checking the default USERCP template, the code searched for only appears once, so you must have a customised template.

soulface
12-13-2006, 05:42 PM
Yes. I use a customized template, may be thats why. :S

Paul M
12-13-2006, 09:47 PM
Yes. I use a customized template, may be thats why. :SThere is no "maybe" - that is the reason why. :)

I cannot predict what will happen in customised templates. :cool:

weindians
12-14-2006, 11:04 PM
Thanks for this hack

Makc666
12-16-2006, 12:54 PM
Paul M
Can you, please, add one more future to this hack.
Some times when usera give reputation they make mistakes.
Can you add a (Delete) URL after last reputation comment in usercp.
This will allow user to delete his LAST reputation comment after XX minutes after its adding.

In other words.
1. User adds a reputation comment.
2. He understands that he made a mistake.
3. He goes to usercp.
4. See that his comment.
5. See URL/LINK (Delete) after that his comment.
6. Click it.
7. Comment is erased/deleted.

The link (Delete) is visible for user for xx minutes which is set in ACP.

Thanks.

P.S. I saw this working on one of the forums, but it was a hand made add-on special for that forum.

Paul M
12-16-2006, 05:37 PM
Interesting idea, I will consider it when I next look at updating this.

Makc666
12-18-2006, 01:59 PM
Paul M

1.
In template:
Display_Reputation_Given
In line:
<td class="thead" nowrap="nowrap">Given To</td>

Given To doesn't have translation string :(

2.
Also language translation string:
$vbphrase[points]
has word:
Points

So we have in CP:
Your Reputation Power is 10 Points

But below default VB's language uses:
32 point(s) total

So maybe it is better to make
$vbphrase[points]
this way:
point(s)

3.
And there is a misprint here:
- <phrase name="setting_maxrepgv_desc" date="1152000000" username="Paul M" version="2.42">
- <![CDATA[ THe maximum number of Reputation Given Comments to display in the user cp.
]]>
</phrase>

Must be:
The

Paul M
12-18-2006, 03:05 PM
Given To doesn't have translation string :(
Hmm, that obviously got missed.

Also language translation string:
$vbphrase[points]
has word:
Points

So we have in CP:
Your Reputation Power is 10 Points

But below default VB's language uses:
32 point(s) total

So maybe it is better to make
$vbphrase[points]
this way:
point(s)
Since it's a phrase then you are free to alter it, the default will stay as it is because I prefer it that way.

And there is a misprint here ...Yep, that'll get fixed in the next release.

KURTZ
12-19-2006, 05:17 PM
Paul just INSTALLED another great/simple hack by you ... :) thx

Nathan2006
12-24-2006, 06:37 AM
Thanks for the update Paul :)

KURTZ
12-25-2006, 01:15 PM
updated!

thx Paul

parabat
12-27-2006, 10:02 AM
Nice additions Paul.

You ever consider consolidating your 3 "Display Reputation Comments" mods into one mod??

-PB

Paul M
12-27-2006, 10:59 AM
Nope, keeping them seperate means people can choose what they want.

Paul M
01-21-2007, 11:56 AM
Version 2.47 adds the ability for members to delete comments they have made (within a set time period). The default is 5 minutes. This is to allow members to remove comments they may have made by mistake. The feature was requested by Makc666.

Mudvayne
01-21-2007, 12:18 PM
Updated :D. Thanks Paul. Just one request can you make this & your other rep based hack option unique? I mean not in Users Repuation Option. Just like Member Visited Today or Guest Visited Today.

Paul M
01-21-2007, 04:33 PM
Why ?

Mudvayne
01-21-2007, 04:36 PM
Nothing special. Just an idea :S.

akulion
01-29-2007, 03:55 AM
Thank you for this - you really make very useful mods :)

KURTZ
01-29-2007, 02:57 PM
updated!

masterross
02-02-2007, 08:02 PM
seems dont works for me
nothing is shown in userCP
even i use default template :(

Paul M
02-02-2007, 09:26 PM
Then you have either done something wrong or you have a broken plugin somewhere.

masterross
02-03-2007, 12:17 AM
I've created new syle, disable all plugins but still doesn appear :(

Paul M
02-03-2007, 03:26 PM
Are you sure you have actually given any reputation, and not disabled your display of reputation in your profile ?

Other than that then I can't help you without access to your forum.

masterross
02-03-2007, 06:37 PM
hi,
u were right my reputation show was disabled!
But why reputation given is conected with show reputation?

Paul M
02-03-2007, 08:25 PM
It shouldn't be really, but that's they way it is for the moment. I'll fix it in a future update.

Tanabe
02-24-2007, 01:25 PM
Ok I have a problem and wondering if you could help. I installed this hack, Enhanced reputation checks hack, and New posts and rep comments hack. Awsome hacks and Thanks by the way.

I can't seem to get the reputation posted by column in the User CP. This is a new forum so I'm still trying to work things out and not sure if it's just me or it was the hacks. I really don't think its the hack though.

How can I make this option available?

Paul M
02-24-2007, 01:29 PM
If you mean the person who gave the reputation - it's a usergroup permission.

BTW - please click on the "Mark as Installed" for all the mods you have installed - you are still showing as "Status: Not Installed"

Tanabe
02-24-2007, 01:38 PM
Sorry about that and thank you much. Looking foward to future updates.

Aimee1969
04-28-2007, 10:52 AM
Thanks...I like this mod

KURTZ
04-28-2007, 01:13 PM
updated!

Makc666
05-14-2007, 12:23 PM
in vBulletin 3.6.6
in template
USERCP
there was change:

3.6.5
<tr>
<td class="thead" colspan="2">&nbsp; &nbsp; $vbphrase[thread]</td>
<td class="thead">$vbphrase[date]</td>
<if condition="$vboptions['showuserraters']">
<td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td>
</if>
<td class="thead">$vbphrase[comment]</td>
</tr>

3.6.6
<tr>
<td class="thead">&nbsp;</td>
<td class="thead">$vbphrase[thread]</td>
<td class="thead">$vbphrase[date]</td>
<if condition="$vboptions['showuserraters']">
<td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td>
</if>
<td class="thead">$vbphrase[comment]</td>
</tr>


According to this change I propose to change in this modification to make tables headers look the same way:
From:
<tr>
<td class="thead" colspan="2">&nbsp; &nbsp; $vbphrase[thread]</td>
<td class="thead">$vbphrase[date]</td>
<td class="thead" nowrap="nowrap">$vbphrase[given_to]</td>
<td class="thead">$vbphrase[comment]</td>
</tr>

To:
<tr>
<td class="thead">&nbsp;</td>
<td class="thead">$vbphrase[thread]</td>
<td class="thead">$vbphrase[date]</td>
<td class="thead" nowrap="nowrap">$vbphrase[given_to]</td>
<td class="thead">$vbphrase[comment]</td>
</tr>

Paul M
05-14-2007, 08:51 PM
Seems reasonable, I'll release an update in a bit.

croportal
05-17-2007, 02:51 PM
nice hack, works like a charm ;)

Mrdby
05-18-2007, 07:40 PM
i still don't see anything!

karlm
05-23-2007, 04:19 AM
Hi Paul M, great hack - thank you kindly.
I've installed and it works flawlessly in vb3.6.7

Would you have any ideas on how I might be able to apply the reputation given to a member so it appears on their member-profile page, linking to the person who gave it them?

ETA, found it (https://vborg.vbsupport.ru/showthread.php?t=123425)! :rolleyes:

IceFanatic
05-28-2007, 12:56 AM
Anyway to change it so that it shows the rep given first and then the rep received after that?

Paul M
05-28-2007, 09:42 AM
Not unless you want to manually edit templates.

masterross
07-08-2007, 08:19 PM
Hi Paul,

How to upgrade from 2.33 to current version?

thanks

Paul M
07-08-2007, 10:22 PM
2.33 ? - that's a vb 3.5.x version I believe, so you just import it, and follow the note in the main post.

masterross
07-08-2007, 11:03 PM
yes it's vb 3.5.x version but i use it on 3.6.7
So I just need to overwrite the old version and delete template modification?

Paul M
07-09-2007, 01:05 AM
Yep.

marlena
07-09-2007, 04:05 AM
ok call me stupid here but how do you see the rep comments RECEIVED if you dont have any new ones and therefore no button to click to display new rep comments?

Paul M
07-09-2007, 10:36 AM
Go to your usercp.

wickland
08-10-2007, 11:12 PM
Awsome nice and simple to install hack, love it and installed :)

Thanks

josepheseven
08-22-2007, 11:57 AM
installed :)

Martyn2k6
10-09-2007, 10:09 PM
any screenshots?

deezelpope
10-09-2007, 11:26 PM
I dunno what you need a screenshot for...it just shows the reputation you've given to other members in your User Control Panel...but, I'm feeling nice today, and I love Paul's mods, so here ya be:

https://vborg.vbsupport.ru/external/2007/10/19.gif

Freak0204
10-18-2007, 01:50 PM
This was working fine until I installed a new style. Now the display tables show up multiple times. I have tried uninstalling and reinstalling but that didn't help. Any suggestions?

Paul M
10-18-2007, 03:06 PM
Your custom style probably has multiple occurances of the code the template insertion looks for. The only way to fix that is to manually add a comment into the usercp template and update the settings to look for it.

Freak0204
11-04-2007, 01:15 PM
manually add a comment into the usercp template and update the settings to look for it.

How would I go about doing that?

hyppa
12-29-2007, 05:24 PM
Does this work for 3.6.8 to?

hyppa
12-29-2007, 06:35 PM
Maybe im blond ;) but which folder do i upload it to/in?

hyppa
12-29-2007, 06:50 PM
Fixed, got help from an angel. :)

mmmender
12-31-2007, 12:03 PM
Excellent hack - installed

dashed
05-02-2008, 12:47 AM
Does this work for vb 3.7?

Paul M
05-02-2008, 08:19 AM
The 3.7 version does ....

Aclikyano
05-03-2008, 07:13 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=168303&highlight=Display+reputation+comments+given" target="_blank">https://vborg.vbsupport.ru/showt...comments+given</a>
isnt this the same product but with a extra little mod?

no wonder the thing appeared twice

Paul M
05-04-2008, 10:21 AM
Nope, two entirely different things.

deLi_kurT
05-07-2008, 01:52 PM
Thanks - installed

DominicG
05-20-2008, 10:11 PM
I have no idea how to install a hack! I'm very computer illiterate in this department. Being a recent problem came up on our forums we need something like this.

Can you give detailed install instructions? Remember you're talking to someone who has no clue. I know how to sign into my cpanel that is it.

Thank you so much!

Dominic is my son (I used his name as a sign in) my name is Kat :)

Paul M
05-21-2008, 06:57 AM
<a href="http://www.vbulletin.com/docs/html/main/import_product" target="_blank">http://www.vbulletin.com/docs/html/main/import_product</a>

DominicG
05-21-2008, 02:30 PM
Thank you so much for answering :) I'm still lost but that's not your problem lol...

Konstantinos
06-16-2008, 08:26 AM
why is the thread titble being cut off . it displays the half title and after ... although the title isnt big and there is a huge space untill the next table ?? where to change this

Paul M
06-16-2008, 08:42 AM
Just because its a big gap for you does not mean its the same for everyone - it depends on your screen size, text size etc. The current setting should work for just about anyone, but obviously if you have a wide screen and small text, your going to have a big gap.

Konstantinos
06-16-2008, 09:29 AM
but is there any way to increase the characters shown there?

Paul M
06-16-2008, 11:41 AM
No.