Jump to content

Featured Replies

Не выходят функции "Удалить,скрыть,изменить" и т.п,когда отмечаешь 2 или более сообщений. Как их вернуть?

 

post-18892-0-78838300-1404971862_thumb.j

Link to comment
https://ipbmafia.ru/topic/8685-dobavka-funkcij/
Share on other sites

У вас ошибка связанная с используемым движком или стилем, попробуйте изменить то или другое. 

Link to comment
https://ipbmafia.ru/topic/8685-dobavka-funkcij/?&do=findComment&comment=67874
Share on other sites

Не выходят функции "Удалить,скрыть,изменить" и т.п,когда отмечаешь 2 или более сообщений. Как их вернуть?

Что за стиль?

 

Пробуйте так:

 

шаблон:
topicViewTemplate
 
найти
<script type="text/javascript">

Ниже добавить:

//<![CDATA[
	ipb.topic.inSection    = 'topicview';
	ipb.topic.topic_id     = {$topic['tid']};
	ipb.topic.forum_id     = {$forum['id']};
	ipb.topic.redirectPost = 1;
	ipb.topic.start_id     = {parse expression="$this->registry->getClass('topics')->pageToSt( intval($this->request['page']) )"};
	ipb.topic.page_id      = {parse expression="intval($this->request['page'])"};
	ipb.topic.topPid       = 0;
	ipb.topic.counts       = { postTotal: {parse expression="intval($topic['posts']+1)"},
							  curStart:  ipb.topic.start_id,
							  perPage:   {parse expression="intval($this->settings['display_max_posts'])"} };
	//Search Setup
	ipb.vars['search_type']			= 'forum';
	ipb.vars['search_type_id']		= {$forum['id']};
	ipb.vars['search_type_2']		= 'topic';
	ipb.vars['search_type_id_2']	= {$topic['tid']};
	
	<if test="canDeleteUrls:|:!$this->member->is_not_human">
	// Delete stuff set up
	ipb.topic.deleteUrls['hardDelete'] = new Template( ipb.vars['base_url'] + "app=forums&module=moderate&section=moderate&do=04&f={$forum['id']}&t={$topic['tid']}&page={$this->request['page']}&auth_key={$this->member->form_hash}&p=#{pid}" );
	ipb.topic.deleteUrls['softDelete'] = new Template( ipb.vars['base_url'] + "app=forums&module=moderate&section=moderate&do=postchoice&tact=sdelete&t={$topic['tid']}&f={$forum['id']}&auth_key={$this->member->form_hash}&selectedpids[#{pid}]=#{pid}&pid=#{pid}" );
	</if>
	
	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>");
	
//]]>
Link to comment
https://ipbmafia.ru/topic/8685-dobavka-funkcij/?&do=findComment&comment=67876
Share on other sites

Naout,стиль Splat!

Премного благодарен.

Link to comment
https://ipbmafia.ru/topic/8685-dobavka-funkcij/?&do=findComment&comment=67878
Share on other sites
Guest
This topic is now closed to further replies.

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

  • No registered users viewing this page.