The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Sticky bar on left side of forums

3 posters

Go down

Solved Sticky bar on left side of forums

Post by ChiropracticBender#2073 September 3rd 2020, 5:03 am

On our forums we are using ModernBB. I want to add a left sticky sidebar 100% height 275px wide with a iframe in it on all pages. Widgets won't allow me to create a iframe at 100% height so is there a way to use javascript that will allow us to have this functionality?


Last edited by ChiropracticBender#2073 on September 4th 2020, 3:22 am; edited 1 time in total
ChiropracticBender#2073
ChiropracticBender#2073
Forumember

Posts : 33
Reputation : 2
Language : English

https://geekcafe.formotion.com

Back to top Go down

Solved Re: Sticky bar on left side of forums

Post by SLGray September 3rd 2020, 5:21 am

What exactly are you wanting to add in this bar?


Sticky bar on left side of forums Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51576
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Sticky bar on left side of forums

Post by ChiropracticBender#2073 September 3rd 2020, 5:23 am

a titanembed which displays chat from discord
ChiropracticBender#2073
ChiropracticBender#2073
Forumember

Posts : 33
Reputation : 2
Language : English

https://geekcafe.formotion.com

Back to top Go down

Solved Re: Sticky bar on left side of forums

Post by ChiropracticBender#2073 September 3rd 2020, 5:58 am

Sticky bar on left side of forums Screen11
Sticky bar on left side of forums Screen12

this is implemented with a widget on the site at this time. We would like to see it fit 100% height on the left.

We have this as a widget at this time. What i want to do is have it stuck to the left side of the screen below the header and sticky navbar. when a user scrolls no matter how big they have the screen it will stay static on the left side.
ChiropracticBender#2073
ChiropracticBender#2073
Forumember

Posts : 33
Reputation : 2
Language : English

https://geekcafe.formotion.com

Back to top Go down

Solved Re: Sticky bar on left side of forums

Post by skouliki September 3rd 2020, 8:51 am

Please don't double post. Your posts need to be separated by 24 hours before bumping. Please use the edit button, instead!
Please read our forum rules: ESF General Rules
skouliki
skouliki
Manager
Manager

Female Posts : 15399
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

ChiropracticBender#2073 likes this post

Back to top Go down

Solved Re: Sticky bar on left side of forums

Post by SLGray September 3rd 2020, 9:34 am

Have you tried the Discord Server widget in the AP?


Sticky bar on left side of forums Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51576
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Sticky bar on left side of forums

Post by ChiropracticBender#2073 September 3rd 2020, 7:16 pm

ya we have tried that widget from the ap panel but it doesnt integrate live chat with discord authentication. on mobile we utilize the discord ap but on desktop we use titan.
ChiropracticBender#2073
ChiropracticBender#2073
Forumember

Posts : 33
Reputation : 2
Language : English

https://geekcafe.formotion.com

Back to top Go down

Solved Re: Sticky bar on left side of forums

Post by ChiropracticBender#2073 September 4th 2020, 3:22 am

issues resolved

we edited the html for the corresponding pages we want the side bar to be located on


Code:
<div class="wrapper">
    <div class="sidebar">
      sidebar code here
    </div>
    <div class="main">

websites html code

Code:
</div>
</div>

Added to the CSS style sheet:

Code:
/* Sticky sidebar */
.wrapper {
  display: flex;
  justify-content: space-between;
}

.main,
.sidebar {
  border: 0px solid black;
  padding: 0px;
  background-color: #fff;
}

.main {
  width: 90%;
  height: 100%;
}

.sidebar {
  width: 275px;
  height: 98vh;
}

body {
  background-color: #fff;
  font-family: sans-serif;
  padding: 0px;
}

.sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 30;
}

Results:
Sticky bar on left side of forums Unknown
ChiropracticBender#2073
ChiropracticBender#2073
Forumember

Posts : 33
Reputation : 2
Language : English

https://geekcafe.formotion.com

SLGray likes this post

Back to top Go down

Solved Re: Sticky bar on left side of forums

Post by SLGray September 4th 2020, 3:33 am

Thanks for posting the solution.
Problem solved & topic archived.
Please read our forum rules:  ESF General Rules


Sticky bar on left side of forums Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51576
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum