Simple Machines Community Forum

SMF Support => Español (Spanish) => Language Specific Support => Modificaciones (Mods) => Topic started by: sneijder23 on June 10, 2008, 05:46:30 AM

Title: Menu lateral desplegable
Post by: sneijder23 on June 10, 2008, 05:46:30 AM
Hay varios sitios que disponen de un menu lateral desplegable y encontre un foro VB que lo tenia,me puse a investigar y encontre una pagina que facilitaba el script solo habia que adaptarlo a SMF,el codigo riginal es este http://dynamicdrive.com/dynamicindex1/omnislide/index.htm y ahora os explicare como poder ponerlo en vuestro foro,podeis ver como queda en mi foro si quereis www.zonagente.com

Paso 1

Subir los 2 archivos que he adjuntado via ftp a vuestro host (ssm.js y ssmItem.js)

Paso 2

Abrir el index.template.php de vuestro theme y pegar esto justo despues de la etiqueta <head>

Quote<style type="text/css">
<!--
A.ssmItems:link      {color:black;text-decoration:none;}
A.ssmItems:hover   {color:black;text-decoration:none;}
A.ssmItems:active   {color:black;text-decoration:none;}
A.ssmItems:visited   {color:black;text-decoration:none;}
//-->
</style>

<SCRIPT SRC="aqui la ruta del archivo/ssm.js" language="JavaScript1.2">

//Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/)
//Updated July 8th, 03 for doctype bug
//For full source, and 100s more DHTML scripts, visit http://www.dynamicdrive.com
//Adaptado a SMF http://www.simplemachines.org por Hydra http://www.zonagente.com

</SCRIPT>

<SCRIPT SRC="aqui la ruta del archivo/ssmItems.js" language="JavaScript1.2"></SCRIPT>

Nota:debeis editar lo que esta en rojo con la ruta donde subais esos 2 archivos

Paso 3

Ahora solo os faltara editar el menu,podeis personalizarlo a vuestro gusto modificando el ssmItem.js

Quote
<!--

/*
Configure menu styles below
NOTE: To edit the link colors, go to the STYLE tags and edit the ssm2Items colors
*/
YOffset=150; // no quotes!!
XOffset=0;
staticYOffset=30; // no quotes!!
slideSpeed=20 // no quotes!!
waitTime=100; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuBGColor="black";
menuIsStatic="yes"; //this sets whether menu should stay static on the screen
menuWidth=150; // Must be a multiple of 10! no quotes!!
menuCols=2;
hdrFontFamily="Verdana";
hdrFontSize="2";
hdrFontColor="#000000";
hdrBGColor="#D1DBE7";
hdrAlign="left";
hdrVAlign="center";
hdrHeight="15";
linkFontFamily="Verdana";
linkFontSize="2";
linkBGColor="white";
linkOverBGColor="#D1DBE7";
linkTarget="_top";
linkAlign="Left";
barBGColor="#FFFFFF";
barFontFamily="Verdana";
barFontSize="2";
barFontColor="#000000";
barVAlign="center";
barWidth=20; // no quotes!!
barText="MENU"; // <IMG> tag supported. Put exact html for an image to show.

///////////////////////////

// ssmItems[...]=[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
ssmItems[0]=["Menu"] //este es el titulo de la categoria 1
ssmItems[1]=["titulo1", "aqui la url", ""]
ssmItems[2]=["titulo2", "aqui la url",""]
ssmItems[3]=["titulo3", "aqui la url", ""]
ssmItems[4]=["titulo4", "aqui la url", "_new"] //el _new es para abrirlo en nueva ventana

ssmItems[5]=["menu2", "", ""] //titulo de la categoria 2
ssmItems[6]=["titulo1", "aqui la url", ""]
ssmItems[7]=["titulo2", "aqui la url", ""]
ssmItems[8]=["titulo3", "aqui la url", ""]
ssmItems[9]=["titulo4", "aqui la url", ""]



buildMenu();

//-->

Los colores vosotros mismo podeis probar combinaciones vereis que no tiene mucho misterio...
Espero que os guste y os sea util,saludos!
Title: Re: Menu lateral desplegable
Post by: TraX22 on June 10, 2008, 03:01:34 PM
Muy bueno , gracias por compartirlo  ;)
Title: Re: Menu lateral desplegable
Post by: Nibogo on June 10, 2008, 05:05:23 PM
algun demo???

Encontrado en zonagente pero la verdad no me gusto

Igual gracias por compartirlo ;)
Title: Re: Menu lateral desplegable
Post by: sneijder23 on June 10, 2008, 05:22:22 PM
Quote from: NIBOGO on June 10, 2008, 05:05:23 PM
algun demo???

Encontrado en zonagente pero la verdad no me gusto

Igual gracias por compartirlo ;)

Es 100% editable,pueden cambiarse fuentes,tamaño,colores,etc... Pero bueno hay gustos para todo :D
Title: Re: Menu lateral desplegable
Post by: Ƨķǐρƥȝř™ on June 10, 2008, 06:48:36 PM
Vamos a probarlo... Me parece interesante...
Title: Re: Menu lateral desplegable
Post by: DECMAR_DJ on June 12, 2008, 08:35:54 AM
sneijder23: hola hago tal como decis y no me sale el menu. te adjunto el index del theme que uso, y podrias fijarte si esta bien..

uso el theme: Dz Abstract Design by Dziner Studio
SMF: 1.1.2
Tinyportal.
Title: Re: Menu lateral desplegable
Post by: sneijder23 on June 12, 2008, 01:03:34 PM
el problema era que pusiste mal la ruta de los archivos,debias incluir la url completa incluido el http,prueba este.
Title: Re: Menu lateral desplegable
Post by: DECMAR_DJ on June 12, 2008, 06:14:08 PM
Gracias sneijder23, era para usarlo aca http://purosonido.eshost.com.ar   ya lo instale es un foro de pruebas por ahora.. Nuevamente gracias.
Title: Re: Menu lateral desplegable
Post by: sneijder23 on June 12, 2008, 06:33:49 PM
de nada ;)
Title: Re: Menu lateral desplegable
Post by: Sergioropase on June 13, 2008, 02:42:27 PM
hola sneijder me interesa mucho esto y me gusta pero no logro que funcione

te adjunto el index por si puedes echarle un vistazo
He subido los archivos al directorio principal ysi pincho en el enlace de los archivos subidos se ven,pero no me funciona.

Uso overwiev con tinyportal.

Gracias por adelantado
Title: Re: Menu lateral desplegable
Post by: sneijder23 on June 13, 2008, 03:29:15 PM
podriais poner el index citado y pegado aki?asi es mas facil para mi ayudaros y para vosotros ponerlo,gracias.
Title: Re: Menu lateral desplegable
Post by: Sergioropase on June 13, 2008, 03:36:45 PM
<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings$boardurl;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''>
<head>
<style type="text/css">
<!--
A.ssmItems:link      {color:black;text-decoration:none;}
A.ssmItems:hover   {color:black;text-decoration:none;}
A.ssmItems:active   {color:black;text-decoration:none;}
A.ssmItems:visited   {color:black;text-decoration:none;}
//-->
</style>

<SCRIPT SRC="http://.com//ssm.js" language="JavaScript1.2">

//Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/)
//Updated July 8th, 03 for doctype bug
//For full source, and 100s more DHTML scripts, visit http://www.dynamicdrive.com
//Adaptado a SMF http://www.simplemachines.org por Hydra http://www.zonagente.com

</SCRIPT>

<SCRIPT SRC="http://.com//ssm.js" language="JavaScript1.2"></SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?rc2p"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?rc2" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?rc2" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';


// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '
        <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_leftbar = '
, empty($options['collapse_leftbar']) ? 'false' 'true'';

                function shrinkHeaderLeftbar(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
                        smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "'
$context['session_id'], '");';
        echo 
'
                        document.getElementById("upshrinkLeftbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("leftbarHeader").style.display = mode ? "none" : "";

                        current_leftbar = mode;
                }
          // ]]></script>
       <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
                var current_rightbar = '
, empty($options['collapse_rightbar']) ? 'false' 'true'';

                function shrinkHeaderRightbar(mode)
                {'
;

        
// Guests don't have theme options!!
        
if ($context['user']['is_guest'])
                echo 
'
                        document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
        else
                echo 
'
                        smf_setThemeOption("collapse_rightbar", mode ? 1 : 0, null, "'
$context['session_id'], '");';

        echo 
'
                        document.getElementById("upshrinkRightbar").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

                        document.getElementById("rightbarHeader").style.display = mode ? "none" : "";

                        current_rightbar = mode;
                }
        // ]]></script>

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>'
;

echo '
</head>
<body>
   <div id="container">
    <div id="header">
     <div id="headerleft">
<div id="headerright">
 <div id="menubar">'
,template_menu(),'
        <div style="float: right; padding: 20px 10px 5px 0">'
;

// TinyPortal
 if($context['TPortal']['leftbar'])
             echo 
' <a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="'$settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 0 1ex;" border="0" /></a><img id="upshrinkTempLeftbar" src="'$settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" />';
         if(
$context['TPortal']['rightbar'])
             echo 
' <a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="'$settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' 'upshrink2.gif''" alt="*" title="'$txt['upshrink_description'], '" style="margin: 0 1ex;" border="0" /></a><img id="upshrinkTempRightbar" src="'$settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" />';
// TinyPortal end

   
echo '</div>
        

       </div>
         <div id="welcome"></div>
<a href="'
.$scripturl.'" title=""><span id="logo">&nbsp;</span></a>';
  
         
echo '
         </div>
        </div>
       </div>
<div id="mainarea">
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>'
;

// TinyPortal integrated bars
          
if($context['TPortal']['leftbar'])
          {
              echo 
'<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
                 <div id="leftbarHeader"'
, empty($options['collapse_leftbar']) ? '' ' style="display: none;"'' style="padding-top: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
                 
TPortal_sidebar('left');
              echo 
'</div></td>';

          }

        echo 
'<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 15px;">';
        if(
$context['TPortal']['centerbar'])
                     echo 
'<div>' TPortal_sidebar('center') , '</div>';
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt$user_info;

   echo 
'</td>';

         
// TinyPortal integrated bars
          
if($context['TPortal']['rightbar']){
              echo 
'<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; padding-top: 4px; padding-left: 1ex;" valign="top" align="right">
                 <div id="rightbarHeader"'
, empty($options['collapse_rightbar']) ? '' ' style="display: none;"'' style="width: ' ,$context['TPortal']['rightbar_width'], 'px; text-align: left; padding-top: 5px;">';
              
TPortal_rightbar();
              echo 
'</div></td>';
          }

        echo 
'</tr></table>
      </div>
       <div id="footer">
  <div id="footer-left">
    <div id="footer-right"><br /> 
          '
theme_copyright(), '
          <br />'
tportal_version() , ' | Theme by <a href="http://www.dzinerstudio.com"><b>DzinerStudio</b></a>';

// Show the load time?
if ($context['show_load_time'])
echo '<br />'$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'];

echo '
    </div>
        </div>
       </div>
   </div> 
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;>&nbsp;';
}

echo '</div>';
}

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

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm''forum''tpadmin')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';

if (isset($_GET['dl']))
$current_action 'dlmanager';

if (isset($_GET['board']) || isset($_GET['topic']))
$current_action 'forum';

if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.

echo '
<div id="topmenu"><ul>'
;
                    // Show the [home] button.
echo '<li><a' $current_action=='home' ' class="current"' '' ' href="'$scripturl'"><span>' $txt[103] , '</span></a></li>';

                             if(
$settings['TPortal_front_type']!='boardindex')
                    // Show the [forum] button.
                        echo '<li><a' $current_action=='forum' ' class="current"' '' ' href="'$scripturl'?action=forum"><span>' $txt['tp-forum'] , '</span></a></li>';

                    // Show the [help] button.
                              
echo '<li><a' $current_action=='help' ' class="current"' '' ' href="'$scripturl'?action=help"><span>' $txt[119] , '</span></a></li>';

                    // How about the [search] button?
if ($context['allow_search'])
echo '<li><a' $current_action=='search' ' class="current"' '' ' href="'$scripturl'?action=search"><span>' $txt[182] , '</span></a></li>';

                    // The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' $current_action=='calendar' ' class="current"' '' ' href="'$scripturl'?action=calendar"><span>' $txt['calendar24'] , '</span></a></li>'

                    // Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])

echo '<li><a' $current_action=='admin' ' class="current"' '' ' href="'$scripturl'?action=admin"><span>' $txt[2] , '</span></a></li>';

              // Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a' $current_action=='profile' ' class="current"' '' ' href="'$scripturl'?action=profile"><span>' $txt[79] , '</span></a></li>';

                    // Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a' $current_action=='pm' ' class="current"' '' ' href="'$scripturl'?action=pm"><span>' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</span></a></li>';

                   // the [member] list button
                        if ($context['allow_memberlist'])
                        echo '<li><a ' $current_action=='mlist' ' class="current"' '' ' href="'$scripturl'?action=mlist"><span>' $txt[331] , '</span></a></li>';

                   // If the user is a guest, show [login] button.
                        if ($context['user']['is_guest'])
                        echo '<li><a ' $current_action=='login' ' class="current"' '' ' href="'$scripturl'?action=login"><span>' $txt[34] , '</span></a></li>';

                    // If the user is a guest, also show [register] button.
                        if ($context['user']['is_guest'])
                        echo '<li><a ' $current_action=='register' ' class="current"' '' ' href="'$scripturl'?action=register"><span>' $txt[97] , '</span></a></li>';

                    // Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a ' $current_action=='logout' ' class="current"' '' 'href="'$scripturl'?action=logout;sesc='$context['session_id'], '"><span>' $txt[108] , '</span></a></li>';

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


}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}
?>


puesto,la verdad es que llevo dandole vueltas al tema y no se donde esta el fallo,yo es que lo veo todo correcto.
Title: Re: Menu lateral desplegable
Post by: sneijder23 on June 13, 2008, 03:44:41 PM
el problema esta aki

Quote<SCRIPT SRC="http://spanishxtra.com/forospanishxtra/ssm.js" language="JavaScript1.2">

Quote<SCRIPT SRC="aqui la ruta del archivo/ssm.js" language="JavaScript1.2">

//Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/)
//Updated July 8th, 03 for doctype bug
//For full source, and 100s more DHTML scripts, visit http://www.dynamicdrive.com
//Adaptado a SMF http://www.simplemachines.org por Hydra http://www.zonagente.com

</SCRIPT>

<SCRIPT SRC="aqui la ruta del archivo/ssmItems.js" language="JavaScript1.2"></SCRIPT>

Si te fijas el primer archivo lo has puesto bien pero el segundo en lugar de poner ssmItem.js has puesto ssm.js solo y ese es el mas importante ya que contiene el menu :P
Title: Re: Menu lateral desplegable
Post by: Sergioropase on June 13, 2008, 03:50:11 PM
joder
ahora mismo lo miro y te digo
Title: Re: Menu lateral desplegable
Post by: Sergioropase on June 13, 2008, 04:32:42 PM
Quote from: sergioropase on June 13, 2008, 03:55:09 PM

<head>
<style type="text/css">
<!--
A.ssmItems:link      {color:black;text-decoration:none;}
A.ssmItems:hover   {color:black;text-decoration:none;}
A.ssmItems:active   {color:black;text-decoration:none;}
A.ssmItems:visited   {color:black;text-decoration:none;}
//-->
</style>

<SCRIPT SRC="http://.com/a/ssm.js" language="JavaScript1.2">

//Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/)
//Updated July 8th, 03 for doctype bug
//For full source, and 100s more DHTML scripts, visit http://www.dynamicdrive.com
//Adaptado a SMF http://www.simplemachines.org por Hydra http://www.zonagente.com

</SCRIPT>

<SCRIPT SRC="http://.com//ssmItem.js" language="JavaScript1.2"></SCRIPT>


vale,lo he corregido y sigue sin rular



No te quiero dar mucho por saco tio jejeje,MUCHAS GRACIAS.
Title: Re: Menu lateral desplegable
Post by: sneijder23 on June 13, 2008, 05:11:39 PM
la ruta del archivo no es correcta,subiste bien los archivos?fijate que esten en el directorio /spanishxtra.com/forospanishxtra/
Title: Re: Menu lateral desplegable
Post by: Sergioropase on June 13, 2008, 05:18:34 PM
vale ya funcionaaaaaaaaaaaaaaaaa MUCHISIMAS GRACIAS CRACK


Gracias,se queda brutal.

GRACIAS.
Title: Re: Menu lateral desplegable
Post by: sneijder23 on June 13, 2008, 05:43:37 PM
de nada   ;)
Title: Re: Menu lateral desplegable
Post by: Sergioropase on June 13, 2008, 06:06:06 PM
una cosa mas,se puede modificar para que no se menee o se menee mas lento,solo por curiosidad,he visto que se puede poner para que se abra mas lento,pero ¿para que no se desplace para arriba y para abajo o lo haga mas lento?

Y de nuevo MUCHISIMAS GRACIAS.
Title: Re: Menu lateral desplegable
Post by: sneijder23 on June 13, 2008, 06:37:53 PM
de desplaza hacia arriba o hacia abajo al mismo tiempo que subes o bajas por la pagina
Title: Re: Menu lateral desplegable
Post by: Sergioropase on June 13, 2008, 06:52:48 PM
ya ,ya la tengo instalada y funcionando,la pregunta era si se puede poner fija,aunque me gusta como se mueve jejeje,pero por si a alguno le molesta el balanceo.
Title: Re: Menu lateral desplegable
Post by: M-DVD on June 13, 2008, 07:00:23 PM
Prueba cambiando estos dos valores del ssmItems.js

slideSpeed=20;
waitTime=100;
Title: Re: Menu lateral desplegable
Post by: Sergioropase on June 13, 2008, 07:07:37 PM
ya lo hice y se menea jejjee.
Title: Re: Menu lateral desplegable
Post by: M-DVD on June 13, 2008, 07:17:17 PM
Prueba poniéndole un, dos o tres ceros más a esos valores.

Reinicia la página varias veces para que se te descargue de nuevo el archivo js y así pruebas.

Title: Re: Menu lateral desplegable
Post by: sneijder23 on June 13, 2008, 07:23:09 PM
para que se quede fijo creo que seria suficiente borrando esto en el archivo ssm.js

Quotefunction makeStatic() {
if (NS||NS6) {winY = window.pageYOffset;}
if (IE) {winY = truebody().scrollTop;}
if (NS6||IE||NS) {
if (winY!=lastY&&winY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));}
else {smooth=0}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (IE) bssm.pixelTop+=smooth;
if (NS6) bssm.top=parseInt(bssm.top)+smooth+"px"
if (NS) bssm.top=parseInt(bssm.top)+smooth
lastY = lastY+smooth;
setTimeout('makeStatic()', 1)}}
Title: Re: Menu lateral desplegable
Post by: Sergioropase on June 13, 2008, 07:29:59 PM
correcto,se queda fija, pero me gusta mas con movimiento,te lo preguntaba por si la gente se queja,pero me gusta mas con movimiento.

Gracias por la paciencia. :)
Title: Re: Menu lateral desplegable
Post by: sneijder23 on June 13, 2008, 07:30:42 PM
ok,saludos
Title: Re: Menu lateral desplegable
Post by: Ƨķǐρƥȝř™ on June 16, 2008, 09:58:45 PM
Funciona a la perfección... De nuevo gracias..
Title: Re: Menu lateral desplegable
Post by: Succubus Evaligan on June 22, 2008, 03:50:44 PM
Me interesa un menú desplegable y dinámico que reemplace al que tiene de default el SMF. Probare con esa modificación que dijiste.
Title: Re: Menu lateral desplegable
Post by: pepeanibal on June 22, 2008, 10:11:11 PM
1- como hago para que quede fija como el menu de la derecha de esta pagina http://dynamicdrive.com/dynamicindex1/omnislide/index.htm

2-como se puede agregar un sub menu al menu, o sea seria asi
se desplega el menu y al hacer click arriba en algun item se desplege un submenu .
Title: Re: Menu lateral desplegable
Post by: sneijder23 on June 23, 2008, 04:16:45 AM
en esa pagina de dinamic drive saque el codigo,busca el codigo de ese menu (hay varios) y haces la misma modificacion que explique con el otro codigo
Title: Re: Menu lateral desplegable
Post by: pepeanibal on June 23, 2008, 11:12:58 AM
si descarge el codigo pero solo quiero solo el menu fijo de la derecha ,
para ponerlo a la izquierda en mi foro.
que parte del codigo tengo que eliminar para eso ?
este es el codigo de los tres menus
http://dynamicdrive.com/dynamicindex1/omnislide/omnislide.zip
que parte del codigo tengo que eliminar para eso ?



Quote from: sneijder23 on June 23, 2008, 04:16:45 AM
en esa pagina de dinamic drive saque el codigo,busca el codigo de ese menu (hay varios) y haces la misma modificacion que explique con el otro codigo
Title: Re: Menu lateral desplegable
Post by: Sergioropase on June 23, 2008, 05:11:13 PM
lo tienes un poco mas arriba en este mismo post.
Title: Re: Menu lateral desplegable
Post by: pepeanibal on June 23, 2008, 06:52:55 PM
el que esta mas arriba no hace lo que quiero , es decir que se quede fijo en la pantalla por mas que mueva la pagina hacia arriba o abajo.
el que esta mas arriba se queda fijo en la pagina o sea si moves la pagina hacia abajo se desaparece de la pantalla.

Fijate en este ejemplo (lo que yo quiero es que se quede fijo como el menu de la derecha de la siguiente pagina.
http://dynamicdrive.com/dynamicindex1/omnislide/index.htm
Quote from: sergioropase on June 23, 2008, 05:11:13 PM
lo tienes un poco mas arriba en este mismo post.
Title: Re: Menu lateral desplegable
Post by: sneijder23 on June 23, 2008, 07:41:19 PM
fijate en el codigo del menu de la derecha en esa pagina,hay 3 tipos de menu:
El de arriba,izquierda y derecha.
Yo puse aqui como poner el de la izquierda que me gusto mas a mi,tu debes seguir los mismos pasos pero con el codigo y los archivos que te facilitan para ese menu de la derecha.
Title: Re: Menu lateral desplegable
Post by: pepeanibal on June 23, 2008, 11:13:13 PM
el drama es ese ,tiene mucho codigo y no se que tengo que eliminar para que quede solo el que quiero (pero a la izquierda). no me podrias dar una mano ? Gracias
Quote from: sneijder23 on June 23, 2008, 07:41:19 PM
fijate en el codigo del menu de la derecha en esa pagina,hay 3 tipos de menu:
El de arriba,izquierda y derecha.
Yo puse aqui como poner el de la izquierda que me gusto mas a mi,tu debes seguir los mismos pasos pero con el codigo y los archivos que te facilitan para ese menu de la derecha.
Title: Re: Menu lateral desplegable
Post by: pepeanibal on July 10, 2008, 05:08:16 PM
alguien me ayuda por favor a mi problem
Aca encontre un web que la tiene como yo quiero.
http://www.foro3d.com/
pero como hago para que quede igual a esa web (fija)
Title: Re: Menu lateral desplegable
Post by: krom-el-melon on August 30, 2008, 10:19:40 AM
Esta genial,sneijder23

Mi pregunta puede parecer tonta,pero como hago para que al pinchar en una opcion del menu se abra en otra pestaña??

gracias
Title: Re: Menu lateral desplegable
Post by: sneijder23 on August 30, 2008, 10:29:52 AM
fijate aqui...

Quote
ssmItems[4]=["titulo4", "aqui la url", "_new"] //el _new es para abrirlo en nueva ventana
Title: Re: Menu lateral desplegable
Post by: krom-el-melon on September 02, 2008, 11:09:15 PM
Instalada y funcionando perfectamente en http://www.flypando.es ;le puse los indices del foro ;D

Mil gracias
Title: Re: Menu lateral desplegable
Post by: 1van10 on September 18, 2008, 02:08:09 AM
ayudame por favor, he probado de mil maneras y na, smf 1.1.6, slickpro graphite:

<?php
// Version: 1.1; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head><style type="text/css">
<!--
A.ssmItems:link      {color:black;text-decoration:none;}
A.ssmItems:hover   {color:black;text-decoration:none;}
A.ssmItems:active   {color:black;text-decoration:none;}
A.ssmItems:visited   {color:black;text-decoration:none;}
//-->
</style>

<SCRIPT SRC="http://solopsp.freexa.com.ar/foro/ssm.js/" language="JavaScript1.2">

//Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/)
//Updated July 8th, 03 for doctype bug
//For full source, and 100s more DHTML scripts, visit http://www.dynamicdrive.com
//Adaptado a SMF http://www.simplemachines.org por Hydra http://www.zonagente.com

</SCRIPT>

<SCRIPT SRC="http://solopsp.freexa.com.ar/foro/ssmItems.js/" language="JavaScript1.2"></SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
 
echo '
  <link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");

document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";

current_header = mode;
}
// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>'
;

//This is for the pop menus
echo '
<script type="text/javascript">

/***********************************************
* Drop Down/ Overlapping Content- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobjstr, opt_position){
if (document.getElementById){
var subobj=document.getElementById(subobjstr)
subobj.style.display=(subobj.style.display!="block")? "block" : "none"
var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0) 
var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)
subobj.style.left=xpos+"px"
subobj.style.top=ypos+"px"
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}

</script>'
;
echo '
</head>
<body>'
;

echo '
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="top-logo"><center><img src="'
$settings['images_url'], '/logo.jpg" width="358" height="91" alt="SlickPro Graphite" title="SlickPro Graphite" /></center></td>
</tr>
<tr>
<td width="100%" align="left" valign="top" style="padding:0 30px 0 30px;">'
;

echo '
<div class="body-border">
<div class="tborder" '
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' '''>';


// display user name
echo '
<table width="100%" cellspacing="1" cellpadding="5" class="bordercolor" border="0" >
<tr>'
;

echo '
<td class="windowbg2" width="100%" valign="middle" align="left">
'
theme_linktree2(), '
</td>'
;

echo '
<td width="250" valign="top" class="windowbg"><span class="middletext" style="display:block;width:250px;">'
;

if($context['user']['is_logged'])
{
echo '
<strong>Welcome, '
$context['user']['name'] , '.</strong><br />';
}

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
{
echo ((isset($current_action) && $curent_action == 'pm') || $context['browser']['is_ie4']) ? '' '' '
<a href="'
$scripturl'?action=pm">Private Messages</a>: '$context['user']['unread_messages'], ' Unread, '$context['user']['messages'], ' Total.<br />';
}

// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

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

// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
'
$txt['totalTimeLogged1'], '<br />';

// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<table border="0" cellpadding="1" cellspacing="0">
<tr>
<td>Username:</td>
<td><input type="text" name="user" size="10" /></td>
<td><select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="passwrd" size="10" /></td>
<td><input type="submit" value="'
$txt[34], '" /></td>
</tr>
</table>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;
}

echo '
</span>
</td>
</tr>
</table>'
;

echo '
<table id="upshrinkHeader2"'
, empty($options['collapse_header']) ? '' ''' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>'
;


echo '
<td width="90%" class="column-title">
'
template_menu(), '
</td>'
;
echo '
</tr>
</table>
</div>'
;


// The main content should go here.
echo '
<div id="bodyarea">'
;

// If you want to put some ads or something on your pages, add them in this.
echo '
<div id="blank-box"></div>'
;
}

function 
template_main_below()
{
global $context$settings$options$scripturl$txt;

echo '
</div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;'
$context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' '''">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<object width="350" height="450" id="obj_1210861216187"><param name="movie" value="http://solopsp.chatango.com/group"/><param name="wmode" value="transparent"/><param name="AllowScriptAccess" VALUE="always"/><param name="AllowNetworking" VALUE="all"/><param name="AllowFullScreen" VALUE="true"/><param name="flashvars" value="cid=1210861216187&a=0099FF&b=100&d=CC0000&f=47&g=333333&h=0000CC&j=333333&k=000000&l=FF6600&m=0099FF&p=12&q=0000CC&r=100&s=1&w=0&aa=1"/><embed id="emb_1210861216187" src="http://solopsp.chatango.com/group" width="350" height="450" wmode="transparent" allowScriptAccess="always" allowNetworking="all" type="application/x-shockwave-flash" allowFullScreen="true" flashvars="cid=1210861216187&a=0099FF&b=100&d=CC0000&f=47&g=333333&h=0000CC&j=333333&k=000000&l=FF6600&m=0099FF&p=12&q=0000CC&r=100&s=1&w=0&aa=1"></embed></object><br> <a href="http://solopsp.freexa.com.ar/foro/index.php/topic,66.0.html">Reglas</a>  <table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="left" class="copyright-links">
Theme by <a href="http://www.m3talc0re.com/" target="_blank" style="font-size:10px;">m3talc0re</a>.
</td>
<td valign="middle" align="center" style="white-space: nowrap;" class="copyright-links">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="right" class="copyright-links">
<a href="http://www.mysql.com/" target="_blank" style="font-size:10px;">MySQL</a>&nbsp;|&nbsp;<a href="http://www.php.net/" target="_blank" style="font-size:10px;">PHP</a>&nbsp;|&nbsp;<a href="http://validator.w3.org/check/referer" target="_blank" style="font-size:10px;">XHTML</a>&nbsp;|&nbsp;<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank" style="font-size:10px;">CSS</a>
</td>
</tr>
</table>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>
</div></td></tr></table>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// If the user is logged in, display stuff like their  new messages, etc...
function theme_newestlink()
{
global $context$settings$options$scripturl$txt;

if ($context['user']['is_logged'])
{
echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a>&nbsp;|&nbsp;<a href="'$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a>';

}
// Otherwise they're a guest - send them a lovely greating...
else
echo $txt['welcome_guest'];
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. THIS IS THE OLD ONE's FIX
function theme_linktree()
{
global $context$settings$options;

echo '<br />';
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion".. THIS IS THE OLD ONE
function theme_linktreeOLD()
{
global $context$settings$options;

echo '<div class="nav-tree" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;text-align:center;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;&raquo;&nbsp;';
}

echo '</div>';
}

//Show a linktree (this one is a vB look alike, vB clone is below).
function theme_linktree2()
{
global $context$settings$options;

// Folder style or inline?  Inline has a smaller font.
echo '<span class="nav-tree" style="font-size: smaller;">';

// Each tree item has a URL and name.  Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show pretty folder
if ($link_num == 0)
{
echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';
}
else if ($link_num == 1)
{
echo '<img src="' $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" /><img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp; ';
}
else
{
echo '&raquo; ';
}

// Show the link, including a URL if it should have one.
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

if ($link_num == 0)
{
echo '<br />';
}
}

echo '</span>';
}

// Show a linktree (vB Clone).  This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree3()
{
        global 
$context$settings$options;

        
// Folder style or inline?  Inline has a smaller font.
        
echo '<span class="nav-tree">';

echo '<img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';

echo '<b><a class="nav-tree" href="http://www.webtechnica.com/">WebTechnica</a></b>&nbsp;&raquo;&nbsp;';

        
// Each tree item has a URL and name.  Some may have extra_before and extra_after.
        
foreach ($context['linktree'] as $link_num => $tree)
        {
                
// Show something before the link?
                
if (isset($tree['extra_before']))
                        echo 
$tree['extra_before'];

                if ((
$link_num == count($context['linktree']) - 1) && count($context['linktree'])>1)
                        echo 
'<br />
<img src="' 
$settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" /><img src="' $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" />&nbsp;';

                
// Show the link, including a URL if it should have one.
                
echo '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav-tree">' $tree['name'] . '</a>' $tree['name'], '</b>';

                
// Show something after the link...?
                
if (isset($tree['extra_after']))
                        echo 
$tree['extra_after'];

                
// Don't show a separator for the last one.
                
if ($link_num count($context['linktree']) - 2)
                        echo 
'&nbsp;&raquo;&nbsp;';

        }

        echo 
'</span>';
}

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

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>'
;

// Show the [home] button.
echo '
<td class="main-navigation"><a href="'
$scripturl'">' $txt[103] , '</a></td>';

// Show the [help] button.
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=help">' $txt[119] , '</a></td>';

// How about the [search] button?
if ($context['allow_search'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=search" onClick="return overlay(this, \'subcontent\',\'bottom\')">' $txt[182] , '<img src="'$settings['images_url'], '/search_down.gif" width="10" height="10" /></a>
<!--Do not remove outer most DIV tag with id="subcontent"-->
<DIV id="subcontent" style="position:absolute; border: 2px solid #3d3d3d; background-color: white; width: 210px; padding: 2px; display:none">
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="catbg" height="20" align="left" valign="middle" style="color:#ffffff;">Quick Search</td>
</tr>
<tr>
<td height="26" align="left" valign="middle" class="windowbg">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
<input type="text" name="search" value="" style="width: 150px;" />&nbsp;
<input type="submit" name="submit" value="GO" />
<input type="hidden" name="advanced" value="0" />'
;

// 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></td>
</tr>
<tr>
<td height="20" align="center" valign="middle" class="windowbg"><a href="'
$scripturl'?action=search;advanced">Advanced Search</a></td>
</tr>
</table>
<div align="right" style="font-size:10px;"><a href="#" onClick="overlayclose(\'subcontent\'); return false">[Close]</a></div>

</DIV>
</td>'
;

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=admin">' $txt[2] , '</a></td>';

// The [calendar]!
if ($context['allow_calendar'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=calendar">' $txt['calendar24'] , '</a></td>';

// the [member] list button
if ($context['allow_memberlist'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=mlist">' $txt[331] , '</a></td>';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=login">' $txt[34] , '</a></td>';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=register">' $txt[97] , '</a></td>';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '
<td class="main-navigation"><a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt[108] , '</a></td>';

    
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<td><a href="'
$scripturl'?action=profile"><img src=http://i398.photobucket.com/albums/pp67/1van10/PERFILcopia.jpg"'$settings['images_http://i398.photobucket.com/albums/pp67/1van10/PERFILcopia.jpg'] . '/' $context['user']['language'] . '/profile.gif" alt="' $txt[79] , '" /></a></td>';

// How about the [search] button?
if ($context['allow_search'])
echo '
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td valign="middle" class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>



tengo los archivos en la carpeta foro
Title: Re: Menu lateral desplegable
Post by: sneijder23 on September 19, 2008, 04:33:01 PM
Que error te da?
Fijate que esten los archivos correctamente subidos y las rutas esten bien...
Title: Re: Menu lateral desplegable
Post by: Sergioropase on September 19, 2008, 07:15:33 PM
Una pregunta,en su momento instalé la barra,pero la quité por que se quedaba la barra de carga de la web un buen rato pensando,es decir abajo en el navegador se queda en "esperando a www.miweb.com" ,a pesar de que la web esta totalmente cargada.

Bueno pues ahora lo he vuelto a instalar por que me es necesario este sistema y sigue haciendo lo mismo.

¿se puede hacer algo?

Title: Re: Menu lateral desplegable
Post by: 1van10 on September 20, 2008, 04:09:40 AM
error no, que no sale
Title: Re: Menu lateral desplegable
Post by: dedalus on October 01, 2008, 02:48:25 PM
Muchas gracias por el menu... ya lo tengo en mi foro !
Title: Re: Menu lateral desplegable
Post by: 1van10 on October 11, 2008, 09:21:38 AM
Entonces alguien sabe porque no me puede funcionar?
Title: Re: Menu lateral desplegable
Post by: sneijder23 on October 11, 2008, 11:37:53 AM
porque no haras correctamente algun paso
Title: Re: Menu lateral desplegable
Post by: Guittenk on October 25, 2008, 11:37:33 PM
Hola que tal, he conseguido colocarlo y todo, hasta ahi ningun drama, ahora lo que sucede es que deseo que esta barrita o menu sólo pueda ser vista por los usuarios que estén logueados......que tendría que modificar o añadir para conseguir eso..???

salu2
Title: Re: Menu lateral desplegable
Post by: overnet on November 12, 2008, 11:17:35 PM
Ami me quedo.. asi :D  ;) ;)
Title: Re: Menu lateral desplegable
Post by: manixless on November 13, 2008, 12:17:11 AM
hola

adjunta aca tu index.template.php si gustas, es solo de ponerle un if

saludos
Title: Re: Menu lateral desplegable
Post by: ngslurbe on December 06, 2008, 09:38:20 AM
Hola.

Como puedo hacer para que siempre se vea quieto y que no se mueva?

Como lo tiene esta web. Gracias.

http://www.foro3d.com/
Title: Re: Menu lateral desplegable
Post by: sneijder23 on December 06, 2008, 10:26:42 AM
denes hacer los mismos pasos pero debes decargarte el otro tipo de menu k sale fijo
Title: Re: Menu lateral desplegable
Post by: Exterminator2006 on December 31, 2008, 08:25:47 AM
Una pregunta

Como hago para que sea para ingles y español ? Que si el usuario seleccione ingles el menu tambien en ingles
Title: Re: Menu lateral desplegable
Post by: ngslurbe on January 10, 2009, 05:33:24 AM
Hay alguna forma para que este menú despelgable sea solo visible para usuarios registrados? Graciasssss
Title: Re: Menu lateral desplegable
Post by: sneijder23 on January 10, 2009, 08:12:58 AM
seria cuestion de probar usando algo similar a

Quoteif ($context['user']['is_guest'])

hay una modificacion bastante similar a esta que te puede ayudar,revisa aqui

http://www.simplemachines.org/community/index.php?topic=203152.0
Title: Re: Menu lateral desplegable
Post by: ngslurbe on January 10, 2009, 05:35:03 PM
Quote from: sneijder23 on January 10, 2009, 08:12:58 AM
seria cuestion de probar usando algo similar a

Quoteif ($context['user']['is_guest'])

hay una modificacion bastante similar a esta que te puede ayudar,revisa aqui

http://www.simplemachines.org/community/index.php?topic=203152.0

E estado buscando por las modificaciones de la barra que invita a registrarse pero no encuentro ninguna variable que indique que solo funciona para invitados, seguro que estará pero yo por lo menos no la e visto, haber si alguien lo a implementado en su foro y puede decir algo, gracias sneijder23
Title: Re: Menu lateral desplegable
Post by: sneijder23 on January 10, 2009, 05:57:38 PM
la variable que buscas es la que te he dicho...
Title: Re: Menu lateral desplegable
Post by: ngslurbe on January 11, 2009, 05:48:00 AM
Quote from: sneijder23 on January 10, 2009, 05:57:38 PM
la variable que buscas es la que te he dicho...

La cosa es dónde colocarla, e buscado por el código de la barra y no lo veo
Title: Re: Menu lateral desplegable
Post by: Tridrac on January 14, 2009, 03:54:50 PM
¡Muchísimas gracias por tan buen aporte Sneijder23!

Es un complemento realmente muy útil y práctico  ;)

Por cierto, he visto (o me ha parecido) que no se puede cambiar el color de los enlaces dentro del menú, ¿no?
Title: Re: Menu lateral desplegable
Post by: sneijder23 on January 15, 2009, 09:57:12 AM
Si que se puede,en concreto es esto

QuotehdrFontColor="#000000";

,saludos.
Title: Re: Menu lateral desplegable
Post by: Tridrac on January 15, 2009, 12:33:30 PM
Quote from: sneijder23 on January 15, 2009, 09:57:12 AM
Si que se puede,en concreto es esto

QuotehdrFontColor="#000000";

,saludos.

Gracias por contestar pero no, querido amigo, con ésa solamente cambias la de los títulos (de ahí lo de "hdr" = header en inglés...)

Un abrazo,  :)
Title: Re: Menu lateral desplegable
Post by: sneijder23 on January 15, 2009, 12:39:42 PM
entendi mal tu pregunta entonces,a que te refieres exactamente se mas claro.
Title: Re: Menu lateral desplegable
Post by: Tridrac on January 15, 2009, 01:14:10 PM
Quote from: sneijder23 on January 15, 2009, 12:39:42 PM
entendi mal tu pregunta entonces,a que te refieres exactamente se mas claro.

¿Más claro? Bueno... pues cito textualmente: "no se puede cambiar el color de los enlaces dentro del menú, ¿no?", es decir las palabras que se pulsan en el menú, debajo de los titulos para ser redireccionado a la sección correspondiente del foro.
Por ejemplo:

(Ejemplo de Menú)

MIFORO (título 1=hdrfont/hdrFontColor="#0000FF"; )
- Portal (enlace 1) (FontColor?)
- Foros y subforos (enlace 2) (FontColor?)
- etc.

Es decir que no se puede cambiar el color de la fuente de los enlaces del menú (es decir: enlace 1, enlace 2, etc...), ¿verdad?.  ???
Title: Re: Menu lateral desplegable
Post by: sneijder23 on January 15, 2009, 02:47:45 PM
si te refieres a poner un color a cada enlace no...
Title: Re: Menu lateral desplegable
Post by: Tridrac on January 15, 2009, 03:42:10 PM
Quote from: sneijder23 on January 15, 2009, 02:47:45 PM
si te refieres a poner un color a cada enlace no...

Bueno, eso o uno diferente del negro a todos los enlaces.
Vale, estaba casi seguro pero nunca está de más asegurarse.

Una vez más, gracias por tu pronta respuesta  ;)
Title: Re: Menu lateral desplegable
Post by: sneijder23 on January 15, 2009, 05:10:29 PM
Si quieres cambiar el negro (del texto) por cualquier otro color es del modo que te dije mas arriba.
Title: Re: Menu lateral desplegable
Post by: pepeanibal on January 20, 2009, 10:18:54 PM
yo logre modificarlo y dejarlo fijo a este menu ya que el otro es mas chico
si lo encuentro donde lo guarde te paso el menu modificado, si no me mandas un mp
Quote from: ngslurbe on December 06, 2008, 09:38:20 AM
Hola.

Como puedo hacer para que siempre se vea quieto y que no se mueva?

Como lo tiene esta web. Gracias.

http://www.foro3d.com/
Title: Re: Menu lateral desplegable
Post by: 1van10 on January 31, 2009, 09:30:11 AM
hola, al instalarlo me ha pasado lo siguiente, lo pongo por si alguno le pasa;

El ancho del foro se ha estrechado.

Solución: vete al style.css de tu theme y haz lo siguiente:

/* The main body of the entire forum. */
body
{


Luego busca el width, y vas probando hasta que se te quede como quieras, a mi en slickpro_graphite lo he puesto a 141px.




cuando he solucionado eso las lineas del copryright se han ido a la derecha, he estado mirando el index.template de mi theme y no se que hacer
Title: Re: Menu lateral desplegable
Post by: 1000bech on February 01, 2009, 02:20:16 PM
Quote from: 1van10 on January 31, 2009, 09:30:11 AM
hola, al instalarlo me ha pasado lo siguiente, lo pongo por si alguno le pasa;

El ancho del foro se ha estrechado.

Solución: vete al style.css de tu theme y haz lo siguiente:

/* The main body of the entire forum. */
body
{


Luego busca el width, y vas probando hasta que se te quede como quieras, a mi en slickpro_graphite lo he puesto a 141px.




cuando he solucionado eso las lineas del copryright se han ido a la derecha, he estado mirando el index.template de mi theme y no se que hacer
Si has pegado el codigo del menú entre el <head> y el </head> de tu index.template no deberías tener que modificar el <body>, fijate si pegaste el codigo en el lugar correcto...



Tengo un problema al poner imágenes en el menú. Me quedan muy separadas una de otras y no puedo editar el color de fondo, visiten mi pagina para que vean:

http://elocio.co.cc/foros













Title: Re: Menu lateral desplegable
Post by: sanchokid on February 03, 2009, 06:19:42 PM
Ola buenos dias, gracias a la pagina de Dynamic drive dhtml scripts, encontre este menu muy wapo, y queria saber si es possible uqe me ayudaran en dos cosas:

- 1er: quiero meter en el codigo script del archivo ssmitems.js una tabla echa con html. en mozilla se ve perfecto, pero en internet explorer no sale.... alguien podria ayudarme....

He intentdo de con las etiquestas de <html>, <body> acer que funcione pero no...

-2on: pepeanibal  podrias poner la modificacion que iciste.. ya que en mi web quiero que se kede fijo pero que se mueva... y si algun otro usuario sabe como acerlo.. su ayuda sera bienvenida.

PD: soy un novato con los scripts y el php. Y mi pagina web es www.cfstattoomsantceloni.es (http://www.cfstattoomsantceloni.es) y se le esta montando un foro SMF.... decir que si entrais por mozilla lo vereis montado y todo... pero entrando con internet explorer os saldra un error...

De antemono os doy las gracias por todo... y un saludo a todos!
Title: Re: Menu lateral desplegable
Post by: sneijder23 on February 04, 2009, 12:14:35 PM
Quote from: sanchokid on February 03, 2009, 06:19:42 PM
Ola buenos dias, gracias a la pagina de Dynamic drive dhtml scripts, encontre este menu muy wapo, y queria saber si es possible uqe me ayudaran en dos cosas:

- 1er: quiero meter en el codigo script del archivo ssmitems.js una tabla echa con html. en mozilla se ve perfecto, pero en internet explorer no sale.... alguien podria ayudarme....

He intentdo de con las etiquestas de <html>, <body> acer que funcione pero no...

-2on: pepeanibal  podrias poner la modificacion que iciste.. ya que en mi web quiero que se kede fijo pero que se mueva... y si algun otro usuario sabe como acerlo.. su ayuda sera bienvenida.

PD: soy un novato con los scripts y el php. Y mi pagina web es www.cfstattoomsantceloni.es (http://www.cfstattoomsantceloni.es) y se le esta montando un foro SMF.... decir que si entrais por mozilla lo vereis montado y todo... pero entrando con internet explorer os saldra un error...

De antemono os doy las gracias por todo... y un saludo a todos!

Ese foro es un PHPBB,entra a su foro de soporte ya que esto es SMF...
Title: Re: Menu lateral desplegable
Post by: 1van10 on February 05, 2009, 02:35:38 PM
Bueno pues ahora el foro me sale más ancho de lo que debe, ¿alguien sabe como solucionarlo?
Title: Re: Menu lateral desplegable
Post by: pendrakon on February 05, 2009, 03:31:03 PM
Quote from: sneijder23 on February 04, 2009, 12:14:35 PM
Ese foro es un PHPBB,entra a su foro de soporte ya que esto es SMF...

pues yo veo k es smf
Title: Re: Menu lateral desplegable
Post by: sneijder23 on February 05, 2009, 05:04:59 PM
Quote from: pendrakon on February 05, 2009, 03:31:03 PM
Quote from: sneijder23 on February 04, 2009, 12:14:35 PM
Ese foro es un PHPBB,entra a su foro de soporte ya que esto es SMF...

pues yo veo k es smf

Recien lo ha cambiado como puedes comprobar por sus estadisticas,se distinguir un SMF y un phpbb  ;)
Title: Re: Menu lateral desplegable
Post by: megamanxzerox on February 08, 2009, 11:21:08 PM
Disculpa una pregunta hay alguna forma de ponerlo en el mk portal???

y otra me puedes decir como ponerlo a la derecha??? o donde se debe modificar para hacerlo la verdad esta genial
Title: Re: Menu lateral desplegable
Post by: sanchokid on February 12, 2009, 12:36:11 PM
Buenos dias,

Sneijder23 es el primer foro que instalamos... no se donde viste que era de phpbb... pero lo que pregunto no es para foro phpbb como dices tu sino para smf... ya que tambien quiero ponerlo en ese foro...

Pero si no tienes ganas de ayudar.. solamente dimelo y buscare algun otro foro que traten sobre los foros smf para que me ayuden.

Un saludo!

Title: Re: Menu lateral desplegable
Post by: sneijder23 on February 12, 2009, 01:49:10 PM
Amigo no tengo motivos para decir algo que no he visto,si no quiero ayudar en un tema simplemente no respondo y lo ignoro pero en el momento de visitar ese sitio vi un foro phpbb.
Title: Re: Menu lateral desplegable
Post by: megamanxzerox on February 12, 2009, 11:11:36 PM
Hola sneijder23 Disculpa una pregunta hay alguna forma de ponerlo en el mk portal???

y otra me puedes decir como ponerlo a la derecha??? o donde se debe modificar para hacerlo la verdad esta genial

es que no encuentro el codigo en la pagina que pusiste gracias
Title: Re: Menu lateral desplegable
Post by: sneijder23 on February 13, 2009, 08:36:45 AM
ya respondi mas arriba,hay que realizar la misma operacion pero en el index de mkportal

PD:Sabras que es el index porque contiene los metas
Title: Re: Menu lateral desplegable
Post by: megamanxzerox on February 15, 2009, 04:50:27 PM
Alguien tiene el codigo para poner la barra a la derecha??
Title: Re: Menu lateral desplegable
Post by: sneijder23 on February 16, 2009, 03:00:57 AM
Aqui tienes los 3 menus (derecha,izquierda,arriba)

http://www.dynamicdrive.com/dynamicindex1/omnislide/index.htm

Title: Re: Menu lateral desplegable (más información y personalización)
Post by: Tridrac on February 20, 2009, 11:49:55 AM
Hola amig@s,

Ahora que tenía un poco más de tiempo, he aprovechado para investigar y hacer "probaturas" con este magnífico menú que, por cierto, NO es el Omnislide (http://www.dynamicdrive.com/dynamicindex1/omnislide/index.htm) ya que en realidad se trata de otro script de la misma web Dynamic Drive, llamado Dynamic-FX Slide-In Menu y que podéis encontrar en este enlace: http://www.dynamicdrive.com/dynamicindex1/davidmenu.htm
En efecto, en dicho enlace podréis encontrar las mismas indicaciones que da Sjneider, así como los dos archivos "ssm.js" y "ssmItems.js".
(Esto también es posible comprobarlo en las líneas que se añaden al Index.template.php y en una de las que podéis leer: //Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/))

Si bien ambos scripts son parecidos, en realidad existen profundas diferencias entre ellos.

1) Cómo cambiar de posición este menú:

Siendo un script diferente del Omnislide, las indicaciones dadas para éste no sirven.
Por lo tanto, si quieres cambiar dicho menú de posición, por ejemplo para ponerlo a la derecha de la ventana, deberás "jugar" con los valores: YOffset y XOffset que encontrarás al inicio del archivo "ssmItems.js".
Para ponerlo en la parte superior de la pantalla, la cosa se complica más y es posible que sea necesario modificar parte del archivo "ssm.js", aunque si soy sincero no me lo he mirado mucho ya que para mí la posición ideal es la que tiene por defecto: a la izquierda.

2) Cómo añadir más de un enlace por línea:

Para ver un ejemplo de lo que hablo, simplemente mirad la demo del enlace indicado (http://www.dynamicdrive.com/dynamicindex1/davidmenu.htm) y veréis que las categorías "FAQ" y "Email" comparte la misma línea del menú.

Para ello, tendremos que jugar con algunas variables de forma muy sencilla.
La primera es: "menuCols" que indica el máximo número de columnas admitido (por defecto 2).
(nota importante: no es posible poner un número diferente de columnas por línea; es decir, por ejemplo, una línea con 3 columnas y otra con 2; por lo tanto, si en una línea ponéis 3 columnas, en otras líneas en las que hagáis las modificaciones que os voy a indicar a continuación, también tendréis 3 columnas).

Una vez fijado el número de columnas, tendremos que modificar los items que queramos que "compartan" línea, según el siguiente formato:
[name, link, target, colspan, endrow?]
Veamos un ejemplo para más claridad:

ssmItems[0]=["MI FORO"] //éste es el título de la categoria 1 (basta con indicar el nombre; las demás variables se dejan en blanco).
ssmItems[1]=["Portal", "http://miforo.net/index.php", "",1, "no"] (el 1 indica que se requiere una columna y el "no" indica que se va a añadir otra columna (item) o si preferís que la línea no se acaba)
ssmItems[2]=["Foros", "http://miforo.net/index.php?action=forum","",1] (fácil de entender si has entendido la línea anterior / estos dos items o enlaces, compartirán la misma línea del menú)
ssmItems[3]=["Chat", "http://miforo.net/index.php?action=forum", "_new"] (new, permite que al pulsar el enlace correspondiente, éste se abra en una nueva ventana en lugar de la que se está visualizando).
ssmItems[4]=["Mensajes privados"] //éste es el título de la categoria 2
Etc...

3) Cómo cambiar el color de los enlaces independientemente del de los títulos:

Con este último punto me respondo yo mismo a una consulta (http://www.simplemachines.org/community/index.php?topic=243816.msg1879635#msg1879635) que hice en este mismo hilo:

Para lograr cambiar el color de los enlaces (incluso se les puede poner diferentes colores según si lo pulsas, pasas por encima con el ratón, etc.), deberemos "jugar" con los valores:

<style type="text/css">
<!--
A.ssmItems:link      {color:black;text-decoration:none;}
A.ssmItems:hover   {color:black;text-decoration:none;}
A.ssmItems:active   {color:black;text-decoration:none;}
A.ssmItems:visited   {color:black;text-decoration:none;}
//-->
</style>

Si observáis, veréis que pone "color:black" ; pues bien poned el color (en inglés y uno de esta lista (http://www.w3schools.com/css/css_colornames.asp)) que queráis en lugar de black.
También es posible ponerlos en negrita, subrayado, etc. poniendo el efecto deseado en "decoration".
Son posibles 5 efectos (pero el último no funciona para IE):

none (ninguno)
underline (subrayado por debajo del texto)
overline (subrayado por encima del texto)
line-through (cruzando el texto)
blink (intermitente)

Bueno y eso es todo, espero que estas indicaciones os sean útiles para personalizar totalmente este estupendo menú.

Un abrazo,  ;)
Title: Re: Menu lateral desplegable
Post by: sanchokid on February 20, 2009, 08:05:30 PM
gracias por la informacion tridac.... yo aun soy novato con el php y quiesiera preguntarte si ay alguna manera de poner dos o tres colores diferentes en los links, ya que quiero poner los links de una categoria de un color.. y las de otra con otro color diferente.

Por ejemplo:
ssmItems[0]=["Categoria 1"] //categoria 1 (color blanco).
ssmItems[1]=["Foro 1", "http://miforo.net/index.php"] (color Verde claro)
ssmItems[2]=["Foro 2", "http://miforo.es/index.php"] (color Verde calro)
ssmItems[3]=["categoria 2"] //categoria 2 (color blanco).
ssmItems[4]=["Foro de colega 1", "http://forodecolega.com.es"] ( Color Rojo )
ssmItems[5]=["Foro de colega 2", "http://forodecolega.net"] ( Color Rojo )


Espero que alguien me pueda ayudar... gracias
Title: Re: Menu lateral desplegable
Post by: Tridrac on February 20, 2009, 08:52:33 PM
Quote from: sanchokid on February 20, 2009, 08:05:30 PM
gracias por la informacion tridac.... yo aun soy novato con el php y quiesiera preguntarte si ay alguna manera de poner dos o tres colores diferentes en los links, ya que quiero poner los links de una categoria de un color.. y las de otra con otro color diferente.

Por ejemplo:
ssmItems[0]=["Categoria 1"] //categoria 1 (color blanco).
ssmItems[1]=["Foro 1", "http://miforo.net/index.php"] (color Verde claro)
ssmItems[2]=["Foro 2", "http://miforo.es/index.php"] (color Verde calro)
ssmItems[3]=["categoria 2"] //categoria 2 (color blanco).
ssmItems[4]=["Foro de colega 1", "http://forodecolega.com.es"] ( Color Rojo )
ssmItems[5]=["Foro de colega 2", "http://forodecolega.net"] ( Color Rojo )


Espero que alguien me pueda ayudar... gracias

Hola compañero,

Pues creo que no se puede poner un color diferente para cada "categoría" de enlaces (por lo menos sin tener que hacerle cambios profundos al programa).
Lo siento  :(

Un abrazo,  :)

P.D: De todos modos, te daré un consejo: cuidado con querer "adornar" demasiado las cosas empleando muchos colores, al final cansa y desvía la atención de lo realmente importante, el contenido.
Title: Re: Menu lateral desplegable
Post by: sanchokid on February 20, 2009, 09:01:29 PM
Quote from: Tridrac on February 20, 2009, 08:52:33 PM
Hola compañero,

Pues creo que no se puede poner un color diferente para cada "categoría" de enlaces (por lo menos sin tener que hacerle cambios profundos al programa).
Lo siento  :(

Un abrazo,  :)

P.D: De todos modos, te daré un consejo: cuidado con querer "adornar" demasiado las cosas empleando muchos colores, al final cansa y desvía la atención de lo realmente importante, el contenido.

Gracias por tu respuesta compañero...

Tenia la idea de utilizar tal y como tengo ahora mismo el menu: www.cfstattoomsantceloni.es (http://www.cfstattoomsantceloni.es) pero sin utilizar los codigos de html, ya que por el momento no he encontrado nada en la red que me pueda ser gustar tanto como este menu... ya que si lo consigo lo pondria en el foro....

Y decir finalmente, GRacias a todos los expertos que ayudan a los novatos como yo... Muchas gracias
Title: Re: Menu lateral desplegable
Post by: tonra30 on March 01, 2009, 02:45:50 PM
Hola sneijder23,ante todo darte las gracias por tu siempre inestimable ayuda
a los demás,me gustaria que echaras un vistazo a mi index y observaras
si existe error alguno,pues no hay manera de que me aparezca el menu
despregable,el foro es un smf 1.1.8 y lo estoy creando nuevo,te dejo la
url http://www.tuportalpando.com/foropruebas/index.php (http://www.tuportalpando.com/foropruebas/index.php) y la
acompaño con una captura de mi index:
Quote<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>

<style type="text/css">
<!--
A.ssmItems:link      {color:black;text-decoration:none;}
A.ssmItems:hover   {color:black;text-decoration:none;}
A.ssmItems:active   {color:black;text-decoration:none;}
A.ssmItems:visited   {color:black;text-decoration:none;}
//-->

</style>

<SCRIPT SRC="http://www.tuportalpando.com/httpdocs/foropruebas/ssm.js" language="JavaScript1.2">

//Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/)
//Updated July 8th, 03 for doctype bug
//For full source, and 100s more DHTML scripts, visit http://www.dynamicdrive.com
//Adaptado a SMF http://www.simplemachines.org por Hydra http://www.zonagente.com

</SCRIPT>

<SCRIPT SRC="http://www.tuportalpando.com/httpdocs/foropruebas/Themes/RedRap/ssmItems.js" language="JavaScript1.2"></SCRIPT>

También los he alojado juntos en el mismo directorio y no funcionan tampoco.
Muchas gracias  ;)
Title: Re: Menu lateral desplegable
Post by: sneijder23 on March 01, 2009, 04:53:28 PM
imagino que las rutas de los archivos estaran mal,comprueba donde los subiste y edita las rutas exactas donde carga los archivos de tu index /ssm.js y /ssmItems.js
Title: Re: Menu lateral desplegable
Post by: tonra30 on March 01, 2009, 07:34:53 PM
Muchisimas gracias,el problema estaba en la ruta,sobrebe el httpdocs.
Gracias de nuevo ;)
Title: Re: Menu lateral desplegable
Post by: EmiOconnor on May 01, 2009, 11:36:28 PM
Tengo un problema con éste menú.

Pude instalarlo bien, funciona perfecto. Al estar en mi portal (SimplePortal) puedo visualizarlo, al estar en el index del foro tambien. Pero a la hora de entrar a un foro o a algun post, el menu no se ve.

¿Donde puede estar el problema?
Title: Re: Menu lateral desplegable
Post by: sneijder23 on May 03, 2009, 02:17:16 AM
que archivos editaste?
Title: Re: Menu lateral desplegable
Post by: EmiOconnor on May 03, 2009, 03:11:54 PM
Quote from: sneijder23 on May 03, 2009, 02:17:16 AM
que archivos editaste?

Ya logré solucionarlo. Habia un pequeño error mio en el Index.template.php

Saludos!
Title: Re: Menu lateral desplegable
Post by: missing on May 31, 2009, 07:16:34 PM
Tengo un foro por el que solo pueden navegar los usuarios registrados. En el menu desplegable una de las opciones es "Inicio", con este enlace: http://mi sitio.com/index.php
Al clicar en el, remite automaticamente a la pagina de registro o ingreso.

¿que podria hacer para evitar eso? Las demas opciones funcionan correctamente.
Title: Re: Menu lateral desplegable
Post by: Ginolatex on May 31, 2009, 07:23:00 PM
Gracias por el aporte. Hay alguna forma para que los usuarios puedan cerrar la pestaña si les molesta?




Saludos.
Title: Re: Menu lateral desplegable
Post by: missing on June 02, 2009, 09:17:17 AM
¿Alguien me puede ayudar con este tema?

Quote from: missing on May 31, 2009, 07:16:34 PM
Tengo un foro por el que solo pueden navegar los usuarios registrados. En el menu desplegable una de las opciones es "Inicio", con este enlace: http://mi sitio.com/index.php
Al clicar en el, remite automaticamente a la pagina de registro o ingreso.

¿que podria hacer para evitar eso? Las demas opciones funcionan correctamente.
Title: Re: Menu lateral desplegable
Post by: HackRos on June 09, 2009, 09:41:09 AM
Quote from: missing on June 02, 2009, 09:17:17 AM
¿Alguien me puede ayudar con este tema?

Quote from: missing on May 31, 2009, 07:16:34 PM
Tengo un foro por el que solo pueden navegar los usuarios registrados. En el menu desplegable una de las opciones es "Inicio", con este enlace: http://mi sitio.com/index.php
Al clicar en el, remite automaticamente a la pagina de registro o ingreso.

¿que podria hacer para evitar eso? Las demas opciones funcionan correctamente.

Ve a la administracion y despues ve a

Configuración del Foro
--------------------------
Características y Opciones
------------------------------

y le das hasta arriba esta esta opcion

Permitir a los visitantes navegar en el foro, y la marcas

:) y listo
Title: Re: Menu lateral desplegable
Post by: missing on June 09, 2009, 08:51:13 PM
Vale, gracias. Pero es que NO quiero que los visitantes naveguen por el foro. Es privado, solo accesible a usuarios registrados y previamente aceptados.
Title: Re: Menu lateral desplegable
Post by: HackRos on June 09, 2009, 08:56:54 PM
vale. creo que tu problema era ese pero bueno ^^
Title: Re: Menu lateral desplegable
Post by: - = Orfeo = - on November 22, 2009, 09:16:27 AM
No hay forma alguna de poder darle efectos css? o particulares para codigos de mozilla en css
Title: Re: Menu lateral desplegable
Post by: sneijder23 on December 03, 2009, 04:22:35 AM
Que tipo de efectos?
Title: Re: Menu lateral desplegable
Post by: taka-zero on December 07, 2009, 07:09:04 PM
sos groso men, me sirvió, gracias
arigatou gozaimasu!  ;)
Title: Re: Menu lateral desplegable
Post by: - = Orfeo = - on December 09, 2009, 11:51:42 PM
No ninguno, creo que con un css lo puedo editar bastante, no? :S
Title: Re: Menu lateral desplegable
Post by: Exterminator2006 on February 12, 2010, 04:51:27 AM
Tengo un detalle cuando entro a un post de varias paginas le doy clic en ver ultimo . ... todo bien hasta ahi  .. pero cuando tomo el mouse y comienzo a desplegar la pantalla hacia abajo...es infino.. no tiene fin.......  :(
Title: Re: Menu lateral desplegable
Post by: gantz on February 12, 2010, 08:52:50 AM
hola tengo el tema Reference by Crip y adkportal smf 2.0rc2 pero al momento de poner el index.template que edite no sale ningun error sino que se ve solo la imagen de fondo de mi tema espero me puedan ayudar salu2  y gracias

Aqui mi Index.template

<?php
// Version: 2.0 RC2; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '2.0 RC2';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as opposed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status separate from topic icons? */
$settings['separate_sticky_lock'] = true;

/* Does this theme use the strict doctype? */
$settings['strict_doctype'] = false;

/* Does this theme use post previews on the message index? */
$settings['message_index_preview'] = false;

/* Set the following variable to true if this theme requires the optional theme strings file to be loaded. */
$settings['require_theme_strings'] = false;
}

// The main sub template above the content.
function template_html_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''>
<head>
<style type="text/css">
<!--
A.ssmItems:link      {color:black;text-decoration:none;}
A.ssmItems:hover   {color:black;text-decoration:none;}
A.ssmItems:active   {color:black;text-decoration:none;}
A.ssmItems:visited   {color:black;text-decoration:none;}
//-->
</style>

<SCRIPT SRC="http://www.incelugi.co.cc/ssm.js" language="JavaScript1.2">

//Dynamic-FX slide in menu v6.5 (By maXimus, http://maximus.ravecore.com/)
//Updated July 8th, 03 for doctype bug
//For full source, and 100s more DHTML scripts, visit http://www.dynamicdrive.com
//Adaptado a SMF http://www.simplemachines.org por Hydra http://www.zonagente.com

</SCRIPT>

<SCRIPT SRC="http://www.incelugi.co.cc/ssmItems.js" language="JavaScript1.2"></SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title_html_safe'], '" />
<meta name="keywords" content="'
$context['meta_keywords'], '" />
<title>'
$context['page_title_html_safe'], '</title>';

// Favicon Edits
global $context;
$link_rel '';
if (!empty($settings['header_favicon_url']))
{
if(preg_match('~http://(?:.*?)\.(png|ico|gif)(?:\?(?:.*?)|)~i'$settings['header_favicon_url'], $type))
{
// Append to html headers
$link_rel .= '
<link rel="'
. (!empty($context['browser']['is_ie']) ? 'shortcut icon' 'icon' ) .'" href="'$settings['header_favicon_url'] . '" type="'. (($type[1] == 'ico') ? 'image/vnd.microsoft.icon' 'image/'.$type[1] ) .'" />';
unset($type);
}

}
echo $link_rel;


// Please don't index these Mr Robot.
if (!empty($context['robot_no_index']))
echo '
<meta name="robots" content="noindex" />'
;

// Present a canonical url for search engines to prevent duplicate content in their indices.
if (!empty($context['canonical_url']))
echo '
<link rel="canonical" href="'
$context['canonical_url'], '" />';

// The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/index'$context['theme_variant'], '.css?rc2" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/print.css?rc2" media="print" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" />
<link rel="search" href="'
$scripturl'?action=search" />
<link rel="contents" href="'
$scripturl'" />';


// * Highslide image viewer mod
echo '<script language="JavaScript" type="text/javascript" src="'$settings['default_theme_url'], '/Highslide/highslide.js"></script>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/Highslide/highslide.'$context['user']['language'], '.js"></script>
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/Highslide/highslide.css" media="screen" />
<script type="text/javascript">
    hs.graphicsDir = "'
$settings['default_theme_url'], '/Highslide/";
    hs.outlineType = "rounded-white";
    hs.captionEval = "this.thumb.alt";
    hs.transitions = ["expand", "crossfade"];
    hs.numberOfImagesToPreload = 5;
    hs.dimmingOpacity = 0;
    hs.fadeInOut = false;
    hs.align = "center";
    hs.showCredits = false;
    hs.creditsText = "";
    hs.creditsHref = "";
    hs.creditsTitle = "";
    if (hs.addSlideshow) hs.addSlideshow({
        interval: 5000,
        repeat: false,
        useControls: true,
fixedControls: false,
        overlayOptions: {
         opacity: 1,
         position: "top right",
         hideOnMouseOut: false
}
    });
  </script>'
;
// Highslide image viewer mod *
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name_html_safe'], ' - '$txt['rss'], '" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="'
$scripturl'?board='$context['current_board'], '.0" />';

// Some browsers need an extra stylesheet due to bugs/compatibility issues.
foreach (array('ie7''ie6''firefox''webkit') as $cssfix)
if ($context['browser']['is_' $cssfix])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/css/'$cssfix'.css" />';

// RTL languages require an additional stylesheet.
if ($context['right_to_left'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/css/rtl.css" />';

echo '
<script type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/script.js?rc2"></script>
<script type="text/javascript" src="'
$settings['theme_url'], '/scripts/theme.js?rc2"></script>
<script type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_default_theme_url = "'
$settings['default_theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";'$context['show_pm_popup'] ? '
var fPmPopup = function ()
{
if (confirm("' 
$txt['show_personal_messages'] . '"))
window.open(smf_prepareScriptUrl(smf_scripturl) + "action=pm");
}
addLoadEvent(fPmPopup);' 
'''
var ajax_notification_text = "'
$txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "'
$txt['modify_cancel'], '";
// ]]></script>'
;

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];

echo '
</head>

<body>'
;
// New Pm
   
if ($context['user']['is_logged'] && $context['allow_pm'])
   {
      if(
$context['user']['unread_messages'] >= 1)
      {
         echo 
'<bgsound src="'$settings['images_url'], '/newpm.wma" loop="0">';
      }
   }


}

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 ($context['user']['is_logged']){
echo '<b>'$txt['hello_member'], ' '$context['user']['name'], '</b><br />';
  echo '
  <a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a><br />
  <a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />
  '
$context['current_time'],'<br />';}

// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo sprintf($txt['welcome_guest'], $txt['guest_title']);
echo '
  <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/sha1.js"></script>
  <form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" style="margin: 4px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user"  size="10" />
<input type="password" name="passwrd"  size="10" />
<input type="submit" value="'
$txt['login'], '" class="button_submit" />
<input type="hidden" name="hash_passwrd" value="" />
</form>'
$context['current_time'],'<br />';
  }
  echo '
  </div>
<div id="searcharea">
<form id="search_form" style="margin: 0;" action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '">
<input type="text" name="search" value="" class="input_text" />&nbsp;
<input type="submit" name="submit" value="'
$txt['search'], '" class="button_submit" />
<input type="hidden" name="advanced" value="0" />'
;

// 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>
  </div>
<a href="'
.$scripturl.'" title=""><span id="logo">&nbsp;</span></a>';
 echo '
 </div>
  </div>
</div><br style="clear: both; /">
  <div id="toolbar">
  '
,template_menu(),'
 </div>
<div id="bdy-l">
 <div id="bdy-r">
 <div id="bodyarea">'
;
theme_linktree();
}

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

echo '
</div>
  </div>
 </div>'
;

// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer">
<div id="foot-l">
<div id="foot-r">
<div id="footerarea">
<span class="smalltext">'
, !empty($settings['custom_copyright']) ? '<span class="smalltext">'parse_bbc($settings['custom_copyright']). '</span>' '''<br />
                  '
theme_copyright(), '
<br /><br />Reference by <a href="http://www.jpr62.com" target="_blank"><b>Crip</b></a></span>'
;

// Show the load time?
if ($context['show_load_time'])
echo '<br /><span class="smalltext">'$txt['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</span>';

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

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

echo '
</div>
'
;   

if (
$context['user']['is_logged'] && $context['allow_pm'])

      if(
$context['user']['unread_messages'] >= 1)
     echo 
'
       <div id="topbar">
          <table width="100%" style="cursor: default;">
             <tr>
                <td valign="top" align="left">

                   <img src="'
$settings['images_url'], '/popup.gif" border="0" />
                </td>
                <td valign="top" align="left">
                   <center><a href="'
$scripturl'?action=pm">'$context['user']['unread_messages'] > '<strong>'$context['user']['unread_messages'] . '</strong>' '' '</a><font color="black"><font size="1px"><b> '$txt['therenew'], '</b></font>
                </td>
                <td valign="top" align="right">
                   <a href="" onClick="closebar(); return false">
                      <img src="'
$settings['images_url'], '/close.gif" border="0" />

                   </a>
                </td>
             </tr>
          </table>
          <table height="78%" width="100%" style="border-right:1px solid #b9c9ef; border-top:1px solid #728eb8; border-bottom:1px solid #b9c9ef; border-left:1px solid #728eb8; cursor: default;">
             <tr>
                 <td valign="center">
                   <center><b><a href="'
$scripturl'?action=pm" style="color:blue; font-size:11px">'$txt['newpm'], '</a></b>
                </td>
             </tr>
             <tr>
                <td valign="top" align="center" colspan="2">
                   <a href="" onClick="closebar(); return false"><span style="font-size:10px; color:red;">'
$txt['close'], '</ span></a>

                </td>
             </tr>
          </table>
       </div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($force_show false)
{
global $context$settings$options$shown_linktree;

// If linktree is empty, just return - also allow an override.
if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show))
return;

// Reverse the linktree in right to left mode.
if ($context['right_to_left'])
$context['linktree'] = array_reverse($context['linktree'], true);

echo '
<div class="navigate_section">
<ul>'
;

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
<li'
, ($link_num == count($context['linktree']) - 1) ? ' class="last"' '''>';

// Don't show a separator for the last one (RTL mode)
if ($link_num != count($context['linktree']) - && $context['right_to_left'])
echo '&#38;#171;&nbsp;';

// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' 
$tree['url'] . '"><span>' $tree['name'] . '</span></a>' '<span>' $tree['name'] .'</span>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - && !$context['right_to_left'])
echo '&nbsp;&#38;#187;';

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

$shown_linktree true;
}

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

echo '
<div id="topnav">
 <ul>'
;
foreach ($context['menu_buttons'] as $act => $button)
echo '<li><a '$button['active_button'] ? ' class="current"' '' ' href="'$button['href'], '"><b>'$button['title'], '</b></a></li>';

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

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$strip_options = array())
{
global $settings$context$txt$scripturl;

if (!is_array($strip_options))
$strip_options = array();

// Create the buttons...
$buttons = array();
foreach ($button_strip as $key => $value)
{
if (!isset($value['test']) || !empty($context[$value['test']]))
$buttons[] = '<a ' . (isset($value['active']) ? 'class="active" ' '') . 'href="' $value['url'] . '" ' . (isset($value['custom']) ? $value['custom'] : '') . '><span>' $txt[$value['text']] . '</span></a>';
}

// No buttons? No button strip either.
if (empty($buttons))
return;

// Make the last one, as easy as possible.
$buttons[count($buttons) - 1] = str_replace('<span>''<span class="last">'$buttons[count($buttons) - 1]);

echo '
<div class="buttonlist'
, !empty($direction) ? ' align_' $direction '''"', (empty($buttons) ? ' style="display: none;"' ''), (!empty($strip_options['id']) ? ' id="' $strip_options['id'] . '"'''), '>
<ul>
<li>'
implode('</li><li>'$buttons), '</li>
</ul>
</div>'
;
}

// A Output for the Thank You list, it's used for the Single Preview and Display Template :)
function template_thank_you_post($thankYouPost$id_msg)
{
global $txt$context$modSettings;

if (!empty($context['thank_you_post'][$id_msg]))
{
if(empty($context['thank_you_post_template']['disable_start_text']))
echo '
<div class="smalltext" id="thank_you_start_text">'
$context['thank_you_post_template']['start_text'] , '</div>';

// Output the Thank You List...
echo '
<div class="smalltext" id="thank_you_list">'
;

foreach ($context['thank_you_post'][$id_msg]['fulllist'] as $thx)
echo $thx['link'] , (!empty($thx['deletelink']) ? $thx['deletelink'] : '').($thx['last'] ? '' ', ');

echo '
</div>'
;
}

// Counter and Link to the direct or a link to the complete list :)
if (empty($context['thank_you_post_template']['disable_counter_text']))
{
echo '
<div class="smalltext" id="thank_you_list_link">'
;
if (empty($context['thank_you_post_template']['disable_counter_link']))
echo '
<a href="'
$thankYouPost['href'] ,'">';
echo '
'
$txt['thank_you_link_beforecounter'], ' <strong>'$thankYouPost['counter'], '</strong> ', ($thankYouPost['counter'] == $txt['thank_you_link_member'] : $txt['thank_you_link_members']).' '.($thankYouPost['counter'] == $txt['thank_you_link_aftercounter'] : $txt['thank_you_link_aftercounters']);
if (empty($context['thank_you_post_template']['disable_counter_link']))
echo '
</a>'
;
echo '
</div>'
;
}

// Show some information if the Thank-O-Matic Post is locked
if ($thankYouPost['locked'])
echo '
<div class="smalltext" id="thank_you_lock_text">'
$txt['thank_you_is_locked'], '</div>';
}
function 
tlist_bits($element)
{
global 
$txt$settings$scripturl;

switch($element)
{
case 'container_open':
$answ '<table cellspacing="1" border="0" class="tlisttable">';
break;
case 'header':
$answ ='<tr><th><div class="tlisttitleicon"><a name="tl_{JLABEL}">&nbsp;</a></div></th><th>{TITLE}</th></tr>';
break;
case 'topic_row':
{
$answ '<tr><td class="tlistcol1"><img class="tlistfirsticon" src="{ICON}" alt="" /></td>';
$answ .= '<td class="tlistcol2"><a href="'.$scripturl.'?topic={TOPIC_ID}">{TOPIC_TITLE}</a></td></tr>';
break;
}
case 'container_close':
$answ '</table>';
break;
case 'no_topics':
{
$answ '<tr><td class="tlistcol1"><img class="tlistfirsticon" src="'.$settings['images_url'].'/tlist_spacer.gif" alt="" width="20" /></td>';
$answ .= '<td class="tlistcol2">-</td></tr>';
break;
}
case 'index_container_open':
$answ '<div class="tlistindex">'.$txt['jump_to'];
break;
case 'index_bit':
$answ ' <a href="#tl_{TITLE}">{TITLE}</a>';
break;
case 'index_container_close':
$answ '</div>';
break;
}
return $answ;
}

?>
Title: Re: Menu lateral desplegable
Post by: gantz on February 13, 2010, 02:54:35 PM
alguien me puede ayudar por favor salu2