vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Profile Enhancements - Display Reputation Comments Given (https://vborg.vbsupport.ru/showthread.php?t=122592)

Paul M 07-30-2006 10:00 PM

Display Reputation Comments Given
 
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.


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

[high]* Mudvayne clicks install..
[/high]
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

Quote:

Originally Posted by Paul M
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

Quote:

Originally Posted by G_Man
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:

Quote:

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

Quote:

Originally Posted by Paul M
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..

Code:

$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

Code:

$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

Quote:

Originally Posted by soulface (Post 1137928)
Yes. I use a customized template, may be thats why. :S

There 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:
Code:

                <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:
Code:

- <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

Quote:

Originally Posted by Makc666 (Post 1140970)
Given To doesn't have translation string :(

Hmm, that obviously got missed.

Quote:

Originally Posted by Makc666 (Post 1140970)
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.

Quote:

Originally Posted by Makc666 (Post 1140970)
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.


All times are GMT. The time now is 03:10 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
  • Page Generation 0.01304 seconds
  • Memory Usage 1,818KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete