First I want to excuse me for the bad englisch.
Secondly, I have tried the extra permissions mod, it works fine for the memberlist.
I also wanted to use it for the calander and the groupslist.
I did (manually) change the mysql database with phpmyadmin. And did change the several php-files and tpl-files.
So far so good, but wenn i save the last file the buttons groups and calendar just disappear. And are not comming back before I changed the overall_header.tpl by removing the sentence with: <!-- BEGIN switch_group_on -->
Here is a list with code's:
- Code: Select all
if ($view_pages_ary[''.GROUPS.'']['auth_view'])
{
$template->assign_block_vars('switch_group_on', array());
}
In page_header.php
- Code: Select all
// Added for Extra permission MOD
// Start auth check
//
$is_auth = array();
$is_auth = auth(AUTH_ALL, GROUPS, $userdata);
if( !$is_auth['auth_read'] )
{
if ( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.$phpEx?redirect=memberlist.$phpEx", true));
exit;
}
$message = ( !$is_auth['auth_view'] ) ? $lang['Not_Authorised'] : sprintf ($lang['Sorry_no_auth'],$is_auth['auth_read_type']);
message_die(GENERAL_MESSAGE, $message);
}
//
// End auth check
//
in groupcp.php
And afcourse:
- Code: Select all
<!-- BEGIN switch_group_on -->
<td align="center" valign="middle"><a title="{L_USERGROUPS}" href="{U_GROUP_CP}" class="mainmenu" onmouseover="changeImages('btn_top_groups', 'templates/Aeolus/images/lang_{LANG}/btn_groups_on.gif'); return true;" onmouseout="changeImages('btn_top_groups', 'templates/Aeolus/images/lang_{LANG}/btn_groups.gif'); return true;"><img name="btn_top_groups" src="templates/Aeolus/images/lang_{LANG}/btn_groups.gif" height="23" border="0" alt="{L_USERGROUPS}" /></a></td>
<!-- END switch_group_on -->
Is there anyone that has a idee??
Thanks MIKE


