temporarily closed

Discussion in 'Bugs Report and Tracking' started by macbean, Mar 23, 2010.

  1. macbean New Member

    I've seen references to this error but don't see a resolution. I've got phpbb3.05 and the latest 1.5.3 version set up.

    When an iphone user goes to check their PMs, they get the temporarily closed messaged.

    Is there some posts I might have missed?
  2. Yao Android Developer

    Hi macbean,

    Please PM Jayeley and me the url and test account of your forum. We will take a look and update you.

    Thanks,
    Yao
  3. macbean New Member

    PM with URL and login info sent.
  4. Elglobo Super Moderator

    You can also PM me if Jayeley didn't already reply to you ;)
  5. Elglobo Super Moderator

    Re

    Hi macbean,

    Please PM to jayeley and me FTP access to the mobiquo folder. We need it to debug the issue.

    Thanks you ;)
  6. Elglobo Super Moderator

    Hi macbean,

    I found the issue, to understand and fix, give me a link to download a zip of your file /forum/includes/functions_privmsgs.php

    ;)
  7. jujupointcom New Member

    Is this fix global and can be shared, or is it something specific ?
    Thanks
  8. Elglobo Super Moderator

    Re

    For now, I can't say, because this issue seems to be caused by the phpBB installation, so I'm awaiting to have the file requested.
  9. macbean New Member

    I have placed a copy in the mobiquo folder.
  10. Elglobo Super Moderator

    So It's well what I thought. Your phpBB installation (3.0.5) is incomplete.
    Open this file and search:
    Code:
    ?>
    Add before
    Code:
    /**
    * Set correct users max messages in PM folder.
    * If several group memberships define different amount of messages, the highest will be chosen.
    */
    function set_user_message_limit()
    {
    	global $user, $db, $config;
    
    	// Get maximum about from user memberships - if it is 0, there is no limit set and we use the maximum value within the config.
    	$sql = 'SELECT MAX(g.group_message_limit) as max_message_limit
    		FROM ' . GROUPS_TABLE . ' g, ' . USER_GROUP_TABLE . ' ug
    		WHERE ug.user_id = ' . $user->data['user_id'] . '
    			AND ug.user_pending = 0
    			AND ug.group_id = g.group_id';
    	$result = $db->sql_query($sql);
    	$message_limit = (int) $db->sql_fetchfield('max_message_limit');
    	$db->sql_freeresult($result);
    
    	$user->data['message_limit'] = (!$message_limit) ? $config['pm_max_msgs'] : $message_limit;
    }
    Update this file on your FTP and all would be works fine ;)
  11. macbean New Member

    interesting. I'll make the change and have someone test it.
  12. macbean New Member

    okay, that fixed it. wonder what else is missing in my install.

    Thanks for the help

Share This Page