2018-09-06, 09:48 PM
site is here, but it's super WIP.
hi, just started working with mybb. i'm trying to "convert" my old jcink theme (here, though it's totally unpolished & doesn't work nice w/ atypical resolutions bc i switched to mybb before completing) but having a really hard time getting my board wrappers to work. in my code, there are 3 main wrappers-- the "hardwayborder", which is a translucent border-made-div, the wrapper, which contains the header as a background image (so i can minimize the amount of elements i have on ever page, and so that i can set its height to a percentage so no users have to scroll for a long time to see the actual forum), and the cwrapper, for the board content. i have not yet included the sidebar that's present in the original theme, since i just want to get the wrappers working first.
i cannot for the life of me, however, get my wrapper to use padding, margins, heights, et cetera to make the header image actually show. from my experience i can only assume this is because some other code in some random area is overriding it, but i just cannot figure it out. it is extremely frustrating.
1st question--how do i achieve the look of my wrappers in the jcink theme in mybb's codes & templates, etc? here's my present (edited) css, & my header code, creating this monstrosity. you will notice my html is not very organized; this is because i have deleted and re-written it at least a dozen times to try and identify the issue.
thanks for any help--if i need to provide more info/code i can.
hi, just started working with mybb. i'm trying to "convert" my old jcink theme (here, though it's totally unpolished & doesn't work nice w/ atypical resolutions bc i switched to mybb before completing) but having a really hard time getting my board wrappers to work. in my code, there are 3 main wrappers-- the "hardwayborder", which is a translucent border-made-div, the wrapper, which contains the header as a background image (so i can minimize the amount of elements i have on ever page, and so that i can set its height to a percentage so no users have to scroll for a long time to see the actual forum), and the cwrapper, for the board content. i have not yet included the sidebar that's present in the original theme, since i just want to get the wrappers working first.
i cannot for the life of me, however, get my wrapper to use padding, margins, heights, et cetera to make the header image actually show. from my experience i can only assume this is because some other code in some random area is overriding it, but i just cannot figure it out. it is extremely frustrating.
1st question--how do i achieve the look of my wrappers in the jcink theme in mybb's codes & templates, etc? here's my present (edited) css, & my header code, creating this monstrosity. you will notice my html is not very organized; this is because i have deleted and re-written it at least a dozen times to try and identify the issue.
CSS:
/*
---------------------------
body & wrappers
--------------------------- */
BODY {
font-family: Verdana, Tahoma, Arial, sans-serif;
font-size: 12px;
color: #000; margin:20px 0px;
padding:0px;
background-color:#CCC;
text-align:justify;
background-image:url('https://files.jcink.net/uploads/doremi/youth_is_fleeting/background.jpg');
background-size:100%;
background-color:#1a1f1e;
background-attachment:fixed;
background-repeat:no-repeat;
background-position:center;
}
/* Board Width */
#hardwayborder {
background-color:rgba(255,255,255, 0.5);
padding:15px;
border-radius:5px;
margin:auto;
max-width:1200px;
}
#wrapper {
background-image:url('{$theme['logo']}');
padding:10px;
padding-top:500px;
max-width:1200px;
margin:auto;
border-radius:5px;
background-repeat:no-repeat;
}
#cwrapper {
padding:10px;
background-color:rgba(255,255,255, 0.8);
text-align:left;
max-width:950px;
border-radius:5px;
margin-top:500px;
}
#sidebar {
padding:10px;
width:180px;
float:right;
background-color:rgba(255,255,255, 0.8);
border-radius:5px;
height:100%
}
HEADER:
<div id="hardwayborder">
<div id="wrapper">
<a name="top" id="top"></a>
<div id="header">
<div id="cwrapper">
<div class="wrapper">
<ul class="menu top_links">
{$menu_portal}
{$menu_search}
{$menu_memberlist}
{$menu_calendar}
<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help">{$lang->toplinks_help}</a></li>
</ul>
<div id="panel">
<div class="upper">
<div class="wrapper">
{$quicksearch}
{$welcomeblock}
<!-- </div> in header_welcomeblock_member and header_welcomeblock_guest -->
<!-- </div> in header_welcomeblock_member and header_welcomeblock_guest -->
</div>
</div>
<div id="content">
<div class="wrapper">
{$pm_notice}
{$remote_avatar_notice}
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
{$pending_joinrequests}
{$awaitingusers}
<navigation>
<br />
thanks for any help--if i need to provide more info/code i can.