It would be great that when Commons Activity Streams feature is disabled (and Commons Profile feature is still enabled) View profile tab could be hidden and user/%user/about configured as default landing profile tab for user/%user page.

Currently when you disable Commons Activity Streams feature you end up with blank View profile tab which is also default profile tab.

I know this sounds like a feature request, but IMHO it is more bugish thing. ;)

JFTR, #1341172: Commons_profile menu alter belongs in Commons_status_streams issue should be fixed before this one..

P.S.
Could this be overridden in custom module with mymodule_profile_menu_alter() function maybe?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ezra-g’s picture

I agree that this is not well constructed.

The blank user profile page is because we do:


/**
 * Implementation of hook_user()
 */
function commons_profile_user($op, &$edit, &$account, $category = NULL) {    
  switch ($op) {
    case 'view':
      // Remove the core profile fields, as we'll be providing our
      // own content via Context
      $account->content = array();
      break;
  }
}

Instead, this could be a theme function that returns '' by default, or this override could be based on a variable. Or, if the output makes sense we could check for whether commons_status_streams() is enabled and only override the content array.

FrancoisL’s picture

Hello is there a way to place "activity stream" not as a home page but just another tab. I'd like to have for example About as Profile home page.

Thanks

Roger34’s picture

I am not sure why nobody answers to the question on how to change the default tab? I asked the same question at two other places and no one seems to bother to answer. I also want About as profile home page to be default. Is it that we have to sign up for acquia subscription to get an answer to this?

ezra-g’s picture

Issue tags: +Commons 2.8 radar

Tagging this for attention before the 2.8 release.

ezra-g’s picture

Status: Active » Needs review
FileSize
76.07 KB

This patch implements a fallback for the user profile page so that it appears as shown in this screenshot when Commons_status_streams are disabled.

This patch sets #access to false on user profile fields that we want to hide, rather than just unsetting them as was previously done, which makes it possible for developers to unhide and generally work with the fields if they wish to.

@FrancoisL, That sounds like a great idea for a feature request - Please open a new issue for this.

@Roger34, Any chance you can review this patch and see if it meets your needs?

Commons 2.x user profile  with Activity streams disabled

ezra-g’s picture

ezra-g’s picture

ezra-g’s picture

Status: Needs review » Fixed
Roger34’s picture

Sorry No. I performed the patch, it did not make any difference to me. I wanted 'About' as the default while viewing Profile. If you tell me how to make this happen I would appreciate.In the primary links, I removed 'Home' and have 'Profile' first, I want to make Profile as the default front page. When a user sign in, I want him/her to immediately see the 'About' page on Profile menu as default. There is a great deficiency in the customization flexibility of the tabs, or atleast I am ignorant of how this can be achieved. For example, I want a tab named 'My work' where the person can elaborate about his/her research/work activity with images. if any (which is beyond the scope of 'about' tab which is more or less a resume). In addition, I may want to rename Bookmarks to 'My Links'. These things can easily be done with Menus, but I am not sure how to alter the user-specific tabs.

An unrelated issue is the extensive use of userid across the CMS. I tried to use realname module, but it did not convert userid to realname in most places. In addition user-specific URLs also use user id, though I would prefer a combination of first name and the uniqueid (for e.g. why not use the format: example.com/users/firstname-uniqueid instead of example.com/users/userid). I think, username should not be visible to anyone.
Thank you for your attention.

jsibley’s picture

Not sure if this is the best place for this suggestion, but there have been previous requests for "my profile" to show the profile rather than the current default elsewhere, without any useful suggestions (that I have seen).

I finally went to the menu and created a new item called "edit my profile" and put it under "my stuff". It may be necessary to install the me module to create a useable path for this.

I then renamed the menu item "my profile" to "my user page", which seems more accurate.

Hope this helps someone.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

40Widget’s picture

Hi,

Did you ever figure this out? I have been wracking my brain to get it done and cannot figure it out.

ericpoirier’s picture

Hi guys,

This is exactly what I'm looking to do, but I can't find the solution to this... Any help would be apreciated.

Thanks,

Eric