Jump to content

Macrura

PW-Moderators
  • Posts

    2,776
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by Macrura

  1. @Adrian - thanks for checking in on this! i'm sure it was my fault, doing something wrong with migrator, (and i do have a backup but haven't reverted yet)... Also, this site was upgraded a few times, probably set it up about a year ago.. But i am using the latest migrator, i just installed it a few days ago to try this migration of client pages... What happened with migrator is that the pages i was importing had a select field for users, and then I didn't know migrator would try and import those attached user pages; but the migrator put the users in funny places, like right under admin, but not in the users area under the users page; so i had to manually delete them from the DB, tried deleting those users with the api but it wouldn't let me; so ultimately i cleaned out all of the pages, fields and templates that migrator imported, and i deleted all the users from the database that migrator imported... should i PM you the full debug error? @arjen - i only have 1 user now, who is me, the superadmin... i only have the default roles and permissions at the moment; maybe i need to check over the tables for roles though...
  2. I have a processwire dev site, running 2.4.8, and I can no longer access users...When i go to access users, i get this error, and no users displayed: Unknown Selector operator: '' -- was your selector value properly escaped? with debug turned on TemplateFile: Unknown Selector operator: '' -- was your selector value properly escaped? field='roles', value='', selector: 'roles' (and another ~70 rows of errors..) Spent a few hours looking at the database and comparing it with another PW database to see if there is something amiss, but can't seem to track down this problem; the problem may have started after attempting to import some pages with page migrator- i'm thinking that something setting or part of the database got corrupted...? TIA
  3. @apeisa - great news about ecommerce...! I'm trapped now for last 3 weeks on prestashop project..no other viable choice for this, but hard not to feel frustration at every turn, changing things, adding features, when compared to PW. Main problem with turnkey ecommerce systems (have done serious in-depth testing on Shopify, Magento, Lemonstand, Volusion, Opencart) is that they tend to work for a very narrow set of ecommerce business models, and takes some serious muscle to get them under control and into something that matches the specific need of the project. (Gotta say though, Prestashop is turning out to be the best of the bunch)... Main things that would have made this one easier in PW: 1.) Associating specific images to child products (product variant matrix - color/size combos) would have been 10x easier, faster, and more efficient; could have been almost automatic; with PS it's labor intensive and clicky... 2.) Uploading, managing and resizing images - 10x easier in PW... PS has no drag and drop uploader, image resizing is somewhat arcane, system doesn't really crop to size; 3.) Serving different images based on user agent, and also serving retina images - almost impossible with PS..
  4. @Horst - a zillion thanks for this, looks awesome - i will delve in to deep study on this tonight (NY time) and respond then... gotta go and work for $ now...!
  5. Hi Horst - regarding the cron - since the cron just executes the page with this template (only way i could do it for the moment), i guess the thing would be to have some logic at the top of the template file to check is wiremail is still running? would that be possible? i definitely see your concern as far as scalability and different use cases; In my case i know for sure that i wouldn't have 2 messages scheduled 5 min apart with enough recipients to consume more that 5 min of sending time; but it is definitely something that should be accounted for... When i first started this i was initially only thinking of sending to maybe 1-5 recipients at a time; now i figure that i could possibly need to send out to as many as 150; I was sort of figuring that when/if i get to the point of needing to send to a larger # that i would use a different system; Another thing that i might play with is the Mandrill web hooks - it lets you enable posting back to a URL the json response for different events, like mail sent, mail opened, bounced etc; could be cool to have some fields in processwire to show the results of the send without having to go and look at the mandrill interface each time... I'll let you know how this goes.. should have some progress on it in a few days; the other good thing about reading back the mandrill responses is that they don't store that data for very long, so would be good to keep those records in PW...
  6. Right - and i have a cron job which runs every 5 min a 'mail_cron' template; the template runs through some $pages->find and gets the messages to be sent; I only use it to schedule emails (though if i needed to send it right away, i would set the send time for 5 min from now..) this is the simple sending code: https://gist.github.com/outflux3/797a18f5d2eaf0a87efb but i'm working on changing over to this: https://gist.github.com/outflux3/530b8adb1a6b7019d262 the only difference i added the table for sending multiple future-scheduled emails with the text placeholders; so you could use the custom text placeholder to have an amount due and then in the message say "Amount Due by {{duedate}}: {{custom}}" or you can just use the custom field to send slightly different messages for each instance..
  7. i think what was happening then with the date/time is that it is getting server time, as opposed to processwire time.. $this->emailMessage->SetHeader("Date", date("D, j M Y H:i:s \G\M\T P")); so the problem could be for someone who is using a server in a different timezone could we override this at the template/api level? Also - to elaborate more on this use case: last year i found it necessary to setup future sending emails to some clients (hosting invoices, payment plans etc..) and the only solution i could come up with was a service called LetterMeLater; but i thought while using it, that it would not be so hard to build this in processwire... so after about 2 hrs of setup i was able to replicate that and it works well, better than the original service i was using; some features I've been able to accomplish over the last few days of creating this: Select Identity to send from (and then uses that identity's signature) Select multiple recipients using a profields table, setup a schedule of sending, along with placeholder texts for each sending instance Attachments to the message (page) Attachments from a central repository of attachments Links to documents/media Render inline images in body and signatures (using string replacements for the image urls - prepending the site URL), also floating images are working List of attached documents Send offset (so you can select a due date and then offset to send the message X days early; this way you can set the dates in the table to the due dates and avoid date confusion) Boilerplate insertion (select from an array of generic pre-written 'boilerplate' texts and insert them..) this is going to really save a lot of time for me! I'm also using Mandrill to send these, so i can check to make sure they were sent, and also i can see if the recipient opened the message..
  8. Hi Horst - thanks ! i'm using PW pages for the email and i have contacts stored in pages and then i can use asmselect for choosing who to send to, 1 or more... so for multiple i use the recipients array // Recipients if($message->recipients->count()) { $recipients = array(); foreach($message->recipients as $recipient) { $recipients[] = $recipient->title . ' <' . $recipient->email . '>'; } $mail->to($recipients); } but i was thinking that I want to personalize the emails, so i would need to refactor the code to start a loop with the recipients and then run a string replace on the {{name}} placeholder in the email... how does this relate to the bulk option? thanks also about the gmdate - will look at that tonight.. cheers!
  9. @horst - thanks, this time difference thing is probably related to the actual server location vs the config->timezone ? does your module use the config->timezone setting to set that? regarding the whole logging thing, i feel stupid, i'm pretty much lost even after reading this thread 5 times... no idea how to simply log the success of a mail being sent, either to a log file, or to a field on my page... for now i do this which is ok for the moment: // Send $sendLog = 'Number Sent: '; $sendLog .= $mail->send(); // Logging $email_log = $message->email_log; $email_log .= "\n". $sendLog; $message->email_log = $email_log; $message->of(false); $message->save();
  10. hey - thanks; I went with Servint for now; Appreciate the Digital Ocean referral; they are somewhat less expensive than Servint...but the support is pretty good..
  11. there has been some talk also on another thread about this; Joomla with Maian Media is how I do this now; when a customer purchases downloads, the script redirects them to paypal; the IPN is processed after payment which then lets MM create the download page, that has the download links to the files; also sends an email to the user with the URL to their special download page. It would be important for such a system to simply track the # of downloads, and also allow for hiding the file location (could be on a local server or on s3..) but all in all the logic should be pretty simple - gonna try and write this later this summer...
  12. hi teppo - many thanks, will update the module soon - for now i gave that user superadmin to get through the project, and this issue wasn't happening on all pages, just certain ones; i will update module, reset the role and report back asap...
  13. @Can - many thanks, looking forward to studying your post!
  14. @Can - could you possibly share how you setup mpdf with PW? maybe on a tutorial thread? cheers!
  15. we seem to be having the same issue again with non-superusers not being able to save (Only superusers can edit field) even though the user didn't edit the textarea markup field, since it is not editable for their role; (using 1.0.3)
  16. BTW, you could do this: <?php echo $page->meta_title ?: $pages->get('/')->meta_title; ?> instead of this <?php echo (($page->meta_title) ? $page->meta_title : $pages->get('/')->meta_title); ?>
  17. @teppo - does WireMailSwiftMailer support attachments?
  18. actually you can just show different content based on the request type; so if you are doing a quick view, then you show that with Ajax; if you are linking to the page you show the page code; i'm doing that here: http://www.katonahartcenter.com/student-showcase/ and here: http://www.charleswuorinen.com/compositions/ so on your template: <?php if($config->ajax) { ?> show your markup for the quickview here <?php } else { ?> show your normal page code <?php } ?> so you don't need the quickview part of the URL
  19. @Horst, great module, many thanks for your work on this! Got attachments sending and works perfectly.... Got a couple of questions; first thing is that my email client is showing the wrong time sent on the emails, specifically Outlook for Mac; webmail, apple mail and android mail are all showing the correct sent time; just wondering why Outlook is showing the sent time as 4 hours before the actual time sent - could it be interpreting the headers differently? Other than these messages sent by WiremailSMTP, outlook shows the correct time sent... ** Update - i'm now using mandrill for the smtp and this has fixed the time being wrong on Outlook; not sure if it is the server, or if Mandrill is cleaning up/altering some part of the email code itself; 2nd question is how might i use logActivity ($logmessage) to save that activity into a textarea field on my processwire page that the email is generating from?; would be cool to show a field with the send log right on that page; another question which isn't really directly related to the module, is how one might use images within the RTE and be able to have the email display the images; it would require replacing the relative image paths in TinyMCE with the absolute paths, but i'm not sure how to get started on that...[for now i have a hanna code that inserts the site's base path; kills the image in the editor, but it shows in the email...
  20. @Beluga - you have a good point. I'm setting up a prestashop now and having strange issues with things not working.. still, it beats some of the other options out there and some things work really well out of the box...
  21. @videokid - Opencart does look good; hmm maybe i should use that instead? there are so many factors i'm needing to provide the client, and been testing carts for so long.. maybe i'll setup an opencart demo and see how it goes... thanks
  22. hi pwired, this company had originally thought they could just go with Shopify for an initial launch and then gradually migrate to something different if their business took off; I had originally recommended Shopify to them, and it is good for really simple shops; however this company has some extremely complicated requirements which were not revealed to be incompatible with Shopify until after they had already invested a number of hours into setting it up; I think Shopify is largely to blame for this because they are somewhat cagey about the limitations of their system, and there are some things that it simply cannot do (period); it became obvious after a while and searching forums that Shopify has horrible/useless support for product variants, while Prestashop handles variants really nicely; with PS, you can use the combinations generator to get your size/color combinations, and from there change the SKU#s, associated images, and many more settings per product variant. On the frontend when you change to a different product variant, the URL hash is altered to reflect the variant selected, the images are swapped out; in the cart and all the way through checkout the correct product variant image is retained. Shopify can't do this at all - it requires a hack to get it to show the right image in the cart, and then at checkout it cannot show the correct image, it can only show the default image for the parent product... I think you'll be happy with prestashop if you are looking to replace abantecart; they have come a long way; I still have a way to go with this project so i'll let you know if anything else interesting happens..
  23. @blad - welcome to the forums! not totally sure here, but could possibly be an issue with trying to sanitize as text, since ID is (int). have you tried it without the sanitizer, and also have you tried it with different operators like *= and ~=?'
  24. @pwired, thanks, yes those are all valid points... Some of them can be solved in the current version with addons; gotta say though, none of those issues are dealbreakers for this project; we spent/wasted a ton of time on other options, but ps has really been nice to work with..
  25. wow that's cool...! glad this code worked!
×
×
  • Create New...