Jump to content

Peter Knight

Members
  • Posts

    1,375
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Peter Knight

  1. 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.
  2. 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>
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. Yep. Same here ? and usually the same types of questions re. Images. Lately I’ve started to save some code snippets as Github Gists
  8. I think he means a place where new members can introduce themselves.
  9. Yep I agree. Initially I was reluctant to start using Slack and slow to adopt it. Last year I had to use it permanently as part of a contracting gig I was doing and it's a really nice messaging App. I don't see it replacing the forums at all and actually it doesn't work as a forum replacement. Slack is great for immediate conversational type comms. The forums are great for searchable and persistent content that gets archived (and indexed by Google). It's just another useful medium.
  10. @matt.bryant Welcome to PW world. All great and topical points. On the subject of Slack. I would love to see an official Processwire Slack channel. Interesting - I thought there was one but can't find it now. I think that's a great idea though. Maybe it's something @Pete might consider?
  11. Oops - I'm contradicting my earlier original post here. Page A contains a mix and page B doesn't. ?
  12. Thanks everyone. @dragan I did think about the isotope / masonry route but in my use case, the images are not mixed on any single page (right now). Lets say there's Page A which has all wide images and page B which has all tall images. They're both baed on the same template though and that's where the issue is. But I do hope UIKit 3 do introduce their dynamic grid soon as it's badly missing from v3. In the end I'm kicking around this with the help of ukyo's suggestion. On a side note, If the images field doesn't have an image in it, my code still throws an error. I thought my first image check at the start stopped that happening but seemingly not. In plain English, this is what I *think* I am doing Create a variable called products for each child page If the images field isn't empty, set image as a variable Output a html wrapper with an image at the top and some text below In no. 3 if the image is wide, apply a class prod-preview. If the image is tall, apply a class prod-preview-tall <?php $products = $page->children(); foreach ($products as $prod) { if ($prod->images) // Check that images field is poulated { $image = $prod->images->first(); //Create variable from first image in field } ?> <?php echo" <div> <div class='prod-ov-wrapper'>"; // If image is wide (width greater than height) if($image->width > $image->height) { echo " <a href='$prod->url'> <img src='{$image->url}' class='prod-preview'> </a>"; } else { // If image is tall (height greater than width) echo " <a href='$prod->url'> <img src='{$image->url}' class='prod-preview-tall'> </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> ";} ?>
  13. I have a lot of product overview pages and each of these pages features a grid of wide thumbnails like this... Although the images are not exactly the same size, I am using the CSS max image height of 150px to keep things tidy and it works well assuming all the product photos are wide format. Even though there are about 50 of these overview pages, they're all based on the same template. However, my client has one product overview page that features tall / thin images and these need to be displayed on the overview at 500px high. When my CSS max-image height is applied to these images, they are too small in a grid format. I could create a separate template for this tall/thin grid and that would solve my issue but I was wondering if there was a better way to do this and keep the single template. Would you recommend doing an if/else statement on the images like this <?php if ($page->rootParent==1128) { echo" <img src='{$image->url}' class='image-wide'>"; } else { echo" <img src='{$image->url}' class='image-tall'>"; } ?> I'm just not sure if I should be basing the if/else on a selector examining a page title or a rootParent ID or maybe even using a more modern image sizing trick. Any thoughts appreciated.
  14. Yes it’s only for year 1. But a good deal if you’re intending on a paid plan anyway. ?
  15. If you're considering a paid plan, there's 90% off for the first year here https://www.idrive.com/idrive/signup/el/macworld90 That's not my affiliate link but probably MacWorlds
  16. Started using iDrive after CrashPlan announced the end of their Consumer plans. Not a bad product at all and they often have great discounts on the Macworld newsletters. I'm a bit of a backup junkie and have been through (or am still using) Syncplicity Sugar Sync Crash Plan DropBox Google Drive Amazon Backup Drive Amazon S3 storage oDrive and probably more However realising this is a ridiculous setup I am going to consolidate soon Just discovered a really nice app called pCloud recently and it works a little different. It creates a virtual cloud drive on your machine so that any files you put in there don't take up space on your local machine. Worth a look as the Apps and website based account ar every nicely done. As much as I like iDrive and others, some of the interfaces are awful. iDrive looks like something from the 90s.
  17. Very nice. Seems like a nice mix of the Repeater Matrix (Pro Fields Module) and Page Table Extended.
  18. I'm getting the error below The mention of filesize is odd because this site is a 1 page holding page with 4 medium images. Other than that it's the usual 3.0.96 files. This is on a server which I don't have complete control over. Otherwise I'd get you better server info.
  19. Just a general question but has anyone tried integrating Processwire with HubSpot's API. If so - how did you generally find it? Anything to be aware of?
  20. Hi @nikoka If you're running A2 Hosting on a Lite, Swift or Turbo plan OR Reseller plan then external SMTP servers won't work. Here's the full support page I had just started using A2 for my hosting and was about to migrate about 10 sites from a VPS. Really glad I discovered this early when I had just moved the first site. FYI I moved to Hostinger. I've had a few setup issues but they do allow external SMTP processing.
  21. A minor gripe but one that trips me up every time. When there's naming error on a field, ALL the field values are erased and I have to setup everything again. IE name, type, label and descriptions details and sometimes notes. Would be really helpful if ProcessWire didn't zap all the values but just cleared the illegal field name.
  22. Had a response from the host themselves. Actually, their live chat is pretty helpful. The server didn't have mod rewrite enabled apparently and that was causing the issues. I still get a back end error as follows but I can live with that.
  23. I'm getting lots of errors on a Processwire site I moved. It's a new host and it's my first time trying their platform. I'm not sure if this is a hosting issue or a problem caused by the move. If I list them below I'd be interested in your thoughts. Error displayed when completing a contact form Error: Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away (in /home/u752001136/public_html/wire/core/Modules.php line 2981) #0 /home/u752001136/public_html/wire/core/Modules.php(2981): PDOStatement->execute() #1 /home/u752001136/public_html/wire/core/Modules.php(3381): ProcessWire\Modules->getConfig(Object(ProcessWire\ProcessPageSearch)) #2 /home/u752001136/public_html/wire/core/Modules.php(586): ProcessWire\Modules->setModuleConfigData(Object(ProcessWire\ProcessPageSearch)) #3 /home/u752001136/public_html/wire/core/Modules.php(1246): ProcessWire\Modules->initModule(Object(ProcessWire\ProcessPageSearch), false) #4 /home/u752001136/public_html/wire/core/Modules.php(1141): ProcessWire\Modules->getModule('ProcessPageSear...') #5 /home/u752001136/public_html/wire/modules/AdminTheme/AdminThemeReno/default.php(27): ProcessWire\Modules->get('ProcessPageSear...') #6 /home/u752001136/public_html/wire/core/admin.php(176): require('/home/u75200113...') #7 /home/u752001136/public_html/wire/modules/Admin This error message was shown because: site is in debug mode. ($config->debug = true; => /site/config.php). Error has been logged. Error displayed when using the Upgrades module and upgrading from 3.0.62 to 3.0.93 Pressing the Backup Database Now button displays Error displayed randomly in the Admin Notice: Undefined index: local in /home/u752001136/public_html/site/assets/cache/FileCompiler/site/modules/ProcessWireUpgrade/ProcessWireUpgradeCheck.module on line 266 Notice: Undefined index: title in /home/u752001136/public_html/site/assets/cache/FileCompiler/site/modules/ProcessWireUpgrade/ProcessWireUpgrade.module on line 209 Notice: Undefined index: local in /home/u752001136/public_html/site/assets/cache/FileCompiler/site/modules/ProcessWireUpgrade/ProcessWireUpgrade.module on line 211 Key questions is wether this is a setup issue or simply a shared host with too many sites and not enough resources.
  24. Solved it. I had just assumed that allowing SMTP processing by 3rd parties was a basic feature of mosts hosts. Unfortunately my new host (A2 Hosting) actually don't allow this unless you're on a high level plan. :-/
×
×
  • Create New...