| 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,724 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: | |
|---|---|
| Cory | Apr 22 2012, 10:06 PM Post #46 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Remove this sidebar code and add the following coding. Admin CP Themes Board Template JavascriptsAdmin CP Themes Board Template Below the BoardChange the number in the 'var amount' line to the number of latest posts you want to display, and change the number in the 'var amount2' line to the number of latest status updates you want to display. This code uses quite a bit of AJAX. |
![]() |
|
| DarkGizmo-ZNR | Apr 22 2012, 10:18 PM Post #47 |
![]()
Who ate all the pecan sandies?
![]() ![]() ![]()
|
Great! Can it be moved to the right side instead of the left? also would it be possible to have a 'hide' option? like a button a user can click and it colapses into the side/hides if they don't want it shown? |
![]() |
|
| Cory | Apr 22 2012, 10:31 PM Post #48 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Change 'margin-left' to 'margin-right' and insert '; right: 25px' after this:That will put the sidebar on the right side. Sorry, I'm not sure how to add a legit toggle function because I don't know cookies very well and to make it work correctly would require cookies. |
![]() |
|
| DarkGizmo-ZNR | Apr 23 2012, 12:33 AM Post #49 |
![]()
Who ate all the pecan sandies?
![]() ![]() ![]()
|
That worked but it goes over a bit too much see here. Edit: I tried a few things but what looks good on one skin looks bad on others. How can I get it to fit nicely next to the board and it look good on all skins without any big gaps between the two or overlapping? Edited by DarkGizmo-ZNR, Apr 23 2012, 01:09 AM.
|
![]() |
|
| Cory | Apr 23 2012, 08:26 PM Post #50 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You'll have to change the right pixel number in Edit Theme Appearance for each theme:Change the number sign to the number (in pixels) till the sidebar is in the position you desire, do this for each theme. |
![]() |
|
| DarkGizmo-ZNR | Apr 23 2012, 09:17 PM Post #51 |
![]()
Who ate all the pecan sandies?
![]() ![]() ![]()
|
Got it, That worked. Is there a way to make it only show on the INDEX and no other pages?
Edited by DarkGizmo-ZNR, Apr 23 2012, 09:22 PM.
|
![]() |
|
| Cory | Apr 23 2012, 09:43 PM Post #52 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Add that after the starting script tag. Add that before the ending script tag. |
![]() |
|
| DarkGizmo-ZNR | Apr 24 2012, 12:20 AM Post #53 |
![]()
Who ate all the pecan sandies?
![]() ![]() ![]()
|
Cool thanks. Worked great.
|
![]() |
|
| andAshes | May 2 2012, 06:30 PM Post #54 |
![]()
Member
![]() ![]() ![]()
|
Any way to move the position of the side bar? I want to align it so that it fits nicely under the banner and beside the area where the forums itself start. Here's the link. It's under the skin Checkered Floor. This is only a test forum for the real forum, I'm just doing it here so the main forum doesn't look cluttered. Thanks xD I read through the pages but couldn't find what I was looking for. |
![]() |
|
| Cory | May 2 2012, 06:40 PM Post #55 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You just need to add a margin to the #sidebar strip to put it in the proper place:
|
![]() |
|
| MissImpossible | Jul 18 2012, 11:39 AM Post #56 |
![]()
Member
![]() ![]() ![]()
|
So, I installed the sidebar and I have a problem in that the sidebar looks great on any page where the length of the content exceeds the length of the sidebar. However, if the content of the page is short, then the sidebar kind of floats beyond the footer and stretches the page down beyond the footer. How do I stop it from doing this and keep the footer as the consistent 'bottom' of all the pages? |
![]() |
|
| Cory | Jul 18 2012, 11:48 AM Post #57 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Place that at the bottom of the theme layout that has the sidebar installed. |
![]() |
|
| MissImpossible | Jul 18 2012, 06:42 PM Post #58 |
![]()
Member
![]() ![]() ![]()
|
Thank you for the code, but it doesn't seem to be working. It's still unfortunately happening ![]() I stuck this in Admin CP / Board Themes / Edit Theme Layouts at the bottom. My code looks like this (the only edit being I took the elements out of my sidebar to save confusion) Spoiler: click to toggle Is there something I have done wrong or missed? I am definitely not much more than a n00b at this
|
![]() |
|
| Cory | Jul 19 2012, 10:04 AM Post #59 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I just tested your theme layout on my test board and it seemed to work fine for me, can I see a link to your board (via PM will be fine)? |
![]() |
|
| Seiyoku | Aug 29 2012, 11:37 PM Post #60 |
|
Member
![]() ![]() ![]()
|
Hello, I'm having the same issue as the person before me. I added in the extra section of code you offered. It did work, but not in an ideal way. What it did was push the rest of the topics all the way down to the end of the sidebar, so there was a really large space. It happens to any forums with subforums. I tried moving the extra code as I first had it at the very bottom of the theme layout but if I put it anywhere else (up near the sidebar code etc) then it made no changes at all. The odd thing is that when I log out and view the board as a guest, then it all looks fine. I took some screencaps. It all looking fine as a guest Guest The same page, just logged in. Logged in Here is the (messy) code I have in the theme layout.
Any ideas or suggestions? I really love this code and want to keep it if possible. |
![]() |
|
| 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




Is there a way to make it only show on the INDEX and no other pages?



4:35 AM Jul 11