Перейти к публикации
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Вложения

Опубликовано:

Возникла ситуация удалить потерянные файлы и миниатюры с целью экономии места.

 

Загрузку файлов делал с помощью

 

Стандартный скрипт через Пересчет и обновление работает только для постов на форуме. А для Ip.Content не хочет

Хочу изменить размер миниатюр, у удалить потеряные вложения.

 

/uploads/monthly_07_2013/post--1-1-1111111.

 

А с таким названием не проверяет. Я так понимаю rebuild.php

 

/uploads/monthly_07_2013/ccs-1-1-1111111.jpg

 

Если кто-то владеет информацией подскажите пожалуйста.

Рекомендованные сообщения

Опубликовано:
  • Автор

Я так понимаю нужно прописать.

 

Найти:

$this->DB->build( array( 'select' => '*', 'from' => 'attachments', 'where' => "attach_rel_module IN('post','msg')", 'order' => 'attach_id ASC', 'limit' => array($start,$end) ) );
	$outer = $this->DB->execute();

Заменить:

$this->DB->build( array( 'select' => '*', 'from' => 'attachments', 'where' => "attach_rel_module IN('post','msg','ccs')", 'order' => 'attach_id ASC', 'limit' => array($start,$end) ) );
	$outer = $this->DB->execute();

Опубликовано:

Попробуй. По идее так.

Опубликовано:
  • Автор

Сейчас на виртуалку сайт загружу. То очень много вложений.

Опубликовано:

Там еще и во втором запросе поменять нужно.

Опубликовано:
  • Автор

Там еще и во втором запросе поменять нужно.

 

Увидел, там для миниатюр, процесс пошел. Миниатюры меняют разрешение.

Опубликовано:
  • Автор

cleanattachments Не работает. Что-то пропустил.

Опубликовано:
  • Автор

Пробую

 

else if ( strstr( $file, 'post-','ccs' ) )

Опубликовано:

cleanattachments Не работает. Что-то пропустил.

 

strstr( $nfile->getFilename(), 'post-' )

заменить на: strstr( $nfile->getFilename(), 'post-' ) OR strstr( $nfile->getFilename(), 'ccs-' )

 

strstr( $file, 'post-' )

заменить на: strstr( $file, 'post-' ) OR strstr( $file, 'ccs-' )

Опубликовано:
  • Автор

Спасибо, сейчас попробую.

Опубликовано:
  • Автор

Работает, спасибо еще раз.

Опубликовано:
  • Автор

Правим: rebuild.php (\admin\applications\core\modules_admin\tools)

 

Ищем:

$this->DB->build( array( 'select' => '*', 'from' => 'attachments', 'where' => "attach_rel_module IN('post','msg')", 'order' => 'attach_id ASC', 'limit' => array($start,$end) ) );
       $outer = $this->DB->execute();

 

Меняем:

$this->DB->build( array( 'select' => '*', 'from' => 'attachments', 'where' => "attach_rel_module IN('post','msg','ccs')", 'order' => 'attach_id ASC', 'limit' => array($start,$end) ) );
       $outer = $this->DB->execute();


Ищем:

$tmp = $this->DB->buildAndFetch( array( 'select' => 'attach_id', 'from' => 'attachments', 'where' => "attach_rel_module IN('post','msg')", 'limit' => array($dis,1)  ) );
	$max = intval( $tmp['attach_id'] );

 

Меняем:

$tmp = $this->DB->buildAndFetch( array( 'select' => 'attach_id', 'from' => 'attachments', 'where' => "attach_rel_module IN('post','msg','ccs')", 'limit' => array($dis,1)  ) );
	$max = intval( $tmp['attach_id'] );


Ищем:

strstr( $nfile->getFilename(), 'post-' )

Меняем:

strstr( $nfile->getFilename(), 'post-' ) OR strstr( $nfile->getFilename(), 'ccs-' )


Ищем:

strstr( $file, 'post-' )

Меняем:

strstr( $file, 'post-' ) OR strstr( $file, 'ccs-' )

  • 3 месяца спустя...
Опубликовано:
  • Автор

Для ipb 3.4.6 Правка последняя отличается

 

else if ( strstr( $file->getFilename(), 'post-' ) OR strstr( $file, 'ccs-' )

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.