Not Solved 2 Rep system changes
#1
Not Solved
There are 2 (and only 2) changes I'd like to make to the rep system.

1st, I'd like to show the repuation number instead of the bars in the postbit.

2nd, I'd like for the UserCP to show who gave rep.

I know these are probably in the Alt Rep System, but that's a whole other system and applying it for just 2 little changes seems like overkill in the extreme.

Any help would be greatly appreciated Smile
Reply
#2
Not Solved
The first one would be easy but the second one would take a bit of work. I would really reccommend atleast trying the Alternative Reputation System.
Reply
#3
Not Solved
In the postbit_reputation template you can include the $post[reputation] variable which contains the number of reputation points the user has.
Reply
#4
Not Solved
Reply
#5
Not Solved
I'd like the rep system optional -- turn on/off in admin.

silverwing
Reply
#6
Not Solved
silverwing Wrote:I'd like the rep system optional -- turn on/off in admin.

silverwing

I believe this is in 1.2
Dennis Tsang
Former MyBB Team Member
Web: http://dennistt.net
Reply
#7
Not Solved
Galen Wrote:2nd, I'd like for the UserCP to show who gave rep.
The MyBB rep system already has a feature that records the user who gave the reputation. It stores the user's ID under the adduid field in the reputation table. So basically, the thing you have to do to show the user in your UserCP is this:

Go to AdminCP >> Templates >> Modify / Delete >> the template set you are using >> Expand >> User Control Panel Templates >>
usercp_latestreputations
Find:
<td class="tcat" align="center"><span class="smalltext"><strong>$lang->post</strong></span></td>
And under it, add
<td class="tcat" align="center"><span class="smalltext"><strong>Given by:</strong></span></td>
Find:
<td class="thead" colspan="4">
And replace with:
<td class="thead" colspan="5">
After that, save the template.
You can change Given By to whatever you want in another language

usercp_latestreputations_bit
Find:
<td class="$bgclass">$postlink</td>
And under it, add
<td class="$bgclass">$adduser</td>
After that, save the template.

Then, open the file called usercp.php and find the code:
eval("\$reputationbits .= \"".$templates->get("usercp_latestreputations_bit")."\";");
Above it, add this:
			$adduid_query = $db->fetch_array($db->query("SELECT username, usergroup, displaygroup FROM ".TABLE_PREFIX."users WHERE uid='".$reputation['adduid']."'"));
			$adduser = "<a href=\"member.php?action=profile&uid=".$reputation['adduid']."\">".formatname($adduid_query['username'], $adduid_query['usergroup'], $adduid_query['displaygroup'])."</a>";
That's all Smile
Reply
#8
Not Solved
DennisTT Wrote:
silverwing Wrote:I'd like the rep system optional -- turn on/off in admin.

silverwing

I believe this is in 1.2

Does anyone know if there's a change log yet for what's being done for 1.2?
silverwing
Reply
#9
Not Solved
silverwing Wrote:
DennisTT Wrote:
silverwing Wrote:I'd like the rep system optional -- turn on/off in admin.

silverwing

I believe this is in 1.2

Does anyone know if there's a change log yet for what's being done for 1.2?
silverwing
Yes there is, but most of it is not publicly accessible.

I would suggest reading Chris Boulton's (Surfi) blog. He releases some useful information regarding MyBB.

http://www.surfionline.com/archives/2006...happening/
http://www.surfionline.com/archives/2006...e-feature/
http://surfionline.com/?s=mybb

http://www.surfionline.com
Reply
#10
Not Solved
Smethead, thank you VERY much! That worked perfectly!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)