News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Touch

Started by YHD, March 07, 2011, 12:04:05 PM

Previous topic - Next topic

YHD

Link to the theme


Touch - 2.0 RC5 my first theme.

Live demo

Support

Crip

Really nice Theme. ;D
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

Bigguy

Nice work for sure. :)

Matthew K.


plazma85

mhm i got a scarry bug

se same http://www.wowstreams.de/index.php [nofollow]

i use with simpleportal 2.3.3

how can i fix this?

Bigguy

I don't see anything wrong with your site. Can you be more specific. ???

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Matthew K.

Neither do I...
Quote from: Bigguy on March 10, 2011, 07:51:03 AM
I don't see anything wrong with your site. Can you be more specific. ???

plazma85


Bigguy

copy the portal.css file from where it is to the css folder in the theme you are using. It's probably in the default .css folder

lmbuehrer

Using this! I love it! I like how when you click my profile it drops down!!

Soulmaster

really a great theme but... howto make pulldown menus ?
check out my lightning site

kenet

#12
Search:

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
      <div id="main_menu">
         <ul class="menu_touch">';
         foreach ($context['menu_buttons'] as $act => $button)
         echo '
            <li id="button_', $act, '"><a class="', $button['active_button'] ? 'current ' : '', 'firstlevel" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '><b>', $button['title'], '</b></a></li>';

      echo '
         </ul>
      </div>';
}


Replaced by:

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '
      <div id="main_menu">
         <ul class="menu_touch">';
         
   foreach ($context['menu_buttons'] as $act => $button)
   {
      echo '
            <li id="button_', $act, '">
               <a class="', $button['active_button'] ? 'active ' : '', 'current" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
                  <b>', $button['title'], '</b>
               </a>';
      if (!empty($button['sub_buttons']))
      {
         echo '
               <ul>';

         foreach ($button['sub_buttons'] as $childbutton)
         {
            echo '
                  <li>
                     <a href="', $childbutton['href'], '"', isset($childbutton['target']) ? ' target="' . $childbutton['target'] . '"' : '', '>
                        <span', isset($childbutton['is_last']) ? ' class="last"' : '', '>', $childbutton['title'], !empty($childbutton['sub_buttons']) ? '...' : '', '</span>
                     </a>';
            // 3rd level menus
            if (!empty($childbutton['sub_buttons']))
            {
               echo '
                     <ul>';

               foreach ($childbutton['sub_buttons'] as $grandchildbutton)
                  echo '
                        <li>
                           <a href="', $grandchildbutton['href'], '"', isset($grandchildbutton['target']) ? ' target="' . $grandchildbutton['target'] . '"' : '', '>
                              <span', isset($grandchildbutton['is_last']) ? ' class="last"' : '', '>', $grandchildbutton['title'], '</span>
                           </a>
                        </li>';

               echo '
                     </ul>';
            }

            echo '
                  </li>';
         }
            echo '
               </ul>';
      }
      echo '
            </li>';
   }

   echo '
         </ul>
      </div>';
}


Open your index.css
Search:

.menu_touch li a:hover b {
   background:url(../images/theme/menu_e.gif) no-repeat right top;
}



Then add:

/* The dropdown menu - Touch */

.menu_touch li ul {
   background: #f2f2f2;
   padding: 0;
   border-left: 1px solid #293D4F;
   border-right: 1px solid #293D4F;
   border-bottom: 1px solid #293D4F;
   display: none;
   height: auto;
   filter: alpha(opacity=95);
  opacity: 0.95;
  top: 45px;
  position: absolute;
  width: 225px;
  z-index: 200;
}
.menu_touch li:hover ul {
   display: block;
}
.menu_touch li li {
   display: block;
   float: none;
   width: 225px;
}
.menu_touch li ul a {
   background: none;
   padding: 0 5px;
   float: none;
   text-align: left;
}
.menu_touch li ul a:hover {
   background: #cdcdcd;
   color: #006699;
   opacity: 1.0;
   filter: alpha(opacity=100);
}
/* ------- End Menu - Touch ------- */


credit: YIHAD


Thomas Alva Edison dijo:

    "No fracasé, sólo descubrí 999 maneras de como no hacer una bombilla."


Soulmaster

check out my lightning site

Soulmaster

great :) it works :) www.bliksemdetectie.nl   

but now a other question to make this great theme even better. 

is it possible to make in the right uppercorner before of behind search a facebook and twitter icon? and than put the urls for it in the theme account.
check out my lightning site

Soulmaster

question.

I'm having this error :




http://www.bliksemdetectie.nl/index.php?topic=10550.0;prev_next=next
8: Undefined index: href
==>306:                <a class="', $button['active_button'] ? 'active ' : '', 'current" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>



what is wrong ?  can't find it
check out my lightning site

NanoSector

Hello :)

The theme's My Profile and Login links (at the top) do not work, it should give a bounce effect.

I use RC5, and have Simple Spoiler and SMF Project Tools installed.

Any help would be appreciated!

Still, it's a very great theme, nice work!
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Fearless Freap

#17
This is a great Theme... I have just loaded it to my forum
http://http:www.myfavoritecheerleader.com/index.php

I have just a few small favors to ask if you could help me out....

1.  How can I center the forum logo?

2.  How do you shrink the width of the user information on a post?  It crowds the rest of the page to the right and I need to try and save some page space.

Thanks again for quality work.

-Steve

YHD

Open index.css
1. search::
h1.forumtitle
{
line-height: 45px;
font-size: 1.8em;
font-family: Geneva, verdana, sans-serif;
margin: 0;
padding: 0;
float: left;
}

Replace With ::
h1.forumtitle
{
line-height: 45px;
font-size: 1.8em;
font-family: Geneva, verdana, sans-serif;
margin: 0;
padding: 0;
text-align: center;
}


2. search::
#forumposts div.windowbg div.poster, #forumposts div.windowbg2 div.poster {
background: #ebebeb;
border-right: 1px solid #DFDFDF;
text-align: center;
padding-bottom: 30000px;
margin-bottom: -30000px;
width: 16em;
}

changes width: 16em;

YHD

Updated to SMF 2.0

Advertisement: