How to add Tabs and "more" links in advanced profile ?
| Project: | Advanced Profile Kit |
| Version: | 5.x-1.0-alpha5 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
(Posting this issue for 5x : though OG has a RC now many necessary modules for social web are not ready and probably going to take a longish time )
How to add Tabs and "more" links in advanced profile ?
For example a "Detailed Profile" ( or whatever may be the name) tab that opens a page
that lists all the fileds of 'User Profile' - all things in the same page along with guestbook comments make things unusually long.
Is there a rule of thumb to add 'more' in custom content for example in this code
$uid = arg(1);
$profileuser = user_load((array('uid' => $uid)));
$groups = $profileuser->og_groups;
if($groups){
foreach($groups as $group){
echo "<li>";
print l($group[title], 'node/'.$group[nid]);
echo "</li>";
}
}
else {
echo "<li>$profileuser->name has joined no groups</li>";
}
</sub>
how to add a 'more' link which is so essential in situations where an user has subscription to plenty of groups ?

#1
I know (for once). I'm fairly new but what you're talking about is modifying the menu_local_task for user pages. This may not be what you're looking for but it works.
You do have to make a module to hold this function. I'm starting to be convinced that a custom module, however small is always necessary for all but the most simple of sites. Anyway, in your module, define a hook_menu() function and add the tab.
Reference: http://drupal.org/node/122262