Announcement

Collapse
No announcement yet.

How to turn off the activity stream on profile page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [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?

  • #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 customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #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


      • #4
        Originally posted by Wayne Luke View Post
        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


        • #5
          Bump

          Comment


          • #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 customization and demonstration site.
            vBulletin 5 Documentation - Updated every Friday. Report issues here.
            vBulletin 5 API - Full / Mobile
            I am not currently available for vB Messenger Chats.

            Comment


            • #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 5th Aug '12, 1:21pm.
              MARK.B | vBULLETIN SUPPORT

              TalkNewsUK - My vBulletin 5.5.4 Demo
              AdminAmmo - My Cloud Demo

              Comment


              • ywwz
                ywwz commented
                Editing a comment
                Thank you so!

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

              Comment


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

                - - - Updated - - -

                http://www.vbulletin.org/forum/showt...72#post2333472
                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


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

                  Comment


                  • #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


                    • #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


                      • #13
                        Originally posted by Mark.B View Post
                        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 16th Nov '13, 7:12am.
                        vBulletin 4.2.5 | PHP 7.0.31 | MariaDB 10.2.17

                        Comment


                        • #14
                          Can someone here install this for me?

                          Comment


                          • #15
                            Originally posted by bazookajoe View Post
                            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

                            TalkNewsUK - My vBulletin 5.5.4 Demo
                            AdminAmmo - My Cloud Demo

                            Comment

                            Related Topics

                            Collapse

                            Working...
                            X