Jump to content

Pete

Administrators
  • Posts

    4,054
  • Joined

  • Last visited

  • Days Won

    67

Everything posted by Pete

  1. Pete

    go hard with wp

    Going back to the idea of some sort of badge for modules in the directory, maybe instead of saying "certified" it could say "approved" instead, which gets around the issue Joss mentioned in the last paragraph of his post. I think as long as there is some clear wording accompanying this then it would be fine. I like the idea of something like this to say it has had some sort of check anyway, as well as something to distinguish "approved" modules in the admin. It would also lead people to post to the modules section more as there are some modules that only end up linked from the forums which is a shame. @pwired: they have 32,411 plugins for Wordpress - I suspect if we did then we might encounter the same problem (though I hate the idea that we might have 1,327 of those with the word "gallery" in the title like WP do - lots of duplication there!).
  2. The following titles can be reached by simply posting on the forums: Starter: 0 Newbie: 2 Jr. Member: 10 Full Member: 50 Sr. Member: 100 Hero Member: 500 These are just the defaults I think and could be renamed to something more fun perhaps?
  3. Pete

    Nodebb Forum?

    NodeBB is lightning fast (presumably because of NodeJS) and gaining popularity. I've been keeping an eye on it but I'm a bit out of my depth with things that are non-PHP or mySQL and this one used Redis as the DB and has no API (I like integrating my forums with my websites). Not heard of ElkArte but SSI isn't the same as an API and I don't see anything there that would let you grab the currently logged-in forum user (my preferred method of syncing when I've done it with IPB). You're a little restricted to what they are specifically offering with the SSI stuff. It does all depend what level of integration you want to do though - I'm quite picky
  4. I would be in favour of them choosing a password when signing up with an confirmation link in the email, assuming there was a signup form, however I appreciate that this module is limited ("focused" is probably a better word ) in its scope and that my suggestion would be better suited to a wider user account module.
  5. Using this tool: http://centralops.net/co/ There are two other companies listed further down the page: InternetX and Schlund Technologies - either of those sound familiar? It could have been locked after being transferred easily. Do you still have access to maintain the domain at the domain registrar? It's not clear from your first post.
  6. I needed all but one template on a site to render https. I had a lot of templates on the site in question so it was easiest to change them all to be https like this at the very top of head.inc: foreach ($templates as $template) { $template->https = 1; $template->save(); } Then I loaded a page on the site once, removed the code and changed the one template I DIDN'T want to be https to force http instead (of course you could add a check in the code above for that template, but it was as quick either way!). It was a rare occasion where a site had about 25 templates and I needed to first make this change on dev, then live, so this was far quicker than ticking them all apart from one to https manually. Hope it's of use to someone. The value for forcing non-https is -1 and the default (allow both) is 0 by the way.
      • 6
      • Like
  7. Theoretically there is another option from a different server thinking about it: Install PW on both servers. Change the config file on the second server to access the first server's PW database This should let you access the majority of field data at least, but you will need to think about things a bit more carefully if you need to display images etc.
  8. Or do you mean on the same server? In which case: https://processwire.com/api/include/
  9. Pete

    World Cup 2014

    The only bit of this I've watched was the second half of Germany v Brazil - I thought it was going to go to 8-0 at one point! The problem is the rest of the time I find football a bit boring (plus too many dives, fouls etc). Now Rugby on the other hand...
  10. I've used different templates on occasion where there were only one or two minor differences. It's okay to do this as long as you have your header and footer in separate files (like they are by default) so if you change those you don't have to change them in your templates (from memory in MODx the default template had everything in it, header and all).
  11. Welcome to Processwire! After reading your post I'm still confused as to what you're trying to do. If you're using Omeka as the database then why not keep PW separate and pull data from Omeka as required (or even automatically) using their API: http://omeka.readthedocs.org/en/latest/Reference/api/ Or you could maybe create an Omeka plugin that bootstraps PW and doesn't even use the PW admin. Or my favourite (though I'm biased): create a script that imports all the data from Omeka into Processwire and remove the need to use both systems if Omeka is Goldington back feature-wise. It's relatively easy to do this although I will confess to knowing next to nothing about Omeka. It's just that whenever I gear Iframes being used in a solution I automatically question why
  12. Did you know you can probably do $page->parents->count() to get the depth from the homepage? The other scenarios are a bit trickier of course. I think that you probably don't need to have a hidden fieldwork storing this unless you were having dozens of comments deep in your scenario. Even then it's reasonably cheap resource wise. I would instead make savings by caching the comment output using MarkupCache whenever a new comment is made - that way people just viewing the comments don't incur any overhead, plus you can cache whether or not a reply button exists at a certain depth for your threaded comments.
  13. 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.
  14. 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!
  15. 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!
  16. 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.
  17. Pete

    At a crossroads

    e) they're outsourcing to a country with a lot cheaper workforce. My money is on this.
  18. 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.
  19. 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?
  20. 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.
  21. 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.
  22. 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?
  23. 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).
  24. 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.
  25. 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
×
×
  • Create New...