How to turn off the activity stream on profile page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DJ-Lounge
    Member
    • Jan 2011
    • 45
    • 4.1.x

    [Forum] How to turn off the activity stream on profile page

    Hello,

    I would like to turn off the activity stream on the profile pages. It's about the 'My activity' tab, how am I able to do this?
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73442
    • 6.0.X

    #2
    There is no switch for it at this time.

    You should be able to remove it from view by removing this code from the MEMBERINFO template:
    Code:
                    <div id="view-activitystream" class="<vb:if condition="$selected_tab == 'activitystream' OR $selected_tab == ''">selected_view_section<vb:else />view_section</vb:if>">
                        {vb:raw blocks.activitystream}
                    </div>
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • Old Git
      Senior Member
      • Jan 2008
      • 240
      • 4.2.X

      #3
      Yeah I was looking for this also. I'm a bit surprised that this isn't a global on/off switch and that it's not possible to deny this via the individual Profile settings page. I can control who see's my contact info and everything else but I can't control this. Seems kinda half-thought out!

      Thanks for the code Wayne. Can we assume that these glitches (default landing page, turn Activity stream on/off, turn personal activity stream on/of) will be amended in the next release?

      Comment

      • DJ-Lounge
        Member
        • Jan 2011
        • 45
        • 4.1.x

        #4
        Originally posted by Wayne Luke
        There is no switch for it at this time.

        You should be able to remove it from view by removing this code from the MEMBERINFO template:
        Code:
                        <div id="view-activitystream" class="<vb:if condition="$selected_tab == 'activitystream' OR $selected_tab == ''">selected_view_section<vb:else />view_section</vb:if>">
                            {vb:raw blocks.activitystream}
                        </div>
        Wayne, thanks for the reply. Removed the code, but the 'my activity' tab is still appearing: http://prntscr.com/d1szk

        Comment

        • DJ-Lounge
          Member
          • Jan 2011
          • 45
          • 4.1.x

          #5
          Bump

          Comment

          • Wayne Luke
            vBulletin Technical Support Lead
            • Aug 2000
            • 73442
            • 6.0.X

            #6
            You'll have to find that in the same template and remove it. A quick search would have showed you the code so you could remove it.
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment

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

              #7
              Remove the following code from the template MEMBERINFO:
              Code:
              <vb:if condition="$blocks[activitystream]"><dd<vb:if condition="$selected_tab == 'activitystream' OR $selected_tab == ''"> class="userprof_module" <vb:else /> class="userprof_moduleinactive" </vb:if>><a id="activitystream-tab" href="{vb:link member, {vb:raw userinfo}, "tab=activitystream"}#activitystream" onclick="return tabViewPicker(this);">{vb:raw activity_phrase}</a></dd></vb:if>
              Then you need to set a new default tab.

              To make Visitor Messaging the default tab:
              Create a plugin at member_execute_start with the following code:
              PHP Code:
              $_REQUEST['tab'] = 'visitor_messaging'
              Or if you'd prefer the "About Me" tab to be default:
              PHP Code:
              $_REQUEST['tab'] = 'aboutme'
              Last edited by Mark.B; Sun 5 Aug '12, 2:21pm.
              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


              • ywwz
                ywwz commented
                Editing a comment
                Thank you so!
            • khalid
              Member
              • May 2001
              • 92

              #8
              Mark.B : Thanks a lot for the plugin. I was looking for something to make visitors message the default.

              Comment

              • Merjawy
                Senior Member
                • Sep 2002
                • 2613

                #9
                I think I've seen something like that on www.vbulletin.org do search there and you will find it

                - - - Updated - - -

                To be or not to be... Where the hell is the question????
                My psychiatrist told me I was crazy and I said I want a second opinion. He said okay, you're ugly too

                Live vBulletin 4.2.0 Multilingual * Alpha/Beta vB 4 - vB 5 Tier 1A
                CentOS 6.2 - Apache:2.2.15(Apache2Handler) - PHP:5.3.3 - MySQL:5.1.61
                Xampp/Win-XP - Apache v2.2.21(Apache2Handler) - PHP:5.3.8 - MySQL:5.5.16

                Comment

                • zascok
                  Senior Member
                  • Jul 2012
                  • 205
                  • 3.8.x

                  #10
                  nice!!! Thank you gents. I can't describe how much my users hate it
                  Last edited by zascok; Sun 5 Aug '12, 2:16pm.

                  Comment

                  • CricketWeb
                    Senior Member
                    • Dec 2002
                    • 318
                    • 3.6.x

                    #11
                    I'm trying to do this and following Mark. B's post, but I don't understand this part:

                    Create a plugin at member_execute_start with the following code:
                    Where do I do this?
                    Cricket Web: http://www.cricketweb.net
                    Cricket Web Forum: http://forum.cricketweb.net
                    Cricket Mail: http://www.cricketmail.net
                    Arcade God: http://www.arcadegod.com

                    Comment

                    • AliMadkour
                      Senior Member
                      • Dec 2004
                      • 1588
                      • 6.0.X

                      #12
                      You can create it from:
                      AdminCP->Plugins & Products->Add New Plugin


                      Please note that we don't provide support for 3rd-party plugins/code modifications

                      Former vBulletin Support Staff
                      Need Help?, Or P.M. Me

                      Comment

                      • Pocket Aces
                        Member
                        • Mar 2007
                        • 99
                        • 4.2.x

                        #13
                        Originally posted by Mark.B
                        Remove the following code from the template MEMBERINFO:
                        Code:
                        <vb:if condition="$blocks[activitystream]"><dd<vb:if condition="$selected_tab == 'activitystream' OR $selected_tab == ''"> class="userprof_module" <vb:else /> class="userprof_moduleinactive" </vb:if>><a id="activitystream-tab" href="{vb:link member, {vb:raw userinfo}, "tab=activitystream"}#activitystream" onclick="return tabViewPicker(this);">{vb:raw activity_phrase}</a></dd></vb:if>
                        Then you need to set a new default tab.

                        To make Visitor Messaging the default tab:
                        Create a plugin at member_execute_start with the following code:
                        PHP Code:
                        $_REQUEST['tab'] = 'visitor_messaging'
                        Or if you'd prefer the "About Me" tab to be default:
                        PHP Code:
                        $_REQUEST['tab'] = 'aboutme'
                        BEWARE: Enabling the plugin using the above codes won't show the page 2 (and above) of the Friends tab.

                        Use this code instead...
                        Code:
                        if (!$_REQUEST['tab'])
                        {
                         $_REQUEST['tab'] = 'visitor_messaging';
                        }
                        Last edited by Pocket Aces; Sat 16 Nov '13, 8:12am.
                        vBulletin 4.2.5 | PHP 7.0.31 | MariaDB 10.2.17

                        Comment

                        • bazookajoe
                          New Member
                          • Oct 2008
                          • 27
                          • 4.2.5

                          #14
                          Can someone here install this for me?

                          Comment

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

                            #15
                            Originally posted by bazookajoe
                            Can someone here install this for me?
                            Hello

                            We cannot install customisations for you, but the instructions in this topic are quite straightforward if you follow them carefully.
                            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...
                            😀
                            😂
                            🥰
                            😘
                            🤢
                            😎
                            😞
                            😡
                            👍
                            👎