For give reputation, add in the portal_announcement templates:
<a href="javascript:void(0)" onclick="MyBB.reputation({$announcement['uid']},{$announcement['pid']}); return false;">Give Reputation</a>
To get reputation you need an edit in the portal.php file or a plugin. The plugin actually I can't do it for you, but if you are interested in the edit:
Open the
portal.php file.
Search this query:
$query = $db->query("
SELECT t.*, t.username AS threadusername, u.username, u.avatar, u.avatardimensions
FROM ".TABLE_PREFIX."threads t
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid = t.uid)
WHERE t.tid IN (0{$tids}){$annfidswhere}{$tunviewwhere} AND t.visible='1' AND t.closed NOT LIKE 'moved|%'
ORDER BY t.dateline DESC
LIMIT 0, {$numannouncements}"
);
Add
at the end of the SELECT statement
u.reputation, in this manner:
$query = $db->query("
SELECT t.*, t.username AS threadusername, u.username, u.avatar, u.avatardimensions, u.reputation
FROM ".TABLE_PREFIX."threads t
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid = t.uid)
WHERE t.tid IN (0{$tids}){$annfidswhere}{$tunviewwhere} AND t.visible='1' AND t.closed NOT LIKE 'moved|%'
ORDER BY t.dateline DESC
LIMIT 0, {$numannouncements}"
);
Then search:
$announcement['threadusername'] = htmlspecialchars_uni($announcement['threadusername']);
And add
after:
$announcement['userrep'] = get_reputation($announcement['reputation'], $announcement['uid']);
Now to get the reputation use in the portal_announcement templates:
{$announcement['userrep']}