nyagan40 0 Report post Posted January 17, 2016 Привет всем как можно зделать лимит записей на стене для vii engine,лимит 5 записей в день! Share this post Link to post Share on other sites
alexivanov a.k.a proxxamma 19 Report post Posted January 17, 2016 В /templates/default/js/main.js шарь. Я там видел ограничения Share this post Link to post Share on other sites
nyagan40 0 Report post Posted January 17, 2016 ок щас гляну Share this post Link to post Share on other sites
nyagan40 0 Report post Posted January 17, 2016 Нет там никаких лемитов не нашол!!! Share this post Link to post Share on other sites
timbios 205 Report post Posted January 17, 2016 По моему лимиты ставят в php.. Как ни как, на сообщениях стоит лимит, кажись 40 сообщений в день незнакомому человеку.И ставится он в im.php, как я помню. Так что смотри PHP файл отвечающий на стену. Share this post Link to post Share on other sites
nyagan40 0 Report post Posted January 17, 2016 wall.php же стена Share this post Link to post Share on other sites
kolyan22region 82 Report post Posted January 17, 2016 wall.php же стена в модулях файл functions.php. Там почти в самом конце есть переменные где значения их - лимиты. Числа меняешь на любое другое число, например 9999 Share this post Link to post Share on other sites
nyagan40 0 Report post Posted January 17, 2016 щас гляну Share this post Link to post Share on other sites
nyagan40 0 Report post Posted January 17, 2016 Ребят в functions.php не нашел .а вот в wall.php есть кое што гляньте в самом верху! <?php /* Appointment: Стена File: wall.php */ if(!defined('MOZG')) die('Hacking attempt!'); if($logged){ $act = $_GET['act']; $user_id = $user_info['user_id']; $limit_select = 10; $limit_page = 0; switch($act){ //################### Добвление новой записи на стену ###################// case "send": NoAjaxQuery(); $wall_text = ajax_utf8(textFilter($_POST['wall_text'])); $attach_files = ajax_utf8(textFilter($_POST['attach_files'], false, true)); $for_user_id = intval($_POST['for_user_id']); $fast_comm_id = intval($_POST['rid']); $str_date = time(); //Проверка на наличии юзера которум отправляется запись $check = $db->super_query("SELECT user_privacy, user_last_visit FROM `".PREFIX."_users` WHERE user_id = '{$for_user_id}'"); if($check){ if(isset($wall_text) AND !empty($wall_text) OR isset($attach_files) AND !empty($attach_files)){ //Приватность $user_privacy = xfieldsdataload($check['user_privacy']); //Проверка естьли запрашиваемый юзер в друзьях у юзера который смотрит стр if($user_privacy['val_wall2'] == 2 OR $user_privacy['val_wall1'] == 2 OR $user_privacy['val_wall3'] == 2 AND $user_id != $for_user_id) $check_friend = CheckFriends($for_user_id); if(!$fast_comm_id){ if($user_privacy['val_wall2'] == 1 OR $user_privacy['val_wall2'] == 2 AND $check_friend OR $user_id == $for_user_id) $xPrivasy = 1; else $xPrivasy = 0; } else { if($user_privacy['val_wall3'] == 1 OR $user_privacy['val_wall3'] == 2 AND $check_friend OR $user_id == $for_user_id) $xPrivasy = 1; else $xPrivasy = 0; } if($user_privacy['val_wall1'] == 1 OR $user_privacy['val_wall1'] == 2 AND $check_friend OR $user_id == $for_user_id) $xPrivasyX = 1; else $xPrivasyX = 0; Share this post Link to post Share on other sites
kolyan22region 82 Report post Posted January 17, 2016 Ребят в functions.php не нашел .а вот в wall.php есть кое што гляньте в самом верху! <?php /* Appointment: Стена File: wall.php */ if(!defined('MOZG')) die('Hacking attempt!'); if($logged){ $act = $_GET['act']; $user_id = $user_info['user_id']; $limit_select = 10; $limit_page = 0; switch($act){ //################### Добвление новой записи на стену ###################// case "send": NoAjaxQuery(); $wall_text = ajax_utf8(textFilter($_POST['wall_text'])); $attach_files = ajax_utf8(textFilter($_POST['attach_files'], false, true)); $for_user_id = intval($_POST['for_user_id']); $fast_comm_id = intval($_POST['rid']); $str_date = time(); //Проверка на наличии юзера которум отправляется запись $check = $db->super_query("SELECT user_privacy, user_last_visit FROM `".PREFIX."_users` WHERE user_id = '{$for_user_id}'"); if($check){ if(isset($wall_text) AND !empty($wall_text) OR isset($attach_files) AND !empty($attach_files)){ //Приватность $user_privacy = xfieldsdataload($check['user_privacy']); //Проверка естьли запрашиваемый юзер в друзьях у юзера который смотрит стр if($user_privacy['val_wall2'] == 2 OR $user_privacy['val_wall1'] == 2 OR $user_privacy['val_wall3'] == 2 AND $user_id != $for_user_id) $check_friend = CheckFriends($for_user_id); if(!$fast_comm_id){ if($user_privacy['val_wall2'] == 1 OR $user_privacy['val_wall2'] == 2 AND $check_friend OR $user_id == $for_user_id) $xPrivasy = 1; else $xPrivasy = 0; } else { if($user_privacy['val_wall3'] == 1 OR $user_privacy['val_wall3'] == 2 AND $check_friend OR $user_id == $for_user_id) $xPrivasy = 1; else $xPrivasy = 0; } if($user_privacy['val_wall1'] == 1 OR $user_privacy['val_wall1'] == 2 AND $check_friend OR $user_id == $for_user_id) $xPrivasyX = 1; else $xPrivasyX = 0; Значит плохо искал. //Лимиты на день $max_frieds = 40; #макс. заявок в друзья $max_msg = 40; #макс. сообщений не друзьям $max_wall = 500; #макс. записей на стену $max_identical = 100; #макс. одинаковых текстовых данных $max_comm = 2000; #макс. комментариев к записям на стенах людей и сообществ $max_groups = 5; #макс. сообществ за день Share this post Link to post Share on other sites
nyagan40 0 Report post Posted January 17, 2016 нету у меня такова вот смотрите https://yadi.sk/d/0vA_Qds6nAJLx Share this post Link to post Share on other sites
nyagan40 0 Report post Posted January 17, 2016 мой файл Share this post Link to post Share on other sites
nyagan40 0 Report post Posted January 17, 2016 может это какое то дополнение.которого у меня нет или фича какая! Share this post Link to post Share on other sites
nyagan40 0 Report post Posted January 17, 2016 это анти спам модуль? Share this post Link to post Share on other sites
kolyan22region 82 Report post Posted January 17, 2016 это анти спам модуль? yes Share this post Link to post Share on other sites
kolyan22region 82 Report post Posted January 17, 2016 может это какое то дополнение.которого у меня нет или фича какая! какая сборка? Share this post Link to post Share on other sites
nyagan40 0 Report post Posted January 17, 2016 всем спасибо тема решена поставил анти-спам всё настроил!!! Share this post Link to post Share on other sites