Jump to content

tires

Members
  • Posts

    253
  • Joined

  • Last visited

Everything posted by tires

  1. oh, thats easy!!! Thanks!!! I was talking about the template cache.
  2. I want to use tags in the pages i create (in addition to categories). Is there a way to split an email text (for example the subject text) with an hash (#) to save it in a field? Or is there a better way to do this?
  3. I am pretty a newbie in this "cache" thing. It seems to be that there is no way to cleare the cache after changing a template file (like my "footer.inc") without this module. Is that right??? Or did i made a mistake? This module realy need to be in the modules directory!
  4. 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???
  5. 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": https://github.com/stopwords-iso/stopwords-de 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.
  6. 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!
  7. 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).
  8. 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(); });
  9. 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(){ window.ga=window.ga||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 = "https://www.google-analytics.com/analytics.js"; 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.
  10. 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!
  11. 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 ...
  12. 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="https://www.youtube-nocookie.com/embed/abc123?feature=oembed" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> PS. i use this module code https://github.com/ryancramerdesign/TextformatterVideoEmbed/pull/12
  13. Just googled that one where you can see a screenshot: https://www.freedomdv.com/youtube-adds-another-relatedsuggested-videos-overlay-on-embedded-videos/
  14. No, these "ytp-pause-overlay" is displayed anyway. Is there another way to hide this?
  15. FYI: According to this information: https://stackoverflow.com/questions/44027851/how-to-remove-pause-menu-class-ytp-pause-overlay-from-youtube-embed The overlay is influenced by this code: showinfo=0?ecver=2
  16. Very helpful module! Is there a setting to hide this ugly "ytp-pause-overlay"?
  17. Couldn't you add this option into the module? Would be great!
  18. Thanks for this hint! Great Module! Would be great to have this nocookie url setting in there!
  19. Sorry, but i got another issue: What if i want to add the "rel=0" feature? Where do i have to put the: ?rel=0
  20. Thanks a lot Robin, you saved my day!!!!
  21. Anyone out there who can give a hint??? Thanks!
  22. Is there a way to use the youtube nocookie url like https://www.youtube-nocookie.com/embed/XYZ123 This would be a nice feature in times of the european GDPR ...
  23. Thanks a lot!!! I will try it out!
  24. I am dealing with this privacy policy stuff as well. I got two questions concerning the cookie sessions: Is there any disadvantage to disable cookies for ordinary web users (in the way it is described here: https://processwire.com/blog/posts/multi-instance-pw3/#more-session-control)??? Is this config->sessionAllow function only works for 2.8 and higher?
×
×
  • Create New...