Jump to content

wbmnfktr

Members
  • Posts

    2,234
  • Joined

  • Last visited

  • Days Won

    59

Everything posted by wbmnfktr

  1. Good to know. ? If I remember correctly Twitter has had a widget which did exactly that. Maybe you could take a look at their code. https://publish.twitter.com/
  2. Well then... build your own URL shortener. You could build the links to your comments like this: https://yourdomain.tld/shortener/pageID/commentID or https://yourdomain.tld/rdrct/1123/987 Either done with a new template using URL segments that look for a page with given ID and then redirects to the full URL: https://yourdomain.tld/path/to/page/#Comment987 Maybe this is even already possible with Jumplink's wildcard/group feature.
  3. Maybe Facebook looks for the URL's og:url and therefore changes your shared URL to the official URL. <meta property="og:url" content="http://example.com/some-category/post1"/>
  4. Be careful here @Autofahrn and @psy. @VeiJari is talking about init.php and not _init.php. init.php ready.php finished.php Just to keep this in mind. https://processwire.com/blog/posts/processwire-2.6.7-core-updates-and-more/
  5. I'd support the /site/ready.php solution as well. It seems to be the better place for hooks that don't end in a module. But there is another thing. Your hooks is tied to the published state or the action of publishing it. While testing this you have to unplublish the page first to test your hook. Had this testing issue a while back, too. ?
  6. It could be my eyes but... ? in your second example I can't spot any difference.
  7. That's indeed kind of a strange behaviour. What setup do you use? Laragon, XAMP,... It could be interesting to spot the root of what's causing those problems. I had once problems with Laragon while re-using previous used database names. But that's long time gone now. Regarding that setlocale mistery... there will be an upcoming multilang project and I will keep an eye on it. But for now I really can't remember any issues.
  8. Microsoft Edge arrived in its Chromium-flavour version. For those who want to give it a try already. Right now you can download the DEV (weekly updates) and CANARY (daily updates) versions. https://www.microsoftedgeinsider.com/en-us/download/ Windows 10 needed. Windows 8.1/8/7 and macOS will follow soon.
      • 4
      • Like
  9. Quick YouTube test... ProcessWire 3.0.123 VideoOrSocialPostEmbed 1.2.1 So... you might want to check your setup and settings.
  10. First of all I'd limit image size here. You can define max width/height or even pixels in the image field. The image field takes care of that for newly added images. That's sounds like a very broad range of variations. Are they really necessary? If you don't build something like an image library 1920px should be more than enough. Using the code @LostKobrakai mentioned before you will upload one (1) image and ProcessWire will take care of everything else. Or you could use Croppable Image 3 that takes care of some things or everything and modify the img/srcset code accordingly to match the module syntax. And to cite @LostKobrakai again: ?
  11. No... it always depends on the project and website. But there are a few things I don't want to miss. Those are: SSL/https with Let's encrypt SSD webspace because it's faster Admin panels like cPanel are nice but not necessary SFTP/SSH is a benefit Cron of any flavour is highly appreciated GDPR compliance in terms of data-processing-agreements (or however they are called) A good reputation (4.5+ ratings) A good website with all relevant details (Imprint, Privacy, GDPR) A good website that's not powered by a WordPress theme More than 5 years in business Servers in my home country Free or local support hotlines + the things mentioned above Yes... It's more about the company than the webhosting itself but these things are as important as everything else. Maybe even more. Nope... never did anything like that with a ProcessWire project. FileZilla is S/FTP so about 99% of all webhosting companies should fit here. ? I prefer Site Profile Exporter as I create a full copy of everything with only a few clicks. I know others here that prefer Duplicator. So... try everything and decide which way to go. Regarding sync-scripts of any kind... not mine at all. As said before... it really depends on your needs. I never used webp support in a live project so far and therefore never had the need of special modules. But yes... put it on your checklist and later on ask hosting companies if they support those features.
  12. First part... A quick test (ProcessWire 3.0.123 and FI 1.0.0) where I exactly did what you described and... it worked as expected. Added FI language pack to default Logout / Login Admin in finnisch Deleted all language files in default Logout / Login Admin in english again There were no mixed translations in the backend at all. Please try to log out and log in again. That sometimes helps with language hiccups. Or even clear browser cache including cookies / try another browser. Second part... Have had the same feelings about language handling at the beginning. But after ~20 multi-lang installations and lots of hours playing around with it my feelings changed. Works ~95% of the time I need it. Never had any real issues with it. WordPress: total fail Drupal: maybe it changed but a few years back it was quite painful Typo3: never seen a multilanguage setup that worked well Textpattern: mh... nope Silverstripe: can't really remember if it worked that well To be honest... I'm super biased in terms of ProcessWire as it gave me so much options and kind of freedom in the past to get almost everything done right from the start. But nonetheless I can't remember any real issues with multi-language setups, neither in front-end, nor in the backend.
  13. Most of my clients already have some sort of webhosting and only in very few cases it needs an update in terms of more features like SSL and similar things. If they don't have webhosting I recommend a middle-sized shared hosting from trusted providers. An all-in-one package works in almost every situation. Domain + Hosting + E-Mail management = ~15 EUR/month that's it and all they need. In the past I have had root servers and VPS to host client projects. It was a nice option, additional money, and a good way to keep clients close. But as regulations and laws changed over the past years I decided to stop offering hosting services. Hosting isn't that expensive anymore and you find really good options out there. Hosting providers are there for a reason. They take the hassle away from me. If your client already has a website, take a look at their web analytics to see how much traffic there is. You can then decide which way to go and what package might be a good deal if there are performance issues. As far as I can say... a good ProcessWire site doesn't need that much of a high performance hosting. Unless you can't use ProCache even a super cheap $3 shared hosting might work well enough. ProcessWire sites with ProCache, almost no real-time-database interactions, and only a few forms have a nice small footprint.
  14. $settings = $purifier->getConfig(); $def = $settings->getHTMLDefinition(); $def->info_tag_transform['h1'] = new HTMLPurifier_TagTransform_Simple('p'); $def->info_tag_transform['h2'] = new HTMLPurifier_TagTransform_Simple('p'); $def->info_tag_transform['h3'] = new HTMLPurifier_TagTransform_Simple('p'); $def->info_tag_transform['h4'] = new HTMLPurifier_TagTransform_Simple('p'); $def->info_tag_transform['h5'] = new HTMLPurifier_TagTransform_Simple('p'); $def->info_tag_transform['h6'] = new HTMLPurifier_TagTransform_Simple('p'); $clean = $purifier->purify($dirty); That part is awesome. Should bookmark this for later migrations.
  15. In my experience it depends on how you import the content. Via Copy&Paste... just paste as plain text or go the extra route and paste before in a text editor of your choice. While using database import or migrator module you might want to trust the textarea field settings. It takes care of a lot of extra markup already. You might have to iterate via API over all pages to make the clean up happen or push it manually from the settings. You won't get rid of wrong H-tags but most of the other clutter will go.
  16. Kind of related and at least interesting. https://medium.com/@umpox/be-careful-what-you-copy-invisibly-inserting-usernames-into-text-with-zero-width-characters-18b4e6f17b66 https://medium.com/@aidobreen/hidden-text-fingerprints-and-how-to-avoid-them-d0103edd2ce4
  17. That one?
  18. I don't want to undermine your suggestion but in my opinion the presets are fine. There is no one-size-fits-all-needs solution in this case. All websites are different in the matter of design and how it was achieved. I think the provided solutions are a very nice foundation that almost work in most situations already. At least they are a good starting point to build custom solutions later on.
  19. And people just don't want to wait for a website to load.
  20. Why don't you modify or create your own CSS for it?
  21. It's almost the same with writers and (freelance) journalists. They get paid either by (a low) hourly rate or article-based or only a one-time fee. They often sometimes (kind of) sell their copyright and transfer their "possible future profits" based on views or re-prints of their work the big publishers. And with this new foundation publishers' options for bypassing money got even more easier in some cases. Regarding copyright fee... that's already in place since at least 2008. I don't know how it's called in Hungary but here it is called Urheberrechtsabgabe/Pauschalabgabe - see Wikipedia (DE) more more details.
  22. What's happening in your lendout template right after // STUDENT? There is an empty foreach() loop in your snippet. Is that correct?
  23. Is there anything in the real rendered source (not inspector view but CTRL/STRG + U)? Does it render weird while CSS is disabled? Does it render weird while JS is disabled? How does another <h4> above/below gets rendered?
×
×
  • Create New...