Jump to content

Featured Replies

comment_94594

Ребят у меня такая фигня помогите пожалуйста! 

 

Screenshot_4.png

И где тут "фигня?"

comment_94598

Открываем шаблон forumIndexTemplate ( Список тем форума ) Находим:

var unreadIcon = "<img src='{$this->settings['img_url']}/f_icon_read.png' />";

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

ipb.forums.modPerms	  = [];
	<if test="$this->memberData['g_is_supmod']">
		ipb.forums.modPerms['approve'] = 1;
		ipb.forums.modPerms['delete'] = 1;
		ipb.forums.modPerms['hide'] = 1;
		ipb.forums.modPerms['unhide'] = 1;
		ipb.forums.modPerms['pin'] = 1;
		ipb.forums.modPerms['unpin'] = 1;
		ipb.forums.modPerms['open'] = 1;
		ipb.forums.modPerms['close'] = 1;
		ipb.forums.modPerms['move'] = 1;
		ipb.forums.modPerms['merge'] = 1;
	<else />
		<if test="isset( $this->memberData['forumsModeratorData'][ $forum_data['id'] ] )">
			ipb.forums.modPerms['approve'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['topic_q']};
			ipb.forums.modPerms['delete'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['delete_topic']};
			ipb.forums.modPerms['hide'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['bw_mod_soft_delete']};
			ipb.forums.modPerms['unhide'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['bw_mod_un_soft_delete']};
			ipb.forums.modPerms['pin'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['pin_topic']};
			ipb.forums.modPerms['unpin'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['unpin_topic']};
			ipb.forums.modPerms['open'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['open_topic']};
			ipb.forums.modPerms['close'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['close_topic']};
			ipb.forums.modPerms['move'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['move_topic']};
			ipb.forums.modPerms['merge'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['split_merge']};
		</if>
	</if>

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


Guest
Ответить в этой теме...

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

  • No registered users viewing this page.