Jump to content

Peter Knight

Members
  • Posts

    1,472
  • Joined

  • Last visited

  • Days Won

    10

Everything posted by Peter Knight

  1. Thank you! So straightforward when you see how. I got up at 5AM this morning to work on this project and thought I'd get a good 12 hours at it. Instead, I had computer and internet problems all day. At least I can wake up tomorrow AM (not at 5AM though) knowing I have this fixed ?
  2. I could go that direction if I had separate sub-pages. But these quotes are repeaters within each page. Or did I misunderstand your approach?
  3. Hi guys A few pages on my site are required to output a random quote from a bunch of 5 which are associated with that page. IE About has 5 quotes Home has 5 quotes Company has 5 quotes Normally I'd just make a few child pages for each parent and give it it's own template. Using a selector to do that would be easy. However, I've decided to go down the route of adding each pages 5 quotes to a repeater field. I can output ALL the pages quotes using this... <?php foreach($page->one_liner_group as $one) { echo "{$one->one_liner}<p>"; }?> but I'm not so sure where to add (limit=1) and getRandom when using repeaters within a page. Thanks
  4. Hi guys I'm building a homepage with a full screen, responsive video background. The client wants the video file to be hosted on their own server and I wondered if instead it should be hosted on YouTube instead. I'm thinking that YouTube will have much better bandwidth detection etc and handle the playback more intelligently than simply throwing an MP4 on a server. If anyone has any experience with both scenarios, can they confirm or deny? Thanks P
  5. Hi One more question I have 2 FTP applications here successfully connecting to a destination server over FTPS SSL/TLS When I add the exact same credentials to Duplicator, I get the following So it looks like Duplicator is successfully building the package, logging in to the server and listing the directory files. It only fails to actually upload the ZIP There are no size restrictions on the server and there are I have disconnected the other FTP apps to ensure that's not the issue either. Any ideas why the upload might fail? This only happens on TLS/SSL and not under 'regular' unencrypted FTP Thanks
  6. I notice on the Module settings that the username and password are displayed in plain text. I've a few admins that I wouldn't like to be able to view these. Is masking these on the roadmap or even encrypting them? Does this also mean that they're stored in the database in plain text? Thanks
  7. Worked for me too. Thanks for the tip. Interestingly if you think it'd the database connection error, please try the above first. I couldn't connect to the database remotely (since learnt this is disabled) or via their own php test scripts. Was convinced it was database until the above worked.
  8. So the config setting ($config->noHTTPS = true; ) is ineffective if there’s a htacess setting of always use https ? That seems a bit odd as any site running Http would probably have this htaccess directive enabled for SEO reasons.
  9. Thanks, Ryan for the https config setting. Few Qs if you've got time Does this need to be manually included in a config? I just updated to 3.0.110 © 2018 and noticed it's not there (possibly is not meant to be). Even after including this, I notice the HTTPS setting in the htaccess file over-rides this. it's be great to have a config that over-rides both the HTTPS and www V non www settings too
  10. The current PW homepage has a few screenshots of the admin featuring the old UI. @ryan For what it's worth and because I had 5 minutes I remade it in the new UIKit theme. It's just a screengrab - nothing fancy. Might not even be the right size but it's been annoying me irrationally for months ?
      • 5
      • Like
  11. Anyone using Google Maps and unhappy with their recent changes might want to explore the updated ToS from maps service, Here https://venturebeat.com/2018/08/03/here-launches-new-freemium-plan-for-developers-in-response-to-google-maps-api-changes/
  12. Thanks @Zeka Worked for me on 3.0.X and saved me applying to individual templates.
  13. Cheers Soma.
  14. This doesn't seem to work. It only applies 'active' to the active child link. On a drop down menu any page/link that is active should have it's root parent marked as active too. On my example a user has no obvious indicator of what 'section' they are on just by looking at the top navigation bar.
  15. What could it mean when latest PW is not showing in the Upgrade Module? I've reinstalled it subsequent to this screenshot bit the Dev and Stable versions are sill a few versions behind the real versions. https://www.evernote.com/l/ANK7GoqdE9lFwrWhhWTMduCUzwEpN8d694c
  16. I have a 3.0.62 site running the RenoTheme. Even when ChangeLog is installed there is no link under the Setup Tab. I can confirm ChangeLog can be found in the tree under Admin > Setup
  17. I'd simply call it a new version with a different fork . Put a notice on the current version that a new version is available. Perhaps a user like me can have V1 installed and then simply install separately install V2, test and then remove V1.
  18. Makes sense. Wasn't aware of isset so I'll look forward to using ?
  19. Thanks @gebeer That's not having any effect. My images field has the following properties Max Files allowed 0 Formatted value Automatic Just to recap, I am trying to check that an images field is populated if so - create a variable called $image safely output an image based on the 1 and 2 above being tru <?php $products = $page->children(); foreach ($products as $prod){ // Check that images field is poulated if (count($prod->images)) { // Create variable from first image in field $image = $prod->images->first(); } ?> <?php echo" <div> <div class='prod-ov-wrapper'>"; // If the pages are the following (Rollers contain tall/thin images) if ($page->matches('id=1129|1145|1160|1163')) { echo " <a href='$prod->url'><img src='{$image->url}' class='prod-preview-tall'></a> "; } else { // If any other page echo " <a href='$prod->url'><img src='{$image->url}' class='prod-preview'></a> "; } echo" <div class='prod-ov-text'> <span class='preview-title'><strong>Part No:</strong> {$prod->title}</span> <br/> {$prod->prod_summary} <a href='$prod->url' class='uk-icon-button icon-linky' uk-icon='icon: chevron-right'></a> </div> </div> </div> ";} ?>
  20. Thanks you both. It's working somewhat inexplicably now with no changes at my end ? I have a feeling a database and server backup which was running was affecting this. That's the only explanation I can think of.
  21. That's not the issue ? but thanks for spotting it. The example I posted had a typo but the actual code used was correct. <a href="http://www.<?=$page->external_link?>">Visit site</a>
  22. Is I have a field called 'external_link' which accepts a url, is there an issue with the following code? <a href="http://www.<?=$page->external_link?>">Visit site</a> I've tried making the fieldtype both URL and Text and nothing seems to work and I send up with the following code when viewing source. <a href="http://www">Visit site</a> Normally I'd suspect that I named the field incorrcetly in my PHP or that the field isn't associated with the correct template etc. In this case, thats not the issue.
  23. Some crypto currency payment methods. They integrated with WooCommerce. I could probably move from WooCommerce to SnipCart and Stripe easily enough but the crypto part wasn't feasible or something I really wanted to support right now.
  24. Absolutely I get your point. I realise you’re only joking too. To be fair to the business owner he absolutely heard me out and was quite interested to hear that his 3 week old site had such potential problems. I actually approached him about the move and he really hadn’t been using WordPress long enough to experience any big problems. His attitude (and rightly so) was that he didn’t like hearing about the security issues etc but that he’d just paid to have it done in the first place. Actually in the end nothing happened because a niche WordPress plugin which was vital to his site wasn’t going to be easy or economical to re write as a native PW module. Ive moves several WP sites to PW at this stage and the clients couldn’t be happier with the improvement. This one just wasn’t possible right now. But who knows, give him a year or so and they may back.
  25. Been chatting to a business owner this month about moving his site from WordPress to Processwire. I think we were close to going ahead but a major problem for him was 3rd party proof that WP to PW was a positive move. I think he's got a very fair point. Sure, there's some info on Google but relative to my beliefs and enthusiasm for the move, there's very little supporting evidence for business owners. These videos will really help with future projects.
×
×
  • Create New...