-
Posts
4,046 -
Joined
-
Last visited
-
Days Won
67
Everything posted by Pete
-
My mind is now officially blown. I'm sure I might even understand it more thoroughly when I've had some sleep
-
Holy crap - cool module but also this is the first I heard of AngularJS and their demos on the project's homepage are pretty cool!
-
Module Dev- IDX for Real Estate Websites
Pete replied to GGSuper3's topic in Module/Plugin Development
From what I can gather from the video in my previous post, no data seems to be stored locally - it all comes from these central feeds on the fly which is interesting, but if it were me I'd love to see stats like who clicked through on which property and I assume there's data on which property belongs to which real estate company. The whole point seems to be that there's a central feed of data from various Estate Agents (to use the UK term ) and as an agent yourself you get paid commission somehow from listing other agent's data. I can't wrap my head around it just now but it's getting late so it might all click tomorrow, but if there's no local stored data and we're talking about pulling in data from an external source and simply formatting it against a template then this is ridiculously easy and technically you wouldn't need anything as fancy as a CMS even since your own properties would be listed on this central feed (IDX if I'm using the correct acoronym) anyway Of course the advantage of using a CMS like ProcessWire for the rest of your site is obvious, but pulling in these feeds and not storing anything locally means you don't get the benefit of the PW API to easily manipulate the data - you're back to basic PHP. That's not to say that you couldn't create something that lets you manipulate the data in as easy a way as the PW API - I'm sure I saw an example of a module that added on API functionality but can't find the link - it's just that I'm not sure how to do if off-hand. It would certainly be neat to be able to have a module parse this external data and allow you to do something like this in the property list template: <?php foreach ($properties as $property) { echo "<p>Address: $property->address</p>"; echo "<p>Price: $property->price</p>"; echo "<p>" . $property->images->first()->url . "</p>"; } It's easy enough to do this in normal PHP, but in an ideal world the module would present a lovely PW style way of accessing the data The ideal module would allow you to set config settings to the relevant feed URL (assuming all the feeds are supposed to have the same structure) and set up the templates and pages for search results, property details etc. My only worry with this sort of thing is we're in the territory of commercial modules I think - the folks behind the module in the video I linked to make a reasonable amount of money every month by selling that module and whilst it would be nice to blow open whole markets with free modules for all I'm a believer in trying to make a profit from modules like this where there's a huge market (dozens of estate agents in every town/city around the world) and I assume estate agents turn a decent enough profit if they're shifting property at a reasonable rate? -
Just tried this on 2.2.10 (dev) and no buttons appear either on local hosting or live site Then I realised it was because I had the CropImage set on that field. There could be cases where you would want to do both (CropImage to control crop aspect ratio) but I guess there's no way to then selectively remove the crop tool from PixlrEditor since it's third-party.
-
Here we go: http://processwire.c...03-pixlreditor/ I did have have a sneaky suspicion as I was typing that someone might have done this and it turns out I even replied in that thread - my memory is rubbish! Looks like you said you were going to do something there in that last post ryan.
-
Module Dev- IDX for Real Estate Websites
Pete replied to GGSuper3's topic in Module/Plugin Development
Well I've just watched the video here: http://spotonconnect.com/wordpress-idx/ I'm interested in doing something myself for the UK and the INEA would seem to be my point of contact (they're suggesting the above service). The only thing I'm not sure about Grant is where the data comes from? Surely it#s querying some central web service, but since my plans are at the pre-planning stage () I don't know how it all works - but I'm keen to find out! -
I would actually suggest a third-party image editor that could somehow be included as a module. I get the feeling it's been suggested before, but I saw this one recently from some of the Picnik devs (Picnik got snapped up by Google it seems and integrated into Google+) who decided to build their own app and thus we have http://www.picmonkey.com I've seen this in another piece of software and it's pretty neat - basically the picture is sent to the Picmonkey service and you edit it there, save it and it passes the image back to your system - ProcessWire in this case. There's an API to facilitate all of this: https://docs.google.com/document/pub?id=1OhlOYcCvJiV44c13XpDx0HJV3UArKgRya3lq_Ahr5T0 All that said, I'm not sure how you would even begin to go about it, just that a full set of tools via a module would be nice to have even if it does go third-party for the editing process.
-
What would be the most useful tutorial? A basic business site with gallery or something? I'd be tempted to get a layout from Themeforest for a few dollars and have a crack at this myself. It just gets a bit more complicated when you get to a blog as there's two ways - using the blog profile or implementing a blog into an existing PW site.
-
Ah, next problem is that the new version fails to store the name, email address or message
-
Sadly that didn't work Okay, that's freaky - I then deleted the uploaded wire folder from the dev branch, re-uploaded it and now it works. I swear I tried deleting the cache several times before. I guess the FTP upload could have been interrupted. Oh well, works now!
-
jukooz asked me a while back how to stick the sitemaps into a template as he's using the multisite module and currently I guess that this module will pull the sitemap for EVERY site on an install...? This should work on a per-site basis having it in a separate template file per site as a workaround for now, but pay attention to the comments please as there are things to change per-site - please also note that this is un-tested and largely just pulled from the module and tweaked for pasting into a template for use instead of the module: EDIT: See attachment as the forum software tries to parse a URL in the code : sitemap.txt I've also updated the module (see first post) to v1.0.3 to check if the page is viewable before including it in the sitemap - I noticed that it was incorrectly listing pages that had no template file... oops!
-
Thanks ryan Works locally, but when I try and upload the new wire directory from either the master or dev branch to my server I get an odd error: 2012-11-18 11:03:34 ? http://www.mytsite.com/?/ Compile Error Cannot redeclare class SessionLoginThrottle (line 17 of /home/mysite/public_html/wire/modules/SessionLoginThrottle.module) I'm sure it must be a hosting issue since it works locally, but any ideas what could cause that?
-
Hi chaps I noticed that if the user refreshes the page the comments get added ad infinitum. Is there a simple check that can be done to: Stop the user posting the same content twice in a row (presumably grab their previous comment for a page and check the content isn't exactly the same Build on that and add a time period that must pass before they can add a comment to the same post or another post (thinking 30 seconds for both is pretty standard, but would be nice to have the option to have them separate) Currently I have it set to require approval if they have not posted before, but let their posts through after that - very brave of me - but the message is the same both times - "thank you for your submission". Can we change the message so if it's pending approval it actually says that so they're not tempted to refresh the page as that's what I did I'm not sure whether these have been suggested before so any input is appreciated.
-
I think that that was one of the side-effects - so every time a page is saved in a certain version of this module it sends the tweet (so if you edit it). I think this was due to a change in Twitter as previously they didn't allow identical tweets, but they do now - there are some cases where it makes sense in fact but not in our case.
-
Repeating Events: Multiple Dates/Times for Datepicker?
Pete replied to renobird's topic in Wishlist & Roadmap
Every time I think about making it AJAX I forget the more complex inputfields - totally understand it when you take into account the other types. Thanks for the explanation ryan! -
Dave is right that if you increase the number of connections in your FTP program it can go a lot quicker. Some hosts limit the number of simultaneous connections but on my servers I frequently increase it to 20 connections and that allows it to go 20 times faster than with one connection obviously.
-
Repeating Events: Multiple Dates/Times for Datepicker?
Pete replied to renobird's topic in Wishlist & Roadmap
Back to repeaters a minute - I think that a little AJAX would vastly improve the "flow" here. If it were altered to show a loading icon when you add a new item and then load it via AJAX without reloading the page then I think that that would be preferable if it's possible? I think the reloading can feel a bit clunky if you are using repeaters a lot, as can setting it to automatically set up X default repeater items when you're rarely sure how many you might need. -
I'm only half following this, but could this mean that eventually adding a page isn't a two-screen process? If the page is just assigned an ID to start with and the name field is the same as the ID (or something like "page-ID" so you know someone's not actually trying to call the name as the ID on purpose) then it could actually set the name field correctly on the next screen with the rest of the fields once you enter a title. So in pseudo-code: if name == page-{ID} and title != '' then name = sanitize(title) Did that make any sense Ryan? I'm only thinking this because I have found that a few people have asked why creating a page is a two step process. Whilst this is done for reasons outlined in this thread and elsewhere, it would be nice to have an option to make it a one-step process if that's where this conversation might be headed. (Not suggesting that those people found it difficult to use a two-step process as there is currently of course - once you explain it it's pretty straightforward). Of course the biggest pitfall for this is if someone then clicks off the page without saving then they have a page with no title and a name of "page-ID".
-
I'll have a look at it at the weekend when I'm back at my PC but it should be possible and I think I have a newer version with this in already. I really need to remember to look at this as it looks like I was going to back in March!
-
I upgraded from 7 Pro to 8 Pro and have yet to encounter any issues. Only one app was incompatible, but upgrading it fixed that. I'm used to it already, but think the built in apps need some time to mature (mail app could use HTML signatures, but I guess they might want you to use Office 2013 when it's out for advanced stuff). Only major issue has been that it uses port 80, so XAMPP broke until I changed Apache to use port 81. Sure, it means you get uglier localhost URLs, but it's not a problem now I've resolved it. Having contacts from multiple email accounts, FB and Twitter in one place, plus seeing what everyone's up to all in one place with no ads is nice too (though I doubt it's unique to Windiws as I'm sure someone with a Mac will tell me ).
-
No worries - just wanted to check I wasn't going to reinvent the wheel before going any further. All I really need that's extra is to pull out the user's name and email address for now - groups is a bit beyond me. I know that using adLDAP I can get more information but I'd rather not use another class just for that. I'll have a tinker and see what I can come up with, but so far this solves a huge problem of not wanting to give users in a Windows domain environment yet another login to remember
-
I seem to remember the mobile view being better too. I think they were saying on their forums that they're going to focus more attention on the web app as it's a waste trying to develop for iOS and Android for something that's web-based.
-
I just used this to add AD login abilities to a company docs intranet site for PW and would like to suggest some changes. In this particular environment, the AD logins are in the format of "Forename Surname" <- the problem here is the space in the middle and PW replaces it with an underscore before the check against the LDAP server so it fails and doesn't authenticate properly. The following fixes it: Replace this: $name = $event->arguments[0]; $pass = $event->arguments[1]; with this: $name = wire('input')->post->login_name; $pass = wire('input')->post->login_pass; And this: $user = wire('users')->get("name=$name" with this: $user = wire('users')->get("name=".$event->arguments[0]); Any other suggestions welcome, but that should work correctly in more situations. Antti, did you do any more work with AD groups mapped to roles?
-
Multi language on the wiki software should be possible but I've never got the module for it to work and it was a pain last I checked. I'd suggest we need a PW based solution since that handles multi language well Of course that's honing to require some thought on how to set it up too, plus might need version history first as some way of moderating and rolling back changes.
-
I think eventually we will have a few very different site profiles that, combined with some good marketing videos, may do a lot of the convincing for us. For example, with the shop module I love the point "any page can be a product". Plus once there are enough totally different profiles its easier to show prospective clients that you can do anything without hacking the core at all. I know this has been mentioned elsewhere, but I think the profiles in my head would be Shop, Blog, Member-driven content and of course the default basic site. If you can show more then that's awesome of course but when trying to get across the point that it can do anything, having these varied examples to fall back on would make it so easy. Then to sell it to those heavily invested in other systems you could just change a few fields and tweak a template right in front of their eyes and show how simple it is. People are wary about having to learn anything new when they've spent a lot of time (even forgetting about the money they have probably invested years of time) so if you can get across how simple it is then I think you can win them over. So variety + simplicity + power = panther (which still sounds like it should be a bad aftershave ).