Search found 2204 matches

by olape
Wed Mar 09, 2022 11:56 am
Forum: Deutsch
Topic: Plugin: Expandcontract_XH - Community-Projekt ???
Replies: 611
Views: 40976

Re: Plugin: Expandcontract_XH - Community-Projekt ???

So, der Inhalt von $expContent <!--XH_ml2:Verborgene Seite 1--> <h1>Verborgene Seite 1 <span class="fa fa-eye-slash"></span></h1> <p>...</p> <p>¯\_(ツ)_/¯</p> <!--XH_ml2:Verborgene Seite 2--> <h1>Verborgene Seite 2 <span class="fa fa-eye-slash"></span></h1> <div class="imgRight"><img src="./userfiles...
by olape
Wed Mar 09, 2022 9:21 am
Forum: Deutsch
Topic: Plugin: Expandcontract_XH - Community-Projekt ???
Replies: 611
Views: 40976

Re: Plugin: Expandcontract_XH - Community-Projekt ???

Das macht XH schon seit einiger Zeit so - vor jeder hx-Überschrift steht mindestens eine, manchmal auch zwei Leerzeilen :cry: Ich hatte das schonmal irgendwo erwähnt, das wurde aber nicht weiter beachtet. Das ist mir nicht bekannt oder ich habe es schon wieder vergessen. :oops: Darauf habe ich bish...
by olape
Wed Mar 09, 2022 9:08 am
Forum: Deutsch
Topic: Plugin: Expandcontract_XH - Community-Projekt ???
Replies: 611
Views: 40976

Re: Plugin: Expandcontract_XH - Community-Projekt ???

Hm, es schein also nicht zu funktionieren. Wenn ich es online teste passt es aber. im Quelltext sieht das so aus: <main class="content"> <h2>yyy</h2> <p>,hjgjhgjkhgkjhg</p> <div class="submenDiv"></div> </main> Nun müsste man mal prüfen, wo die 2 Leerzeilen herkommen. Das könnte der Grund sein, waru...
by olape
Wed Mar 09, 2022 8:26 am
Forum: Deutsch
Topic: Plugin: Expandcontract_XH - Community-Projekt ???
Replies: 611
Views: 40976

Re: Plugin: Expandcontract_XH - Community-Projekt ???

Code: Select all

$expContent = preg_replace("#\<h[^\>]*\>(.*)\<\/h.\>#AUuis", "", $expContent, 1);
Versuche mal das, damit sollte es die erste Ü nur treffen, wenn sie wirklich als allererstes steht.
Schon ein Leerzeichen oder ein Zeilenumbruch davor sollten eigentlich verhindern, das es einen Treffer gibt.
by olape
Wed Mar 09, 2022 8:00 am
Forum: Deutsch
Topic: Plugin: Expandcontract_XH - Community-Projekt ???
Replies: 611
Views: 40976

Re: Plugin: Expandcontract_XH - Community-Projekt ???

Ich habe es so verstanden, dass jeweils die erste auf der Seite auftauchende hx-Überschrift entfernt werden soll. Egal welches Level und egal wo die erste auftaucht. Genau, aber eben das ist doch nun wirklich nicht mehr sinnvoll. Ich würde es VIELLEICHT noch als sinnvoll erachten, wenn die Überschr...
by olape
Tue Mar 08, 2022 9:15 pm
Forum: Deutsch
Topic: Plugin: Expandcontract_XH - Community-Projekt ???
Replies: 611
Views: 40976

Re: Plugin: Expandcontract_XH - Community-Projekt ???

Wenn du dort öffnest: Seite "Über das Plugin", dann ist die erste h1 raus, und der Text davor steht noch da. So war das gedacht und so funktioniert es. Christoph hat recht. Es muss ja nicht zwingend eine „erste“ H1 geben, es könnte ja sein, es gibt mehrere H2 auf der Page, mitten im Text. Die erste...
by olape
Mon Mar 07, 2022 1:54 pm
Forum: Deutsch
Topic: TinyMCE 5 - Probleme mit den imagetools
Replies: 45
Views: 6418

Re: TinyMCE 5 - Probleme mit den imagetools

Vielleicht reden wir aneinander vorbei, oder ich verstehe es einfach nicht richtig. Dieser Filter ist dazu da, dass die src="data:.." Bilder im Demo Content in ?Templates/TEMPLATE-fhs-simple-2019/Template-specific-styles nicht verarbeitet resp. hochgeladen, sondern so belassen werden, wie sie sind. ...
by olape
Mon Mar 07, 2022 10:21 am
Forum: General
Topic: message : No page has been selected
Replies: 1
Views: 2374

Re: message : No page has been selected

URL?
by olape
Mon Mar 07, 2022 10:13 am
Forum: Deutsch
Topic: Plugin: Expandcontract_XH - Community-Projekt ???
Replies: 611
Views: 40976

Re: Plugin: Expandcontract_XH - Community-Projekt ???

Wie müsste denn der Code nach if (!$withheading) { konkret aussehen, damit nur die Überschriften (h1 - h6) herausgelöscht werden? Alle anderen Inhalte sollen stehen bleiben. Versuch mal das - UNGETESTET if (!$withheading) { $expContent = preg_replace("#\<h[^\>]*\>[^\<]*\<\/h.\>#Uuis", "", $expConte...
by olape
Mon Mar 07, 2022 9:07 am
Forum: Deutsch
Topic: Plugin: Expandcontract_XH - Community-Projekt ???
Replies: 611
Views: 40976

Re: Plugin: Expandcontract_XH - Community-Projekt ???

Die Zuweisung erfolgt in der index.php so: $withheading = $withheading!==''? $withheading : $plugin_cf['expandcontract']['show_headings']; dann kann das auch raus. Diese Konfigurations-Option sollte aber eigentlich nur die Überschriften entfernen - nicht den Inhalt. Es trifft ALLES, bis zum Ende de...