Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Пропала кнопка "Вопрос решен".

Featured Replies

Posted

Всем привет. Вообщем, установил новый стиль, вроде бы всё нормально, но заметил что пропала кнопка "Вопрос решен". Кнопку то я восстановил, но работает она не корректно. То есть, просто закрывает тему и всё. Ну, а должна как вы понимаете закреплять лучший ответ в начале темы и т.д

 

Помогите пожалуйста разобраться.

  • Author

Ну, по сути стиль Splat Edition! был скачен для версии 3.4.x, у меня 3.4.6

Раз проблема именно с этим стилем (т.е с другими 100% работает), то следует задать вопрос в теме поддержки стиля

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

 

Кнопку то я восстановил, но работает она не корректно.
Помимо кнопки нужно восстановить блок "лучшего ответа" и включить соответствующую опцию в настройках нужного форума.
  • Author

LvsF, ну, я как раз имел ввиду что лучший ответ не дублируется и не располагается в верхней части темы. Соответствующие настройки включены, а вот блок "лучшего ответа" я кажись не восстановил. Не подскажите пожалуйста где его взять и куда вставить?

Шаблон topicViewTemplate

До 

<if test="topicHasBeenHidden:|:$topic['approved'] == -1">

Добавить

<if test="bestAnswer:|:$displayData['best_answer_post_data']">
<br />
<div class='post post_block feature_box entry-content'>
	<if test="canSeeProfiles1:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $displayData['best_answer_post_data']['author'] ) )">
	<a itemprop="url" href="{parse url="showuser={$displayData['best_answer_post_data']['author']['member_id']}" template="showuser" seotitle="{$displayData['best_answer_post_data']['author']['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$displayData['best_answer_post_data']['author']['members_display_name']}" class='ipsUserPhotoLink'>
	</if>
	<img itemprop="image" src='{$displayData['best_answer_post_data']['author']['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_medium left' />
	<if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $displayData['best_answer_post_data']['author'] ) )">
	</a>
	</if>
	<div class="ipsBox_withphoto">
	<p class='ipsType_sectiontitle'>
		<span class='ipsBadge ipsBadge_green'>{$this->lang->words['topic_best_answer']}</span>
		{parse template="userHoverCard" group="global" params="$displayData['best_answer_post_data']['author']"},
		<if test="samePageBA:|:isset($post_data[ $displayData['best_answer_post_data']['post']['pid'] ])">
			<if test="hasPagesBA:|:$this->request['page']">
				<a href='{parse url="showtopic={$topic['tid']}&amp;page={$this->request['page']}{$post_data[ $displayData['best_answer_post_data']['post']['pid'] ]['post']['PermalinkUrlBit']}#entry{$displayData['best_answer_post_data']['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}'>{parse date="$displayData['best_answer_post_data']['post']['post_date']" format="long"}</a>
			<else />
				<a href='{parse url="showtopic={$topic['tid']}{$post_data[ $displayData['best_answer_post_data']['post']['pid'] ]['post']['PermalinkUrlBit']}#entry{$displayData['best_answer_post_data']['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}'>{parse date="$displayData['best_answer_post_data']['post']['post_date']" format="long"}</a>
			</if>
		<else />
			<a href="{parse url="app=forums&amp;module=forums&amp;section=findpost&amp;pid={$displayData['best_answer_post_data']['post']['pid']}" base="public"}">{parse date="$displayData['best_answer_post_data']['post']['post_date']" format="long"}</a>
		</if>
	</p>
	<p class='ipsPad_top desc'>
		{$displayData['best_answer_post_data']['post']['post']}
		<if test="samePageBA2:|:isset($post_data[ $displayData['best_answer_post_data']['post']['pid'] ])">
			<if test="hasPagesBA2:|:$this->request['page']">
				<a href='{parse url="showtopic={$topic['tid']}&amp;page={$this->request['page']}{$post_data[ $displayData['best_answer_post_data']['post']['pid'] ]['post']['PermalinkUrlBit']}#entry{$displayData['best_answer_post_data']['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}'>
			<else />
				<a href='{parse url="showtopic={$topic['tid']}{$post_data[ $displayData['best_answer_post_data']['post']['pid'] ]['post']['PermalinkUrlBit']}#entry{$displayData['best_answer_post_data']['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}'>
			</if>
		<else />
			<a href="{parse url="app=forums&amp;module=forums&amp;section=findpost&amp;pid={$displayData['best_answer_post_data']['post']['pid']}" base="public"}">
		</if>
			<span class='ipsBadge has_icon ipsBadge_lightgrey'>{$this->lang->words['answer_gotopost']} <img class='icon' src="{$this->settings['img_url']}/right_white_10px.png"></span></a>
	</p>
	</div>
</div>
</if>

  • Author

При нажатии на кнопку "Вопрос решен" пишет "Извините, вы не имеете доступа к этому!", хотя я администратор. Посмотрел старые темы где кнопка "Вопрос решен" уже была нажата, сообщение продублировано сверху как и положено, но кнопки "Вопрос не решен" почему-то нет.

  • Author

В настройках форума разрешено пользоваться кнопкой?

Код кнопки скиньте

Конечно разрешено, на стандартном стиле всё работает.

 

Код кнопки "Вопрос решен".

<li>
<a href="__pawno-crmp.ru/index.php?app=forums&amp;module=extras&amp;section=answer&amp;do=answer&amp;t=413&amp;pid=1554&amp;auth_key=3785a5c28ea8348233a6213f30a9f619" data-post-button="answer" class="ipsButton_secondary" data-pid="1554"><img class="icon" src="__pawno-crmp.ru/public/style_images/master/tick_10px.png">Вопрос решен</a>
</li>

Код кнопки "Вопрос решен".
Это Вы из шаблона post скопировали или из исходного кода?

 

Сравните коды указанного шаблона проблемного и дефолтного стилей.

  • Author

Это Вы из шаблона post скопировали или из исходного кода?

 

Сравните коды указанного шаблона проблемного и дефолтного стилей.

 

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

  • Author

Короче, боле мене вроде разобрался, теперь нужно восстановить правильно кнопки "Вопрос решен" и "Вопрос не решен". Сейчас у меня так: нажимаю "Вопрос решен" и эта кнопка пропадает, а должна появляться "Вопрос не решен".

 

Код:

<if test="canAnswerTopic:|:$topic['Perms']['canAnswerTopic'] && $post['post']['post_count'] > 1">
						<if test="isAnswered:|:$post['post']['_isMarkedAnswered']">
							<if test="canUnanswer:|:$post['post']['_canMarkUnanswered']">
								<li><a href="{parse url="module=extras&amp;section=answer&amp;do=unanswer&amp;t={$this->request['t']}&amp;pid={$post['post']['pid']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}"  data-post-button="unanswer" class='ipsButton_secondary important' data-pid="{$post['post']['pid']}">{$this->lang->words['topic_mark_unsolved']}</a></li>
							</if>
						<else />
							<if test="notAnswered:|:$post['post']['_canAnswer'] && $topic['topic_firstpost'] != $post['post']['pid']">
								<li><a href="{parse url="module=extras&amp;section=answer&amp;do=answer&amp;t={$this->request['t']}&amp;pid={$post['post']['pid']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}"  data-post-button="answer" class='ipsButton_secondary' data-pid="{$post['post']['pid']}">{$this->lang->words['topic_mark_solved']}</a></li>
							</if>
						</if>
					</if>

LvsF, спасибо, вроде во всё разобрался, сейчас осталось только красоту навести. Спасибо большое! :)

Edited by Amfy

Guest
This topic is now closed to further replies.

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

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.