Jump to content

Pete

Administrators
  • Posts

    4,035
  • Joined

  • Last visited

  • Days Won

    66

Everything posted by Pete

  1. Should be at domain/Processwire but it's not loading as you say so looms like maybe a htaccess issue with URL rewrites. Not sure what you mean about fragments on the hard drive. Any disk fragmentation would be pretty negligible in terms of impact I would think and it's not usually something you would worry about with web hosting to my knowledge.
  2. Pete

    go hard with wp

    It's actually really easy to make a non-secure module for Processwire - just skip any sanitization or erode a few permissions accidentally for example. That's the problem - it doesn't matter how good or bad the underlying system is, any system with a plugins/module system wants you to be free to build what you like so it's down to the module author and some sort of checking process to make sure that modules that end up in the directory aren't creating vulnerabilities. The scary question is: how do we keep on top of that as plugins become more prolific over time? At the moment to my knowledge ryan looks over each one before approving them. Even then, that doesn't help you with plugins that aren't in the directory - you're on your own there!
  3. Mandrill's details can be plugged into the config on this module really easily: http://modules.processwire.com/modules/wire-mail-swift-mailer/ Have it working like a charm on several websites already EDIT: Mandrill also has the benefit over PHP mail as you say in that if an email address bounces or the user marks an email as spam it will not try to send again and therefore protects your reputation. With a little work with a webhook (plenty of docs on their site) you could automatically notify the website owner via email of any bounced addresses or unhappy customers who've marked your email as spam which I'm sure they'll appreciate!
  4. Pete

    At a crossroads

    bruto and others - is paying a company to pass you leads not an option? I've never looked into it myself, but one web company I worked at did this and obviously gave the lead generation company certain criteria so they were only passed businesses of a certain size etc. I've no idea of the costs of these sort of things, but I do know that that company only tended to work with companies that could afford the services, plus only being given leads that had been filtered in some way meant there were less time-wasters. "Time-wasters" may sound harsh, but we've all been there along with bruto - putting together a detailed proposal over hours (or days) only to have it knocked back because somewhere else can do it for a tenth the price even though it'll be crap. Anyway, I've no idea what such companies charge (usually it's per lead though) or whether there's one in your area, just that I remember working somewhere that got their customers this way. Well, there was obviously then a phone call and a meeting to spec it out and deciding whether you wanted to work with the customer, but it basically meant they could focus their efforts on customers who were serious and had more reasonable budgets with the bonus of not having to spend tonnes of time on marketing - though they may have spent tonnes of money, but it was profitable as they're still in business now.
  5. Pete

    At a crossroads

    e) they're outsourcing to a country with a lot cheaper workforce. My money is on this.
  6. Okay, that was slightly freaky but following the last PW update I had to uninstall all the modules, delete the Admin/Pages/Image Crop page and reinstall the whole module to get it working again. I'm hoping it was just a freak occurrence but would merit further testing before PW 2.5 is released.
  7. Is this working with latest PW dev? I'm getting all sorts of weird errors like Method Pageimage::getThumb does not exist or is not callable in this context This was working before I upgraded so I guess something is wrong?
  8. Not at present, but I may in future. Servint's uptime guarantee is 99.9% (although this page suggests 100% https://www.servint.net/sla.php ) so if this had only impacted you for a couple of hours earlier then technically they are within their 99.9% SLA (though I fully expect them not to point to that in such a serious incident as this - just pointing out that 99.9% still leaves you open over the course of a year without much recourse: http://royal.pingdom.com/royalfiles/pingdom_uptime_cheat_sheet.pdf ). Having just mentioned these "guarantees", ServInt have a very good article on the subject here explaining what web hosts really mean: http://blog.servint.net/2013/05/03/why-uptime-guarantees-are-ridiculous/ - it's more of an "...or (some of) your money back" deal. Not that any of that helps you right now in your unfortunate situation. I don't think such a service is actually possible. You would need to know the IP address of every server in every datacentre and ping them all, which would rely on web hosts submitting the IP address of every server they roll out (including VMs I imagine) to generate such statistics. Something I have done recently is signed up for the free service at https://uptimerobot.com/ which at least lets you keep tabs on all sorts of processes on your own server. I have it monitoring a couple of servers for uptime on websites on port 80, as well as a variety of email ports. It'll alert you the minute something is wrong (well, to within 5 minutes!) and there's a decent Android app as well: https://play.google.com/store/apps/details?id=hu.elevenoone.android.uptimerobot&hl=en_GB You could of course pay for Pingdom to check your servers more frequently (at least I think it's more frequent - has more features anyway). Would any of this have alerted you in time to mobilise an alternative in time for the client? I think that's the question and if there's the slimmest hope of the answer being "yes" then I'd get signed up to one of these services right away. I think the only way you will ever guarantee uptime though when you absolutely need it is to have two servers in different datacentres, preferable really far apart, with a load balancer or something (I'm not too network savvy so it's probably something else) that would send traffic to the working server when the other server is down.
  9. Update: Matthew, if you login on their site now they have provided an update. Looks like despite a tonne of resiliency and redundancy one sneaky switch was to blame and they seem genuinely surprised that it impacted on other systems in the way that it did. Not much comfort in terms of your downtime, but this sort of thing just doesn't usually happen at ServInt.
  10. I know we're several hours further on but my sites on Servint are up. There was a message when you login on their site warning of critical kernel updates required so I assume it was that?
  11. I've been thinking about the same thing to be honest for a while. Some way of creating fields that aren't necessarily fields in the normal sense (so save field info to JSON array, no db tables) and store the template as JSON as well would be great. Just a simple form helper that doesn't have a backend or tables and you can then do what you want with the submitted information. That might sound a but like Formbuilder but there are scenarios where Formbuilder isn't the tool I need (plenty where it is though).
  12. Oh wow, someone obviously took my post the wrong way and changed the title of this topic. Plenty of good examples over on the PHP site with explanations of the functionality so please anyone don't be surprised or offended if anyone here refers you to docs or other sites sometimes or we would repeat ourselves and duplicate content found elsewhere.
  13. Hi guys I'm hoping one of you will be able to help me. I'm converting an old Joomla site to PW and I'll need to redirect the old URL structure to the new as the old structure is all over Google. I need to change urls like this: http://www.domain.com/index.php/news/11-latest-news/40-a-news-article.html to this: http://www.domain.com/news/latest-news/a-news-article/ The bits that need to disappear are in bold: domain.com/index.php/news/11-latest-news/40-a-news-article.html Any suggestions? Something else to take into account is that if an article title has a legitimate number in it like this then it's only the first number that should be removed: domain.com/index.php/news/11-latest-news/40-5-gold-rings.html These things always hurt my head and I don't seem to get enough time to learn them - it seems like I only need to know about them once every 3-4 years anyway Forgot to mention this has to go in a .htaccess file, but you knew that anyway
  14. There was a way to hide the two menus that popped up for non-superuser folks. In sidenav.inc in the admin template module, just at the start of the function I added this: if ($p->name == 'page' && !wire('user')->hasRole('superuser') || $p->name == 'setup' && !wire('user')->hasRole('superuser')) { return ''; } For some reason, doing isSuperuser() didn't work in this case. If it works for someone else using wire('user')->isSuperuser() then it may be because of some overridden permissions in one of my modules I guess. It's a fairly easy workaround, but not particularly futureproof!
  15. There's a permission for viewing a page and a permission for editing a page. Assigning the page edit permission to a role means they see the Pages page in the admin. There are situations where I don't want them to be able to see that (custom intranets). It would be nice if it was possible to have a separate permission to decide whether or not to show that page. There is a way to code around it in the admin template and only show it for roles that I specify, but it would be nice if there was a way to do it with permissions.
  16. Hi Pravin There's a manual way: https://processwire.com/talk/topic/3987-cmscritic-development-case-study/ Or a new converter - install this: https://github.com/adrianbj/ProcessMigrator then this: https://github.com/NicoKnoll/MigratorWordpress and follow the instructions on the second link there The topic discussing the migrator is roughly here: https://processwire.com/talk/topic/4420-page-list-migrator/page-6
  17. My face when the logo appears -> My face when it disappears -> Repeat...
  18. A problem arises when uploading multiple files though - there is no order as first to finish uploading (smallest) will be first in the list and so on. Single files - yes it would be nice to have it optional but I have a feeling we've discussed this before (if anyone can find the topic though and link to ryan's reply that would be great).
  19. Pete

    Cookie Law

    The whole thing does make me scratch my head I must admit, because the ICO suggest in their 30-page document that you should, as a bare minimum, make a page listing cookies used on the site and make the link stand out more from other links - maybe at the top of the page. Scroll down to the footer to see theirs: http://ico.org.uk/
  20. Pete

    Cookie Law

    Being one of those rebellious few many that ignores the "cookie law", this amused me: As did their site here: http://nocookielaw.com/
  21. I've never really used a Mac. The few times I have (one time because someone had the only copy of Photoshop on it in a small company) I was told it was bulletproof and never goes wrong. I'd crashed it within a few days just using Photoshop. I suspect it was a slightly ageing Mac, but I'm quite skeptical about hype and still don't get why at either Windows or Mac launches the crowd cheers even for features that are bog-standard - especially when it's nothing new or innovative. I would love it if they were forced to launch in front of real critics. Not haters of either camp, but people with a genuinely open mind. What I really hate about the internet is you can find a zillion iPhone 6: What You Need To Know "news" posts filled with conjecture that seem to keep those news sites alive (and I bet we get a lot of hits just because I typed that phrase in here - I'll keep an eye on Google Analytics ). Everyone gets over-excited about... well... things that aren't a big deal lately, and all the big players are just suing each other. Something I do admire about Apple is free OS upgrades - certainly a good way to increase adoption of a new system. That said, you're paying way over the odds for the hardware purely because of looks, so it's nice to get something for free now your wallet is empty Personally, I have had several iPhones because at the time they were the best - right up to the iPhone 4 where "you're not holding it right" forced me to conclude "you're not building and/or testing it right" so my next purchase was a Windows Phone. Then I moved to Android because Windows Phone reminded me that less mature systems just don't have any of the apps I want (although that may have changed in the last 6 months). I develop/design and play games on a Windows PC. It's custom-built and boots in about 8-10 seconds on Windows 8.1. Despite all the hoo-hah about Windows 8, it is faster and more stable than 7 so I can forgive them their little quirks with the new design (I literally just use the Start screen for searching - what it was intended for as the Start menu replacement - and placing quick launch links, I don't have much use for the Metro apps). The desktop is still there, my apps still run, quicker in fact, so I'm happy with what I've got. "To each their own" and all that Something I have invested in recently is a Synology NAS box to store media on. It also serves as a web server so I can get it to grab website backups - not that I don't trust my hosting company, but you can never be too careful with backups so having something set up to grab me local copies without having to leave my PC on all the time is nice.
  22. Forgot to say hi - Hi Jordan
  23. Having had simple sites in other systems, a lot of my clients are actually finding it easy to use Processwire without an interface that holds their hand the whole way. Aside from making more modules like the blog module to really make it more like other systems (every page type with its own menu item and not navigating the page tree) I'm not sure what could make it much simpler for clients. Once you explain the tree structure to them and give them some simple training they get it. I think there's a balance to be struck between making things easy to use and dumbing things down too much. I understand where the blog module fits in though in that it's a more complex beast and there are some killer features in there, bit for the majority of small sites I've not needed anything other than normal templates to get clients up and running with news pages, galleries and event calendars - they're all simple templates to set up. I've also never needed the image manager type of module. I've not yet come across a project where I've needed to re-sent an image - I suspect when I do it will only be the odd one here and there anyway I'm not meaning to argue with everything you guys have said above, but point out that I've got by without most of it I do look forward to each new module that comes out though as unlike certain really huge platforms (WP) they tend to do different things (not a dozen photo galleries for example) and I make a note in my head of one's I think will be useful on certain sites, but for the small sites mentioned in the first post I dint tend to use many modules at all for general stuff like portfolios, galleries, news etc.
  24. Look up "Php heredoc" on Google and you will find everything you need on the subject The first result in the list at Php.net explains it pretty well.
  25. Loving these additions ryan. One question though - is it more efficient the old way (separate selectors) or the new way? Do these new options make a more efficient DB query (as in one with some joins instead of two in the case of sub selectors) or is there not much in it?
×
×
  • Create New...