PDA

View Full Version : Auto Close Game Rating Window



stangger5
02-06-2016, 12:40 AM
Find this in the arcade skin.


function rating($game,$pagereload) {

Replace it with this:


function rating($game) {

Find this:


function rating_general($text,$pagereload) {
global $ibforums;

$output="";

if ($pagereload!=true)
{
$output .= " <script type=\"text/javascript\">
<!--
opener.location.replace(window.opener.location.hre f);
-->
</script>";
}

$output .= " <div class=\"tborder\" align=\"center\">
<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"100%\">
<tr>
<td class=\"tcat\">{$ibforums->lang['rate_message']}</td>
</tr>
<tr>
<td class=\"alt1\">{$text}</td>
</tr>
</table>
</div><br />";

return $output;

}

replace it with this:


function rating_general($text,$pagereload) {
global $ibforums;

$output="";

if ($pagereload!=true)
{
$output .= " <script type=\"text/javascript\">
<!--
window.close();
-->
</script>";
}

return $output;

}

blind-eddie
02-06-2016, 01:24 AM
Well, before I made the edit, I check all the game rating location that were edited and none are there anymore, not sure why.
So, I added the edit and the rating popup does not auto close plus I was having an issue with the games accepting a rating.

So, I removed the edit for now.

stangger5
02-06-2016, 01:43 AM
Left out one edit..

I fixed the post above and fixed it on your site..

blind-eddie
02-06-2016, 02:23 AM
OK, Thanks. That was quick.

Still having a few issues with Rate game links not where they were, no way to rate any game until after you play it on the comment page of score submission. If you do not rate it there, you can not rat anywhere plus on rated games the rating does not show on the high score page.
Remember all the game rating edits you did a long time ago? They are gone, lol
No hurry, look into it when you can.
Thank you sir.