MyBB Community Forums

Full Version: Fix reputation profile page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Alright so I saw that the theme I am currently using does not link to the reputation profile page on the profile page

What I mean by this is

[Image: 2cd66971bdcde2794d05052ac089a634.gif]

I can't click anywhere to see what other users have repped.

[Image: 3d5beaa440c97b63cb0e252d8a3cb296.gif]

Here it works tho and I tried taking the code from the template but this is all what is happening

[Image: f932f4dac5035c5649f3bfeac7e5fab0.gif]

So if anyone can tell me why this is happening and a solution then please do. I can't find any other thread about this exact problem.
Which link are you using begind the '[Rate]' button?


UPDATE;
As of the default template of MyBB, this code is shown in the member_profile_reputation template:
<td class="{$bg_color}">{$reputation} [<a href="reputation.php?uid={$memprofile['uid']}">{$lang->reputation_details}</a>] {$vote_link}</td>

Because you are using another theme, you will have another code, in your case, you'll have this one:

<td class="{$bg_color}"><span class="float_right">{$reputation}{$vote_link}</span></td>

What you want to do now, is changing the {$reputation}{$vote_link} to this:

{$reputation} [<a href="reputation.php?uid={$memprofile['uid']}">{$lang->reputation_details}</a>] {$vote_link}

When you added this line, you'll get this:
http://prntscr.com/akmgrs

To be able to give someone reputation, you can also add this line next to the line we added in the previous step:

[<a href="javascript:MyBB.reputation({$memprofile['uid']});">{$lang->reputation_vote}</a>]

When you add that, you'll get this: http://prntscr.com/akmhmt

When you press on it, it will open a modal, where you can 'vote'.

Hope this helps!
(2016-03-27, 11:15 AM)ArneVD Wrote: [ -> ]Which link are you using begind the '[Rate]' button?


UPDATE;
As of the default template of MyBB, this code is shown in the member_profile_reputation template:
<td class="{$bg_color}">{$reputation} [<a href="reputation.php?uid={$memprofile['uid']}">{$lang->reputation_details}</a>] {$vote_link}</td>

Because you are using another theme, you will have another code, in your case, you'll have this one:

<td class="{$bg_color}"><span class="float_right">{$reputation}{$vote_link}</span></td>

What you want to do now, is changing the {$reputation}{$vote_link} to this:

{$reputation} [<a href="reputation.php?uid={$memprofile['uid']}">{$lang->reputation_details}</a>] {$vote_link}

When you added this line, you'll get this:
http://prntscr.com/akmgrs

To be able to give someone reputation, you can also add this line next to the line we added in the previous step:

[<a href="javascript:MyBB.reputation({$memprofile['uid']});">{$lang->reputation_vote}</a>]

When you add that, you'll get this: http://prntscr.com/akmhmt

When you press on it, it will open a modal, where you can 'vote'.

Hope this helps!

Thanks man! This helped me alot!

Only thing is, the amount of rep the user has is still clickable and it won't redirect to the right page. I want the rep amount number not to be clickable

[Image: 1a8d86538b88d7a613112e459236512d.gif]
If you follow all the steps, it should be fixed.