Este tema está cerrado, no puede editar mensajes o enviar nuevas respuestas  [ 6 mensajes ] 
Invitacion para registrarte! 
Autor Mensaje
Forero Habitual
Forero Habitual

Registrado: 08-30-2008, 16:52
Mensajes: 169
Nota Invitacion para registrarte!  Tema solucionado
Hola a todos , el caso es que encontre un tuto para poner una ventanita y invitar a la gente a regitrarse...
el codigo lo puse en un bloque del portal y de forma que le saliera a la gente que no estuviera reistrada o no tenga la secion iniciada.. el error esque le sale a todo el mundo , este iniciada o no lo este ¿alguna idea para resolver esto?

Imagen

Código:
<!-- BEGIN switch_user_logged_out -->
<style type="text/css">

#topbar
{
PADDING-TOP: 5px;
PADDING-BOTTOM: 5px;
PADDING-RIGHT: 5px;
PADDING-LEFT: 5px;
VISIBILITY: hidden;
BORDER-TOP: black 1px solid;
BORDER-BOTTOM: black 1px solid;
BORDER-RIGHT: black 1px solid;
BORDER-LEFT: black 1px solid;
WIDTH: 450px;
FONT-FAMILY: Tahoma;
POSITION: absolute;
BACKGROUND-COLOR: white
}</style><script type="text/javascript">
var persistclose = 1
var startX = 50
var startY = 50
var verticalpos = "frombottom"

function iecompattest()
{
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name)
{
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0)
{
offset = document.cookie.indexOf(search)
if (offset != -1)
{
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function closebar()
{
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}

function staticbar()
{
barheight=document.getElementById("topbar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id)
{
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.right=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else
{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}

window.stayTopLeft=function()
{
if (verticalpos=="fromtop")
{
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else
{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar");
stayTopLeft();
}

if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script>
<div id="topbar">
<table width="100%">
<tbody>
<tr>
<td width="99%"><center><font size="1">Estás navegando en modo VISITANTE, puedes <strong><a href="http://clubopelcanarias.foroportal.es/foro/profile.php?mode=register">registrarte totalmente gratis</a></strong> y en pocos minutos podras acceder a todos nuestros foros y postear libremente. Asi como obtener algunas ventajas como Registrado.<br />
<strong><font color="#339966">Atentamente El Equipo del Club Opel Canarias</font></strong></font></center></td>
<td width="1%"><a onclick="closebar(); return false" href="http://clubopelcanarias.foroportal.es"><img style="float: left" alt="" border="0" src="http://img523.imageshack.us/img523/7581/closefd5.gif" /></a></td>
<center><img src="http://img444.imageshack.us/img444/5527/clubopelcanariastu9.jpg"</a> </center>
</tr>
</tbody>
</table>
</div>
<!-- END switch_user_logged_out -->


Saludos!!! :?
http://clubopelcanarias.foroportal.es

_________________
http://clubopelcanarias.foroportal.es


Última edición por Sabony el 12-16-2008, 2:16, editado 1 vez en total



12-16-2008, 1:45
Perfil
Forero Fijo
Forero Fijo
Avatar de Usuario

Registrado: 12-12-2008, 16:40
Mensajes: 1062
Nota Re: Invitacion para registrarte!
Buen aporte. A mucha gente le servirá... :gracias

_________________
- Premio Ier Concurso de Firmas
- Premio al forero revelación de 2008
- Premio al forero con mejor avatar 2008


12-16-2008, 1:57
Perfil
Forero Habitual
Forero Habitual

Registrado: 08-30-2008, 16:52
Mensajes: 169
Nota Re: Invitacion para registrarte!
No es un aporte xD
es un problema que tengo.. Lo puse en un bloque y que solo lo vieran los usuarios
que no esten registrados o no tuvieran secion iniciada y el error esque lo ven todos mientras que puse que los registrados no lo vieran :(:(:(

¿ALGUNA SOLUCION?

_________________
http://clubopelcanarias.foroportal.es


Última edición por Sabony el 12-16-2008, 2:06, editado 1 vez en total



12-16-2008, 2:03
Perfil
Forero Fijo
Forero Fijo
Avatar de Usuario

Registrado: 12-12-2008, 16:40
Mensajes: 1062
Nota Re: Invitacion para registrarte!
Prueba a ponerlo en la cabecera o en el pie de página y me cuentas.

_________________
- Premio Ier Concurso de Firmas
- Premio al forero revelación de 2008
- Premio al forero con mejor avatar 2008


12-16-2008, 2:05
Perfil
Forero Habitual
Forero Habitual

Registrado: 08-30-2008, 16:52
Mensajes: 169
Nota Re: Invitacion para registrarte!
yo creo que no me entienden xD , el codigo me funciona lo que me gustaria que le aparecira a todo aquel que no estuviera registrado o logedo , lo puse en un bloque y puse para usuarios no registrados , pero le salen a todos logeados o no.. si lo pongo en cabesera o pie de pagina me ase exactamente lo mismo..
¿Que puedo hacer? :?

_________________
http://clubopelcanarias.foroportal.es


12-16-2008, 2:28
Perfil
Equipo de Soporte
Equipo de Soporte
Avatar de Usuario

Registrado: 04-03-2007, 23:22
Mensajes: 1897
Ubicación: Mexico
Nota Re: Invitacion para registrarte!
En realidad es un mod, y hasta donde recuerdo solo funciona para phpbb3, en el phpbb2 es un mod especial y por el momento ahora mods en el phpbb2 no estamos instalando. Hasta nuevo aviso.

_________________
Imagen
Imagen
Ing. En Sistemas.
correo de contacto: kantun@forogratis.es


12-16-2008, 3:20
Perfil WWW
Mostrar mensajes previos:  Ordenar por  
Este tema está cerrado, no puede editar mensajes o enviar nuevas respuestas   [ 6 mensajes ] 

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 1 invitado


No puede abrir nuevos temas en este Foro
No puede responder a temas en este Foro
No puede editar sus mensajes en este Foro
No puede borrar sus mensajes en este Foro
No puede enviar adjuntos en este Foro

Saltar a:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
Traducción al español por Huan Manwë para phpbb-es.com
phpBB SEO
[ Time : 0.046s | 14 Queries | GZIP : Off ]