-
Posts
4,032 -
Joined
-
Last visited
-
Days Won
66
Everything posted by Pete
-
Fixed that - thanks for the code
-
I don't think there's any need in changing the homepage to "core" and putting a "home" page underneath it. The way it's setup by default is that all content is a child of the homepage - the homepage being the start of the website. Why not simply create a "Profile" page under home and put these pages under the Profile page: Calendar | Messages | Projects | etc ? If the user is logged in you then show the Profile page else show a Login page. Or are you trying to have customised home pages for each user?
-
I've changed the PHP version on that page, but I feel it should also mention PDO and maybe some other things - I'll PM ryan in a bit to make sure he sees this. If all else fails though, the installer tells you which PHP version you need - hence the message. Granted the website should be kept up to date, but if the installer requests something then that's the required version. Squeeze seems to be something to do with Debian perhaps: https://packages.debian.org/squeeze/ ? Not sure what it is and never seen it before to be honest.
-
Hehe, it's a case of no jobs coming along for a while and then three coming along at once. Not that I'm complaining!
-
Yeah, in my version you don't need it to be in a function unless you are using this code on many different templates? If it's just in one template then the function isn't needed.
-
It doesn't particularly need to be in a function, also I'm not sure why you're using wire() since in a template you can just use $page directly - anyway, you can get rid of the } else { if you start it a bit like this instead: $out = ''; // Starting with this means you don't need } else { as it's defined and empty to begin with if ($page->slider->count() > 0) { // There's no overhead in just doing this count directly instead of assigning it to another variable // ... more of your code here foreach ($page->slider as $albumimage) { // Again, you can just user $page->slider directly here // ... the rest of your code here
-
If I had any spare capacity I'd be interested in working with you further Nik, however I'm booked solid for several months at least.
-
But he needs to find the page with that JSON string I think, which is much more difficult given single and double quotes. The only way I can think of to do this is have another JSON field called something like "sanitizedmyjson" and on page save, strip out all quotes and store that copy in that field, then do the sanitized selector based on that field. Sanitizer probably strips out other stuff too, but you get the idea.
-
GoCardless is for Direct Debits, and you don't get the money as quick as other solutions (minimum 7 days I think for the first payment whilst the DD is being set up) but it is good for certain things, especially as credit/debit cards expire but DD's are based on your bank account details - and how often do people change bank? Less often than their cards expire Stripe is really good - better fees than PayPal and better interface. You can pretty much implement their Checkout example and you're up and running in no time (relatively speaking): https://stripe.com/docs/checkout
-
Oops, at the same time I've been changing display: none to display: block in global.css Is this going to cause an issue ryan? I'll leave it to you since two people editing CSS at the same time usually ends in disaster and overwritten styles!
-
I spotted the buttons were missing and assumed ryan removed them for some reason. @kngondo and houseofdeadleg - this appears to happen in Chrome and not FF. Weird. I assume it's been doing it all the time.
-
In fact, here are a few posts on large-scale websites: http://processwire.com/talk/topic/4349-thousands-of-pages-one-site-with-multiple-pages-or-one-install-with-multiple-sites/?p=42909 http://processwire.com/talk/topic/1527-largest-project-performance-multi-server/
-
If you look at the database you'll see that each field is it's own database table. This is usually the first thing to freak some people out a bit when using ProcessWire (I was confused when I started!), but when you understand the power of pages (and that a couple of joins behind the scenes can often be more efficient than pulling in a massive table whether you wanted the data from every field or not) it will start to make sense. ProcessWire has been tested with at least tens of thousands of pages (and I think well over 100,000 as well) and performance doesn't seem to be a huge issue. As with any programming, as long as your selectors (PW's version of DB queries) are sensible then you should be fine. There are also a number of caching options such as MarkupCache, template caching and the ProCache module that can drastically speed up your site in a variety of ways - where appropriate. The beauty of pages is that fields can be re-used. The Body field can apply to many templates, but it's still just one table in the database. Same with any other field. You also get the ability to use Page fieldtype which let you reference other pages cleverly and which you wouldn't easily be able to do otherwise. The bottom line I guess is, there wouldn't be this number of people active in the community if it didn't work well. If it didn't work for the range of sites we've built with it, we wouldn't be using it. Yes, there is a lot to get your head around, and I found that there was a lot of baggage I'd brought from other CMS's that I had to un-learn, but once it all clicked I never looked back. Building a website in a fraction of the time I used to be able to? Yes please!
-
How to connect two different PW installations together?
Pete replied to titanium's topic in General Support
Hi there This may be what you are after: http://modules.processwire.com/modules/service-pages/ -
I'm pretty sure that wouldn't be an issue - that's why it's configurable EDIT: Other than probably having to log back into the admin after you change it.
-
I'm not entirely sure what you are trying to achieve with this? If you can explain what it is you want it to do more clearly that would help us to help you more. If you just require multi-language support though, have you seen this page: http://processwire.com/api/multi-language-support/ ? That can be used to translate any text field.
-
If you managed to solve it, could you perhaps post your solution to be marked as the answer?
-
I love the idea of this. I'm getting to grips with sending most important email through Mandrill for web applications now as you can see some nice stats and handle bounces well with their API, so if there was a sensible way of overriding the default email functionality with a class like is being talked about above that would be great. Glancing up this thread, it looks like we would have MailerSwiftMailer, MailerPostmark and MailerMandrill in a short space of time.
-
But again, is it a simple skill to learn? Not at all. The client was paying for your experience, though I now see why you were annoyed as they didn't seem to know what they paid for I know someone once who was paying £100 a month for web hosting that they didn't know they had and they'd been letting it come out of their bank account for years alongside the much cheaper hosting they were using. Little should surprise me at this stage really.
-
That's an example of not charging enough then I think, but it can be a difficult balancing act.
-
The links on this page may be of use: http://stackoverflow.com/questions/7508800/is-there-any-good-ical-vcal-parser-in-phplibrary but there's nothing built into ProcessWire that I know of that would give you a headstart. At the end of the day it's less about how it would work in ProcessWire and more about learning what the requirements are to get one built in PHP without ProcessWire, then applying that knowledge by building the necessary fields and templates in ProcessWire to get the job done.
-
Joss - I agree with you as well. I don't have work coming out of my ears (well, at the moment I have a queue which is a novelty in the 8 years my business has been running) but then this isn't the only thing I do so I have a bit of financial backup there from another job. I despise the ads on TV for those websites. They are touting "cookie cutter" websites as unique and valuable and the problem nowadays is that the designs are pretty good and that's drawing people in. At the same time though, they're probably not the people you want to work with if you had the choice because they won't see the value in what you bring to the project. If you ever want or need to team up on something larger though then give me a shout - I'm happy to collaborate.
-
Great post you linked to there teppo - even makes my example seem too cheap I know of a company that used to charge £10k for a large-ish site in static HTML and several hundred a month for support. I can now see why they set the initial price so high (though not the support - that seemed a bit much to me since they didn't do that many updates ever and an hourly rate would make more sense there I feel) as it was a large site to rebuild, but if I had just a couple of those a year I'd spend a heck of a lot more time making sure everyone was happy and doing an amazing job instead of the reality where they were landing lots of large clients and not giving any of them their full attention and trying to push them out of the door quickly.
-
Back to the "experience" bit, I always used to feel bad charging much for websites because, whilst I'm reasonably good at it, I enjoy it and it always used to feel like a hobby. Now compare this to any tradesman. In the UK an electrician to re-wire your house might charge £60 an hour and take a week (big house huh? ). That's £2400 for an 8 hour day, 5 days a week and the results of the work last a really long time and are effective as soon as the work is complete. A web developer is also a skilled tradeperson with experience built up over the years. The website might take two weeks for a non-standard site that's not overly-complicated. Like the electrician, my work is of immediate benefit to the client and will last a really long time (unless I did a really bad job). On top of that, my work will generate new customers and income for them. If I was to take two weeks and charge the same rate would you be offended by a £4800 price tag? Should you have a reason to be offended given the examples above? Of course because there is often other work on, some tradespeople (and web developers) will have to split their time and the project takes longer, but the hours are still the same so the longer the project takes to complete doesn't necessarily equate to more hours charged, but you get the idea. Anyway, these aren't what I charge, but I feel that the example is relevant - and also that I also might have pinched bits of it from some of the 37Signals books Something else to remember is that if your prices are right then you can afford to have fewer clients giving you more work than more clients giving you sporadic work. A lot of it is about building relationships as much as finding the right prices.
-
Ah yes, I love that video - gave me more confidence definitely! I really need to bookmark it. One of the things I took away from it was "if you think you're not charging enough then you probably aren't" - simple as that.