• Content count

  • Joined

  • Last visited

Community Reputation

10 Good

About tires

  • Rank
    Full Member
  1. For some strange reasons the script outputs two words for the german word "präsident": "pr" and "sident". Probabely the script stops at "ä". But in the text fields the code isn't encoded this way. Or is there a problem with "ä" etc.? Any ideas???
  2. WOW!!! Thanks a lot!!! Works perfect! I just changed the code for output: // output $words = most_frequent_words(implode(' ', $words), $stop_words, $limit_list); foreach ($words as $word => $value) { echo $word."(".$value.")"; } And i used this german "stopword list": To have some kind of "page statitics" module (used words, number of pages, number of comments, last edited pages ... etc.) would be a great idea.
  3. Hi! Is there a module or a best practise to find the most frequent words used in text fields and textarea fields of pages (a few hundrets). I want to build some kind of "word" cloud with these words. Thank you an have a nice day!
  4. tires

    Yes, is it standard when it is an opt-out. But with opt-in this behavior should be different i think (i.e. do nothing or disable cookies).
  5. tires

    It seems that if i hit the "x" icon to close the banner (.pwcmb-widget__close::before) cookies are set to "y". Probably beacause of the class "js-pwcmb-allow-cookies" ... Is that by purpose? I fixed it by deleting the class "js-pwcmb-allow-cookies" in the module file notice.tpl.php on line 18. And by adding this code in the module file CookieManagementBanner.js on line 150: $('.pwcmb-widget__close').on('click', function() { cookieMonster.ui.showMessage(); cookieMonster.block(); });
  6. tires

    Ok, i find out a way myself. I set up a new js file, include this in the foot of my website and added this function: function loadGAonConsent(){||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; ga('create', 'UA-000000-0', 'auto'); ga('set', 'anonymizeIp', true); ga('send', 'pageview'); var gascript = document.createElement("script"); gascript.async = true; gascript.src = ""; document.getElementsByTagName("head")[0].appendChild(gascript, document.getElementsByTagName("head")[0]); } and also this three lines to check if the cookie has been set: if(localStorage.getItem('pwcmbAllowCookies')){ loadGAonConsent(); } To exclude browsers that got the no-track option on you can use this: if(localStorage.getItem('pwcmbAllowCookies') == 'y' && navigator.doNotTrack != 1 && navigator.doNotTrack != "yes" && window.doNotTrack != 1 && navigator.msDoNotTrack != 1){ loadGAonConsent(); } Would be great if there were a "only show cookie banner if do not track is off" checkbox in the module ... or something simular.
  7. tires

    I installed this very helpful module in order to get an opt-in banner for google analytics. Could you give me a hint which steps i have to do, to get this running? Thanks a lot!
  8. tires

    Solved this problem for one of my sites today with this three steps: Changed the page name of the new homepage into "home" (because of the navigation) Inserted this code into the old home.php template file: echo $pages->get(1234)->render(); // "1234" is the page id of the new home page Inserted this code into the config.php: $config->guestUserPageID = 1234; // "1234" is the page id of the new home page It works perfect. Even with segmets if the old homepage template has switched on "allow URL segments". Just want to share this one ...
  9. tires

    I set this value to "0" but the pause-overlay is displayed anyway!!! The generated iframe code looks like this: <iframe style='position:absolute;top:0;left:0;width:100%;height:100%;' width="760" height="428" src="" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> PS. i use this module code
  10. tires

    Just googled that one where you can see a screenshot:
  11. tires

    No, these "ytp-pause-overlay" is displayed anyway. Is there another way to hide this?
  12. tires

    FYI: According to this information: The overlay is influenced by this code: showinfo=0?ecver=2
  13. tires

    Very helpful module! Is there a setting to hide this ugly "ytp-pause-overlay"?
  14. Couldn't you add this option into the module? Would be great!