Перейти к публикации
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.

Сайдбар с левой стороны форума

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

Доброго времени суток.

На форуме все блоки отображаются с правой стороны(Как,например,у Вас...блоки "Последние записи в блогах", "Последние темы"...)

Я бы хотела, чтобы всё это зеркально перенеслось на левую сторону.

Как это реализовать?Такое технически возможно?

 

 

877e9226f51a.png

 

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

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

Боковой сайдбар находится в блоке #index_stats с классом .ipsLayout_right, который позиционирует его по правому краю. Перевести можно если переверстать его по левому краю.

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

@Sarcma, посмотрите скелет

Лишнее можно убрать.

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

Спасибо.Я попробую

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

Сайдбар с левой стороны.

 

1. Редактирование шаблона boardIndexTemplate

 

- Находим

	<if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
	<div id='index_stats' class='ipsLayout_right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>
		<foreach loop="side_blocks:$side_blocks as $block">
			{$block}
		</foreach>
	</div>
	<a href='#' id='toggle_sidebar' title='{$this->lang->words['toggle_sidebar']}' data-closed="{$this->lang->words['_laquo']}" data-open="×"> </a>
</if>

 

- Вырезаем и переносим выше

	<div id='categories' class='ipsLayout_content clearfix'>

 

Класс ipsLayout_right заменяем на ipsLayout_left

 

- Находим

<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>'>	

и заменяем на

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

 

2. Редактирование ipb_styles.css

 

- Находим

	#board_index.no_sidebar { padding-right: 0px; }
	#board_index.force_sidebar { padding-right: 280px; }

padding-right заменяем на padding-left

 

- Находим

#toggle_sidebar {
position: absolute;
right: -5px;

right заменяем на left

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

Сейчас на странице 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.