Peter Knight
Members-
Posts
1,377 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Peter Knight
-
Just wondering if anyone has tried this Module with MailGun? I'm planning moving all my Mandarill App based settings to MailGun and at the moment mails are tested positive but no emails are recieved by me or even logged in my MailGun control panel. Thanks
-
Urgent, WILL PAY: Help debugging Image fields
Peter Knight replied to Ovi_S's topic in General Support
Yep - would have been the first to try. Sounds like the common denominator is your host so a 30 min job could save you months of anxiety. The only issue I've ever had with PW image fields was an image upload making the image appear twice in the image field. I never got to the bottom of if but one of the subsequent releases seemed to solve it. I wonder what version of PW he's running too. Ovi_S ? -
Urgent, WILL PAY: Help debugging Image fields
Peter Knight replied to Ovi_S's topic in General Support
I didn't read your previous posts but it seems this happens on a particular server? Can you post as much details as possible about that server configure and your environment? -
That's very interesting. I've been following the AMP news closely and wondered if a blog post had to be either a "normal" html page OR an AMP page. I assumed you shouldn't have both as Google doesn't like duplicate content but perhaps it's allowable for AMP pages?
-
Hey Ryan I'm experiencing problems getting LivePreview to work with Yes (normal) enabled. The circular icon (top right of the field) will rotate and change to a paperclip indicating a save and draft Making a change doesn't reflect anything in the Live Preview window. When I switch the LP settings to Yes (refresh only) both Exit and Refresh links work. I know you've flagged that: But is this a system setting or a server config? No rush BTW - just curious.
-
Damn it. Saw the news this morning too. A good alternative might be Mail Gun. One of my clients uses it for quite a serious piece of their signup and customer communications. First 10,000 emails are free too.
-
I've just launched a PW 3.0.8 site and everything is running very well. This is a live site for a new client and running on their GoDaddy server. Initially I had some cache and very minor Module issues but these were soon fixed.
-
I've fixed it somehow. I'm pretty sure this was a result of some aggressive caching in Chrome. I had the same issue in Safari but it seemed to resolve after a few hard refreshes. Even after I duplicated a different site and database into the folder, I was still being redirected to SiteA.
-
There are 2 sides to a template. There's the template within the Processwire backend. As a developer you add fields to this. The order of fields only affects editors when adding content. Usually the page title is first and you might have a field called Page Summary followed by Body and then Images etc. That same template as a php file lives in /site/templates too and is used to display data on the web (frontend). The order of the data /fields it displays is completely up to you as a developer and doesn't have to reflect the order which editors see. For example, you could have the Page a Title as the first part of the html page but then output images and then your Body Content data. They're completely independent. If you've inherited a site from someone else and wish to adjust the front end output, look for the php file and edit that. On a side note, things became a lot more interesting recently with a new Matrix type field but lets skip that for the moment. I imagine your template is calling content from other pages and that's why you're seeing this. Templates can call content from a variety of sources. If you're removing fields and dismantling your templates, please make a backup of your site first
-
Yes, you can copy/duplicate a template. What problems are you having?
-
No luck with any of those. Tomorrow I'll try again.
-
yes - just a typo. Original issue still in effect. No luck with the cache folder. I've done the following temporarily renamed /assets/cache disabled ProCache before I copied the files renamed the ProCache folders and pwpc folders (even though they shouldn't matter) looked in htaccess updated the HttpHost in site/config.php checked it was connecting to correct database (shouldn't matter) Assuming the issue is the ConfigModule, is it ok to manually remove that from the database?
-
Hi guys I made a copy of a live site (Site A) onto my local development environment to develop Site B. Anytime I try access siteB:888 I am getting redirected to the live site URL This is pretty common and normally I just update the config.php and change the HttpHosts line to the local site but in this case it's not working. I suspect it's because I have the Config Module installed which references SiteA and is clearly over-riding my site/config.php. Problem is, I can't access SiteB:8888/processwire to disable it Is there anywhere else on a file-level where I can reset the HttpHost or anywhere else in the database which I can edit? My .htaccess doesn't reference SiteA at all so thats not the issue. Thanks
-
Also too many premium-rate phone number scams doing the rounds.
-
Crowdfunded Tinypng Integration Module
Peter Knight replied to OllieMackJames's topic in Module/Plugin Development
Everyone seems busy and I'm sure image compression will pop up again soon. I think it's a great start. Even if there was only a small declared monetary commitment and a high level technical discussion, I'm sure many more are interested as either backers, developers or designers. BTW while I'd love to see image compression integration, what I'd really love to see is improved cropping options. And by that I mean more integrated first. -
Would love to see them. Multi-column listings were one of things I most missed about MODX after a brief fling with Expression Engine and it's Channels concept. I've used Craft a few times and agree, the UI is very tight.
-
Hey Tom. Does ListerPro not cater for this?
-
Crowdfunded Tinypng Integration Module
Peter Knight replied to OllieMackJames's topic in Module/Plugin Development
I'll contribute too. ($100). Would love to see an integrated image optimisation module if there's agreement on the fundamentals. I know there are some upcoming improvements with the image UI on the horizon. I wonder are there plans for this type of service as a native or paid module. I also think that both support and maintenance need consideration. Some good approaches here http://www.mobiloud.com/blog/2015/02/10-best-image-optimization-plugins-speed-wordpress-site/ -
@Kongondo I'm going to come back to this next week. Due to a deadline, I had to push an interim lo-fi version. Hoping to grab some time at the weekend or early next week instead. Appreciate all the help though
-
Thanks Martijn My understanding of the images API is that I can set just a width and the height will be proportional so I'm not sure why thats throwing an error. At least I'm happy it's not causing my issue. Can anyone actually try on their own install to output a list of comma separated image tags from a page? I've never seen it done before and there's not much evidence on the forums that it's been tried.
-
Installing ProcessWire on Synology NAS DS716+
Peter Knight replied to mhamurray's topic in Getting Started
Not yet but I've been meaning to. Love those NAS Are you running DSM 6.0.2 Beta or one of the stable V5s ? -
Thank you both. str_replace looks useful. Since neither example was working, I did some digging and here' what I found. 1. The Div which is supposed to hold the comma separated image tags is outputting just the following around every image. <div data-uk-filter=","> That seems odd to me when the images field is called images and do have tags within. 2. I turned on error logging and found perhaps a more basic error which may be stopping the tags working? Warning: Missing argument 2 for Pageimage::size(), called in /Users/peterknight/Sites/site2.co.uk/site/templates/Portfolio.php on line 56 and defined in /Users/peterknight/Sites/site2.co.uk/wire/core/Pageimage.php on line 240 I don't think this is the issue though as the Images themselves are successfully outputting both thumbs and larger modal versions. At this stage, I think I've managed to output almost every kind of data from messing around with the code examples. I'm pretty sure at one stage I even had next weeks winning Lottery numbers on the page
-
Don't forget if you're using Pete's XML site map Module that it auto adds new pages to the site map. But ... "It also adds a field called sitemap_ignore that you can add to your templates and exclude specific pages on a per-page basis. Again, this assumes that you wish to ignore that page's children as well."
-
AFAIK Set to hidden in ProcessWire only means that pages are hidden within PW when searched via the front end via a PW search. They've no relation to Googles index. I've always thought that Hidden: Excluded from lists and searches should be split into three Hidden: Hide from menus and PW selector calls (unless explicitly over-ridden) UnSearchable: Doesn't display in search results performed via the website Don't Index: Hide from Google bots and don't display in Google's index I'm probably approaching this from a method I used in another CMS
-
Hmm. Not sure what I'm doing really. I'm reluctant to use code that I don't understand but want to wrap this up. Granted, my code doesn't work so I can't use it anyway :-/ Any pointers on where I'm going wrong? Part 1 (works): Output a list of image tags with no duplicates <?php $out = "<ul class='portfolioFilter'>"; $duplicates = array(); foreach($page->images as $image){ // rather than count words, let's just explode each string into an array (even if only one word) $tagsArray = explode(' ', $image->tags); foreach ($tagsArray as $t) { if(in_array($t, $duplicates)) continue;// skip duplicate tags $out .= "<li class='' data-uk-filter='{$t}'>" . "<a href='#'>{$t}</a>" . "</li>"; $duplicates[] = $t; } } $out .= "</ul>"; echo $out; ?> <ul class="portfolioFilter"> <li class="" data-uk-filter="Sitting-Room"><a href="#">Sitting-Room</a></li> <li class="" data-uk-filter="Kitchen"><a href="#">Kitchen</a></li> <li class="" data-uk-filter="Home-Office"><a href="#">Home-Office</a></li> <li class="" data-uk-filter="Gym"><a href="#">Gym</a></li> etc... </ul> Part 2 (no working): Wrap each image in a DIV referencing the image tags in a "data-uk-filter". Unlike the LIs above, each image can have many tags separated by commas <?php foreach($page->images as $image){ $tagsArray = explode(' ', $image->tags); foreach ($tagsArray as $t2) $large = $image->width(800); $thumb = $image->size(380); echo " <div data-uk-filter=\"$t2\" > <a class=\"fancybox-portfolio port-item\" href=\"$image->url\" rel=\"gallery1\"> <img src=\"$thumb->url\" alt=\"$thumb->description\" class=\"portfolio-thumb\"> </a> </div> ";} ?> It works in the sense that it's outputting everything correctly but I'm only getting a single tag per image. Most images have more than 1 tag. The output is <div data-uk-filter="Sitting-Room"> <a class="fancybox-portfolio port-item" href="/site/assets/files/1082/006---dc3420.jpg" rel="gallery1"> <img src="/site/assets/files/1082/006---dc3420.380x0.jpg" alt="Sitting room by Ensoul Interior Architecture" class="portfolio-thumb"> </a> </div> but it should start <div data-uk-filter="Image-Tag1, Image Tag 2">