• Content count

  • Joined

  • Last visited

  • Days Won


Pete last won the day on September 10 2017

Pete had the most liked content!

Community Reputation

3,449 Excellent

1 Follower

About Pete

  • Rank
    Forum Admin
  • Birthday October 4

Profile Information

  • Gender
  • Location
    Buckley, Wales

Recent Profile Visitors

35,851 profile views
  1. I've been thinking PW could do with something like this for a long time but your implementation is way better than anything I had imagined - great work!
  2. Pete

    Hi there I'm in the UK but can help with this definitely - I've integrated the forum software we use here into ProcessWire (user logins, topic creation etc) and the rest sounds similar to a project I completed a couple of months ago actually
  3. Pete

    I was wondering how to override the style on a PW form only to find I posted the solution above 2 years ago
  4. Pete

    This is now fixed and you can login to the Directory again.
  5. I've been informed that the login functionality on the Developer Directory is currently not working since the recent forum upgrade. I'm aiming to get this sorted today so people can once again update their profiles.
  6. Pete

    Yeah, you're right, they are very different behind the scenes so this may be the best way forwards. It is only ever going to be 3-4 at most so it should be fine performance-wise. Since I'm allowing the administrator of this particular app to assign roles to users as well as override and give users certain custom permissions outside of their role I have to check permissions for some things instead of relying on roles. Thanks.
  7. Pete

    Hi folks I'm currently doing some work on a very customised system based on PW (naturally). Rather than do this to check a user has a role: if ($user->hasRole('admin') || $user->hasRole('editor') || $user->hasRole('role3') || $user->hasRole('role4')) { it's possible to do this: if ($user->matches('roles=admin|editor|role3|role4')) { Is there a similar way of doing this for permissions? I want to check in code if a user has one of several possible permissions before displaying something: if ($user->matches('permissions=perm1|perm2|perm3|perm4')) { ^^^ this doesn't work and I'd have to resort to $user->hasPermission('role') multiple times if there isn't a solution Not the end of the world of course, but this is neater/easier to read in the code.
  8. Pete

    Martijn's simple couple of lines works great too - I used it to make sure users who are currently logged in and are changing their passwords on a front-end form weren't just re-entering the same password or using it as part of their new password (sticking a 1 on the end or something ).
  9. Pete

    Also, I forgot to mention the upgrade seems to have disabled everyone's avatar if you were using Gravatar. To re-enable Gravatar avatars, click on your name at the top-right of the screen, click Profile, then click on this little icon as shown the screenshot below to re-enable it.
  10. Pete

    Hi everyone We've just upgraded the forum software to the latest version. There were a few tweaks that needed to be re-applied to the templates but I think I've got them all. If you do notice anything out of the ordinary, please let me know here. EDIT: The forums may run slower than usual for the next couple of hours as part of the process re-indexes all of the post content.
  11. Pete

    I'm having similar issues to @palacios000 - it seems that ProCache sometimes messes with this. Seems fine on desktop at the moment but can't make the cookie stick on mobile?
  12. Pete

    ecbho sounds like I'm down with the kids though I think - I'm sure it's one of those made-up words they use nowadays *shakes walking stick whilst muttering about the good old days*
  13. Pete

    If anyone else gets stuck, you can just do this and get the unencoded field value (assuming it's encoded with HTML Entity Encoder like above): ecbho $page->getUnformatted('field_name');
  14. Pete

    It would - I did think about that but it takes a whole extra minute to set up
  15. Pete

    I was also just looking for this. I'm using a checkbox where I want it checked for "make all images standard width" which is the default. Changing the text to "make all images non-standard width" would of course be the easy solution, but doesn't make sense to me - the default is they're standard-width, therefore that's the default state, so ON in my mind. Ticking a box to turn it OFF doesn't feel right even if I can wrangle the wording to make it make a little more sense. @ryan please can this be revisited as per the reasons posted since your last reply? Sometimes the wording can just make more sense to the customer using the system, which is who we're building the sites for at the end of the day