Touch

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

Previous topic - Next topic

Fearless Freap

Bless you!  You have great skills.

-Steve

Soulmaster

#21
Quote from: kenet on March 16, 2011, 04:34:36 AM
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
is this working in the 2.0 upgrade also ?

fixed it works  great
check out my lightning site

Soulmaster

got a other question.  Can't intall the ads mod because of missing this :


<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


in the BoardIndex.template.php

is there a sollution ?
check out my lightning site

Fearless Freap

I don't know what mod you are running, but I do have Ad Managment    3.0.1 running & it is working great.

YHD

Quote from: Soulmaster on June 23, 2011, 04:16:19 AM
got a other question.  Can't intall the ads mod because of missing this :


<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';


in the BoardIndex.template.php

is there a sollution ?
instead of ::

<tbody class="divider">
<tr>
<td colspan="4"></td>
</tr>
</tbody>';

search ::
<span class="bottom_board separate_yh"><span></span></span>';

md_hedji

http://www.simplemachines.org/community/index.php?topic=425248.msg2989427#msg2989427
It works thanks, but in the Web browser Internet Explorer problems, see screenshots. Help please

mrpike

Hi, I was wondering how big the background was in your touch 2.0 theme.

md_hedji

You are asking me?

mrpike

I'm asking anyone who knows.

Sir Osis of Liver


If it's any help, the full screen bg image in the GreenLeaf theme is 1200x900.

When in Emor, do as the Snamors.
                              - D. Lister

md_hedji

mootools menu does not work with this mod, as I understand the reason jQuery *? How can I fix this problem?
http://custom.simplemachines.org/mods/index.php?mod=3056

YHD

Quote from: md_hedji on July 08, 2011, 12:41:28 PM
mootools menu does not work with this mod, as I understand the reason jQuery *? How can I fix this problem?
http://custom.simplemachines.org/mods/index.php?mod=3056

There is a conflict between mootools and jQuery
Opens estadisticas.js (Themes/default/scripts/estadisticas.js)
Search:   
$(document).ready(function() {

//When page loads...
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:eq(1)").addClass("active").show(); //Activate first tab
$(".tab_content:eq(1)").show(); //Show first tab content

//On Click Event
$("ul.tabs li").click(function() {

$("ul.tabs li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".tab_content").hide(); //Hide all tab content

var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
$(activeTab).fadeIn(); //Fade in the active ID content
return false;
});

});

replaced by::
jQuery.noConflict();
jQuery(document).ready(function() {

//When page loads...
jQuery(".tab_content").hide(); //Hide all content
jQuery("ul.tabs li:eq(1)").addClass("active").show(); //Activate first tab
jQuery(".tab_content:eq(1)").show(); //Show first tab content

//On Click Event
jQuery("ul.tabs li").click(function() {

jQuery("ul.tabs li").removeClass("active"); //Remove any "active" class
jQuery(this).addClass("active"); //Add "active" class to selected tab
jQuery(".tab_content").hide(); //Hide all tab content

var activeTab = jQuery(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
jQuery(activeTab).fadeIn(); //Fade in the active ID content
return false;
});

});


md_hedji


Soulmaster

i've got a small style problem. i've you go to my site http://www.bliksemdetectie.nl/index.php?action=forum you will see at the bottom of mij site that there is a style problem. what to do to fix this?

check out my lightning site

Soulmaster

also got this error in my errorlogs


<a class="', $button['active_button'] ? 'active ' : '', 'current" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>

Undefined index: href
in index.template.php line: 406
check out my lightning site

Soulmaster

check out my lightning site

YHD

Quote from: Soulmaster on July 16, 2011, 05:48:56 AM
i've got a small style problem. i've you go to my site http://www.bliksemdetectie.nl/index.php?action=forum you will see at the bottom of mij site that there is a style problem. what to do to fix this?

Attach your BoardIndex.template.php and index.template.php (Theme Touch)

Soulmaster

here they are, but will you also look to this error?

Pas filter toe: Toon alleen de foutmeldingen van deze URL http://www.bliksemdetectie.nl/index.php?action=media;sort=1;asc;nw;start=410 Pas filter toe: Toon alleen de fouten met hetzelfde bericht 8: Undefined index:  href Pas filter toe: Toon alleen fouten van dit bestand  Bestand: /home/********/public_html/Themes/Touch_2/index.template.php
Regel: 406

   386: echo '   387: </ul>   388: </div></div>';   389:
   390: $shown_linktree = true;   391: }   392:
   393: // Show the menu up top. Something like [home] [help] [profile] [logout]...   394: function template_menu()   395: {   396:    global $context, $settings, $options, $scripturl, $txt;   397:
   398:    echo '   399:       <div id="main_menu">   400:          <ul class="menu_touch">';   401:             402:    foreach ($context['menu_buttons'] as $act => $button)   403:    {   404:       echo '   405:             <li id="button_', $act, '">   ==>406:                <a class="', $button['active_button'] ? 'active ' : '', 'current" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>   407:                   <b>', $button['title'], '</b>   408:                </a>';   409:       if (!empty($button['sub_buttons']))   410:       {   411:          echo '   412:                <ul>';   413:
   414:          foreach ($button['sub_buttons'] as $childbutton)   415:          {   416:             echo '   417:                   <li>   418:                      <a href="', $childbutton['href'], '"', isset($childbutton['target']) ? ' target="' . $childbutton['target'] . '"' : '', '>   419:                         <span', isset($childbutton['is_last']) ? ' class="last"' : '', '>', $childbutton['title'], !empty($childbutton['sub_buttons']) ? '...' : '', '</span>   420:                      </a>';   421:             // 3rd level menus   422:             if (!empty($childbutton['sub_buttons']))   423:             {   424:                echo '   425:                      <ul>';   426:
   

check out my lightning site

Soulmaster

check out my lightning site

astroapps

Hi,

I am testing the theme in my computer and I see the menu bar look funny when opened on IE 8. Any suggestion?

Thanks,

EC

Advertisement: