Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация 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.

Хочу перенести блок Пользователей онлайн в верхнюю часть сайта, IP.Board 3.4.7

Опубликовано:

Доброе время суток, Хочу перенести блок Пользователей онлайн в верхнюю часть сайта (допустим), IP.Board 3.4.7

Но не знаю как это сделать, можно ли как не будь это сообразить?

Рекомендованные сообщения

Опубликовано:

Внешний вид - Ваш шаблон - Список форумов - boardIndexTemplate

 

Ищите:

 

<div id='board_statistics' class='statistics clearfix'>
<ul id='stat_links' class='ipsList_inline right ipsType_small'>
	<if test="statsLinks:|:1==1"> <!-- Hook point -->
		<li><a href="{parse url="app=forums&module=extras&section=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li>
		<li><a href="{parse url="app=forums&module=extras&section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li>
		<li><a href="{parse url="app=members&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public" seotitle="false"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li>
		<if test="reputationEnabled:|:$this->settings['reputation_enabled']">
			<li>
				<a href="{parse url="app=members&module=reputation&section=most" base="public" template="most_liked" seotitle="most_liked"}" title="<if test="reputationTypeTitle:|:$this->settings['reputation_point_types'] == 'like'">{$this->lang->words['most_rep_likes']}<else />{$this->lang->words['most_rep_rep']}</if>">
					<if test="reputationType:|:$this->settings['reputation_point_types'] == 'like'">
						{$this->lang->words['most_rep_likes']}
					<else />
						{$this->lang->words['most_rep_rep']}
					</if>
				</a>
			</li>
		</if>
	</if>
</ul>

<if test="showActive:|:$this->settings['show_active'] && $this->memberData['gbw_view_online_lists']">
	<h4 class='statistics_head'>{parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"} {$this->lang->words['active_users']}</h4>
	<p class='statistics_brief desc'>
		{parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"}
		<if test="onlineListEnabled:|:$this->settings['allow_online_list']">  <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}' title='{$this->lang->words['online_link']}'>({$this->lang->words['online_link']})</a></if>
	</p>
</if>
<if test="activeNames:|:count($stats['NAMES']) && $this->settings['show_active']">
	<br />
	<p>
		<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>
	</p>
</if>
</div>

 

Копируете этот код (по желанию комментируете).

 

В этом же - boardIndexTemplate

Ищите:

<div id='board_index' class='ipsLayout <if test="sideBarEnabledL:|:$this->templateVars['sidebar_enabled']">ipsLayout_withright</if> ipsLayout_largeright clearfix <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">no_sidebar</if>'>  

 

И ниже вставляете код

Опубликовано:
  • Автор

Спасибо огромное)

Опубликовано:
  • Автор

А вот можно еще вопрос?, можно ли как то этот контекст допустим сделать так чтобы он отображался на другой странице html или php ?

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

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.