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 Mod (https://custom.simplemachines.org/mods/index.php?mod=4244)

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

This mod needs PHP 7.3 or greater and SMF 2.1 RC3 or greater.

Available localizations:
   
Features:

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

Polish lang in attachment.


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


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

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

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

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

Code: [Select]
Тип ошибки: Неопределенные
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: Replikacep 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
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)

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

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

Code: [Select]
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
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
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
Предлагаю автору мода добавить в плагин 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
Не каша, а отображение тем со свежими постами в первую очередь — чтобы и «старые» темы читали.

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

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

Code: [Select]
* 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
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
Code: [Select]
* 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
Где можно увидеть комментарии этих пользователей?
У меня на форуме)

Вопросы пользователей к админу по поводу показанного превью из первого поста в теме, начатой в 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

Code: [Select]
* 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:
Code: [Select]
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:
Code: [Select]
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

Code: [Select]
* 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
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
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:
Code: [Select]
<a href="', $topic['msg_link'], '">', $topic['subject'], '</a>
to:
Code: [Select]
<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
v1.4

Code: [Select]
* 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
Code: [Select]
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
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
Code: [Select]
$article['date']     = Helpers::getFriendlyTime($article['date']);with
Code: [Select]
$article['date'] = timeformat($article['date']);Then article cards will use forum time format.

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

Or, you can use your own format here, like this:
Code: [Select]
$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:
Code: [Select]
https://www.idesignsmf.com/index.php?topic=596.new;topicseen#new   

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

I looked around and found this bit in TopicArticle.php

Code: [Select]
'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
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:
Code: [Select]
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
Just a CSS

For your theme you should add these changes into CSS:
Code: [Select]
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

Code: [Select]
* 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
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

Code: [Select]
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
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).
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
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).
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
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.

Не совсем понятна логика настройки показов блоков.
Например, если создать "Блок с 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
Quote
What 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.

Quote
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.

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?

Quote
Of 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
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.