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 :)
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 !
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 :)!!
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.
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