Перейти к публикации

kostyk

Клиенты
  • Публикации

    97
  • Зарегистрирован

  • Посещение

Сообщения, опубликованные пользователем kostyk

  1. Всем привет. Подскажите пожалуйста, кому не трудно. Как запретить вывод кода счетчика в новостях с определенным ID. Например что бы для новостей с ID: 12, 13, 14 не выводился код счетчика на странице, а на всех остальных новостях ID которых не указан, что бы счетчик выводился без проблем.  Покурил официальную документацию, но что-то не нашел способа.

    Заранее больше спасибо за помощь.

  2. Подскажите пожалуйста почему при загрузке картинки через "Загрузка файлов на сервер" и вставки ее в новость "вставить выбранное" картинка не отображается в РСС. При этом в настройках движка выбрано: "Формат экспорта RSS потока" "Яндекс новости". Получается что отображается в рсс новости, но все без картинки.

  3. kostyk,

    Это обычные запросы показа новостей. Нужно приводить полные запросы, а не их начало, потому как самое важное в плане нагрузки и снижения нагрузки находится именно в конце запроса а не в начале, там условия выборки. Вообще в DLE есть раздел "Анализ производительности" в админпанели, он покажет какие возможности скрипта создают наиболее большую нагрузку и как их нужно отключить.

    заходишь на сервер смотришь show processlist: а там таких запросов сотня и у всех время ожидания 3600 и выше. Может есть способ что-то убрать на сайте чтобы не было такой нагрузки на mysql?

    Это у вас уже неправильные настройки MySQL сервера. Если какие то запросы зависли, то они должны закрываться MySQL сервером, а не висеть. Также смотрите логи Апача, может быть кто то сканирует сайт и генерирует большое количество обращений к сайту.

    Спасибо большое, буду изучать что и как.

  4. Существует сайтик с посещемостью 8к сайт по онлайн-видео. И вот такие запросы иногда ложат mysql на сервере:

    
    | 14181 | base_user | localhost | base_db | Query   | 3671 | Sorting result
    
    
    | SELECT p.id, p.autor, p.date, p.short_story, CHAR_LENGTH(p.full_story) as
    
    
    full_story, p.xfields, p.t |
    
    | 14226 | base_user | localhost | base_db | Query   | 3664 | Locked	     
    
    
    | UPDATE dle_post_extras SET
    
    
    related_ids='1227,136045,48988,135856,16207,17020,104599,121642,26692,132 |
    
    | 14229 | base_user | localhost | base_db | Query   | 3664 | Locked	     
    
    
    | SELECT * FROM dle_post LEFT JOIN dle_post_extras ON
    
    
    (dle_post.id=dle_post_extras.news_id) WHERE  id  |
    
    | 14231 | base_user | localhost | base_db | Query   | 3663 | Locked	     
    
    
    | SELECT * FROM dle_post LEFT JOIN dle_post_extras ON
    
    
    (dle_post.id=dle_post_extras.news_id) WHERE  id  |
    
    | 14232 | base_user | localhost | base_db | Query   | 3663 | Locked	     
    
    
    | SELECT * FROM dle_post LEFT JOIN dle_post_extras ON
    
    
    (dle_post.id=dle_post_extras.news_id) WHERE  id  |
    
    | 14239 | base_user | localhost | base_db | Query   | 3659 | Locked	     
    
    
    | SELECT p.id, p.autor, p.date, p.short_story, CHAR_LENGTH(p.full_story) as
    
    
    full_story, p.xfields, p.t |
    
    | 14240 | base_user | localhost | base_db | Query   | 3659 | Locked	     
    
    
    | SELECT * FROM dle_post LEFT JOIN dle_post_extras ON
    
    
    (dle_post.id=dle_post_extras.news_id) WHERE  id  |
    
    | 14247 | base_user | localhost | base_db | Query   | 3659 | Locked	     
    
    
    | SELECT * FROM dle_post LEFT JOIN dle_post_extras ON
    
    
    (dle_post.id=dle_post_extras.news_id) WHERE  id  |
    
    | 14249 | base_user | localhost | base_db | Query   | 3658 | Locked	     
    
    
    | SELECT * FROM dle_post LEFT JOIN dle_post_extras ON
    
    
    (dle_post.id=dle_post_extras.news_id) WHERE  id  |
    
    | 14251 | base_user | localhost | base_db | Query   | 3657 | Locked	     
    
    
    | SELECT * FROM dle_post LEFT JOIN dle_post_extras ON
    
    
    (dle_post.id=dle_post_extras.news_id) WHERE  id  |
    
    | 14256 | base_user | localhost | base_db | Query   | 3655 | Locked	     
    
    
    | SELECT * FROM dle_post LEFT JOIN dle_post_extras ON
    
    
    (dle_post.id=dle_post_extras.news_id) WHERE  id  |
    
    | 14258 | base_user | localhost | base_db | Query   | 3655 | Locked	     
    
    
    | SELECT * FROM dle_post LEFT JOIN dle_post_extras ON
    
    
    (dle_post.id=dle_post_extras.news_id) WHERE  id  |
    
    | 14261 | base_user | localhost | base_db | Query   | 3654 | Locked	     
    
    
    | SELECT p.id, p.autor, p.date, p.short_story, CHAR_LENGTH(p.full_story) as
    
    
    full_story, p.xfields, p.t |
    
    

    бывает заедшь на сайт, сайт лежит, заходишь на сервер смотришь show processlist: а там таких запросов сотня и у всех время ожидания 3600 и выше. Может есть способ что-то убрать на сайте чтобы не было такой нагрузки на mysql?

  5. Подскажите пожалуйста, почему в полной новости могут не отображаться комментарии? В админке все включено, в шаблоне fullstory.tpl {comments} есть сами comments.tpl и addcomments.tpl существуют, кеш очистил, а форма комментариев все-равно не отображается. :-(

    Оказывается в css почему-то было к стилям комментариев примененно hidden.

    Тема закрыта.

  6. Подскажите пожалуйста в чем проблема?

    Dle 9.7

    Вывожу в сайдабре сайта через main.tpl теги посредством {tags}

    Теги в сайдбаре выводятся нормально,и если по ним покликать то выводятся статьи касающиеся этих тегов, но если кликнуть по ссылке "Показать все теги" то все теги кучей не выводятся, а там где они должны отобразиться пустое место.

    Файл tagscloud.tpl содержит:

    
    <div class="basecont">
    
    <div class="dpad">
    
      <h2 class="heading">Все ключевые теги:</h2>
    
      {tags}
    
      <br clear="all" />
    
    </div>
    
    </div>
    
    

    В чем может быть проблема? Почему не выводятся теги?

  7. Версия DLE 9.6

    При добавлении статьи в Дополнительно-> Ключевые слова -> прописываются ключевики.

    Но в теги ключевики не попадают, по вставке {tags} на странице отображаются только:

    новости, по, шаблоны

    В настройках отображение тегов включено.

    Как быть? Почему в теги не попадют ключевые слова из настроек статьи?

  8. 45гб ? :huh: да что за сайт с таким большим базой данных.

    45гб ? :huh: да что за сайт с таким большим базой данных.

    пробовали оптимизировать из админки?

    Из админки оптимизировать базу на 45gb? Виснет как сама админка так и сервер

  9. Версия движка Dle 9.5

    Версия php 5.3.17

    Подскажите пожалуйста как решить такую проблему, есть сайт на DLE с базой данных 45гб, в последнее время стал очень сильно тормозить сервер (Freebsd 7.2). При заходе в mysql на сервере и просмотре show full processlist; высвечиваются такие строки с запросом которые могут весеть очень долго:

    
    | 20066 | doma			 | localhost | domain	 | Query   | 8233 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%9280444843%' OR full_story LIKE '%9280444843%' OR dle_post.xfields LIKE '%9280444843%' OR title LIKE '%9280444843%') ORDER BY date desc LIMIT 0,10				 |
    
    | 20217 | doma			 | localhost | domain	 | Query   | 8158 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%7745651%' OR full_story LIKE '%7745651%' OR dle_post.xfields LIKE '%7745651%' OR title LIKE '%7745651%') ORDER BY date desc LIMIT 0,10							 |
    
    | 21377 | doma			 | localhost | domain	 | Query   | 7586 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%\\+79055825523%' OR full_story LIKE '%\\+79055825523%' OR dle_post.xfields LIKE '%\\+79055825523%' OR title LIKE '%\\+79055825523%') ORDER BY date desc LIMIT 0,10 |
    
    | 22364 | doma			 | localhost | domain	 | Query   | 7056 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%9169365636%' OR full_story LIKE '%9169365636%' OR dle_post.xfields LIKE '%9169365636%' OR title LIKE '%9169365636%') ORDER BY date desc LIMIT 0,10				 |
    
    | 23190 | doma			 | localhost | domain	 | Query   | 6661 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%83812290204%' OR full_story LIKE '%83812290204%' OR dle_post.xfields LIKE '%83812290204%' OR title LIKE '%83812290204%') ORDER BY date desc LIMIT 0,10			 |
    
    | 23679 | doma			 | localhost | domain	 | Query   | 6445 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%9297424621%' OR full_story LIKE '%9297424621%' OR dle_post.xfields LIKE '%9297424621%' OR title LIKE '%9297424621%') ORDER BY date desc LIMIT 0,10				 |
    
    | 24371 | doma			 | localhost | domain	 | Query   | 6065 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%89199875028%' OR full_story LIKE '%89199875028%' OR dle_post.xfields LIKE '%89199875028%' OR title LIKE '%89199875028%') ORDER BY date desc LIMIT 0,10			 |
    
    | 24414 | doma			 | localhost | domain	 | Query   | 6045 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%87018082772%' OR full_story LIKE '%87018082772%' OR dle_post.xfields LIKE '%87018082772%' OR title LIKE '%87018082772%') ORDER BY date desc LIMIT 0,10			 |
    
    | 24417 | doma			 | localhost | domain	 | Query   | 6043 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%381661507488%' OR full_story LIKE '%381661507488%' OR dle_post.xfields LIKE '%381661507488%' OR title LIKE '%381661507488%') ORDER BY date desc LIMIT 0,10		 |
    
    | 24427 | doma			 | localhost | domain	 | Query   | 6035 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%9650300910%' OR full_story LIKE '%9650300910%' OR dle_post.xfields LIKE '%9650300910%' OR title LIKE '%9650300910%') ORDER BY date desc LIMIT 0,10				 |
    
    | 24560 | doma			 | localhost | domain	 | Query   | 5970 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%84955741625%' OR full_story LIKE '%84955741625%' OR dle_post.xfields LIKE '%84955741625%' OR title LIKE '%84955741625%') ORDER BY date desc LIMIT 0,10			 |
    
    | 24638 | doma			 | localhost | domain	 | Query   | 5930 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%89685341621%' OR full_story LIKE '%89685341621%' OR dle_post.xfields LIKE '%89685341621%' OR title LIKE '%89685341621%') ORDER BY date desc LIMIT 0,10			 |
    
    | 24991 | doma			 | localhost | domain	 | Query   | 5724 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%9082364994%' OR full_story LIKE '%9082364994%' OR dle_post.xfields LIKE '%9082364994%' OR title LIKE '%9082364994%') ORDER BY date desc LIMIT 0,10				 |
    
    | 25151 | doma			 | localhost | domain	 | Query   | 5606 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%\\+79173113088%' OR full_story LIKE '%\\+79173113088%' OR dle_post.xfields LIKE '%\\+79173113088%' OR title LIKE '%\\+79173113088%') ORDER BY date desc LIMIT 0,10 |
    
    | 25863 | doma			 | localhost | domain	 | Query   | 5209 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%79232799662%' OR full_story LIKE '%79232799662%' OR dle_post.xfields LIKE '%79232799662%' OR title LIKE '%79232799662%') ORDER BY date desc LIMIT 0,10			 |
    
    | 26265 | doma			 | localhost | domain	 | Query   | 4948 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%9297424621%' OR full_story LIKE '%9297424621%' OR dle_post.xfields LIKE '%9297424621%' OR title LIKE '%9297424621%') ORDER BY date desc LIMIT 0,10				 |
    
    | 26584 | doma			 | localhost | domain	 | Query   | 4758 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%89277811061%' OR full_story LIKE '%89277811061%' OR dle_post.xfields LIKE '%89277811061%' OR title LIKE '%89277811061%') ORDER BY date desc LIMIT 0,10			 |
    
    | 27052 | doma			 | localhost | domain	 | Query   | 4504 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%0959400367%' OR full_story LIKE '%0959400367%' OR dle_post.xfields LIKE '%0959400367%' OR title LIKE '%0959400367%') ORDER BY date desc LIMIT 0,10				 |
    
    | 27314 | doma			 | localhost | domain	 | Query   | 4386 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%89204524778%' OR full_story LIKE '%89204524778%' OR dle_post.xfields LIKE '%89204524778%' OR title LIKE '%89204524778%') ORDER BY date desc LIMIT 0,10			 |
    
    | 28029 | doma			 | localhost | domain	 | Query   | 3958 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%79818354065%' OR full_story LIKE '%79818354065%' OR dle_post.xfields LIKE '%79818354065%' OR title LIKE '%79818354065%') ORDER BY date desc LIMIT 0,10			 |
    
    | 28232 | doma			 | localhost | domain	 | Query   | 3837 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%3832321564%' OR full_story LIKE '%3832321564%' OR dle_post.xfields LIKE '%3832321564%' OR title LIKE '%3832321564%') ORDER BY date desc LIMIT 0,10				 |
    
    | 28511 | doma			 | localhost | domain	 | Query   | 3663 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%7017874659%' OR full_story LIKE '%7017874659%' OR dle_post.xfields LIKE '%7017874659%' OR title LIKE '%7017874659%') ORDER BY date desc LIMIT 0,10				 |
    
    | 29083 | doma			 | localhost | domain	 | Query   | 3415 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%84952284826%' OR full_story LIKE '%84952284826%' OR dle_post.xfields LIKE '%84952284826%' OR title LIKE '%84952284826%') ORDER BY date desc LIMIT 0,10			 |
    
    | 29458 | doma			 | localhost | domain	 | Query   | 3205 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%9255085918%' OR full_story LIKE '%9255085918%' OR dle_post.xfields LIKE '%9255085918%' OR title LIKE '%9255085918%') ORDER BY date desc LIMIT 0,10				 |
    
    | 29881 | doma			 | localhost | domain	 | Query   | 2977 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%89825202222%' OR full_story LIKE '%89825202222%' OR dle_post.xfields LIKE '%89825202222%' OR title LIKE '%89825202222%') ORDER BY date desc LIMIT 0,10			 |
    
    | 30158 | doma			 | localhost | domain	 | Query   | 2844 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%380989222616%' OR full_story LIKE '%380989222616%' OR dle_post.xfields LIKE '%380989222616%' OR title LIKE '%380989222616%') ORDER BY date desc LIMIT 0,10		 |
    
    | 30331 | doma			 | localhost | domain	 | Query   | 2759 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%89501231083%' OR full_story LIKE '%89501231083%' OR dle_post.xfields LIKE '%89501231083%' OR title LIKE '%89501231083%') ORDER BY date desc LIMIT 0,10			 |
    
    | 30660 | doma			 | localhost | domain	 | Query   | 2594 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%7772741787%' OR full_story LIKE '%7772741787%' OR dle_post.xfields LIKE '%7772741787%' OR title LIKE '%7772741787%') ORDER BY date desc LIMIT 0,10				 |
    
    | 31235 | doma			 | localhost | domain	 | Query   | 2288 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%88125780126%' OR full_story LIKE '%88125780126%' OR dle_post.xfields LIKE '%88125780126%' OR title LIKE '%88125780126%') ORDER BY date desc LIMIT 0,10			 |
    
    | 33037 | doma			 | localhost | domain	 | Query   | 1257 | Sorting result | SELECT id, autor, date, short_story, SUBSTRING(full_story, 1, 15) as full_story, xfields, title, category, alt_name, comm_num, allow_comm, allow_rate, fixed, rating, vote_num, news_read, votes, flag, editdate, editor, reason, view_edit, tags FROM dle_post WHERE approve=1 AND allow_main=1 ORDER BY date DESC LIMIT 0,30																																																						|
    
    | 33347 | doma			 | localhost | domain	 | Query   | 1080 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%4959944499%' OR full_story LIKE '%4959944499%' OR dle_post.xfields LIKE '%4959944499%' OR title LIKE '%4959944499%') ORDER BY date desc LIMIT 0,10				 |
    
    | 33745 | doma			 | localhost | domain	 | Query   |  863 | Sorting result | SELECT SQL_CALC_FOUND_ROWS id, autor, dle_post.date AS newsdate, dle_post.date AS date, short_story AS story, dle_post.xfields AS xfields, title, descr, keywords, category, alt_name, comm_num AS comm_in_news, allow_comm, rating, news_read, flag, editdate, editor, reason, view_edit, tags, '' AS output_comms FROM dle_post WHERE dle_post.approve=1 AND (short_story LIKE '%380989782090%' OR full_story LIKE '%380989782090%' OR dle_post.xfields LIKE '%380989782090%' OR title LIKE '%380989782090%') ORDER BY date desc LIMIT 0,10		 |
    
    

    т.е. запрос SELECT SQL_CALC_FOUND_ROWS очень сильно ложит базы данных. Есть ли какой-нибудь выход из данной ситуации???

  10. Требуется создание большого кол-ва однотипных категорий на сайте, каждый раз копировать данные из уже созданной категории, в форму добавления категории очень сложно, подскажите пожалуйста, каким запросом можно скопировать существующую категорию например при помощи mysql.

    Или может есть mysql-запрос который позволит из текущей категории сделать сразу 100 новых категорий?

    Буду очень благодарен.

  11. Подскажите пожалуйста, возможно ли перейти с версии dle с кодировкой win1251 на версию dle с кодировкой utf-8, и если возможно то как лучше всего это сделать чтоб не было глюков с базой?

    Спасибо.

  12. Сделал как описано по ссылке выше, и это помогло делать статьи на русском, но не получается прописывать в настройках системы в Общие настройки скрипта например на русском название сайта.

    Также не получается прописывать русские названия и title для новых категорий. Может кто-нибудь подскажет какие файлы ещё поправить чтоб кирилица работала нормально?

    Спасибо.

  13. Ребят а есть у кого-нибудь хак который позволяет при автоматической загрузке контента разбивать страницу на несколько страниц, так как текста очень много на одной странице, понадобилась такая разбивка.

    Вручную разбивать тегом который разбивает страницу на подстраницы невозможно.

  14. kostyk,

    Вы после изменений кеш скрипта очищаете на главной странице админпанели? А также кеш браузера чтобы измения вступили в силу. Также для подобного запроса должна быть отключена поддержка мультикатегорий в настройках скрипта и сами новости должны быть опубликованы только в одной категории.

    Сейчас весь кеш очистил все заработало спасибо огромное prikindel и celsoft!

  15. Вот

    
    if (isset ( $view_template ) and $view_template == "rss") {
    
    
    	 $sql_select = "SELECT id, autor, date, short_story, full_story, xfields, title, category, alt_name, comm_num, allow_comm, allow_rate, fixed, rating, vote_num, news_read, votes, flag, editdate, editor, reason, view_edit, tags FROM " . PREFIX . "_post WHERE {$stop_list}approve=1";
    
    
    	 $sql_select .= " AND category NOT IN (8,10) ";
    
    
    	 if ($config['rss_mtype']) {
    
    
    	  $sql_select .= " AND allow_main=1";
    
    
    	 }
    
    

×
×
  • Создать...