Recordad que para pedir soporte alguno, debéis facilitar los datos de soporte oportunos por favor, mirad aquí y leer las Normas generales del foro, esto nos servirá de ayuda para dar el mejor soporte..

Gracias.

La Administración de phpBB España.

Cuadro de login similar a PBTechTema Solucionado

Dudas sobre estilos phpBB 3.0.x
Colaboraciones gráficas paquetes de rangos aquí y botones aquí.
Cerrado
Avatar de Usuario
jd-Fairo
Asiduo/a
Mensajes: 185
Registrado: 29 Abr 2010, 06:43
Edad: 29

Cuadro de login similar a PBTech  Tema Solucionado

#1

Mensaje por jd-Fairo »

Antes que nada agradecimientos a Makoto por que esta es una modificacion de la guia Caja de Identificación al estilo Supernova

Bueno esta modificación le creara un caja de login algo parecida a la de PBTech
Demo url: http://www.ciudaddelanime.com
Imagen

bueno empecemos

Abrimos el overall_header.html y buscamos

Código: Seleccionar todo

</head>
Agregar antes

Código: Seleccionar todo

<!-- Start Custom popuplogin -->
<script type="text/javascript">
$(document).ready(function(){
    $("input:checkbox").each( function() {
        (this.checked) ? $("#fake"+this.id).addClass('fakechecked') : $("#fake"+this.id).removeClass('fakechecked');
    });
    $(".fakecheck").click(function(){
        ($(this).hasClass('fakechecked')) ? $(this).removeClass('fakechecked') : $(this).addClass('fakechecked');
        $(this.hash).trigger("click");
        return false;
    });
});
</script>
  <!-- End Custom popuplogin -->
Luego buscamos:

Código: Seleccionar todo

					<!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --><li class="icon-register"><a href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF -->
					<li class="icon-logout"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="x">{L_LOGIN_LOGOUT}</a></li>


Remplazamos con:

Código: Seleccionar todo

					<!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --><li class="icon-register"><a href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF -->
					<!-- IF not S_USER_LOGGED_IN -->
					<li class="icon-logout"><a href="#Login-box" title="{L_LOGIN_LOGOUT}" accesskey="x">{L_LOGIN_LOGOUT}</a></li>
						<div id="Login-box" class="modalDialog">
							<div id="login-modal">
								<div id="lb-li-content">
									<a href="#" title="Close" class="close">X</a>
									<form method="post" action="{S_LOGIN_ACTION}">
										<fieldset>
											<br /><span class="lb-form-label">{L_USERNAME}:</span><br />
											<input type="text" name="username" class="lb-li-form" title="{L_USERNAME}" />
											<br /><span class="lb-form-label">{L_PASSWORD}:</span><br />
											<input type="password" name="password" class="lb-li-form" title="{L_PASSWORD}" />
											<br /><a href="{ROOT_PATH}ucp.php?mode=sendpassword">{L_FORGOT_PASS}</a> <!-- IF S_REGISTER_ENABLED -->| <a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF -->
											<br />
											<!-- IF S_AUTOLOGIN_ENABLED --><a href="#autologin2" class="fakecheck" id="fakeautologin2">{L_LOG_ME_IN}</a><input type="checkbox" name="autologin" id="autologin2" style="display: none;" /><!-- ENDIF -->
											<div style="clear: both;"><a href="#hidestatus" class="fakecheck" id="fakehidestatus">{L_HIDE_ME}</a><input type="checkbox" name="viewonline" id="hidestatus" style="display: none;" /></div>
											<input type="submit" name="login" value="" id="lb-li-button" />
										</fieldset>
									</form>
								</div>
							</div>	
						</div>
						<!-- ELSE -->
						<li class="icon-logout"><a href="{U_LOGIN_LOGOUT}" title="{L_LOGIN_LOGOUT}" accesskey="x">{L_LOGIN_LOGOUT}</a></li>
						<!-- ENDIF -->	
Después abrimos common.css y al final del archivo agregamos:

Código: Seleccionar todo

/* 		Custom popuplogin		 */

.modalDialog {
	position: fixed;
	font-family: Arial, Helvetica, sans-serif;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
	z-index: 99999;
	opacity:0;
	-webkit-transition: opacity 400ms ease-in;
	-moz-transition: opacity 400ms ease-in;
	transition: opacity 400ms ease-in;
	pointer-events: none;
}

.modalDialog:target {
	opacity:1;
	pointer-events: auto;
}

.modalDialog  div#login-modal {
	width: 400px;
	height: 243px;
	background: url("{T_THEME_PATH}/images/login/login-box.png") no-repeat;
	position: relative;
	margin: 10% auto;
}

#lb-li-content {
	padding: 20px;	
	color: #0870d1;
}

span.lb-form-label, #lb-li-content a {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 0.5px;
}

#lb-li-content a {
	text-transform:none;
	color: #0870d1;
	letter-spacing: normal;
}

.lb-li-form {
	width: 233px;
	height: 24px;
	line-height: 24px;
	border: 1px solid #b8e3ff;
	background: url("{T_THEME_PATH}/images/login/nli-form-bg.png") repeat-x;
	margin-top: 4px;
	margin-bottom: 6px;
	color: #0a81d0;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	font-size: 12px;
}

.fakecheck {
	font: 12px Tahoma, Arial, Helvetica, sans-serif;
	text-decoration: none;
	outline: none;
	background: url("{T_THEME_PATH}/images/login/checkbox.png") no-repeat;
	height: 16px;
	display: block;
	float: left;
	padding: 1px 0px 0px 20px;
	margin-left: 110px
}

.fakechecked { background-position: left -25px; }
.fakechecked:hover { text-decoration: none; }

#lb-li-button {
	width: 100px;
	height: 26px;
	background: url("{T_THEME_PATH}/images/login/login-button.png") no-repeat top;
	border: none;
	float: right;
	margin-top: 6px;
}

#lb-li-button:hover { background-position: bottom; }

.close {
	background: #222;
	color: #FFFFFF;
	line-height: 25px;
	position: absolute;
	right: -12px;
	text-align: center;
	top: -10px;
	width: 24px;
	text-decoration: none;
	font-weight: bold;
	-webkit-border-radius: 12px;
	-moz-border-radius: 12px;
	border-radius: 12px;
	-moz-box-shadow: 1px 1px 3px #000;
	-webkit-box-shadow: 1px 1px 3px #000;
	box-shadow: 1px 1px 3px #000;
}

.close:hover { text-decoration: none; }
Ya por ultimo descargamos el adjunto con los archivos necesarios y subimos la carpeta login mediante FTP a tu carpeta de estilos.

Por ejemplo: styles/tuestilo/theme/images/aqui-la-carpeta-login
Después en el ACP actualizamos la plantilla y el tema y borramos cache
login-box.zip
carpeta con imagenes nesesarias y un psd
(477.12 KiB) Descargado 398 veces
El adjunto trae un PSD para poder editarlo a tu gusto :jaja:
Última edición por ThE KuKa el 03 Feb 2017, 19:40, editado 1 vez en total.
DATOS De Soporte
Spoiler
URL:http://www.ciudaddelanime.com
Plantilla(s) usuada(s): CA (Basada en Neon)
Versión de phpBB: phpbb3.12
Sql Vercion: Mysql 4
Servidor:Linux Servidor de Pago hosteris.com
MODs instalados
Spoiler
[MODDB] Advanced BBCode Box 3.0.13
[MODDB] NV Newspage 1.0.8
[MODDB] Ultimate Points 1.1.2
[MODDB] Universal No Avatar 1.0.0
[MODDB] Contact board administration 1.0.10
[BETA] Medal System MOD 1.0.1
[ABD] UPS Easy Shop 0.7.0
[ABD] Dicemod 0.8.8b
[RC] cBB Chat 1.0.1
[RC] cBB Blog v1.0.1
[RC] cBB Blockgets v1.0.4
[RC] phpbbdotcom style menu
[RC] Reputation System 0.7.0

Cerrado

Volver a “Soporte para Estilos phpBB 3.0.x”