This morning I rewrote the plugin's basic.sql file so that on installation it would load group_id information that matches the cpg15x_usergroups table.
INSERT INTO `cpg15x_final_extract_config` VALUES ('119', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
INSERT INTO `cpg15x_final_extract_config` VALUES ('118', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
INSERT INTO `cpg15x_final_extract_config` VALUES ('150', '0', '1', '1', '1', '0', '0', '0', '0', '0', '1', '1', '0');
INSERT INTO `cpg15x_final_extract_config` VALUES ('120', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
INSERT INTO `cpg15x_final_extract_config` VALUES ('121', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
INSERT INTO `cpg15x_final_extract_config` VALUES ('123', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
INSERT INTO `cpg15x_final_extract_config` VALUES ('124', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
INSERT INTO `cpg15x_final_extract_config` VALUES ('125', '0', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
The settings above should hide the login/logout link for all user groups. I logged into the site as super admin and am still presented with the logout link.
Here is the debug info:
USER DATA:
------------------
Array
(
[user_id] => 62
[user_name] => shane
[groups] => Array
(
[0] => 125
)
[0] => SELECT name, value FROM cpg15x_config [include/init.inc.php:181] (1012 ms)
[1] => SELECT * FROM cpg15x_plugins ORDER BY priority [include/plugin_api.inc.php:53] (0 ms)
[2] => SELECT name, value FROM cpg15x_bridge [include/functions.inc.php:4415] (0 ms)
[3] => SELECT MAX(group_quota) AS disk_max, MIN(group_quota) AS disk_min, MAX(can_rate_pictures) AS can_rate_pictures, MAX(can_send_ecards) AS can_send_ecards, MAX(can_post_comments) AS can_post_comments, MAX(can_upload_pictures) AS can_upload_pictures, MAX(can_create_albums) AS can_create_albums, MAX(has_admin_access) AS has_admin_access, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS priv_upl_need_approval FROM cpg15x_usergroups WHERE group_id in (125) [bridge/udb_base.inc.php:321] (0 ms)
[4] => SELECT group_name FROM cpg15x_usergroups WHERE group_id= 125 [bridge/udb_base.inc.php:325] (0 ms)
[5] => SELECT lang_id FROM cpg15x_languages WHERE enabled='YES' [include/init.inc.php:329] (0 ms)
[6] => SELECT user_favpics FROM cpg15x_favpics WHERE user_id = 62 [include/init.inc.php:387] (0 ms)
[7] => SELECT home,login,my_gallery,upload_pic,album_list,lastup,lastcom,topn,toprated,favpics,search,my_profile FROM cpg15x_final_extract_config WHERE Group_Id=125 [plugins/final_extract/include/init2.inc.php:20] (0 ms)
Any idea why this does work for group_id 150 (GUESTS) but not for any of the other groups?