Menu Location Selection

2 replies [Last post]
caseyayotte
Offline
Joined: 02/04/2010
Status: 
Answered

Hi, I use MS with Content Profile and have all links to the User Profiles redirect to the Content Profiles.

I suggest the ability to choose where the links created by MS (i.e "pay pal history" "Current Subscription" " Cancel Account")

show up. -Navigation - Primary Links - Secondary Links -

 

Or is their a easy way to create a menu link to these pages i'm unaware of?

 

Thanks.  

Leighton Whiting
Offline
Joined: 06/02/2009
Content Profile is really a

Content Profile is really a hard module to work with. Most modules, including mine, provide output on the User Account page by using the Drupal hook_user function (this is the Drupal-preferred way of doing this). The author of Content Profile has stated that these cannot be changed over to Content Profile (http://drupal.org/node/236467).

One thing you can do though, that some of my other clients do, is call the theme functions directly to get the html to output on the Content Profile page. You could do this in your .tpl file, or in Panels, etc.

The function to call is ms_membership_show_user_memberships($uid)

Sincerely,
Leighton Whiting

Leighton Whiting
Offline
Joined: 06/02/2009
This is the code we ended up

This is the code we ended up using to show the Memberships on the Content Profile. It was placed in a node-[content_profile_type].tpl.php file in the theme directory, after copying the node.tpl.php code as a base.

  1.  
  2.         if (function_exists('ms_membership_show_user_memberships')) {
  3.           global $user;
  4.           if ($node->uid == $user->uid) {
  5.             if ($memberships_html = ms_membership_show_user_memberships($user->uid)){
  6.               print 'Memberships: '. $memberships_html;
  7.             }
  8.           }
  9.         }
  10.      

Sincerely,
Leighton Whiting

Twitter Feed