Zero108 Posted August 16, 2015 Share Posted August 16, 2015 IP.Downloads 2.5.4 Выпадающие списки блоков Топ скачиваний и Топ авторов. По умолчанию выбран пункт Прошлая неделя. Что изменить в коде, чтобы по умолчанию был выбран пункт Всё время? Link to comment Share on other sites More sharing options...
Атаман Posted August 16, 2015 Share Posted August 16, 2015 (edited) Ваш шаблон - ip.downlod - portalSidebarBlock Ищем: <h3>{$title} <span id='{$menutype}ajax' class='__freebla ipbmenu clickable right'><a href='#'><span class='ipsType_small' id='{$menutype}title'>{$this->lang->words['feed_tp_month']}</span> {parse replacement="dropdown"}</a></span></h3> Меняем: <h3>{$title} <span id='{$menutype}ajax' class='__freebla ipbmenu clickable right'><a href='#'><span class='ipsType_small' id='{$menutype}title'>{$this->lang->words['feed_tp_all']}</span> {parse replacement="dropdown"}</a></span></h3> Edited August 16, 2015 by Атаман 1 Link to comment Share on other sites More sharing options...
Zero108 Posted August 16, 2015 Author Share Posted August 16, 2015 <div class='general_box'> <h3>{$title} <span id='{$menutype}ajax' class='__freebla ipbmenu clickable right'><a href='#'><span class='ipsType_small' id='{$menutype}title'>{$this->lang->words['feed_tp_all']}</span> {parse replacement="dropdown"}</a></span></h3> <div id='{$menutype}ajaxcontent'> {parse template="portalSidebarBlockInsert" group="downloads" params="$none, $items, $type, $recordIds"} </div> <ul class='ipbmenu_content' id='{$menutype}ajax_menucontent'> <li><a href="#" class='c_block_title __{$menutype}menu __t{$menutype} __xall'>{$this->lang->words['feed_tp_all']}</a></li> <li><a href="#" class='c_block_title __{$menutype}menu __t{$menutype} __xweek'>{$this->lang->words['feed_tp_week']}</a></li> <li><a href="#" class='c_block_title __{$menutype}menu __t{$menutype} __xmonth'>{$this->lang->words['feed_tp_month']}</a></li> <li><a href="#" class='c_block_title __{$menutype}menu __t{$menutype} __xyear'>{$this->lang->words['feed_tp_year']}</a></li> </ul> <script type='text/javascript'> ipb.idmportal.setUpAjMenu( '{$menutype}' ); </script> </div> Как теперь сделать так, чтобы и файлы без клика на Всё время показывались в блоке? Пока только меню списка Всё время показывает без нужных файлов (список пуст, как если бы был выбран пункт Прошлая неделя). Если же мышкой дополнительно кликаешь в выпадающем списке на Всё время, то начинает показывать и файлы. Как без клика сделать, чтобы показывало файлы? Link to comment Share on other sites More sharing options...
siv1987 Posted August 16, 2015 Share Posted August 16, 2015 \admin\applications_addon\ips\downloads\modules_public\display\index.php $searchRange = time() - ( 86400 * 30);По умолчанию блок генерируется за последние 30 дней.За все время $searchRange = 0; 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now