Skip to content

Commit

Permalink
Ticket #4365 - Connections page.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLV committed Jun 30, 2023
1 parent d8e58b4 commit dc596f7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
14 changes: 7 additions & 7 deletions install/sql/system.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5819,15 +5819,15 @@ INSERT INTO `sys_pages_blocks` (`object`, `cell_id`, `module`, `title_system`, `
('sys_sub_wiki_pages_list', 1, 'system', '', '_sys_page_block_title_wiki_pages_list', 0, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:10:"pages_list";s:6:"params";a:0:{}s:5:"class";s:16:"TemplServiceWiki";}', 0, 1, 1, 1),
('sys_sub_wiki_page_contents', 1, 'system', '', '_sys_page_block_title_wiki_page_contents', 0, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:13:"page_contents";s:6:"params";a:0:{}s:5:"class";s:16:"TemplServiceWiki";}', 0, 1, 1, 1),

('sys_con_friends', 1, 'system', '', '_sys_page_block_title_con_friends', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:14:"browse_friends";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
('sys_con_friend_requests', 1, 'system', '', '_sys_page_block_title_con_friend_requests', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:22:"browse_friend_requests";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
('sys_con_friend_requested', 1, 'system', '', '_sys_page_block_title_con_friend_requested', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:23:"browse_friend_requested";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
('sys_con_friends', 1, 'system', '', '_sys_page_block_title_con_friends', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:14:"browse_friends";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
('sys_con_friend_requests', 1, 'system', '', '_sys_page_block_title_con_friend_requests', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:22:"browse_friend_requests";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
('sys_con_friend_requested', 1, 'system', '', '_sys_page_block_title_con_friend_requested', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:23:"browse_friend_requested";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),

('sys_con_following', 1, 'system', '', '_sys_page_block_title_con_following', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"browse_subscriptions";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
('sys_con_followers', 1, 'system', '', '_sys_page_block_title_con_followers', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"browse_subscribed_me";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
('sys_con_following', 1, 'system', '', '_sys_page_block_title_con_following', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"browse_subscriptions";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
('sys_con_followers', 1, 'system', '', '_sys_page_block_title_con_followers', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:20:"browse_subscribed_me";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),

('sys_recom_friends', 1, 'system', '', '_sys_page_block_title_recom_friends', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:30:"browse_recommendations_friends";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
('sys_recom_subscriptions', 1, 'system', '', '_sys_page_block_title_recom_subscriptions', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:36:"browse_recommendations_subscriptions";s:6:"params";a:1:{i:0;s:12:"{profile_id}";}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
('sys_recom_friends', 1, 'system', '', '_sys_page_block_title_recom_friends', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:30:"browse_recommendations_friends";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),
('sys_recom_subscriptions', 1, 'system', '', '_sys_page_block_title_recom_subscriptions', 11, 0, 0, 2147483647, 'service', 'a:4:{s:6:"module";s:6:"system";s:6:"method";s:36:"browse_recommendations_subscriptions";s:6:"params";a:2:{i:0;s:12:"{profile_id}";i:1;a:1:{s:13:"empty_message";b:1;}}s:5:"class";s:20:"TemplServiceProfiles";}', 0, 1, 1, 1),


-- studio dashboard blocks
Expand Down
4 changes: 2 additions & 2 deletions template/scripts/BxBaseRecommendation.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public function getCodeAPI($iProfileId = 0, $iStart = 0, $iPerPage = 0)
'request_url' => '',
'data' => $aData,
'params' => [
'per_page' => $iStart,
'start' => $iPerPage,
'start' => $iStart,
'per_page' => $iPerPage,
],
];
}
Expand Down
12 changes: 10 additions & 2 deletions template/scripts/BxBaseServiceProfiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,11 @@ public function serviceBrowseRecommendationsFriends ($iProfileId = 0, $aParams =
return [bx_api_get_block('browse', $aData)];
}

return $oRecommendation->getCode($iProfileId, $aParams['start'], $aParams['per_page']);
$sCode = $oRecommendation->getCode($iProfileId, $aParams['start'], $aParams['per_page']);
if(!$sCode && $aParams['empty_message'])
$sCode = MsgBox(_t('_Empty'));

return $sCode;
}

public function serviceBrowseRecommendationsSubscriptions ($iProfileId = 0, $aParams = [])
Expand Down Expand Up @@ -741,7 +745,11 @@ public function serviceBrowseRecommendationsSubscriptions ($iProfileId = 0, $aPa
return [bx_api_get_block('browse', $aData)];
}

return $oRecommendation->getCode($iProfileId, $aParams['start'], $aParams['per_page']);
$sCode = $oRecommendation->getCode($iProfileId, $aParams['start'], $aParams['per_page']);
if(!$sCode && $aParams['empty_message'])
$sCode = MsgBox(_t('_Empty'));

return $sCode;
}

public function serviceAccountProfileSwitcher ($iAccountId = false, $iActiveProfileId = null, $sUrlProfileAction = '', $bShowAll = 0, $sButtonTitle = '', $sProfileTemplate = '')
Expand Down

0 comments on commit dc596f7

Please sign in to comment.