Jump to content

Pixrael

Members
  • Posts

    342
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Pixrael

  1. Intellisense never works with PW for me, I just uninstalled it and use the snippets Update: I mean Intelephense, I never try Intellisense
  2. Ideas to add: https://gist.github.com/kongondo/2b0a16df9eca30f5b9f9b92c7584e7e3
  3. Very Good! Congratulations! https://gtmetrix.com/reports/joerg-hempel.com/W4poteAu https://tools.pingdom.com/#5c3bbe0cae400000
  4. If in doubt, always use this: <?php namespace ProcessWire; ?> on the file to include, and use this: wire('pages')-> instead of $pages-> .. and that never fails 🙂
  5. I use BS all the time and my websites never look the same. I change everything I need, it's very easy to use SASS, and its grid and utilities classes are great. Maybe the sites look the same because you/they leave it with the "out of the box" style and layouts. You simply adjust colors, borders, sizes, spaces, fonts, icons, shadows, pictures, backgrounds, etc. and create designs/layouts in a creative/useful way and that's it. But never ever copy and paste the examples and start throwing code on it... and this will happen with any framework you use. You should always start with a good (useful) design of the page, without thinking about its implementation and then use BS or any other tool to do it as it was designed, as simple as that. PS: Ah.. I forgot.. I'm a graphic designer LOL
  6. Interesting Tool => Code Snippets Manager { https://masscode.io/ }
  7. If we check the reviewer website (https://dougmcarthur.net/) then we understand why he sees the Processwire environment so difficult and complicated, even for Wordpress standards this website is very simple: a theme template and a couple of posts. Additionally for that plain homepage in the "recommended" Wordpress it needs: Fully Loaded Time: 9.4s Total Page Size: 5.68MB Requests: 52
  8. An elegant way to do this is how the Intuit company does it in the footer of the sites, see: https://www.intuit.com/ they have a link to a page for the explanation (intuit-cookies-policy) and other link to configure cookie management. Will be interesting if we have a module that do both: create the page for the blah blah.. and show the modal to admin the behavior.. then output the markup for this links (About cookies | Manage cookies) 😉
  9. https://processwire.com/blog/posts/pw-3.0.133/#new-page-gt-meta-method <-- the new kid on the block
  10. I use an ionos.com (former 1and1) dedicated server and it works great (features, performance and prices), but if what you need is something easy/cheap to admin for PHP projects you can evaluate this packages: https://www.ionos.com/hosting/php-web-hosting
  11. 👍 Will be great if you can mix Markup Regions with the concept of the "Tags File Compiler" module https://processwire.com/blog/posts/processwire-3.0-alpha-2-and-2.6.22-rc1/#new-module-file-compiler-tags
  12. Add the "Paid" field to the user template: https://processwire.com/talk/topic/16400-is-it-possible-to-add-custom-user-properties-to-the-user/ Then you can update that field: $user->setAndSave('paid', 'true'); You can use a FieldtypeCheckbox for that too, then the ON value is 1 and OFF value is 0
  13. https://prog.tube/laravel-php-create-a-social-network-full-app https://github.com/lvntayn/laravel-social-network
  14. This is my code fragment that is currently working.. but I save the image to file because my case // here I load the SVG file $svg = file_get_contents("https://www.domain.com/site/templates/images/$image.svg"); // here goes code to modify some elements, colors and texts in the svg .... // here I set the SVG var to Imagick and save to a PNG file ready for download $im = new \Imagick(); $im->readImageBlob($svg); $im->setImageFormat("png24"); $im->scaleImage(1024, 1024, true); $im->writeImage("../downloads/$filename"); $im->clear(); $im->destroy(); $file = "https://www.domain.com/site/downloads/$filename"; echo $file; I implemented it as a service that is called by AJAX and returns the URL to the generated image.
  15. It work for me. Try to assign the image path manually to verify that the Imagick is working: $im->readImageBlob("https://www.domain.com/site/templates/images/image.svg"); If you are able to open the picture in the browser using the path, this should render the picture on the page.
  16. @adrian I tried this and works with wrong password entries, but if both parameters are ok, then I get a fatal error: Error: Exception: Login not attempted due to overflow. Please wait at least 20 seconds before attempting another login. (in /var/www/vhosts/domain.com/app.domain.com/wire/modules/Session/SessionLoginThrottle/SessionLoginThrottle.module line 150)
  17. In the Login/Register module I receive this error when the email exist but the password is incorrect. Any solution? Because the module has no new updates. Notice: Trying to get property 'name' of non-object in /var/www/vhosts/pdhvac.com/wms.pdhvac.com/site/modules/LoginRegister/LoginRegister.module on line 394
  18. No idea... try this alternative: $im = new \Imagick(); $im->readImageBlob($imageurl);
  19. try $config->path https://processwire.com/api/ref/config/path/
×
×
  • Create New...