kphp Posted October 6, 2019 Report Share Posted October 6, 2019 (edited) 1.В system/modules/search.php после: $sp = intval($_GET['sp']); добавить: $gid = intval($_GET['gid']); 2.В system/modules/search.php заменить от: if($type == 1) { до } elseif($type == 2 AND $config['video_mod'] == 'yes' AND $config['video_mod_search'] == 'yes'){ этим: if($gid){ $sql_query = "SELECT tb1.user_id, user_search_pref, user_photo, user_birthday, user_country_city_name, user_last_visit, user_logged_mobile FROM `".PREFIX."_users` tb1, `".PREFIX."_friends` tb2 {$where_sql_gen} and tb2.user_id = tb1.user_id and tb2.friend_id = '{$gid}' and tb2.subscriptions = 2 {$sql_sort} ORDER by `user_rating` DESC LIMIT {$limit_page}, {$gcount}"; $sql_count = "SELECT COUNT(*) AS cnt FROM `".PREFIX."_users` tb1, `".PREFIX."_friends` tb2 {$where_sql_gen} and tb2.user_id = tb1.user_id and tb2.friend_id = '{$gid}' and tb2.subscriptions = 2 {$sql_sort}"; } else { $sql_query = "SELECT user_id, user_search_pref, user_photo, user_birthday, user_country_city_name, user_last_visit, user_logged_mobile FROM `".PREFIX."_users` {$where_sql_gen} {$sql_sort} ORDER by `user_rating` DESC LIMIT {$limit_page}, {$gcount}"; $sql_count = "SELECT COUNT(*) AS cnt FROM `".PREFIX."_users` {$where_sql_gen} {$sql_sort}"; } 3.В templates/Default/js/profile.js перед; var gSearch = { вставить: function get_url_param(key){ var s = window.location.search; s = s.match(new RegExp(key + '=([^&=]+)')); return s ? s[1] : false; } после: if(CheckRequestSearch(location.href) && type == 1){ вставить: if(get_url_param('gid')) all_queryeis_gid = '&gid='+get_url_param('gid'); else all_queryeis_gid = ''; перед: all_queryeis_sex+all_queryeis_day вставить: all_queryeis_gid+ 6.В templates/Default/public/main.tpl заменить: <div class="public_vlock cursor_pointer" onClick="groups.all_people('{id}')">Подписчики</div> на: <a href="/?go=search&query=&type=1&gid={id}" onClick="Page.Go(this.href); return false;"><div class="public_vlock cursor_pointer">Подписчики</div></a> автор Mario Edited October 10, 2019 by kphp Quote Link to comment Share on other sites More sharing options...
FastCHAT Posted October 10, 2019 Report Share Posted October 10, 2019 (edited) Автор Mario Edited October 10, 2019 by PHPSocial ... 2 Quote Link to comment Share on other sites More sharing options...
Mario Posted October 10, 2019 Report Share Posted October 10, 2019 14 минут назад, PHPSocial сказал: Автор Developer.Sloopy Это я делал 1 Quote Link to comment Share on other sites More sharing options...
FastCHAT Posted October 10, 2019 Report Share Posted October 10, 2019 1 минуту назад, Mario сказал: Это я делал Ой прости( Quote Link to comment Share on other sites More sharing options...
kphp Posted October 10, 2019 Author Report Share Posted October 10, 2019 1 час назад, Mario сказал: Это я делал переделал Quote Link to comment Share on other sites More sharing options...
Mario Posted October 10, 2019 Report Share Posted October 10, 2019 3 минуты назад, kphp сказал: переделал Да мне не важно, просто не хочу мошеннику приписывать чужую работу) 1 Quote Link to comment Share on other sites More sharing options...
Rezvitsky Posted October 10, 2019 Report Share Posted October 10, 2019 1 час назад, Mario сказал: Да мне не важно, просто не хочу мошеннику приписывать чужую работу) А он что мошенник? Quote Link to comment Share on other sites More sharing options...
Mario Posted October 10, 2019 Report Share Posted October 10, 2019 1 минуту назад, Rezvitsky сказал: А он что мошенник? Да, деньги брал, а работу не делал, очень давно Quote Link to comment Share on other sites More sharing options...
Rezvitsky Posted October 10, 2019 Report Share Posted October 10, 2019 Только что, Mario сказал: Да, деньги брал, а работу не делал, очень давно понял. Я еще те времена застал но не помню чтобы он кидал. Quote Link to comment Share on other sites More sharing options...
kursainoff Posted May 15, 2020 Report Share Posted May 15, 2020 не работает Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.