News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Light Portal

Started by Bugo, March 25, 2020, 07:36:36 AM

Previous topic - Next topic

Bugo

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)

forumovod

#41
Quote from: Bugo on October 10, 2020, 10:14:31 AM
v1.2

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

Есть такое пожелание: что-то сделать с пустой левой колонкой во FrontpageFlarumStyle addon, когда на форуме мало разделов.
Попробовал туда добавить блоки портала, но они размещаются не в пустом месте колонки, а добавляют еще одну левую колонку.
Community of forum owners (сообщество владельцев форумов на любых движках) https://forumovod.ru

forumovod

Или может быть проще не переделывать этот плагин, а добавить похожее оформление в блок "Последние темы"?
Сейчас блок "Последние темы" рассчитан только на узкую боковую колонку, а хотелось бы вывести его по центру.
Community of forum owners (сообщество владельцев форумов на любых движках) https://forumovod.ru

forumovod

Another idea to increase the popularity of the addon Light Portal
Еще идея для увеличения популярности мода Light Portal. По русски мне проще объяснить ее суть. ;)

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

Попробовал показать идею на скриншоте.
Community of forum owners (сообщество владельцев форумов на любых движках) https://forumovod.ru

forumovod

Quote from: Bugo on October 10, 2020, 10:14:31 AM

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


При выводе на главной портала "Все темы из выбранных разделов" с сортировкой по последнему комментарию и с использованием FrontpageFlarumStyle addon, пользователи не понимают почему в превью показывается автор первого сообщения, а расположенная рядом дата - последнего сообщения? Т.е. автор не соответствует дате сообщения. И эта же дата не соответствует дате поста, который показывается в превью.
Community of forum owners (сообщество владельцев форумов на любых движках) https://forumovod.ru

Bugo

Где можно увидеть комментарии этих пользователей?

forumovod

#46
Quote from: Bugo on October 19, 2020, 04:04:38 PM
Где можно увидеть комментарии этих пользователей?
У меня на форуме)

Вопросы пользователей к админу по поводу показанного превью из первого поста в теме, начатой в 2014 году и помеченного меткой "Новинка"))
QuoteПочему-то вместо последнего сообщения в теме, показывается превью первого.
Вот, например, Мира покупала облигации не сегодня, а в 2014 году.
QuoteКакое то странное отображение тем на главной странице форума. По логике вроде должен последний пост отображаться, а тут смотрю облиги Су обсуждаются, думаю дай зайду, ну неужели ещё актуально
Community of forum owners (сообщество владельцев форумов на любых движках) https://forumovod.ru

Diego Andrés

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.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Bugo


Diego Andrés

I uploaded most recent SMF files from GitHub and it's fixed.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Slonik :)

Bugo, хорошо бы сделать в режиме "Все активные страницы" возможность показывать не только заголовки, но и содержимое страниц с тегами.

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

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

:)

Bugo

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.

Mick.

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

Bugo

#53
I appreciate you saying that :)

1. Titles are only required for pages, aren't they?

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;
}

Mick.

@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?


Bugo

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.


2. Wait for v1.4, I fixed that.

Mick.

@Bugo

Thank you for all you do bro. Your portal is my new favorite mod.

Bugo

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

Mick.

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

Bugo

Any errors in the console?

Advertisement: