jm_landingpage

Ein CMSimple Support Forum für deutsch sprechende Nutzer und Entwickler
mhz
Posts: 676
Joined: Tue Jun 25, 2013 8:46 pm
Location: Heusenstamm, Hessen
Contact:

Re: jm_landingpage

Post by mhz » Mon Aug 21, 2017 8:40 pm

Ich habe das so eingegeben bzw. ersetzt und nun wird dieser Fehler im debug-modus angezeigt.
Parse error: syntax error, unexpected '<', expecting end of file in /home/www/spielwiese_xh/plugins/jm_landingpage/index.php on line 6
Michael Zajusch (mhz)-- Mein Tutorial für CMSimple_XH. Früher

oldnema
Posts: 265
Joined: Wed Jan 21, 2009 5:15 pm
Location: Czech Republic
Contact:

Re: jm_landingpage

Post by oldnema » Mon Aug 21, 2017 8:53 pm

Nobody knows how much time he has left ...
http://oldnema.compsys.cz/en/?Demo_templates

mhz
Posts: 676
Joined: Tue Jun 25, 2013 8:46 pm
Location: Heusenstamm, Hessen
Contact:

Re: jm_landingpage

Post by mhz » Mon Aug 21, 2017 9:02 pm

Ich habe Deinen Download bei mir auf den Server hochgeladen.
Jetzt kommt das:
Header-Information kann nicht geändert werden - die Header wurden bereits verschickt (die Ausgabe begann in /home/www/spielwiese_xh/plugins/jm_landingpage/index.php:42)
Hängt das evtl. mit meinem https:// zusammen?
Was ich gegenüber dem bisherigen Plugin jm_landingpage gesehen habe, gibt es zusätzlich einen neuen Ordner config mit einer config.php darin.
Michael Zajusch (mhz)-- Mein Tutorial für CMSimple_XH. Früher

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: jm_landingpage

Post by cmb » Mon Aug 21, 2017 9:27 pm

mhz wrote:Ich habe Deinen Download bei mir auf den Server hochgeladen.
Jetzt kommt das:
Header-Information kann nicht geändert werden - die Header wurden bereits verschickt (die Ausgabe begann in /home/www/spielwiese_xh/plugins/jm_landingpage/index.php:42)
Das liegt daran, dass bei dir output_buffering deaktiviert ist (oder einen kleinen Wert hat). Probier's mal mit dieser index.php:

Code: Select all

<?php
//*** mod by tata
// utf8-marker: äöüß


if (!defined('CMSIMPLE_XH_VERSION')) {
    header('HTTP/1.0 403 Forbidden');
    exit;
}



function jm_landingpage() {
    global $bjs, $pth, $plugin_cf, $plugin_tx;

    $pcf = $plugin_cf['jm_landingpage']['name']; //*** added config variable
    $ptx = $plugin_tx['jm_landingpage'];
//*** test if the page has any content excl. heading   
        $test =  strip_tags(newsbox($plugin_cf['jm_landingpage']['name']));
        $test = str_replace(array(" ", "\r","\n", " "), '', $test);
//*** if there is any content, show the page content in newsbox
            if(strlen($test) > 0){
    
    $o = ' <script src="'.$pth['folder']['plugins'].'jm_landingpage/jm_landingpage.js"></script>
    <div id="mizejici"><div id="page-space"></div>                
            <div id="page-consent">
                <div id="page-inner">
                    <div id="page-text">'.newsbox($plugin_cf['jm_landingpage']['name']).' </div>
                    <button id="accept1">'.$ptx['button'].'</button>
             </div></div>';
    $bjs .= '<script type="text/javascript">
setTimeout(function () {document.getElementById("mizejici").style.display = "none"},10000); //***  kdy okno zmizí: 10000 = 10 sekund
</script>';
    return $o;
    } 
}

?>
Christoph M. Becker – Plugins for CMSimple_XH

mhz
Posts: 676
Joined: Tue Jun 25, 2013 8:46 pm
Location: Heusenstamm, Hessen
Contact:

Re: jm_landingpage

Post by mhz » Tue Aug 22, 2017 12:35 pm

Danke Christoph,
nun geht es mit Deinem Code wieder.
output_buffering steht bei Master und Local Value bei 0.
Michael Zajusch (mhz)-- Mein Tutorial für CMSimple_XH. Früher

Post Reply