Live Preview!Original RequestHi. This is a conversion of the theme Crystal by Crip.
Header Code:
Note: if you already have this in your header you do not need to add this part of the code to the header - just remove it and add the rest: <script src="/jquery.js"></script>
<script src="/jquery.js"></script>
<div id="head-wrap">
<div id="header">
<div id="head-l">
<div id="head-r">
<div id="userarea"><strong>Welcome!</strong>
<a href="/index.php?" title=""><span id="logo"> </span></a>
</div>
</div>
</div>
</div>
<div class="topnav_wrapper">
<ul class="topnav">
<li><a href="/index.php">Home</a></li>
<li ><a href="/index.php?action=forum">Forum</a></li>
<li><a href="/index.php?action=help">Help</a></li>
<li><a href="/index.php?action=search">Search</a></li>
<li><a href="/index.php?action=login">Login</a></li>
</ul>
</div>
</div><div class="clr"></div>
<div id="bodyarea">
To add in more tabs to the navigation bar on top, simply add the following after a closed " </li> " tag in the area "topnav_wrapper" in the headers.
<li><a href="TARGET URL">TEXT FOR TAB</a></li>
Footer Code:
Note that you must have the copyright information displayed in the footer area!</div><div id="footer">
<div id="foot-wrap">
<div id="footerarea">
<div class="foot-left">
<strong>Crystal</strong> by: © 2009, <a style="color: white;" href="http://www.jpr62.com/theme/index.php">Crip</a>
<br />
<strong>Converted with permission by: </strong> <a style="color: white;" href="http://www.smfsupport.com/support/index.php?action=profile;u=1226">Alex P.</a>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var i = ""; var r = ""; var b = "";
//Created by Agent Moose (revolutionx.smfforfree3.com)
$("td[width='16%'] b a").each(function(){
if(this.href.match(/u=(.*)/i)){
i = RegExp.$1;
r = $(this).parent().next().find("a[href*='sa=applaud']").attr("href");
b = $(this).parent().next().find("a[href*='sa=smite']").attr("href");
$(this).parent().next().find("a[href*='sa=applaud']").each(function(){
this.href = "javascript:void(0);";
this.onclick = function(){ Red(); };
});
$(this).parent().next().find("a[href*='sa=smite']").each(function(){
this.href = "javascript:void(0);";
this.onclick = function(){ Blue(); };
});};});
function Red(){ var x = prompt("Reason:",""); if(x){ $.post(smf_scripturl + "?action=comment&sa=add2",{comment: "[b][color=green]Karma Added! Reason:[/color][/b]\n" + x, userid: i}); alert("Reason Posted!"); window.location = r; }else if(!x){ alert("You must enter a reason!"); };};
function Blue(){ var v = prompt("Reason:",""); if(v){ $.post(smf_scripturl + "?action=comment&sa=add2",{comment: "[b][color=red]Karma Subtracted! Reason:[/color][/b]\n" + v, userid: i}); alert("Reason Posted!"); window.location = b; }else if(!v){ alert("You must enter a reason!"); };};
</script>
CSS:
/* Normal, standard links. */
a:link {
color: #476C8E;
text-decoration: none;
}
a:visited {
color: #476C8E;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Navigation links - for the link tree. */
.nav, .nav:link, .nav:visited {
color: #000000;
text-decoration: none;
text-indent: 5px;
}
a.nav:hover {
color: navy;
text-decoration: underline;
}
/* Tables should show empty cells. */
table {
empty-cells: show;
}
/* By default (td, body..) use verdana in black. */
body, td, th , tr {
color: #000000;
font-size: small;
font-family: verdana, sans-serif;
}
/* The main body of the entire forum. */
body {
background: #FFFFFF url(http://www.styleyourforum.com/data/486/css0.gif) repeat-x;
margin: 0px;
padding: 10px 0px 0px 0px;
}
/* Input boxes - just a bit smaller than normal so they align well. */
input, textarea, button {
color: #000000;
font-family: verdana, sans-serif;
}
input, button {
font-size: 90%;
}
textarea {
font-size: 100%;
color: #000000;
font-family: verdana, sans-serif;
}
/* All input elements that are checkboxes or radio buttons. */
input.check {
}
/* Selects are a bit smaller, because it makes them look even better 8). */
select {
font-size: 90%;
font-weight: normal;
color: #000000;
font-family: verdana, sans-serif;
}
/* Standard horizontal rule.. ([hr], etc.) */
hr, .hrcolor {
height: 1px;
border: 0;
color: #666666;
background-color: #666666;
}
/* No image should have a border when linked */
a img { border: 0; }
/* A quote, perhaps from another post. */
.quote {
color: #000000;
background-color: #B3CFE0;
border: 1px solid navy;
margin: 1px;
padding: 1px;
font-size: x-small;
line-height: 1.4em;
}
/* A code block - maybe even PHP ;). */
.code {
color: navy;
background-color: #dddddd;
font-family: "courier new", "times new roman", monospace;
font-size: x-small;
line-height: 1.3em;
/* Put a nice border around it. */
border: 1px solid navy;
margin: 1px auto 1px auto;
padding: 1px;
width: 99%;
/* Don't wrap its contents, and show scrollbars. */
white-space: nowrap;
overflow: auto;
/* Stop after about 24 lines, and just show a scrollbar. */
max-height: 24em;
}
/* The "Quote:" and "Code:" header parts... */
.quoteheader, .codeheader {
color: navy;
text-decoration: none;
font-style: normal;
font-weight: bold;
font-size: x-small;
line-height: 1.2em;
}
.clr {
clear: both;
margin-bottom: 15px;
margin-top: 0px;
}
/* Generally, those [?] icons. This makes your cursor a help icon. */
.help {
cursor: help;
}
/* /me uses this a lot. (emote, try typing /me in a post.) */
.meaction {
color: red;
}
/* The main post box - this makes it as wide as possible. */
.editor {
width: 96%;
}
/* Highlighted text - such as search results. */
.highlight {
background-color: yellow;
font-weight: bold;
color: black;
}
/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg, #preview_body {
background: #ffffff url(http://www.styleyourforum.com/data/486/css1.gif) repeat-x top left;
color: #012944;
padding:10px;
}
.windowbg2 {
background: #ffffff url(http://www.styleyourforum.com/data/486/css1.gif) repeat-x top left;
color: #012944;
padding:10px;
}
.windowbg3 {
background: #ffffff url(http://www.styleyourforum.com/data/486/css1.gif) repeat-x top left;
color: #012944;
padding:10px;
}
/* the today container in calendar */
.calendar_today {
color: navy;
text-align: center;
font-weight: bold;
background-color: #FFFFFF;
}
/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */
.titlebg, tr.titlebg th, tr.titlebg td, .titlebg2, tr.titlebg2 th, tr.titlebg2 td {
color: black;
font-style: normal;
background: url(http://www.styleyourforum.com/data/486/css4.jpg) #8BBEDE repeat-x;
padding-left: 10px;
padding-right: 10px;
line-height: 22px;
}
.titlebg, .titlebg a:link, .titlebg a:visited {
font-weight: bold;
color: black;
font-style: normal;
}
.titlebg a:hover {
color: #404040;
}
/* same as titlebg, but used where bold text is not needed */
.titlebg2 a:link, .titlebg2 a:visited {
color: black;
font-style: normal;
text-decoration: underline;
}
.titlebg2 a:hover {
text-decoration: underline;
}
/* This is used for categories, page indexes, and several other areas in the forum.
.catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers*/
.catbg , tr.catbg td , .catbg3 , tr.catbg3 td {
background: url(http://www.styleyourforum.com/data/486/css5.png) #063B5D repeat-x;
color: #ffffff;
padding-left: 10px;
padding-right: 10px;
line-height: 22px;
}
.catbg2 , tr.catbg2 td {
background: url(http://www.styleyourforum.com/data/486/css5.png) #063B5D repeat-x;
color: #ffffff;
padding-left: 10px;
padding-right: 10px;
line-height: 22px;
}
.catbg, .catbg2, .catbg3 {
}
.catbg, .catbg2 {
font-weight: bold;
}
.catbg3, tr.catbg3 td, .catbg3 a:link, .catbg3 a:visited {
font-size: 95%;
color: white;
text-decoration: none;
}
.catbg a:link, .catbg a:visited , .catbg2 a:link, .catbg2 a:visited {
color: white;
text-decoration: none;
}
.catbg a:hover, .catbg2 a:hover, .catbg3 a:hover {
color: #e0e0ff;
}
/* This is used for tables that have a grid/border background color (such as the topic listing.) */
.bordercolor {
border: 1px solid #cfdde6;
padding: 0px;
}
/* This is used on tables that should just have a border around them. */
.tborder {
padding: 1px;
background: #cfdde6;
}
/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */
.smalltext {
font-size: x-small;
font-family: verdana, sans-serif;
}
.middletext {
font-size: 90%;
}
.normaltext {
font-size: small;
}
.largetext {
font-size: large;
}
/* Posts and personal messages displayed throughout the forum. */
.post, .personalmessage {
width: 100%;
overflow: auto;
line-height: 1.3em;
}
/* All the signatures used in the forum. If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature {
width: 100%;
overflow: auto;
padding-bottom: 3px;
line-height: 1.3em;
}
/* Sometimes there will be an error when you post */
.error {
color: red;
}
/* definitions for the main tab, active means the tab reflects which page is displayed */
.maintab_first, .maintab_back, .maintab_last, .maintab_active_first, .maintab_active_back, .maintab_active_last
{
color: white;
text-transform: uppercase;
vertical-align: top;
font-style: bold;
}
.maintab_back, .maintab_active_back
{
color: white;
text-decoration: none;
font-size: 9px;
fond-style: bold
vertical-align: top;
padding: 2px 6px 6px 6px;
font-family: tahoma, sans-serif;
}
.maintab_first
{
background: url(http://www.styleyourforum.com/data/486/css7.gif) left bottom no-repeat;
width: 10px;
}
.maintab_back
{
background: url(http://www.styleyourforum.com/data/486/css8.gif) left bottom repeat-x;
}
.maintab_last
{
background: url(http://www.styleyourforum.com/data/486/css9.gif) left bottom no-repeat;
width: 8px;
}
.maintab_active_first
{
background: url(http://www.styleyourforum.com/data/486/css10.gif) left bottom no-repeat;
width: 6px;
}
.maintab_active_back
{
background: url(http://www.styleyourforum.com/data/486/css11.gif) left bottom repeat-x;
}
.maintab_active_last
{
background: url(http://www.styleyourforum.com/data/486/css12.gif) left bottom no-repeat;
width: 8px;
}
/* how links behave in main tab. */
.maintab_back a:link , .maintab_back a:visited, .maintab_active_back a:link , .maintab_active_back a:visited
{
color: white;
text-decoration: none;
}
.maintab_back a:hover, .maintab_active_back a:hover
{
color: #e0e0ff;
text-decoration: none;
}
/* definitions for the mirror tab */
.mirrortab_first, .mirrortab_back, .mirrortab_last, .mirrortab_active_first, .mirrortab_active_back, .mirrortab_active_last
{
color: white;
text-transform: uppercase;
vertical-align: top;
}
.mirrortab_back, .mirrortab_active_back
{
color: white;
text-decoration: none;
font-size: 9px;
vertical-align: bottom;
padding: 6px 6px 2px 6px;
font-family: tahoma, sans-serif;
}
.mirrortab_first
{
background: url(http://www.styleyourforum.com/data/486/css13.gif) no-repeat;
width: 10px;
}
.mirrortab_back
{
background: url(http://www.styleyourforum.com/data/486/css14.gif) repeat-x;
}
.mirrortab_last
{
background: url(http://www.styleyourforum.com/data/486/css15.gif) no-repeat;
width: 6px;
}
.mirrortab_active_first
{
background: url(http://www.styleyourforum.com/data/486/css16.gif) no-repeat;
width: 6px;
}
.mirrortab_active_back
{
background: url(http://www.styleyourforum.com/data/486/css17.gif) repeat-x;
}
.mirrortab_active_last
{
background: url(http://www.styleyourforum.com/data/486/css18.gif) no-repeat;
width: 8px;
}
/* how links behave in mirror tab. */
.mirrortab_back a:link , .mirrortab_back a:visited, .mirrortab_active_back a:link , .mirrortab_active_back a:visited
{
color: white;
text-decoration: none;
}
.mirrortab_back a:hover, .mirrortab_active_back a:hover
{
color: #e0e0ff;
text-decoration: none;
}
/* The AJAX notifier */
#ajax_in_progress
{
background: #32CD32;
color: white;
text-align: center;
font-weight: bold;
font-size: 18pt;
padding: 3px;
width: 100%;
position: fixed;
top: 0;
left: 0;
}
#head-wrap, #body-wrap, #foot-wrap {
width: 1000px;
margin: 0 auto;
padding: 0;
text-align: left;
clear: both;
}
/* Header */
#header {
position: relative;
height: 118px;
overflow: hidden;
background: #063B5D url(http://www.styleyourforum.com/data/486/css19.png) 0 0 repeat-x;
}
#head-r {
height: 118px;
background: url(http://www.styleyourforum.com/data/486/css20.png) 100% 0 no-repeat;
}
#head-l {
background: url(http://www.styleyourforum.com/data/486/css21.png) 0 0 no-repeat;
}
/* Userarea */
#userarea {
height: 43px;
float: right;
padding: 12px 25px 0 0;
text-align: right;
font-size: 1.0em;
color: #FFFFFF;
font-family: Arial, tahoma, sans-serif;
}
#userarea a:link, #userarea a:visited {
color: #FFFFFF;
}
#userarea a:hover {
color: #0DACFE;
text-decoration: underline;
}
/* logos banners go here. */
#logo {
position: absolute;
top: 10px;
left: 20px;
display: block;
width: 174px;
height: 94px;
cursor: pointer;
background: url(http://www.styleyourforum.com/data/486/css22.png) no-repeat;
}
#bodyarea {
padding: 10px;
margin:0px auto 0px auto;
width: 998px;
}
/* template menu */
.topnav_wrapper {
margin-top:15px;
margin-left: auto;
margin-right: 20%;
}
.topnav{
margin: 0;
padding: 0;
float: left;
font: bold 13px Arial;
width: auto;
border-width: 1px 0;
background: black url(http://www.styleyourforum.com/data/486/css23.gif) repeat-x;
border-left: 1px solid #0d527d;
}
.topnav li{
display: inline;
}
.topnav li a{
float: left;
color: #ffffff;
padding: 14px 14px;
text-decoration: none;
border-right: 1px solid #0d527d;
font-weight:bold;
font-size:8pt;
}
.topnav li a:visited{
color: white;
}
.topnav li a:hover, .topnav li.chosen a {
color: white;
background: transparent url(http://www.styleyourforum.com/data/486/css24.gif) center center repeat-x;
}
/* footer parts */
#footer {
background: url(http://www.styleyourforum.com/data/486/css25.gif) 0 0 repeat-x #053758;
height: 119px;
}
#footerarea {
color: #fff;
padding: 80px 40px 0 0;
font-size: 12px;
text-indent: 5px;
}
#footerarea .foot-right {
float: right;
text-indent: 5px;
}
#footerarea .foot-left {
float: left;
text-indent: 5px;
}
#footerarea a:link, #footerarea a:visited
{
color: #000000;
}
.clr {
clear: both;
}
If you would like to change the image that is set in the header then go into the CSS and change the background URL in #logo to whatever image you want, but make sure that
width: 174px;
height: 94px;
to the dimensions of your image.
Here are some images (on, off, etc)
Collapse:
http://www.styleyourforum.com/data/486/collapse.gifExpand:
http://www.styleyourforum.com/data/486/expand.gifNew None:
http://www.styleyourforum.com/data/486/new_none.gifNew Some:
http://www.styleyourforum.com/data/486/new_some.gifOn:
http://www.styleyourforum.com/data/486/on.gifOff:
http://www.styleyourforum.com/data/486/off.gifCalendar:
http://www.styleyourforum.com/data/486/ico_calendar.gifOnline:
http://www.styleyourforum.com/data/486/ico_online.gifInfo:
http://www.styleyourforum.com/data/486/ico_info.gif
If you would like to hide the tabs on the normal tab bar because you have the top navbar, then please refer to
This Code
Any feedback is welcomed. If you have any questions at all, please post them and I will try to help.