Peter Knight

Members
  • Content count

    1,091
  • Joined

  • Last visited

  • Days Won

    5

Peter Knight last won the day on May 16 2016

Peter Knight had the most liked content!

Community Reputation

811 Excellent

About Peter Knight

  • Rank
    Hero Member

Contact Methods

  • Website URL
    https://www.edenstudios.com

Profile Information

  • Gender
    Male
  • Location
    Dublin, Ireland.
  1. I think that's one of the biggest challenges I face and practically impossible to retrospectively remove data. As an example of the digital footprint user data can have, here's a good example of the headache involed. server backs up a copy of a site. gets uploaded to dropbox which stores multiple archived versions of backups my NAS syncs with my Dropbox account and downloads the same backup. NAS does both snapshots and incremental backups NAS also backs up backups to Amazon S3 and/or amazon glacier My own Mac runs CrashPlan or Syncplicity or Time Machine That's not even considering the backups my host is doing internally :-/ If I had a request from a clients customer to remove their data from the database it'd be a real challenge to perform this thoroughly. I'll probably look at stream lining my backup strategy but we loose a certain amount of redundancy in the process. Reading the GDPR guidelines and the part about anonymising user data I'd love to see this a priority with Processwire. Maybe Formbuilder gets some way of collecting data but that data is only visible to logged in users. Having a compromised database would reveal nothing. Maybe when creating a field called FirstNam there's a new setting which would anonymise the entries to anyone without the proper permissions.
  2. Yep same here. Not sure if it's a bug or intentional. I might file it on GitHub
  3. Thanks for the help @kixe and @kongondo I got it working with a small change. It only works when add the name of the template to the selector. <?php $mostRecentPage = $pages->get("created_users_id=$user->id, sort=-created, template=places");?> Luckily in this project, my clients only create pages based on this template.
  4. Thanks @kixe Couple of questions for you Do I need the sort in there? I'm only trying to retrieve values from the single last created page. I've tried the following which outputs nothing <?php $mostRecentlyCreatedPageByUser = $pages->get("created_users_id=$user->id,sort=-created"); ?> <!-- START: Information --> <strong>City:</strong><?=$mostRecentlyCreatedPageByUser->city ?> <br/> <strong>Miles:</strong><?=$mostRecentlyCreatedPageByUser->miles ?>
  5. On the road and typing on mobile. Hope this makes sense... I have a loggedin user (current session) I want to display to that user some values from the their most recently created page (singular) Is this the right direction to be looking? http://cheatsheet.processwire.com/users/users-methods/users-find-selector/ Thanks
  6. Hi @kongondo I have this site running on two other servers with the same version of PW, PHP. So 2 out of 3 work fine. I'll have to do a little forensic investigating.
  7. Am i right in thinking this is a PHP 7 issue and not so much a Processwire issue? General google seems to suggest so. Just moved a site to a new host and getting following on a simple call Fatal error: Uncaught ArgumentCountError: Too few arguments to function ProcessWire\Pageimage::size(), 1 passed in /home/site.not/site/assets/cache/FileCompiler/site/templates/team-detail.php on line 43 and at least 2 expected in /home/site.not/wire/core/Pageimage.php:519 Stack trace: #0 /home/site.not/site/assets/cache/FileCompiler/site/templates/team-detail.php(43): ProcessWire\Pageimage->size(150) #1 /home/site.not/wire/core/TemplateFile.php(287): require('/home/...') #2 /home/site.not/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render() #3 /home/site.not/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___render', Array) #4 /home/site.not/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #5 /home/site.not/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array) #6 /home/site.not/wire/core/Wire. in /home/home/site.not/wire/core/Pageimage.php on line 519 <?php foreach($page->images as $image){ $thumb = $image->size(150); echo "<img src='{$thumb->url}' class='team-photo-detail' alt='{$thumb->description}'" ; }?>
  8. Nice site @patricktsg Good to see another Irish user of PW here. BTW love the 404 page
  9. You don’t have something in the config file which includes the /dev/ host?
  10. Very simple. But it's another template. How do you feel about that Vs just hardcoding the logout into the HTML itself.
  11. Agree. Even for small apps I'd rather keep my clients away from the admin. BTW in my own scenario mentioned above I only have 10 staff members of my client using an App. None of them would even know how to view HTML so I'm not too worried about them seeing a logout page. So you place that in a custom logout template? I get it now.
  12. I have been around the forums on this and can't seem to find my answer. I want to create a html link that forces a user logout. I've seen $session->logout() but I'm not sure how to use it with <a href="#">Logout<a/> This seems to work (my own hack) from inspecting the admin logout link. Just not sure it's the official way <a href="/processwire/login/logout">Logout<a/>
  13. Great location and boat though.
  14. Same here on 3.0.88. Initially I thought it was a UIKit theme issue but I notice your 3.0.62 isn't running this.
  15. @bernhard Thanks for the VSCode mention on the roadmap thread. It's certainly more visual than the terminal. I'd also like to highlight Tower for Git for designers looking to approach GIT via a more visual UI.