- Posts: 14
- Thank you received: 0
Menu Item: My Group Items
- Kilo Liang
- Topic Author
- Offline
- New Member
Less
More
9 years 1 week ago #62191
by Kilo Liang
Menu Item: My Group Items was created by Kilo Liang
Hi Tuan,
I am very happy to use the Membership Pro. It would be perfect if you add a menu item as My Group Items. It's just like "My Items" to list all the current user's items. With this "My Group Items", the group leader can could read/edit/delete articles published by all members of the same group, and the other member could read and edit those (as an option). And they cannot access to items that was not authored by user outside of their group, and other users cannot access to the groups items neither.
I am asking this because it would be ideal for small group cooperating. Is it doable?
cheers!
I am very happy to use the Membership Pro. It would be perfect if you add a menu item as My Group Items. It's just like "My Items" to list all the current user's items. With this "My Group Items", the group leader can could read/edit/delete articles published by all members of the same group, and the other member could read and edit those (as an option). And they cannot access to items that was not authored by user outside of their group, and other users cannot access to the groups items neither.
I am asking this because it would be ideal for small group cooperating. Is it doable?
cheers!
Please Log in or Create an account to join the conversation.
- Kilo Liang
- Topic Author
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
9 years 1 week ago #62206
by Kilo Liang
Replied by Kilo Liang on topic Menu Item: My Group Items
never mind.
I have fixed the problem by modify the groupmembers.php
function _buildQuery()
{
$where = $this->_buildContentWhere();
$orderby = $this->_buildContentOrderBy();
$query = 'SELECT a.*, a.first_name AS plan_title, b.lifetime_membership FROM #__osmembership_subscribers AS a '
.' LEFT JOIN #__osmembership_plans AS b '
.' ON a.plan_id = b.id '
.' LEFT JOIN #__users AS c '
.' ON a.user_id = c.id '
. $where
. $orderby;
return $query;
}
it's not right to have a label "plan", but it works so far. I am still looking into the code to see where to modify.
I have fixed the problem by modify the groupmembers.php
function _buildQuery()
{
$where = $this->_buildContentWhere();
$orderby = $this->_buildContentOrderBy();
$query = 'SELECT a.*, a.first_name AS plan_title, b.lifetime_membership FROM #__osmembership_subscribers AS a '
.' LEFT JOIN #__osmembership_plans AS b '
.' ON a.plan_id = b.id '
.' LEFT JOIN #__users AS c '
.' ON a.user_id = c.id '
. $where
. $orderby;
return $query;
}
it's not right to have a label "plan", but it works so far. I am still looking into the code to see where to modify.
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.