Announcement

Collapse
No announcement yet.

How to turn off the activity stream on profile page

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

  • Mark.B
    replied
    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.

    Leave a comment:


  • bazookajoe
    replied
    Can someone here install this for me?

    Leave a comment:


  • Pocket Aces
    replied
    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 16 Nov '13, 7:12am.

    Leave a comment:


  • ywwz
    commented on 's reply
    Thank you so!

  • AliMadkour
    replied
    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

    Leave a comment:


  • CricketWeb
    replied
    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?

    Leave a comment:


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

    Leave a comment:


  • Merjawy
    replied
    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

    Leave a comment:


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

    Leave a comment:


  • Mark.B
    replied
    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, 1:21pm.

    Leave a comment:


  • Wayne Luke
    replied
    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.

    Leave a comment:


  • DJ-Lounge
    replied
    Bump

    Leave a comment:


  • DJ-Lounge
    replied
    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

    Leave a comment:


  • Old Git
    replied
    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?

    Leave a comment:


  • Wayne Luke
    replied
    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>

    Leave a comment:

Related Topics

Collapse

Working...
X