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.

Demo site (https://demo.dragomano.ru/)

Requirements:

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

Available localizations:

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

Use the mother tongue for your questions, if you do not speak English very well. It will be easier for everybody. I will use some translation service to answer you.

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

(https://img.shields.io/github/license/dragomano/light-portal?color=red) (https://img.shields.io/badge/Donate-$-blue.svg?style=flat&logo=paypal) (https://www.buymeacoffee.com/bugo) (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: Seyit 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/[email protected]/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: Seyit 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: Seyit 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: Seyit 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: Seyit 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: Seyit 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: Seyit 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: Seyit 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: Seyit 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: Seyit 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: Seyit 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?