Simple Machines Community Forum

SMF Support => Español (Spanish) => Language Specific Support => Modificaciones (Mods) => Aiheen aloitti: Kiel D-04 - toukokuu 23, 2009, 06:41:50 IP

Otsikko: Problema con eFloating Bar For Guests and Members
Kirjoitti: Kiel D-04 - toukokuu 23, 2009, 06:41:50 IP
Bueno estaba instalando eFloating Bar For Guests and Members
en mi theme manualmente con parse
pero al editar index.template.php dice esto

Find:
<body>';
Add After:

//Show the efloating bar only if the MOD is enabled for Guest and Guests are not on Register or Login Pages
     if ($context['user']['is_guest'] && !empty($modSettings['efloatingbar_mode_guest']) && $context['current_action'] != 'login' && $context['current_action'] != 'register')
     {
echo '<div id="topbar">
<span style="float:right"><a href="javascript:void(0);" onClick="closebar(); return false"><strong>[x]</strong></a></span>
', (empty($modSettings['efloatingbar_text_guest'])) ? $txt['efloatingbar_text_guest_default'] : $modSettings['efloatingbar_text_guest'], '
</div>';
}
//Show the efloating bar only if the MOD is enabled for Members
     if ($context['user']['is_logged'] && !empty($modSettings['efloatingbar_mode_logged']) && $context['current_action'] != 'login' && $context['current_action'] != 'register')
     {
echo '<div id="topbar">
<span style="float:right"><a href="javascript:void(0);" onClick="closebar(); return false"><strong>[x]</strong></a></span>
', (empty($modSettings['efloatingbar_text_logged'])) ? $txt['efloatingbar_text_logged_default'] : $modSettings['efloatingbar_text_logged'], '
</div>';
}


Pero en mi index.template no encuentro <body>'; que puedo hacer :S
dejo el mi index para ver si alguien me da una mano :)
Otsikko: Re: Problema con eFloating Bar For Guests and Members
Kirjoitti: mirahalo - toukokuu 23, 2009, 09:24:37 IP
no todos los themes son iguales, en este caso el body esta en la linea 179: <body> y para poder incluir tu codigo correctamente tienes que hacerlo asi:


<body>';

//Show the efloating bar only if the MOD is enabled for Guest and Guests are not on Register or Login Pages
     if ($context['user']['is_guest'] && !empty($modSettings['efloatingbar_mode_guest']) && $context['current_action'] != 'login' && $context['current_action'] != 'register')
     {
echo '<div id="topbar">
<span style="float:right"><a href="javascript:void(0);" onClick="closebar(); return false"><strong>[x]</strong></a></span>
', (empty($modSettings['efloatingbar_text_guest'])) ? $txt['efloatingbar_text_guest_default'] : $modSettings['efloatingbar_text_guest'], '
</div>';
}
//Show the efloating bar only if the MOD is enabled for Members
     if ($context['user']['is_logged'] && !empty($modSettings['efloatingbar_mode_logged']) && $context['current_action'] != 'login' && $context['current_action'] != 'register')
     {
echo '<div id="topbar">
<span style="float:right"><a href="javascript:void(0);" onClick="closebar(); return false"><strong>[x]</strong></a></span>
', (empty($modSettings['efloatingbar_text_logged'])) ? $txt['efloatingbar_text_logged_default'] : $modSettings['efloatingbar_text_logged'], '
</div>';
}
echo '



saludos !
Otsikko: Re: Problema con eFloating Bar For Guests and Members
Kirjoitti: Kiel D-04 - toukokuu 23, 2009, 10:21:18 IP
Lainaus käyttäjältä: 130860 - toukokuu 23, 2009, 09:24:37 IP
no todos los themes son iguales, en este caso el body esta en la linea 179: <body> y para poder incluir tu codigo correctamente tienes que hacerlo asi:


<body>';

//Show the efloating bar only if the MOD is enabled for Guest and Guests are not on Register or Login Pages
     if ($context['user']['is_guest'] && !empty($modSettings['efloatingbar_mode_guest']) && $context['current_action'] != 'login' && $context['current_action'] != 'register')
     {
echo '<div id="topbar">
<span style="float:right"><a href="javascript:void(0);" onClick="closebar(); return false"><strong>[x]</strong></a></span>
', (empty($modSettings['efloatingbar_text_guest'])) ? $txt['efloatingbar_text_guest_default'] : $modSettings['efloatingbar_text_guest'], '
</div>';
}
//Show the efloating bar only if the MOD is enabled for Members
     if ($context['user']['is_logged'] && !empty($modSettings['efloatingbar_mode_logged']) && $context['current_action'] != 'login' && $context['current_action'] != 'register')
     {
echo '<div id="topbar">
<span style="float:right"><a href="javascript:void(0);" onClick="closebar(); return false"><strong>[x]</strong></a></span>
', (empty($modSettings['efloatingbar_text_logged'])) ? $txt['efloatingbar_text_logged_default'] : $modSettings['efloatingbar_text_logged'], '
</div>';
}
echo '



saludos !

muchisimas gracias ahora si anda :)!!
Otsikko: Re: Problema con eFloating Bar For Guests and Members
Kirjoitti: JBantha - toukokuu 27, 2009, 11:24:38 IP
YO tengo unproblema con el mismo mod
Consiste enq eu no podemos cerraar la barrita qeu flota,le sdejo la dir de mi foro:
http://kakkoii-cr.com/foro/index.php

ahi pueden ver la barra arriba, a la derecha

tambien me pregutaba si no podrían decirme como hacer que persiga a la pantalla, como en el foro de ejemplo del mod:   http://www.etalkindia.com/

en lugar de quedarse arriba, fija.
Otsikko: Re: Problema con eFloating Bar For Guests and Members
Kirjoitti: Maliante - toukokuu 29, 2009, 11:28:34 AP
Jajaj a mi me paso q aparece escondido a la derecha abajo en vez de a la izq arriba y creo q puede ser el simple portal

Maliante