Jump to content

Martijn Geerts

PW-Moderators
  • Posts

    2,769
  • Joined

  • Last visited

  • Days Won

    31

Everything posted by Martijn Geerts

  1. I think this"little module" adds a way quicker workflow to ProcessWire, maybe it's a good thing to make it core module.
  2. Actually in the real scenario the image is saved to in an other "parent", that parent & children doesn't have to render at all. For the forum it is good to have a complete working version of the actual page.
  3. lol, I'll take yours up in my code as reference, btw your's is easier to understand.
  4. It took a while, but I found the sulution: foreach($u->execute() as $key => $filename) { $page->images->add($filename); $page->images->eq($key)->description = 'what you want to say about the image'; }
  5. Hello, I don't know how to set the description when uploading multiple images through the api. So far images get uploaded nicely. // instantiate the class and give it the name of the HTML field $u = new WireUpload('uploads'); // tell it to only accept 5 files $u->setMaxFiles(5); // tell it to rename rather than overwrite existing files $u->setOverwrite(false); // have it put the files in their final destination. this should be okay since // the WireUpload class will only create PW compatible filenames $u->setDestinationPath($page->images->path); // tell it what extensions to expect $u->setValidExtensions(array('jpg', 'jpeg', 'gif', 'png')); // execute() returns an array, so we'll foreach() it. foreach($u->execute() as $filename) { $page->images->add($filename); } // save the page $page->save();
  6. When I have time, will try to make a button logo. I'm quite busy right now, building my second site in PW. Not real good in PHP & struggling again with check if POSTED files exists & required fields are not empty. BTW, love the API...
  7. Just to make Ryan's code complete: $u->setValidExtensions(array('jpg', 'jpeg', 'gif', 'png')); tnx Ryan & Sylvio
  8. Work fantastic ... ctrl+shift+v --> view page ?
  9. This is real quick, wanted to sleep, but now have to try it... Great little module ! TNX
  10. File API & FileReader API not supported... but http://blueimp.github.com/jQuery-File-Upload/ does work in safari...
  11. Don't know, I think they have different javascript engines.
  12. Wee needed FastCGI for MODX, but for ProcessWire running as apache is sufficient. Correct me when I'm wrong.
  13. You can drag &drop files on the actual input field in safari, then it does work ( but you have to save the page to upload )
  14. Basically bind a shortcut to the save button in processwire
  15. Is the ProcessWire logo somewhere available in vector or high resolution so people can make a powered by ProcessWire logo.
  16. For minifying I sometimes use CodeKit It can minify css & js. It can combine files to one. Next to that if a css file is saved, the browser is refreshed without reloading the page & I can work with sass. This way you don't steal the resources from PHP .
  17. Actually I gonna be busy with a little "site" where "players" can upload their multiple photo's, and "voters" on the other hand can vote on 1 uploaded photo out of the list. How to set-up this thing is still a little bit vague to me. Maybe I need an other "folder" for storing each vote ( template with image_name, players_id ) or something. ) ps. I'll post the whole thing over here: Configure Postfix for Gmail SMTP Edit file /etc/postfix/main.cf in this example it's done with nano in the terminal sudo nano /etc/postfix/main.cf and add in the following below the commented out relayhosts: relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_use_tls = yes Generate sasl_password if not already exists sudo nano /etc/postfix/sasl_passwd and enter in the following (replace username & password with your's ) [smtp.gmail.com]:587 username@gmail.com:password Then run the following commands: sudo chmod 600 /etc/postfix/sasl_passwd sudo postmap /etc/postfix/sasl_passwd sudo launchctl stop org.postfix.master sudo launchctl start org.postfix.master And you are done…. btw: Thank you Anuj Gakhar (www.anujgakhar.com)
  18. Don't know why but the php mail function doesn't seem to work on OSX Lion ( on my computer ). Configure Postfix for Gmail SMTP did solve it. Maybe this will be handy for someone who has the same problem.
  19. Think you make a mistake with the 1.1 update, it should be way higher Really enjoy the isotope transitions, think they are GPU processed to. To select the cols is a big plus. Think I gonna love the narrowness of one column select! Screen pixels are expensive Hope to start next week with the first project in PW.
  20. I use "ios simulator" what is in xcode ( you can switch between iPad iPhone etc. ), next to that, for breakpoints with media queries I sometimes use Remy Sharp's responsivepx.com. I think not the device, but the content should dictate when a breakpoint is needed.
  21. Where to stop is a good question, maybee to stick with what is delivered with the core & what is preinstalled, filtered like how the is "advanced" is filtered. Never the less, what is already shown in the cheatsheet is impressive.
  22. The cheatsheet was one of the things what really grabbed my attention. And get me really interested in Processwire. These weeks I promoted Processwire on my job & the next website to build will be with PW. Big thanks for putting the sheet together! BTW is there a reason why "$user->language" is not on the list ? ( or do I say something weird )
×
×
  • Create New...