PDA

View Full Version : How to remove "All" activity stream from user profile tab?


Mobo
08-08-2012, 09:05 AM
Does anyone know how I'd go about removing the All activity tab on a user's profile tab? I can't understand why under a user's activity page, the default display would be to display the entire forums activity and not only that user's activity.

If there is not a way to remove it, how about changing the default display to the user's activity sub tab, similar to what this little mod (https://vborg.vbsupport.ru/showthread.php?p=2141187#post2141187) does?

ProFifaLeagues
08-08-2012, 09:18 AM
https://vborg.vbsupport.ru/showthread.php?t=283613&highlight=activity
https://vborg.vbsupport.ru/showthread.php?t=283762&highlight=activity


Not sure they may be helpful for now

Or maybe this info will help but I have not tried it
https://vborg.vbsupport.ru/showthread.php?t=283761

Mobo
08-08-2012, 09:47 AM
Thanks ProFifaLeagues, but those are not quite what I'm looking for. I'm actually beginning to think that there is something odd with my site as it does not act like the vB.com site does on the page in question.

Mobo
08-09-2012, 05:50 PM
Okay, apparently, the All tab under a user's profile shows all of the activity by the user or his friends.

So, I guess I either want to remove the all tab still or just change the default displayed tab to the user's actual activity tab.

Here is a screen shot of the tab I'm talking about:

Syxguns
08-09-2012, 11:13 PM
I just removed the code for the activity tab, so that there is not a tab at all for activity. I also removed the Activity from the tab menu. I tried commenting out the script, but that didn't work for some reason. Then I just removed all the script and the Activity Stream in the User Profile was gone! They should have set the option for that feature to be turned on or off. I have DBTech Forum Live Feed, so I didn't and don't want the Activity Stream.

You have to remove all code from memberinfo_block_activity if you do not want the Activity Stream.

Mobo
08-11-2012, 08:17 AM
Thanks Syxguns, I'll did into that template and see what I can come up with.

alfanexus
12-15-2012, 12:54 PM
Did you ever find a solution to remove the all tab?

iraqiboy90
01-10-2014, 09:21 AM
After careful reading on the php code at member.php, I found something...
I know this is a year old thread, but, here is another solution than to remove the "All" tab:

Add new plugin

Product: vBulletin
Hook Location: member_execute_start
Title: anything...
Execution Order:
Plugin PHP Code: $_REQUEST['type'] = 'user';

This will make the user subtab on the activity stream to be the default to be shown.

ozzy47
01-10-2014, 09:54 AM
After careful reading on the php code at member.php, I found something...
I know this is a year old thread, but, here is another solution than to remove the "All" tab:

Add new plugin

Product: vBulletin
Hook Location: member_execute_start
Title: anything...
Execution Order:
Plugin PHP Code: $_REQUEST['type'] = 'user';

This will make the user subtab on the activity stream to be the default to be shown.

You could just use this mod to set a default profile tab, https://vborg.vbsupport.ru/showthread.php?t=302655