1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest Phrase change

Discussion in 'Closed Suggestions' started by Moshe1010, Jun 12, 2013.

  1. Moshe1010

    Moshe1010 Well-Known Member

    The phrase: you_have_been_banned
    Should be: you have been permanently banned from {board}
    Or without from {board}

    Currently, users that were permanently banned don't get any information about that. It's just showing that they have been banned. I know that common sense plays a great role in our lives, but some people just don't have it.

    Thanks.
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    That phrase is utilized for both permanent and temporary bans.
     
  3. Moshe1010

    Moshe1010 Well-Known Member

  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    Yes. If you ban someone temporarily, without a reason, it still says "You have been banned." To be more exact...
    PHP:
                if ($bannedUser['user_reason'])
                {
                    
    $message = new XenForo_Phrase('you_have_been_banned_for_following_reason_x', array('reason' => $bannedUser['user_reason']));
                }
                else
                {
                    
    $message = new XenForo_Phrase('you_have_been_banned');
                }
                if (
    $bannedUser['end_date'] > XenForo_Application::$time)
                {
                    
    $message.= ' ' . new XenForo_Phrase('your_ban_will_be_lifted_on_x', array('date' => XenForo_Locale::dateTime($bannedUser['end_date'])));
                }
    It'll appened an end date (your_ban_will_be_lifted_on_x) if there is an end date. If there is a ban reason specified, it'll utilize you_have_been_banned_for_following_reason_x. Else, it always uses you_have_been_banned. The way the code in its current form functions, doesn't support a 'permanent' / 'temporary' ban phrase. If a user is temporarily banned with your suggested change, it'll tell him that he is permanently banned, but that it'll be lifted at a certain point in time (which is confusing).
     
    Brandon Sheley likes this.
  5. Moshe1010

    Moshe1010 Well-Known Member

    Then adding a phrase or two would solve it.
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    The suggestion, as described in the first post wouldn't work for the reasons I've stated. I'm neither for nor against the idea, I'm just explaining why its just "You have been banned."
     
  7. Moshe1010

    Moshe1010 Well-Known Member

    You're right, it wouldn't work. Therefore, my second suggestion would be adding a phrase in between (I guess this is a possible solution?)
     

Share This Page