MyBB Community Forums

Full Version: Prevent refresh after giving rep
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After I give rep to someone, the parent page (the post I'm viewing) automatically refreshes. I'd like to prevent that from happening, but I can't find the code that causes it. Does anyone know what I need to do so that the rep pop-up will just close after submission without refreshing the thread page?
The thread page? You added an rate button to the thread then? As you cannot add an rep right from the thread with standard 1.2 templates.
Anyways. Go to admin CP -> Templates -> *your template* -> Reputation Templates -> reputation_added
Delete:
 onunload="window.opener.location.reload();"
ah crap, you're right...  I'm using the Classic Rep System plugin.  Well, I guess I'll have to ask Smethead about it then.  Thanks.

EDIT: Found it. Thanks Crakter, I searched for the javascript you gave me and found it in one of the CRS mod's files. Smile
Yes
window.opener.location.reload();
is part of the crs_reputation.php file located in the main forum directory.

(I just post this to prevent people asking this again)
thank you