Giter Site home page Giter Site logo

joomla-ukraine / junewsultra Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 5.0 595 KB

Best Joomla module for news, articles, YouTube and RSS with many options. Fast performs and mostly optimization for over 100.000 articles! Make you easy and simple templates! In one module, a greater functionality, which replaces a number of modules.

Home Page: https://joomla-ua.org

License: GNU General Public License v2.0

CSS 2.93% PHP 97.07%
joomla joomla-module joomla-extensions joomla-package junewsultra news article joomla-articles joomla-news articles

junewsultra's Introduction

junewsultra's People

Contributors

denysdesign avatar scrutinizer-auto-fixer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

junewsultra's Issues

Problem after latest release of Joomla

Since one of the last upgrades JUNewsUltra throws errors and does not populate content. The site shows two areas on the home page one for Latest News that should display Category= News, and the other should show Events Category= Current Campaigns. There are warning in the log file

Invalid argument supplied for foreach() in modules/mod_junewsultra/helper.php on line 359, referer: http://gippslandcarers.org/events/coming-events
Invalid argument supplied for foreach() in modules/mod_junewsultra/tmpl/default.php on line 51, referer: http://gippslandcarers.org/events/coming-events
Invalid argument supplied for foreach() in components/com_content/models/articles.php on line 547, referer: http://gippslandcarers.org/events/coming-events

Could this be the issue?

This has been working for years, but client just noticed, I think after I applied 3.7.4 early in week.

Appreciate any help

issue on installation 6.5.3

Error
This release of JUNewsUltra Pro is not compatible with your database driver.
Error installing package

System information:

Database Version | 5.7.20-0ubuntu0.16.04.1
Database Collation | utf8_general_ci
Database Connection Collation | utf8mb4_general_ci
PHP Version | 7.0.26-2+ubuntu16.04.1+deb.sury.org+2
Web Server | Apache
WebServer to PHP Interface | apache2handler
Joomla! Version | Joomla! 3.6.5 Stable [ Noether ] 1-December-2016 22:46 GMT
Joomla! Platform Version | Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

Notice: Trying to access array offset on value of type null

только установил модуль,. еще не сохранял конфигурацию. вот такой нотис:

Notice: Trying to access array offset on value of type null in /public_html/modules/mod_junewsultra/fields/head.php on line 32
Снимок экрана 2021-03-04 в 13 12 25

PHP Warning: Undefined property: stdClass::$text_alt

PHP Warning: Undefined property: stdClass::$text_alt ... in modules/mod_junewsultra/tmpl/default.php on line 117
Скоріше за все це пов'язано з php8. В php я не профі, порад не надам. :)

Undefined property: stdClass::$cmc_cat

When I enable error reporting I get the following Notice: Undefined property: stdClass::$cmc_cat in /home/deb3757n123/domains/janotsbos.eu/public_html/modules/mod_junewsultra/helper/com_content.php on line 522

Maybe it is a good idea to implement a check to see if the property exists...

line 193

Hello,
im web in subdomain and show me error:

Warning: is_dir(): open_basedir restriction in effect. File(/media/mod_junewsultra/) is not within the allowed path(s): (/data/web/virtuals/278520/virtual) in /data/web/virtuals/278520/virtual/www/subdom/zsrk/libraries/joomla/form/fields/filelist.php on line 193

Please how to fix?
Thank you :)

Фильтрация статей по меткам текущей статьи

Идея в том, чтобы делать запрос и вытаскивать из текущей статьи (подразумевается, что посетитель находится в полной версии статьи) назначенные метки и в модуле фильтровать материалы по похожим меткам.
например, у статьи метки: туризм, погода, авиакомпания
делается поиск по статьям, имеющим такие же метки и они будут подставляться в выдаче модуля.

Если для этого достаточно SQL запрос сделать, то можно доку описать. Либо сделать параметром.

Fatal error with latest version

I'm getting fatal error with latest version:

Fatal error: Class 'JULib' not found in modules\mod_junewsultra\lib\julib.php on line 341

Error is gone if I change "JULib" to "JULibs" in file modules/mod_junewsultra/lib/julib.php in function video().

Ограничение длины заголовка - убирать многоточие, если заголовок полный

Вот названия статей:
Рождественский карп по-чешским традициям... (4 слова)
Цены на продукты в Праге шокируют! (6 слов, но после восклицательного знака нет троеточия)
Необычные товары в цветочных магазинах... (5 слов)

Это смущает: ведь троеточие означает, что фраза оборвана а по факту это полное название.

Настройки:
Количество слов и/или символов для ограничения: 40

То есть, длина более чем достаточная. Нужна проверка: если кол-во слов меньше, чем в параметре, то многоточие не выводить. Кстати, сейчас оно не добавляется после восклицательного знака.

Screen Shot 2020-03-15 at 11 38 21
Screen Shot 2020-03-15 at 11 42 01

Параметр 'пропускать текущую статью'

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

сейчас есть параметр пропуска первой статьи - подходит для "последние новости", но логично предусмотреть и "другие статьи".

Bug in 6.7.0 release

\helper\com_content.php
line 510 - unnecessary equal char
$this->query->where($this->db->quoteName('object_id') . ' = IN (' . implode(',', $ids) . ')');

cheers

Fatal error running the news module

Fatal error: require_once(): Failed opening required '/homepages/20/d216982147/htdocs/skiclub2015/libraries/julib/image.php' (include_path='.:/usr/lib/php7.2') in /homepages/20/d216982147/htdocs/skiclub2015/modules/mod_junewsultra/mod_junewsultra.php on line 20

JUNewsUltra Pro | Site | Modul | 6.5.10

не встановлюється компонент

Joomla 4, намагаюсь встановити компонент видає таку помилку:
0 Too few arguments to function Pkg_JUNewsUltraInstallerScript::postflight(), 2 passed and exactly 3 expected
Намагався встановити як архів так і з JED, на хостингу і на локалці-результат той же самий

Некоректная отработка Imagemagick если отключена ссылка на изображение

phpThumbCacheIMcommandlineBase.txt 0 байт
phpThumbCacheIMversion.txt 1 байт

Dedicated server, установлен ISP Manager. Imagemagick включен.
с JUNewsUlta почему-то не хочет генерировать изображения.
В другом компоненте, использующем эту библиотеку, эскизы формируются.

проверил конфиг сервера:

Array ( [GD Version] => bundled (2.1.0 compatible) [FreeType Support] => 1 [FreeType Linkage] => with freetype [GIF Read Support] => 1 [GIF Create Support] => 1 [JPEG Support] => 1 [PNG Support] => 1 [WBMP Support] => 1 [XPM Support] => 1 [XBM Support] => 1 [WebP Support] => 1 [BMP Support] => 1 [JIS-mapped Japanese Font Support] => )

то есть, webp поддерживается. выбираю дефолтный шаблон модуля. картинка берется из интро-текста (вкладка изображения).

photo_2020-03-29_16-22-20

такой код получается:

<div class="jn-left">
<picture><source srcset="/images/img/590x346/e/1354original603e7dd3-9ab57db8.jpg.webp" type="image/webp"><img loading="lazy" src="/images/img/590x346/b/1354original-603e7dd3.jpg" alt="First article" 0="" class=""></picture>          </div>

при генерации эскизов что-то не так. подчеркну, что шаблон сейчас дефолтный

Eugene Sivokon, [29.03.20 16:28]
я определил, в чем баг
если в настройках отключена ссылка на изображение, то тогда картинки формируются с ошибкой (картинка-заглушка)
Screen Shot 2020-04-11 at 20 04 45

Install looks really strange

The module install looks really strange. The module after looking on the home page never resize the thumbnail to the smaller size set.
module-internal
module-external

Не работает изображение из параметров вступительного текста v6.6.0

Доброе время суток!
Joomla 3.9.12 + JUNewsUltra 6.6.0

  1. После обновления модуля до версии 6.6.0 перестали работать изображение из параметров вступительного текста. В место этого выводится изображение "изображение не найдено". В версии 6.5.12 всё было прекрасно.
  2. Очищает все теги во вступительном тексте, даже если переключатель "Очистить теги в тексте
    " выключен. В версии 6.5.12 всё было прекрасно.

Вынести ссылку перед <picture>

Код:

    <?php if($params->get('pik')): ?>      
        <?php echo $item->image; ?>
    <?php endif; ?>    

Снимок экрана 2021-02-08 в 15 31 36

на выхлопе код:

<picture><source srcset="/images/img/946x473/2/a-339c5702.webp" type="image/webp"><a href="/news/society/koronavirusnye-novosti-na-yanvar-2021" title="Коронавирусные новости на январь 2021"><img src="/images/img/946x473/7/e95656688674275cff226-305b45e5.jpg" alt="Коронавирусные новости на январь 2021" class="" ></a></picture>

нужно ссылку венести перед picture

No photos to link with #

I am studying the module in local on a Joomla 4.1.0 installation and the creation of images from intro_image e/o full_image of the article does not work, since Joomla has inserted the # in the image link (ex: image.jpg # joomlaImage: / / local-images ...). Run the different images only from the old links without #

Emails address in articles show the Javascript error

As the title says. Article displays fine when viewing it, but through JuNewsUltra email addresses are getting processed and showing the "You must have Javascript enabled" warning rather then the actual email. (Yes JS is enabled, it appears the article is piped through this module, processed, and hence the warning.

Read All News link not worked

В версии 6.5.11 перестал работать линк . вместо него подставляется само название ссылки.
В 6.5.10 вся было исправно

Deprecated: trim():

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/rinka/www/site.com/modules/mod_junewsultra/mod_junewsultra.php on line 59

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/rinka/www/site.com/modules/mod_junewsultra/mod_junewsultra.php on line 65

Версия базы данных | 10.11.5-MariaDB
Версия PHP | 8.1.24
Версия Joomla | Joomla! 5.0.3 Stable

Когда включен сообщение об ошибках на Максимум

Указывать папку для рандомного noimage

Изображение по умолчанию, если изображение не найдено в тексте статьи - выбираем файл noimage.

по аналогии с OG, мысль: можно указать папку и рандомно выводить noimage картинку из заготовленного набора.
получится довольно интересно на сайтах, где много текста и не так много картинок.

Joomla 3.10 error 0

After update joomla to versoin 3.10 mod JUNewsULTRA stop working. Error 0 appears on the page where the module occurs.
Possible repair is change version number on /helper/com_content.php line 23

if(version_compare(JVERSION, '4.0') <= 0)
{
require_once JPATH_SITE . '/components/com_content/router.php';
require_once JPATH_SITE . '/components/com_content/helpers/route.php';
}

2 нотиса при включении maximum ошибок

На фронте:
шаблон default.php, вывод списком материалов без картинок:
Снимок экрана 2021-03-08 в 23 25 27

Notice: Undefined offset: 1 in /home/public_html/modules/mod_junewsultra/mod_junewsultra.php on line 161

В админке:
Снимок экрана 2021-03-08 в 23 23 54

Вкладка "общее":
Notice: Undefined offset: 0 in /home//public_html/modules/mod_junewsultra/fields/multicategories.php on line 59

Junewsultra 6.10
PHP 7.4.10
J3.9

Цифра 0 в теге img

В коде тега добавлена цифра 0:

<img src="/img/241x138/a/82228911.jpg" alt="Рождественский карп по-чешским традициям..." 0 class="" >

выключил lazyload и webp - все равно есть эта цифра.

возможно, кстати, еще слэш в конце поставить:

Параметр: не выводить модуль в блоге категории, а только в материале

Блог с разными категориями.
Что хочу сделать:
Юзер переходит в материал и внизу выводится модуль с последними/рандомными новостями конкретной категории с заголовком "это интересно".
соответственно, логично в самом блоге категории не выводить модуль, т.к. там уже и так выводится список материалов.

Сторонний плагин Advanced Module Manager ставить не хочется (лишняя зависимость).
Нашел вот такой хак: (спасибо @b2z)
https://joomlaforum.ru/index.php/topic,297292.0.html#msg1474826

Итого: в переопределение шаблона модуля закинул такую проверку и модуль не выводится.
Но зато выводится его заголовок (все новости). Это тоже решаемо - просто отключу в настройках, а в шаблоне ручками пропишу.

Но, как мне кажется, функционал весьма полезен: не выводить модуль в блоге категории, а только при просмотре материалов.
предлагаю такую настройку добавить в следующей версии.

Deprecated: trim(): Passing null to parameter #1 ($string)

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/html/modules/mod_junewsultra/mod_junewsultra.php on line 59

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var//html/modules/mod_junewsultra/mod_junewsultra.php on line 65

Joomla 4.3.0
PHP 8.1
JUNewsUltra 7.5

Picture Not Found displaying after update (was working before)

hi hi
I am using this module on one news site and I just updated the module to the latest version today. Now suddenly all the pictures that were displaying wont display anymore, and the Picture Not Found - images displays instead. any ideas why this might be happening?

Notice: Undefined property: stdClass::$introtext

Вывод интро текста отключен.
Ещё один нотис:
Notice: Undefined property: stdClass::$introtext in
/public_html/modules/mod_junewsultra/helper/com_content.php on line 593

PHP 7.4

ID материалов через запятую

в настройках модуля:
Выберите режим - ID статей через запятую - ID материалов через запятую
если указываем 2 материала com_content, то сохраняется только первый..

тест на Joomla! 3.10.11
v6.9 и 7.6

в файле mod_junewsultra.xml

после замены на filter="string" все работает

Работы с тегами

А возможно ли добавить в модуль вывода теги вместо или вместе с категориями

Thumbnail generator

Hi,
The thumbnails are not being generated. What should I check?
This happens when I upgraded to the latest version of the JUNewsUltra Pro 6.5.10 module
My site is created with Joomla 3.8.6

Thanks.

Постустановочное сообщение

после установки экран выглядит вот так:

Screen Shot 2020-03-29 at 10 48 50

это всегда сбивает с толку, тк пропадают привычные элементы навигации.
предлагаю оставить сайдбар и ниже текста кнопку вывести:
перейти в список модулей.
ну или, хотя бы, кнопку вывести, это сэкономит время на клик :-)
usability friendly.

Update script tells you to remove a file, but doesn't tell you where it's located

Hello,

After running the update for this extension I get this notification:

Screenshot of installer

First of all, you should program this that it gets removed when the installer runs.
Second, it doesn't tell where the file is located. Joomla doesn't have a root "fields" folder so it's probably in your extension folder but I'm not the person that installed this, just the guy that updates stuff. So I have no clue if it's an plugin/module/component so won't know where to look for this file.
Third, not everybody has ssh or ftp access on their hosting account, how should they remove this?

Please do this differently next time.

путь img по умолчанию создает папку

в настройках можно указать путь к папке, в которой будут храниться миниатюры и с этим есть проблема.
когда создаешь модуль первый раз, то нужно его сохранить, чтобы открылась конфигурация.
и после первого сохранения сразу же добавляется на сервер в корень сайта папка img.
да, можно ручками путь поправить, но придется и папку из корня удалять.
неудобно.

Не формируется webp

битая картинка в webp.
Снимок экрана 2021-02-23 в 13 38 20

<source srcset="/images/img/348x199/2/a-4ccd3589.webp" type="image/webp"><a href="/URL"><img src="/images/img/348x199/7/bitvazapultik-612388b9.jpg"... >

обрати внимание, что у jpeg картинки ЧПУ, а у webp генерация.

PHP 7.4 10, WebP Support enabled. проверка на timeweb.ru хостинге.
Снимок экрана 2021-02-23 в 13 40 42

Add IPTC metadata to thumbnails

В Германии есть закон, обязывающий, чтобы IPTC meta-данные содержались в том числе и в мини-эскизах.
Сделать это опционально (т.к. лишние данные)

Далее приведу выдержки из переписки с коллегой, поэтому на англ:

If you do thumbnails of images on your web, in germany, you need to add copyright notices from IPTC even to all thumbnails.

In German law is, that IPTC info is a part of the image and you cannot delete it. So if you e.g. use an image from Unsplash and it includes IPTC with copyright, you should add it to all thumbnails you will make - e.g. if you use img tag with different sizes for different screens - all should have the information about copyright

А вот такое решение предлагается:

/*
$fileIn ... original image
$fileOut ... destination image (e.g. thumbnail)
*/
$copyright = array();
$info = array();
$data = '';
$size = getimagesize($fileIn, $info);
if(isset($info['APP13'])){
  $iptc = iptcparse($info['APP13']);
  if(isset($iptc['2#116'][0]) && $iptc['2#116'][0] != ''){
    $iptcEmbed = array('2#116' => $iptc['2#116'][0]);
    foreach($iptcEmbed as $tag => $string) {
      $tag = substr($tag, 2);
      // iptc_make_tag Funktion kann man hier finden:
      // https://www.php.net/manual/en/function.iptcembed.php (example 1)
      $data .= iptc_make_tag(2, $tag, $string);
    }
    $content = iptcembed($data, $fileOut);
    // Man kann hier auch Joomla! JFile Methode benutzen
    // test the $data or $content so the file will be not open and overwritten uselessly
    $fw = fopen($fileOut, 'w');
    fwrite($fw, $content);
    fclose($fw);
  }
}

It will slow down the procedure of thumbnail creation and the thumbnails will be larger - so, such a solution should be optional for users from the rest of the countries.

The copyright info ads cca 86 bytes + the copyright notice text so if this is only the copyright info, it is all OK, but if it should be all the IPTC data, then this can be drastically, for example, small image thumbnail in the component can have e.g. 700 bytes.

Штука интересная и нужная для немецкоговорящего рынка, тем более, как я понимаю, решение уже есть.
Решение стоит продублировать в JUMultiThumb.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.