Just upgraded the Reputation system, but had to hack the hell out of it due to it not being compatible :| I think most of it should be fine, the only problem is when you click to add reputation the box appears at the top of the page. My HTML is rather limited, does anyone know how to open up a new window displaying this... ?
It appears to be this part which is casing problems. Removing the first part after onclick() will load a new page with the reputation box. My guess is it's something to do with Reputation_form.
Code:
<span id="reputation_menu" style="visibility: hidden; display: none;"> <table class="bordercolor" cellpadding="4" cellspacing="1" style="width: 100%;"> <tr class="titlebg"> <td height="22">', $txt['karma_title'], '</td> </tr> <tr class="catbg"> <td height="22">', $txt['karma_add_to'], ': <span id="reputation_name">&nbsp;</span></td> </tr> <tr class="windowbg2"> <td> <fieldset> <legend>', $txt['karma_your_opinion'], '</legend> <form id="reputation_form" name="reputation_form" action="', $scripturl, '?action=modifykarma" method="post" accept-charset="', $context['character_set'], '" class="reputation_form"> <input type="radio" name="type" value="agree"', !$context['can_pos_rep'] ? ' disabled="disabled"' : ' checked="checked"', ' /> ', $txt['karma_agree'], ' <input type="radio" name="type" value="disagree"', !$context['can_neg_rep'] ? ' disabled="disabled"' : !$context['can_pos_rep'] ? ' checked="checked"' : '', ' /> ', $txt['karma_disagree'], ' <span id="reputation_fields">&nbsp;</span> <br /> ', $txt['comment'], ': <input type="text" name="reputation_comment" /><br /> <br /> <input type="submit" value="', $txt['submit'], '" /> <input type="hidden" name="topic" value="', $context['current_topic'], '.', $context['start'], '" /> <input type="hidden" name="sc" value="', $context['session_id'], '" /> </form> </fieldset> </td> </tr> </table></span>
Code:
<span style="visibility: hidden; display: none;" id="reputation_form_', $message['id'], '"> <input type="hidden" name="uid" value="', $message['member']['id'], '" /> <input type="hidden" name="m" value="', $message['id'], '" /> </span> <a id="repicon" onclick="reputationForm('reputation_form_', $message['id'], '', '', $message['member']['name'], '', this, event); return false;" href="', $scripturl, '?action=reputation;uid=', $message['member']['id'], ';m=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '"><img src="', $settings['images_url'], '/karma.gif" alt="', $txt['add_karma'], '" title="', $txt['add_karma'], '" /></a>';