I'm around and round we go
Moderator
Jan 13, 2014 22:12:09 GMT -5
Smangii's Side Tables ... for V5!Based on my
old V4 code found here. I know the PB admins made a plugin for this already...but meh, I felt like doing it anyway.
Maybe someone can find this useful so my time wasn't wasted
READ FIRST:If you have
MULTIPLE THEMES... This code will best work in
Global Headers, to be viewable on all your themes. However, if you have multiple themes, I would recommend sticking to the Sidebar Redux plugin if that works for you
If you have
ONE THEME... (Or just a few themes) This code will work best in the
Forum Wrapper template, since it can utilize the Forum Wrapper Loops & Variables, and you can control where you wan the side tables placed.
Currently this code is only for the LEFT side... if requested enough, I'll make one specific for the Right side, but if you are nifty with HTML it's not hard to figure out.
PREVIEW:
Want a live preview? Check out
my test board and sign up so you can change the theme to "Smangii's Side Tables".
STYLESHEET / CSS CODE:
This can go either directly into your Theme's
Stylesheet, or if you are putting this in
Global Headers, remember to wrap it in
<style> </style>/* SMANGII'S SIDE TABLES FOR V5 - CSS */
#smangiiSideTables, #sideforum { width: 100%; }
#sidebar, #sideforum { vertical-align: top; }
/* Adjust size and spacing of the side tables below */
.sidetable { width: 225px; margin-bottom: 20px; margin-right: 20px; }
#sidebar { width: 245px; }
All you have to edit to adjust the width/spacing of the sidebars are these values:
The
margins are the space between the side tables and the forum, and the side tables to each other.
The
#sidebar width should be your .sidetable width + your margin (so in this case, +20 more).
.sidetable { width: 225px; margin-bottom: 20px; margin-right: 20px; }
#sidebar { width: 245px; }EXTRA QUICK LINKS:Do you like the "Quick Links" in the preview and want to keep it? Here is the CSS for that:
/* SMANGII'S SIMPLE QUICK LINKS */
.quick_links, .quick_links li {
margin: 0; padding: 0; text-align: left;
}
.quick_links li a {
display: block;
font: normal 10px Verdana;
color: #FFF;
padding: 4px 0px 4px 4px;
background-color: rgba(0,100,170,1);
border-left: 10px solid rgba(0,0,0,0.5);
margin-top: 2px;
}
.quick_links li a:hover {
transition: all 0.25s; -webkit-transition: all 0.25s;
letter-spacing: 1px;
background-color: rgba(0,100,170,0.5);
border-left: 10px solid rgba(0,100,170,1);
padding-left: 8px;
}
HTML / LAYOUT TEMPLATE CODE:This can do directly into your Forum Wrapper template, or Global Headers.
If placing into Forum Wrapper, this code is best placed below
</header><!-- START SMANGII'S *LEFT* SIDE TABLES FOR V5 - SMANGII.PROBOARDS.COM -->
<table id="smangiiSideTables"><tr><td id="sidebar">
<!-- SIDE TABLE #1 START -->
<div class="sidetable container">
<div class="title-bar"><h2>Side tables!!!</h2></div>
<div class="content cap-bottom pad-all-double">
Welcome to $[forum.name]!
<br /><br />
You can put lots of stuff here! Links, text, and even use ProBoard's loops and variables from the Forum Wrapper template such as:
<br /><br />
$[login_link] or $[register_link]
</div>
</div>
<!-- SIDE TABLE #2 START -->
<div class="sidetable">
<div class="container content-box pad-all-double">
Remember to use <b>HTML!</b><br>
You can customize the boxes however you want.
</div>
</div>
<!-- SIDE TABLE #3 START -->
<div class="sidetable container">
<div class="title-bar"><h2>Quick Links</h2></div>
<ol class="quick_links">
<li><a href="http://smangii.proboards.com">Slightly Insane</a></li>
<li><a href="http://smangii.proboards.com/board/27/proboards-themes-database">V5 Themes</a></li>
<li><a href="http://smangii.proboards.com/board/29/proboards-code-database">V5 Codes</a></li>
<li><a href="http://support.proboards.com">ProBoards Support</a></li>
</ol>
</div>
<!-- place this code below your last side table -->
</td><td id="sideforum">
<!-- END SMANGII'S SIDE TABLES - BEGIN REST OF FORUM -->
...one last bit of code, but is
most important!
Place this bottom code below
$[footer] in your Forum Wrapper.
OR if you are using Global Headers/Footers, place this into your Global Footers.
<!-- place this code below $[footer] -->
</td></tr></table>
<!-- END SMANGII'S SIDE TABLES FOR V5 - SMANGII.PROBOARDS.COM -->
That's all! If you need help adding a side table or editing anything, let me know
Enjoy!
Jan 22, 2014 11:23:30 GMT -5
Hi there, I used this code on my site but i had to use it before my forum wrapper all together to get it to be on the side, but now it is at the top of the forum above my banner, is there anything i can do so its beside the rest of my site. Thankyou heres the link
link
I'm around and round we go
OP
Moderator
Jan 22, 2014 16:33:33 GMT -5
Hi there, I used this code on my site but i had to use it before my forum wrapper all together to get it to be on the side, but now it is at the top of the forum above my banner, is there anything i can do so its beside the rest of my site. Thankyou heres the link
linkThat link is broken
But if you are putting this at the top, make sure the first part of the side tables code is
after this part in your forum wrapper:
<!DOCTYPE HTML>
$[tag.html.open]
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>$[title] | $[forum.name]</title>
$[head]
</head>
<body>And make sure this last part of the side tables code:
<!-- place this code below $[footer] -->
</td></tr></table>
<!-- END SMANGII'S SIDE TABLES FOR V5 - SMANGII.PROBOARDS.COM -->
is at the VERY end of your forum wrapper, right
before this part:
</body>
</html>
Jan 25, 2014 3:00:59 GMT -5
Hi there Smangii~ In a bit of a pickle when it comes to the side tables.
I'm currently using this theme of yours:
smangii.proboards.com/thread/40031/redwood Every time I put the code down it doesn't show up, I'm assuming it is because of where the shoutbox and About Us box is.
Feb 14, 2014 14:10:47 GMT -5
I'm having the same issue-the side table code in that theme seems different than this code...and is specific for each template...
Not good enough at CSS to add it in to the others, so I'll need help with that.
All I was able to do was add the shoutbox to the sidebar on the pages it existed.
Mar 4, 2014 15:18:46 GMT -5
i'm not sure which theme i'm using & i'm trying to use the code to put side boxes on my forum how can i do this please help me my forum link is
experiencethecore.proboards.com/
Mar 27, 2014 21:34:35 GMT -5
Hi,
I used your code and put it in the global header, but the side boxes are above the forum and bellow the banner, instead of to the left of everything. I'm not sure what I did wrong or how to fix it.
Here is my link:
Mactire FallsThank you!
Mar 30, 2014 3:35:24 GMT -5
Hey! I noticed you forgot to close your comment at the beginning of the code which is breaking it! Just thought I'd let you know!
May 27, 2014 2:11:36 GMT -5
Mines appearing half way at the bottom of my forum and its all squished up
I'm around and round we go
OP
Moderator
May 31, 2014 10:45:37 GMT -5
Mines appearing half way at the bottom of my forum and its all squished up
Read the post above you, @trinityblair pointed out a critical error that I must've missed while copying the code over. Should be fixed now!
Jul 20, 2014 23:01:58 GMT -5
I like this side table better than clickable side bar. Thank you
Aug 4, 2014 14:48:31 GMT -5
Can you add pictures to the sidebar like you could in Version 4? I want to put in pictures instead of text for the sidebar.
I'm around and round we go
OP
Moderator
Aug 4, 2014 20:08:08 GMT -5
Can you add pictures to the sidebar like you could in Version 4? I want to put in pictures instead of text for the sidebar.
Yeah, just use HTML as you would for V4. Works the same exact way.
<img src="urlhere" />
May 19, 2015 13:07:31 GMT -5
Using
here, thank you. c:
The site is a still a W.I.P but I have listed you in the credits.
Jul 18, 2015 20:16:41 GMT -5
You can also use this on the sidetable redux by removing some things in the codes, and you can use this in Dynamically Tabbed Table, I'm talking about quicklinks. I'm too lazy to try to fit it in above the sidebars currently set on.
Aug 16, 2015 16:09:13 GMT -5
I've used this on my pet care forum,
Pet Haven, and it works a treat! Thanks, Smangii!
It worked fine on the left side, but took several hours across three days to work out the reason it wouldn't work on the RIGHT side was because I'd chowdered the info center table arrangement in the Home template.
If anyone else is having issues with things not being where they're supposed to be, copypasta your Home template code out to a text document for safe keeping, then reset that template to default.
You might need to set a "max-width" and "min-width" property in the CSS along with the usual "width" if things like the shoutbox aren't playing ball.
The structure is two tables side by side, so to get a right hand bar, just swap over the two tables
You can even add multiple columns.
Jan 10, 2016 0:36:12 GMT -5
Is there a way for the side table to be hidden if someone clicks on a thread to view it? I like the side bar showing on the board and thread list, but was just wondering if it was possible that it would hide away and set the forum back to the original width if someone went into a thread to read/post.
Apr 1, 2016 16:56:24 GMT -5
The sidebar ends up breaking everything below it... any way to fix it?
I put it below all this:
<p id="welcome">
{if !$[current_user.is_member]}
Welcome Guest.
{if $[login_link] || $[register_link]}
Please $[login_link]{if $[login_link] && $[register_link]} or {/if}$[register_link].
{/if}
{else}
<span>Welcome $[current_user.name].</span> $[logout_link]
{/if}
</p>
</div>
</header>
Aug 12, 2018 14:38:56 GMT -5
Is there a way to change the font style and or font size inside the actual sidebar box?
Here is a picture of a box in my sidebar and I want to be able to change the font style and or the font size to be smaller if possible. Thank you..
Aug 15, 2023 19:21:19 GMT -5
Was there a link somewhere to use it on both sides of the forum for the newest version of Proboards?