Here are some instructions to include such an element.
Files to be edited:
1. /root/styles/prosilver_se/template/overall_header.html
2. /root/styles/prosilver_se/theme/common.css
First let's implement the stylesheet changes.
common.css
See below:
Code: Select all
.sbdate {
text-align: center;
display: inline;
/*change below height and width values to match sidebar background*/
width: 38px;
height: 69px;
/*change padding-top to adjust the starting point of text in your sidebar*/
padding-top: 6px;
/*change the colour of text in your sidebar*/
color: #FFFFFF;
/*path to the sidebar background image, if required*/
background: url('{T_THEME_PATH}/images/date.png') no-repeat left top;
/*if no background image to be used, below will control background color*/
/*background-color: #FFFFFF;*/
font-weight: normal;
position: absolute;
/*will control the posiition of the sidebar - change to suit your requirements*/
top: 79px;
left: -36px;
font-family: Verdana, Helvetica, Arial, sans-serif;
}
* html .sbdate {
position: relative;
z-index: 1;
}
I've added comments (between /* and */) above elements which you may need to change. The other elements should not be changed unless you know what you're doing.
Note: .sbdate can be changed to whatever you want as long as you reflect it in the div element in overall_header.html
In common.css search for:
Code: Select all
#wrap {
padding: 0 20px;
min-width: 650px;
width: 900px;
margin: 0 auto;
}
Code: Select all
#sbdate-wrap {
position: relative;
}
Now let us place the sidebar in your forum:
overall_header.html
In your ACP go to Styles | Templates | overall_header.html (or edit the file in FTP if that is your preference) and search for:
Code: Select all
<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}">
<div id="wrap">
Code: Select all
<div id="sbdate-wrap"><div class="sbdate">
Code: Select all
</div></div>
This will work in FF 3.5 and IE8.
Feedback is appreciated
A working example can be seen at: http://www.heavymessing.co.uk/forum/
My forum has only one member and is basically a work in progress and something for me to pass the time
Hope it helps though.