mrjasongorman

Members
  • Content count

    59
  • Joined

  • Last visited

Community Reputation

44 Excellent

About mrjasongorman

  • Rank
    Full Member

Contact Methods

  • Website URL
    https://www.jasongorman.uk

Profile Information

  • Gender
    Male
  • Location
    UK

Recent Profile Visitors

1,558 profile views
  1. Nice to hear others are using this technique too. For my case the emailing system we were required to use has an "editor" but it's terrible, with PW i can add condition switches in the CMS to arrange partials in the email to a particular order etc. So much potential.
  2. Ah really? that's cool, tbh i'm not sure why i didn't think of it sooner.
  3. I recently had a revelation when building HTML emails, what's the difference between HTML emails, and HTML web pages? Other than the horrible table syntax, the result is the same, it's still HTML. This got me thinking why not use a CMS to help generate the HTML emails based on a template? Just like we using a CMS to help generate HTML web pages. We started by setting up ProcessWire (our usual CMS of choice) and added the relevent fields for the sections of the email. Then we took a previous email moved the content into ProcessWire and hooked up the code to pull that content back into the correct places. Repeater fields allowed us to have repeatable sections that are easy to add too, change order of or remove, giving us huge flexibility when a client changes their mind last minute. The speed of setting up and dealing with ProcessWire allowed us to go from concept to working prototype within a day. To use the emails, we just view source of the generated page, and copy and paste into the email system. Sometimes Litmus inliner is required to allow the email to work in Outlook, but we can run it through that before pasting into the email system. Future development could be integrating a css inliner into the generation step, to avoid using litmus inliner. Hope this helps show how ProcessWire can be used in a different scenario.
  4. Looking at the requirements i think these privileges should be enough? Data: SELECT, INSERT, UPDATE, DELETE Definition: CREATE, ALTER, DROP Extra: INDEX Similar to this requirement from Wordpress... http://wordpress.stackexchange.com/questions/6424/mysql-database-user-which-privileges-are-needed Also points out a nice config conditional trick where by a higher privileged DB user is used in the admin area, and normal pages use lower privileges (possibly just SELECT). Hope this helps keep ProcessWire setups even more secure.
  5. I'm just wondering exactly what MySQL permissions are required for ProcessWire? From a security point of view i would prefer to lock down the MySQL user that ProcessWire uses to the least amount of privileges needed. I guess it's SELECT, INSERT, UPDATE, DELETE, but do any modules create additional indexes? Any help on this would be great.
  6. @Mike Rockett Ah ok i see, i may have not read the thread properly, my bad.
  7. www.ladosis.eduardosanmiguel.com = 52.24.162.64 (amazon seattle) according to https://www.iplocation.net/ www.thatsnew.net = 52.24.162.64 (amazon seattle) according to https://www.iplocation.net/ Looking at curl -I www.thatsnew.net it returns: HTTP/1.1 301 Moved Permanently Server: nginx Date: Wed, 14 Sep 2016 17:30:09 GMT Content-Type: text/html; charset=iso-8859-1 X-Frame-Options: SAMEORIGIN Location: http://www.ladosis.eduardosanmiguel.com/ Age: 0 Connection: keep-alive So it's just a redirect?
  8. I've noticed that the processwire.com website runs over SSL, but i also noticed that visiting the websites over http still works, and once using the insecure version the links are also relative pointing to non-ssl links. As a fix there could possibly add an auto redirect to the HTTPS site? This could potentially then take advantage of HTTP/2 speed.
  9. I'm just wondering if there a way of creating block like functionality similar to say Episerver / drupal blocks?? I guess i could treat the template as a view that loads in sever partials (kinda like blocks) ?? Any ideas on this would be great.
  10. Figured out i can just manually enter the path to my template file at the bottom of the file select page. It then scans the file and picks up the translatable strings.
  11. As regards to language files translating strings from within my custom templates, what's the random string (key) inside a language JSON file? and where abouts do language files live? I have an issue where by PW won't pickup all my templates that have __('text') as templates that can have translation files attached to them. It's only picking up header.php, footer.php and home.php about.php gets ignored for some reason :/
  12. Is there a way i can override the CMS in code, as to what the translation should be? i've noticed it gives an options to upload JSON files
  13. Yeah all of my template files are .php for example it's not picking up about.php which has similar __('text') strings.
  14. I've added __('text') to my template files, but for some reason when i go to add translations in the site translations section it's only detecting header.php, footer.php and home.php as template files that can have translation. Not sure why the other template aren't showing up :/
  15. Hi all, worked it out using a pen and paper haha, followed the code and wrote down the word it seemed to be spelling out from the random string at the top. The random string turned out to be not so random spelling out base64_decode.