Hy i tried to add a link, "leave group" to the tab of groupjive on the users profile.
I'm using the jason's template and following components
CB 1.2
Joomla 1.0.15
groupjive
I insert some code to create the delete link in groupjive.php
[code:1] $tmplrow = '<a href="'.cbSef('index.php?option='
. 'com_groupjive&action=gj.core.members.deletemember&groupid='
. $tmplrow).'">'.GJ_LEAVE_GROUP.'</a>';[/code:1]
and at line 319
[code:1] if ($tmplrow != $_CB_framework->myId()) {
$tmplrow = ' ';
$tmplrow = ' ';
$tmplrow = ' ';
$tmplrow = $tmplrow;
}[/code:1]
and also inserted the tag {deletelink} at a certain place in the template.
The link is displayed, but only if the user is the groupowner. Other groups have no link.
But i want it that way.
- groups where the user is the owner --> no link
- other groups --> delete link
which changes to the code i have to make?
Post edited by: Christofer, at: 2009/04/27 17:28