Skip to content

описание форума

Приветствую, уважаемый форумчане. Подскажите как сделать так, чтобы при наведении на форум появлялась окошко с его описанием, как можно было сделать на 3-ке?

заранее спасибо!

Featured Replies

Не вижу в 3-ке никаких окошек.

Для тройки есть такой хук, называется Forum Description on Hover.

  • Author

да, вот именно этот хук. есть какое-то решение для 4ки?

Открыть шаблон forumRow

Найти и удалить

			{{if $forum->description}}
			<div class="ipsDataItem_meta ipsType_richText ipsContained">{$forum->description|raw}</div>
		{{endif}}

 

Находим

			<h4 class="ipsDataItem_title ipsType_large ipsType_break">
			{{if $forum->password && !$forum->loggedInMemberHasPasswordAccess()}}
				<a href="{$forum->url()->setQueryString( 'passForm', '1' )}" data-ipsDialog data-ipsDialog-size='narrow' data-ipsDialog-title='{lang="forum_requires_password"}'>{$forum->_title}</a>
			{{else}}
				<a href="{$forum->url()}">{$forum->_title}</a>
			{{endif}}
			{{if $forum->redirect_on}}
				  <span class='ipsType_light ipsType_medium'>({lang="redirect_hits" pluralize="$forum->redirect_hits"})</span>
			{{endif}}
		</h4>

Тут 3 вида: форум под паролем, обычный форум, форум-ссылка

К каждому добавляем

{{if $forum->description}}data-ipsTooltip data-ipstooltip-safe="true" _title="{$forum->description}"{{endif}}

Если код совпадает, то окончательный вариант

			<h4 class="ipsDataItem_title ipsType_large ipsType_break">
			{{if $forum->password && !$forum->loggedInMemberHasPasswordAccess()}}
				<a {{if $forum->description}}data-ipsTooltip data-ipstooltip-safe="true" _title="{$forum->description}"{{endif}} href="{$forum->url()->setQueryString( 'passForm', '1' )}" data-ipsDialog data-ipsDialog-size='narrow' data-ipsDialog-title='{lang="forum_requires_password"}'>{$forum->_title}</a>
			{{else}}
				<a {{if $forum->description}}data-ipsTooltip data-ipstooltip-safe="true" _title="{$forum->description}"{{endif}} href="{$forum->url()}">{$forum->_title}</a>
			{{endif}}
			{{if $forum->redirect_on}}
				  <span {{if $forum->description}}data-ipsTooltip data-ipstooltip-safe="true" _title="{$forum->description}"{{endif}} class='ipsType_light ipsType_medium'>({lang="redirect_hits" pluralize="$forum->redirect_hits"})</span>
			{{endif}}
		</h4>

Create an account or sign in to comment

Account

Navigation

Search

Search

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.