Jump to content

Tony Carnell

  • Posts

  • Joined

  • Last visited

Profile Information

  • Gender
  • Location
    Exeter, UK

Recent Profile Visitors

1,751 profile views

Tony Carnell's Achievements

Jr. Member

Jr. Member (3/6)




Community Answers

  1. Thanks for the help Robin S. Using the browser's console I could see that the iconv package was missing from the PHP installation on the VPS, so I installed it and now it's getting past the initial import window, but when it tries to display the image it's failing to. Instead it's showing it as a blank image (see attached) and when I look in the relevant folder within site/assets/ the folder is empty. Any further ideas? I've used the console again but other than telling me it can't find the image, it's not saying anything useful. It's as if it's failing to crop and save the image successfully.
  2. Hi, We've recently moved hosting from a shared server to a VPS and for some reason now when I try to import an image the progress bar reaches 100% but the image doesn't appear and doesn't get added to the page (see attached image). The image field itself is part of the blog-post template in the ProcessBlog module, but it seems to be a fairly standard image field. It used to work fine on the shared hosting, so my guess is that there may be a missing PHP module in the VPS setup that's prohibiting the image from importing fully. Does anyone have any idea what's causing the problem and any possible cure? Thanks in advance, Tony.
  3. Thanks for the help guys, and sorry for my late reply. I like the 'separation of concerns' you mention Mike Rockett and I think I'll implement this. Thanks again. Tony.
  4. Thanks for your reply Macrura. I'm interested when you say you'd do piwik in a subdomain. You mean something like www.stats.example.com? What advantage does that provide? Tony.
  5. Hi all, I'm just looking for some advice really. We've got a current website in the root of our hosting account and have been developing a new Processwire powered one in a sub-directory. We're now getting close to setting the new site live and I'm wondering which is best; leave the new site in the sub-directory and modify the .htaccess file to point to it, or remove the existing site and move the new one across to the root. We're also looking to install Piwik in its own folder too, together with the Piwik Analytics module. Would this work if the site remains in the sub-directory, because Piwik would effectively be in a sub-directory off a sub-directory? Basically it comes down to which is the more satisfactory option, leave it where it is versus move it to the root. If it stays in the sub-directory, I'll want to change the .htaccess file to point at that location, but also hide the sub-directory so it looks as if it's running from the root, e.g. the site is running from www.example.com/cms/ but the visitor never sees the /cms/ in the urls. Thanks in advance for any advice. Tony.
  6. Thanks for the link Bernhard. I had read other online documentation, but it didn't make it clear that all you had to do was include the HTML tag <pagebreak />. I did that and voila, a page break Thanks again, Tony.
  7. Hi all, How do you go about adding a page break to your generated PDF? I've tried adding <? $pdf = $modules->get('WirePDF'); $pdf->AddPage(); ?> into the template file, but although it doesn't give an error when rendering the PDF, neither does it add a new page! All help gratefully received. Tony.
  8. Hi all, This is a brilliant module, but I have noticed something unexpected, that I hope someone can help with. I have a text string which contains a degree symbol ( ˚ ) but for some reason the produced PDF replaces that symbol with a question mark - indicating it doesn't understand it (the same string appears fine on the html page itself). I have made sure the string is UTF-8 encoded and I'm using the Times font when outputting the PDF. Does anyone have any ideas why this is happening and any possible way of fixing it? All the best, Tony.
  9. Thanks for that code snippet Kongondo. It was throwing a fatal error for me, but I added $p->setOutputFormatting(false); and it worked a dream. Here's my (fractionally) modified code: foreach ($pages->find('template=template-with-views-count-field') as $p) { $p->setOutputFormatting(false); $p->views_count = (int) $p->views_count_old; $p->save('views_count'); } Just thought I'd post feedback in case anyone else wants to use it and encounters the same fatal error
  10. We’re looking for an experienced PHP/PW developer to start immediately and help finish a current project, the freelance PW developer of which has had to fall out due to family pressures. The site allows visitors to search for dams throughout the world built to a certain design and the coding of the site has been largely inspired by the Skyscraper demo. We’ve got a simple search working, but it was during the development of the advanced search (using 20+ criteria) that the developer had to fall out. There is other functionality throughout the site which would also require the skills of a PW developer, but the advanced search would form the bulk of the work. If you’re interested we can provide you with a link to the site under development so that you can gauge for yourself how much work is left to complete. We’re based in the UK and would prefer to work with someone who is also located here, but we are flexible, it just makes payment easier! We would like to work on day or half-day payment terms, but again we are flexible. If you’re interested, please email me at tony@fluvius.co.uk and I can give you more information. Thanks for looking
  11. Thanks Kongondo for your speedy reply. If I'd glanced up the page I'd have seen that! All fixed now. All the best, Tony.
  12. Hi all, When displaying the Archives by month I want to remove the comment count, author, and page count. On the post pages I did this by passing an array of options: $options = array('post_count' => 0, 'post_comments' => 0, 'post_author' => 0); and then calling RenderPosts: $blog->renderPosts("limit=$limit", true, $options); This worked great, but if I try to pass the same set of options to RenderArchives, like so: $blog->renderArchives($blog->getArchives(), $options); nothing changes when the page renders. I get no errors, but those items I want removed are still there. I looked at the code for RenderArchives in the MarkupBlog.module and it implies it does accept an array of options (see here). Is this the case? Is there a way to stop these items from rendering on the page? I could set them to display:none in the CSS, but that's not exactly an elegant solution All the best, Tony.
  13. Is it possible to hide the author link shown in the sub-nav sidebar (under the heading See Also)? I've hidden the author in the post itself from the Settings in the Blog dashboard, but I'd like to do the same in the sidebar (since all posts will be written by the same author so it's rather redundant). Having looked at the html I see that each sub-nav link is a <li>, but they're not given a unique class or ID so it's hard to target them individually. All the best, Tony.
  14. Hi Kongondo, Thanks for the reply. No need to apologise! If I'd given it some logical thought I should have realised that 'post_large_image' was meant for the full post. Anyway it's working great now - thanks again. Tony.
  15. Hi, This is a great module, and thanks Kongondo for all your work I'm using featured images on my posts, which works fine apart from when I try to show the un-truncated post, when the image doesn't appear for some reason. This is the code I'm using in my blog-post.php file (but I've also tried changing 'true' to 'false' in the blog.php file with the same result): $options = array('post_small_image' => 1, 'post_count' => 0, 'post_comments' => 0, 'post_author' => 0); $content .= $blog->renderPosts($page, false, $options) . $blog->renderNextPrevPosts($page); As you can see I've added some options, to turn off the post count, comments and author, since I don't need these features (I'm using the module more as a news page than a fully featured blog). If I change 'false' to 'true' on line 57 the image is shown, but obviously the post body is truncated and displays the 'Show more' link, but using the 'false' option causes the image not to display. Is there something I'm failing to do? I'll admit I'm a bit of a ProcessWire newbie! Thanks in advance, Tony.
  • Create New...