Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Adv. Reputation
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: Adv. Reputation
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:
1
2
3
4
5
6
	$reputation = $mybb->input['reputation'];
	$reputation = intval(str_replace("-", "", $reputation));
	if($mybb->input['reputation'] == "neutral")
	{
		$mybb->input['reputation'] = 0;
	}

Replace with:

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
	$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;


My Blog
(This post was last modified: 02-04-2008 10:31 PM by ZiNgA BuRgA.)
02-04-2008 10:17 PM
Find all posts by this user

« Next Oldest | Next Newest »

Messages In This Thread
Adv. Reputation - KacperOo - 02-04-2008, 04:48 PM
RE: Adv. Reputation - ZiNgA BuRgA - 02-04-2008, 06:19 PM
RE: Adv. Reputation - KacperOo - 02-04-2008, 09:28 PM
RE: Adv. Reputation - ZiNgA BuRgA - 02-04-2008 10:17 PM
RE: Adv. Reputation - KacperOo - 02-04-2008, 10:23 PM
RE: Adv. Reputation - snAke - 02-05-2008, 11:32 AM
RE: Adv. Reputation - ZiNgA BuRgA - 02-05-2008, 01:41 PM
RE: Adv. Reputation - blueparukia - 02-05-2008, 03:38 PM
RE: Adv. Reputation - ZiNgA BuRgA - 02-05-2008, 07:15 PM
RE: Adv. Reputation - goindex - 02-09-2008, 04:22 PM

 Standard Tools
Forum Jump: