Jump to content

Pete

Administrators
  • Posts

    4,054
  • Joined

  • Last visited

  • Days Won

    67

Everything posted by Pete

  1. You can do this though I think: $pages->find('template=something,sort=-id')->sort('-title'); That selector is nonsense of course, but I'm sure you can do this to sort by two things.
  2. Turns out it did it whether it was a capital or lowercase, so I just changed it to this instead: // this is what it usually is on other forums 8) // this is another variation I've removed in order to play it safe No previous posts with the code in should be affected, but I updated yours to check it works I think part of the problem is that when moving from SMF to IPB it's carried some of this across so there was a mix of two sets of smileys, sometimes doing the same things. You can run a poll if you like but I've done it already
  3. I can easily change that smiley so it only does that with a capital B or something.
  4. Love it. Love the cleverness of the headline too - I was immediately wondering why the full stops were there, but it works well as a sentence and separate statements too. Good stuff!
  5. What's wrong with the Fancybox 2 license? I've not been paying any attention to licenses again and using it for everything Edit: just saw the fact that it requires payment for commercial work (I've only got it on personal projects or unlaunched projects at present). Not a bad price though, but I can understand searching for a free alternative since there are hundreds out there.
  6. This is awesome. I always thought of it as testing two options with massively different layouts, but it makes sense that just increasing a button size or making a slight tweak on one design will allow you to refine an already good design over time. I'm definitely interested in testing this out, and of course you're right that it's made really simple with ProcessWire - clone a page, change its template to a slightly altered one (or just some page content even) and you're away! Of course, the more visitors your site gets the better the test results will be - it would be difficult for a brand new site that only gets a handful of visitors a week, so I think it's more for sites that are already established.
  7. Does GA do the work of loading one of the variations when the original page is requested then? If so then that's pretty cool!
  8. Pete

    Query API

    It's short and simple would be my thought. I'm not sure what the long-hand version would be but I suspect it would be a full-on database query, complete with some sub-queries in some cases, so I think the legibility and speed of coding gain outweighs the headache of the long version and the minute saving in query time. Everything's easier when you don't even need to know what the DB structure is
  9. Harder to hit two flies I think
  10. Sure you're not doing my trick of mixing up dec and live sites in your browser's tabs?
  11. Two birds with one stone is the English equivalent, but only cos we're mean to birds I'd like it to be one message too as some pages of mine have a LOT of fields. It might even be sensible to have it as a collapsible div so it just says "X fields updated" and have it reveal the info by clicking on a "more details" link. Just a thought - that way you retain the useful list but could style it in a better way than a comma-separated list on one line - I'm thinking a bullet list.
  12. I think I'm with you there ryan - I use jQuery a fair amount but I never feel like I know it inside out and don't often use the same sort of functions as I would in PW so I'd never really get confused. I often look up jQuery functionality as I need it as it's never quite as straightforward for me as PW is.
  13. PW's database is really scalable in that each field is a table. This is fine, but for comments systems and other cases where you're only going to build the structure ONCE and scale it to millions of entries it can be preferable to have it in its own table. For example, if you build it as PW pages to only have 3 fields - name, email and comment, that's 3 tables (but remember there are other tables that come into play! - the pages table and the field_title table have to be in there for each page!). Sure, it's quick enough since it's still the one query that's getting data from those tables, but it would save some overhead when you get to really large numbers of comments to have it as one table. In fact I doubt the overhead would even be very high with separate tables doing it all as PW pages, so maybe ryan can elaborate on possible reasons to keep it separate.
  14. Stop the development please, I want to get off This reminds me that I really need to start thinking about translations when I do development myself, so I'm making a mental note and following these topics with interest.
  15. Gravatar support would be cool. I think I've seen it done somewhere else that it links to Gravatar based on the email address and defaults to a pre-set list of icons otherwise so you're not looking at the same boring silhouette or "no avatar" text. Something like that would be as simple as adding a default avatars folder and picking one at random and could make it a bit fun. To see what I mean, scroll to the comments here and you'll see a bunch of stand-in cartoon avatars for those without one: http://www.rockpapershotgun.com/2012/08/28/rome-sweet-rome-crusader-kings-ii-expands/ Maybe not a necessary feature, but certainly an easy thing to code to make it as easy as dropping some images into a "default-avatars" folder to have it select one. If I had to guess, I think it might select those from the site above based on the square root of the member ID rounded to the nearest whole number or something like that, since they are the same for each person every time you load the page. Anyway, I've babbled on about that point enough. Spam protection - stopforumspam.com would be a good option if it's not in already, but there are others as well. The obvious issue is the more that you check against the longer it takes to query. Maybe when PW is a lot more mainstream it could even go down the route of a PW-run central anti-spam database like these forums have (run by IPB and spammers marked as spammers by site owners). Of course that requires manpower that's not available at present and the database would be very empty to begin with To prevent double post even without a redirect could a unique ID just not be sent with the form submission? I guess like on the forums you might want to say something in addition to what you just posted so it would be good to check if the content of the new post is the same as the old post and if not then append it to the previous post. I don't mean post, I mean comment Textformatter plugins - are we talking about support for Markdown and the new BBCode one you've done? That would be fab. I think that's all my thoughts for now. Brain tired, sleep imminent. Oh wait, it's only 1.45pm
  16. Pete

    AOTR

    Love it - I always like those well-laid-out menus like when you hover over the services tab. They can obviously be messy, but when they're done well like this it really helps navigation.
  17. Don't think you can easily and that's why he's asking Ryan.
  18. I love it when a plan comes together.
  19. Hi ryan I'm using this to send a form to an email. I've got a couple of fields that are textareas, but I'd like the email to include the newlines I enter in the textareas - currently it seems to strip them out and put them all on one line. Is there a way to have it preserve newlines after submit?
  20. I think the drop-down menu would make sense, especially if it can be added to with further modules. Maybe it would make sense if the select box uses "optgroup" tags so that each module's actions stand out separately?
  21. Pete

    Minify

    Okay, I updated this to 1.0.1 to search recursively for files under the /site/templates/js and /styles folders - this is available from the modules directory as v1.0.1. I thought I'd work on v1.0.2 which lets you specify starting folders further up the tree whilst I'm at it but have hit a snag. It works fine, but when you change the path and hit save the drop-downs don't update their path unless you save the module a second time. Anyone have any ideas why you'd need to save the module twice for the config page to be able to use an updated value?
  22. Go to edit your field and under the input tab of the field change the "Input field type" from Select to "Page list select". Tada! You can now browse the page tree On the same tab you can also set the page parent to restrict the list of selectable pages. If you have an awful lot of pages and you're the only one maintaining the site, or other people know what's on the site, you could also change the input field type to Autocomplete (can't remember if you have to install that FieldType module first or if it's in by default nowadays). EDIT: I need to type shorter replies so Soma doesn't beat me to it
  23. Can you point us in the direction of their license page, or copy and paste it here?
  24. Hehe, well they're a bit old school for me as I'm 30 Here's what's coming in the next version in terms of the editor: http://community.invisionpower.com/blog/1174/entry-7940-ipboard-34-dev-update-editor-improvements/
  25. IE10 requires Windows 8, but I'm looking forward to that as well to be honest. I just wish the way to build tiles and stuff on the Metro interface was HTML5 and jQuery and not the uber-complicated system they've developed instead.
×
×
  • Create New...