Mod Adk Portal (2.1.1)

Adk portal is a portal integrated to SMF, with multiple extensions and features.
The portal is aimed at simple and intuitive to the Administrator.
It has all the characteristics of portal, in addition to having a great set of downloads, system of internal pages, etc.

Mod Adk Seo (3.0)

Adk Seo is an internal system of SMF to improve your ranking.
It has powerful features to appear on the top of major search engines.
With this product, you can change your urls, choose your format, encouraging social activity on your site, place their own sitemaps, etc.
Mod Adk Blog (3.0)

Adk blog is an internal system of SMF to help encourage business users.
This product will create a space where your users can use as your own blog, creating categories, entries, and managing your comments.


[Tuto] Menu jQuery Black & Blue.


Board:

Tutoriales

Topic:

[Tuto] Menu jQuery Black & Blue.


Description:

Foro de tutoriales para smf

Author Topic: [Tuto] Menu jQuery Black & Blue.  (Read 1506 times)

0 Members and 1 Guest are viewing this topic.

[Tuto] Menu jQuery Black & Blue.

[Tuto] Menu jQuery Black & Blue.
« on: July 28, 2011, 12:10:33 AM »
Hola Amigos! Esta vez les traigo un Tuto de cómo adaptar un Menú jQuery muy vistoso.
Dedicado especialmente a Gonza (Y)


Comencemos descargando la imagen del Menú:
Link de Descarga
Ahora vamos al Index.template de nuestro Theme.

 Buscamos:
Code: [Select]
// 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="dropmenu" id="menu_nav">';

foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li id="button_', $act, '">
<a class="', $button['active_button'] ? 'active ' : '', 'firstlevel" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
<span class="', isset($button['is_last']) ? 'last ' : '', 'firstlevel">', $button['title'], '</span>
</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>';
}
Reemplazamos por :
Code: [Select]
// 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 id="topnav">';

foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li id="button_', $act, '">
<a href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
', $button['title'], '
</a>
</li>';
}

echo '
</ul>
</div>';
}
Ahora vamos al Index.css
Agregamos al final:
Code: [Select]
ul#topnav {
margin: 0; padding: 0;
float: left;
width: 1000px;
list-style: none;
font-style: normal;
background: url(../images/theme/topnav_stretch.gif) repeat-x;
}
ul#topnav li {
float: left;
border-right: 1px solid #555;
}
ul#topnav li:hover {
background: #1376c9;
}
ul#topnav li a {
padding: 5px 15px;
display: block;
color: #fff;
}

Copiamos la imagen a la carpeta images de su theme.
Como ustedes comprenderán el menú está adaptado para el Theme Default, en otros quizás se deforme si es así, no duden en preguntar para dejarlo a la perfección.
Gracias a Neekiinh0 por reducir el codigo.
Nota: El menú lo adapte para usarlo en Smf, no lo cree yo.

Fuente del código Original:Sohtanaka

Saludos! Espero sirva: D

Prototype

  • *
  • Posts: 262
  • Sometimes I'm a Prototype



Sorry visitor. To access the SMF Personal answers, you need to Register or Login.

Atte. SMF Personal

Tags

 


 
Application Parser To Mod

It is a system developed by SMF Personal, similar to parse smf, but with the difference that it not only show us the steps to install mods but also show us the steps to uninstall and update mods.
The mods that can be analyzed are obviously those who are raised in SMF Personal.
Section Mods

In this section you will find all mods done by the staff and users of SMF Personal.
The mods are displayed in a simple and easy to read.
Section Tutorials

In this section you will find all the tutorials made by our staff and users of SMF Personal.
The tutorials are displayed in a simple and easy to read.

SMF 2.0.2 | SMF © 2011, Simple Machines | Adk Portal 2.1.1 © SMF personal  & Adk Seo 3.0
This site is not affiliated with or endorsed by Simple Machines