Jump to content

dotnetic

Members
  • Posts

    1,070
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by dotnetic

  1. @mr-fan You are right. I did not knew that Lister Pro came with additional downloadable modules. Found them in the Forum.
  2. @adrian Is it possible to hook the "Process Children CSV Export" to a Lister Pro View so that I can export all filtered entries that are actually shown? The process should be something like: Goto Lister Page Filter my results Press "Export as CSV" Button How would I do that?
  3. I do some more testing with different settings and report back.
  4. It just worked E-Mail looks fine. Umlauts work correct and the attachment is correct.
  5. @justb3a Is it only possible to retrieve the recentMedia of the sandbox user? EDIT: To clarify: Can I just access images of the access token user or can I get images from every user? I get the images of my own account (which is in sandbox mode) but if I enter something diffent in the field "Username" in the modules settings, I still get the same images and not the images of the other user. I even tried $instagram = $modules->get('InstagramFeed')->getRecentMedia("cocacola"); but still my own images appear. I also tried clearing the cache via the link in the modules setting.
  6. @BitPoet Do you have an estimate when you can add the fix for multipart? Because I have attachments and now my email client renders both, the text mail part and the html mail part (see screenshot). Maybe a small donation from me may motivate you to do it quickly? I don´t want to go back to PHPMailer again.
  7. @BitPoet I found the solution for long subjects. Please use the function mb_encode_mimeheader for that. So line 435 in WireMail.php should read if (@mail($to, mb_encode_mimeheader($this->subject), $body, $header, $param)) $numSent++; Now the long subject is separated into multiple lines and each one is correctly wrapped with the correct code.
  8. @BitPoet I just edited my post. It has to do with the length of the title. Because my title was more than 78 chars.
  9. Do you use the WireMail Class from dev Repository with bitpoets fixes? My problem happens only because it is a multipart message and not a plain text message. I added this to my post.
  10. @BitPoet´s fix for quoted-printable mails is merged into dev. I updated my WireMail class and tried sending an E-Mail with the new class. Now the HTML Part of the message with umlauts in it displays fine, but the title with german umlauts in it still does not display correct. I tried all sorts of conversions and adding headers to the mail but nothing worked. EDIT: This happens with multipart messages because they have no header like Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable But if I add those headers the rest of the mail is unreadable. How do I get correct umlauts in the title? Edit: I found the solution, attached it to the end of my post. Here is the some of the code I used: $betr = 'öäüß testmail' $mail = new \ProcessWire\WireMail(); // $mail->header('Content-Transfer-Encoding','base64'); // $mail->header('Content-Type', 'multipart/alternative; charset="utf-8"'); // $mail->header('charset', 'utf-8'); $mail->to('info@jensmartsch.de'); $mail->from('info@jensmartsch.de); $mail->fromName("Jens Martsch"); // $mail->subject(("$betr")); $mail->subject ('=?UTF-8?B?' . base64_encode($betr) . '?='); // $mail->subject(base64_encode('$betr')); // $mail->subject = "?utf-8?Q?" . quoted_printable_encode("öäüß The ï, ö, ë, ä, and é work, but when adding the ü it doesn't") . "?="; $mail->bodyHTML(($text)); if (!$mail->send()){ echo 'Fehler'; } This is the E-Mail header that I receive if I am using $mail->subject($betr); To: info@jensmartsch.de Subject: =?utf-8?Q?=C3=B6=C3=A4=C3=BC=C3=9F Bewerbung Berechnungsingenieur / Messtechniker Aut= omotive (m/w)?= X-PHP-Originating-Script: 0:WireMail.php From: =?utf-8?Q?Jens Martsch?= <info@jensmartsch.de> X-Mailer: ProcessWire/WireMail MIME-Version: 1.0 Content-Type: multipart/alternative; What I see as the title in my mail programm is exactly the same as the Subject SOLUTION: It seems that the length of my title was the problem. Now I try to find a solution for this as well. Maybe I just shorten the title.
  11. @MadeMyDay Haha, in Oelde hab ich sogar mal gearbeitet. Liegt aber n bisschen weitab von deiner Heimat.

  12. @MadeMyDay Haha, in Oelde hab ich sogar mal gearbeitet. Liegt aber n bisschen weitab von deiner Heimat.

  13. I really love this module and think its features should be in core. So much flexibility. You can customize the backend to your preference.
  14. @processwire @cmscritic In my eyes you already won!

  15. Seems like the variable isn´t available. So I used pages.get('/').url instead.
  16. @Wanze Another problem: When I try to use config.urls.root in a hyperlink in a .twig file <a href="{{ config.urls.root }}login/">Anmelden</a> I get an error: Exception: An exception has been thrown during the rendering of a template ("Method Paths::root does not exist or is not callable in this context") in "main.twig" at line 135. If I use another config variable like config.urls.templates it works (but with the wrong path, as I need the root). What is wrong? Is this a bug?
  17. #isnichwahr https://t.co/1pVw0QrU1S

  18. I am using PW 2.8 so there is no namespace. Also I have the function testfunction which should just return a string but also doesn´t work.
  19. I modified my module as you wrote and installed it again, but I still get the error Exception: Unknown "wireRelativeTimeStr" function in "logspot_profile.twig" at line 107
  20. @Wanze @Gazley I can´t get it running. I even tried to write a module but I don´t know which class to extend. Gazley could you send me your module as a reference? Here is the code of my module: <?php class TwigFunctions{ public static function getModuleInfo() { return array( 'title' => "TwigFunctions", 'version' => "0.0.1", 'summary' => "", 'author' => "Sir Aceman", 'href' => "", 'permission' => array("page-view"), 'autoload' => true, 'singular' => true, 'permanent' => false, 'requires' => array("PHP>=5.4.0", "ProcessWire>=2.5.28", ""), ); } public function init() { $this->addHookAfter('TemplateEngineTwig::initTwig', $this, 'hookInitTwig'); } function hookInitTwig(HookEvent $event) { $twig = $event->arguments('twig'); $twigWireRelativeTimeStr = new Twig_SimpleFunction('wireRelativeTimeStr', function ($date) { return wireRelativeTimeStr($date); }); $twig->addFunction($twigWireRelativeTimeStr); $function = new Twig_SimpleFunction('testfunction', function ($string) { return 'testfunction'; }); $twig->addFunction($function); } }
  21. @Gazley I tried adding a modified version of your code to my prepended _init.php. It looks like this: function hookInitTwig(HookEvent $event) { $twig = $event->arguments('twig'); $twigWireRelativeTimeStr = new Twig_SimpleFunction('wireRelativeTimeStr', function ($date) { return wireRelativeTimeStr($date); }); $twig->addFunction($twigWireRelativeTimeStr); $function = new Twig_SimpleFunction('testfunction', function($string) { return 'testfunction'; }); $twig->addFunction($function); } But when I try to use a function in a twig template like {{ wireRelativeTimeStr('1469455438') }} I still get Exception: Unknown "wireRelativeTimeStr" function in "logspot_profile.twig" at line 107 What did I do wrong?
  22. @bernhard Sure. Provide me with details / login and I will have a look. We can also communicate in german if you like.
  23. @Pete Back in 2013 @Nico Knoll asked for a "Mark as solved" button for the forums, so user could see which questions are still unsolved, which was a great feature for this forum. Now with the new version this button is missing. Could you please let it return?
  24. Thank you @bernhard. Have to test it a little more, but first try worked fine.
×
×
  • Create New...