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.

How to add float button to "Create topic" // Как добавить плавающую кнопку в "Создать тему"

ezgif.com-gif-maker.gif.13d5f164ee092e9e96905cbab9a10e57.gif.38b4e3633023e95e3e9554d80736eadd.gif

First, go to: ACP -> Appearance -> Styles and Templates -> Edit HTML and CSS -> template Tab ->footer

Paste the code below at end of your code:

<!--Float button for new topic created By Arash.Ranjbar-->
{{foreach \IPS\Member::loggedIn()->createMenu() as $k => $url}}
<a href='{url="app=forums&module=forums&controller=forums&do=add" seoTemplate="topic_non_forum_add_button"}' data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-title='{lang="select_forum"}' class="arash">
<i class="fa fa-pencil arash01" style="color:white;"></i>
</a>
<div class="arash-container">
<div class="arash-label">create topic</div>
<i class="fa fa-play arash-01"></i>
</div>
{$data}
{{endforeach}}
		<!--End Float button for creat new topic By Arash.Ranjbar-->

Paste the code below at custom.css:

.arash-container{
	position:fixed;
	bottom:20px;
	left:105px;
	display:table;
	visibility: hidden;
}
.arash-label{
	color:#FFF;
	background:rgba(51,51,51,0.5);
	display:table-cell;
	vertical-align:middle;
	padding:10px;
	border-radius:3px;
}
.arash-01{
	display:table-cell;
	vertical-align:middle;
	color:#FFF;
	opacity:0.5;
}
.arash{
	position:fixed;
	width:50px;
	height:50px;
	bottom:20px;
	left:40px;
	background-color:#b7ae31;
	color:#FFF;
	border-radius:50px;
	text-align:center;
}
.arash01{
	font-size:24px;
	margin-top:13px;
}
a.arash + div.arash-container {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s ease;
}
a.arash:hover + div.arash-container{
  visibility: visible;
  opacity: 1;
}

This button will only be displayed for logged in users!

 

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.