Перейти к основному содержанию

Устарело: Создание динамического свойства EasyDiscussPost::$isActivity устарело в /var/www/staging.joomunited.com/public_html/administrator/components/com_easydiscuss/includes/easydiscuss.php в строке 1560
  воскресенье, 23 марта 2025
  1 Ответы
  569 посещений
  Подписаться

Deprecated: Creation of dynamic property EasyDiscussPost::$events is deprecated in /var/www/staging.joomunited.com/public_html/administrator/components/com_easydiscuss/includes/post/post.php on line 4049
I've tried the WP Latest Posts plugin and it seems really useful, but I don't want my carousel of posts to do an 'infinite scroll' and keep going from the start when the user gets to the end. I find it's rather confusing for the user as they can't see easily when they've looked through everything. Can the carousel feed simply be empty when there are no more, and stop scrolling?
А
1 год назад

Устарело: Создание динамического свойства EasyDiscussPost::$events устарело в /var/www/staging.joomunited.com/public_html/administrator/components/com_easydiscuss/includes/post/post.php в строке 4049
Привет,

Спасибо за то, что связались с нами по поводу этого расширения.

Я' пробовал плагин WP Latest Posts, и он кажется действительно полезным, но я' не хочу, чтобы моя карусель записей делала 'бесконечную прокрутку' и возвращалась к началу, когда пользователь достигает конца. Мне кажется, это' довольно запутывает пользователя, так как они' не могут легко увидеть, когда они' просмотрели всё. Можно ли, чтобы лента карусели просто была пустой, когда больше нет записей, и остановилась?


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

Пожалуйста, ознакомьтесь с этим конкретным руководством, которое охватывает все варианты анимации:
https://www.joomunited.com/wordpress thing-documentation/wp-latest-posts/237-wp-latest-posts-content-source#toc-animation-tab

Дайте знать, если вам нужна помощь в реализации этих настроек для вашего конкретного случая!

С уважением,
  • Страница :
  • 1
Ответов к этой записи пока нет.
Duplicate entry '49263e4176ff53f5ff1efff72d6df4fb-ru' for key 'bk24_linguise_urls.hash_translation' (500 Whoops, looks like something went wrong.)

mysqli_sql_exception

HTTP 500 Whoops, looks like something went wrong.

Duplicate entry '49263e4176ff53f5ff1efff72d6df4fb-ru' for key 'bk24_linguise_urls.hash_translation'

Exception

mysqli_sql_exception

Show exception properties
mysqli_sql_exception {#896
  #sqlstate: "23000"
}
  1. foreach ($urls as $translation => $source) {
  2. $elements[] = '("'.mysqli_real_escape_string($this->_database, Request::getInstance()->getLanguage()).'", "'.mysqli_real_escape_string($this->_database, $source).'", "'.mysqli_real_escape_string($this->_database, $translation).'", "'.md5($source).'", "'.md5($translation).'")';
  3. }
  4. $query .= implode(',', $elements);
  5. $query .= ' ON DUPLICATE KEY UPDATE source=VALUES(source), translation=VALUES(translation), hash_source=VALUES(hash_source), hash_translation=VALUES(hash_translation)';
  6. $this->_database->query($query);
  7. }
  8. public function removeUrls($urls)
  9. {
  10. $query = 'DELETE FROM '.mysqli_real_escape_string($this->_database, $this->_database_table_urls).' WHERE (hash_source) IN ';
  1. foreach ($urls as $translation => $source) {
  2. $elements[] = '("'.mysqli_real_escape_string($this->_database, Request::getInstance()->getLanguage()).'", "'.mysqli_real_escape_string($this->_database, $source).'", "'.mysqli_real_escape_string($this->_database, $translation).'", "'.md5($source).'", "'.md5($translation).'")';
  3. }
  4. $query .= implode(',', $elements);
  5. $query .= ' ON DUPLICATE KEY UPDATE source=VALUES(source), translation=VALUES(translation), hash_source=VALUES(hash_source), hash_translation=VALUES(hash_translation)';
  6. $this->_database->query($query);
  7. }
  8. public function removeUrls($urls)
  9. {
  10. $query = 'DELETE FROM '.mysqli_real_escape_string($this->_database, $this->_database_table_urls).' WHERE (hash_source) IN ';
  1. public function saveUrls($urls) {
  2. if (empty($urls)) {
  3. return;
  4. }
  5. return $this->_database->saveUrls($urls);
  6. }
  7. public function removeUrls($urls) {
  8. if (empty($urls)) {
  9. return;
  1. if (isset($result->url_translations)) {
  2. Defer::getInstance()->defer(function() use ($result) {
  3. $new_urls = $result->url_translations;
  4. $new_urls = get_object_vars($new_urls);
  5. Database::getInstance()->saveUrls((array)$new_urls);
  6. });
  7. }
  8. if (isset($result->urls_untranslated)) {
  9. Defer::getInstance()->defer(function() use ($result) {
Translation->Linguise\Script\Core\{closure}()
  1. }
  2. public function finalize()
  3. {
  4. foreach ($this->_actions as $action) {
  5. call_user_func($action['function'], $action['args']);
  6. }
  7. }
  8. }
  1. Helper::prepareDataDir();
  2. // Finalize defer actions on shutdown
  3. // @codeCoverageIgnoreStart
  4. register_shutdown_function(function() {
  5. Defer::getInstance()->finalize();
  6. Database::getInstance()->close();
  7. });
  8. // @codeCoverageIgnoreEnd
  9. }
Processor->Linguise\Script\Core\{closure}()

Stack Trace

mysqli_sql_exception
mysqli_sql_exception:
Duplicate entry '49263e4176ff53f5ff1efff72d6df4fb-ru' for key 'bk24_linguise_urls.hash_translation'

  at /var/www/staging.joomunited.com/public_html/plugins/system/linguise/vendor/linguise/script-php/src/Databases/Mysql.php:170
  at mysqli->query()
     (/var/www/staging.joomunited.com/public_html/plugins/system/linguise/vendor/linguise/script-php/src/Databases/Mysql.php:170)
  at Linguise\Script\Core\Databases\Mysql->saveUrls()
     (/var/www/staging.joomunited.com/public_html/plugins/system/linguise/vendor/linguise/script-php/src/Database.php:232)
  at Linguise\Script\Core\Database->saveUrls()
     (/var/www/staging.joomunited.com/public_html/plugins/system/linguise/vendor/linguise/script-php/src/Translation.php:119)
  at Linguise\Script\Core\Translation->Linguise\Script\Core\{closure}()
  at call_user_func()
     (/var/www/staging.joomunited.com/public_html/plugins/system/linguise/vendor/linguise/script-php/src/Defer.php:42)
  at Linguise\Script\Core\Defer->finalize()
     (/var/www/staging.joomunited.com/public_html/plugins/system/linguise/vendor/linguise/script-php/src/Processor.php:31)
  at Linguise\Script\Core\Processor->Linguise\Script\Core\{closure}()