Jump to content

benbyf

Members
  • Posts

    818
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by benbyf

  1. I've been working on this a looks like it WILL require a change, as it now requires you update your payment journey to use PaymentIntentions, e.g. setting a intent to pay at the beginning of any payment checkout before actually requesting card information, address, email etc etc... I'm currently having to do this for my clients and adding support for Stripe Elements. Love this to be robust butI'm simply not a very good backend dev so muddling through it. Will release what I have when it's done hopefully in a week.
  2. Think i'm miss understanding the conversion between curl in the terminal and curl in php. Looking at the below and wondered how to set the -u. Is it setting a CURLOPT_USERPWD header? Or more complex than that? https://stripe.com/docs/payments/checkout/migration#client-products-server-code curl https://api.stripe.com/v1/customers \ -u sk_test_4eC39HqLyjWDarjtT1zdp7dc: \ -d email="{{STRIPE_EMAIL}}" \ -d source="{{STRIPE_TOKEN}}"
  3. Trying to rework my Stripe implementation to get up-to-date with the latest regulation changes and wanted to use wireHttp instead of simply curl, but couldnt work out at all how to add a user password along with the request.
  4. Hi! Been doing some basic Twilio implementation for a client to enable them to automatically send text messages to registered users on page publish. As an upshot, I thought I would strip out the site specific work and stick up on github here: https://github.com/benbyford/TwilioChannels This modules pulls in the Twilio APi and enables you to send SMS messages from your front or backend. Send SMS message Truncate message to single message character limit Auto-select number from range of numbers depending on $To number country of origin–this enables you to send messages with a local number to that user if one added to the config. Templates usage: $twilio = $modules->get("TwilioChannels"); $twilio->sendSMS($toNumber, $message);
  5. Will be publishing my store soon @MateThemes so might be easier to join forces? I also agree with @wbmnfktr not sure patreon is the right place for this.
  6. Wicked! If you happen to stick it up on github I'll use it for sure!
  7. Thought I'd share this quickly as it helps me get to grips with whether I'm looking at the dev site or live site when working on any client project. Dev site only has AdminOnSteroids module. I add the below to sites/templates/admin/admin.css and add that url the admin css field in the module. Currently only works with default adminTheme. #masthead{ background: rgb(153, 12, 94) !important; } #logo:before{ content: 'DEV '; color: white; margin-right: 1em; vertical-align: middle; display: inline-block; font-size: 1em; letter-spacing: 0.05em; margin: -15px 0.6em 0em 0; } Simply adds a DEV string and changes the header color so I can see I'm on Dev not live. I guess you could do the opposite if you wanted adding content: "LIVE" instead in the CSS.
  8. Not sure on my install path as I do it so many times i just do what works which is mostly dfault settings. I was able to add ? ? ? emoji's into my site field labels as show with no extra work. Which is pretty awesome.
  9. Having this same issue and I'm running System Notifications module, shame, as I hoped the module would be really useful but is mostly a desaster.
  10. Or too much whisky last night...? I tend to do all my personal coding in the little hours with something to drink ?
  11. If this is the case then I'm a total idiot. Thanks!
  12. Super confused, getting a error for this code to create a save message to log file: public function init() { $log = $this->wire('log'); $log->save("MyModuleName","working"); } Error: Exception: Log name must contain only [-_.a-z0-9] with no extension (in /srv/users/serverpilot/apps/betaville-dev/public/wire/core/WireLog.php line 167) Not sure how to fix this. Any help appreciated.
  13. Module was created to track date/time based messages between one or more users. That said it might be I could use it to create a new module that has an admin page that acts as a conversation between the logged in user and the admin or any other users. If you're looking for a less structured, freeform notes sort of collaboration thing then let me know and ill have a think.
  14. Do you mind giving me a description of your use case, look back over your comments but still cant quite get my head around it.
  15. Anyone still interested in this module? Also the module saves all messages in plain text, would you be interested in a encrypted version of the module using key exchange or hash keys?
  16. @gbball which library? Like any CMS style thing, processwire makes it easy yo work with content and create content driven sites - including things like users etc. If you dont have much content that needs to be easily edited thennnnnnnn probably don't use a CMS ? If you do then totally use PW as your content engine and the template system to display content on a page that also houses your webGL etc
  17. YESSSS thank you, this did the trick. I ssh'ed into my server and added the fr_FR langs and now the warning has gone... ?
  18. ??? no idea, in what way?
  19. Yep, and I have fr_FR.UTF-8 in the C field for french and en_EN.UTF-8 for the english and setlocale ( LC_ALL, "fr_FR.UTF-8"); set in my config but the warning persists.
  20. I get an internal server error complaining that the function doesnt exist if i do that ?
  21. Thanks, those seem like they would help but still getting the warning. I've set the two lang's to fr_FR.UTF-8 and en_EN.UTF-8 respectively in the admin, and added setlocale(LC_ALL, "fr_FR.UTF-8"); to the config, but doesnt seem to make a difference...?
  22. get this warning and am unsure even with the nice warning what to do here, the links dont seem to help - want to set eh site to FR and not the whole server as it is a shared server: https://www.dropbox.com/s/dxtfcrt1eyg9t7o/Screenshot 2019-01-15 11.40.53.png?dl=0 Warning: your server locale is undefined and may cause issues. Please translate the “C” locale setting for each language to the proper locale in /wire/modules/LanguageSupport/LanguageSupport.module (shortcuts provided below): • English • Française For example, the locale setting for US English might be: en_US.UTF-8
  23. Thanks for your help @flydev. The solution that worked you suggested was as follows: cd /srv/users/serverpilot/apps/chinaandco/public/ chmod 755 site/assets find site/assets -type d -exec chmod 755 {} \; find site/assets/ -type f -exec chmod 644 {} \; This sorted it out. Though still not sure how i got into that permissions mess to start with ?
  24. ubuntu 14, digital ocean droplet, serverpilot.com runs the sysadmin setup with nginx, PW 3.0.98. PHP 7.2
  25. not sure why but PW adds any uploads as permissions 600 (e.g. images wont load after upload unless i go in with the same server user and change permissions to 755 or similar). This ever happened to any one else?
×
×
  • Create New...