1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

TPU: Users can view their own warnings 1.0.1

Enables users to view their own warnings.

  1. W1zzard

    W1zzard Well-Known Member

    W1zzard submitted a new resource:

    Users can view their own warnings - Enables users to view their own warnings.

    Read more about this resource...
     
    DeltaHF likes this.
  2. Chris D

    Chris D XenForo Developer Staff Member

    Works fine without friendly URLs :)

    upload_2013-11-24_9-30-38.png
     
    Last edited: Nov 24, 2013
    W1zzard likes this.
  3. W1zzard

    W1zzard Well-Known Member

    Ah good :) Updating description.
     
  4. RoldanLT

    RoldanLT Well-Known Member

    This should be core feature, Thanks !
     
  5. RoldanLT

    RoldanLT Well-Known Member

    I just check the user group permissions and this addon is the same as enabling the option below, so without this addon viewing warning still works.

    By the way, this option should be check / set to allow also for this to work.

    upload_2013-11-24_20-33-45.png
     
  6. Chris D

    Chris D XenForo Developer Staff Member

    If you enabled that permission for your registered members, you would be allowing all your registered members to be able to see all of your other members warnings.

    This add-on allows people to see their OWN warnings only.
     
  7. RoldanLT

    RoldanLT Well-Known Member

    Yes I get it now, but if the permission is not set to allow, clicking on the "view" link on the right side will give the user a permission error.
     
  8. W1zzard

    W1zzard Well-Known Member

    Yes, the addon just lets them view the table (where the "View" links are located on the right) .

    Do you think it's important for users to be able to access the warning details?
     
  9. RoldanLT

    RoldanLT Well-Known Member

    No, but it's better if that link is hidden for normal members as it is not working for them.
     
  10. DeltaHF

    DeltaHF Well-Known Member

    Thanks, @W1zzard! This is an essential add-on and should be part of the XF core. I'm not sure how much you want to expand this, but I think it would be great if a link to the profile tab (i.e. "Warnings Received") appeared in the "Your Account" section on the account page, as that's probably where most members will go looking for it.

    @RoldanLT You can hide the "View" link to regular users by editing the member_warnings template and wrapping the relevant column in template conditionals, like below. This will ensure that only moderators see the link.

    HTML:
    <xen:if is="{$visitor.is_moderator}">
      <th class="warningView">&nbsp;</th>
    </xen:if>
    HTML:
    <xen:if is="{$visitor.is_moderator}">
      <td class="warningView dataOptions"><a href="{xen:link warnings, $warning}" class="OverlayTrigger secondaryContent">{xen:phrase view}</a></td>
    </xen:if>
    
     
  11. W1zzard

    W1zzard Well-Known Member

    RoldanLT and DeltaHF like this.
  12. Inkman

    Inkman Active Member

    Installed this and updated and cant see any warning tabs in the profile fields :s
     
  13. W1zzard

    W1zzard Well-Known Member

    have you received any warnings? there will be no tab if you have no warnings
     
  14. Inkman

    Inkman Active Member

    No i have no warnings, just that it says:
    for the new upgrade i thought it would show even if your warning level was "0"
     
  15. DeltaHF

    DeltaHF Well-Known Member

    Working great here, thanks for the super-fast update, W1zzard.

    @WirralTalk I think you read that wrong. "if warning count > 0" means "if the number of warnings is received is greater than 0", so a user won't see any of the warning information if they don't actually have any warnings.
     
    Inkman likes this.
  16. I get this when trying to install

    Please enter a valid callback method (TPUViewOwnWarnings_Listener::templateHook).
     
  17. W1zzard

    W1zzard Well-Known Member

    Then you didn't upload it correctly
     
  18. imthebest

    imthebest Formerly Super120

    Not working with 1.3 RC2 :(
     
  19. W1zzard

    W1zzard Well-Known Member

    Do you get an error message? has it previously worked? I'm using it on 1.3 RC1 and haven't heard any reports for users about it not working.
     
  20. imthebest

    imthebest Formerly Super120

    No error message but it's just not working. Do I need to set a specific usergroup permission or something like that so members can see the "Warnings" tab on their profile? Because at least out of the box this isn't working.
     

Share This Page