Jump to content

DrewPH

Members
  • Posts

    27
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by DrewPH

  1. DrewPH

    zigpress.com

    Well spotted! Except I emigrated from Malta to the Philippines in 2019, so I don't think I could claim that! But the (100% genuine) testimonial stays because Malta is where I grew my business and is still where most of my active clients are.
  2. Now tested (I used the module configuration field) and it works perfectly. Thanks again.
  3. Brilliant, and once again very fast. I'll try it out as soon as I can.
  4. DrewPH

    zigpress.com

    Hehe, ProcessWire Weekly #546 RSS just dropped into my Reeder app and it seems ZigPress is site of the week! 😊 I'm extremely flattered and honestly quite surprised considering the high standard of sites in the showcase... thanks to whoever made the choice.
  5. JS error resolved with the new file, thank you! I'm not using the language option at all (and don't expect to in the near future), so an independent override would be really great when you have the time, thanks.
  6. DrewPH

    zigpress.com

    Quick note: my logs are telling me that someone viewed the site from here with Mobile Safari and the page tried to load script files from the wrong path. Only possible reason: they must have viewed the page before (when it was still WordPress!) and it got cached. So if you took a look and the site looked completely broken, just clear your browser cache :-) I've now added anti-caching directives.
  7. DrewPH

    zigpress.com

    Here's my next ProcessWire build. After dipping my toe in the ProcessWater with a simple holding page ( https://www.threehills.farm/ ) followed by a blog ( https://www.eltikon.online/ ) that I shared here, this time I have focussed on a site that uses the Repeater Matrix to manage blocks of content, in order to see how easy it is to transfer my WordPress "Advanced Custom Fields Flexible Content" approach to ProcessWire. Result: it's really easy once you get the hang of it. Site: https://www.zigpress.com/ This is my business site, and is a single-page site (plus 404 etc) where each section of content is managed in a Repeater Matrix. Modules installed: AdminStyleRock (so I can use my Nord admin stylesheet!), Pro Fields Repeater Matrix, Seo Maestro, FrontendForms, Less, Redirects, my own ZP Traffic module, and Wire Mail SMTP. I also included Perishable Press's 7G Firewall. I still have more testing to do now that it's live, but it seems to be behaving OK so far. All feedback welcome, including criticism/bugs/whatever.
  8. I'm almost done with my integration of this module, and it's working great. WireMail and WireMailSMTP integration was easy. I have 2 issues though: 1. On AJAX submission, the loading message "Please be patient... the form will be validated!" seems to be hard-wired. Would you be able to offer some way for developers to override it with their own custom text? For example, I'd like my site to simply show "Submitting your enquiry...". 2. Whenever I type into my textarea form field, my JavaScript console gives me this error: Uncaught TypeError: Cannot read properties of null (reading 'children') at HTMLTextAreaElement.<anonymous> (frontendforms.js?v=2.2.17:455:29) I think it's something to do with the character counter, which I have not enabled. And the form still submits OK. Thanks in advance for looking into these issues!
  9. I'm trying this module out in a site I'm building, and it looks like being ideal. I appreciate you developing and supporting it. However, I've run up against a class naming conflict... In frontendforms.css, in the "Slider Captcha" section, there is .block { position: absolute; left: 0; top: 0; } This has instantly nuked my entire page layout, since I'm building the site with RepeaterMatrix fields and am using "block" as the main class for each matrix! I know I can use a different class name or override the attributes, but I'd like to suggest that modules should be as specific as possible in their CSS usage in order to avoid conflicts, especially with a word as generic as "block". Is it possible for you to use a wrapper class in the css file, so that other classes named "block" are not affected when this module is installed? Something like this: .sliderCaptcha .block { position: absolute; left: 0; top: 0; } Then, in AbstractSliderCapture.php, you could have something like this on line 48: return '<div class="sliderCaptcha" id="' . $formID . '-captcha" data-validated="false"></div>'; I may have missed something you'll need to change but I'm sure you get my point. Hope you can consider this - thanks!
  10. @Ivan Gretsky Thanks, that works! I came across the columnWidth attribute at some point but then lost where I had seen it. @bernhard Thanks for the link. For commercial sites I'd probably install that - however this is my "learn how to build a module" module 😀
  11. I'm sure there's an easy answer that I overlooked in the docs or failed to find in the forum, but... If you look at the attached screenshot, my module config has 2 simple checkbox fields, and I would like to get them to be side by side, 50% width each. How can I do that? Apologies if whatever I missed is really obvious! Here's my module config file. <?php namespace ProcessWire; $config = [ 'rateLimiterActive' => [ 'type' => 'checkbox', 'label' => 'Rate Limiter', 'description' => 'Activate the ZpTraffic rate limiter on this site', 'value' => '0', ], 'blockEmptyAgents' => [ 'type' => 'checkbox', 'label' => 'Block Empty Agents', 'description' => 'Block visits with an empty user agent string (send a 400 Bad Request)', 'value' => '0', ], ];
  12. DrewPH

    eltikon.online

    Oops. Copypasta can be a bit of a blunt instrument. Now fixed. I appreciate you taking the time to let me know!
  13. DrewPH

    eltikon.online

    Greetings and thanks! I was last in Switzerland in 2018, which was my 6th trip there (my 1st was in about 1980 I think). I'm not sure if I'll get there again (getting too old for long flights) but I'm making a 3m x 1m reminder of it in my office room... I'm loving ProcessWire and am finding it easy to find answers to my questions online - maybe because PW's way of doing things fits my own, so the things I want to solve, other PW developers have also solved. I'm now building my first custom module and am starting to enjoy coding again (I've been in the WordPress ecosystem for a long time and am a bit fed up of it to be honest).
  14. DrewPH

    eltikon.online

    A little postscript to this thread... Though I'm loving ProcessWire, I don't love any of the core admin themes. I like restful colours that don't scream at you but I also don't like plain white with no differentiation between functional screen areas. I discovered AdminStyleRock and its customisation possibilities, and with about 30 minutes' work I now have a rather nice Nord Light admin theme as you can see. I've attached my admin.less file (I hope attaching a .less file works!) and anyone interested can follow the instructions at the top of the file. admin.less
  15. DrewPH

    eltikon.online

    Thanks very much for pointing out the error! Now fixed (I had done some refactoring but missed one instance in a selector).
  16. DrewPH

    eltikon.online

    Here's a site from someone new to ProcessWire. I've been developing with PHP and WordPress for donkeys years, but decided to try building a site with PW to see if it might be a better platform choice for the kind of sites and apps I build these days. Spoiler alert: it is. https://www.eltikon.online/ I'm not holding this site up as any kind of design example - it's a really, really basic hobby blog. What's more important to me is that I managed to build it from scratch in PW (previously it was a WordPress site) in about 20 hours, starting with zero PW experience, and my templates folder is really tidy with just a few small, well-structured PHP files. And that 20 hours includes sorting out the RSS feed, the XML sitemap, the SEO, etc etc. So my reason for posting is really to say that I found the PW architecture and methodology instantly comfortable and intuitive, and PW is going to be the first platform I consider for most future builds. It fits with my "hate visual builders, love coding" methodology, and I aim to get the ProFields Repeater Matrix module, since Advanced Custom Fields Pro's flexible content field has been at the core of all my WordPress sites for ages. Site details: I started with a clean install of PW 3.0.229 and the "site-simple-blog" site profile by tcnet, which I proceeded to completely rip apart and rebuild as part of the learning process. Non-core modules installed are SeoMaestro and ProcessPageViewStat, nothing else.
  17. Installation is causing a fatal error. Screenshot attached. Running ProcessWire latest master. Any thoughts? Any alternatives? Thanks in advance. Back on the modules page, I see this: (second screenshot)
  18. Not on my browser. If I do that, I either get nothing, or the whole content from the top of the table. Nothing in between. But as I say, text selection with mouse is just one of those UI things that shouldn't be messed with, like scrollbar behaviour.
  19. OK, great, thanks, I'll check it out. I'd still recommend tweaking your dragscroll config so that text can be selected with the mouse. Developers hate being prevented from doing that, and dragscroll doesn't seem to work on my browser anyway (Brave Mac latest). I'm not sure why it is included to be honest - can you clarify?
  20. Nope. No mods whatsoever. Screenshots are attached showing the errors. Backend and frontend. Looks like the whole $temp_records array is false. This is running on localhost. REMOTE_ADDR is ::1. PHP is 8.2.23.
  21. 1. Localhost and some IPv6 addresses. So the IP address doesn't have a countryName or countryCode - that's the error I was getting. My reason for reporting is that the module should check whether these elements exist in order to eliminate the possibility of these errors. My fix on my local installation is this: $country_name = isset($temp_records['countryName']) ? $temp_records['countryName'] : ''; $country_image = isset($temp_records['countryCode']) ? strtolower($temp_records['countryCode']) : ''; 2. After further checking, it's not javascript.php that causes this (apologies!). It's dragscroll.js. If I prevent the module loading that script, text selection works. From the dragscroll.js Github page: It goes on to explain how to preserve text selection by excluding children from the dragscroll behaviour
  22. Couple of issues with this module, which I can't post on Github because there's no issues page for the repo: 1. In its current state it throws errors with PHP 8.2 (ProcessPageViewStat.module lines 447 and 448) - it should check if these array elements exist before assigning them. 2. I'm unable to select text on its admin page unless I disable JavaScript. Looks like code in func/javascript.php is preventing this. Will a fixed release be available at some point? Thanks. I'm running version 1.2.3 which I believe is the latest.
  23. OK, thanks, I'll modify my approach accordingly.
×
×
  • Create New...