Announcement

Collapse
No announcement yet.

Hide last activity for user profiles?

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hide last activity for user profiles?

    How to get change it so only admin can view the information

    Code:
                        <div class="profile-info">
                            {vb:set showLast, 1}
                            <vb:if condition="$userInfo['userid'] != $user['userid'] AND !empty($userInfo['invisible'])">
                                {vb:data seehiddenPermission, user, hasPermissions, 'genericpermissions', 'canseehidden'}
                                <vb:if condition="!$seehiddenPermission">
                                    {vb:set showLast, 0}
                                </vb:if>
                            </vb:if>
                            <vb:if condition="$showLast">
                                <div class="profile-info-item">{vb:phrase last_activity}: {vb:datetime {vb:raw userInfo.lastactivity}}</div>
                            </vb:if>
                            <div class="profile-info-item">{vb:phrase joined}: {vb:date {vb:raw userInfo.joindate}}</div>
                            <vb:if condition="!empty($userInfo['customFields']['default']['field2_title'])"><div class="profile-info-item">{vb:phrase location}: {vb:raw userInfo.customFields.default.field2_title.val}</div></vb:if>
                        </div>
                    </vb:if>
                </div>
    HostXNow - UK Web Hosting

    #2
    So you want to change the default functionality where individual users can set who can see their Activities tab and its content?
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      Just so that non-Admins can view that section is all.
      HostXNow - UK Web Hosting

      Comment


        #4
        Individual users can change the visibility of their Activities tab in their User Settings. So that setting needs to be suppresed.
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        Comment


          #5
          I mean just hide the highlighted section like in pic. I did this before and it's probably already mentioned in this forum somewhere but I can't find it it.



          Click image for larger version

Name:	User Profile for webgeek247   vBulletin Mods That Rock .png
Views:	194
Size:	49.4 KB
ID:	14190
          HostXNow - UK Web Hosting

          Comment


          • glennrocksvb
            glennrocksvb commented
            Editing a comment
            Oh, we were talking of 2 different things. I thought you were referring to the Activities tab.

          #6
          Actually I found it https://vbmods.rocks/forum/vbulletin...ge-from-guests
          HostXNow - UK Web Hosting

          Comment


            #7
            Originally posted by webgeek247 View Post
            If you only want Administrators usergroup to see the info, then use this CSS:
            Code:
            #vb-page-body:not([data-usergroupid="[COLOR=#FF0000]6[/COLOR]"]) .profile-sidebar-widget .profile-info-item:first-child {
                display: none;
            }
            Change 6 with the corresponding Administrator usergroupid for your forum.
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment

            Users Viewing This Page

            Collapse

            There is 1 user viewing this forum topic.

            • Guest Guest

            Latest Posts

            Collapse

            Working...
            X
            Searching...Please wait.
            An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

            Please push the back button and reload the previous window.'
            An unexpected error was returned: 'Your submission could not be processed because the token has expired.

            Please push the back button and reload the previous window.'
            An internal error has occurred and the module cannot be displayed.
            There are no results that meet this criteria.
            Search Result for "|||"