-
Posts
4,035 -
Joined
-
Last visited
-
Days Won
66
Everything posted by Pete
-
See? It's just that intuitive
-
This sounds great. How does it work with permissions though? Does it let everyone with admin access see and restore pages regardless or is it role-based?
-
Wow! Everything on that site is amazing - looks like it's a fun one to build too. Good work!
- 8 replies
-
- 1
-
-
- processwire
- showcase
-
(and 1 more)
Tagged with:
-
Before ProcessWire: After ProcessWire: Errm... wait, does that mean ProcessWire is the Precioussssssssssssss?
-
The latest Batman film was pretty awesome - there are some ridiculous bits in the plot as well as some predictable moments, but in this sort of film you let them slide (there's a man in a bat suit ). It's nicely set up for many more films, so I hope whoever follows Christopher Nolan as director for the next one does as good a job. A fairly brutal film is The Raid (the original version). Little plot, but you won't see better action sequences that look that realistically painful anywhere else. Those chaps are hard as nails. I'm quite looking forward to this in 2013, amongst others:
-
Just a heads-up - the new XCOM "remake" was pretty awesome. It sapped about 60 hours of my life since October (scary statistics in games nowadays) but I seem to be over it for now. I've been playing MechWarrior Online a bit recently but it's a bit scarce on features - you get dropped into a random server and it's all over pretty quickly. I much preferred the single player games in the series, but having said that this game does look veeeeery pretty and the essential combat mechanics are all there. The game just needs a bit more substance I think. I've been playing a little Team Fortress 2 again recently and it's my first foray into the new game mode - Mann vs Machine (sic). You and five others basically defend against waves of robots bent on destroying your base. It's mad, crazy, loony fun as TF2 usually is. I know what you're thinking and, no, I have no idea where I find the time for these either
-
There are another 3,000+ posts since that graph so I think it's still following that upward curve
-
Thanks - I've flagged that up with ryan.
-
I need to spend more time away from the PC but ProcessWire and other addictions keep me coming back Sound advice all round there Marc - a lot of it sounds like common sense, but I was surprised at how much I hadn't thought of (I thought I was pretty sensible ).
-
I think it's already on ryan's radar after a similar discussion about closest parents with selectors and I'm sure he'll also weigh in on this idea too as it seems like at the very least you wouldn't want the two to be called "closest" and do two different things! You almost want it to be $pages->closest("id=$page")->siblings(5); or something like that.
-
The forums have been re-ordered and re-categorised in what we hope is a more logical setup. The idea is that the first set of forums introduces new users to what's going on, shows off some sites that have been built in ProcessWire as well as what's on the horizon. The second set is all about support - the aim is that newcomers will be guided to the first three forums in their search for a solution to a particular problem before posting it in the General Support forum. The remaining forums in that section tend to fall under more advanced features and contain more advanced questions as a rule. The final set of forums is Off Topic. There is a new Dev Talk forum for non-ProcessWire-specific discussion which frees the Pub forum up a bit more for general chat. Hopefully that all makes sense - the topics in the Pub have been split where appropriate into the Dev Talk forum.
- 4 replies
-
- 13
-
-
This would be the tutorial apeisa was talking about: http://processwire.c...ct-walkthrough/ Problem is that although we sometimes refer to it as the "planets tutorial" the topic title doesn't mention that EDIT: It does now It's worth reading through that one to see how things work as it introduces every page type I think you will need for your own project. The template files themselves in the /site/templates/ folder also hold a lot of examples, and the overview video, whilst a little out of date, is worth watching to see how several of the main concepts work.
-
I do the exact same as this quite a lot - obviously if you're tweaking things on a live site a lot and there are lots of visitors it's not ideal as if someone loads the page when you're just uploading a template change and you're doing this quite a lot they'll possibly get an error. I'm doing it all the time on a site at the mo though as it's not open yet - it's in maintenance mode anyway using my module (cheap plug ).
-
It should be a matter of a few hours once you've had a look at the tutorials by the sounds of it. The good thing about ProcessWire is that once you get things set up each template will be super easy for editors to add pages to.
-
Thanks - always learning something new with ProcessWire!
-
I've not used much non-open source software and haven't used EE, but even those revised prices look silly to me - but hey, I'm used to free or cheap software What's the turnaround time on a support ticket from EE, or is there actually an option to call someone on the phone directly within that price (and if there is has anyone called it if so to see if someone is there)? I'd say that ProcessWire's free support is worth more than a lot of paid support options with other software packages. With support tickets from various web hosts for example I'm used to 15-30 minute response times, forum software is more like 24 hours (but it's cheap, so you're not paying for premium support), but you'll usually get a response here on the forums with ProcessWire within an hour, maybe 2, and quite often with chunks of useful code supplied which I would rate at more useful than the extortionate price of $3588 for "guaranteed first response in 4 business hours" which sounds like it could just be an acknowledgement of your initial request if I put my skeptical hat on for a minute - but again I don't know about EE or the company behind it. I know many business customers would like a paid support option for ProcessWire but I think that's something for ryan to weigh in on. For some random form of not-really-comparison, with a hundreds-of-thousands-of-pounds server solution from HP, the guaranteed 4 hour response time costs around £15k. That's actually nearly equivalent to the $23998 for the 4 hour guaranteed response time from Ellislab. Their product does not cost hundreds of thousands of pounds and is not as complicated as a reasonably high level server solution so there is something wrong with that figure to my mind. (P.S. I'm not affiliated with ProcessWire myself - I just look after the forums and make module occasionally )
-
And here's some additional code in case anyone might need to do something similar: It basically runs in a module if the user is logged into the forums already and they're now viewing the site and are marked as either banned or a spammer in the forum software, plus they have a user account in PW (that's all the boring code I didn't include below). $count = 0; $count += wire('pages')->find("authors=" . $u . ", include=all")->count(); $count += wire('pages')->find("dm_owner=" . $u . ", include=all")->count(); $count += wire('pages')->find("created_users_id|modified_users_id=$u")->count(); if ($count == 0) { $this->session->logout(); wire('pages')->delete($u); // Delete as we cannot trash a user } It simply counts 2 fields with Page fieldtype to see if thecurrent user is linked to any content via those fields, as well as checking to see if they've ever created or modified a page. If the count is zero, the user can be deleted, otherwise we must leave it in place to prevent things from breaking. It would be interesting to see if there's a way to find all fields that could link to a user - basically any Page fields I think as users are just pages like everything else - and iterate through them instead of the manual way I've done it for the fields above. That would certainly future-proof the code a bit and I'm sure it's possible, but I don't have the mental capacity to tackle that right now
-
I've been dealing with how to programatically delete a user account. Oddly, ProcessWire throws an error when you try and put them in the trash - whether you do this through the admin interface or via the API you can't trash users it seems. Deleting them via the API works fine doing something like this in my module: wire('pages')->delete($u); So is there any reason why you can't easily delete a user? I'm guessing it's because there will be a chance that anyone with a user account in ProcessWire would normally have written at least one page, so in this case I guess deleting a user will break ProcessWire somehow...? In my case it's more forum software integration so I want to have it delete user accounts that are spammers or banned (there's a simple way to check this in the forum software) and delete their corresponding user account in ProcessWire as long as they're not linked to any content - uploaded a file or written an article in this case. I guess I should check to see if they've ever created or modified a page as this could break the site too. I think I may have answered my own question, but if someone could confirm it that would be great
-
Oddly enough I had a similar issue yesterday upgrading from quite an old version to the latest in the dev branch - my error message was "cannot redeclare SessionHandler, sessionhandler is already defined" or something like that - can#t remember what it was exactly. Emptied the cache a few times and no joy, re-uploaded the wire folder and no luck either. Deleted the existing wire folder and uploading it again worked though. Weird!
-
Happy New Year. I'm going back to bed in a bit... the website won't stop spinning!
-
The module diogo linked to does just that with these few lines: $this->config->scripts->add($this->config->urls->ProcessCropImage . "ProcessCropImage2.js"); $this->config->styles->add($this->config->urls->ProcessCropImage . "ProcessCropImage2.css"); $this->config->scripts->add($this->config->urls->ProcessCropImage . "Jcrop/js/jquery.Jcrop.min.js"); $this->config->styles->add($this->config->urls->ProcessCropImage . "Jcrop/css/jquery.Jcrop.css"); The $this->config->scripts/styles->add basicall ensures that the following file is added to the admin template. As you can see, in the above example, you can get the URL to the module folder itself really easily by using the module name -no need to put stuff directly into the admin template if you're creating a module
-
Oh my word The poor thing!
-
Without actually installing it, what does this profile actually have by default?
-
Cheers for the info - wasn't aware of the cache time clause, but I was thinking of having it update details (prices, discounts, availability etc) at least every 24 hours so that should be fine. I've not got a pro merchant account but that's useful to know - historically Amazon has been one of those sites I'd love to interact with but they've not made it easy unless you're a rocket scientist until now
-
I've dabbled with fetching data from Amazon over the years, but they make it so hard that the few times I've achieved some integration it's been a matter of months before it broke. Part of the problem is that nobody was keeping any of the PHP classes (3rd party, not Amazon) up to date so that put me off. This chap however seems to be doing a marvellous job: https://github.com/Exeu/Amazon-ECS-PHP-Library - demo here: http://amazonecs.pixel-web.org/ I'm actually quite excited about the possibility of looking up products, saving the details locally in ProcessWire (not that you need to, but some sort of local catalogue is always nice and you can have it update prices etc. once or twice a day) and making some money on otherwise not-for-profit sites I've had running around in my head for years now. Interesting stuff!