News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Blackhead

Started by Crip, March 12, 2011, 09:13:05 PM

Previous topic - Next topic

Crip

i can fetch you the code for it..

  • Back=]Up 1st√√
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

xmathewx75


Crip

I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

xmathewx75

Oh sorry, I didn't understand what you were saying. Please take your time looking for the code.

Crip

(index.template.php) Find::

<body>';
}



Add [All] This After:

function template_body_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;

   echo '
<div id="wrapper">
    <div id="header">
        <div id="head-l">
            <div id="head-r">
                <div id="userarea" class="smalltext">';

          // If the user is logged in, display stuff like their name, new messages, etc.
            if ($context['user']['is_logged'])
   {
      echo '
       <ul class="reset">
         <li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
      </ul>';

      // Is the forum in maintenance mode?
      if ($context['in_maintenance'] && $context['user']['is_admin'])
         echo '<b>', $txt['maintain_mode_on'], '</b>';

      // Are there any members waiting for approval?
      if (!empty($context['unapproved_members']))
         echo '', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';

      echo '
          <ul class="reset">
            <li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
            <li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>
            <li>', $context['current_time'], '</li>
</ul>';
      if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
         echo '<li><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';
   }
   // Otherwise they're a guest - so politely ask them to register or login.
   else
   {
      echo '<br />', $txt['login_or_register'], '<br />
      <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>';
   }

   echo '
   </div>';
  echo '
       <div id="searcharea">';
           echo '
        <form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '">
        <input class="inputbox" type="text" name="search" value="', $txt['search'], '..." onfocus="this.value = \'\';" onblur="if(this.value==\'\') this.value=\'', $txt['search'], '...\';" />';

     // Search within current topic?
       if (!empty($context['current_topic']))
       echo '<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
 
     // If we're on a certain board, limit it to this board ;).
        elseif (!empty($context['current_board']))
       echo '<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
      echo '
    </form>';
      echo '
  </div>';

  // Show a random news item? (or you could pick one from news_lines...)
   if (!empty($settings['enable_news']))
   {
      echo '
        <div id="news">
        <b>', $txt['news'], ':</b> ', $context['random_news_line'], '
       </div>';
   }
     echo '
          <div id="logo">
         <a href="'.$scripturl.'" title=""></a>
         </div>';
        echo '
      </div>
    </div>
   </div>
<div id="toolbar" style="margin-top: -2.1em;">
   ',template_menu(),'
  </div>
<br class="clear"/>
<div id="top">
     <div id="top-r">
         <div id="top-l">
          </div>
       </div>
   </div>
     <div id="bdy-l">
         <div id="bdy-r">
             <div id="bodyarea">';
                  theme_linktree();

}


Good luck bro' ;)
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Existant

#45
Hey all, was wondering if someone could tell me where to align the image along the left side.
See attached.
There is a gap between the side and the image.  I checked in the index.css and can't seem to get it right.

EDIT: Nevermind, figured it out.  I had the forum set to 97% width, which was preventing the logo from being all the way to the left.  I had to put it to 100%.

Would love to find a way to keep the forum at 97% and still get the logo over.

Crip

What size is your Logo?

This is the css code for it:

#logo a {
position: absolute;
top: 2.5em;
left: 0px;
display: block;
width: 368px;
height: 103px;
cursor: pointer;
background: url(../images/theme/logo.png) no-repeat;
}
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Existant

My logo is currently 775x119

EDIT: Hrm, tried it, still didn't bring it to the outermost left edge.  I had my forum set to 97% width, and found that if I set it to 99.7% width, it brought the logo all the way to the left.  If I set it back to 97% and changed things to what you suggested, it still had that gap.  Like it doesn't want to go past the 97% width barrier.

Crip

Can you give me a Link to-site-Theme ??
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

simpleinter

Hello Crip,
first sorry for my bad eng lan.
i like this them but i have some problem,

- when i type alot of message in news function this thing happen.


- my drop down menu not show when hover mouse on menu seem it bug?


how can i fix all problem?
thank you.

Crip

#50
I would really need to see your WWW.SITE-TO-THEME to tell you what's up for sure??..possibly utf-8 characters ??

For your drop_menu find this:

/* Styles for black head.
------------------------------------------------------- */

#toolbar  {
background: url(../images/theme/toolbar.png) repeat-x 0 0;
height: 46px; clear: both; overflow: hidden;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
margin: 0 0 20px;
padding: 0px 2px 0;
     margin-top: 0em;
}


Remove this:======>overflow: hidden;<=====

/* Styles for black head.
------------------------------------------------------- */

#toolbar  {
background: url(../images/theme/toolbar.png) repeat-x 0 0;
height: 46px; clear: both; ====> overflow: hidden; <======
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
margin: 0 0 20px;
padding: 0px 2px 0;
     margin-top: 0em;
}
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Crip

I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

simpleinter

Hi,
i test other theme about my news problem i hope you can fix it to something like this.



THANKS.

oppahansi

how to auto adjust the sites content into the white background?

Attachment.



oppa

oppahansi

how to auto adjust the sites content into the white background?

Attachment.



oppa

oppahansi

how to auto adjust the sites content into the white background?

Attachment.



oppa

Crip

I don't understand you??
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Jack_40k

Hey, is it possible to get rid of the search bar and the black bar right up the top? Love the theme.

Crip

Yes,
you'd remove that via the "[ Index.Template.php ]" , just BACK-IT-UP 1st..
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -



TOTM Winner. | Demo Site1on1 Theme Support

Jack_40k


Advertisement: