Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

[Release] Game Section Points
#31

Hi I am using this on MYBB 1.6.3 but when players submit a score they get a blank/white screen, but the score still saves
Any ideas why the blank screen is happening instead of returning to the scores?
Thanks in advance
Reply
#32

What about when you disable this plugin? Does that happen too?
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#33

no only when the plug in is active
Reply
#34

I cannot replicate that.

Can you please open the plugin file and find:
PHP Code:
function newpoints_gamesection_score() // high score
{
    global 
$db$mybb;
    
    if(
$mybb->user['uid'])
        
newpoints_addpoints($mybb->user['uid'], $mybb->settings['newpoints_gamesection_score']);


Replace with:
PHP Code:
function newpoints_gamesection_score() // high score
{
    
/*global $db, $mybb;
    
    if($mybb->user['uid'])
        newpoints_addpoints($mybb->user['uid'], $mybb->settings['newpoints_gamesection_score']);*/


Does it return to the page now?
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#35

thanks but no it still goes to a white page?
Reply
#36

That's pretty weird.

Find:
PHP Code:
    $plugins->add_hook("games_submit_insert_score""newpoints_gamesection_score");
    
$plugins->add_hook("games_submit_update_score""newpoints_gamesection_score"); 

Replace with:
PHP Code:
    // $plugins->add_hook("games_submit_insert_score", "newpoints_gamesection_score");
    // $plugins->add_hook("games_submit_update_score", "newpoints_gamesection_score"); 
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#37

Hi I changed that and it's still the same
Reply
#38

Alright so it's definitely not a problem with the code. Please re-download and re-upload without editing anything.

If it still doesn't work, I can't help you no more because the code isn't doing anything to change the behaviour of anything.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#39

ok have done that but still the same, I've noticed that once you save the score the return URL is games.php but it should be the URL of the game score you saved, would that explain the white page??
Reply
#40

No, I don't think it is related to that. I doubt my plugin is causing issues though, I've tested it on my localhost and no one has reported any issues so far. And the issue you're reporting should definitely not becaused by it...I guess
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply




Users browsing this thread: 1 Guest(s)