MyBB Community Forums

Full Version: Direct reputation link
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all, I was wondering if there is a way to have a direct reputation link.

So instead of going to the reputation window (that pops up) I want to just have a button to click (only + rep, negative and neutral rep are disabled).

Any Ideas?
I know it has to be something like this.
<a href="reputation.php?action=add&amp;uid={$post['uid']}&amp;pid={$post['pid']}" class="postbitsmall">rep</a>

But "{$post['uid']}" does not get the UserID.
bumpin
The javascript that drives the popup window is in the general.js file. Not having looked that deeply into the code I cannot say what happens exactly, but it looks like the popup is linked to reputation php:

http://community.mybb.com/reputation.php...id=1068123

So you would need to update the button via ajax.