Jump to content

проблема с шаблоном(действия)

Featured Replies

Posted
comment_44504

Всем привет) У меня такая беда(, этого шаблона у меня нету для IPB 3.4.x, он под IPB 3.3.x

И вот проблема:

post-2269-0-75742500-1380214679_thumb.jp

 

Когда ставлю галочку на теме, ниже рамка и там написано сколько я тем отметил, но проблема там нету действий там пусто(( Что можно зделать чтоб появились действия? Заранее спасибо))))))))

 

  • Author
comment_44506

было уже пользуйся поиском

 

помоги найти, я лично не нашёл) хоть помощ мне) поставлю тебе галочку)))))

comment_44507

 в topicViewTemplate: 

найди код:

 

 

 
ipb.templates['post_moderation'] = new Template("<div id='comment_moderate_box' class='ipsFloatingAction' style='display: none'><span class='desc'>{$this->lang->words['comment_action_count']} </span><select id='tactInPopup' class='input_select'><option value='approve'>{$this->lang->words['cpt_approve']}</option><option value='delete'>{$this->lang->words['cpt_hide']}</option><option value='sundelete'>{$this->lang->words['cpt_undelete']}</option><option value='deletedo'>{$this->lang->words['cpt_delete']}</option><option value='merge'>{$this->lang->words['cpt_merge']}</option><option value='split'>{$this->lang->words['cpt_split']}</option><option value='move'>{$this->lang->words['cpt_move']}</option></select>&nbsp;&nbsp;<input type='button' class='input_submit' id='submitModAction' value='{$this->lang->words['comments_act_go']}' /></div>");

 

 

замени на: 


ipb.topic.modPerms  = [];

 

<if test="$this->memberData['g_is_supmod']">
ipb.topic.modPerms['approve'] = 1;
ipb.topic.modPerms['delete'] = 1;
ipb.topic.modPerms['hide'] = 1;
ipb.topic.modPerms['unhide'] = 1;
ipb.topic.modPerms['merge'] = 1;
ipb.topic.modPerms['split'] = 1;
ipb.topic.modPerms['move'] = 1;
<else />
<if test="isset( $this->memberData['forumsModeratorData'][ $forum['id'] ] )">
ipb.topic.modPerms['approve'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['post_q']};
ipb.topic.modPerms['delete'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['delete_post']};
ipb.topic.modPerms['hide'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['bw_mod_soft_delete']};
ipb.topic.modPerms['unhide'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['bw_mod_un_soft_delete']};
ipb.topic.modPerms['merge'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['split_merge']};
ipb.topic.modPerms['split'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['split_merge']};
ipb.topic.modPerms['move'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['split_merge']};
</if>
</if>
 

ipb.templates['post_moderation'] = new Template("<div id='comment_moderate_box' class='ipsFloatingAction' style='display: none'><span class='desc'>{$this->lang->words['comment_action_count']} </span><select id='tactInPopup' class='input_select'><option value='approve'>{$this->lang->words['cpt_approve']}</option><option value='delete'>{$this->lang->words['cpt_hide']}</option><option value='sundelete'>{$this->lang->words['cpt_undelete']}</option><option value='deletedo'>{$this->lang->words['cpt_delete']}</option><option value='merge'>{$this->lang->words['cpt_merge']}</option><option value='split'>{$this->lang->words['cpt_split']}</option><option value='move'>{$this->lang->words['cpt_move']}</option></select>&nbsp;&nbsp;<input type='button' class='input_submit' id='submitModAction' value='{$this->lang->words['comments_act_go']}' /></div>");

 



Edited by MontiQ

Guest
This topic is now closed to further replies.

Последние посетители 0

  • No registered users viewing this page.