| 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,714 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 | Dec 15 2014, 12:14 AM Post #196 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Kankuro: Each AJAX request loads an additional page in the background to grab the requested content. It appears your board is currently using minimal AJAX based on the page source. Each time a page is loaded, it consumes more bandwidth, which is what keeps building up the money needed to keep the servers running. Gustavo12999: Place the following HTML in the sidebar code and put the following script at the very bottom of the Theme Layout for the theme you want to apply the script to.
That snippet of CSS will stretch the board statistics and shoutbox back across the page, but it may overflow into the sidebar content due to the way the sidebar is coded. |
![]() |
|
| Gustavo12999 | Dec 15 2014, 08:39 AM Post #197 |
|
Member
![]() ![]() ![]()
|
WOOOOW, awesome! Ty very much, cory! |
![]() |
|
| Kankuro | Dec 15 2014, 12:54 PM Post #198 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
So what all are you able to do from my request if I approve for it? |
![]() |
|
| Cory | Dec 15 2014, 06:37 PM Post #199 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
All of them are possible, but would require 5 different AJAX requests and that's excluding grabbing the staff member's avatar. |
![]() |
|
| Kankuro | Dec 15 2014, 09:32 PM Post #200 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Would you mind doing it for #1-4? The statuses aren't a big deal and can that off with other codes. |
![]() |
|
| Cory | Dec 15 2014, 09:59 PM Post #201 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Do you have a sidebar setup currently, or do you want me to give you the coding needed to set it up with all the expected features in one bundle? |
![]() |
|
| Kankuro | Dec 16 2014, 12:21 AM Post #202 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Umm, I have css added to my sidebar but that's about it.
|
![]() |
|
| Cory | Dec 17 2014, 12:23 AM Post #203 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Ensuring you're using the sidebar CSS, try using the following coding: HTML: JavaScript: There's option #2 through #4 for starters. I will add on option #1 once you've fully tested these to see if they work properly. |
![]() |
|
| Kankuro | Dec 17 2014, 01:18 AM Post #204 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Okay, 2 issues I've noticed so far. If the title is longer than the box is goes outside of the box. I'd rather the title either apply a horizontal scroll bar when it overflows or at least display like this: Title = Hello, My Name Is Kankuro And This Is A Sidebar Code Displays like this = Hello, My Name Is ... And issue 2 is that the index only code isn't working anymore. Screenshot: http://prntscr.com/5hqqdk If you need to see it then go to my test board, you have an account on it already. Edited by Kankuro, Dec 17 2014, 01:19 AM.
|
![]() |
|
| Cory | Dec 17 2014, 05:36 AM Post #205 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
The title doesn't go outside of the box for me, it just overflows onto the next line: http://i.imgur.com/2Eqs0FD.png Or, are you referring to the H2 and not the content area? Change this: To this:
|
![]() |
|
| Kankuro | Dec 17 2014, 01:20 PM Post #206 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
http://prntscr.com/5hwctj Now that I think about it, it's probably because of the long series of numbers with no space, but even this could potentially cause issues in the future. A fix would be great but not really needed as I don't think there will be massive words like this used often. 2nd error is fixed. |
![]() |
|
| Cory | Dec 17 2014, 10:53 PM Post #207 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Find this strip in your CSS:Add this before the ending curly bracket:
|
![]() |
|
| Kankuro | Dec 17 2014, 11:20 PM Post #208 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Great! Now I just need #1 (Staff Online) and it's finished.
|
![]() |
|
| Strifefox | Dec 18 2014, 04:20 PM Post #209 |
|
Tú Eres Pirata!
![]() ![]() ![]() ![]()
|
Okay so I hate to pester you, but I got two things to ask about. The first is this: The code you gave me to fix the sidebar so that it fits on the forum rather than breaking out of it isn't working 'entirely' like it fits but it pokes out by about 5 pixels or so at the bottom. not a problem and it's only on one of the two themes our site has which is called Ledger. It worked originally but now it's not and the only thing I changed was adding information onto the sidebar sections. I don't know if I need to alter a number or something since i added my own new category to it to expand it. Secondly, I want to widen it to 200px across. However, doing so makes it overlap the forum instead of just nudging the forum over a little to make room for it. I would like to keep the blank space between the forum and the sidebar as well but it just eats that space up rather then widening itself and pushing everything out of its way. Can that be done? |
![]() |
|
| Cory | Dec 19 2014, 09:12 AM Post #210 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Kankuro: So basically it only needs to dictate if these users are online or not? Strifefox: It may just need a function wrapped around it so it will load when the page has fully loaded: If you increase the width by 40 pixels, this needs to be increased by 40 pixels as well:
|
![]() |
|
| 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



4:35 AM Jul 11