2017-01-05, 05:24 AM
I'm attempting to customize the reputation system to work with another system but when I attempt to edit the javascript file for the rep it doesn't seem to update on the forum even If i restart apache.
general.js file; error seems to be somewhere here.
reputation.php
The reputation file always returns pid of 0 even if the blog variable to correctly set in the url.
general.js file; error seems to be somewhere here.
reputation: function(uid, pid, blog)
{
if(!pid)
{
var pid = 0;
}
if(!blog)
{
var blog = 0;
}
MyBB.popupWindow("/reputation.php?action=add&uid="+uid+"&pid="+pid+"&blog="+blog+"&modal=1");
},
reputation.php
if( $mybb->get_input( 'blog', MyBB::INPUT_INT ) ) {
$mybb->input['pid'] = $mybb->get_input('pid', MyBB::INPUT_INT);
} else {
$mybb->input['pid'] = 0;
}
The reputation file always returns pid of 0 even if the blog variable to correctly set in the url.