Jump to content

benbyf

Members
  • Posts

    811
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by benbyf

  1. RT @DasungTech: 13.3 inch the World's First E Ink Monitor: https://t.co/2yO5rzx0bm via @YouTube

  2. You can request all pages with required fields, check against those field values and then carry on import if not present. Not sure how efficient it would be but should work.
  3. New site for SteynStudio using bb-starter, AIOM, Batcher, image crop, Textarea Counter, Site-wide File Manager.
  4. join in with the Dulwich trail in person and/or share your Dulwich history and experiences on the trail map website https://t.co/XJSMh2SJFD

  5. Im afraid to say, i might need a little more in the way of example as i've never needed to manipulate user uploads in PW before. Files being submitted by html5 <input type="file"> Anything more would be very useful.
  6. is there any links to examples of saving files to a new page within the _func.php file? not quite sure how to pass the file around, what i have as far: function saveUserContentLocationPage($name, $uc_email, $uc_story, $uc_lat, $uc_lng){ // check to see if content available if($name){ $t = time(); // setup page $p = new Page(); // create new page object $p->template = 'user-content-location'; // set template $p->parent = wire('pages')->get("/map-stories/"); // set the parent $p->name = $name .'-'. $t; // give it a name used in the url for the page $p->title = $name; // set page title (not neccessary but recommended) $p->addStatus(Page::statusHidden); $p->save(); // setup file save // instantiate the class and give it the name of the HTML field $u = new WireUpload('uc_file'); // tell it to only accept 1 file $u->setMaxFiles(1); $u->setDestinationPath($p->file->path); foreach($u->execute() as $filename) $p->file->add($filename); // execute() returns an array, so we'll foreach() it even though only 1 file $p->save();
  7. RT @TeamMayku: Our pals @techwillsaveus have launched an eye-poppingly cool wearable for kids. https://t.co/PWRUZS53BC https://t.co/qqy9ODm…

  8. eps.3 of the Machine Ethics Podcast with @cosgretton is live. Find it here or on iTunes https://t.co/TbW1F8cIGb #AI #healthcare #autonomy

  9. RT @PMStudioUK: Only 2 days left to get applications in for one of our 3 New Talent Residencies. Deadline: 10am Friday - Please RT https://…

  10. still looking for VR speakers for #swfuturists https://t.co/cELMXad6cO please get in contact if you would be interested in speaking

  11. RT @rachelnabors: An animation showing (literally) spiralling global temperatures: https://t.co/QybZkGS2SJ cc @ncasenmare via @pjf https://…

  12. currently working on websites, articles, a business, podcast, some games, designs, teaching classes… think i need more hours in the day

  13. RT @EHL_smith: Our team are at the @DulwichFestival goose green fair promoting our time travel opportunities with @EHorizonsLtd https://t.…

  14. You could check for duplicates on import. If you saving them as pages or in fields. (Hey Pete)
  15. Thanks and lovely working with https://t.co/rqKkTUtgh7 on https://t.co/rrNZfPZgq6 - thanks for the kind words https://t.co/JaMAzuqd8k

  16. did i miss the day when google put all their API’s in one place and started to take everyones credit card details?? it wasn’t a good day

  17. SERIOUSLY why is every domain registrar's UX so terrible and full of up-selling you can’t actually use it! like a digital rabbit warren

  18. I had the same issue just now on PW 2.7.2 - resolved after taking away a field from the erroring template. (field was dependent on a page that no longer existed)
  19. currently working on a #transmedia project - see some details here: https://t.co/Hg4YeW83BZ and join in from the 6th of May @EHorizonsLtd

  20. working #TheMultipleMyrtleMysteries https://t.co/LY5jNtVecQ with the wonder @MiloWladek - Join the interactive trail from the 6th of May

  21. RT @Palle_Hoffstein: Giant banker shitting on London may not have been exactly what they were going for... https://t.co/4WBMBWpt35

  22. hey @EHL_smith what are you doing?

×
×
  • Create New...