If you set up a menu option to point at the users memberships, then it will (somewhat predictably) show a list of memberships that the user is subscribed to. The user then has to click on the membership to show the files that are exposed by that membership.
This code change will only show the list of memberships if the user is subscribed to more than one. Otherwise, it just forwards the user straight on to the membership detail page, where shared folders are listed.
This works with rsmembership v1.0.0 rev 11
In /views/mymemberships/view.html.php, add this code in at line 22 in function display()
$memberships_list=$this->get('memberships');
if(count($memberships_list)==1 & $memberships_list[0]->status==0) {
// theres only one membership, and its been authorised, so just forward them
// to the shared content page.
$itemid=JRequest::getVar("Itemid","","get");
$mainframe->redirect('index.php?option=com_rsmembership&view=mymembership&cid=' .
$memberships_list[0]->id . "&Itemid=" . $itemid);
return;
}
It goes just after
$params = clone($mainframe->getParams('com_rsmembership'));
It makes for less clicking by the user