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.

Боковой блок для чата

Screenshot_1.png.11b29a4d3c8cf648e68361f7220fc45b.png

Если прокрутить то блок будет стоять так же  на месте

Screenshot_2.png.622e0a092e542b3b6cf0c32a8e8e53ac.png

Буду краток: откройте свой стиль - Шаблоны и в поиск вставьте chatcontent у вас откроется bimchatbox - front - chat - main

Всё  содержимое замените на

{{$ann = \IPS\Application::load('bimchatbox')->announcement();}}

<div data-controller="bim.chatbox">
	<h2 class="ipsType_sectionTitle ipsType_reset" id="elChatbox" >
		<ul class="ipsPos_right ipsList_inline ipsList_noSpacing">
			<li>
				<a href="#" class="cbBtn" data-action="toggleSound" data-ipstooltip="" title='{lang="chatbox_togglesound"}'><i class="fa fa-volume-up"></i></a>
			</li>
			{{if \IPS\Application::load('bimchatbox')->can_Manage()}}
				<li>
					<a href="#" class="cbBtn" data-ipsDialog data-ipsDialog-url='{url="app=bimchatbox&module=chatbox&controller=chatbox&do=cbmanage"}' data-ipsDialog-size='narrow' data-ipstooltip="" title='{lang="chatbox_management"}'><i class="fa fa-wrench"></i></a>			
				</li>
			{{endif}}		
		</ul>
		<div>{lang="chatbox_title"}</div>	
	</h2>
	
	<div id="elChatboxContent">
		{{if $ann}}
			<div class="cbAnn ipsClearfix">
				{{if settings.chatbox_conf_anntab == 1}}
					<a href="#" data-ipsDialog data-ipsDialog-url='{url="app=bimchatbox&module=chatbox&controller=chatbox&do=cbrules"}' data-ipsDialog-size='narrow'>
						<i class="fa fa-bullhorn" aria-hidden="true"></i>&nbsp;&nbsp;{lang="chatbox_rules_link"}
					</a>
				{{else}}
					{$ann|raw}
				{{endif}}
			</div>
		{{endif}}
		
		{{if settings.chatbox_conf_ordertop == 1}}
			{template="chatform" app="bimchatbox" group="chat" params="$chat, $orientation"}
		{{endif}}			
		
		<div id='chatboxWrap' {{if settings.chatbox_conf_height}}style='height: {setting="chatbox_conf_height"}px !important;'{{endif}}>
			{{if settings.chatbox_conf_ordertop != 1}}
				<div id='loadMore' data-action='loadMore' class='ipsAreaBackground_light ipsPad_half ipsType_center ipsCursor_pointer ipsClear'>{lang="cb_loadmore"}</div>
			{{endif}}
			<div class="ipsPos_left cChatboxLeftMenu">
              
Тут вставляем свой текст или HTML 

        </div>
			<ul id='chatcontent' class="ipsDataList ipsDataList_reducedSpacing ipsLoading ipsPos_left">
			
			</ul>
			{{if settings.chatbox_conf_ordertop == 1}}
				<div id='loadMore' data-action='loadMore' class='ipsAreaBackground_light ipsPad_half ipsType_center ipsCursor_pointer ipsClear'>{lang="cb_loadmore"}</div>
			{{endif}}				
		</div>
		
		{{if settings.chatbox_conf_ordertop != 1}}
			{template="chatform" app="bimchatbox" group="chat" params="$chat, $orientation"}
		{{endif}}
	</div>
</div>

Где написано "Тут вставляем свой текст или HTML" заменяете.

Далее в custom.css

.cChatboxLeftMenu {
    width: 200px;
    position: sticky;
    top: 0;
}

#chatcontent {
    width: calc(100% - 200px);
}

На этом всё

Демо где стоит этот блок: zone-cs.ru

User Feedback

Recommended Comments

Комментариев пока нет

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
Добавить комментарий...

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.