Search for at
Security Code:
Security Code 
Type Security Code:
EVO CMS Advanced Search
 
 
Recent Topics
Latest Site News   Next 5 >>
Forum Author Replies Last Post
fixed  Frage nach JavaScript aktiv oder nicht? Fixes & Patches 2.1.x Guest 8 30 Mar 2013
nighty View latest post
fixed  [FIX 2.1.0] Lost Password Fixes & Patches 2.1.x chiroptera 0 21 Feb 2012
chiroptera View latest post
fixed  [FIX 2.1.0] Forums ACP - FAQ Admin Fixes & Patches 2.1.x chiroptera 1 27 Oct 2011
chiroptera View latest post
fixed  [FIX 2.1.0] Forums Attachment Image Resize Fixes & Patches 2.1.x chiroptera 0 26 Oct 2011
chiroptera View latest post
Important  [INFO] evo-mods service started News & Informationen chiroptera 2 24 Oct 2011
chiroptera View latest post
Recent Topics   Next 15 >>
Forum Author Replies Last Post
Important  Wünsch Dir was für die 2.1.1 EVO-CMS 2.x.x nighty 113 23 May 2013
nighty View latest post
Important  Website Awards Eure Webseiten chiroptera 38 21 May 2013
Anna View latest post
Achtung  EVO Maps does not work any longer Fehlermeldungen chiroptera 0 06 Mar 2012
chiroptera View latest post
Idea  Webhoster Testseite Webhosting Thorm 16 16 Nov 2011
Hepher View latest post
No icon  Wie ein Fels... ChitChat Anna 1 21 May 2013
Anna View latest post
2nd level support  mimetype.php on line 119 mimetype.php on line 121 Support German Community pd35 9 21 May 2013
Anna View latest post
solved  Aktivierungslink in e-mail wenn reinen Text empfangen werden Support German Community drigon 10 16 May 2013
Anna View latest post
No icon  Ein frohes Weihnachtsfest 2011 & Wünsche ChitChat Guest 14 16 May 2013
Anna View latest post
solved  Forum - Anzeige zuletzt bearbeitet Fehlermeldungen 2.1.0 Anna 22 16 May 2013
Anna View latest post
Important  USA: nuke-evolution --> evolution-xtreme // EVO-German EVO-CMS 2.x.x kaikiste_NEU 1 12 May 2013
Anna View latest post
No icon  Benutzerbefugnisse Fehlermeldungen 2.1.0 Maiki 15 17 Oct 2012
Maiki View latest post
No icon  Fehlermeldung Forum-Admin Dateitypen Fehlermeldungen 2.1.0 Entenmann 1 04 Sep 2012
gorgolion View latest post
No icon  Probleme mit der Installation Fragen & Hilfe vor der Installation 2.1.x penther 19 29 Jul 2012
nighty View latest post
No icon  problems installing on the newest xampp for theme dev ? Support German Community WolfxSting 2 29 Jul 2012
WolfxSting View latest post
solved  Forumsblock Fehlermeldungen 2.1.0 Maiki 10 28 Jul 2012
Anna View latest post
 

 
Frage nach JavaScript aktiv oder nicht?
 
 
Post new topic Reply to topic printer-friendly view
View previous topic :: View next topic  
Author Message
Guest
 





 
Offline
Post Posted:
 12 Aug 2011
Reply with quote
Post subject: fixed Frage nach JavaScript aktiv oder nicht?

Mmmh, das EVO-CMS 2.1.0 fragt im Moment nicht nach, ob JavaScript beim Benutzer im Browser aktiv ist. EVO kommt aber mit einigen JavaScript-Anwendungen daher.
Für den FF gibt es ein Addon "NoScript", bei fremden Webseiten welche im Browser geladen werden, kann man NoScript so einstellen, dass JavaScript vorerst komplett deaktiviert wird. Ich halte das für nützlich.

Für EVO habe ich mir mal einwenig etwas überlegt!

öffne header.php und suche nach:

Code:

    if (!$simple_header) {
        themeheader();
    }
}


und füge vor der letzten geschweiften Klammer folgendes ein:

Code:

    echo '<noscript id="EvoKernel_JavaScriptNoScriptTest">
            <script type="text/javascript">
                document.getElementById("ns").parentNode.removeChild(document.getElementById("EvoKernel_JavaScriptNoScriptTest"));
            </script>
              <div class="errorBox"><div class="errorText">'._NO_JAVASCRIPT.'</div></div>
          </noscript>';


und jetzt wird der style in der style.css der benützten Themes eingefügt:

öffne style.css in themes/deinTheme/style/ und füge folgendes ein: (Diesen Code kann sich jeder Benutzer individuell definieren)

Code:

/* JavaScript activ? */
.errorBox {
    clear: both;
    font-size: 24px;
    margin-bottom: 10px;
    text-align:center;
}
.errorText {
    top: 0.5em;
    color: #F20202;
    font-weight: bold;
}
/* End JavaScript activ? */


und jetzt muss noch die Sprachvariable definiert werden, sprich der Text der Fehlermeldung muss  hinterlegt werden!

Öffne root/languages/lang-german-php

Code:
define("_NO_JAVASCRIPT","Bitte JavaScript aktivieren, um alle Funktionen auf der Webseite nutzen zu k&ouml;nnen");

Es gibt einen Eintrag hier, wo das Thema von mir zur Diskussion gestellt wurde:
Please login to see this link
Get registered or Log in


Lieber Reo, Chiro - mein Vorschlag ist nicht im SVN, wegen der kompletten Umstellung!




If you use the FF-Browser and you added the addon "NoScript". It is possible, if you watch your website, you can't use all function of EVO-CMS. The reason: EVO-CMS never asks whether JavaScript is active.

Here is my code for the test, if javascript activ or not

open header.php and find:

Code:

    if (!$simple_header) {
        themeheader();
    }
}


add following before the last curly clip:

Code:

    echo '<noscript id="EvoKernel_JavaScriptNoScriptTest">
            <script type="text/javascript">
                document.getElementById("ns").parentNode.removeChild(document.getElementById("EvoKernel_JavaScriptNoScriptTest"));
            </script>
              <div class="errorBox"><div class="errorText">'._NO_JAVASCRIPT.'</div></div>
          </noscript>';


now we want to add the style in style.css of your favourite theme or all your used themes:

open style.css in themes/yourTheme/style/ and add following code: (Code is only an example, you can adapt / change it for your theme-outfit of course)

Code:

/* JavaScript activ? */
.errorBox {
    clear: both;
    font-size: 24px;
    margin-bottom: 10px;
    text-align:center;
}
.errorText {
    top: 0.5em;
    color: #F20202;
    font-weight: bold;
}
/* End JavaScript activ? */


finally we want to define the language variable with a message for the error-box.
Open root/languages/lang-english-php and add following line.

Code:
define("_NO_JAVASCRIPT","You have disabled JavaScript, so many functions are not working");
 


 


Last edited by Guest on 15 Aug 2011; edited 1 time in total
Back to top
View user's profile Send private message
Guest
 





 
Offline
Post Posted:
 15 Aug 2011
Reply with quote
Post subject: No icon Re: Frage nach JavaScript aktiv oder nicht?

Ich hänge mal einige Screenshots mit an:

im Chromo-Theme.
Please login to see this image.
Get registered or Log in


in meinem Theme (urspr. evo-nonzero-blue) multilingual
Please login to see this image.
Get registered or Log in

Please login to see this image.
Get registered or Log in
 


 
 
Back to top
View user's profile Send private message
jamesbrown
EVO User
EVO User



Joined: 07-Feb-2010
Posts: 153
Location: Eching/Berghofen
Offline
EVO Version: 2.10  rev 2028
Post Posted:
 15 Aug 2011
Reply with quote
Post subject: No icon Re: Frage nach JavaScript aktiv oder nicht?

Cooles ding mache ich doch gleich ma rein top

Gruss ferdi  


 
 
Back to top
View user's profile Send private message Visit poster's website
Guest
 





 
Offline
Post Posted:
 15 Aug 2011
Reply with quote
Post subject: No icon Re: Frage nach JavaScript aktiv oder nicht?

Macht natürlich nur Sinn, sofern du den FF ab V.3 aufwärts benützt und dir das Addon NoScript im FF installiert hast
Das Addon gibt es
Please login to see this link
Get registered or Log in
.

Der Hintergrund ist ganz einfach, unbekannte Seiten, die im FF geöffnet werden sollen, bei denen wird erstmal komplett JS und Java-Applikationen gesperrt - reine Sicherheitsmaßname. Mit NoScript können vertraute Seite individuell angepasst werden. Ob das auch der IE so einfach kann???

Einziges kleineres Problem: Gelegentlich tauchen im Fehlermodul Einträge, mit javascript false auf. Eventuell handelt es sich hier um Suchmaschinen oder Bots????  


 
 
Back to top
View user's profile Send private message
Guest
 





 
Offline
Post Posted:
 03 Oct 2011
Reply with quote
Post subject: No icon Re: Frage nach JavaScript aktiv oder nicht?

Ich habe das Ganze noch ins SVN EVO-MODS unter MODS geladen (install-english.txt / install-german.txt)  


 
 
Back to top
View user's profile Send private message
Guest
 





 
Offline
Post Posted:
 18 Oct 2011
Reply with quote
Post subject: No icon Re: Frage nach JavaScript aktiv oder nicht?

Theoretisch könnte man den CSS-Code auch für weitere Hinweise auf der Webseite benützen.
Ich habe das im weiteren eingesetzt z.b. für den Hinweis, dass ein aktives Modul nur für eine spezielle Benutzergruppe einsehbar ist... Dazu müsste man etwas in der modules.php hinzufügen. Da ich noch keine Rückmeldung unserer Admins hier habe, verzichte ich vorerst auf den Code hier!

Please login to see this image.
Get registered or Log in
 


 
 
Back to top
View user's profile Send private message
Guest
 





 
Offline
Post Posted:
 26 Nov 2011
Reply with quote
Post subject: No icon Re: Frage nach JavaScript aktiv oder nicht?

jepp, REO hat das Ganze in der neuesten EVO-Version, wie ich sehen konnte, umgesetzt, bin leider momentan stink sauer, dass ich das für die evo 2-1-0 nicht wirklich reproduzieren kann - in meiner Version werden im Admin-Modul "Error" halt noch Fehlermeldungen von bots oder etc hinterlassen - da keine Rückmeldung vom "Chef" erfolgte...  


 
 
Back to top
View user's profile Send private message
kaikiste_NEU
New
New



Joined: 26-Mar-2013
Posts: 5
Location: München
Offline
EVO Version: J.2.5.9
Post Posted:
 26 Mar 2013
Reply with quote
Post subject: No icon Re: Frage nach JavaScript aktiv oder nicht?

der Gast bin ich, mittlerweile zwangsläufig mit einem neuen Benutzernamen, mein alter Account konnte nicht mehr hergestellt werden. Wie, Warum bleibt ein Geheimnis der Admins hier...

Dieser Fix kann und wird nicht mehr von mir supported/unterstützt.  


 
 
Back to top
View user's profile Send private message
nighty
Evo-Impulse
Evo-Impulse



Joined: 30-Jul-2007
Posts: 549
 
Offline
Post Posted:
 30 Mar 2013
Reply with quote
Post subject: No icon Re: Frage nach JavaScript aktiv oder nicht?

kaikiste_NEU wrote (View Post):
der Gast bin ich, mittlerweile zwangsläufig mit einem neuen Benutzernamen, mein alter Account konnte nicht mehr hergestellt werden. Wie, Warum bleibt ein Geheimnis der Admins hier...

Dieser Fix kann und wird nicht mehr von mir supported/unterstützt.


... und ist auch völlig in Ordnung so. Ich werde ReO nächste Woche einmal anrufen. Probleme sind bekannt.  


 
 
Back to top
View user's profile Send private message
Display posts from previous:  
Post new topic Reply to topic printer-friendly view
EVO CMS Forum Index -> Fixes & Patches 2.1.x Time synchronized with the forum server time
 
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum