Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bugo on March 25, 2020, 07:36:36 AM

Title: Light Portal
Post by: Bugo on March 25, 2020, 07:36:36 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=4244)

Simple and moderately versatile portal for creating the main page of the forum, as well as additional pages and blocks.

Showcase (https://demo.dragomano.ru/)
Documentation (https://dragomano.github.io/Light-Portal/)

Requirements:

Available localizations:

Use Crowdin (https://crowdin.com/project/light-portal) if you want to help with translation.
   
Features:

If you like Light Portal, give it a star ⭐️ on GitHub!

(https://img.shields.io/github/stars/dragomano/Light-Portal?style=for-the-badge)

(https://img.shields.io/github/license/dragomano/light-portal?color=red) (https://img.shields.io/badge/Donate-$-blue.svg?style=flat&logo=paypal) (https://ko-fi.com/dragomano) (https://img.shields.io/github/v/release/dragomano/light-portal.svg?style=flat&logo=github&color=green) (https://github.com/dragomano/Light-Portal)
Title: Re: Light Portal
Post by: Adrek on March 28, 2020, 10:03:36 AM
Nice to see another portal mod, especially for 2.1 :D

Polish lang in attachment.


[Edit (m4z)]: Removed attachment as requested by the user.
Title: Re: Light Portal
Post by: Bugo on March 28, 2020, 03:46:13 PM
Just great, thanks :)
Title: Re: Light Portal
Post by: -Rock Lee- on March 28, 2020, 06:06:21 PM
I'm just testing everything related to 2.1 a very good, then I'll leave the translation to Latin Spanish ;).


Regards!
Title: Re: Light Portal
Post by: wylekk on March 29, 2020, 04:54:47 AM
Довольно то интересный портал!!! "Пасхальный яйца" все таки вставил :), интересно, как это перевели на другой язык - "Загружено за 0.062 сек. Скушано памяти: 0 МБ."

Посмотрел папку плагинов - не нашел поддержку SimpleSEF, хотя PrettyUrls есть :(
Title: Re: Light Portal
Post by: Adrek on March 29, 2020, 07:19:25 AM
How to use addons included in package? On page where we can add block I only see HTML/BBC/PHP options

I did not noticed that package from sm mod page does not include addons that can be found on Github page :)
After uploading addons from github it works :)
Title: Re: Light Portal
Post by: Bugo on March 29, 2020, 09:36:16 AM
Yes, by default the Light Portal contains only HTML/BBC/PHP blocks. I will add all other blocks into the package after the RC3 version is released.
Title: Re: Light Portal
Post by: wylekk on April 01, 2020, 11:42:40 AM
Решил установить мод на подфоруме на чистой оси, но он так ласково попросил обновить PHP7.0 на 7.2.
Сказано-сделано, вот отсюда обновил свой VDS c вестой -  https://forum.vestacp.com/viewtopic.php?f=41&t=17129&sid=70c592e3563ffa8f4b726a9dbc490c8c

Мод установился, при включении Последних сообщений появилась ошибка

Тип ошибки: Неопределенные
8: Undefined offset: 0
http://sub.wylek.ru/index.php?action=portal;start=2
/home/admin/web/sub.wylek.ru/public_html/Sources/LightPortal/addons/RecentPosts/RecentPosts.php (Строка 187)


Еще ошибка - при добавлении статей для второй страницы появляются две колонки блоков.
Можно посмотреть здесь - http://sub.wylek.ru/
Title: Re: Light Portal
Post by: wylekk on April 08, 2020, 06:38:41 AM
Мод работает прекрасно.
Если у кого уже установлен портал и кто пользуется статьями, то может протестировать новый портал в живую.
Вот, например, конвертер статей из Tinyportal на Light Portal (https://wylek.ru/forumy_i_moduli/konviertier_statiei_iz_tinyportal_na_light_portal_1066.new.html#new).
Здесь вы можете поглядеть как работает Light Portal (http://www.sub.wylek.ru/index.php).
Title: Re: Light Portal
Post by: Arantor on April 22, 2020, 12:10:58 PM
Intriguing, I like it.
Title: Re: Light Portal
Post by: -Rock Lee- on April 27, 2020, 04:35:48 PM
I cannot edit my previous message so I leave the translation to Latin Spanish here ::).


Regards!
Title: Re: Light Portal
Post by: Antes on May 06, 2020, 05:35:24 PM
I just found this portal out... damn this is wonderful!
Title: Re: Light Portal
Post by: JBlaze on May 06, 2020, 06:40:10 PM
Very intriguing, indeed. Nice work!
Title: Re: Light Portal
Post by: Bugo on May 16, 2020, 07:05:59 AM
v1.0 rc5

* Fixed found issues
* Added the Spanish translation (thanks to Rock Lee)
* Various cosmetic changes of template files
* Added custom template for the front page (as an example)
* Added LESS file to improve work with CSS
* Some improvements in source files
* Added FaBoardIcons addon
* Improved standalone mode
* Improved permission system
Title: Re: Light Portal
Post by: pocttopus on June 05, 2020, 06:58:01 AM
So what are the yesterdays updates? It's still the same version 1.0rc5.  ???
Title: Re: Light Portal
Post by: Bugo on June 05, 2020, 07:12:14 AM
Small fixes on the mod's page, nothing more. The portal's update will be in a few days.
Title: Re: Light Portal
Post by: pocttopus on June 05, 2020, 08:14:48 AM
Ok... I'll wait for a bigger update. Thanks.  ;)
Title: Re: Light Portal
Post by: Tekyürek replikacep.com on June 05, 2020, 05:49:11 PM
mobile compatibility. Why there is no Turkish language option
Title: Re: Light Portal
Post by: gohanjaja on June 07, 2020, 09:55:24 PM
bug widget moth?
Title: Re: Light Portal
Post by: Bugo on June 07, 2020, 10:46:31 PM
What do you mean?
Title: Re: Light Portal
Post by: Aportadordelmix on June 08, 2020, 01:33:02 AM
Very nice 😀
Title: Re: Light Portal
Post by: Bugo on June 11, 2020, 06:13:22 AM
v1.0 rc6

* As always, fixed found issues
* Updated the front page template
* New tab in settings: Panels
* Added the possibility to swap panels
* Added the possibility to change the width of some panels
* Replaced the Flexbox Grid with the Flexbox Grid 2
* New addons: FlipsterCarousel (simple image slider) and HidingBlocks (you will be able to hide your blocks on devices/screens with specified sizes)
* Added one easter egg
* Added a quick search by an alias on the Admin -> Portal -> Pages section
* Added support of BBCodes in comments
* Added a setting to manage allowed BBCodes in comments
* Added new field — the date and time of publication (for pages)
* Improved pattern for the areas field (for example, you can use a pattern like "topic=3-8|11", etc.)
* Performance improvements
* And other little things...
Title: Re: Light Portal
Post by: pocttopus on June 24, 2020, 04:04:57 PM
I am wondering why all guests are displayed as they are visiting the portal frontpage instead of that particular topic?
Is there any solution to display what are the guests and members viewing?
If I uninstall the portal, then the whosOnline page is working properly.
Here is the display and how can I fix this:

(https://i.postimg.cc/yYp42ymb/Screenshot-37.jpg)
Title: Re: Light Portal
Post by: Bugo on June 24, 2020, 10:53:39 PM
Thank you for letting me know. I'll fix it in the next release ;)
Title: Re: Light Portal
Post by: Bugo on July 06, 2020, 10:41:03 AM
v1.0 rc7

* New addons:
   * CodeMirror (highlights PHP code in blocks and pages with PHP content)
   * ArticleList (displays page list or topic list, with images)
   * SlickSlider (new slider block for custom images)
   * LanguageAccess (to allow view blocks for defined languages)
* Options of some addons are extended
* Support of multiple checkboxes and urls in plugin settings
* Improved template view on page/block add/edit areas
* Automatic creation of alias after a page title filling
* New template view for the frontpage articles
* Quick search by page title (Manage pages areas)
* Changed the mod license
* And other changes...
Title: Re: Light Portal
Post by: forumovod on September 02, 2020, 06:41:07 PM
Selected in the portal: show "all topics from selected sections". In the block settings, show portal is selected. But blocks are shown on the forum (board, topic).
How do I make blocks appear only on the main page of the forum with the portal?

SMF 2.1 RC2 (latest version from github)
Title: Re: Light Portal
Post by: Bugo on September 02, 2020, 10:43:18 PM
Try the latest version of portal from GitHub.
Title: Re: Light Portal
Post by: forumovod on September 02, 2020, 11:05:12 PM
Quote from: Bugo on September 02, 2020, 10:43:18 PM
Try the latest version of portal from GitHub.

OK. Попробую)
Title: Re: Light Portal
Post by: forumovod on September 02, 2020, 11:53:46 PM
The GitHub version fixed all the problems. Working portal for SMF 2.1 RC2 release.  8)
Title: Re: Light Portal
Post by: Bugo on September 08, 2020, 12:33:58 AM
v1.1

* Fixed found issues
* Updated JS scripts
* Added info messages for admin and page authors
* Added BoardIndex addon
* Added some addons for sponsors
Title: Re: Light Portal
Post by: wwwserfer on September 12, 2020, 04:14:44 PM
Приветствую!

После установки перестали работать уведомления. Т.е. при нажатии на кнопку получаем только пустоту и вечную надпись "Загружается..."

(https://i.ibb.co/M1rJ7RS/error.png)

В консоли увидел что при обращении к
https://www.site.ru/forum/index.php?action=profile;area=showalerts;u=свой_id
получаем ошибку 500

Вывод ошибок выдает следующее:

Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Bugo\LightPortal\Integration::fetchAlerts(), 1 passed in /home/site.ru/forum/Sources/Subs.php on line 4846 and exactly 2 expected in /home/site.ru/forum/Sources/LightPortal/Integration.php:421
Stack trace:
#0 /home/site.ru/forum/Sources/Subs.php(4846): Bugo\LightPortal\Integration::fetchAlerts(Array)
#1 /home/site.ru/forum/Sources/Profile-View.php(284): call_integration_hook('integrate_fetch...', Array)
#2 /home/site.ru/forum/Sources/Profile.php(880): fetch_alerts(35, false, NULL)
#3 /home/site.ru/forum/Sources/Profile.php(767): alerts_popup(35)
#4 /home/site.ru/forum/index.php(153): ModifyProfile()
#5 {main}
  thrown in /home/site.ru/forum/Sources/LightPortal/Integration.php on line 421


В моде сам ничего не правил.
Title: Re: Light Portal
Post by: Bugo on September 13, 2020, 12:38:34 AM
3 варианта, на выбор:
* SMF с гитхаба  обновите.
* Обновите только систему оповещений, внося нужные правки вручную.
* Закомментируйте хук integrate_fetch_alerts в /LightPortal/Integration (42 строка)
Title: Re: Light Portal
Post by: live627 on September 13, 2020, 04:48:42 AM
A  post here was reported for being written in Russian. IMO Russian is fine in this specific topic because the mod author speaks  it.
Title: Re: Light Portal
Post by: Shambles on September 13, 2020, 05:33:23 AM
Unlike the main support boards which declare "English support for ..." I can see no such rule here, so Russian is fine for me (even though I don't understand any of it :))

Must try out this magical "Light Portal" soon...
Title: Re: Light Portal
Post by: wwwserfer on September 13, 2020, 12:33:37 PM
Quote from: Bugo on September 13, 2020, 12:38:34 AM
3 варианта, на выбор:
* SMF с гитхаба  обновите.
* Обновите только систему оповещений, внося нужные правки вручную.
* Закомментируйте хук integrate_fetch_alerts в /LightPortal/Integration (42 строка)

Thnx! I chose option 3 :)
Title: Re: Light Portal
Post by: forumovod on September 13, 2020, 09:35:42 PM
Quote from: live627 on September 13, 2020, 04:48:42 AM
A  post here was reported for being written in Russian. IMO Russian is fine in this specific topic because the mod author speaks  it.

На русском, так на русском. :)

Предлагаю автору мода добавить в плагин UserInfo вывод оповещений форума. Тогда соответствующий блок в боковой колонке станет более информативным, а не только вход/выход и профиль пользователя. Примерно так это реализовано в плагине wpForo к WordPress (см. скриншот).
Title: Re: Light Portal
Post by: forumovod on September 23, 2020, 08:19:52 PM
Quote from: forumovod on September 13, 2020, 09:35:42 PM
Предлагаю автору мода добавить в плагин UserInfo вывод оповещений форума. Тогда соответствующий блок в боковой колонке станет более информативным, а не только вход/выход и профиль пользователя. Примерно так это реализовано в плагине wpForo к WordPress (см. скриншот).

Похоже что по русски здесь не сработало. Переведу на английский :)

I suggest that the author of the mod add the output of forum notifications to UserInfo. Then the block in the sidebar will become more informative, and not just the input/output and user profile. This is how it is implemented in the wpForo plugin for WordPress (see the screenshot).
Title: Re: Light Portal
Post by: forumovod on October 06, 2020, 02:12:29 AM
Can you make the first page of the portal display all topics from the selected sections by the date the topic was created, but not by the date of the last comment? Currently, the new topic is placed first on the first page of the portal, but then the old topic may overtake it.

(и на всякий случай по русски объясню)) Можете ли вы сделать так, чтобы на первой странице портала выводились все темы из выбранных разделов по дате создания темы, а не по дате последнего комментария? Сейчас на первой странице портала новая тема сначала размещается первой, но потом ее может обогнать старая тема. И получается какая-то каша вперемешку из новых и старых тем.)
Title: Re: Light Portal
Post by: Bugo on October 06, 2020, 03:38:07 AM
Не каша, а отображение тем со свежими постами в первую очередь — чтобы и «старые» темы читали. В следующей версии добавлю настраиваемую сортировку :)
Title: Re: Light Portal
Post by: forumovod on October 06, 2020, 09:57:59 PM
Quote from: Bugo on October 06, 2020, 03:38:07 AM
Не каша, а отображение тем со свежими постами в первую очередь — чтобы и «старые» темы читали.

В том то и дело, что в отличие от вывода на страницу портала списка "Последние темы" (там указываются даты последних постов), при выводе списка "Все темы из выбранных разделов" указываются даты создания этих тем, а они могут быть актуальными, многостраничными, но давно созданными.
У меня на форуме юзеры, увидев на вновь установленном портале темы с датами создания, начали спрашивать зачем показывать древние темы?))

Конечно, можно выводить на страницу портала список "Последние темы". Но этот список удачно смотрится только в боковой колонке, а не в центральной части страницы портала.
Title: Re: Light Portal
Post by: Bugo on October 10, 2020, 10:14:31 AM
v1.2

* Fixed found issues
* New feature - "Maximum time after commenting to allow edit your comments"
* New utility classes - Request and Session
* Fixed article dates and links on the portal frontpage
* Update addons:
* Added a possibility to specify the displayed news for the News addon
* Added a parameter "Show avatars" for the Recent Topics addon
* Cosmetic changes for Recent Topics and Recent Posts addons
* Added the custom sorting for frontpage articles
* Added the FrontpageFlarumStyle addon to display topic articles as Flarum style
* Added some new hooks:
* frontpageCustomTemplate
* onDataSaving
* onRemovePages
* onSettingsSaving
* Added a new feature - "View the tag list as article cards"
* Added the ExtUpload addon to upload images via URL (for sponsors)
Title: Re: Light Portal
Post by: forumovod on October 12, 2020, 04:04:34 PM
Quote from: Bugo on October 10, 2020, 10:14:31 AM
v1.2

Спасибо за обновление мода.

Есть такое пожелание: что-то сделать с пустой левой колонкой во FrontpageFlarumStyle addon, когда на форуме мало разделов.
Попробовал туда добавить блоки портала, но они размещаются не в пустом месте колонки, а добавляют еще одну левую колонку.
Title: Re: Light Portal
Post by: forumovod on October 12, 2020, 06:00:05 PM
Или может быть проще не переделывать этот плагин, а добавить похожее оформление в блок "Последние темы"?
Сейчас блок "Последние темы" рассчитан только на узкую боковую колонку, а хотелось бы вывести его по центру.
Title: Re: Light Portal
Post by: forumovod on October 15, 2020, 06:00:20 AM
Another idea to increase the popularity of the addon Light Portal
Еще идея для увеличения популярности мода Light Portal. По русски мне проще объяснить ее суть. ;)

Предлагаю дополнить в настройках портала такую возможность:
При выводе в портал "Все темы из выбранных разделов" можно было бы между выводимых тем вставлять рекламные блоки.
На главной странице портала получилось бы что-то похожее на рекомендательный виджет от РСЯ.

Попробовал показать идею на скриншоте.
Title: Re: Light Portal
Post by: forumovod on October 17, 2020, 12:57:20 PM
Quote from: Bugo on October 10, 2020, 10:14:31 AM

* Added the FrontpageFlarumStyle addon to display topic articles as Flarum style


При выводе на главной портала "Все темы из выбранных разделов" с сортировкой по последнему комментарию и с использованием FrontpageFlarumStyle addon, пользователи не понимают почему в превью показывается автор первого сообщения, а расположенная рядом дата - последнего сообщения? Т.е. автор не соответствует дате сообщения. И эта же дата не соответствует дате поста, который показывается в превью.
Title: Re: Light Portal
Post by: Bugo on October 19, 2020, 04:04:38 PM
Где можно увидеть комментарии этих пользователей?
Title: Re: Light Portal
Post by: forumovod on October 23, 2020, 08:07:29 PM
Quote from: Bugo on October 19, 2020, 04:04:38 PM
Где можно увидеть комментарии этих пользователей?
У меня на форуме)

Вопросы пользователей к админу по поводу показанного превью из первого поста в теме, начатой в 2014 году и помеченного меткой "Новинка"))
QuoteПочему-то вместо последнего сообщения в теме, показывается превью первого.
Вот, например, Мира покупала облигации не сегодня, а в 2014 году.
QuoteКакое то странное отображение тем на главной странице форума. По логике вроде должен последний пост отображаться, а тут смотрю облиги Су обсуждаются, думаю дай зайду, ну неужели ещё актуально
Title: Re: Light Portal
Post by: Diego Andrés on November 01, 2020, 06:26:31 PM
Bugo I discovered a strange thing, if you don't put your hook before the source files in the package_info, it produces an error in the log during the installation of the package.
Title: Re: Light Portal
Post by: Bugo on November 02, 2020, 01:12:48 AM
On Linux only?
Title: Re: Light Portal
Post by: Diego Andrés on November 02, 2020, 10:15:40 AM
I uploaded most recent SMF files from GitHub and it's fixed.
Title: Re: Light Portal
Post by: Slonik :) on November 07, 2020, 01:48:20 PM
Bugo, хорошо бы сделать в режиме "Все активные страницы" возможность показывать не только заголовки, но и содержимое страниц с тегами.

Можно и значки какие-нибудь придумать.

Тогда получится прям готовый движок для организации блога.

:)
Title: Re: Light Portal
Post by: Bugo on November 11, 2020, 12:58:44 AM
v1.3

* Fixed found issues.
* Updated language files.
* Updated some addons.
* Updated some templates.
* Improved frontpage articles.
* Improved some settings.
* Improved keywords field on page adding/editing.
* Improved a display engine of related pages.
* Added new helpers.
* Added a possibility to change sorting types.
* Added a possibility to pin/unpin left & right panels.
* Added a simple toolbar for comment editor.
Title: Re: Light Portal
Post by: Mick. on December 05, 2020, 10:11:49 AM
@Bugo ,

Bro! You've outdone yourself with this portal. I really like it, been testing it here https://www.idesignsmf.com/dev-site2/index.php

Just a couple of things that may be updated....

1. Ability to NOT use Title in blocks. It seems you can only remove the background but not the title.
2. Ability to use intro text with cut-off in front page topic blocks, (like seen on the Flarum plugin)

I did find this in Sources/LightPortal/addons/FrontpageFlarumStyle/Template.php, but it also shows replies when it should be first post only:
if (!empty($topic['teaser'])) {
echo '
<p>
', $topic['teaser'], '
</p>';
}


Also, it seems the sticky block doesn't work on custom themes? I looked and looked for the file to add to my custom theme but cant seem to find it.

Anyways, excellent work you've done here.
-Mick.
Title: Re: Light Portal
Post by: Bugo on December 05, 2020, 01:51:43 PM
I appreciate you saying that :)

1. Titles are only required for pages, aren't they?
(https://i.ibb.co/ckjdTVH/2020-12-05-23-47-29-Firefox-Developer-Edition.png) (https://imgbb.com/)
2. Output arrays on the frontpage articles have a 'teaser' key with the intro text. you can always use FrontpageFlarumStyle addon as an example for your own works to change the front page. Or you can just change ViewFrontPage.template.php :)
3. Problems with alternative themes are quite possible. But I try to test LP with all SMF 2.1 themes that appear here.
For your theme you should add these changes into CSS:

body {/*overflow-x: hidden;/*}
#lp_layout .sticky_sidebar {
    position: sticky;
    top: 100px;
}
Title: Re: Light Portal
Post by: Mick. on December 06, 2020, 09:39:28 AM
@Bugo
Thank you for responding.

1. If I make an HTML block say for Google ads, The title is always visible. (I think it needs an on/off tick to show the title or not)

2.Yes, I understand the "teaser" used in Flarum plugin, but it shows replies too.  I was thinking using that same concept with the topic articles in the front page with the first post only. Attached you can see my topic articles, articles 1 and 2, replies are visible. I'm thinking the first post only as seen on article 3 and 4 but that because no one has replied. Is the a way not to show replies?

Title: Re: Light Portal
Post by: Bugo on December 06, 2020, 11:54:50 AM
1. If a block has no title, the title should not be visible. Titles for blocks are optional. I think you filled the title field to not forget a block's goal, right? I can add a note field for that.
(https://i.ibb.co/j6bZhYV/2020-12-06-21-51-23-Portal-Editing-block-Firefox-Developer-Edition.png) (https://imgbb.com/)

2. Wait for v1.4, I fixed that.
Title: Re: Light Portal
Post by: Mick. on December 06, 2020, 03:51:00 PM
@Bugo

Thank you for all you do bro. Your portal is my new favorite mod.
Title: Re: Light Portal
Post by: Bugo on December 11, 2020, 04:01:42 PM
v1.4


* Fixed found issues
* Added a new section in settings ("Misc")
* Added a new addon - Polls
* Added likes/unlikes for pages
* Added some new helpers
* Added a new addon type - "impex" (import/export)
* Added new addons - TinyPortal and EhPortal(=SimplePortal), to import pages from these mods
* Added alpine.js to improve work with JS
* Added a note field for blocks (for comfort work with untitled blocks in Admin section)
* Added one more option to sorting articles - by the date of update


This update requires to uninstall any previous versions of the LP
Title: Re: Light Portal
Post by: Mick. on December 11, 2020, 05:26:00 PM
Very cool Bugo  ;)

One thing tho'.... I just updated to 1.4 but when adding blocks, clicking on whatever block you want to create, article list, custom bbc, board list, etc.... goes nowhere, You can click but not able to create new block.

Also, cannot create new pages either. Just a heads up buddy.  ;)

The new update fixed the Teaser in the regular blocks in front page. Kudos  :P
Title: Re: Light Portal
Post by: Bugo on December 11, 2020, 11:19:44 PM
Any errors in the console?
Title: Re: Light Portal
Post by: Mick. on December 12, 2020, 07:28:43 AM
Quote from: Bugo on December 11, 2020, 11:19:44 PM
Any errors in the console?
All is good. I had to re-copy the lightportal folder into my theme.

Here's a thing to consider, it seems the new update added the "teaser" in the front blocks too right? The thing is, if that article block has a reply, when clicked it takes you straight to the reply. It should go straight to the first post instead.
Title: Re: Light Portal
Post by: Bugo on December 12, 2020, 07:56:57 AM
It depends on the article sorting type, the article type. For example, if you select "by the last comment" option, the article title will be as the link to the last reply, and the article image will be as the link to the first post. Is it a little confusing?
Title: Re: Light Portal
Post by: Mick. on December 12, 2020, 08:06:40 AM
Quote from: Bugo on December 12, 2020, 07:56:57 AM
It depends on the article sorting type, the article type. For example, if you select "by the last comment" option, the article title will be as the link to the last reply, and the article image will be as the link to the first post. Is it a little confusing?

I see it now.   I changed it in ViewFrontPage.template.php so both links go to the first post.

from:
<a href="', $topic['msg_link'], '">', $topic['subject'], '</a>

to:
<a href="', $topic['link'], '">', $topic['subject'], '</a>

Thank you again bruh!
Title: Re: Light Portal
Post by: pocttopus on December 12, 2020, 10:42:12 AM
Quote from: Bugo on December 11, 2020, 04:01:42 PM
v1.4


* Fixed found issues
* Added a new section in settings ("Misc")
* Added a new addon - Polls
* Added likes/unlikes for pages
* Added some new helpers
* Added a new addon type - "impex" (import/export)
* Added new addons - TinyPortal and EhPortal(=SimplePortal), to import pages from these mods
* Added alpine.js to improve work with JS
* Added a note field for blocks (for comfort work with untitled blocks in Admin section)
* Added one more option to sorting articles - by the date of update


This update requires to uninstall any previous versions of the LP
Thanks!  ;)
Title: Re: Light Portal
Post by: pocttopus on December 14, 2020, 03:09:14 AM
So... what's new in v.1.4.1?
Title: Re: Light Portal
Post by: Bugo on December 14, 2020, 03:42:33 AM

Fixed issues with import from EhPortal/TinyPortal
Fixed issues with comments
Fixed other found issues
Title: Re: Light Portal
Post by: pocttopus on December 14, 2020, 04:25:38 AM
Thanks! This mod is awesome...  ;)
Title: Re: Light Portal
Post by: Mick. on December 25, 2020, 12:17:24 PM
Bro, I would like to find out where to change the post time from Military time to regular time?
Title: Re: Light Portal
Post by: Bugo on December 26, 2020, 12:49:39 AM
Do you mean the time of articles on the frontpage?
Title: Re: Light Portal
Post by: Mick. on December 26, 2020, 12:56:27 AM
Quote from: Bugo on December 26, 2020, 12:49:39 AM
Do you mean the time of articles on the frontpage?
Yes.
Title: Re: Light Portal
Post by: Bugo on December 26, 2020, 01:38:43 AM
/LightPortal/FrontPage.php, replace
$article['date']     = Helpers::getFriendlyTime($article['date']);
with
$article['date'] = timeformat($article['date']);
Then article cards will use forum time format.

Or, you can use your own format here, like this:
$article['date'] = date('F j, Y', $article['date']);
Title: Re: Light Portal
Post by: Mick. on December 26, 2020, 07:50:55 AM
Quote from: Bugo on December 26, 2020, 01:38:43 AM
/LightPortal/FrontPage.php, replace
$article['date']     = Helpers::getFriendlyTime($article['date']);
with
$article['date'] = timeformat($article['date']);
Then article cards will use forum time format.

Or, you can use your own format here, like this:
$article['date'] = date('F j, Y', $article['date']);
That worked. Thank you.
Title: Re: Light Portal
Post by: Mick. on December 27, 2020, 12:45:35 PM
Bugo,
I'd would like to make a suggestion....

Topic articles in the front page image and title link point to:
https://www.idesignsmf.com/index.php?topic=596.new;topicseen#new   

I think it should be just the actual link of post.
https://www.idesignsmf.com/index.php?topic=596.0

I looked around and found this bit in TopicArticle.php

'link'        => $scripturl . '?topic=' . $row['id_topic'] . ($row['new_from'] > $row['id_msg_modified'] ? '.0' : '.new;topicseen#new'),

This is where the change should be? Or do I need to look somewhere else?
Title: Re: Light Portal
Post by: Bugo on December 27, 2020, 03:24:54 PM
Yes, this is what you need. Do not forget to clean the SMF cache after your changes.
Title: Re: Light Portal
Post by: Mick. on December 27, 2020, 03:43:04 PM
Quote from: Bugo on December 27, 2020, 03:24:54 PM
Yes, this is what you need. Do not forget to clean the SMF cache after your changes.
Thank you. That did it. I had forgotten to clear cache lol
Title: Re: Light Portal
Post by: Mick. on December 30, 2020, 05:44:21 PM
Bugo, The sticky thingy on either left or right blocks, is it pure css or is it using javascript? I can't seem to find the js. I have a custom theme and the sticky it's not reading the anchor. #header or whatever the class may be. I need to find out tho so I can make the changes. Ty.
Title: Re: Light Portal
Post by: Bugo on December 31, 2020, 10:18:27 AM
Just a CSS

For your theme you should add these changes into CSS:

body {
    overflow-x: visible !important;
}

#lp_layout .sticky_sidebar {
    position: sticky;
    top: 100px;
}
Title: Re: Light Portal
Post by: Mick. on December 31, 2020, 10:44:34 AM
Quote from: Bugo on December 31, 2020, 10:18:27 AM
Just a CSS

For your theme you should add these changes into CSS:

body {
    overflow-x: visible !important;
}

#lp_layout .sticky_sidebar {
    position: sticky;
    top: 100px;
}

Yup. I was missing the body part. Alls good. Ty
Title: Re: Light Portal
Post by: Bugo on January 01, 2021, 01:49:47 AM
v1.5


* Fixed found issues
* Updated some template files
* Updated addons
* Updated language files
* Added a portal.php file into the package (as an example for the standalone mode)
* Added new addons: Search, and BoardStats
* Added a sample example of a custom template for article pages
* Added new frontpage modes
* Added new settings for customizing article cards
* Added the plugin maker wizard to create simple addon skeletons
Title: Re: Light Portal
Post by: Mick. on January 01, 2021, 07:51:01 AM
Unable to load the 'plugin_post' template.  :o  Happens when trying to add plugin
Title: Re: Light Portal
Post by: Bugo on January 01, 2021, 09:36:57 AM
Just extract Sources and Themes dir from the package to your forum root.
Title: Re: Light Portal
Post by: Mick. on January 01, 2021, 11:59:31 AM
Quote from: Bugo on January 01, 2021, 09:36:57 AM
Just extract Sources and Themes dir from the package to your forum root.
Got it. Ty.
Title: Re: Light Portal
Post by: Bugo on February 02, 2021, 01:40:06 AM
v1.6
* Dropped support for SMF 2.1 RC2
* Increased a minimum PHP version to 7.3
* Added a small documentation (https://dragomano.github.io/Light-Portal/)
* Added a new addon - EzPortal, for import pages from ezPortal
* Added page categories
* Changed the structure of tags table
* Improved "Keywords" field on Page add/edit area
* Added new fields for pages: "Category" and "Transfer of authorship"
* Added a possibility to show pages (links) in the main menu
* Added icons for pages (for the main menu)
* Changed template views for some areas
* Changed some settings
* Updated some addons
* Fixed found issues

How to upgrade from the previous version
* Do not forget to backup your changed templates and styles ;)
* Uninstall the previous version (if you want to save your blocks and pages, do not enable the "Remove all data associated with this modification" option)
* Update your forum to SMF 2.1 RC3+, update your PHP version to 7.3+
* Install the new version
Title: Re: Light Portal
Post by: Papoune57 on March 02, 2021, 01:33:11 PM
First french translation for Light Portal
Includ UTF8
Title: Re: Light Portal
Post by: Bugo on March 02, 2021, 11:59:02 PM
v1.7
* Fixed found errors.
* Changed the set of returned fields when selecting articles on the frontpage.
* The getTeaser() helper now removes all HTML and PHP tags from the transmitted text, and returns the first paragraph, or " ... " if there is no text.
* Updated the design of the buttons in the page comments.
* Comments that have already been answered by someone can no longer be edited.
* Updated templates for the design of article cards on the frontpage.
* Updated templates for page and block management areas.
* Updated the portal component information area.
* Updated the styling of checkboxes on the plugin/page/block setting areas.
* Added new settings for plugins.
* Updated plugins:
   * FlarumStyle now works with portal pages as well.
   * CodeMirror now supports HTML highlighting and Markdown, which is sure to appeal to anyone who likes to work with code directly, without visual editors.
   * The functionality for adding a block with Markdown content has been moved from EasyMarkdownEditor to the Markdown plugin.
* Removed the slider plugins in favor of a new, on pure JavaScript.
* Added plugins:
   * Disqus (the comments for pages)
   * InstagramFeed (block) - thank you for the idea to the author of the article on https://www.idesignsmf.com/
   * Optimus (keywords and topic descriptions in the article cards on the home page)
   * DevTools (tools for plugin developers and template creators)
   * TinySlider (image slider - instead of deleted plugins)
* Updated language files.
* Updated documentation.
* Added French translation (thanks to Papoune57).
Title: Re: Light Portal
Post by: Papoune57 on March 03, 2021, 10:07:43 AM
French translation REV 1.1 for Light Portal
8 fixes have been made
Title: Re: Light Portal
Post by: Papoune57 on March 03, 2021, 11:13:27 AM
French translation REV 2.0

Changes made for Light Portal version 1.7
Title: Re: Light Portal
Post by: Mick. on March 07, 2021, 08:53:45 AM
I installed 1.7. I see you re-wrote plenty of code as well as the css. lol total re-write to my custom code, no biggie.

I have an issue tho'.

In ViewFrontPage.template.php

if (!empty($article['teaser'])) {
echo '
<p>', $article['teaser'], '</p>';
}


Code is there but is not showing the teaser in front page. Was there an option to display the amount of characters in the old version? I can't seem to find it. I think I had it set to 150 characters.

I'm using Template layout for article cards Default mode.

Checkout my test board. I just installed 1.7 and same thing... oddly enuff only 2 posts are showing the topic teaser... https://www.idesignsmf.com/dev-site2/index.php
Title: Re: Light Portal
Post by: Mick. on March 07, 2021, 09:46:23 AM
Bugo, Nevermind. All's good. I didnt realize that Topic description [SEO] is the article teaser. This has to be populated when creating a topic so it shows in front page. Perhaps add a notice somewhere? I almost pulled my hair figuring this out.
Title: Re: Light Portal
Post by: Bugo on March 07, 2021, 11:55:59 AM
Quote from: Mick. on March 07, 2021, 09:46:23 AM
I didnt realize that Topic description [SEO] is the article teaser.
If a topic has a filled OP description, it will be used. If not, the text from the first post will be used (if you enabled the Optimus addon for LP).
Quote from: Mick. on March 07, 2021, 08:53:45 AM
Was there an option to display the amount of characters in the old version? I can't seem to find it. I think I had it set to 150 characters.
The number of symbols in the teaser is now not configurated, the entire content of the post is used. But only the first 3 lines are displayed, according to the CSS settings for the p tag inside the current frontpage's template.
Title: Re: Light Portal
Post by: Mick. on March 07, 2021, 12:01:25 PM
Quote from: Bugo on March 07, 2021, 11:55:59 AM
Quote from: Mick. on March 07, 2021, 09:46:23 AM
I didnt realize that Topic description [SEO] is the article teaser.
If a topic has a filled OP description, it will be used. If not, the text from the first post will be used (if you enabled the Optimus addon for LP).
Quote from: Mick. on March 07, 2021, 08:53:45 AM
Was there an option to display the amount of characters in the old version? I can't seem to find it. I think I had it set to 150 characters.
The number of symbols in the teaser is now not configurated, the entire content of the post is used. But only the first 3 lines are displayed, according to the CSS settings for the p tag inside the current frontpage's template.
Gotcha. Thank you for clarifying.
Title: Re: Light Portal
Post by: gevv on March 09, 2021, 12:41:52 PM
Thanks @Bugo nice mod.

Turkish translation. Light Portal version 1.7

Title: Re: Light Portal
Post by: Bugo on April 04, 2021, 07:57:58 AM
v1.7.1
* Fixed found issues
* Added Turkish translation (thanks to gevv)
* Updated translations
* Optimized JS/CSS
* Updated some addons
Title: Re: Light Portal
Post by: jsx on April 04, 2021, 10:13:47 AM
How to disable display of portal blocks in the main forum?
Title: Re: Light Portal
Post by: Bugo on April 04, 2021, 12:09:14 PM
In the block settings.
Title: Re: Light Portal
Post by: jsx on April 05, 2021, 07:53:50 AM
In Access and placement, in the Actions field "all" is entered. So I entered "portal" command in all blocks and now the blocks are not displaying on the forum. Well, if that's the command, I'm glad it's so easy to change.

@Bugo

Are you going to implement any of these additions to Light Portal in the future?

- Creating articles and publishing them (TinyPortal and SMFPacks CMS have this capability)

- Blog (SMFPacks CMS has this feature)

- Slider system similar to the slider in SMFPacks CMS

- Shoutbox (TinyPortal has this feature)

Your Portal mod has great potential, contains many extras. It's fresh.
Title: Re: Light Portal
Post by: Bugo on April 05, 2021, 10:57:33 AM
Everything is possible. But let us not compare a free modification with a paid one :)
At this moment, LP has a simple plugin system and anyone can add a blog, a slider, and a chat as a custom addon.
Title: Re: Light Portal
Post by: jsx on April 05, 2021, 01:17:22 PM
I understand, I hope that developers will create add-ons for Light Portal.

You are not going to add the article creation system? You probably prefer some developer to add such a system as an add-on. I think that the portal should have a system for adding articles.

Title: Re: Light Portal
Post by: Bugo on April 05, 2021, 11:59:13 PM
How does the current system with portal pages differ from articles?
Title: Re: Light Portal
Post by: jsx on April 07, 2021, 03:28:22 AM
Ok, I checked the page/article creation system.

If I add a photo to the article, then the main page does not contain short content, only three dots are displayed. I added a sample photo 700x250, I understand that this photo may be too large. I think it should be possible to set the width and height of the image thumbnail or article window.

(https://i.imgur.com/6LYFlvY.png)

(https://i.imgur.com/xI9SHbV.png)

So is it now possible to adjust the height and width of the article window to the size shown in this screen? (orange frame)

(https://i.imgur.com/8GrhAxm.png)

And is it now possible to create a text window over articles? I mean such a window (green frame).
Title: Re: Light Portal
Post by: forumovod on April 07, 2021, 08:53:50 AM
Bugo

Не совсем понятна логика настройки показов блоков.
Например, если создать "Блок с HTML-кодом" и в нем выбрать в Правах доступа "Показывать всем", то гостям блок не показывается. Нужно переходить в настройки портала "Права доступа" и там включать доступ для гостей "Кто может просматривать элементы портала".
Title: Re: Light Portal
Post by: Bugo on April 07, 2021, 12:08:01 PM
Quote from: jsx on April 07, 2021, 03:28:22 AM
If I add a photo to the article, then the main page does not contain short content, only three dots are displayed. I added a sample photo 700x250, I understand that this photo may be too large. I think it should be possible to set the width and height of the image thumbnail or article window.
You can use CSS for that. What page type did you use? HTML? BBC?

Quote
So is it now possible to adjust the height and width of the article window to the size shown in this screen? (orange frame)
Go to the portal settings, set "Number of columns for displaying articles" to "2 columns". Other things (width, height, etc) can be changed via HTML/CSS by creating your own template layout for the front page.

Quote
And is it now possible to create a text window over articles? I mean such a window (green frame).
Of course, it is a simple block with HTML/Markdown content within the Top Center/Header panels.

Quote from: forumovod on April 07, 2021, 08:53:50 AM
Не совсем понятна логика настройки показов блоков.
Например, если создать "Блок с HTML-кодом" и в нем выбрать в Правах доступа "Показывать всем", то гостям блок не показывается. Нужно переходить в настройки портала "Права доступа" и там включать доступ для гостей "Кто может просматривать элементы портала".
Please use the Russian Support forum (https://dragomano.ru/forum/index.php?board=4.0) for your questions.
Title: Re: Light Portal
Post by: jsx on April 07, 2021, 01:32:33 PM
QuoteWhat page type did you use? HTML? BBC?

I created a test HTML and BBC article and in these two types it's the same with this image thumbnail on the home page.

QuoteGo to the portal settings, set "Number of columns for displaying articles" to "2 columns". Other things (width, height, etc) can be changed via HTML/CSS by creating your own template layout for the front page.

I have 2 columns set up, but in my opinion the article window is too high and wide. This is just my opinion, but I think that Nibogo on his portal used a good article window size. And the user's avatar is displayed, in my opinion, this diversifies the appearance of the article window. Maybe you like the current look of the article window in LP and I understand it, but maybe you will improve it someday. I would like to try to set it the same. How do I add my own HTML/CSS template for the home page for the article window?

QuoteOf course, it is a simple block with HTML/Markdown content within the Top Center/Header panels.

Thanks for the tip.

Currently, when I save any setting, e.g. in block editing, I am automatically moved to the main block management. It is annoying that every time I save a setting, it move me from the setting to the previous page. Have you thought to change it?
Title: Re: Light Portal
Post by: Bugo on April 08, 2021, 12:08:06 AM
Quote from: jsx on April 07, 2021, 01:32:33 PM
How do I add my own HTML/CSS template for the home page for the article window?
All templates are located in /Themes/default/LightPortal dir. See this documentation (https://dragomano.github.io/Light-Portal/#/basics/customizing?id=settings-for-the-frontpage-and-articles).

Quote
Currently, when I save any setting, e.g. in block editing, I am automatically moved to the main block management. It is annoying that every time I save a setting, it move me from the setting to the previous page. Have you thought to change it?
You do not need to save the settings on each tab, just change the necessary ones and the "Save" button will apply all the changes. Well, I can add buttons like "Save and Exit" and "Save". I just did not think that the user needed to stay in the block editing window after saving the settings.
Title: Re: Light Portal
Post by: pocttopus on June 07, 2021, 04:10:52 AM
What's new in 1.8?

After installing/updating from 1.7.1 I have these issues at 1.8:

Sorry but the file specified could not be opened: /home/xxx/public_html/Sources/LightPortal/Settings.php

/home/xxx/public_html/Sources/LightPortal/Settings.php (Line 454)

I am not able to see line 454 with browser, I must go through the hosting and see what's inside.
Title: Re: Light Portal
Post by: Bugo on June 07, 2021, 05:29:22 PM
v1.8

* Fixed found issues
* Added filter by plugins
* Added "Show pagination" option for the main page
* Added separate styles for some plugins
* Changed some templates


Quote from: pocttopus on June 07, 2021, 04:10:52 AM
After installing/updating from 1.7.1 I have these issues at 1.8:

Sorry but the file specified could not be opened: /home/xxx/public_html/Sources/LightPortal/Settings.php

/home/xxx/public_html/Sources/LightPortal/Settings.php (Line 454)
Temporarily disable such addons like FacebookComments, VkComments, etc.
Title: Re: Light Portal
Post by: Bugo on July 24, 2021, 01:07:44 AM
v1.8.1

* Fixed found issues
* Added simple pagination for the frontpage articles
* Improved plugin settings
* Updated some plugins
Title: Re: Light Portal
Post by: Bugo on August 10, 2021, 10:24:23 PM
A small survey for users (https://docs.google.com/forms/d/e/1FAIpQLSdDuAppBChevEdDEF4z4MJQmMwDHgLE6ps7sizj53nEpN1-Lg/viewform)
Title: Re: Light Portal
Post by: Bugo on August 28, 2021, 11:26:34 AM
v1.9

* Improved the plugin system.
* The function of adding a new plugin is moved from the portal code to a separate addon (PluginMaker).
* The AdsBlock addon: added parameters "Loader code" (code to be loaded inside <head></head> tags) and "End time" (the blocks will be automatically disabled if the end time is enabled).
* Various user interface improvements.
portal_preview_1.png
* Added several new templates for the frontpage.
* The InstagramFeed addon was removed.
* Added block with visualization of portal cache usage (enabled in the portal settings, Advanced tab).
portal_preview_4.png
* Added InitialAvatars addon which generates SVG avatars from the member initials.
* Properly packaged addons can now be installed as regular modifications via the SMF Package Manager.
portal_preview_2.png
* Added Pug addon, with support for appropriate syntax in pages and blocks. Pug markup, like Markdown, makes it easier to write HTML code. Correspondingly, support for Pug syntax by the CodeMirror addon has been added.
portal_preview_6.png
portal_preview_5.png
* Updated block classes and styles. There are currently 120 different design variants available.
* Returned the ability to assign permissions for creating your own portal blocks.
* Added option to enable weekly optimization of portal tables.
* Added options for compatibility mode, in which, for example, the portal action can be changed from "portal" to another to use Light Portal simultaneously with other similar modifications.
* Added a SimpleMenu addon.
* Fixed found issues.

Note: Large addons (currently InitialAvatars, PluginMaker, Pug) are not included in the portal package, but can be downloaded and installed separately, as regular SMF modifications.


How to upgrade (if you want to save blocks and pages):

0) Upgrade to v1.8.2 (just copy the contents of the Sources directory from the archive over the same directory on your server, replacing the files).
1) Make an export of pages and blocks.
2) Delete the portal completely, including the tables added to the database.
3) Install the new version.
4) Make import pages and blocks.

Light Portal is always waiting for new localizers, frontpage theme makers, and testers ;)
Title: Re: Light Portal
Post by: Mick. on August 28, 2021, 12:42:02 PM
Very nice. I'll update tonight  8)
Title: Re: Light Portal
Post by: Mick. on August 28, 2021, 12:43:00 PM
Oh and yes, glad you removed the Instagram block. The developers quit it since Instagram kept updating their code lol
Title: Re: Light Portal
Post by: Diego Andrés on August 28, 2021, 01:19:36 PM
Neat update Bugo, I love the package manager integration is very useful one of my new favorite hooks
Title: Re: Light Portal
Post by: Mick. on August 28, 2021, 07:05:45 PM
I was able to export Blocks  ;) But,....

It failed to export Pages.

Fatal error: Uncaught Error: Class 'Bugo\LightPortal\Category' not found in /home/***/www/idesignsmf.com/public_html/Sources/LightPortal/impex/PageExport.php:218 Stack trace: #0 /home/***/www/idesignsmf.com/public_html/Sources/LightPortal/impex/PageExport.php(260): Bugo\LightPortal\Impex\PageExport->getCategories() #1 /home/***/www/idesignsmf.com/public_html/Sources/LightPortal/impex/AbstractExport.php(31): Bugo\LightPortal\Impex\PageExport->getXmlFile() #2 /home/***/www/idesignsmf.com/public_html/Sources/LightPortal/impex/PageExport.php(44): Bugo\LightPortal\Impex\AbstractExport->run() #3 /home/***/www/idesignsmf.com/public_html/Sources/Subs.php(5278): Bugo\LightPortal\Impex\PageExport->main() #4 /home/***/www/idesignsmf.com/public_html/Sources/LightPortal/Settings.php(866): call_helper(Array) #5 /home/***/www/idesignsmf.com/public_html/Sources/LightPortal/Settings.php(774): Bugo\LightPortal\Settings->loadGeneralSettingParameters(Array, 'main') #6 /home/***/www/idesignsmf.com/publi in /home/***/www/idesignsmf.com/public_html/Sources/LightPortal/impex/PageExport.php on line 218
Title: Re: Light Portal
Post by: Bugo on August 28, 2021, 08:59:19 PM
@Mick., the update 1.8.2 fixes the export.
Title: Re: Light Portal
Post by: Mick. on August 28, 2021, 09:17:47 PM
Quote from: Bugo on August 28, 2021, 08:59:19 PM@Mick., the update 1.8.2 fixes the export.
Got it. I did'nt know there was 1.8.2 That fixed it but, FYI,  I got an error when export blocks:
QuoteFatal error: require_once(): Failed opening required '/home/***/www/idesignsmf.com/public_html/Sources/LightPortal/addons/AdsBlock/Template.php' (include_path='.:/usr/local/php74/pear') in /home/***/www/idesignsmf.com/public_html/Sources/LightPortal/addons/AdsBlock/AdsBlock.php on line 220

I turned it off in Plugins page and it worked.
Title: Re: Light Portal
Post by: Bugo on September 01, 2021, 08:07:52 AM
v1.9.1

* Fixed found issues
* Updated some addons
* Improved the compatibility mode
* Added some visual improvements

How to update from v1.9:
* Remove the addons dir
* Just extract Sources and Themes folders from the modification package replacing the existing ones

How to update from v1.8 and below:
* See this post (https://www.simplemachines.org/community/index.php?msg=4095689)
Title: Re: Light Portal
Post by: Mick. on September 01, 2021, 10:23:47 AM
Hey bro, in version 1.9 I'm trying to change this from 150 to 350 but is not changing. Is there another place that might be over-riding the changes that I need to know?

.article_list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
grid-gap: 0 10px;
}

The article list is bunched up at 150px. For my design, I need to change it to 350px;
https://www.idesignsmf.com/index.php?page=themes
Title: Re: Light Portal
Post by: Mick. on September 01, 2021, 11:11:26 AM
Nevermind... Found it hidden in Sources.  ArticleList/style.css  had to comment it out in portal.css

.article_list {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
   grid-gap: 0 10px;
}
Title: Re: Light Portal
Post by: Bugo on September 08, 2021, 09:39:14 PM
v1.9.2

* Fixed found issues
* Added support for special custom template layers (https://dragomano.github.io/Light-Portal/#/layouts/create_new)
* Added new hooks
* Updated docs
* Added Javascript Color Picker for addon's settings with input type="color"
Title: Re: Light Portal
Post by: Bugo on September 28, 2021, 10:23:47 PM
v1.9.3

* Various UI improvements
* Added a setting to manage loading FontAwesome library
* Fixed found issues
* Updated Spanish translation
Title: Re: Light Portal
Post by: AppleCrazy on October 04, 2021, 12:19:46 PM
How are you, good morning

I have a question, when I go to add-ons it throws me this error:

(https://i.imgur.com/gkcIWTV.png)
Title: Re: Light Portal
Post by: Bugo on October 04, 2021, 01:30:21 PM
Spanish? With the latest version? Remove /Sources/LightPortal/addons/TagList and /Sources/LightPortal/addons/TopBoards dirs. The fixed versions of these addons you can fetch from the Github repository.

Or you can add missing commas (https://github.com/dragomano/Light-Portal/commit/2dff929782eb5c5c3289b22f64616071c086c7c9) in Spanish translation
Title: Re: Light Portal
Post by: AppleCrazy on October 04, 2021, 02:27:41 PM
Quote from: Bugo on October 04, 2021, 01:30:21 PMSpanish? With the latest version? Remove /Sources/LightPortal/addons/TagList and /Sources/LightPortal/addons/TopBoards dirs. The fixed versions of these addons you can fetch from the Github repository.

Or you can add missing commas (https://github.com/dragomano/Light-Portal/commit/2dff929782eb5c5c3289b22f64616071c086c7c9) in Spanish translation

Yes Spanish, the error is given to me when I go to: Admin -> Portal -> Plugins
Title: Re: Light Portal
Post by: Bugo on October 04, 2021, 09:43:13 PM
Ok, try out the new version - v1.9.4

* Added new addon types
* Updated language files
* Updated some templates
* Updated some addons
* Added new addons:
    * BootstrapIcons
    * ExtendedMetaTags
* Fixed found issues
Title: Re: Light Portal
Post by: pocttopus on October 05, 2021, 03:43:29 AM
Where can I use FontAwesome icons?
Title: Re: Light Portal
Post by: Bugo on October 05, 2021, 04:16:55 AM
Everywhere, via <i class="icon_code"></i>
Title: Re: Light Portal
Post by: AppleCrazy on October 05, 2021, 11:13:13 AM
Quote from: Bugo on October 04, 2021, 09:43:13 PMOk, try out the new version - v1.9.4

* Added new addon types
* Updated language files
* Updated some templates
* Updated some addons
* Added new addons:
    * BootstrapIcons
    * ExtendedMetaTags
* Fixed found issues


It has already been fixed with the new update, thanks
Title: Re: Light Portal
Post by: Bugo on October 19, 2021, 11:03:34 PM
v1.9.5

* All found issues have been fixed
* Some addons have been updated
* Some backend and frontend areas have been improved
* There is a new addon for sponsors - ImageUpload
* Markdown addon has been greatly improved and moved to a downloadable package
* Feature "Main Menu Items & Icons" (for pages) has been improved and moved to a separate addon (MainMenu)
Title: Re: Light Portal
Post by: Bugo on October 31, 2021, 10:02:30 PM
v1.9.6

* Added a possibility to toggle addon list view (as cards or lists)
* Added new addons: HelloPortal (interactive tour to introduce the portal settings), PageLikes, and Twig (content parser for blocks and pages)
* Updated addons
* Updated scripts and styles
* Updated page template
* Removed some page settings
* Fixed found issues
* Updated page comment system

All current translations moved to Crowdin (https://crowdin.com/project/light-portal)

[changed url as requested ~ Shadav]
Title: Re: Light Portal
Post by: Diego Andrés on November 07, 2021, 02:22:24 PM
When uninstalling I got this error
Uncaught Error: Class 'Bugo\LightPortal\Debug' not found
Title: Re: Light Portal
Post by: wylekk on November 28, 2021, 07:47:24 AM
Hi Bugo.

I decided to upgrade, but starting from version 1.9 to 1.9.6 the error :(


Unknown column 'b.user_id' in 'field list'
Файл:________\SMF21rc4\Sources\LightPortal\Block.php
Строка: 102
Title: Re: Light Portal
Post by: jsx on November 28, 2021, 02:44:30 PM
In plugins, I can't turn off Trumbowyg - after switching to off, this feature is still on.

Light Portal 1.9.6
Title: Re: Light Portal
Post by: Bugo on December 01, 2021, 01:08:07 AM
Quote from: wylekk on November 28, 2021, 07:47:24 AMHi Bugo.

I decided to upgrade, but starting from version 1.9 to 1.9.6 the error :(


Unknown column 'b.user_id' in 'field list'
Файл:________\SMF21rc4\Sources\LightPortal\Block.php
Строка: 102
You can add the necessary column by manual, or install updates one by one.
Можно добавить необходимый столбец вручную, или устанавливать обновления по порядку.

Quote from: jsx on November 28, 2021, 02:44:30 PMIn plugins, I can't turn off Trumbowyg - after switching to off, this feature is still on.

Light Portal 1.9.6
Thanks, I will check it.
Title: Re: Light Portal
Post by: wylekk on December 01, 2021, 10:16:54 AM
Добавил столбец и ....Light Portal 1.9.6 заработал как часики :)
Title: Re: Light Portal
Post by: Bugo on December 02, 2021, 02:00:05 AM
Quote from: jsx on November 28, 2021, 02:44:30 PMIn plugins, I can't turn off Trumbowyg - after switching to off, this feature is still on.

Light Portal 1.9.6
Did you try to empty the cache?
Does it cause with the Trumbowyg addon only?

Click on the icon "Information for debugging" in the portal general settings, copy the text, and send me via PM.
Title: Re: Light Portal
Post by: goaroundstravel on December 02, 2021, 06:19:38 AM
yhank you so much :D
Title: Re: Light Portal
Post by: jsx on December 02, 2021, 09:54:56 AM
Quote from: Bugo on December 02, 2021, 02:00:05 AMDid you try to empty the cache?

Yes, but the feature is still turned on even though I turned it off before.

Quote from: Bugo on December 02, 2021, 02:00:05 AMDoes it cause with the Trumbowyg addon only?

Yes.
Title: Re: Light Portal
Post by: Bugo on December 04, 2021, 12:20:04 PM
v1.10

* Fixed found issues
* Updated some translations
* Updated some addons
* Updated docs
* Added a new SEO addon for sponsors - IndexNow
* Refactor some code

P.S. IndexNow (https://www.indexnow.org/index) is an easy way for websites owners to instantly inform search engines about latest content changes on their website
Title: Re: Light Portal
Post by: pocttopus on December 07, 2021, 03:58:37 PM
Hello @Bugo
I have recieved these errors after installing 1.10 version on 2.1RC3
Also, I am not able to open page for plugins, white screen displayed without anything.  :-\

Thanks for your support.


/home/xxx/public_html/Sources/LightPortal/ManagePlugins.php (Line 166) ==>166:     'composer'   => $this->hasComposerJson($addonClass),8: Undefined variable: addonClass
Title: Re: Light Portal
Post by: marcosbr on December 07, 2021, 06:37:33 PM
Me either

 "I am not able to open page for plugins, white screen displayed without anything."
Title: Re: Light Portal
Post by: Bugo on December 07, 2021, 10:48:15 PM
v1.10.1

* Fixed found issues
How to update: just extract the directories Themes and Sources from the modification archive to the root of your forum, over the existing ones
Title: Re: Light Portal
Post by: pocttopus on December 07, 2021, 11:07:37 PM
Everything went fine after replacing Themes and Sources but the version stays as 1.10 instead of 1.10.1

Other issue after updating folders but I don't know if this error message is related with LightPortal or FaBoardIcons mod?

8: Undefined index: name /home/xxx/public_html/Sources/LightPortal/addons/FaBoardIcons/FaBoardIcons.php (Line 64) ==>64:     $boards[$row['id_board']]['name'] = '<i class="' . $icon . ' fa"' . (!empty($color) ? ' style="color: ' . $color . '"' : '') . '></i> ' . $boards[$row['id_board']]['name'];
Title: Re: Light Portal
Post by: Bugo on December 08, 2021, 12:57:57 AM
Quote from: pocttopus on December 07, 2021, 11:07:37 PMEverything went fine after replacing Themes and Sources but the version stays as 1.10 instead of 1.10.1
Make sure you replaced Integration.php in /Sources/LightPortal

Quote from: pocttopus on December 07, 2021, 11:07:37 PMOther issue after updating folders but I don't know if this error message is related with LightPortal or FaBoardIcons mod?

8: Undefined index: name /home/xxx/public_html/Sources/LightPortal/addons/FaBoardIcons/FaBoardIcons.php (Line 64) ==>64:     $boards[$row['id_board']]['name'] = '<i class="' . $icon . ' fa"' . (!empty($color) ? ' style="color: ' . $color . '"' : '') . '></i> ' . $boards[$row['id_board']]['name'];
This is the addon error. Open /Sources/addons/FaBoardIcons/FaBoardIcons.php, and replace
'name' with
'title'
Title: Re: Light Portal
Post by: pocttopus on December 08, 2021, 03:14:13 AM
Thanks! ;)
Title: Re: Light Portal
Post by: marcosbr on December 08, 2021, 07:23:20 PM
Sorted out. 
Grateful!
Title: Re: Light Portal
Post by: wylekk on December 12, 2021, 12:53:08 PM
7c0ec568e06da45d8d8834812ee24c42
 /index.php?action=portal;start=12
/Sources/LightPortal/addons/RssFeed/RssFeed.php (Line 102)  Backtrace information

Type of error: General
Error messageSelect
2: simplexml_load_string(): </html>
15099




 7c0ec568e06da45d8d8834812ee24c42
/index.php?action=portal;start=12
/Sources/LightPortal/addons/RssFeed/RssFeed.php (Line 102)  Backtrace information

Type of error: General
Error messageSelect
2: simplexml_load_string(): Entity: line 1810: parser error : Premature end of data in tag html line 2

I installed the RSS Feed block. There are errors in the logs.
Question - does this block create an RSS feed or just specify the address of the feed and it shows it?

Установил блок Лента RSS. В логах ошибки.
Вопрос - этот блок создает RSS-ленту или просто указывать адрес ленты и он показывает ее?
Title: Re: Light Portal
Post by: Bugo on December 12, 2021, 11:24:19 PM
The addon uses simplexml_load_string for parsing, then properties link, pubDate, title, and description of each feed item are displayed inside the HTML block.
Try other RSS addresses, maybe the error is in your feed.

2 вариант. Идёт запрос ленты с помощью simplexml_load_string, затем внутри html-блока отображаются свойства link, pubDate, title, description каждого элемента ленты.
Попробуйте другие адреса, возможно, ошибка в конкретной ленте.
Title: Re: Light Portal
Post by: Mick. on December 17, 2021, 03:27:18 PM
@Bugo I have a suggestion...

Make pages to have the ability not to show the H2 page title. Same thing you did for blocks few versions back.

***There are pages that don't need it's title displayed when you have created a custom page. For example... https://www.idesignsmf.com/index.php?page=themes I had the title "Custom SMF Themes" removed along with the edit icon from the file but after I upgraded, is back. No biggie, I'll remove it again soon.

Ty.  ;)
Title: Re: Light Portal
Post by: Bugo on December 17, 2021, 03:53:05 PM
@Mick., should this new option hide the title only? Or even the author name, date, and the "Edit" icon?
Title: Re: Light Portal
Post by: Mick. on December 17, 2021, 04:10:21 PM
Quote from: Bugo on December 17, 2021, 03:53:05 PM@Mick., should this new option hide the title only? Or even the author name, date, and the "Edit" icon?

The author name and date is optional already in the mod. That's good. I'm just thinking the Title to be optional as well. Now the edit Icon, if it's not too much, might as well make it a global option.
Title: Re: Light Portal
Post by: Mick. on January 26, 2022, 12:00:25 PM
@Bugo
I noticed you use loading="lazy" for the avatar in the front page and article list. I would like to add it to the image as well (frontpage) but seems is not working, verified using developer console.

echo '
<div class="card_img"></div>
<a href="', $article['link'], '">
<div class="card_img_hover" style="background-image: url(\'', $article['image'], '\')" title="', $article['title'], '"></div>
</a>';

Do you have a different method?
Title: Re: Light Portal
Post by: Bugo on January 27, 2022, 01:54:39 AM
Quote from: https://web.dev/i18n/en/lazy-loading-images/Browser-level lazy-loading does not apply to CSS background images, so you need to consider other methods
I will try to apply any lazy-loading libraries to solve it.
Title: Re: Light Portal
Post by: Bugo on January 27, 2022, 04:57:51 AM
Well, there is a simple solution with LazyLoad (https://github.com/verlok/vanilla-lazyload#-demos) script:

            echo '
                <div class="card_img"></div>
                <a href="', $article['link'], '">
                    <div class="card_img_hover lazy" data-bg="', $article['image'], '" title="', $article['title'], '"></div>
                </a>';

In FrontPage.php find show method and add this code after loadTemplate('LightPortal/ViewFrontPage');:
loadJavaScriptFile('https://cdn.jsdelivr.net/npm/vanilla-lazyload@17/dist/lazyload.min.js', ['external' => true]);
addInlineJavaScript('
new LazyLoad();', true);

I will apply this feature in v2.0
Title: Re: Light Portal
Post by: Mick. on January 27, 2022, 06:34:20 AM
Perfect. This sped up my site. Ty.
Title: Re: Light Portal
Post by: pocttopus on February 06, 2022, 06:56:30 AM
Is there any update? Because it's listed latest from the newest updates and yet stays the same version 1.10.1 ???
Title: Re: Light Portal
Post by: Bugo on February 06, 2022, 11:52:34 PM
I am waiting for SMF 2.1. Then I can release updates of LP and Optimus.
Title: Re: Light Portal
Post by: pocttopus on February 07, 2022, 07:13:07 AM
@Bugo 2.1 is coming very soon? Yuhuuuu...  :D
Title: Re: Light Portal
Post by: Bugo on February 09, 2022, 09:06:30 PM
v2.0 beta
* Fixed found issues
* Migrated to PHP 7.4
* Migrated to AlpineJS 3.x
* Improved UI a bit
* Added Uicons and FontAwesome6 add-ons
* Added a hook to change UI icons
* Updated translations
* Updated documentation
* Improved translating depending on language plural rules or even user gender
* Improved work with different locales
* Added "Promote to front page" and "Remove from front page" buttons in topics/pages (works if you choose "Selected pages" or "Selected topics" mode for the portal front page)
* User blocks are now visible only to their authors
* Added 2 new add-on types - icons and SEO
* Added lazy loading for background images in the front page templates
* And many other minor changes

How to update:
* Make export for blocks and pages (optional)
* Uninstall the previous version
* Make sure that the intl extension is enabled on your server.
* Update your forum to SMF 2.1 Final
* Install the new version (v2.0 beta)

P. S. Did you know that there are several Easter eggs hidden in the portal areas? Has anyone found them yet? If you find them, tell me about it via PM, but do not tell others where to find them. Let all the treasure hunters enjoy :)
Title: Re: Light Portal
Post by: Tekyürek replikacep.com on February 11, 2022, 05:19:57 PM
please don't insist to use php 7.4 i am using php 7.0

it's causally not every mod compatible with 7.4
Title: Re: Light Portal
Post by: gevv on February 12, 2022, 09:14:28 AM
Hi,

@Bugo  Is the Blocks width adjustable?


+ Is it possible to make the blocks appear only on the home page?

Title: Re: Light Portal
Post by: Bugo on February 12, 2022, 11:03:34 PM
1) See the panel tab in settings
(https://i.ibb.co/hKTzzgL/Panels-Firefox-Developer-Edition-2022-02-13-08-5.png) (https://imgbb.com/)
2) It seemed to me I added such an option :) Wait for the next version.
Title: Re: Light Portal
Post by: gevv on February 13, 2022, 05:14:40 AM
Thanks @Bugo
Title: Re: Light Portal
Post by: trucker2006 on February 16, 2022, 01:08:24 PM
Hallo wertes Team!
Gutes Portal ohne Macken bislang.Ich hänge mal die deutsche Sprachdatei an falls sie einer verwenden möchte.Vielen Dank ans Team - Gute Arbeit.german.php
Title: Re: Light Portal
Post by: Bugo on February 16, 2022, 10:04:09 PM
Ich danke Ihnen für die Übersetzung. Was meinen Sie mit Macken?)

Now German is available on the project page (https://ru.crowdin.com/project/light-portal) in Crowdin.
Title: Re: Light Portal
Post by: trucker2006 on February 17, 2022, 05:37:39 PM
Macken ist nur eine Redewendung und bedeutet ohne große Fehler.Ich werde Ihnen morgen hier noch mal die restlichen Dateien anhängen da ich mit crown nicht so gut zurecht komme und lieber mit Notepad pro es übersetze und hier gleich soweit wie ich kann teste.
Macken is just a figure of speech and means without major errors.I will attach you tomorrow here again the rest of the files because I do not get along so well with crown and prefer to use Notepad pro it translate and here equal as far as I can test
Title: Re: Light Portal
Post by: Bugo on February 17, 2022, 10:47:00 PM
Schalten Sie Ihre Sprache in den Profileinstellungen ein, dann ist es bequemer. Ich selbst bin seit langem ein Verfechter der Übersetzung mit Notepad++ VSCode, aber bei größeren Projekten ist Crowdin viel praktischer.
Title: Re: Light Portal
Post by: Darknico on February 18, 2022, 12:14:41 AM
Hi @Bugo
Here the first part of the Italian Translation (./Themes/default/languages/LightPortal).
.italian.php
The translation for addons are in progress...

Please, can you add Italian Translation in crowdin? :)
Thanks!



in area=lp_settings;sa=extra this error
QuoteFatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, null given in /htdocs/forum/Sources/LightPortal/Areas/ConfigArea.php:806

I changed
$disabledBbc = array_merge($disabledBbc, explode(',', $this->modSettings['disabledBBC']));
with
$disabledBbc = array_merge($disabledBbc, explode(',', $this->modSettings['enableBBC']));
and now work correctly
disabledBBC don't exist for me in smf_settings, exist only enableBBC


Title: Re: Light Portal
Post by: Bugo on February 18, 2022, 01:24:34 AM
Done (https://crowdin.com/project/light-portal) :)

I'll take a look on this bug, thanks.
Title: Re: Light Portal
Post by: Darknico on February 18, 2022, 01:37:46 AM
Quote from: Bugo on February 18, 2022, 01:24:34 AMDone (https://crowdin.com/project/light-portal) :)

Awesome!
Title: Re: Light Portal
Post by: wylekk on February 20, 2022, 10:21:30 AM
Привет Bugo.
Мои железяки - Версия мода: 2.0 beta, версия PHP: 7.4.28, версия MySQL: 10.1.48-MariaDB-0+deb9u2.

Мод на тестовом сайте (https://sub.wylek.ru/index.php) только один, вешает форум не по детски :-\
Title: Re: Light Portal
Post by: Bugo on February 20, 2022, 01:17:45 PM
PHP & MySQL config?
Title: Re: Light Portal
Post by: wylekk on February 21, 2022, 06:39:28 AM
Quote from: Bugo on February 20, 2022, 01:17:45 PMPHP & MySQL config?

 PHP: 7.4.28, версия MySQL: 10.1.48-MariaDB-0+deb9u2.

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

Yes, I can send the admin password to the personal account for the test.
Title: Re: Light Portal
Post by: Mick. on February 23, 2022, 06:08:03 PM
v2.0beta
When trying to access pages and blocks an error occurs..

LightPortal/Areas/ConfigArea.php (Line 806)
Undefined index: disabledBBC

and...

LightPortal/Addons/Trumbowyg/Trumbowyg.php (Line 93)
Undefined offset: 30

 ;)

FYI,..this is a brand new installation on my test site.
Title: Re: Light Portal
Post by: Darknico on February 24, 2022, 10:48:08 AM
Quote from: Mick. on February 23, 2022, 06:08:03 PMv2.0beta
When trying to access pages and blocks an error occurs..

LightPortal/Areas/ConfigArea.php (Line 806)
Undefined index: disabledBBC

There are the fix in the next release, read the commits
https://github.com/dragomano/Light-Portal/commit/072ca3d4b1d117b4a9d530af7ef8340a4680e56e
https://github.com/dragomano/Light-Portal/commit/9c8edd12bbc4d02fd6010444c89f79cd34a487f5
Title: Re: Light Portal
Post by: Bugo on February 25, 2022, 06:05:11 AM
What's new in v2.0rc1

* Fixed found issues
* Updated some add-ons and translations
* Migrated to the Font Awesome 6 by default (i.e. fa-solid fa-user) - note that this version supports previous v5 (i.e. fas fa-user) and v4 (i.e. fa fa-user) tags, so you can use old tags as usually. At the moment, the portal uses v5 tags for compatibility.
* Added German (thanks to trucker2006 (https://www.simplemachines.org/community/index.php?action=profile;u=403475)) and Italian (thanks to Darknico (https://www.simplemachines.org/community/index.php?action=profile;u=29200)) translations
* Added a new add-on - MainIcons - you can use standard SMF icons in the block titles

Everyone is welcome to help with translations that are still incomplete (German, Polish, French (https://crowdin.com/project/light-portal)).

Demo site (https://demo.dragomano.ru/) is available again.

How to update
* Just extract Themes and Sources dirs from the package into your forum root.
* Clear the forum/browser cache.
Title: Re: Light Portal
Post by: gevv on February 25, 2022, 10:21:30 AM
Hi,

Looks great. Thanks @Bugo 👍
Title: Re: Light Portal
Post by: Tekyürek replikacep.com on March 02, 2022, 05:09:44 PM
Is there no chapter news on this portal?

how will i show the topics eh like in the eh portal
 sshot-1.png


how to do block transfer  ehportal ?
Title: Re: Light Portal
Post by: Bugo on March 02, 2022, 08:48:31 PM
You can use BoardNews to output news from a single board, or RecentPosts, or RecentTopics, or enable selected boards mode for the front page.
Title: Re: Light Portal
Post by: Tekyürek replikacep.com on March 03, 2022, 01:46:28 AM
Quote from: Bugo on March 02, 2022, 08:48:31 PMYou can use BoardNews to output news from a single board, or RecentPosts, or RecentTopics, or enable selected boards mode for the front page.

Where exactly is it made? I don't understand much about this portal.

by the way 47 mods are enabled but I couldn't find it exactly
Title: Re: Light Portal
Post by: Bugo on March 03, 2022, 02:13:37 AM
Discover the portal areas first.

Then go to Admin => Portal settings => Plugins, enable HelloPortal (it will explain you some simple things about this portal), BoardNews, RecentPosts, RecentTopics addons, then you can create such blocks on Admin => Portal settings => Blocks => Add block. Every block may have its own settings.

Also, there is a documentation site (https://dragomano.github.io/Light-Portal/), where you can get a short description about each setting.
Title: Re: Light Portal
Post by: Tekyürek replikacep.com on March 03, 2022, 03:50:23 AM
WHAT YOU SAY IS ALREADY IN EFFECTIVE POSITION
USER INFORMATION IS NOT CREATED

it throws an error in the error log

I'm throwing information from the demo site special for you

this is what i work for : https://www.simplemachines.org/community/index.php?action=dlattach;topic=572393.0;attach=278995
Title: Re: Light Portal
Post by: Bugo on March 03, 2022, 04:40:18 AM
If you choose English, there is no problem with UserInfo addon, it's related to Turkish translation.

Are you sure you are using the latest version of the translation?
Title: Re: Light Portal
Post by: Tekyürek replikacep.com on March 03, 2022, 04:59:07 AM
Quote from: Bugo on March 03, 2022, 04:40:18 AMIf you choose English, there is no problem with UserInfo addon, it's related to Turkish translation.

Are you sure you are using the latest version of the translation?


language files are up to date sir
Title: Re: Light Portal
Post by: Bugo on March 03, 2022, 05:34:58 AM
Here is a screenshot from my test forum with a similar configuration. As you see, the UserInfo addon works.

Try to remove /Sources/LightPortal/Addons/BoardIndex dir
Title: Re: Light Portal
Post by: Tekyürek replikacep.com on March 03, 2022, 05:38:45 AM
Quote from: Bugo on March 03, 2022, 05:34:58 AMHere is a screenshot from my test forum with a similar configuration. As you see, the UserInfo addon works.

Try to remove /Sources/LightPortal/Addons/BoardIndex dir

I reset the site, I reinstalled it, there is a problem on your portal

Title: Re: Light Portal
Post by: Tekyürek replikacep.com on March 03, 2022, 05:54:04 AM
pages : manage pages

when i delete it gets a white page
Error log gives an error when I try to manage plugins



Title: Re: Light Portal
Post by: Bugo on March 03, 2022, 09:28:16 AM
Can you test a fix (https://github.com/dragomano/Light-Portal/pull/57)?
Title: Re: Light Portal
Post by: Tekyürek replikacep.com on March 03, 2022, 10:37:10 AM
Quote from: Bugo on March 03, 2022, 09:28:16 AMCan you test a fix (https://github.com/dragomano/Light-Portal/pull/57)?

public function getSnakeName(string $value): string
{
return strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $value));
}

public function getCamelName(string $value): string

degiştir

public function getSnakeName(string $value): string
{
return strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $value));
return $this->smcFunc['strtolower'](preg_replace('/(?<!^)[A-Z]/', '_$0', $value));
}

public function getCamelName(string $value): string

i will give you ftp you solve the problem

I'm throwing private


Title: Re: Light Portal
Post by: Max22 on March 03, 2022, 10:54:53 AM
Did you try to delete or comment out return strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $value)); from the second code?
Title: Re: Light Portal
Post by: Tekyürek replikacep.com on March 03, 2022, 12:39:53 PM
Turkish problem solved

public function getSnakeName(string $value): string
{
return $this->smcFunc['strtolower'](preg_replace('/(?<!^)[A-Z]/', '_$0', $value));
}

public function getCamelName(string $value): string



Title: Re: Light Portal
Post by: Tekyürek replikacep.com on March 03, 2022, 12:48:13 PM
http://erdoganmobilyam.com/index.php?action=admin;area=lp_pages;d3a1608feba=809981d7af8a4c66ed2f61766ac60569


There is no such page, but it seems to exist.

sshot-1.pngsshot-2.png 


we need to get this portal from the troubled hand eh it can't replace the portal
Title: Re: Light Portal
Post by: Mick. on March 03, 2022, 12:56:28 PM
@Bugo can we have abbreviated month on the front page?

Full month breaks the line on small devices due to long category name.
Title: Re: Light Portal
Post by: Mick. on March 03, 2022, 03:56:19 PM
Heads up:
Padding, twice.
.article_alt3_view .card .details {
  padding: 0;
  list-style: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  margin: auto;
  transition: left 0.2s;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px;
  width: 100%;
  font-size: 0.9rem;
}
Title: Re: Light Portal
Post by: Bugo on March 03, 2022, 09:03:20 PM
Quote from: Mick. on March 03, 2022, 12:56:28 PM@Bugo can we have abbreviated month on the front page?

Full month breaks the line on small devices due to long category name.
Any screenshot?
Title: Re: Light Portal
Post by: Mick. on March 03, 2022, 09:26:15 PM
I think rez is 480px

Screenshot_20220303-212318_Chrome.jpg


I thought LP used abbreviated months on earlier versions?
Title: Re: Light Portal
Post by: Bugo on March 03, 2022, 11:18:38 PM
Entities\FrontPage.php (https://www.toptal.com/developers/hastebin/ohediyukoq.php)

ViewFrontPage.template.php (https://www.toptal.com/developers/hastebin/oticasenoh.php)
Title: Re: Light Portal
Post by: Mick. on March 05, 2022, 08:10:04 AM
Quote from: Bugo on March 03, 2022, 11:18:38 PMEntities\FrontPage.php (https://www.toptal.com/developers/hastebin/ohediyukoq.php)

ViewFrontPage.template.php (https://www.toptal.com/developers/hastebin/oticasenoh.php)

if (! empty($article['datetime'])) {
echo '
<time class="floatright" datetime="', $article['datetime'], '">', $context['lp_icon_set']['date'], date('M j', $article['raw_date']), '</time>';
}

I added the Year to it. All's good.

if (! empty($article['datetime'])) {
echo '
<time class="floatright" datetime="', $article['datetime'], '">', $context['lp_icon_set']['date'], date('M j Y', $article['raw_date']), '</time>';
}
Title: Re: Light Portal
Post by: Diego Andrés on March 05, 2022, 08:06:30 PM
I think I found a bug?
When I add a Board News block, the content won't display if the board doesn't have a single group added with permissions to view/access the board? I suppose if I'm admin I could see the content regardless of the board permissions?

(https://i.imgur.com/86qRlFd.png)
https://i.imgur.com/86qRlFd.png
Title: Re: Light Portal
Post by: Bugo on March 05, 2022, 08:52:06 PM
This block uses the SSI function ssi_boardNews to retrieve results. Is it a bug or is it an expected result? Check through ssi_examples.php

Title: Re: Light Portal
Post by: FrizzleFried on March 11, 2022, 10:57:28 AM
I've read through this support topic and I can't seem to find a definitive answer.  I did find where someone else asked the question (well,  insinuated that the mod (at the time) needed one).

Shoutbox.  Does this portal have a shoutbox plugin?

Thanks!
Title: Re: Light Portal
Post by: Doug Heffernan on March 11, 2022, 12:09:05 PM
Quote from: FrizzleFried on March 11, 2022, 10:57:28 AMI've read through this support topic and I can't seem to find a definitive answer.  I did find where someone else asked the question (well,  insinuated that the mod (at the time) needed one).

Shoutbox.  Does this portal have a shoutbox plugin?

Thanks!

It would have been much easier, and quicker too, if you installed it and checked it out for yourself, rather than going through all the 10 pages of this topic as you claim, posting and waiting for an answer. :D

Title: Re: Light Portal
Post by: FrizzleFried on March 11, 2022, 12:28:34 PM
I don't 'play' with my live forum to be honest... and I've yet to put together a 2.1.1 sandbox.

Title: Re: Light Portal
Post by: Doug Heffernan on March 11, 2022, 01:14:36 PM
Quote from: FrizzleFried on March 11, 2022, 12:28:34 PMI don't 'play' with my live forum to be honest... and I've yet to put together a 2.1.1 sandbox.



I hear you. That is why a test forum can come in handy. Like that you can try out things without being afraid of messing up the live/main forum.
Title: Re: Light Portal
Post by: Bugo on March 11, 2022, 09:05:03 PM
Quote from: FrizzleFried on March 11, 2022, 10:57:28 AMI've read through this support topic and I can't seem to find a definitive answer.  I did find where someone else asked the question (well,  insinuated that the mod (at the time) needed one).

Shoutbox.  Does this portal have a shoutbox plugin?

Thanks!
No, there's no shoutbox block yet. And there are no Aeva Media/SMF Gallery/Levertine Gallery blocks yet too ;)
Title: Re: Light Portal
Post by: Bugo on March 14, 2022, 04:28:09 AM
v2.0 RC2

* Fixed found issues
* Alternate frontpage layouts moved to separate files (`/Themes/default/LightPortal/layouts`)
* Updated docs site
* Updated some translations
* Updated some plugins
* Added export/import for block presets (https://github.com/dragomano/Light-Portal/discussions/62) (experiment)
* Added a new plugin - CategoryList
* Some plugins removed from the package and now are available for download separately
Title: Re: Light Portal
Post by: pocttopus on March 24, 2022, 04:40:01 PM
There is a new version from today?  ???
Title: Re: Light Portal
Post by: Diego Andrés on March 24, 2022, 05:33:34 PM
Probably just language files update?
Title: Re: Light Portal
Post by: Bugo on March 24, 2022, 09:46:09 PM
Just a new user review on the mod's page :)
Title: Re: Light Portal
Post by: pocttopus on March 25, 2022, 04:55:23 AM
It's the same file name from previous version 2.0 RC2
Title: Re: Light Portal
Post by: Bugo on April 07, 2022, 12:54:07 PM
Does anyone use the MainMenu plugin?
Title: Re: Light Portal
Post by: Diego Andrés on April 07, 2022, 01:03:10 PM
I don't use it, but adding the pages to the menu is something nice to occasionally have, if it's not dependent on it.
Title: Re: Light Portal
Post by: Darknico on April 08, 2022, 03:46:02 AM
Quote from: Bugo on April 07, 2022, 12:54:07 PMDoes anyone use the MainMenu plugin?

Yes, I use MainMenu :)
Title: Re: Light Portal
Post by: Biology Forums on April 12, 2022, 12:47:08 AM
You've done an fantastic job here. I couldn't find any faults browsing through your demo site.
Title: Re: Light Portal
Post by: Bugo on April 15, 2022, 12:53:32 AM
Question to users who make edits to the portal templates. How would you feel if I added support for Blade Template Engine (https://github.com/EFTEC/BladeOne)? Would that make it easier for you?

Example:


@empty ($context['lp_active_blocks'])
<div class="col-xs">
@endif

<div class="lp_frontpage_articles article_alt_view">

@php show_pagination() @endphp

@foreach ($context['lp_frontpage_articles'] as $article)
<div class="col-xs-12 col-sm-6 col-md-{{ $context['lp_frontpage_num_columns'] }}">
<article class="roundframe">
<header>
<div class="title_bar">
<h3>
<a href="{{ $article['msg_link'] }}">{{ $article['title'] }}</a>@if ($article['is_new']) <span class="new_posts">{{ $txt['new'] }}</span>@endif
</h3>
</div>
<div>

@if (! empty($modSettings['lp_show_num_views_and_comments']))
<span class="floatleft">

@if (! empty($article['views']['num']))
{{ str_replace(' class=', ' title="' . $article['views']['title'] . '" class=', $context['lp_icon_set']['views']), $article['views']['num'] }}
@endif

@if (! empty($article['views']['after']))
{{ $article['views']['after'] }}
@endif

@if (! empty($article['replies']['num']))
{{ ' ' . str_replace(' class=', ' title="' . $article['replies']['title'] . '" class=', $context['lp_icon_set']['replies']), $article['replies']['num'] }}
@endif

@if (! empty($article['replies']['after']))
{{ $article['replies']['after'] }}
@endif

</span>
@endif

@if (! empty($article['section']['name']))
<a class="floatright" href="{{ $article['section']['link'] }}">{!! $context['lp_icon_set']['category'] !!}{{ $article['section']['name'] }}</a>
@endif

</div>

@if (! empty($article['image']))
<img class="lazy" data-src="{{ $article['image'] }}" width="443" height="221" alt="{{ $article['title'] }}">
@endif

</header>
<div class="article_body">

@if (! empty($article['teaser']))
<p>{{ $article['teaser'] }}</p>
@endif

</div>
<div class="article_footer">
<div class="centertext">
<a class="bbc_link" href="{{ $article['link'] }}">{{ $txt['lp_read_more'] }}</a>
</div>
<div class="centertext">

@if (! empty($article['datetime']))
<time datetime="{{ $article['datetime'] }}">{!! $context['lp_icon_set']['date'] !!}{{ $article['date'] }}</time>
@endif

@if (! empty($modSettings['lp_show_author']) && ! empty($article['author']))
@if (! empty($article['author']['id']) && ! empty($article['author']['name']))
| {!! $context['lp_icon_set']['user'] !!}<a href="{{ $article['author']['link'] }}" class="card_author">{{ $article['author']['name'] }}</a>
@else
| <span class="card_author">{{ $txt['guest_title'] }}</span>
@endif
@endif

</div>
</div>
</article>
</div>
@endforeach

@php show_pagination('bottom') @endphp

</div>

@empty ($context['lp_active_blocks'])
</div>
@endif
Title: Re: Light Portal
Post by: Arantor on April 15, 2022, 07:24:26 AM
I'd personally advocate Twig over Blade (as someone who routinely does both, I much prefer Twig's syntax and I feel it is easier to follow for less-technical people)

But that's just my gut reaction.

Absolutely +1 to a template engine.
Title: Re: Light Portal
Post by: Bugo on April 20, 2022, 01:02:13 AM
v2.0 RC3

* Fixed found issues
* Updated some plugins
* Updated docs
* Updated FA icon list (to the FontAwesome 6.1.1)
* Added new plugins:
* LineAwesomeIcons
* GalleryFrontPage
* Removed the InitialAvatars plugin (use the Avatars Display Integration mod instead)
* Added previous and next links for the current page
* Added the moderation log for updating/removing pages
* Replace Slim Select with Virtual Select
* Plugin settings are saving in a separate table now

Unfortunately, the Polish and French localizations are still incomplete.

How to update

* At first, remove Sources/LightPortal/Addons dir.
* Uninstall the mod via the Package Manager.
* Install the new version.

New promotion: all premium plugins are now available for portal translators and SMF Charter members, by request.
Title: Re: Light Portal
Post by: pocttopus on April 20, 2022, 01:53:10 AM
After trying to install RC3, I get this message:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci' at line 6
File: /home/xxx/public_html/Packages/temp/database.php
Line: 488
Title: Re: Light Portal
Post by: Darknico on April 20, 2022, 03:36:23 AM
Quote from: pocttopus on April 20, 2022, 01:53:10 AMAfter trying to install RC3, I get this message:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci' at line 6
File: /home/xxx/public_html/Packages/temp/database.php
Line: 488

same issue :(
Title: Re: Light Portal
Post by: Bugo on April 20, 2022, 10:07:43 AM
And you both have MySQL version ...? I think it relates to reserved words in MySQL.

https://github.com/dragomano/Light-Portal/issues/90
Title: Re: Light Portal
Post by: pocttopus on April 20, 2022, 10:36:43 AM
 Database client version: libmysql - mysqlnd 7.4.28
 Server version: 5.7.37-log-cll-lve - MySQL Community Server - (GPL)
 PHP version: 7.4.28
 phpMyAdmin Version information: 4.9.7
Title: Re: Light Portal
Post by: Darknico on April 20, 2022, 10:41:03 AM
PHP: 8.0.14, MySQL: 5.7.28
Title: Re: Light Portal
Post by: Bugo on April 20, 2022, 11:10:39 AM
I reuploaded a package, try it. By the way, the portal already has 13 subscribers, it's nice :)
Title: Re: Light Portal
Post by: Darknico on April 20, 2022, 12:00:57 PM
Quote from: Bugo on April 20, 2022, 11:10:39 AMI reuploaded a package, try it.

Now work, thanks!

Quote from: Bugo on April 20, 2022, 11:10:39 AMBy the way, the portal already has 13 subscribers, it's nice :)

yeeee
 
Title: Re: Light Portal
Post by: pocttopus on April 20, 2022, 02:40:53 PM
It works!
Thanks.  ;)
Title: Re: Light Portal
Post by: Bugo on May 24, 2022, 01:23:22 AM
v2.0 RC4:
* Fixed found issues
* Improved performance
* Added a new plugin - RecentComments
* Some UI improvements
* Updated some plugins

How to update:
* Uninstall the previous version
* Install the new version
* Go to Portal settings - Maintenance and enable option "Weekly optimization of portal tables"
Title: Re: Light Portal
Post by: Costa on July 22, 2022, 07:45:58 AM
portuguese_pt translation

I tried to add to Crowdin, but I can't figure how to do it :O

https://ptsmf.com/index.php?action=downloads;sa=downfile&id=10
Title: Re: Light Portal
Post by: reslava on August 16, 2022, 03:05:54 PM
Hi Bugo, thanks and congrats for such a nice portal mod!

I wonder if it will be possible to have the option for block collapsibles?

Thanks in advance!
Title: Re: Light Portal
Post by: Bugo on August 18, 2022, 01:16:02 AM
Quote from: reslava on August 16, 2022, 03:05:54 PMHi Bugo, thanks and congrats for such a nice portal mod!

I wonder if it will be possible to have the option for block collapsibles?

Thanks in advance!
A similar feature can be implemented as a plugin.
Title: Re: Light Portal
Post by: reslava on August 18, 2022, 04:32:49 AM
That would be so useful Bugo, thanks in advance!
Title: Re: Light Portal
Post by: Raffoz on August 22, 2022, 03:23:36 AM
I'm going thorough a flow on tests.

Today, reinstalling the mod I receive this error:
QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ',,,)
SELECT ,,,
FROM xxx_lp_categories_old' at line 1
File: /home/xxx/forumname.com/Packages/temp/database.php
Line: 495

The same happens with other table: blocks and so on.
If I delete all of them from db, the install goes ok.

Tks for the help! 🤓
Title: Re: Light Portal
Post by: Raffoz on August 22, 2022, 04:19:30 AM
I'm used to Simple Portal / Eh Portal and I'm trying to adapt/learn new approach.

Usually, I had a frontpage with some blocks (left, right and top).
Then a forum page, with just lateral blocks (left and right).

Which option should I use to replicate it?
I cannot find (understand how to replicate) a "Frontpage" modality.

Tks!
Title: Re: Light Portal
Post by: Bugo on August 22, 2022, 11:16:54 AM
You could try uninstalling the mod completely, then delete the tables it created, including those with the "_old" suffix, then reinstall it.

I don't like to write step-by-step instructions. Just play around with the settings, study them. This will help you better than any explanation.

Also, enable the HelloPortal plugin.
Title: Re: Light Portal
Post by: Raffoz on August 23, 2022, 05:59:05 PM
Quote from: Bugo on August 22, 2022, 11:16:54 AMYou could try uninstalling the mod completely, then delete the tables it created, including those with the "_old" suffix, then reinstall it.

I don't like to write step-by-step instructions. Just play around with the settings, study them. This will help you better than any explanation.

Also, enable the HelloPortal plugin.
Hi Bugo!

1) Uninstalling
Yeps, I uninstalled and reinstalled (deleting all tables).
The "problem" is that in this way I lose (when I reinstall) all the content of the blocks I created meantime.

2) How to replicate Simple Portal Frontpage
For the other thing, before writing, I tested for hours Light Portal and I just couldn't reach my goal.
This was the reason I asked. I'm not the person who asks before trying (a lot!).

I think the only way is to select to show a single page in the frontpage:
- considering it as a block
- then adding other blocks, above (top blocks) or below (bottom blocks)
Is it correct?

As little suggestion (if what I wrote above is correct), I'd consider to add another modality:
- in Frontpage options, I'd give users the possibility to just activate it without selecting what to show
- it'd be the "portal" modality, clean way
- in this way, forum would normally goes in forum link
- and a user could add blocks in the center-core part of the page
 
Tks!
Title: Re: Light Portal
Post by: Raffoz on August 23, 2022, 06:40:49 PM
Disabling the title of a block
How is possible to disable the view of the block title and its bar?
I'd just show the content without all the rest 🤓

I'd like to have the option "Show the title" as it exists in pages.

Tks!



EDIT
I found this workaround:
- deleting icon
- choose "No" for the CSS Class of the title
- insert "display: none" for the CSS Style of the title

But I still think that the easy toggle (as in page settings) would be better 🤓
Title: Re: Light Portal
Post by: Raffoz on August 23, 2022, 06:52:12 PM
Error when "saving" the panel settings
Every time i Try to save the panel settings, I receive this error:
- HTTP ERROR 500

I can save other settings and all other stuff.
I just receive this error.

Tks!
Title: Re: Light Portal
Post by: Bugo on August 24, 2022, 12:54:10 AM
@Raffoz

1) There is an export of blocks/pages feature
2) Light Portal is positioned primarily as an alternative rather than a copy of existing portals. Therefore, many things may look or function differently, or even be absent altogether. I hope you understand :)
3) I have made a quick fix of the problem you noticed - https://github.com/dragomano/Light-Portal/commit/2ead22e30a0a2f84a8a80858681fb3eb1f7ef015
Title: Re: Light Portal
Post by: Raffoz on August 24, 2022, 01:57:36 AM
Quote from: Bugo on August 24, 2022, 12:54:10 AM@Raffoz

1) There is an export of blocks/pages feature
2) Light Portal is positioned primarily as an alternative rather than a copy of existing portals. Therefore, many things may look or function differently, or even be absent altogether. I hope you understand :)
3) I have made a quick fix of the problem you noticed - https://github.com/dragomano/Light-Portal/commit/2ead22e30a0a2f84a8a80858681fb3eb1f7ef015
Tks Bugo!

1) ok, so before new Light Portal version, I could use the export feature to not lose pages and blocks, good idea! 👾
2) yes I understand, but as a heavy user I just try to give my 2 cents to developers... you decide, of course! But I think ideas and proposals help developers to choose among them and understand what users would like to have 🤓
3) Tks! 🧞
Title: Re: Light Portal
Post by: Bugo on August 25, 2022, 07:31:34 AM
I have implemented hiding headers with a new plugin that will appear in the next version.

However, I keep waiting for portal users to start sharing their own portal plugins. For example, someone could make a plugin to add collapse/expand buttons for blocks :)
Title: Re: Light Portal
Post by: Raffoz on August 25, 2022, 07:43:58 AM
@Bugo a little question: is there a way to sort the order of blocks and content in mobile view?
I mean: where they appear and if before or after the content.

Tks 🤓
Title: Re: Light Portal
Post by: Raffoz on August 25, 2022, 07:44:21 AM
Quote from: Bugo on August 25, 2022, 07:31:34 AMI have implemented hiding headers with a new plugin that will appear in the next version.

However, I keep waiting for portal users to start sharing their own portal plugins. For example, someone could make a plugin to add collapse/expand buttons for blocks :)
I'd love to be able to create mods!!! 💙
Title: Re: Light Portal
Post by: @rjen on August 25, 2022, 09:35:40 AM
Quote from: Bugo on August 25, 2022, 07:31:34 AMHowever, I keep waiting for portal users to start sharing their own portal plugins. For example, someone could make a plugin to add collapse/expand buttons for blocks :)

That would be nice, but I am afraid that there are not enough contributors for that. TinyPortal used to have similar functionality, allowing people to contribute plugins and modules.

It never really caught on, so we finally stripped the functionality.

I hope to see it happen with Light Portal, but...
Title: Re: Light Portal
Post by: vbgamer45 on August 25, 2022, 11:06:20 AM
Quote from: @rjen on August 25, 2022, 09:35:40 AM
Quote from: Bugo on August 25, 2022, 07:31:34 AMHowever, I keep waiting for portal users to start sharing their own portal plugins. For example, someone could make a plugin to add collapse/expand buttons for blocks :)

That would be nice, but I am afraid that there are not enough contributors for that. TinyPortal used to have similar functionality, allowing people to contribute plugins and modules.

It never really caught on, so we finally stripped the functionality.

I hope to see it happen with Light Portal, but...
Same with mine, guess not as many developers out there but I do like how Light Portal does it.
Title: Re: Light Portal
Post by: eazyguy0 on October 11, 2022, 07:47:46 PM
Nice Portal I love it but the Random Post Plugin keep giving me fatal errors

Saying the number of posts is returning string instead of Integer, please can you help me with that?
Title: Re: Light Portal
Post by: Bugo on October 12, 2022, 02:44:07 AM
Quote from: eazyguy0 on October 11, 2022, 07:47:46 PMNice Portal I love it but the Random Post Plugin keep giving me fatal errors

Saying the number of posts is returning string instead of Integer, please can you help me with that?
You need to make a small change (https://github.com/dragomano/Light-Portal/commit/beab32f4ef3a6de15eee9fa6e7e045485bee7e3a) in the plugin file.
Title: Re: Light Portal
Post by: wylekk on November 26, 2022, 09:39:56 AM
Привет. На практике не хватает функции "Кто может управлять всеми статьями"
Можно ли ее реализовать?

Hello. In practice, there is not enough function "Who can manage all articles"
Can it be implemented?
Title: Re: Light Portal
Post by: Bugo on February 06, 2023, 06:34:41 AM
Some polls for portal admins:
https://github.com/dragomano/Light-Portal/discussions/84
https://github.com/dragomano/Light-Portal/discussions/93
Title: Re: Light Portal
Post by: cieplutki on February 10, 2023, 02:36:12 AM
whats a bug on this line:
            'start_day'          => $this->options['calendar_start_day'] ?: 0,on Sources/LightPortal/Addons/CurrentMonth/CurrentMonth.php linie 46
maybe it should be like this:
'start_day'          => !empty($options['calendar_start_day']) ? $options['calendar_start_day'] : 0,
Title: Re: Light Portal
Post by: Bugo on February 10, 2023, 04:11:22 AM
"?:" is ternary operator. Are you getting notice, warning, or error? This mod requires PHP 7.4+ to work.
"$this->options['calendar_start_day'] ?: 0" = "$this->options['calendar_start_day'] = empty($this->options['calendar_start_day']) ? 0 : $this->options['calendar_start_day']"
Title: Re: Light Portal
Post by: cieplutki on February 10, 2023, 06:15:46 AM
Wersja moda: 2.0, wersja PHP: 7.4.32, MySQL wersja: 10.4.26-MariaDB-cll-lve.
error: Undefined index: calendar_start_day
error: undefined_vars
Title: Re: Light Portal
Post by: Bugo on February 10, 2023, 06:19:34 AM
Can you give me the page url where the error occurs?
Title: Re: Light Portal
Post by: cieplutki on February 10, 2023, 06:58:20 AM
my site: https://ewmapa.pl/

Błąd
Typ błędu
Undefined_vars
Komunikat błędu
8: Undefined index: calendar_start_day
Plik
/home/ewmapapl/websites/ewmapa/Sources/LightPortal/Addons/CurrentMonth/CurrentMonth.php
Linia
46
URL strony powodującej błąd
https://ewmapa.pl/index.php?https://ewmapa.pl/
Informacje backtrace
#0: smf_error_handler()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/Addons/CurrentMonth/CurrentMonth.php w linii 46
#1: getData()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/Utils/Cache.php w linii 59
#2: setFallback()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/Addons/CurrentMonth/CurrentMonth.php w linii 135
#3: prepareContent()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/AddonHandler.php w linii 107
#4: run()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/app.php w linii 33
#5: prepare_content()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/Entities/Block.php w linii 45
#6: show()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/LightPortal/Integration.php w linii 185
#7: menuButtons()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/Subs.php w linii 5787
#8: call_integration_hook()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/Subs.php w linii 5592
#9: setupMenuContext()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/Subs.php w linii 4378
#10: setupThemeContext()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/Subs.php w linii 4535
#11: template_header()
Wywoływana z /home/ewmapapl/websites/ewmapa/Sources/Subs.php w linii 4178
#12: obExit()
Wywoływana z /home/ewmapapl/websites/ewmapa/index.php w linii 206
Title: Re: Light Portal
Post by: Bugo on February 10, 2023, 10:59:11 AM
Replace line 46 (Addons/CurrentMonth/CurrentMonth.php) with it:
'start_day'          => (int) $this->options['calendar_start_day'] ?? 0,
Title: Re: Light Portal
Post by: cieplutki on February 10, 2023, 11:40:15 AM
still the same error
only when i change
'start_day'          => !empty($options['calendar_start_day']) ? $options['calendar_start_day'] : 0,does not display errors
Title: Re: Light Portal
Post by: thatjustit on February 28, 2023, 06:52:39 AM
I tried adding blocks of random topics and it broke my forum
Fatal error: Uncaught TypeError: Argument 1 passed to Bugo\LightPortal\Addons\RandomTopics\RandomTopics::getData() must be of the type int, string given, called in /usr/home/pro33/domains/burning-brushes.pl/public_html/Sources/LightPortal/Utils/Cache.php on line 59 and defined in /usr/home/pro33/domains/burning-brushes.pl/public_html/Sources/LightPortal/Addons/RandomTopics/RandomTopics.php:57 Stack trace: #0 /usr/home/pro33/domains/burning-brushes.pl/public_html/Sources/LightPortal/Utils/Cache.php(59): Bugo\LightPortal\Addons\RandomTopics\RandomTopics->getData('10') #1 /usr/home/pro33/domains/burning-brushes.pl/public_html/Sources/LightPortal/Addons/RandomTopics/RandomTopics.php(190): Bugo\LightPortal\Utils\Cache->setFallback('Bugo\\LightPorta...', 'getData', '10') #2 /usr/home/pro33/domains/burning-brushes.pl/public_html/Sources/LightPortal/AddonHandler.php(107): Bugo\LightPortal\Addons\RandomTopics\RandomTopics->prepareContent('random_topics', 2, 72000, Array) #3 /usr/home/pro33/domains/burning-brushes.pl/public_html/So in /usr/home/pro33/domains/burning-brushes.pl/public_html/Sources/LightPortal/Addons/RandomTopics/RandomTopics.php on line 57
Title: Re: Light Portal
Post by: Bugo on February 28, 2023, 07:00:48 AM
Quote from: thatjustit on February 28, 2023, 06:52:39 AMI tried adding blocks of random topics and it broke my forum
Quote from: Bugo on October 12, 2022, 02:44:07 AMYou need to make a small change (https://github.com/dragomano/Light-Portal/commit/beab32f4ef3a6de15eee9fa6e7e045485bee7e3a) in the plugin file.
Title: Re: Light Portal
Post by: Bugo on March 04, 2023, 08:17:48 AM
I plan to add a FAQ section to the documentation, so post questions you are interested in.
Title: Re: Light Portal
Post by: Bugo on March 18, 2023, 09:52:42 AM
v2.1 beta released. What's new?

* Updated some plugins
* Updated documentation
* Fixed found issues
* Added rating system for page comments
* Added Page Moderator role - members with this permission can manage any pages
* Added new plugins - ExtendedBlockOptions, RandomPages, and ChessBoard
* Added tabs for some text inputs
* Added option for page comment sorting
* Changed minimum PHP version required - now it's 8.0
* And a lot of other small edits...

How to update:
    * Export your blocks/pages (optional = if you want to delete the previous version entirely)
    * Uninstall the previous version
    * Update PHP version to 8.0
    * Install the new version
    * Import your backups (optional)
Title: Re: Light Portal
Post by: Ricsca on March 18, 2023, 12:14:11 PM
How come the latest 2.1 beta only works with php 8?
Title: Re: Light Portal
Post by: Bugo on March 18, 2023, 12:22:16 PM
Because in developing this modification I decided to keep up with the times (https://www.php.net/supported-versions.php).
Title: Re: Light Portal
Post by: Ricsca on March 18, 2023, 01:02:39 PM
Yes but still 7.4 is used by many.
New versions should be compatible with both 7.4 and 8
Title: Re: Light Portal
Post by: Arantor on March 18, 2023, 01:05:28 PM
PHP 7.4 is no longer updated by the PHP team (even if there are security issues), and hosts are increasingly forcing the PHP 8 upgrade on people. It makes sense to prepare to stay current, not cling on to versions whose support is questionable.
Title: Re: Light Portal
Post by: @rjen on March 18, 2023, 01:48:00 PM
I would agree, but in the end it is up to the mod author to decide.
Title: Re: Light Portal
Post by: Ricsca on March 20, 2023, 08:05:24 AM
Quote from: Arantor on March 18, 2023, 01:05:28 PMPHP 7.4 is no longer updated by the PHP team (even if there are security issues), and hosts are increasingly forcing the PHP 8 upgrade on people. It makes sense to prepare to stay current, not cling on to versions whose support is questionable.

Of course, with almost all my sites are php 8 but I have a site with few visits on a cheap hosting that still does not allow you to switch to php 8.
Since 7.4 is still used by so many sites and that's okay, making a plugin that can't be installed on php 7.4 means you won't allow so many to use it.
wordpress for example if you have php 7.1 it shows a warning that at least you need php 7.4
Title: Re: Light Portal
Post by: Bugo on March 20, 2023, 09:07:22 AM
LP v2.0 supports PHP 7.4+ (and tested with 8.0/8.1), you can use it until you update PHP.
Also, vote here - https://github.com/dragomano/Light-Portal/discussions/84
Title: Re: Light Portal
Post by: Arantor on March 20, 2023, 10:04:10 AM
Quote from: Ricsca on March 20, 2023, 08:05:24 AM
Quote from: Arantor on March 18, 2023, 01:05:28 PMPHP 7.4 is no longer updated by the PHP team (even if there are security issues), and hosts are increasingly forcing the PHP 8 upgrade on people. It makes sense to prepare to stay current, not cling on to versions whose support is questionable.

Of course, with almost all my sites are php 8 but I have a site with few visits on a cheap hosting that still does not allow you to switch to php 8.
Since 7.4 is still used by so many sites and that's okay, making a plugin that can't be installed on php 7.4 means you won't allow so many to use it.
wordpress for example if you have php 7.1 it shows a warning that at least you need php 7.4

That's because WordPress doesn't work properly on PHP 8.1 yet, so they don't try to keep users current. It's also a completely different product with a completely different set of circumstances, so things *will* be different.
Title: Re: Light Portal
Post by: Panoulis64 on March 29, 2023, 07:48:26 AM
Bugo Good evening here too.
In the original, I don't find an option to not show the section, which I have circled in red in the photo below.
What can I do to make it not appear?
Title: Re: Light Portal
Post by: Bugo on March 29, 2023, 09:19:06 AM
It seems to be what is rendered with the FlarumStyle plugin. Turn it off and that part is gone.
Title: Re: Light Portal
Post by: Panoulis64 on March 29, 2023, 11:49:50 AM
Thanks for the prompt reply.
That's right, it removed it, but it also removed my articles that it was pulling into the center of the panel.
It unfortunately stayed there, a text "There are no items to display." (Which also spoils the appearance, just like that).

Another problem I have is the GalleryFrontPage, I downloaded it, installed it in the admin and it shows as Light Portal plugins, but I can't find it so I can set it to position on the home page...
Title: Re: Light Portal
Post by: Bugo on March 29, 2023, 12:42:26 PM
If you want Flarum-style forum topic output but without the sidebar with categories, I'll add an option to disable it in the next version.

GalleryFrontPage simply displays the image categories from the SMF Gallery modification you selected in the settings. Therefore, you need to have the SMF Gallery mod installed.
Title: Re: Light Portal
Post by: Panoulis64 on March 30, 2023, 11:35:00 AM
QuoteIf you want Flarum-style forum topic output but without the sidebar with categories, I'll add an option to disable it in the next version.

I think it would be nice to have an option.

QuoteGalleryFrontPage simply displays the image categories from the SMF Gallery modification you selected in the settings. Therefore, you need to have the SMF Gallery mod installed.

Unfortunately, but it's all enabled, but it doesn't show up in my block selection, so I can select it!
And of course, although I have some images, they don't appear on their own, on the homepage, in the logic like Flarum-style or something like that.
Tried again today, uninstalled, installed, but nothing...
Title: Re: Light Portal
Post by: Bugo on April 01, 2023, 10:54:45 PM
v2.1 final released. What's new?

* Fixed found issues
* Updated permission system (do not forget re-check permissions after updating)
* Added the ability to set exclusion rules for display areas in block settings (e.g., "all,!portal" - everywhere except portal area)
* Added Greek translation (thanks to Panoulis64 (https://www.simplemachines.org/community/index.php?action=profile;u=301719))
* Added new plugins - Giscus (integrates page comments with GitHub Discussions), Crowdin Context (https://github.com/dragomano/Light-Portal/pull/124) (for easy translation of the portal on your forum), and Simple Chat (https://github.com/dragomano/Light-Portal/pull/125) (to talk a lot)
* Updated docs site
* Updated some plugins

We are still looking for more testers, translators (https://crowdin.com/project/light-portal), and doc writers (https://dragomano.github.io/Light-Portal/).

This modification is still in development so yor feedback and bug reports are very welcome at GitHub Issues/Discussions (https://github.com/dragomano/Light-Portal) or right here, in this topic.
Title: Re: Light Portal
Post by: -Rock Lee- on April 02, 2023, 01:10:09 PM
When I activate Crowdin In-Context Translations it doesn't let me connect or register from SMF, when I generate another admin it does the same thing but if I create a global user it enters without problems. Although I'm connected to crowdin translating I don't know if that's why...
Title: Re: Light Portal
Post by: Bugo on April 02, 2023, 01:32:10 PM
What is a "global user"?
Title: Re: Light Portal
Post by: -Rock Lee- on April 02, 2023, 02:08:25 PM
Quote from: Bugo on April 02, 2023, 01:32:10 PMWhat is a "global user"?

A global moderator was just trying to generate another user to solve that problem, and I typed by inertia :PAG
Title: Re: Light Portal
Post by: Panoulis64 on April 03, 2023, 01:56:19 AM
I did the installation on the forum, as in the demo, with the export, import file.
Everything looks right, but I have the known problem.
The articles are not displayed, as in the demo.
In settings, you don't see the 3rd option: Sections - front page article source. Look at photo 1, on the left is the forum, on the right is the demo.
On photo 2, it says: No data to display.
I want to have a post with a photo, like in photo 3.
I will ask you again. How hard is it, to have a multiple choice with a check, like in photo 4, instead of putting id?
Information:
I enable FlarumStyle and BoardList and I keep getting an error when I click on the home page link.
/home/triglian/public_html/Sources/Subs-MessageIndex.php (Line 60)

Error Type: Critical
Error message[Selection]
Database error, given array of integer values is empty. (included_boards)
Function: getBoardList

Line 60, that's it
==>60:        $request = $smcFunc['db_query']('order_by_board_order', '
Title: Re: Light Portal
Post by: Bugo on April 03, 2023, 02:47:29 AM
Are both of your forums - demo and work - have the same portal pages, topics, and boards with the same IDs? If there are no items, the output (the lists) will be empty.

The option "Categories - sources of articles for the frontpage" is displayed if the frontpage mode is "All pages from selected categories", the option "Boards - sources of articles for the frontpage" is displayed if the frontpage mode is "All topics from selected boards" or "Selected boards". I will update the documentation.

Quote from: Panoulis64 on April 03, 2023, 01:56:19 AMI will ask you again. How hard is it, to have a multiple choice with a check, like in photo 4, instead of putting id?
It's not difficult, but on large forums, such lists will take a very long time to scroll through.
Title: Re: Light Portal
Post by: Panoulis64 on April 03, 2023, 03:29:21 AM
QuoteAre both of your forums - demo and work - have the same portal pages, topics, and boards with the same IDs? If there are no items, the output (the lists) will be empty.

Of course I have, look at the statistics
Total topics: 1,708
Total categories: 9
Total tables: 74
So they exist and the system doesn't pick them up

QuoteThe option "Categories - sources of articles for the frontpage" is displayed if the frontpage mode is "All pages from selected categories", the option "Boards - sources of articles for the frontpage" is displayed if the frontpage mode is "All topics from selected boards" or "Selected boards". I will update the documentation.

In my case, you don't show the box for me to choose!!! See photo 1 (In the previous comment)

QuoteΠαράθεση από: Panoulis64 στις Σήμερα στις 01:56:19 ΠΜ
I will ask you again. How hard is it, to have a multiple choice with a check, like in photo 4, instead of putting id?
It's not difficult, but on large forums, such lists will take a very long time to scroll through.

Allow me to have another point of view. It's something that makes me feel comfortable.
Title: Re: Light Portal
Post by: Bugo on April 06, 2023, 05:32:54 AM
v2.1.1

* Fixed found issues
* Updated some plugins
* Improved loading speed for portal pages
* Improved mobile view for some panels
* Improved UI for some settings
Title: Re: Light Portal
Post by: Bugo on April 13, 2023, 12:12:48 AM
v2.1.2

* A lot of refactoring
* Fixed some issues related PostgreSQL
* Improved UI for all fields where you need to select category/board/page/topic from the list
* AdsBlock now can work with portal page areas
* Removed GalleryFrontPage, added GalleryBlock plugin instead
Title: Re: Light Portal
Post by: Darknico on April 13, 2023, 04:12:02 AM
Hi @Bugo
I installed the 2.1.2 and show this error in the frontpage:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'integer), 0) > 0 THEN p.num_comments ELSE 0 END AS num_comments, p.created_at,
' at line 3
File: /forum/Sources/LightPortal/Front/PageArticle.php
Linea: 77

Not show the number of article in the tree (near forum name).

SMF 2.1.3
PHP: 8.0.14
MySQL: 5.7.28

in the log:
QuoteErrore del Database: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'integer), 0) > 0 THEN p.num_comments ELSE 0 END AS num_comments, p.created_at,
   ' at line 3


         SELECT
            p.page_id, p.category_id, p.author_id, p.alias, p.content, p.description, p.type, p.status, p.num_views,
            CASE WHEN COALESCE(CAST(par.value AS integer), 0) > 0 THEN p.num_comments ELSE 0 END AS num_comments, p.created_at,
            GREATEST(p.created_at, p.updated_at) AS date, cat.name AS category_name, mem.real_name AS author_name,
            com.created_at AS comment_date, com.author_id AS comment_author_id, mem2.real_name AS comment_author_name, com.message AS comment_message
         FROM smf_lp_pages AS p
            LEFT JOIN smf_lp_categories AS cat ON (cat.category_id = p.category_id)
            LEFT JOIN smf_members AS mem ON (p.author_id = mem.id_member)
            LEFT JOIN smf_lp_comments AS com ON (p.last_comment_id = com.id)
            LEFT JOIN smf_members AS mem2 ON (com.author_id = mem2.id_member)
            LEFT JOIN smf_lp_params AS par ON (par.item_id = com.page_id AND par.type = 'page' AND par.name = 'allow_comments')
         WHERE p.status = 1
            AND p.created_at <= 1681373557
            AND p.permissions IN (0, 1, 2, 3)
            AND p.category_id IN (6)
         ORDER BY p.created_at DESC
         LIMIT 0, 1
Title: Re: Light Portal
Post by: Bugo on April 13, 2023, 06:32:09 AM
Replace
CASE WHEN COALESCE(CAST(par.value AS integer), 0) > 0 THEN p.num_comments ELSE 0 END AS num_comments, p.created_at,CASE WHEN COALESCE(par.value, \'0\') != \'0\' THEN p.num_comments ELSE 0 END AS num_comments, p.created_at,in that file.
Title: Re: Light Portal
Post by: Darknico on April 13, 2023, 06:42:01 AM
Good! The fix work  ;)
Thanks!
Title: Re: Light Portal
Post by: Panoulis64 on April 13, 2023, 01:00:03 PM
Thanks for the new version.
I tried Images from the SMF gallery to see how it works.
In the test forum, it worked fine. (Photo 2)
When I posted it in the correct forum as well, it didn't work properly. It doesn't show the photos! (Photo 1)
Since there are a lot of pictures there, I only selected one section, but I didn't see a difference.
(Access to the forums is still active)
Title: Re: Light Portal
Post by: Bugo on April 14, 2023, 12:58:14 AM
I already found the solution, wait for the update.
Title: Re: Light Portal
Post by: Bugo on April 19, 2023, 11:17:15 PM
v2.1.3

* Fixed found issues
* Updated some plugins
* Improved page add/edit area a bit
* Added new plugins - CustomTranslateWidget (widget for translating forum pages), MaterialDesignIcons (Material Design icons for blocks), and MediaBlock (displays links from popular media sites as auto-embeddable videos inside the portal block)
* ExtendedBlockOptions plugin moved into the core
Title: Re: Light Portal
Post by: Bugo on April 24, 2023, 06:53:02 AM
Quote from: Sir Osis of Liver on April 23, 2023, 04:08:32 PMSP appears to be the only portal that allows a post to be sent to portal block as article.  I've tried TP, Light Portal, ezPortal, none of them do it.  I see EhPortal on github, does it have this feature?  Will it work in 2.0?
@Sir Osis of Liver, do you mean a possibility to export topic as article on the frontpage? It is available when the portal frontpage mode is set as "Selected topics":

https://imgur.com/a/gCLChwZ
Title: Re: Light Portal
Post by: Panoulis64 on April 24, 2023, 09:27:29 AM
I just saw that I get in Error log file, 3 Unspecified errors from visitors, if it matters.

public_html/Sources/LightPortal/Integration.php (Line 231)  Flashback information

Error Type: Undefined
Error message[Selection]
2: Undefined array key "allow_light_portal_manage_pages_any"

public_html/Sources/LightPortal/Integration.php (Line 252)  Flashback information

Error Type: Undefined
Error message[Selection]
2: Undefined array key "lp_portal"

public_html/Sources/LightPortal/Integration.php (Line 262)  Flashback information

Error Type: Undefined
Error message[Selection]
2: Undefined array key "lp_forum"
Title: Re: Light Portal
Post by: Panoulis64 on April 24, 2023, 11:54:24 AM
@Bugo Delete it if you want. The problem I saw is general of the smf
Title: Re: Light Portal
Post by: Kindred on April 24, 2023, 04:32:13 PM
No it's not.

The parsesmileys and data too long are due to our server issues.  They might portal issues are not
Title: Re: Light Portal
Post by: Panoulis64 on April 27, 2023, 08:47:48 AM
I set the FlarumStyle block active and I couldn't see the original portal and I got three identical errors in a row.
I set her to inactive and all is well!
The errors were as below...

/home/triglian/public_html/Sources/Subs-MessageIndex.php (Line 31)  Backtrace information

Type of error: General
Error messageSelect
256: getBoardList(): Setting both excluded_boards and included_boards is not allowed.
Title: Re: Light Portal
Post by: Bugo on April 28, 2023, 04:06:59 PM
v2.1.4

* Fixed found issues
* Removed AvatarGenerator plugin
* Added new plugins: DiceBear (instead of AvatarGenerator), and Calculator (simple widget)
* Added new page status - internal (these pages are not visible on the frontpage and do not participate in the search, but they can be conveniently anchored in the main menu using the MainMenu plugin)
* Admins can change page status during adding/editing
* Added feedback area in settings
* Improved view of block display areas
* Updated some plugins
Title: Re: Light Portal
Post by: Bugo on June 01, 2023, 09:55:26 AM
v2.2.0 Mandalorian Edition

View changelog (https://github.com/dragomano/Light-Portal/releases/tag/v2.2.0)

Special Thanks:

How to upgrade from previous versions:

If errors occur during the export of pages, replace the file Sources/LightPortal/Impex/PageImport.php with the updated one from the modification package.

Help us to improve the documentation! Join us (https://dragomano.github.io/Light-Portal/) in making our documentation more user-friendly and accessible.
Your input can make a real difference in helping others understand the Light Portal.
Title: Re: Light Portal
Post by: Panoulis64 on June 02, 2023, 09:11:43 AM
Thanks for the upgrade.
I followed the installation instructions on my test forum and had these minor issues.
1st The Home page did not display the articles. Solved by pressing save in "Settings for front page and articles".
2nd "Scroll images" I had them horizontal and now they appear vertical. I went to the block, the editor, but while I put horizontal selection, they remain vertical.
3rd Unspecified error. 4 times the same, every 5 minutes...

https://www.myforoum.gr/new/index.php?
home/triglian/public_html/new/Sources/LightPortal/Addons/RecentPosts/RecentPosts.php (Line 207)
Regression information

Error Type: Undefined
Error Message[Select]
2: Undefined array key "limit_body"

Flashback information
#0: smf_error_handler()
Call from /home/triglian/public_html/new/Sources/LightPortal/Addons/RecentPosts/RecentPosts.php on line 207
#1: getData()
Call from /home/triglian/public_html/new/Sources/LightPortal/Utils/SMFCache.php on line 77
#2: callMethod()
Call from /home/triglian/public_html/new/Sources/LightPortal/Utils/SMFCache.php on line 47
#3: setFallback()
Call from /home/triglian/public_html/new/Sources/LightPortal/Addons/RecentPosts/RecentPosts.php on line 230
#4: prepareContent()
Call from /home/triglian/public_html/new/Sources/LightPortal/AddonHandler.php on line 117
#5: run()
Call from /home/triglian/public_html/new/Sources/LightPortal/app.php on line 19
#6: call_portal_hook()
Call from /home/triglian/public_html/new/Sources/LightPortal/app.php on line 26
#7: prepare_content()
Call from /home/triglian/public_html/new/Sources/LightPortal/Entities/Block.php on line 45
#8: show()
Call from /home/triglian/public_html/new/Sources/LightPortal/Integration.php on line 199
#9: menuButtons()
Call from /home/triglian/public_html/new/Sources/Subs.php on line 5778
#10: call_integration_hook()
Call from /home/triglian/public_html/new/Sources/Subs.php on line 5583
#11: setupMenuContext()
Call from /home/triglian/public_html/new/Sources/Subs.php on line 4369
#12: setupThemeContext()
Call from /home/triglian/public_html/new/Sources/Subs.php on line 4526
#13: template_header()
Call from /home/triglian/public_html/new/Sources/Subs.php on line 4169
#14: obExit()
Called from /home/triglian/public_html/new/index.php on line 194
Title: Re: Light Portal
Post by: Bugo on June 02, 2023, 10:12:49 AM
1) The frontpage is disabled by default after the mod's installation.
2) Scroll images?
3) Here is your own note about it - https://dragomano.github.io/Light-Portal/el/getting-started/updating#warning-undefined-array-key-bla-bla-bla
Title: Re: Light Portal
Post by: Panoulis64 on June 02, 2023, 11:16:17 AM
Quote2) Scroll images?

My mistake, it is TinySlider
Title: Re: Light Portal
Post by: Bugo on June 27, 2023, 12:30:38 PM
v2.2.1
* Updated some plugins
* Fixed cloning of blocks that do not have a title/note
* Renamed RssFeed plugin to SimpleFeeder
* Updated some localizations
* Other minor improvements and fixes

Upgrade from version 2.2.0
* Just upload the new version and press "Update" button
Upgrade from previous versions (<2.2.0)
* Export the data you need (optional)
* Remove portal modification completely, including database tables
* Install the new version
* Import previously saved data (optional)
Title: Re: Light Portal
Post by: Bugo on June 28, 2023, 11:00:04 AM
Fixed TopPosters plugin (https://drive.proton.me/urls/EB8V8SA6R8#0zdjwpEFoApp), just import via Plugin import
Title: Re: Light Portal
Post by: Papoune57 on August 16, 2023, 05:37:28 AM
Thanks for the update.
I made a new French translation for the latest version and corrected some errors I had made on the old file.
You can integrate it into the mod with no problem.


French;
Merci pour la mise à jour.
J'ai fait une nouvelle traduction en français pour la dernière version et corrigée quelques erreurs que j'avais fait sur l'ancien fichier.
Vous pouvez l'intégrer au mod sans problème.
Title: Re: Light Portal
Post by: Bugo on October 12, 2023, 04:07:51 AM
v2.2.2

* Fixed found issues
* Updated some language strings
* Improved some UI elements
* Refactored prepareContent hook
* Added Arabic Translation
Title: Re: Light Portal
Post by: Steve on October 12, 2023, 10:59:20 AM
Does this one have a shoutbox option?
Title: Re: Light Portal
Post by: Darknico on October 12, 2023, 12:04:30 PM
Quote from: Steve on October 12, 2023, 10:59:20 AMDoes this one have a shoutbox option?

Exist a block: Simple Chat.
Find and enable in plugins
Title: Re: Light Portal
Post by: Steve on October 13, 2023, 07:31:53 AM
Thanks @Darknico.
Title: Re: Light Portal
Post by: Bugo on November 21, 2023, 06:01:22 AM
v2.3.0
* Fixed a lot of small and not really small issues
* Fixed issue with page search in the AC
* Fixed issue with unwrapped blocks in the Bend theme
* Removed BBCode support for page comments (but you can use Markdown)
* Some UI changes including fixes for RTL mode
* Updated some plugins
* Updated docs
* Removed the SiteList plugin
* Implemented page comments with Vue.js
* Implemented plugins area with Vue.js
* Implemented WYSIWYG editor for page comments
* As well as a lot of source code changes, new build tool (Vite) for assets, etc.

Attention: options of some plugins have changed, you should to update them.
Title: Re: Light Portal
Post by: Bugo on December 18, 2023, 03:20:50 PM
v2.4.0
* Updated docs (replaced docusaurus with vitepress, rewrited some pages)
* Fixed found issues
    - Fixed the issue with missing box-shadow for plugin cards
    - Added `lp_plugins` table to optimization tasks
    - Fixed the issue with preview mode for blocks
    - Fixed margin for plugin tags
* Added a new plugin - ApexCharts
* Some UI changes:
    - Added the "Content" title for textarea fields
* Added `getFromTemplate` helper for plugins
* Added setting fields classes (refactoring)
* Added new hooks - `preloadScripts`, and `preloadStyles`
* Update almost all plugins
* Restored SiteList plugin (moved to downloadable)
* Added new helper - `addDefaultValues`, to work with $modSettings
* Updated some portal hooks

v2.4.1
* Fixed some issues related with templates and layouts
* Layouts plugins no longer overlap the current settings of the frontpage layout, but extend them
* Layout switcher (from LayoutHelper plugin) moved into core
* LayoutHelper plugin renamed with DummyArticleCards
* Added new plugins: PlatesLayout, and Snowflakes
* Updated docs
* Updated some plugins
Title: Re: Light Portal
Post by: TeamKC on January 16, 2024, 12:50:40 PM
Hello Bugo,

We really love your portal and it looks amazing to say the least, we've been testing it for a while and are now transferring it to the live version of our forum, keep up the good work!

We're using your light portal on our SMFforum, but somehow it doesn't show as nicely as it should on mobile, is there maybe a button or option that we might have missed somewhere to turn off certain blocks on mobile?

We also tried and tested the images for SMF Gallery, but somehow it worked on the test version when we were using SMF Gallery, but on the live version it puts the pictures vertically instead of horizontally, even though we set it to have the pictures shown horizontally. On the test version it also did slide while using the SMF Gallery option, while on the live version it just refuses to slide.

For both these issues we've been trying to find answers in the topic, that comes with your mod, but we've had no luck so far. We also tried everything in the portal admin center but we're not able to figure out where we went wrong or what we did wrong, could you please help us?

Thank you so much in advance,

Sincerely,
Team PD
Title: Re: Light Portal
Post by: Bugo on January 16, 2024, 02:48:27 PM
Do you have all the same settings, same database and same mods on the test version of the forum as on the working version? Send screenshots of the display in the mobile version, with normal, and with incorrect examples.
Title: Re: Light Portal
Post by: TeamKC on January 16, 2024, 04:38:57 PM
Hello Bugo,

Thanks for the quick reply.

The settings for the portal we've copied one by one from the testversion. The testversion is a clone of the live version, with the only difference being the live version having newer posts on the forum. The testversion was a 1 on 1 copy of the live version, but as mentioned before the live version has newer posts on it, so it's basically the same database but an older one for the testversion. Both have the same modules on them.

We have also tried to export the SMF Gallery block from the testversion to the live version, but it kept doing the same thing on the live version as mentioned in our first post.

We've added some screenshots that were made on mobile and PC. On these screenshots you can see it doesn't look as nicely on mobile as it does on PC.

Thank you so much in advance,

Sincerely,
Team PD
Title: Re: Light Portal
Post by: Bugo on January 16, 2024, 05:43:10 PM
Is the situation the same on the default Curve 2 theme? What theme are you using?
Title: Re: Light Portal
Post by: TeamKC on January 17, 2024, 06:22:53 AM
Hello Bugo,
We did test it on curve 2, and othere themes we tested. In the live they all have that issue, that they show vertically instead of horizontally. In the test they all work as supposed.
Title: Re: Light Portal
Post by: Bugo on January 17, 2024, 08:07:03 AM
What panel is your GalleryBlock located on?

While developing the GalleryBlock plugin, I added a display with a condition. That is, depending on the panel, images within the block are displayed either horizontally or vertically. There is no manual switch in the block settings. You may have tried changing the position of the blocks in the panel settings, but this only affects the position of the blocks relative to each other, not their content.

(https://i.postimg.cc/qz30tZ83/sshot-15.png) (https://postimg.cc/qz30tZ83)
(https://i.postimg.cc/svD6qB2D/sshot-16.png) (https://postimg.cc/svD6qB2D)

In any case, send a link to the page with the problem, I'll try to see how to improve the layout.
Title: Re: Light Portal
Post by: TeamKC on January 19, 2024, 02:10:31 AM
Quote from: Bugo on January 17, 2024, 08:07:03 AMWhile developing the GalleryBlock plugin, I added a display with a condition. That is, depending on the panel, images within the block are displayed either horizontally or vertically. There is no manual switch in the block settings. You may have tried changing the position of the blocks in the panel settings, but this only affects the position of the blocks relative to each other, not their content.

Well now, first of all. Sorry for the late reply life was keeping me busy.
What you said here let me think. I uninstalled the portal, and installed it again. This time before adding blocks I made sure i put the blocks that should be horizontally. (I didn't remember if I did it that way the first time and think I first added the blocks.) And now it works the way it is supposed to be. Nice and horizontally like it is supposed to. And that also fixed the lay-out on the mobile version.

Thank you so much for helping to solve this. I have one more question if that is okay. Am I right that I can't add blocks to just 1 specific page on the portal (apart from the main portalpage?) Thats no biggie but now I'm wondering if I'm missing somewhere there to.
Title: Re: Light Portal
Post by: Bugo on January 19, 2024, 02:34:35 AM
Just use rule "page=your_page_alias" in display areas field in the block settings.

(https://i.postimg.cc/FHwhbdC5/sshot-6.png) (https://postimages.org/)
Title: Re: Light Portal
Post by: Bugo on January 19, 2024, 03:01:38 PM
v2.5.0
* Changed some UI elements
* Refactored a lot of code
* Updated all plugins
* Updated documentation
* Added more tests
* Tested work with PHP 8.3.1 and MySQL 8.2
* Added support of SMF 3.0 Alpha (for testing purposes)

How to upgrade (manual mode, recommended):
* (Optional) Backup (https://dragomano.github.io/Light-Portal/plugins/impex) your custom plugins
* Remove Sources/LightPortal/Addons, Sources/LightPortal/Entities, and Sources/LightPortal/Libs directories
* Extract Themes and Sources folders from the mod's package into your forum's root, with replacing

How to upgrade (half-auto mode):
* Just install an updated package via the Package Manager and press an Upgrade button (https://dragomano.github.io/Light-Portal/getting-started/updating)
* Remove Sources/LightPortal/Addons/EhPortal, Sources/LightPortal/Addons/EzPortal, and Sources/LightPortal/Addons/TinyPortal directories

Sign up for notifications of new releases here (https://custom.simplemachines.org/index.php?mod=4244) and/or on GitHub (https://github.com/dragomano/Light-Portal) to stay up to date.
Title: Re: Light Portal
Post by: Bugo on January 31, 2024, 03:10:46 PM
v2.5.1
* Fixed found issues
* Updated some plugins
* Added a new filter - "Active only" - for the plugin list
* Updated latte templates
* Optimized some dev scripts
* Added support of Youtube links for Markdown plugin
Title: Re: Light Portal
Post by: Bugo on February 09, 2024, 08:54:15 AM
v2.5.2
* Fixed found issues
* Updated some plugins
* Updated documentation (some translations)
* Removed plugins: CrowdinContext and KarmaPostRating
* Optimized Vue templates and scripts

Small poll for the portal users (https://github.com/dragomano/Light-Portal/discussions/166)
Title: Re: Light Portal
Post by: Bugo on February 29, 2024, 02:15:54 AM
v2.6

* As always, fixed found issues.
* Implemented separate classes for compiling Less/Sass files.
* By default, the Sass compiler is now used in development mode, and the Zero class is used in production (without compilation, just a dummy).
* The frontpage layouts have been updated to use Laravel Blade markup (https://github.com/dragomano/Light-Portal/blob/master/src/Themes/default/LightPortal/layouts/default.blade.php) instead of Latte.
* Latte layouts are still supported through to the new LatteLayouts plugin.
* The BladeLayouts plugin was removed and moved entirely to the portal core.
* Some CSS code was also updated in line with modern standards.
* The category management page was converted into a separate section, similar to those for blocks, pages and plugins sections.
* A separate section for tag management has also been created.
* Implemented multi-language support for category/tag titles.
* Categories and tags can now have their own custom icons.
* Implemented a database upgrade script to allow users to upgrade from versions 2.4+ without having to reinstall the portal.
* Export/import scripts have been updated.
* Updated almost all plugins.
* Updated documentation (including adding a section to view the latest portal updates).
* 3 different portal builds are provided:
  * Standard Edition - the default build
  * Developer Edition - includes a Sass compiler with source sass files, as well as dev scripts folder + Vue source templates + all localizations and plugins (except for bonus ones).
  * Geek Edition - without plugins, but with localizations, where the main file (LightPortal.language.php) is 100% complete. This build is suitable for a quick overview of the portal.

Choose your preferred build:
  * light_portal_2.6.tgz (715 KB)
  * light_portal_2.6_dev_edition.tgz (1625 KB)
  * light_portal_2.6_geek_edition.tgz (407 KB)


How to Upgrade in 2 steps
  1) for all versions - be sure to delete the Sources/LightPortal/Addons directory.
  2a) from versions 2.4.x-2.5.x - simply download the latest version of the portal and click the "Upgrade" button.
  2b) from versions < 2.4.0 - make backups of any data you need, then completely uninstall the portal (removing all portal tables from the database) and then install the latest version. Please note that the minimum required PHP version is 8.0.
Title: Re: Light Portal
Post by: cuongvttt on March 26, 2024, 11:48:21 PM
Hello Bugo,

Could you please show me how to rename Portal and Forum? Please take a look at the attached image.

Thanks,
Title: Re: Light Portal
Post by: Bugo on March 27, 2024, 01:26:30 AM
The quickest way is to use the MainMenu plugin for that.
Title: Re: Light Portal
Post by: cuongvttt on March 27, 2024, 01:49:16 AM
Thank you so much for your big help, Bugo.
Title: Re: Light Portal
Post by: cuongvttt on March 30, 2024, 01:54:23 AM
Hello Bugo,

When I use APCu cache (level 2) I get the following error. Could you please help me out?

Fatal error: Uncaught TypeError: Cannot assign null to reference held by property Bugo\Compat\User::$settings of type array in /www/vietnetwork.vn/Sources/Load.php:598 Stack trace: #0 /www/vietnetwork.vn/index.php(226): loadUserSettings() #1 /www/vietnetwork.vn/index.php(196): smf_main() #2 {main} thrown in /www/vietnetwork.vn/Sources/Load.php on line 598
Title: Re: Light Portal
Post by: Bugo on March 30, 2024, 02:11:03 AM
I'll take a look. Switch to level 1 for now.
Title: Re: Light Portal
Post by: cuongvttt on March 30, 2024, 02:13:13 AM
Thank you so much, Bugo. I'm now using Level 1.
Title: Re: Light Portal
Post by: Bugo on March 31, 2024, 04:14:45 AM
As it turns out, the problem has nothing to do with the type of caching. Even if you enable Memcached or file caching, it still depends on the cache level. As soon as you set it to level 2-3, errors will appear. So it is better to use the optimal level 1, for all caching options.

This has nothing to do with Light Portal, the problem shows up with other mods as well.
Title: Re: Light Portal
Post by: cuongvttt on March 31, 2024, 09:19:15 PM
Hello Bugo, thank you so much for the information.
Title: Re: Light Portal
Post by: jsx on June 05, 2024, 05:51:21 PM
@Bugo a while ago I added a suggestion on your github that you create a Shoutbox add-on for Light Portal. Is this add-on available in LP?
Title: Re: Light Portal
Post by: Bugo on June 05, 2024, 09:50:43 PM
SimpleChat plugin
Title: Re: Light Portal
Post by: OBAMLabs on June 07, 2024, 02:43:11 AM
Hello!

I'm trying to install the plugin on a fresh install of 2.1 SMF. It uploads okay, and when I hit install the following error pops up:




Fatal error: Uncaught Error: Undefined constant "Bugo\LightPortal\LP_CACHE_TIME" in /home/xxx/site.com/Sources/LightPortal/Helper.php:42 Stack trace: #0 /home/xxx/site.com/Sources/LightPortal/Repositories/PluginRepository.php(48): Bugo\LightPortal\Repositories\PluginRepository->cache() #1 /home/xxx/site.com/Sources/LightPortal/AddonHandler.php(200): Bugo\LightPortal\Repositories\PluginRepository->getSettings() #2 /home/xxx/site.com/Sources/LightPortal/AddonHandler.php(49): Bugo\LightPortal\AddonHandler->__construct() #3 /home/xxx/site.com/Sources/LightPortal/Helper.php(57): Bugo\LightPortal\AddonHandler::getInstance() #4 /home/xxx/site.com/Sources/LightPortal/Integration.php(88): Bugo\LightPortal\AbstractMain->hook() #5 /home/xxx/site.com/Sources/Subs.php(5766): Bugo\LightPortal\Integration->preCssOutput() #6 /home/xxx/site.com/Sources/Subs.php(4828): call_integration_hook() #7 /home/xxx/site.com/Themes/default/index.template.php(122): template_css() #8 /home/xxx/site.com/Sources/Load.php(2778): template_html_above() #9 /home/xxx/site.com/Sources/Subs.php(4550): loadSubTemplate() #10 /home/xxx/site.com/Sources/Subs.php(4157): template_header() #11 /home/xxx/site.com/index.php(187): obExit() #12 {main} thrown in /home/xxx/site.com/Sources/LightPortal/Helper.php on line 42




Thank in advance!
Title: Re: Light Portal
Post by: Bugo on June 07, 2024, 03:40:31 AM
I assume this error only appears during installation? Try to go to ?action=admin;area=lp_settings and check if the portal installed
Title: Re: Light Portal
Post by: OBAMLabs on June 07, 2024, 04:11:55 AM
It does install. I was unsure though, if it would affect anything going forward. I know that errors can sometimes cause issues down the line if unresolved. I'm not really an advanced programmer or anything, so I have no idea what the error meant.
Title: Re: Light Portal
Post by: Bugo on June 07, 2024, 04:27:14 AM
In this case, it's just referring to a constant before declaring it. It will be fixed in the next version.
Title: Re: Light Portal
Post by: OBAMLabs on June 07, 2024, 04:36:42 AM
So, it would be safe for me to install this now, or should I wait for the next version? Thanks!

Also if you don't mind, could you maybe let me know what that means as if you were talking to a 5-year-old, haha! More so for my curiosity and interest in learning. Appreciate it!
Title: Re: Light Portal
Post by: Bugo on June 07, 2024, 05:20:38 AM
Referring to a non-existent constant is like trying to find the book on a shelf where that book is not on. You can get by without it, but the baby might get upset :)
Title: Re: Light Portal
Post by: OBAMLabs on June 07, 2024, 05:22:44 AM
Gotcha, haha.

So installing right now it with this error currently will have zero affect on any of the other features going forward?
Title: Re: Light Portal
Post by: Bugo on June 07, 2024, 05:52:44 AM
It shouldn't, because right after the portal is installed, the constant is already defined.
Title: Re: Light Portal
Post by: Bugo on June 13, 2024, 10:14:40 PM
v2.7.0
* Fixed found issues
* Migrated to PHP 8.1
* Refactored a lot of code
* Updated template layouts
* Updated documentation
* Added a new plugin - BlogMode

How to upgrade from versions below 2.6
* Upgrade to v2.6
* Upgrade to v2.7

How to upgrade from v2.6+:
* Enable PHP 8.1 on your server
* Follow the instruction (https://dragomano.github.io/Light-Portal/getting-started/updating)
Title: Re: Light Portal
Post by: cuongvttt on June 18, 2024, 09:48:13 AM
Hello Bugo,

Did you forget to intergrate the mod named Similar Topics with your portal? I would like to have this plugin so that I could create a block from it.

Thank you so much,
Title: Re: Light Portal
Post by: Bugo on June 18, 2024, 10:32:23 AM
Did I forget? I wasn't going to make such a plugin. You can try to do it yourself, there are all the tools for this.  And why do you need integration? Are you not satisfied with the location of similar topics at the top or bottom of the page?
Title: Re: Light Portal
Post by: cuongvttt on June 18, 2024, 09:41:56 PM
I would like to create a block from this plugin and add it to sidebar instead of top or bottom of the page.
Title: Re: Light Portal
Post by: TeamKC on June 22, 2024, 09:52:31 AM
Hello Bugo,

First of all, we love love love that there is a blogfunction now in your Lightportal, but we do have one question about it. How do we make sure our members can actually post a blog on our forum with this function turned on? Maybe we've overlooked it somewhere in the settings?

Again we love that you've added a blog function and we hope you can help us out.

Sincerely
The King's Cross RPG Crew.
Title: Re: Light Portal
Post by: Bugo on June 22, 2024, 10:36:21 AM
This feature is supported for now thanks to the BlogMode plugin, you need to enable it in your plugin settings. After that, any user who has rights to publish portal pages will be able to publish pages with the "Normal Page" type or "Blog", by your choice. I will try to improve/change this behavior in the future, depending on the user experience.

In addition, I am currently collecting data on the topic of moving some plugins to separate modifications, so that users of other portals can use them as well. To do so, simply email me your thoughts on this topic via the Feedback page in the portal settings.
Title: Re: Light Portal
Post by: TeamKC on June 24, 2024, 06:27:37 PM
Hello Bugo,

We think it's just a small thing, the thing we mentioned earlier, but we thought about it because of your comment in the fanfics module, support topic.

Also, we did send our feedback to you via the Feedback page, we hope you received it.
Title: Re: Light Portal
Post by: Bugo on June 25, 2024, 09:04:27 AM
Development continues. In the meantime, I will be glad to receive new reviews on the mod page or likes on the Github page :)
Title: Re: Light Portal
Post by: puravida47 on June 29, 2024, 10:57:03 AM
Hi Bugo.
first to say - love Portal and your mods, now:
Two issues
I installed update 2.7 and get Error:
Unknown column 'slug' in 'field list'
File: /home/contru4/domains/conspiraciesortruth.com/public_html/Packages/temp/database.php
Line: 582


in server files is this at 582:
if (isset($table['default']))
      $smcFunc['db_insert']('ignore', '{db_prefix}' . $table['name'], $table['default']['columns'], $table['default']['values'], $table['default']['keys']);
}

it does not install, so I re-installed 2.63 and site works, with exception of issue 2 below, tried several ways, same results, blank page


second problem:
when I add a Gallery image in any Block, either Right side or Center top, and go with new browser or computer to the domain, ONLY white page, nothing.  Then deleting that block, works again.
I have 4 blocks side installed, front page all fine, only when adding an image - all stops

my site  (https://conspiraciesortruth.com/)

thanks for helping me out here
Title: Re: Light Portal
Post by: Darknico on June 29, 2024, 12:03:08 PM
For the first issue, you use optimus?
Try to install the last version, 3.0 beta, there is an update for light portal plugin
Title: Re: Light Portal
Post by: Bugo on June 29, 2024, 12:40:39 PM
Quote from: puravida47 on June 29, 2024, 10:57:03 AMsecond problem:
when I add a Gallery image in any Block, either Right side or Center top, and go with new browser or computer to the domain, ONLY white page, nothing.  Then deleting that block, works again.
I have 4 blocks side installed, front page all fine, only when adding an image - all stops
Do you mean an html block or gallery block? If html, can you provide your html code?
Title: Re: Light Portal
Post by: puravida47 on June 29, 2024, 01:18:15 PM
Images from SMF Gallery. 
When I add as admin shows in preview, shows in side panels, shows in center,
when I save, seems all ok,
however, thereafter website is blank pages on other browser windows as well as other user to access site. tested with 2 friends in different countries.
only works for me as admin logged in
strange.
I delete that block settings, all back to normal.

regarding issue 1.
I have optimus installed and checked again, only the error log shows the message.

Title: Re: Light Portal
Post by: Bugo on June 29, 2024, 01:39:05 PM
As a quick solution, try to setup permission "View SMF Gallery" for guests and members. The "blank page" appears for those do not have that permission.
Title: Re: Light Portal
Post by: puravida47 on June 29, 2024, 02:08:37 PM
You are the best.   :)
I took out "hide images from Guests"
I allow guest "view Galleries" and "attachments"

and it works.

I created the first SMF forum 2010, approx. 10 since then and never went with images, and with a Portal design, just always "old fashion", and always found my way around. But with so many new options, I have to retrain my older brain... :-[

You saved me a lot of work and headache.

thanks so much

I will try later again to install 2.7 and report if same errors.
Title: Re: Light Portal
Post by: Bugo on June 29, 2024, 09:23:32 PM
Regarding the other issue, how did you update from 2.6.3 to 2.7?
Title: Re: Light Portal
Post by: TeamKC on July 06, 2024, 03:28:57 AM
Goodmorning Bugo,

We saw that there is an update available for your portal, are there coming any update instructions for it? Because we don't have an update button to update the old version to the new one. I'll attach a screen to show what we mean.

Thanks in advance for your help.
Title: Re: Light Portal
Post by: Bugo on July 06, 2024, 10:45:51 AM
Try to uninstall the previous version (but do not remove database tables), then install the new one.

Second variant: extract Sources and Themes dir from the package into your forum dir, with replacing.
Title: Re: Light Portal
Post by: TeamKC on July 06, 2024, 05:35:28 PM
Hello Bugo,

We wanted to thank you for the edits in the blogmode, and also for the help/instructions for installation of the latest update.
Title: Re: Light Portal
Post by: TeamKC on July 07, 2024, 09:15:59 AM
Hello Bugo,

I'm sorry but we're back again with a question. We've been trying to get the blogmode to be the only thing for our members to be allowed to write, but that doesn't seem to be happening. We still have to allow permissions for pages and other categories, is there anything we're missing if it comes to the permissions to give out to make it blog only? And where are members able to find to add blogs?

Title: Re: Light Portal
Post by: Bugo on July 07, 2024, 09:21:53 AM
What permissions have you set for your user group?

As I wrote earilier
Quote from: Bugo on June 22, 2024, 10:36:21 AMany user who has rights to publish portal pages will be able to publish pages with the "Normal Page" type or "Blog"

In the future, I plan to introduce the "Blog" type as a separate portal entity, similar to pages and blocks. Then you  will be able to use a separate permission for it. Currently, you need to have rights to create pages, because every blog post is a portal page, the only difference is that it is displayed in the ?action=blog area. In addition, each user's profile should display their blog posts, if they exist.

At the moment the BlogMode plugin is still being developed, don't consider it a full-fledged application that can replace a powerful blogging system :)
Title: Re: Light Portal
Post by: TeamKC on July 07, 2024, 05:44:27 PM
Thank you for your quick reply and the explanation. We weren't sure if we still needed to do that since the blog has it's own permissions, but we do understand that it's still in development, we can't wait until it's finished though.

We also send another bit of feedback, since we've been playing around more and more with the portal.

Title: Re: Light Portal
Post by: Bugo on July 08, 2024, 02:49:54 AM
Hey, if you only need the portal for fanfiction and don't plan to create other pages, you can just realize the blog feature without the BlogMode plugin. All you need to do is allow users to create posts. Those posts will show up on the home page as articles. People with access to the portal can read the posts and leave comments.

If you want to use the pages for something else, you could organize them by tags or categories. For example, you could make a "Blog" category that only shows on the homepage, or you could display them in a separate block with the PageList/RandomPosts plugin. It's all pretty flexible, I get lost in the options sometimes too! :)
Title: Re: Light Portal
Post by: TeamKC on July 08, 2024, 04:42:55 AM
We have other pages, but unfortunately can't seem to find a block that also has an option to give a preview of articles/pages/posts in the pages. Or we've been trying the wrong blocks? I guess for now the blog option is the nicest, since that one does give snippets/previews of what's on that page.

Thank you so much for thinking with us.
Title: Re: Light Portal
Post by: TeamKC on July 11, 2024, 10:17:16 AM
Hello Bugo,

After we installed the 2.7.1 update we noticed that our gallery block wasn't being shown to our members.
After uninstalling and re-installing 2.7 the gallery block was working again. When we went back to 2.7.1 it didn't work anymore.
So we compared the .../Sources/LightPortal/Addons/GalleryBlock/GalleryBlock.php for both versions and noticed the thing you see in the screenshot we've added.
After we uploaded the php file of 2.7 and overwritten it, it worked again. But is the 2.7.1 file correct, since it seems to check if our members have administrator permissions?
Title: Re: Light Portal
Post by: Bugo on July 11, 2024, 10:48:14 AM
Yes, it's a nice catch, I used that permission for testing.

Replace "User::hasPermission('smfgallery_manage')" with "User::hasPermission('smfgallery_view')" in that part of code.
Title: Re: Light Portal
Post by: JRMBelgium on September 17, 2024, 01:34:20 PM
In the chat plugin, I noticed that smileys are not getting displayed. It just shows the HTML code behind the smileys.
Title: Re: Light Portal
Post by: Bugo on September 17, 2024, 02:43:53 PM
You need to make a small fix in the file Sources\LightPortal\Addons\SimpleChat\template.php:

https://github.com/dragomano/Light-Portal/commit/8dfa35efb1f84a01334caa65b856fd893f6e7c76
Title: Re: Light Portal
Post by: JRMBelgium on September 20, 2024, 06:20:49 PM
Quote from: Bugo on September 17, 2024, 02:43:53 PMYou need to make a small fix in the file Sources\LightPortal\Addons\SimpleChat\template.php:

https://github.com/dragomano/Light-Portal/commit/8dfa35efb1f84a01334caa65b856fd893f6e7c76

I fixed more than that:
- HTML now working
- No mor ugly scrollbars
- Separate lines for avatar+username, text and date+trashcan.
- Input-window + chatbutton at the top, not the bottom.

<?php

use Bugo\Compat\{ConfigLangUtils};

function 
show_chat_block(int $idbool $show_avatarsbool $full_width): void
{
    echo 
/** @lang text */ '
    <script>
        const chat'
$id' = new SimpleChat("'LP_ACTION'", ', (Utils::$context['lp_chats'][$id] ?: '[]'), ');
    </script>

    <div x-data="chat'
$id'.handleComments()" style="display: flex; flex-direction: column; height: 500px;">
        '
;

    if (
Utils::$context['user']['is_logged']) {
        echo 
'
        <form @submit.prevent="addComment($refs)" style="margin-bottom: 10px;">
            <div class="'
$full_width 'full_width' 'floatleft'' post_note">
                <input type="text" required x-ref="message" autofocus @keyup="$refs.submit.disabled = !$event.target.value">
            </div>
            <button class="button '
$full_width 'full_width' 'floatright''" disabled x-ref="submit" data-block="'$id'">'Lang::$txt['post'], '</button>
        </form>'
;
    } else {
        echo 
'
        <a href="'
Config::$scripturl'?action=login" onclick="return reqOverlayDiv(this.href, 'Utils::escapeJavaScript(Lang::$txt['login']), ');">'Lang::$txt['lp_simple_chat']['login'], '</a>';
    }

    
// Clean up layout to ensure proper alignment and spacing of avatar, username, message, and controls
    
echo '
        <ul class="moderation_notes" style="flex-grow: 1; overflow-y: hidden; padding: 0; margin: 0; list-style-type: none; max-height: 100%;">
            <template x-for="(comment, index) in comments" :key="index">
                <li class="smalltext" style="margin-bottom: 15px;">
                    <div style="display: flex; align-items: center;">
                        '
$show_avatars === true '<span x-html="comment.author.avatar ?? null" style="margin-right: 10px;"></span>' '''
                        <strong x-text="comment.author.name" style="font-weight: bold;"></strong>
                    </div>
                    <div style="margin-top: 5px;">
                        <span x-html="comment.message" style="display: block;"></span>
                    </div>
                    <div style="display: flex; justify-content: space-between; margin-top: 5px;">
                        <span class="floatleft" x-html="comment.created_at"></span>
                        '
Utils::$context['user']['is_admin'] ? ' <span class="main_icons delete" style="cursor: pointer;" @click="removeComment($refs, index, comment.id)"></span> ' '''
                    </div>
                </li>
            </template>
        </ul>
    </div>'
;
}
Title: Re: Light Portal
Post by: Bugo on September 20, 2024, 10:04:28 PM
Thanks, I'll add that as an alternative option to the chat settings.
Title: Re: Light Portal
Post by: Bugo on September 20, 2024, 11:54:37 PM
However, how are you going to scroll chat messages without scrollbars? Also, all inline styles would look better in style.css.
Title: Re: Light Portal
Post by: JRMBelgium on September 21, 2024, 02:20:07 PM
Quote from: Bugo on September 20, 2024, 11:54:37 PMHowever, how are you going to scroll chat messages without scrollbars? Also, all inline styles would look better in style.css.

There is no need. I don't expect more then 1 message per day. It can be easy way for someone to write "guys, i'm on holidays for the next week, will be afk" or something like that.
Title: Re: Light Portal
Post by: marcosbr on October 17, 2024, 09:45:12 PM
I would like to allow admin and moderators. Is there a way to do this?

Title: Re: Light Portal
Post by: Bugo on October 18, 2024, 12:20:01 AM
There is already a dedicated chat box for this in the Moderation section of SMF itself. But if you need this permission specifically for portal blocks, I'll try to add it in the next version.
Title: Re: Light Portal
Post by: marcosbr on October 18, 2024, 03:49:04 PM
 Thanks!
 It's exactly to display on the portal!
Title: Re: Light Portal
Post by: Bugo on October 18, 2024, 10:21:42 PM
And which moderators exactly are you referring to? Global? Or board moderators?
Title: Re: Light Portal
Post by: marcosbr on October 18, 2024, 10:49:20 PM
I only have board moderators
Title: Re: Light Portal
Post by: Aleksi "Lex" Kilpinen on October 19, 2024, 02:44:17 AM
Board moderators are generally only recognized as moderators, inside the boards they moderate, so for other general use you would likely need to set up a separate membergroup to add all local moderators to, so you can use that membergroup to identify if someone is a local moderator.
Title: Re: Light Portal
Post by: Bugo on October 19, 2024, 02:48:59 AM
So you want a particular chat block to be available to board moderators only in boards in which they are moderators or in all areas of the forum?
Title: Re: Light Portal
Post by: marcosbr on October 19, 2024, 11:52:09 AM
]Yes!
The chat would be in all areas of the forum precisely to facilitate communication.
I always used it on other portals and never had a "global" moderator


Edit -  STOP USING THOSE PRE TAGS

Title: Re: Light Portal
Post by: marcosbr on October 19, 2024, 02:46:23 PM
"Edit -  STOP USING THOSE PRE TAGS"

How this appears in the message I don't know...

Title: Re: Light Portal
Post by: Bugo on November 10, 2024, 11:46:22 PM
Welcome to update 2.8!

Now you can restore deleted pages if you change your mind. Deleted pages won't show up anywhere except in a special section in the admin panel. You can also permanently delete them from there if needed.

Instead of extended statuses, all pages now have a new feature - entry type. By default, there are 3 types of pages: standard (the ones that show up on the homepage as articles), internal (pages that don't show anywhere but can be added to the forum menu or accessed via a direct link), and draft (pages visible only to their authors). Only admins can create internal pages. You can add other types for your needs using plugins. For example, the BlogMode plugin adds a blog post type to display user pages in a separate blog section of the forum. For user convenience, there's also a dropdown in the admin page list to sort pages by entry type.

A new viewing permission has been added for blocks and pages - "Show to Moderators". This applies to both board moderators and global ones.

(https://i.postimg.cc/mgw9LCdT/sshot-14.png) (https://postimages.org/)

Addons have been renamed to plugins. All plugins are now physically located in the `Sources/LightPortal/Plugins` directory. There's also an event manager for plugins. With the "Light Portal" tab in SMF Tracy Debugger, you can see a list of all portal hooks, events, and the plugins subscribed to them.

Global documentation update: translations have been added in Arabic, German, Spanish, Turkish, Ukrainian, French, and Dutch. If you want to improve or add a new translation, join the Crowdin system. As practice has shown, not everyone understands how to switch the language of the documentation and uses the built-in translator in the browser. Therefore, I am specifically posting a screenshot with an image of the required button:

(https://i.postimg.cc/KvxCkyGx/sshot-12.png) (https://postimages.org/)

As an experiment, the interface of the first settings page has been changed - now all settings are organized into tabs, just like when editing pages and blocks. Be sure to check how this interface works in the mobile version.

(https://i.postimg.cc/52F5f6h0/sshot-13.png) (https://postimg.cc/WdTqnbbL)

As usual, bugs have been fixed and some translations have been updated.

At first, make sure to update the Optimus 3.0 if it is installed.

You can update without reinstalling only from version 2.7.*. If your version is below 2.7, first update to 2.7, or completely remove the portal (after exporting the necessary pages and blocks), and then install the latest version from scratch.
Title: Re: Light Portal
Post by: TeamKC on December 01, 2024, 06:10:20 PM
Hello Bugo,

The update for your portal is amazing, but it gives one problem.

When we have the who-is-Online block active with avatars showing it gives us links instead of the names and their avatar, it happens on mobile and pc, I have pictures to show what I mean.

When we have only name with title on or name with title off it works fine, but as soon as we turn on show avatar it doesn't work the way it should.


Greetings,
TeamKC
Title: Re: Light Portal
Post by: Tyrsson on December 01, 2024, 10:00:58 PM
Quote from: Bugo on November 10, 2024, 11:46:22 PMWelcome to update 2.8!

Now you can restore deleted pages if you change your mind. Deleted pages won't show up anywhere except in a special section in the admin panel. You can also permanently delete them from there if needed.

Instead of extended statuses, all pages now have a new feature - entry type. By default, there are 3 types of pages: standard (the ones that show up on the homepage as articles), internal (pages that don't show anywhere but can be added to the forum menu or accessed via a direct link), and draft (pages visible only to their authors). Only admins can create internal pages. You can add other types for your needs using plugins. For example, the BlogMode plugin adds a blog post type to display user pages in a separate blog section of the forum. For user convenience, there's also a dropdown in the admin page list to sort pages by entry type.

A new viewing permission has been added for blocks and pages - "Show to Moderators". This applies to both board moderators and global ones.

(https://i.postimg.cc/mgw9LCdT/sshot-14.png) (https://postimages.org/)

Addons have been renamed to plugins. All plugins are now physically located in the `Sources/LightPortal/Plugins` directory. There's also an event manager for plugins. With the "Light Portal" tab in SMF Tracy Debugger, you can see a list of all portal hooks, events, and the plugins subscribed to them.

Global documentation update: translations have been added in Arabic, German, Spanish, Turkish, Ukrainian, French, and Dutch. If you want to improve or add a new translation, join the Crowdin system. As practice has shown, not everyone understands how to switch the language of the documentation and uses the built-in translator in the browser. Therefore, I am specifically posting a screenshot with an image of the required button:

(https://i.postimg.cc/KvxCkyGx/sshot-12.png) (https://postimages.org/)

As an experiment, the interface of the first settings page has been changed - now all settings are organized into tabs, just like when editing pages and blocks. Be sure to check how this interface works in the mobile version.

(https://i.postimg.cc/52F5f6h0/sshot-13.png) (https://postimg.cc/WdTqnbbL)

As usual, bugs have been fixed and some translations have been updated.

At first, make sure to update the Optimus 3.0 if it is installed.

You can update without reinstalling only from version 2.7.*. If your version is below 2.7, first update to 2.7, or completely remove the portal (after exporting the necessary pages and blocks), and then install the latest version from scratch.
Well done!!
Title: Re: Light Portal
Post by: Bugo on December 01, 2024, 10:02:06 PM
Excellent catch, thank you! :) You'll need to open Sources/LightPortal/Plugins/WhosOnline and find that code:

        // With avatars
        if ($parameters['show_avatars']) {
            $users = array_map(fn($item) => Avatar::get($item['id']), $whoIsOnline['users_online']);

            $whoIsOnline['list_users_online'] = [];
            foreach ($whoIsOnline['users_online'] as $key => $user) {
                $whoIsOnline['list_users_online'][] = Str::html('a', $users[$key])
                    ->href(Config::$scripturl . '?action=profile;u=' . $user['id'])
                    ->title($user['name']);
            }
        }

and replace it with this

        // With avatars
        if ($parameters['show_avatars']) {
            $users = array_map(fn($item) => Avatar::get($item['id']), $whoIsOnline['users_online']);

            $whoIsOnline['list_users_online'] = [];
            foreach ($whoIsOnline['users_online'] as $key => $user) {
                $whoIsOnline['list_users_online'][] = Str::html('a', '')
                    ->href(Config::$scripturl . '?action=profile;u=' . $user['id'])
                    ->title($user['name'])
                    ->addHtml($users[$key]);
            }
        }
Title: Re: Light Portal
Post by: ~Souza~ on December 02, 2024, 05:20:01 AM
I got everything installed and 'manage plugins' was working. Now I needed to go back and I get this (see attachment). What happened? Help! LOL
Title: Re: Light Portal
Post by: ~Souza~ on December 02, 2024, 05:28:17 AM
Also got this.
Title: Re: Light Portal
Post by: Bugo on December 02, 2024, 07:43:49 AM
@~Souza~, did you set up the portal from scratch or did you upgrade? In any case, try performing a reinstallation with a complete removal of the tables in the database (I mean the portal tables!). What is your version of PHP and the database?

What were you doing before this problem occurred? What other modifications have you installed? Which theme is being used?
Title: Re: Light Portal
Post by: ~Souza~ on December 02, 2024, 12:57:25 PM
I'll try a new install one more time. I will report back!
Title: Re: Light Portal
Post by: ~Souza~ on December 02, 2024, 01:13:03 PM
So the plugins page is back after a new install, so that works. I didn't do anything IMO that caused it, so I am not sure what the problem was. I tried upgrading but that broke my forum every time, so in the end I tried a fresh install (also of the forum) and that worked. But then the weird stuff happened about an hour later.

What I still can't get to work (never was able to) and not sure if I am just missing something obvious, is the blog function? It's in the menu, in the profiles etc. but I can't find anywhere to actually post a blog?
Title: Re: Light Portal
Post by: ~Souza~ on December 02, 2024, 01:19:31 PM
Quote from: ~Souza~ on December 02, 2024, 05:28:17 AMAlso got this.

I am still getting these errors though. I did fix the who's online avatar stuff already as you mention on the previous page.
Title: Re: Light Portal
Post by: Bugo on December 02, 2024, 01:34:34 PM
Errors may be related to missing settings in the database. You just need to go to the settings of the specific block or plugin that is causing the errors, select the settings you need, and save the changes.

As for the blog, when creating a page, you can specify its type - regular (default), internal, or blog post. Accordingly, blog posts will be displayed at the address ?action=blog (or another one if specified in the settings of the BlogMode plugin). Also, don't forget to configure the appropriate permissions for your members.
Title: Re: Light Portal
Post by: ~Souza~ on December 02, 2024, 01:51:08 PM
Quote from: Bugo on December 02, 2024, 01:34:34 PMErrors may be related to missing settings in the database. You just need to go to the settings of the specific block or plugin that is causing the errors, select the settings you need, and save the changes.

Didn't do the trick. I even deleted the block from the portal and still get the error. On any theme by the way.


This is what I get in the file that has an error on line 178:

178:          if ($parameters['show_whos_online'] && $boardStats['whos_online']) {
179:                $onlineTitle = User::hasPermission('who_view')
180:                    ? Str::html('a', Lang::$txt['online_users'])->href(Config::$scripturl . '?action=who')
181:                    : Lang::$txt['online_users'];
182:   
183:                $whosOnlineDiv = Str::html('div');
184:                $whosOnlineHeader = Str::html('h4')->addHtml(
185:                    ($parameters['use_fa_icons']
186:                        ? Str::html('i', ['class' => 'fas fa-users'])
187:                        : Str::html('span', ['class' => 'main_icons people'])) .
188:                    ' ' . $onlineTitle
189:                );
Title: Re: Light Portal
Post by: ~Souza~ on December 02, 2024, 01:51:52 PM
Quote from: Bugo on December 02, 2024, 01:34:34 PMAs for the blog, when creating a page, you can specify its type - regular (default), internal, or blog post. Accordingly, blog posts will be displayed at the address ?action=blog (or another one if specified in the settings of the BlogMode plugin). Also, don't forget to configure the appropriate permissions for your members.

Ahhhh! Got it.
Title: Re: Light Portal
Post by: Bugo on December 02, 2024, 02:35:26 PM
Find this line
$parameters['show_latest_member'] ??= false; in the file Sources/LightPortal/Plugins/BoardStats.php and add the following lines after it:

$parameters['show_whos_online'] ??= false;
$parameters['show_basic_info'] ??= false;
$parameters['use_fa_icons'] ??= false;
Title: Re: Light Portal
Post by: ~Souza~ on December 02, 2024, 05:00:21 PM
That worked, thanks. But now the plugin page is messed up again.
Title: Re: Light Portal
Post by: ~Souza~ on December 02, 2024, 05:28:01 PM
Quote from: ~Souza~ on December 02, 2024, 05:00:21 PMThat worked, thanks. But now the plugin page is messed up again.

I figured out what causes it. The Plugins page gets messed up when I add the simple chat block to my portal, goes back to normal when I remove it again. At least I know a way around it now but maybe you can see if you can replicate and fix it?
Title: Re: Light Portal
Post by: Bugo on December 02, 2024, 08:47:25 PM
I knew chat blocks were evil! :) Open Sources/LightPortal/Plugins/PluginHandler.php, find this block:

$this->prepareAssets();
$this->prepareListeners($plugins);

and replace it with:

$this->prepareListeners($plugins);
$this->prepareAssets();

Then clear the forum cache.
Title: Re: Light Portal
Post by: razor1995 on December 17, 2024, 07:20:06 PM
How to increase the height of Simple Chat?
Currently it looks like the screenshot - I would like more messages to be visible.
(https://i.imgur.com/1Wcplw2.png)
Title: Re: Light Portal
Post by: Bugo on December 17, 2024, 10:47:30 PM
You need to edit the property max-height: 100px; in the file Sources/LightPortal/Plugins/SimpleChat/style.css.
Title: Re: Light Portal
Post by: razor1995 on December 18, 2024, 05:48:08 AM
Hi @Bugo, unfortunately it's not working, I changed the value like this:
.block_simple_chat {
.moderation_notes {
height: 100%;
max-height: 400px;
margin-bottom: 10px;
padding-right: 1em;
}

.avatar {
width: 20px;
vertical-align: bottom;
}

.main_icons.delete {
cursor: pointer;
margin-top: -1px;
margin-left: 10px;
}

.full_width {
float: none;
width: 100%;
}
}
Title: Re: Light Portal
Post by: Bugo on December 18, 2024, 08:03:32 AM
Did you clear cache?

Try to remove Themes/default/css/light_portal/plugins.css after your changes.
Title: Re: Light Portal
Post by: razor1995 on December 18, 2024, 10:59:23 AM
@Bugo, yes, cache was cleaned.
View when you're logged in:
https://i.imgur.com/oLxLGzE.png

View without login (it should be high like this every time):
https://i.imgur.com/90Z6UzZ.png
Title: Re: Light Portal
Post by: Bugo on December 18, 2024, 12:41:44 PM
Browser cache, forum cache?

Perhaps I should add a chat window height setting to the block settings?
Title: hundred Errors in/from Init.php
Post by: kurapika on December 19, 2024, 04:23:24 PM
I have a problem with a single user who is generating hundreds of errors in a few hours.
The errors are all related to the /Sources/LightPortal/Hooks/Init.php file.

The error messages that only affect this user are all as follows:
usw.


One of the reports in detail:
19.12.2024 | 21:20
Benutzername
12.345.78.99
adg848ba0ccb5648c20dpc2a3f39zda
https://forum.example.com/index.php?action=profile;area=forumprofile;u=7
/www/htdocs/w05fan27/forum.example.com/Sources/LightPortal/Hooks/Init.php (Zeile 44)

Art des Fehlers: Generell
Fehlermeldung Auswählen
2: Constant LP_ADDON_PATTERN already defined


What can I do?


EDIT: It occurs for every user (except the admin), every time action=profile;area=forumprofile;u=123 is accessed/changed! Each access results in exactly 13 errors
Title: Re: Light Portal
Post by: Bugo on December 19, 2024, 09:30:29 PM
Open that Init.php and add this code before Utils::$context['lp_load_time']:

if (defined('LP_NAME'))
return;
Title: Re: Light Portal
Post by: kurapika on December 20, 2024, 05:08:43 AM
Unfortunately that didn't bring any improvement, there were still 13 errors per visit in the profile.
Think I'll remove the portal again.
Because even if such a code works, it will be gone with the next update.
Title: Re: Light Portal
Post by: Bugo on December 20, 2024, 05:25:39 AM
Quoteit will be gone with the next update.
How did you come to that conclusion?

Before recommending this code to you, I tested it on my test setup and found no errors.

class Init
{
    public function __invoke(): void
    {
        if (defined('LP_NAME'))
            return;

        Utils::$context['lp_load_time'] ??= microtime(true);
Title: Re: Light Portal
Post by: kurapika on December 20, 2024, 05:38:43 AM
Quote from: Bugo on December 20, 2024, 05:25:39 AMHow did you come to that conclusion?
If the file is restored to its original state when the portal(*) is updated, my adjustment is gone. (or are there options like with WordPress using a child theme?)

QuoteBefore recommending this code to you, I tested it on my test setup and found no errors.
For me it is now the case that only certain users trigger these errors. I really don't know why that is. (As an admin, I didn't trigger the errors before.)


*) There is already a new version out there, but I don't yet know how to update the portal properly. Therefore I still have 2.8.1.
Title: Re: Light Portal
Post by: Bugo on December 20, 2024, 05:51:27 AM
Since I just received information about this error now, it's natural that the fix will only be added in the next version. But what's stopping you from updating to 2.8.2 and applying this fix manually right away? How to update is one of the most popular pages in the documentation (https://dragomano.github.io/Light-Portal/getting-started/updating), the link to which is available on every portal settings page.

If the update procedure differs from the standard one, I usually mention this in the notes of the announcement for the latest version in this topic.

In your specific case, it is enough to unpack the Themes and Sources folders from the archive of the latest version into the root of your forum, replacing the existing directories.
Title: Re: Light Portal
Post by: kurapika on December 20, 2024, 06:10:54 AM
Quote from: Bugo on December 20, 2024, 05:51:27 AMSince I just received information about this error now, it's natural that the fix will only be added in the next version
That's logical!
And the error is probably just mine, maybe I set something wrong or something.

Unfortunately I don't have an 'Upgrade' button.
Guess you have to download the latest package from https://custom.simplemachines.org/index.php?mod=4244 and then overwrite the files of the same name in \\Sources\\LightPortal?
But I don't know what I should do in the themes.

Quote from: Bugo on December 20, 2024, 05:51:27 AMthe most popular pages in the documentation (https://dragomano.github.io/Light-Portal/getting-started/updating),

Thanks! I'll work through this.
Title: Re: Light Portal
Post by: Bugo on December 20, 2024, 06:18:50 AM
After uploading the new package, you shouldn't click the "Install" button right away. Instead, return to the main page of the Package Manager, where all modifications are listed. Then you should see the "Upgrade" button if the currently installed version can be updated.
Title: Re: Light Portal
Post by: kurapika on December 20, 2024, 07:02:35 AM
The upgrade just worked!

But as suspected, my customization of Init.php is overwritten. But it doesn't matter, it didn't help anyway.
Title: Re: Light Portal
Post by: kurapika on December 20, 2024, 07:30:17 AM
Apparently something went wrong though, because after I deleted the old package the site is dead.

No idea what I should do now?


The error message is:

Fatal error: Uncaught Error: Class "Bugo\LightPortal\Hooks\Init" not found in /www/htdocs/123456789/forum.example.com/Sources/LightPortal/Hooks/UserInfo.php:22 Stack trace: #0 /www/htdocs/123456789/forum.example.com/Sources/Subs.php(5766): Bugo\LightPortal\Hooks\UserInfo->__invoke() #1 /www/htdocs/123456789/forum.example.com/Sources/Load.php(954): call_integration_hook('integrate_user_...') #2 /www/htdocs/123456789/forum.example.com/index.php(218): loadUserSettings() #3 /www/htdocs/123456789/forum.example.com/index.php(188): smf_main() #4 {main} thrown in /www/htdocs/123456789/forum.example.com/Sources/LightPortal/Hooks/UserInfo.php on line 22

How can I fix this?

How do I uninstall the mod completely and without errors?
Title: Re: Light Portal
Post by: Bugo on December 20, 2024, 07:53:50 AM
There is a manual switcher (https://github.com/dragomano/Light-Portal/wiki/How-to-enable-disable-the-portal-quickly) to enable/disable the portal.

Or, just rename the Sources/LightPortal directory.

To remove the portal, if you are unable to do so through the package manager, it is sufficient to delete the folders Themes/default/LightPortal and Sources/LightPortal. In the database, you can delete the corresponding tables with the prefix {your_prefix}_lp_*.
Title: Re: Light Portal
Post by: kurapika on December 20, 2024, 08:43:01 AM
Quote from: Bugo on December 20, 2024, 07:53:50 AMThere is a manual switcher (https://github.com/dragomano/Light-Portal/wiki/How-to-enable-disable-the-portal-quickly) to enable/disable the portal.
That wasn't successful


QuoteOr, just rename the Sources/LightPortal directory.
That was the first thing I did, but without success


Quote... to delete the folders Themes/default/LightPortal and Sources/LightPortal.
That helped, I can even log in again as admin.

But I had to shut down the forum now. Because legally required menu entries such as data protection etc. are now missing (that was only implemented via the portal) And unfortunately other mods were also damaged as a result, various stylings are gone.
Title: Re: Light Portal
Post by: Bugo on December 20, 2024, 09:26:18 AM
Explain how other mods were affected if you only deleted the folders that I specified?
Title: Re: Light Portal
Post by: kurapika on December 20, 2024, 11:15:07 AM
Quote from: Bugo on December 20, 2024, 09:26:18 AMExplain how other mods were affected if you only deleted the folders that I specified?
I only deleted these two folders!
Maybe the toogle_portal script changed something? It didn't change the status of the portal (the WSOD remained), but it may have disrupted something else?
Title: Re: Light Portal
Post by: Bugo on December 20, 2024, 11:31:13 AM
All that script does is add or remove a hook that makes the portal work. It couldn't delete your mods or styles in any way. In any case, I can't see your forum and can't provide a more accurate assessment.
Title: Re: Light Portal
Post by: drfun on December 21, 2024, 05:01:31 AM
Hi Bugo,
Thank you for this wonderful portal, i recently noticed on my older version 2.6.0 that when admin and member login from the portal, once the login is successful, they are unable to see the portal element (IMAGES) displayed on the next page that loads, only links and text they can see, but before the login they are able to see. so i check the permission and i can see i have set everything right but i dont know why this is happen.

I then decided to upgrade to the latest version of the portal which is 2.8.2, but on installation, i got this error
QuoteDatabase Error: Unknown column 'slug' in 'INSERT INTO'
home/avvz/public_html/Packages/temp/database.php (Line 587)

when i checked on this support thread, i found out someone has already reported this at https://www.simplemachines.org/community/index.php?topic=572393.msg4176417;topicseen#msg4176417

But it was not resolved, although i tried the solution that was given by upgrading Optimus to 3.0 which i have done and i am still getting the error, my Optimus version is currently 3.0 RC1.

I decided to uninstall the optimus, and also drop all its table in the database, then try to install the latest version of the portal again but i got thesame error and the portal did not proceed to install.

Please how can i resolve this.
Thank you
Title: Re: Light Portal
Post by: Bugo on December 21, 2024, 07:40:05 AM
@drfun In your case, it would be better to upgrade step by step — first to 2.7 (https://www.simplemachines.org/community/index.php?msg=4175680), and then to 2.8 (https://www.simplemachines.org/community/index.php?msg=4182246).

You can find installers for older versions on GitHub (https://github.com/dragomano/Light-Portal/releases). You need v2.7.0, and v2.8.0.

Don't forget to make backups! Even if you encounter errors during the upgrade, just ignore them. After updating to 2.8.0, you can then upgrade to 2.8.2.

In the worst-case scenario, if all these installers don't help, you can always check the current database structure in the database.php file within the package and make the necessary changes to your tables. Then, just extract the Sources and Themes directories from the archive to the root of your forum. However, a step-by-step upgrade is usually the better approach.
Title: Re: Light Portal
Post by: drfun on December 21, 2024, 10:02:26 PM
Quote from: Bugo on December 21, 2024, 07:40:05 AM@drfun In your case, it would be better to upgrade step by step — first to 2.7 (https://www.simplemachines.org/community/index.php?msg=4175680), and then to 2.8 (https://www.simplemachines.org/community/index.php?msg=4182246).

You can find installers for older versions on GitHub (https://github.com/dragomano/Light-Portal/releases). You need v2.7.0, and v2.8.0.

Don't forget to make backups! Even if you encounter errors during the upgrade, just ignore them. After updating to 2.8.0, you can then upgrade to 2.8.2.

In the worst-case scenario, if all these installers don't help, you can always check the current database structure in the database.php file within the package and make the necessary changes to your tables. Then, just extract the Sources and Themes directories from the archive to the root of your forum. However, a step-by-step upgrade is usually the better approach.
Thank you for your response. I tried the upgrade from older version as you said but still got thesame database error.
I decided to do a fresh  installation of smf 2.1.4 and i tried to insatll the light portal version 2.7, 2.7.1, 2.8, 2.8.1 and 2.8.2. Each gave me gave me the same error at various lines in the database. however 2.8.2 gave the error  below.
QuoteUnknown column 'slug' in 'INSERT INTO'
File: /home/vvz/public_html/Packages/temp/database.php
Line: 587
and could not install.
Title: Re: Light Portal
Post by: Bugo on December 22, 2024, 12:22:46 AM
To perform a fresh installation, you need to first delete the old tables in the database with the prefix {your_prefix}_lp_.
Title: Re: Light Portal
Post by: drfun on December 22, 2024, 02:33:08 AM
Quote from: Bugo on December 22, 2024, 12:22:46 AMTo perform a fresh installation, you need to first delete the old tables in the database with the prefix {your_prefix}_lp_.

Thank you bugo, I drop the old tables in the database and it installed perfectly without the error.
Title: Re: Light Portal
Post by: Bugo on December 22, 2024, 02:34:56 AM
Did I tell you to destroy the entire database? I only mentioned the tables with a specific prefix. Don't confuse people! :)
Title: Re: Light Portal
Post by: drfun on December 22, 2024, 02:40:19 AM
Quote from: Bugo on December 22, 2024, 02:34:56 AMDid I tell you to destroy the entire database? I only mentioned the tables with a specific prefix. Don't confuse people! :)

lol, thank you, I have rephrased my statement above. But thanks for making me laugh a little :laugh: .
Title: Re: Light Portal
Post by: cieplutki on December 23, 2024, 12:24:34 PM
is the part of the code highlighted in red correct?

Quote// Blocks
$txt['lp_blocks'] = 'Blocks';
$txt['lp_blocks_manage'] = 'Manage blocks';
$txt['lp_blocks_manage_description'] = 'All created portal blocks are listed here. To add a block, use the "+" button.';
$txt['lp_blocks_add'] = 'Add block';
$txt['lp_blocks_add_title'] = 'Adding a block';
$txt['lp_blocks_add_description'] = 'Blocks can contain any content, depending on their type.';
$txt['lp_blocks_add_instruction'] = 'Select the desired block by clicking on it. If the block you need is not on the list, check if the <a class="bbc_link" href="%s">corresponding plugin</a> is enabled.';
$txt['lp_blocks_edit_title'] = 'Editing block';
$txt['lp_blocks_edit_description'] = $txt['lp_blocks_add_description'];
$txt['lp_block_type'] = 'Block type';
$txt['lp_block_note'] = 'Note';
$txt['lp_block_priority'] = 'Priority';
$txt['lp_block_placement'] = 'Placement';
$txt['lp_block_placement_select'] = 'Where should the block be displayed?';
$txt['lp_block_placement_set'] = ['Header', 'Center (top)', 'Left side', 'Right side', 'Center (bottom)', 'Footer'];
Title: Re: Light Portal
Post by: Bugo on December 23, 2024, 01:17:44 PM
Yeah, it's a placeholder for the future. For now, the descriptions for the edit and add block pages are the same.
Title: Re: Light Portal
Post by: Bugo on January 05, 2025, 01:54:19 PM
v2.9
- Fixed identified issues
- Updated plugins
- Added new plugins: Dragula and TwentyFortyEight
- Updated layouts and styles
- Added two new layouts
- Migrated UI components from Vue 3 to Svelte 5 (comments and plugins)
- Migrated to Sass modules (@import => @use)
- Updated documentation
- Refactored a significant amount of code
- Reduced package sizes

Since plugin classes now use strict typing, you might see some errors in your logs. Don't worry! Just go to the settings of each block and re-save settings. After that, clear the error log and check if the errors show up again. If that doesn't help, leave a message here or on the "Updating" page in the docs.

How to upgrade

After the update, don't forget to clear the forum cache and your browser cache, and check the portal settings.

Just a quick reminder, the portal comes in three editions: the geek version, which has no plugins and is only in English; the regular version, which includes all languages and a popular set of plugins; and the dev version, which is for developers and has the full set of plugins.

By the way, for those who forgot or didn't know - you can use emojis in the comments for the pages! https://github.com/showdownjs/showdown/wiki/Emojis#emoji-list
Title: Re: Light Portal
Post by: Darknico on January 08, 2025, 05:44:20 AM
Hi @Bugo
I have an issue with plugins boardnews and statistics :(

QuoteFatal error: Uncaught Error: Call to undefined method Bugo\Compat\Lang::numberFormat() in /home/mhd-01/www.SITE.net/htdocs/forum/Sources/LightPortal/Plugins/BoardNews/BoardNews.php:171 Stack trace: #0 /home/mhd-01/www.SITE.net/htdocs/forum/Sources/LightPortal/EventManager.php(67): Bugo\LightPortal\Plugins\BoardNews\BoardNews->prepareContent() #1 /home/mhd-01/www.SITE.net/htdocs/forum/Sources/LightPortal/Utils/Content.php(49): Bugo\LightPortal\EventManager->dispatch() #2 /home/mhd-01/www.SITE.net/htdocs/forum/Sources/LightPortal/Areas/BlockArea.php(420): Bugo\LightPortal\Utils\Content::prepare() #3 /home/mhd-01/www.SITE.net/htdocs/forum/Sources/LightPortal/Areas/BlockArea.php(178): Bugo\LightPortal\Areas\BlockArea->preparePreview() #4 /home/mhd-01/www.SITE.net/htdocs/forum/Sources/LightPortal/Areas/ConfigArea.php(383): Bugo\LightPortal\Areas\BlockArea->edit() #5 /home/mhd-01/www.SITE.net/htdocs/forum/Sources/LightPortal/Areas/ConfigArea.php(296): Bugo\LightPortal\Areas\ConfigArea->callActionFromAreas() #6 /home/mhd-01/www.SITE.net/htdocs/forum/Sources/Admin.php(499): Bugo\LightPortal\Areas\ConfigArea->blockAreas() #7 /home/mhd-01/www.SITE.net/htdocs/forum/index.php(191): AdminMain() #8 {main} thrown in /home/mhd-01/www.SITE.net/htdocs/forum/Sources/LightPortal/Plugins/BoardNews/BoardNews.php on line 171

I tried the upgrade from 2.8.2 first.
After this, I tried uninstall and reinstall 2.9.0 but same error

I use PHP 8.2, but I tested 8.3 and 8.4, same issue

Title: Re: Light Portal
Post by: Bugo on January 08, 2025, 06:23:17 AM
The update was performed from the regular version 2.8.2 to the regular 2.9? Or was it the geek/dev versions? You could try updating the dependencies with composer update in the Sources/LightPortal directory.
Title: Re: Light Portal
Post by: Darknico on January 08, 2025, 06:31:45 AM
Uninstalled 2.8.2 and installed 2.9.0, regular version, I have this error.

In first time, I have upgrade to 2.9.0 but have different issue in layout (don't work correctly the with for the right column) and plugin page (white page, it is impossibile enable/disable plugin)

In my mind, ok, I have dirty files, I try a clean install... remove all and install directly the 2.9.0...BOOM!

Quote from: Bugo on January 08, 2025, 06:23:17 AMYou could try updating the dependencies with composer update in the Sources/LightPortal directory.

How I do?



Title: Re: Light Portal
Post by: Bugo on January 08, 2025, 06:37:13 AM
Try to rename Sources/LightPortal, and Themes/default/LightPortal, then extract them from the package.

Try to reset the forum/browser cache.
Title: Re: Light Portal
Post by: Darknico on January 08, 2025, 06:54:15 AM
I tried but same issue :(
Title: Re: Light Portal
Post by: Bugo on January 08, 2025, 07:00:09 AM
Can you access the settings? Try entering the settings and simply saving them.

Or grant me access, and I'll find the cause faster.
Title: Re: Light Portal
Post by: Darknico on January 08, 2025, 07:02:32 AM
Quote from: Bugo on January 08, 2025, 07:00:09 AMCan you access the settings? Try entering the settings and simply saving them.

Yes, I tried, save but if enable BOOM

Quote from: Bugo on January 08, 2025, 07:00:09 AMOr grant me access, and I'll find the cause faster.

Yes, no problem, now you contact in private with admin user.

 
Title: Re: Light Portal
Post by: Bugo on January 08, 2025, 07:54:03 AM
Ok, I forgot to mention in the release notes that if anyone is using Optimus or SMF Tracy Debugger, they also need to be updated. They all use the same dependency — the smf-compat package — so they should be updated together.
Title: Re: Light Portal
Post by: Critterlover57 on January 20, 2025, 10:19:46 AM
I just installed LIGHT PORTAL and I read the instructions for using a STAND ALONE page for the front page, and it says, "even if it's on another site." So, I put the page address in, and got "nothing found". Please, can you tell me HOW we're supposed to route this?

Thank you!
Title: Re: Light Portal
Post by: Bugo on January 20, 2025, 11:09:06 AM
If you've read this part, you probably also saw where to check out the example — "portal.php" in the root of the forum. So, you can either link to that portal.php on your site or upload that file to another site and provide a link to it. However, the second option will require more complicated setup, like specifying connection parameters for a remote database and so on. So, the first option is definitely the way to go.

Also, if you link to any other file that's not related to the portal, it'll just be a regular link to another site, and you'll only be able to get back to the current site if you set up cross-links between both sites. Anyway, I'm not sure what your goals are; maybe you want to use WordPress + SMF, but the portal isn't designed for that purpose.
Title: Re: Light Portal
Post by: Critterlover57 on January 20, 2025, 01:49:41 PM
Hi,

Thank you for the quick reply! Yes I did read about the example, I just didn't understand how to use it, because I'm so used to modifying code for customization. So, I didn't know how exactly I was supposed to look at it. I will take a look as you suggested and see what I can understand. Forgive me, I have a few learning disabilities, so sometimes it takes a bit for something to fully sink in.

And YES, I have a Wordpress site, and I thought I could maybe display a page from that site as the front page given your description. But if that's not possible, I would do something else. Let me take a look now, and if I can't understand, I will ask for clarification. Right now I'm still exploring it and trying to learn of it's capabilities, and hoping they're not hindered by my limited capabilities.

But anyway, since I have you ... I've been getting the same error over and over again since I installed it.

Type of error: General
Error message Select
2: unlink(/home9/betterr1/public_html/forum2/Themes/default/scripts/light_portal/plugins.js): No such file or directory

Do understand why this might be happening and what I might be able to do to fix it?

Many Thanks!

Shelley
Title: Re: Light Portal
Post by: Bugo on January 20, 2025, 10:13:22 PM
Are write permissions set for the directory /Themes/default/scripts/light_portal/? Are there any other files in this directory? What type of caching is used on the forum?
Title: Re: Light Portal
Post by: Critterlover57 on January 20, 2025, 11:53:34 PM
Hi!

Thanks for replying. I checked the directory you referenced and all the files have RW permissions. As far as caching goes ... This is what I have for the forum .... Just the forum cache, as I have no others activated anywhere on my site at the moment.

SMF supports caching through the use of accelerators. The currently supported accelerators include:

    APCu
    Memcached
    SQLite3
    PostgreSQL
    Zend Platform/Performance Suite (Not Zend Optimizer)

Caching will work best if you have PHP compiled with one of the above optimizers, or have memcached available. If you do not have any optimizer installed SMF will do file based caching.
SMF has detected the following accelerators: SMF file based caching, SQLite3 database based caching

As for files in the directory you referenced ... These are the files inside of it ...

Folder-layouts
ViewPage.template.php
ViewFrontPage.template.php
ViewDebug.template.php
ViewCredits.template.php
ViewBlocks.template.php
ManageTags.template.php
ManageSettings.template.php
ManagePlugins.template.php
ManagePanels.template.php
ManagePages.template.php
ManageImpex.template.php
ManageFeedback.template.php
ManageCategories.template.php
ManageBlocks.template.php
index.php

As of right now, I have 14 errors logged, though they're isn't 14 individual errors, it's just that they're being called repeatedly. I will list them in simple language here, but if you need backtrace information,let me know.

2: Trying to access array offset on value of type null
2: Undefined array key "dark_themes"
2: unlink(/home9/betterr1/public_html/forum2/Themes/default/scripts/light_portal/plugins.js): No such file or directory

I have checked, and regarding the error messages referencing missing files and directories,they are correct, they don't exist.

Also important, I was looking at how to create pages, and I got an ERROR message that I NEEDED AN API KEY FROM TINY MCE to use the page editor. I got the key, but I have NO IDEA WHERE it's supposed to be inserted on the forum. Can you direct me, please?

Regarding the front page, I DO have dummy info/text on the page that I chose to be the front page, yet when I go to the FRONT PAGE, I just get a blank white page. I don't know. Should I just uninstall everything and start over?

Many Thanks,

Shelley






Title: Re: Light Portal
Post by: Bugo on January 21, 2025, 12:55:14 AM
Let's start from the beginning. In the directory I specified, there shouldn't be any of the files you listed. Please check the path again carefully.

After enabling (or before) any plugin with a gear icon, you need to click on that gear icon to open the settings:

(https://i.ibb.co/8jn7q6m/sshot-6.png) (https://imgbb.com/)

After configuring all the necessary plugins, try checking for the existence of the file /Themes/default/scripts/light_portal/plugins.js again. It gets recreated automatically when plugins are enabled/disabled and when scripts in the plugin directories are modified.

As for the standalone mode, it is mainly needed in cases where you want to leave just the portal instead of the forum (just disable the unnecessary actions), so that everything looks something like this:

(https://i.ibb.co/JBKhyrt/sshot-8.png) (https://imgbb.com/)

Also, I recommend that you enable the HelloPortal plugin and use the Interactive Tour button to go through the portal settings once again.
Title: Re: Light Portal
Post by: Critterlover57 on January 21, 2025, 10:27:00 AM
GOOD MORNING!

Okay, I found the API KEY slot. Thank you for the clarification. Upon looking at the directory you specified a second time, after some much needed sleep, it would appear that I made a mistake yesterday. I apologize. The files in the specified directory are as follows:

tiny_slider
snowflakes
search
likely
chart
virtual-select.min.js
Sortable.min.js
portal.js
plugins.js
lazyload.min.js
index.php
bundle_plugins.js
bundle_comments.js
bundle.min.js

As for the JS file, it is there now, yes. I have over 58 errors logged now. Shall I just start over with a clean install? I haven't done anything other than play around and get to understand all of the portal settings, so starting over isn't really that big a deal.

I await your advice!

Thank you!

Shelley
Title: Re: Light Portal
Post by: Bugo on January 21, 2025, 10:38:44 AM
It's unlikely that a clean install will resolve other issues; it's up to you to decide. I will make corrections in the next version, so for now, you can ignore it, but if any other errors arise, please let me know.
Title: Re: Light Portal
Post by: Darknico on January 24, 2025, 04:23:53 AM
Hi @Bugo
A new strange error...

If is a guest and try login (as a regular user), show this error:

Fatal error: Uncaught Error: Call to undefined method Closure::get() in /home/mhd-01/www.site.ext/htdocs/forum/Sources/LightPortal/Enums/Permission.php:79 Stack trace: #0 /home/mhd-01/www.site.ext/htdocs/forum/Sources/LightPortal/Enums/Permission.php(69): Bugo\LightPortal\Enums\Permission::getBoardModerators() #1 /home/mhd-01/www.site.ext/htdocs/forum/Sources/LightPortal/Enums/Permission.php(56): Bugo\LightPortal\Enums\Permission::isModerator() #2 /home/mhd-01/www.site.ext/htdocs/forum/Sources/LightPortal/Articles/PageArticle.php(68): Bugo\LightPortal\Enums\Permission::all() #3 /home/mhd-01/www.site.ext/htdocs/forum/Sources/LightPortal/Actions/FrontPage.php(110): Bugo\LightPortal\Articles\PageArticle->init() #4 /home/mhd-01/www.site.ext/htdocs/forum/Sources/LightPortal/Actions/FrontPage.php(80): Bugo\LightPortal\Actions\FrontPage->prepare() #5 /home/mhd-01/www.site.ext/htdocs/forum/Sources/LightPortal/Hooks/DefaultAction.php(43): Bugo\LightPortal\Actions\FrontPage->show() #6 /home/mhd-01/www.site.ext/htdocs/forum/index.php(191): Bugo\LightPortal\Hooks\DefaultAction->__invoke() #7 {main} thrown in /home/mhd-01/www.site.ext/htdocs/forum/Sources/LightPortal/Enums/Permission.php on line 79
You can try in my site, with the user used for the previous issue
Title: Re: Light Portal
Post by: Bugo on January 24, 2025, 05:01:32 AM
I've already fixed this error; you can see the fix here (https://github.com/dragomano/Light-Portal/commit/fe78370fbf20121fbf5bbdc37c3e19ed0aec0922)
Title: Re: Light Portal
Post by: Darknico on January 24, 2025, 05:08:19 AM
Quote from: Bugo on January 24, 2025, 05:01:32 AMI've already fixed this error; you can see the fix here (https://github.com/dragomano/Light-Portal/commit/fe78370fbf20121fbf5bbdc37c3e19ed0aec0922)

Oh good, thanks!
I added the fix and work, good job :)
Title: Re: Light Portal
Post by: cieplutki on January 31, 2025, 03:39:00 PM
please give me step by step instructions on how to start the blog block
Title: Re: Light Portal
Post by: Bugo on January 31, 2025, 11:08:55 PM
Quote from: Bugo on December 02, 2024, 01:34:34 PMAs for the blog, when creating a page, you can specify its type - regular (default), internal, or blog post. Accordingly, blog posts will be displayed at the address ?action=blog (or another one if specified in the settings of the BlogMode plugin). Also, don't forget to configure the appropriate permissions for your members.

Just enable the BlogMode plugin and start creating pages (or changing the type of already created pages) with the Blog type.
Title: Re: Light Portal
Post by: Bugo on February 06, 2025, 02:14:20 AM
v2.9.2

* Fixed identified issues
* Updated translations
* Refactored some code
* Updated Svelte components
* Updated some plugins
* Updated docs
* Changed build output format from `zip` to `tgz`
* Added Slovenian translation

In this release, our project on Crowdin came to life thanks to the joining of 3 new translators:


As before, if you are using Optimus or SMF Tracy Debugger, they need to be updated along with the LP.

Note to testers: Due to numerous changes in the source code, the portal is temporarily incompatible with SMF 3.0. Please wait for a fix in the next release.
Title: Re: Light Portal
Post by: Darknico on February 06, 2025, 04:06:57 AM
Hi @Bugo
after update boom :(


QuoteFatal error: Uncaught TypeError: Cannot assign null to property Bugo\LightPortal\Plugins\Plugin::$context of type array in /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Plugins/Plugin.php:60 Stack trace: #0 [internal function]: Bugo\LightPortal\Plugins\Plugin->__construct() #1 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Libs/league/container/src/Definition/Definition.php(229): ReflectionClass->newInstanceArgs() #2 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Libs/league/container/src/Definition/Definition.php(185): League\Container\Definition\Definition->resolveClass() #3 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Libs/league/container/src/Definition/Definition.php(164): League\Container\Definition\Definition->resolveNew() #4 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Libs/league/container/src/Definition/DefinitionAggregate.php(83): League\Container\Definition\Definition->resolve() #5 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Libs/league/container/src/Container.php(175): League\Container\Definition\DefinitionAggregate->resolve() #6 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Libs/league/container/src/Container.php(118): League\Container\Container->resolve() #7 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Container.php(32): League\Container\Container->get() #8 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/app.php(28): Bugo\LightPortal\Container::get() #9 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Plugins/PluginHandler.php(105): app() #10 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Plugins/PluginHandler.php(49): Bugo\LightPortal\Plugins\PluginHandler->prepareListeners() #11 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/ServiceProvider.php(157): Bugo\LightPortal\Plugins\PluginHandler->__construct() #12 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Events/EventManagerFactory.php(32): Bugo\LightPortal\ServiceProvider->Bugo\LightPortal\{closure}() #13 /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Hooks/LoadTheme.php(51): Bugo\LightPortal\Events\EventManagerFactory->__invoke() #14 /home/mhd-01/site.ext/htdocs/forum/Sources/Subs.php(5766): Bugo\LightPortal\Hooks\LoadTheme->__invoke() #15 /home/mhd-01/site.ext/htdocs/forum/Sources/Load.php(2674): call_integration_hook() #16 /home/mhd-01/site.ext/htdocs/forum/index.php(234): loadTheme() #17 /home/mhd-01/site.ext/htdocs/forum/index.php(191): smf_main() #18 {main} thrown in /home/mhd-01/site.ext/htdocs/forum/Sources/LightPortal/Plugins/Plugin.php on line 60

Optimus 3.0 RC2 is installed
Title: Re: Light Portal
Post by: cieplutki on February 06, 2025, 04:09:56 AM
installing modifications on a new, empty forum I have these errors:

Fatal error:
Uncaught TypeError: Cannot assign null to property Bugo\LightPortal\Plugins\Plugin::$context of type array in /usr/home/*********/domains/*********/public_html/Sources/LightPortal/Plugins/Plugin.php:60 Stack trace: #0 [internal function]: Bugo\LightPortal\Plugins\Plugin->__construct() #1

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Libs/league/container/src/Definition/Definition.php(229): ReflectionClass->newInstanceArgs(Array) #2

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Libs/league/container/src/Definition/Definition.php(185): League\Container\Definition\Definition->resolveClass('Bugo\\LightPorta...') #3

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Libs/league/container/src/Definition/Definition.php(164): League\Container\Definition\Definition->resolveNew() #4

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Libs/league/container/src/Definition/DefinitionAggregate.php(83): League\Container\Definition\Definition->resolve() #5

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Libs/league/container/src/Container.php(175): League\Container\Definition\DefinitionAggregate->resolve('Bugo\\LightPorta...') #6

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Libs/league/container/src/Container.php(118): League\Container\Container->resolve('Bugo\\LightPorta...') #7

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Container.php(32): League\Container\Container->get('Bugo\\LightPorta...') #8 /usr/home/*********/domains/*********/public_html/Sources/LightPortal/app.php(28): Bugo\LightPortal\Container::get('Bugo\\LightPorta...') #9

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Plugins/PluginHandler.php(105): app('Bugo\\LightPorta...') #10

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Plugins/PluginHandler.php(49): Bugo\LightPortal\Plugins\PluginHandler->prepareListeners(Array) #11

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/ServiceProvider.php(157): Bugo\LightPortal\Plugins\PluginHandler->__construct(Array) #12

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Events/EventManagerFactory.php(32): Bugo\LightPortal\ServiceProvider->Bugo\LightPortal\{closure}() #13

/usr/home/*********/domains/*********/public_html/Sources/LightPortal/Hooks/LoadTheme.php(51): Bugo\LightPortal\Events\EventManagerFactory->__invoke() #14

/usr/home/*********/domains/*********/public_html/Sources/Subs.php(5766): Bugo\LightPortal\Hooks\LoadTheme->__invoke() #15

/usr/home/*********/domains/*********/public_html/Sources/Load.php(2674): call_integration_hook('integrate_load_...') #16

/usr/home/*********/domains/*********/public_html/index.php(227): loadTheme() #17

/usr/home/*********/domains/*********/public_html/index.php(184): smf_main() #18

{main} thrown in /usr/home/*********/domains/*********/public_html/Sources/LightPortal/Plugins/Plugin.php on line 60

Title: Re: Light Portal
Post by: Bugo on February 06, 2025, 04:13:04 AM
Before this, there were no modifications on the forum, including previous versions?
Title: Re: Light Portal
Post by: Darknico on February 06, 2025, 04:15:15 AM
I updated from 2.9.1, no modification
Title: Re: Light Portal
Post by: Bugo on February 06, 2025, 04:19:37 AM
If you previously downloaded any plugins, you need to update them as well. Try deleting the directory Sources/LightPortal/Plugins now, and then extract the updated directory from the archive of the latest version of the modification. You will need to download the plugins again.
Title: Re: Light Portal
Post by: Darknico on February 06, 2025, 04:25:55 AM
I tried but same issue
Title: Re: Light Portal
Post by: Bugo on February 06, 2025, 04:27:36 AM
Cache?
Title: Re: Light Portal
Post by: Darknico on February 06, 2025, 04:29:23 AM
Quote from: Bugo on February 06, 2025, 04:27:36 AMCache?

deleted :(
Title: Re: Light Portal
Post by: Bugo on February 06, 2025, 04:30:03 AM
Then I will need a list of installed plugins.
Title: Re: Light Portal
Post by: cieplutki on February 06, 2025, 04:48:16 AM
Quote from: Bugo on February 06, 2025, 04:13:04 AMBefore this, there were no modifications on the forum, including previous versions?

No, just instaled smf and text install portal.
Title: Re: Light Portal
Post by: Darknico on February 06, 2025, 04:53:11 AM
Quote from: Bugo on February 06, 2025, 04:30:03 AMThen I will need a list of installed plugins.

In smf_settings, lp_enabled_plugins
QuoteApexCharts,BoardNews,BoardStats,CodeMirror,HidingBlocks,MainMenu,News,PageScroll,RecentTopics,SimpleFeeder,UserInfo,WhosOnline

I removed all and now no error in homepage, but if try access in plugin page to enable one by one same issue

P.S. I removed old folder plugin and imported from archive
Title: Re: Light Portal
Post by: Bugo on February 06, 2025, 05:20:12 AM
In Sources/LightPortal/Plugins/Plugin.php, you need to replace a line:

return basename(static::class);return basename(str_replace('\\', '/', static::class));
I will update the packages now.
Title: Re: Light Portal
Post by: Darknico on February 06, 2025, 05:22:24 AM
Great! Now work! :)
Title: Re: Light Portal
Post by: Bugo on February 06, 2025, 05:30:21 AM
The moral of this tale is: don't forget about Linux :)
Title: Re: Light Portal
Post by: Darknico on February 06, 2025, 05:45:47 AM
Ahahah! Yes yes :D
Title: Re: Light Portal
Post by: Bugo on February 28, 2025, 12:49:18 AM
v2.9.3

Now, after updating, all plugins are automatically disabled so that administrators can manually update and re-enable the necessary ones.

Nevertheless, it is best to remove all plugins from the Sources/LightPortal/Plugins folder manually before each update, this will reduce the number of possible problems.

Do not forget to create backups of the plugins that you created or edited yourself, otherwise you may lose the changes you made.
Title: Re: Light Portal
Post by: Darknico on February 28, 2025, 04:47:19 AM
Thanks @Bugo, updated with no problem ;)

QuoteNow, after updating, all plugins are automatically disabled so that administrators can manually update and re-enable the necessary ones.

Ok, I need to write the installed plugins because I will never remember them all xD
Title: Re: Light Portal
Post by: Bugo on February 28, 2025, 05:08:30 AM
As a life hack: I just set the filter to "Active only" and took a screenshot before updating :)
Title: Re: Light Portal
Post by: Darknico on March 24, 2025, 06:58:51 AM
Hi @Bugo
I have problem after install the version: 2.9.4.
PHP: 8.3.8
MySQL: 5.7.28

White page and I see problem with Optimus RC2.

Uninstall all, uninstall Optimus and reinstall 2.9.4 and Optimus RC2
Now work but have a issue with not admin user:

QuoteFatal error: Uncaught Error: Call to undefined method Closure::get() in /home/mhd-01/www.site.ex/htdocs/forum/Sources/LightPortal/Enums/Permission.php:81 Stack trace: #0 /home/mhd-01/www.site.ex/htdocs/forum/Sources/LightPortal/Enums/Permission.php(69): Bugo\LightPortal\Enums\Permission::getBoardModerators() #1 /home/mhd-01/www.site.ex/htdocs/forum/Sources/LightPortal/Enums/Permission.php(56): Bugo\LightPortal\Enums\Permission::isModerator() #2 /home/mhd-01/www.site.ex/htdocs/forum/Sources/LightPortal/Articles/PageArticle.php(62): Bugo\LightPortal\Enums\Permission::all() #3 /home/mhd-01/www.site.ex/htdocs/forum/Sources/LightPortal/Actions/FrontPage.php(113): Bugo\LightPortal\Articles\PageArticle->init() #4 /home/mhd-01/www.site.ex/htdocs/forum/Sources/LightPortal/Actions/FrontPage.php(82): Bugo\LightPortal\Actions\FrontPage->prepare() #5 /home/mhd-01/www.site.ex/htdocs/forum/Sources/LightPortal/Hooks/DefaultAction.php(36): Bugo\LightPortal\Actions\FrontPage->show() #6 /home/mhd-01/www.site.ex/htdocs/forum/index.php(195): Bugo\LightPortal\Hooks\DefaultAction->__invoke() #7 {main} thrown in /home/mhd-01/www.site.ex/htdocs/forum/Sources/LightPortal/Enums/Permission.php on line 81

Only for me, I commented some parts of this method and I await your response :)

    private static function getBoardModerators(): array
    {
        $cache = app(CacheInterface::class);

        //if (($moderators = $cache->get('board_moderators')) === null) {
            $result = Db::$db->query('', /** @lang text */ '
                SELECT id_member
                FROM {db_prefix}moderators',
            );

            $items = Db::$db->fetch_all($result);

            Db::$db->free_result($result);

            $moderators = array_column($items, 'id_member');

            //$cache->put('board_moderators', $moderators);
        //}

        return $moderators;
    }

EDIT:

If I go in Optimus settings:

QuoteFatal error: Uncaught Error: Call to undefined method Bugo\Compat\User::mustHavePermission() in /home/mhd-01/www.site.ex/htdocs/forum/Sources/Optimus/Handlers/SettingHandler.php:101 Stack trace: #0 /home/mhd-01/www.site.ex/htdocs/forum/Sources/Admin.php(499): Bugo\Optimus\Handlers\SettingHandler->actions() #1 /home/mhd-01/www.site.ex/htdocs/forum/index.php(195): AdminMain() #2 {main} thrown in /home/mhd-01/www.site.ex/htdocs/forum/Sources/Optimus/Handlers/SettingHandler.php on line 101

Title: Re: Light Portal
Post by: Bugo on March 24, 2025, 09:01:53 AM
Try to install Optimus 3.0 RC3

And add fix in Permission.php:

$cache = app(CacheInterface::class)();
Title: Re: Light Portal
Post by: Darknico on March 24, 2025, 09:15:01 AM
Ups! I don't see RC3 :)
Ok, after RC3 upgrade and code fix, work correctly, thanks!
Title: Re: Light Portal
Post by: samozin on April 01, 2025, 06:48:11 AM
how to add posts in personal blog ?
i activated the blog plugin
Title: Re: Light Portal
Post by: Bugo on April 01, 2025, 07:15:02 AM
@samozin see https://www.simplemachines.org/community/index.php?msg=4185440
Title: Re: Light Portal
Post by: cuongvttt on April 06, 2025, 02:06:00 AM
Hello Bugo,

I got this error while upgrading Light Portal from v2.7 to v2.9.4. Could you please help me out?

Fatal error: Uncaught TypeError: Bugo\LightPortal\Utils\Language::getNameFromLocale(): Argument #1 ($locale) must be of type string, null given, called in /www/wwwroot/vietnetwork.vn/Sources/LightPortal/Plugins/LangHandler.php on line 32 and defined in /www/wwwroot/vietnetwork.vn/Sources/LightPortal/Utils/Language.php:36 Stack trace: #0 /www/wwwroot/vietnetwork.vn/Sources/LightPortal/Plugins/LangHandler.php(32): Bugo\LightPortal\Utils\Language::getNameFromLocale() #1 /www/wwwroot/vietnetwork.vn/Sources/LightPortal/Plugins/PluginHandler.php(113): Bugo\LightPortal\Plugins\LangHandler->handle() #2 /www/wwwroot/vietnetwork.vn/Sources/LightPortal/Plugins/PluginHandler.php(97): Bugo\LightPortal\Plugins\PluginHandler->handlePlugin() #3 /www/wwwroot/vietnetwork.vn/Sources/LightPortal/Plugins/PluginHandler.php(48): Bugo\LightPortal\Plugins\PluginHandler->prepareListeners() #4 /www/wwwroot/vietnetwork.vn/Sources/LightPortal/ServiceProvider.php(176): Bugo\LightPortal\Plugins\PluginHandler->__construct() #5 /www/wwwroot/vietnetwork.vn/Sources/LightPortal/Events/EventManagerFactory.php(32): Bugo\LightPortal\ServiceProvider->Bugo\LightPortal\{closure}() #6 /www/wwwroot/vietnetwork.vn/Sources/LightPortal/Events/HasEvents.php(9): Bugo\LightPortal\Events\EventManagerFactory->__invoke() #7 /www/wwwroot/vietnetwork.vn/Sources/LightPortal/Hooks/LoadTheme.php(49): Bugo\LightPortal\Hooks\LoadTheme->events() #8 /www/wwwroot/vietnetwork.vn/Sources/Subs.php(5795): Bugo\LightPortal\Hooks\LoadTheme->__invoke() #9 /www/wwwroot/vietnetwork.vn/Sources/Load.php(2674): call_integration_hook() #10 /www/wwwroot/vietnetwork.vn/index.php(249): loadTheme() #11 /www/wwwroot/vietnetwork.vn/index.php(196): smf_main() #12 {main} thrown in /www/wwwroot/vietnetwork.vn/Sources/LightPortal/Utils/Language.php on line 36
Title: Re: Light Portal
Post by: Bugo on April 06, 2025, 02:44:34 AM
Uninstall Optimus, then update LightPortal, then install Optimus v3.0 RC3