flag control visibility

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex33
    New Member
    • Jun 2015
    • 18
    • 5.1.x

    flag control visibility

    Hello, i have a problem.
    1. My unlogged users do not see any post footer controls like quote, comment and flag. its all empty. Thanks ok.
    2. My registered users see them all. Thanks ok.
    3. My users awaiting moderation see flag button. That is a problem. i don't want them to flag while not approved by moderators. I want them to be like unregistered users.

    I did not find any settings for that. I try everything similar to unregistered usergroup still no luck. Seems flag button appears if user logged in.

    I try to add this workaround - no luck
    <vb:if condition="is_member_of($vbulletin->userinfo, 2, 6, 5, 7)">
    {vb:set controls.showInfractionCtrl, 0}
    </vb:if>

    around this code at conversation_footer
    <vb:if condition="$conversation['channeltype'] == 'infraction'">
    {vb:set controls.showInfractionCtrl, 0}
    </vb:if>

    Question:
    1. Is <vb:if condition="is_member_of...> work in VB5?
    2. Any other suggestions for a good if code?

    Thanks
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24286
    • 6.0.X

    #2
    Hello

    1 & 2 are intentional, by default guests cannot post so they will not see the quote, comment or flag options.

    For 3, make sure the permissions for flagging posts are set to "No" for the "users awaiting moderation" group. Then, even if they see the flag link, they won't be able to do anything with it.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • alex33
      New Member
      • Jun 2015
      • 18
      • 5.1.x

      #3
      Hello, what is the name for that setting? I did not find any.

      Comment

      • Mark.B
        vBulletin Support
        • Feb 2004
        • 24286
        • 6.0.X

        #4
        Under the usergroup permissions:
        Can create report
        MARK.B
        vBulletin Support
        ------------
        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

        Comment

        • alex33
          New Member
          • Jun 2015
          • 18
          • 5.1.x

          #5
          Originally posted by Mark.B
          Under the usergroup permissions:
          Can create report

          Set to No but still Awaiting moderation users see that icon(btw only that icon) and can report. Its a bug.

          I need a code thats works in VB5. Something like this

          <vb:if condition="is_member_of($vbulletin->userinfo, 2, 6, 5, 7)">
          {vb:set controls.showInfractionCtrl, 0}
          </vb:if>

          that code checks if show flag icon to specific usergroups. But i does not work in VB5 because is_member_of function no more.

          Comment

          • TLMD
            Senior Member
            • Sep 2012
            • 1766
            • 5.6.X

            #6
            Do you use any addons/customizations that may interfere with the default settings?
            Do you use secondary usergroups with different permissions (e.g. Can create report = Yes)?

            Comment

            • alex33
              New Member
              • Jun 2015
              • 18
              • 5.1.x

              #7
              Originally posted by TLMD
              Do you use any addons/customizations that may interfere with the default settings?
              Do you use secondary usergroups with different permissions (e.g. Can create report = Yes)?

              1. No
              2. No

              Please provide me with a working code to control usergroups id as in example posted above

              Comment

              • Mark.B
                vBulletin Support
                • Feb 2004
                • 24286
                • 6.0.X

                #8
                Hello

                The support team cannot fix bugs in the code....if you think you've found a bug, please report it here so the developers can take a look at it:

                vB5 Bug Report
                MARK.B
                vBulletin Support
                ------------
                My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                Comment

                Related Topics

                Collapse

                Working...