sandrosso Опубликовано 5 Апреля 2005 Жалоба Поделиться Опубликовано 5 Апреля 2005 Я устанавливаю в админке что гости не могут добавлять комментарии. И это отключается, тоесть кнопка добавления комментария пропадает а вот форма быстрого ответа остатся.. поэтому грошь цена найтрокам в админке. вообщем я так понял что это дело налаживается в файле modules/gallery/img_view.phpвот куски кода из него // ------------------------------------------------------- // Quck Reply // ------------------------------------------------------- $this->output .= $this->html->page_end(); $allow_comments = ( $this->category->data ) ? $this->category->data[$this->data['category_id']]['allow_comments'] : 1; if( $ibforums->member['g_comment'] && $allow_comments ) { $show = "none"; $sqr = $std->my_getcookie("open_qr"); if ( $sqr == 1 ) { $show = "show"; } $ibforums->input['img'] = $this->data['id']; $this->output = str_replace( "<!--IBF.QUICK_REPLY_CLOSED-->", $this->html->quick_reply_box_closed(), $this->output ); $this->output = str_replace( "<!--IBF.QUICK_REPLY_OPEN-->" , $this->html->quick_reply_box_open($this->topic['forum_id'], $this->topic['tid'], $show, $this->md5_check), $this->output ); } // ------------------------------------------------------- // Quick Reply // ------------------------------------------------------- $this->output .= $this->html->page_end(); $ibforums->input['img'] = $this->data['id']; $this->output = str_replace( "<!--IBF.QUICK_REPLY_CLOSED-->", $this->html->quick_reply_box_closed(), $this->output ); $this->output = str_replace( "<!--IBF.QUICK_REPLY_OPEN-->" , $this->html->quick_reply_box_open($this->topic['forum_id'], $this->topic['tid'], $show, $this->md5_check), $this->output ); ПОЧЕМУ ТАК???? Цитата Ссылка на комментарий Поделиться на других сайтах Прочее
Рекомендуемые сообщения
Присоединиться к обсуждению
Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.