MyBB Hacks

Full Version: Adv. Reputation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Yo,

I am looking for mod that will edit reputation to better : )
I want:
* User can't see other user reputation
* User will have reputatnion points in User CP
* User can't choose how much reputation he give... He give always max ammount. Ex. Here we can choose +1, +2, +3, 0, -1, -2, -3. In this mod user can give only +3, 0, -3.
* All with rep images

Thats all,
Thanks
Hi,

I'm not too sure I understand you correctly.
What's the point in a reputation system when you can only see your own reputation?

I'm probably misunderstanding you - could you be a little more clear?  Thanks.
Ee.. How to tell it...

Everyone can see your points (rep images?/points) but only you are able to view comments : P
Oh okay, gotcha.
KacperOo Wrote:* User will have reputatnion points in User CP
I'm sure it's already there Tongue
http://mybbhacks.zingaburga.com/usercp.php
KacperOo Wrote:* All with rep images
I think there was a plugin already for that?  Haven't looked into it.

I guess I'll work on the other two.




In reputation.php, find:

PHP Code:
// Check if we're browsing a specific page of results

Add before:

PHP Code:
if($user['uid'] == $mybb->user['uid']) {

Then find:

PHP Code:
	if(!$reputation_votes)
	{
		eval("\$reputation_votes = \"".$templates->get("reputation_no_votes")."\";");
	}

Add after:

PHP Code:
}

(note the "Comments" text will still be there - you'll have to move it around in the templates)

Find:

PHP Code:
	$reputation = $mybb->input['reputation'];
	$reputation = intval(str_replace("-", "", $reputation));
	if($mybb->input['reputation'] == "neutral")
	{
		$mybb->input['reputation'] = 0;
	}

Replace with:

PHP Code:
	$reputation = intval($mybb->input['reputation']);
	if($mybb->input['reputation'] == "neutral")
	{
		$mybb->input['reputation'] = 0;
		$reputation = 0;
	}
	else
	{
		if($reputation < 0) $mybb->input['reputation'] = -$mybb->usergroup['reputationpower'];
		elseif($reputation > 0) $mybb->input['reputation'] = $mybb->usergroup['reputationpower'];
	}


Find:

PHP Code:
for($i = 1; $i <= $reputationpower; $i++)

Replace with:

PHP Code:
$i = $reputationpower;

1. Eh, i want to list them here : P

2. I have rep images plugin ^^

#EDIT
testing Oh
cool thx Smile
KacperOo Wrote:1. Eh, i want to list them here : P
Sorry, but, where?
In the User CP I suppose - show the reputation table in there. I think vB does that - not sure.
Oh reputation table - I see...
ZiNgA BuRgA Wrote:Oh reputation table - I see...

Good ideea! It is possible, please ?
Reference URL's