Menu

#1 Error: The member has blocked you.

open
nobody
None
5
2004-07-01
2004-07-01
No

in line 2319 ipbsdk_class.inc.php add "!" as done here:
// Block Check
if (!$this->is_pmblocked
($GLOBALS['ibforums']->member['id'], intval($to_id))) {
$this->sdkerror
($this->lang['sdk_pm_mem_blocked']);
return FALSE;
}

Discussion

  • Abdul-Aziz Al-Oraij (pk Top Man)

    Logged In: YES
    user_id=337120

    Change the function is_pmblocked() since it works as
    is_allowed():
    function is_pmblocked($by, $blocked) {
    $this->DB->query ("SELECT id, allow_msg
    FROM ibf_contacts WHERE contact_id='" . $by . "' AND
    member_id='" . $blocked . "'");
    if ($cando = $this->DB->fetch_row()) {
    return intval($cando
    ['allow_msg'])?FALSE:TRUE;
    // return (bool)$cando['allow_msg'];
    } else {
    return FALSE;
    }
    }

     
  • Abdul-Aziz Al-Oraij (pk Top Man)

    Logged In: YES
    user_id=337120

    Please descard my first statement, and use the function
    change.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.