Hallo Anke,
ich würde gerne Bestätigungsseiten in der Lightbox anzeigen lassen, z.B. nach der User-Registrierung, nach Absenden eines EFG-Formulars etc. Gibt es eine solche Möglichkeit?
Ich habe das mit einem jQuery-Script gelöst. In meinem Fall betrifft es das Kommentarformular.
Diese Code-Zeile
HTML-Code:
<p class="confirm">?php echo $this->confirm; ?</p>
durch diesen Code ersetzen:
PHP-Code:
<div id="popupconfirm_box">
<a id="popupBoxClose">X</a>
<p class="confirm"><?php echo $this->confirm; ?></p>
</div>
<script type="text/javascript">
$(function() {
loadPopupBox();
$('#popupBoxClose').click( function() {
unloadPopupBox();
});
$('#wrapper').click( function() {
unloadPopupBox();
});
function unloadPopupBox() {
$('#popupconfirm_box).fadeOut("slow");
}
function loadPopupBox() {
$('#popupconfirm_box').fadeIn("slow");
}
});
</script>
Beispiel-CSS:
Code:
.ce_comments .form #popupconfirm_box {
max-width:600px;
left:20%;
right:20%;
top:20%;
position:fixed;
display:none;
padding:15px;
background-color:#fff;
-webkit-box-shadow:2px 1px 2px 2px rgba(0,0,0,0.3);
box-shadow:2px 1px 2px 2px rgba(0,0,0,0.3);
border:2px solid #e5e5e5;
behavior:url('assets/css3pie/1.0.0/PIE.htc');
z-index:10000;
}
.ce_comments .form #popupconfirm_box #popupBoxClose {
right:5px;
top:5px;
position:absolute;
font-size:1.2em;
color:#d10000;
font-weight:800;
}
Verwendetes Template: mod_comment_form.html5
Contao-Version: 3.1
Vielleicht hilft Dir das ja auch etwas weiter
Liebe Grüße,
pyretta
Lesezeichen