Jump to content

[ASTUCE] Remerciement après inscription avec effet lightbox


Recommended Posts

Bonjour :cheese:

Une première petite astuce que je me permets de partager avec vous :-P
Le code présenté permet de rediriger le client après inscription sur la page d'accueil et d'afficher un message de remerciement. A vous de l'adapter en fonction de vos besoins ;-)


Dans controllers/AuthController.php à la ligne 205 et 206

// Tools::redirect($back);
Tools::redirect('index.php?msg=1');



Dans themes/votre_theme/header.tpl

<!-- Voir le fichier joint -->



Dans themes/votre_theme/css/global.css (ou ailleurs)

.mydiv { 
background:#000000;
color:white; 
width : 500px;
height:300px; 
position : fixed; 
left: 50%; 
margin-left: -250px;
top: 300px;
z-index: 80000;
padding:20px;               
}

.fdnoir { 
background:black;
width : 100%;
height: 100%; 
position : fixed; 
top:0;
left:0;
clear:both;
opacity:0.7;                      
-moz-opacity : 0.70;                      
-ms-filter: "alpha(opacity=70)"; /* IE 8 */                      
filter:alpha(opacity=70); /* IE < 8 */                      
filter:progid:DXImageTransform.Microsoft.Alpha(opacity=70); 
z-index: 7000;
}



Voilà :)


Merci à Eolia et Brocéliande pour leur aide

48124_L2BFji3GzyJ1JLxKwrux_t

modif_header.txt

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...