Jump to content

apeisa

Moderators
  • Posts

    4,632
  • Joined

  • Last visited

  • Days Won

    55

Everything posted by apeisa

  1. apeisa

    FYI :-)

    Link not working, it has ... At least in mobile theme.
  2. Thanks Ryan. Yeah, reset is the fieldname, was pretty confusing since I was using different field name on each example. Also removed the permanent (it got there from copying the core FieldtypeCheckbox module)
  3. This fieldtype wouldn't even need a db-table, since value is always 0 (well, it is 1 at the runtime but that will never get saved). So there probably is some code that can be removed (this was build from Checkbox fieldtype).
  4. This module tries to help in very common admin task: emailing user a new password. I implemented this as a fieldtype, not sure if that is best way to go? I did it that way to allow simple API usage and offering easy customization (like in what position to put the reset checkbox etc). Simple Five Steps installation™: Copy the file FieldtypeSendUserCredentials.module to /site/modules/ directory Install the module from Modules section Create new field, call it "send_password" or whatever you like to call it. Important: choose SendUserCredentials as a fieldtype Edit user template (if you can't find it, Filters => Show system templates) Add new field there Usage from admin: Edit user and check the new field. Save. Usage from API: $u = $users->get("apeisa"); $u->of(false); $u->send_password = 1; // send_password = whatever you have named your new field $u->save(); TODO: Offer better security by requiring password change right after login EDIT: Removed the permanent Added few comments and better usage from API instructions FieldtypeSendUserCredentials.module
  5. Based on the insane development speed of ProcessWire 2, I assume "version 2" is just Ryan teasing us and releasing the ProcessWire 1 in small pieces for wider audience "Oh, they want form builder? I have build it nine years ago..."
  6. I have been using IE10 preview release for Windows 7 today and used it during site development (includes little content work). Good news: drag & drop uploads do work in IE10. Bad news: it seems to work very well on all around PW... that means no superfun IE bug hunting ahead...
  7. apeisa

    20.000 massages

  8. apeisa

    20.000 massages

    Great news! What is your favorite massage Willy?
  9. apeisa

    Houghton Academy

    Wow, this is great. I have looked with mobile only, but that looks and feels great. Only issue is with calendar: title and controls are too wide and it breaks the layout a little. This with HTC one X (android).
  10. I don't see any other way than wait for all the download and then re-arrange them..? One possibility might be trying to start uploads in alphabetical order, but then the b-file might be much smaller in filesize than a-file and it would load first anyways... So no easy solutions comes into my mind.
  11. In Finland ProcessWire is second last on page 2 with "open source cms". Maybe even the fact that the server is on US might affect? "Custom fields cms" => 1. result "php cms" => last on 2. page Soma is from Middle-earth.
  12. Uploading 20 images in single field: 2secs Creating 20 pages and adding one image per page: 5minutes
  13. <?php if ($child->images) { // We have images } // You can also check the count if ($child->images->count() > 1) { // We have more than one image }
  14. http://modules.processwire.com/modules/process-export-profile/
  15. No idea. I have a feeling that there might be some files missing or corrupted. It's strange enough that there were some rows missing from single table...? I really recommend trying the profile exporter here.
  16. Fix for that is coming at some point: http://processwire.com/about/roadmap/
  17. Sounds strange. Does demo install work on your server and does it throw any warnings? Have you tried the profile export? What version of PHP and what version of MySQL is running? Is the summary_on_home also on fields table?
  18. And if images allows more than one image, the working code would be: (show only first image) echo "<img src='{$child->images->first()->size(232, 176)->url}' alt='' />"; (show all images) foreach($child->images as $image) { echo "<img src='{$image->size(232, 176)->url}' alt='' />"; }
  19. <form> <?php $choice = $pages->find('template=clinics'); foreach($choice as $ch) { echo "<label>$ch->title</label>"; echo "<select>"; echo "<option></option>"; foreach ($ch->med as $med) { // $med will have your single repeater, so something like this: echo "<option>$med->medic</option>"; // or $med->title or whatever fields your repeater has } echo "</select>"; } ?> </form>
  20. Interesting idea. Since orders are just pages it might work... but orders need some children (products that are being bought) it might be a lot trickier than that. I think you cannot achieve that without some custom coding.
  21. Ok, it might be that repeater has it's own RepeaterPageArray. Not time to see source if there is slice available, but you can always loop through the links and put them into two different arrays.
  22. http://processwire.c...pi/arrays/page/ array_slice no good. Try $p->links->slice() Actual array_slice isn't working because PageArray is not actually a php array, it's an object.
  23. I think this angular is actually super cool...
  24. Image/file fields aren't extendable by default, but you can create new extended image field. And repeater is of course one possibility... but if you don't need description field for anything else, then I think it is just fine to use it for the url.
×
×
  • Create New...