Recent content by sandnes

  1. sandnes

    XF 2.2 Help me fix a mess with user groups (primary and additional)

    I got it all working now by a series of batch updates, and then fixing the code by changing the array check to <xf:if is="({$user.isMemberOf(12) })"> <xf:avatar user="$user" size="l" defaultname="{$fallbackName}" itemprop="image" /> So thank you to everyone who...
  2. sandnes

    XF 2.2 Help me fix a mess with user groups (primary and additional)

    I always presumed it didn't work because the user group is one value, while the secondary group ids can be many values.
  3. sandnes

    XF 2.2 Help me fix a mess with user groups (primary and additional)

    No, I'm not checking the visitor's group, I'm checking the group of the member whose post is being written to the screen. This is part of message_macros template. It works with the elseif clause (which checks user group) but not with the first clause.
  4. sandnes

    XF 2.2 Help me fix a mess with user groups (primary and additional)

    I could never get this to work - it seems to ignore the secondary_group_ids part, and only finds the user_group_id: <div class="message-avatar-wrapper"> <xf:if is="in_array({$user.secondary_group_ids}, [3,4,5,12,17,19,20,31,32,33,36])"> <xf:avatar...
  5. sandnes

    XF 2.2 Help me fix a mess with user groups (primary and additional)

    That already works (see my A1). I need their PRIMARY user group to change automatically as well (and revert too). (All answers have helped me so far, thank you all)
  6. sandnes

    XF 2.2 Help me fix a mess with user groups (primary and additional)

    Ooops ok I see that I can probably do my B1/B2 using batch user updates. Thank you for that. But A2, is there a way to do that?
  7. sandnes

    XF 2.2 Help me fix a mess with user groups (primary and additional)

    Another problem is that I don't know how to do a lot of things... :) so can you offer up some pointers on how to do that?
  8. sandnes

    XF 2.2 Help me fix a mess with user groups (primary and additional)

    I need to solve a problem and am hoping for some help here... A1. My forum has a 1-year-duration user upgrade for people who donate, and triggering the upgrade adds them to a special 'additional user group' as you would expect, and it removes them from the additional user group upon expiration...
  9. sandnes

    XF 2.1 Push notifications can't be enabled

    Over a year later and I still haven't figured this out. Any new thoughts out there on this?
  10. sandnes

    XF 2.1 Push notifications can't be enabled

    Yes, this one certainly looks relevant: Notification.permission === denied
  11. sandnes

    XF 2.1 Push notifications can't be enabled

    I was aware of that, but it's still definitely worth bringing up, so thank you.
  12. sandnes

    XF 2.1 Push notifications can't be enabled

    On my forum, the server seems configured correctly and I was able to check the "Enable push notifications" box in User alerts and notifications in the admincp. But apparently none of my users are able to enable push for their accounts, including me. Yes, I've verified that group permissions are...
  13. sandnes

    XF 2.1 Remove secondary usergroup

    @Edman I have a very similar situation. I tried your SQL query above but it fails, I think because I'm using MariaDB not MySQL (errors are like this: "Warning: #1292 Truncated incorrect DOUBLE value: '14,35'"). (As an aside, I have alternately used this to find ONE secondary group ('12') listed...
  14. sandnes

    XF 2.1 Conditional to display larger avatar for certain user groups

    This appears to have worked for me (but if anyone has comments, please comment!): <xf:if is="in_array({$user.user_group_id}, [3,5,12,17,19,20,31,32,33])"> <xf:avatar user="$user" size="l" defaultname="{$fallbackName}" itemprop="image" /> <xf:else />...
  15. sandnes

    XF 2.1 Conditional to display larger avatar for certain user groups

    I'm trying to get this code to work, I'd like my postbit to show a larger avatar if the poster is a member of one of a list of possible user groups. This is my code now, inserted into message_macros (where the avatar size line is located)... it doesn't break anything but it also doesn't work. I...
Back
Top Bottom