Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


BitPoet last won the day on April 24

BitPoet had the most liked content!

Community Reputation

2,145 Excellent


About BitPoet

  • Rank
    Hero Member

Profile Information

  • Gender
  • Location
    Near Munich / Germany
  • Interests
    programming, writing, scuba diving, long distance hiking

Recent Profile Visitors

6,182 profile views
  1. Are these page names or page ids? For $p->tags->add to work, anything numeric must be a valid page id. And, duh, I have to say sorry. I just took a look into PageArray.php and saw that you can actually pass an array of pages to PageArray::add and it will call itself recursively, thought the same rules apply then. If it looks numeric, it needs to be a page id.
  2. Yes, loop over $tags and call $page->tags->add() for each like in the snippet you posted. Of course, you can just call $sanitizer->text for every $tag inside the loop in your third code snippet and go without the array_map. array_map is just a function that calls the passed function for every entry in the array given to it and returns a new array with the results.
  3. My guess is that this might be the culprit. If you submit multiple tags, that likely returns something like "array-2". You might need to do something like this: $rawTags = $input->post->tags; $tags = array_map( function($tag) use($sanitizer) { return $sanitizer->text($tag); }, is_array($rawTags) ? $rawTags : [$rawTags] );
  4. What does the web server error log have to say? You should see a more verbose error description there (or perhaps even in Chrome developer console on the network tab).
  5. Thanks a lot for that! I‘m away for the weekend and can‘t test it thoroughly, but it looks fine so I merged it to the dev tree. Will give it a closer look and push to master Sunday evening.
  6. Haven't done it, but since Office 365 uses Azure with SAML as authentication protocol, the SamlAuth module might work. Maybe @Adam can chime in whether he has used his module with Azure yet?
  7. I've still got that on the back burner, but it'll likely be the next quarter until I find enough time for it. It's going to need some deep digging, unfortunately.
  8. You'll have to use lowercase "%p" and/or a workaround. The uppercase %P is missing in many platforms' native strftime implementation, and PHP just uses what the platform (i.e. the operating system) offers. So if you're e.g. on windows, a number of format characters listed in the strftime manual will throw an error or fail silently.
  9. And, if you want a nice CK'ish dropdown instead of having the user type, @Robin S' Hanna Code Dialog might also be an option.
  10. Nothing. Escaping single quotes as HTML entities is perfectly valid and just an optical thing, the behavior stays the same as if there were literal single quotes.
  11. Thanks for sharing this, a wonderful and funny read that also brings up some sentimental points. And, coincidentally, I also read his article about quitting at YouTube which ends with My request to take six months off next year to go backpacking (thru-hiking) on the Pacific Crest Trail was approved a week ago. Didn't think it might be this valuable in my CV
  12. Any change if you use the version from the PW3 branch in the github repo for PaymentModule (which is basically the same with the namespace added)?
  13. It might be a dumb question, but since the dependency check that gives the message is a core function reliably used by many modules, are you sure PaymentModule is really installed (i.e. showing up in "Modules" -> "Site" in the backend)?
  14. This is provided by Page Edit Soft Lock. Sure you have it installed?
  • Create New...