| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Sidebar | |
|---|---|
| Tweet Topic Started: Apr 27 2011, 11:23 PM (25,718 Views) | |
| Cory | Apr 27 2011, 11:23 PM Post #1 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Code Name: Sidebar Preview What the code does: This code will add a sidebar to the left of your board so you can add in content to the side of your board. How to use the code: Simply follow the instructions below and edit in any content that you wish to display on the sidebar. How to install the code: Admin CP Themes Themes Edit Theme AppearanceAdmin CP Themes Themes Edit Theme Layout: Above <!-- BOARD --> Tag HTML Extra notes: The HTML will add five blocks for you to modify, you can add more or remove some to have less. Please post here if the code didn't work or you wish to make modifications to it. |
![]() |
|
| Replies: | |
|---|---|
| polocolo | Jul 14 2014, 09:49 AM Post #136 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
GodzillaV2, if you're using the code provided to me by Cory above, change 317px to whatever number that fits your site layout. <div id="sidebar" style="margin-top: 317px"> Cory, after implementing the above no matter how much I adjusted the variable the side bar goes up to the very top. However, I want it to go below the recent update table… Here is the screenshot when the index page is viewed as a member: Spoiler: click to toggle When the index page is viewed as a guest: Spoiler: click to toggle I put the code on my test board I probably need 2 variables (to fix the px from margin-top), one for members and one for guests. Edited by polocolo, Jul 14 2014, 11:30 AM.
|
![]() |
|
| GodzillaV2 | Jul 14 2014, 10:53 AM Post #137 |
|
Member
![]() ![]() ![]() ![]()
|
Didn't seem to work after i triedHow come its on the bottom but not top? Edited by GodzillaV2, Jul 15 2014, 05:30 AM.
|
![]() |
|
| Cory | Jul 15 2014, 05:37 PM Post #138 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
polocolo: Here's how to set a different top margin for guests and members:GodzillaV2: Can you post your theme layout with the sidebar code added? Did you add the CSS? |
![]() |
|
| polocolo | Jul 15 2014, 06:53 PM Post #139 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
I don't know what happened while the code works fine on my test board but on my actual Site it pushed everything to the right. EDIT: Sorry, I made an error. now fixed. EDIT: Members of our Forum love the side bar. All thanks to you. Edited by polocolo, Jul 15 2014, 07:00 PM.
|
![]() |
|
| Cory | Jul 15 2014, 06:56 PM Post #140 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
The ending script tag is missing:
|
![]() |
|
| GodzillaV2 | Jul 15 2014, 07:29 PM Post #141 |
|
Member
![]() ![]() ![]() ![]()
|
I got it fixed myself
|
![]() |
|
| polocolo | Jul 15 2014, 07:48 PM Post #142 |
|
Member
![]() ![]() ![]() ![]() ![]()
|
For some reason when I first logged on as a member the side bar would go up a bit. Only after I refresh the page the side bar would align correctly. I thought could it be the set up of the guest code but then the side bar under the guest code should be much lower because of the advertisement bar. However, when I logged out as a guest the side bar is aligned properly without the need of a page refresh. Spoiler: click to toggle EDIT: I found out only Safari and iPad have that problem. It works fine on Chrome. Edited by polocolo, Jul 16 2014, 10:07 PM.
|
![]() |
|
| GodzillaV2 | Jul 16 2014, 08:55 AM Post #143 |
|
Member
![]() ![]() ![]() ![]()
|
Ok, i just noticed that when i enter a section of the forum, the sidebar is all malfunctioned and its on the very top of the page. Theme Layout
Edited by GodzillaV2, Jul 16 2014, 08:56 AM.
|
![]() |
|
| Cory | Jul 18 2014, 07:55 PM Post #144 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
polocolo: So it's only an issue as a member and for Safari? GodzillaV2: Remove the style attribute: Move the sidebar HTML above the <!-- BOARD --> tag. |
![]() |
|
| GodzillaV2 | Jul 18 2014, 08:08 PM Post #145 |
|
Member
![]() ![]() ![]() ![]()
|
Not only does it come on every page now, but it has streched out even further.
|
![]() |
|
| Cory | Jul 18 2014, 11:55 PM Post #146 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
The sidebar DIV start tag was removed:
|
![]() |
|
| GodzillaV2 | Jul 19 2014, 12:03 AM Post #147 |
|
Member
![]() ![]() ![]() ![]()
|
Did that. Now the side bar isnt to the left but on the forum instead
Edited by GodzillaV2, Jul 19 2014, 12:04 AM.
|
![]() |
|
| Cory | Jul 19 2014, 12:05 AM Post #148 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Remove the padding line. |
![]() |
|
| GodzillaV2 | Jul 19 2014, 12:09 AM Post #149 |
|
Member
![]() ![]() ![]() ![]()
|
Yay its fixed, thanks. Any way to not allow guests to view the side bars? Edited by GodzillaV2, Jul 19 2014, 11:55 PM.
|
![]() |
|
| Cory | Jul 20 2014, 09:21 AM Post #150 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Add that to the bottom of your Theme Layout. Change this: To this:
|
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · ZetaBoards Codes & Modifications · Next Topic » |
| Track Topic · E-mail Topic |
4:35 AM Jul 11
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)
Themes






now fixed.

4:35 AM Jul 11