Jump to content

clemens

Members
  • Posts

    13
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

clemens's Achievements

Jr. Member

Jr. Member (3/6)

3

Reputation

  1. I'm running WireMailSmtp 0.6.4 and PHP 8.0 (With ProcessWire 3.0.229)
  2. Does anyone have a fix for the following error which appears when using the "Test settings" function? Class "ProcessWire\WireMailSmtp" not found (at site/modules/WireMailSmtp/WireMailSmtpAdaptor.php:145) I'm using ProcessWire 3.0.229 Or is there an alternative plugin to send smtp mails on modern PW systems?
  3. This is the resulting format. The address itself should be German since only Deutschland is allowable. I've also set all addresses as domestic and the country of origin as DE, too. Still, this is the resulting HTML: It only displays properly when I do this to your module:
  4. @netcarver Thanks for replying so quickly. The address is displayed correctly in the preview when editing the page. The issue comes when outputting the field/getting the field value via $page->get("address_field"). I alway get "city, zip" in the resulting html. How is the localization determined here? Is it the language ProcessWire is set to? Can I force the field to output German localization here as well?
  5. First of all: thanks for this field, it's great. How can I override the ISO used for rendering the field? It always comes out as the wrong format (City, Zip) despite only "German" (Zip City) being present in the field options. I've resorted to just overriding the iso codes at the start of "formatLines()", but that's dirty as hell. Is there a way to set the formatting language when/before getting the field value from the page?
  6. Update: I managed to circumvent the whole thing by using wireSendFile() to serve the file for the specific user (via a different url, of course). I'm still very much interested in how to hook ::viewable when serving a file.
  7. That doesn't seem to change anything. The main issue imo is the fact that the page template in question doesn't even show when I dump every successful hook. I'm mostly surprised that I can't find any previous solutions to this issue.
  8. Hi, I'm using pagefileSecure to protect a template (and specifically its files) from public access. Now I want to allow specific users to view their own files. I already tried hooking Page::viewable, but the template of the page (where the file is stored) doesn't even show up when I dump every hook. I have this code in site/ready.php $wire->addHook('Page::viewable', function (\ProcessWire\HookEvent $event) { bd($event->object->template->name); //my-template doesn't even show up here switch ($event->object->template->name) { case "my-template": $event->return = true; // the user still gets a 404 when attempting to access the file on frontend. break; default: break; } }); What would be the best way to allow access to specific files for individual users, even when they don't have a role that can view the page?
×
×
  • Create New...