Seite 1 von 1
Schnellantwort einklappen
Verfasst: 27.08.2015 14:40
von Joyce&Luna
Hallo
Würde gerne die Schnellantwort in einklappen und per Button oder Text aktivieren.
Wie setze ich das am besten um?
Anke
Re: Schnellantwort einklappen
Verfasst: 27.08.2015 15:39
von Lehrling
bei mir funktioniert das:
öffne die Datei template/quickreply_editor.html
Ganz am Anfang vor
<form method="post" action="{U_QR_ACTION}" id="qr_postform">
fügst du diesen Abschnitt ein
Code: Alles auswählen
<div style="margin:0px; margin-top:5px">
<div class="spoilertitle"><input type="button" value="Schnellantwort" style="width:125px;font-size:10px;margin:0px;padding:5px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Schnellantwort'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Schnellantwort'; }" /></div>
<div class="spoilercontent"><div style="display: none;">
und ganz am Ende nach
fügst du dann das ein
.
Diese Angaben
style="width:125px;font-size:10px;margin:0px;padding:5px;
bitte anpassen.
Denn Cache leeren und testen.
Re: Schnellantwort einklappen
Verfasst: 27.08.2015 17:24
von Joyce&Luna
Hallo Lehrling
Klasse, klappt wunderbar, brauchte auch nichts zu ändern.
Ganz lieben Dank.
Anke