Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Guest RSS-Bot

Важное с Sysman.Ru: Просмотр предупреждений всем

Recommended Posts

Guest RSS-Bot

Song: Ниже представлены исправления для следующих версий форума:

  • 1.х (чуть ниже)
  • 2.1.х

Share this post


Link to post
Share on other sites
Guest RSS-Bot

Song:

Ниже представлены исправления для следующих версий форума:

  • 1.х (чуть ниже)
  • 2.1.х

Share this post


Link to post
Share on other sites
Guest RSS-Bot

Song: Решение для 2.1.x:

 

1. Найти:

Цитата (/sources/action_public/topics.php)
            [b]if[/b] ( ( [b]isset[/b]([color=#048284]$this[/color]->ipsclass->member['_moderator'][ [color=#048284]$this[/color]->topic['forum_id'] ]['allow_warn'])                [b]AND[/b] [color=#048284]$this[/color]->ipsclass->member['_moderator'][ [color=#048284]$this[/color]->topic['forum_id'] ]['allow_warn'] )                [b]OR[/b] ( [color=#048284]$this[/color]->ipsclass->member['g_is_supmod'] == [color=navy]1[/color] )                [b]OR[/b] ( [color=#048284]$this[/color]->ipsclass->vars['warn_show_own'] [b]and[/b] ( [color=#048284]$this[/color]->ipsclass->member['id'] == [color=#048284]$member[/color]['id'] ) )                )            {

Заменить на:

            [b]if[/b]([color=navy]1[/color])            {

2. Найти:

Цитата (sources/action_public/profile.php)
                [b]if[/b] ( [color=#048284]$pass[/color] == [color=navy]1[/color] )                {                    [b]if[/b] ( ! [color=#048284]$this[/color]->ipsclass->vars['warn_show_rating'] )                    {

Заменить на:

                [b]if[/b] ( [color=navy]1[/color] )                {                    [b]if[/b] ( ! [color=#048284]$this[/color]->ipsclass->vars['warn_show_rating'] )                    {

3. Найти:

Цитата (sources/misc/warn.php)
            [b]else[/b]            {                [color=#048284]$pass[/color] = [color=navy]0[/color];            }

Заменить на:

            [b]else[/b]            {                [color=#048284]$pass[/color]               = [color=navy]1[/color];                [color=#048284]$this[/color]->can_ban      = [color=navy]0[/color];                [color=#048284]$this[/color]->can_mod_q    = [color=navy]0[/color];                [color=#048284]$this[/color]->can_rem_post = [color=navy]0[/color];                [color=#048284]$this[/color]->times_a_day  = [color=navy]0[/color];                [color=#048284]$this[/color]->type         = 'member';            }

© Sannis, IBR

Share this post


Link to post
Share on other sites
Guest RSS-Bot

Song: Решение для 2.1.x:

 

1. Найти:

Цитата (/sources/action_public/topics.php)
            [b]if[/b] ( ( [b]isset[/b]([color=#048284]$this[/color]->ipsclass->member['_moderator'][ [color=#048284]$this[/color]->topic['forum_id'] ]['allow_warn'])                [b]AND[/b] [color=#048284]$this[/color]->ipsclass->member['_moderator'][ [color=#048284]$this[/color]->topic['forum_id'] ]['allow_warn'] )                [b]OR[/b] ( [color=#048284]$this[/color]->ipsclass->member['g_is_supmod'] == [color=navy]1[/color] )                [b]OR[/b] ( [color=#048284]$this[/color]->ipsclass->vars['warn_show_own'] [b]and[/b] ( [color=#048284]$this[/color]->ipsclass->member['id'] == [color=#048284]$member[/color]['id'] ) )                )            {

Заменить на:

            [b]if[/b]([color=navy]1[/color])            {

2. Найти:

Цитата (sources/action_public/profile.php)
                [b]if[/b] ( [color=#048284]$pass[/color] == [color=navy]1[/color] )                {                    [b]if[/b] ( ! [color=#048284]$this[/color]->ipsclass->vars['warn_show_rating'] )                    {

Заменить на:

                [b]if[/b] ( [color=navy]1[/color] )                {                    [b]if[/b] ( ! [color=#048284]$this[/color]->ipsclass->vars['warn_show_rating'] )                    {

3. Найти:

Цитата (sources/misc/warn.php)
            [b]else[/b]            {                [color=#048284]$pass[/color] = [color=navy]0[/color];            }

Заменить на:

            [b]else[/b]            {                [color=#048284]$pass[/color]               = [color=navy]1[/color];                [color=#048284]$this[/color]->can_ban      = [color=navy]0[/color];                [color=#048284]$this[/color]->can_mod_q    = [color=navy]0[/color];                [color=#048284]$this[/color]->can_rem_post = [color=navy]0[/color];                [color=#048284]$this[/color]->times_a_day  = [color=navy]0[/color];                [color=#048284]$this[/color]->type         = 'member';            }

© Sannis, IBR

Share this post


Link to post
Share on other sites
Guest RSS-Bot

Song: Решение для 1.x:

 

Найти:

Цитата (Topics.php)
 [b]if[/b] (     ( [color=#048284]$ibforums[/color]->member['is_mod'] [b]AND[/b] [color=#048284]$ibforums[/color]->member['allow_warn'] )  [b]or[/b] ( [color=#048284]$ibforums[/color]->member['g_is_supmod'] == [color=navy]1[/color] )  [b]or[/b] ( [color=#048284]$ibforums[/color]->vars['warn_show_own'] [b]and[/b] ( [color=#048284]$ibforums[/color]->member['id'] == [color=#048284]$member[/color]['id'] ) )    )  

Закомментировать или стереть.

 

Найти:

Цитата (warn.php)
      [b]else[/b] [b]if[/b] ( [color=#048284]$ibforums[/color]->vars['warn_show_own'] [b]and[/b] [color=#048284]$ibforums[/color]->member['id'] == [color=#048284]$ibforums[/color]->input['mid'] )        {          [color=#048284]$pass[/color]              = [color=navy]1[/color];          [color=#048284]$this[/color]->can_ban      = [color=navy]0[/color];      [color=#048284]$this[/color]->can_mod_q    = [color=navy]0[/color];      [color=#048284]$this[/color]->can_rem_post = [color=navy]0[/color];      [color=#048284]$this[/color]->times_a_day  = [color=navy]0[/color];      [color=#048284]$this[/color]->type        = 'member';        }        [b]else[/b]        {          [color=#048284]$pass[/color] = [color=navy]0[/color];        }

удалить выделенный цветом кусок

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...