Simple Machines Community Forum
Customizing SMF => Modifications and Packages => Topic started 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:
- English
- Russian
- Ukrainian
- Polish (thanks to Adrek (https://www.simplemachines.org/community/index.php?action=profile;u=224739))
- Spanish (thanks to Rock Lee (https://www.simplemachines.org/community/index.php?action=profile;u=322597))
- French (thanks to Papoune57 (https://www.simplemachines.org/community/index.php?action=profile;u=198949))
- Turkish (thanks to gevv (https://www.simplemachines.org/community/index.php?action=profile;u=155076))
Features:
- Blocks with multilingual titles and FontAwesome icons.
- Using Flexbox to output blocks.
- Available panels: header, left and right sidebars, center (top and bottom), footer.
- Frontpage article system: portal pages, forum topics, or boards.
- Tree comments for pages.
- Open Graph markup for pages and comments.
- Manage blocks in Admin: drag-n-drop of blocks, including updating of the priority.
- Built-in ad manager (AdsBlock addon).
- Import and export of pages and blocks.
- Support for addons.
- Standalone mode.
- Caching.
(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)
-
Nice to see another portal mod, especially for 2.1 :D
Polish lang in attachment.
[Edit (m4z)]: Removed attachment as requested by the user.
-
Just great, thanks :)
-
I'm just testing everything related to 2.1 a very good, then I'll leave the translation to Latin Spanish ;).
Regards!
-
Довольно то интересный портал!!! "Пасхальный яйца" все таки вставил :), интересно, как это перевели на другой язык - "Загружено за 0.062 сек. Скушано памяти: 0 МБ."
Посмотрел папку плагинов - не нашел поддержку SimpleSEF, хотя PrettyUrls есть :(
-
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 :)
-
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.
-
Решил установить мод на подфоруме на чистой оси, но он так ласково попросил обновить 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/
-
Мод работает прекрасно.
Если у кого уже установлен портал и кто пользуется статьями, то может протестировать новый портал в живую.
Вот, например, конвертер статей из 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).
-
Intriguing, I like it.
-
I cannot edit my previous message so I leave the translation to Latin Spanish here ::).
Regards!
-
I just found this portal out... damn this is wonderful!
-
Very intriguing, indeed. Nice work!
-
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
-
So what are the yesterdays updates? It's still the same version 1.0rc5. ???
-
Small fixes on the mod's page, nothing more. The portal's update will be in a few days.
-
Ok... I'll wait for a bigger update. Thanks. ;)
-
mobile compatibility. Why there is no Turkish language option
-
bug widget moth?
-
What do you mean?
-
Very nice 😀
-
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...
-
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)
-
Thank you for letting me know. I'll fix it in the next release ;)
-
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...
-
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)
-
Try the latest version of portal from GitHub.
-
Try the latest version of portal from GitHub.
OK. Попробую)
-
The GitHub version fixed all the problems. Working portal for SMF 2.1 RC2 release. 8)
-
v1.1
* Fixed found issues
* Updated JS scripts
* Added info messages for admin and page authors
* Added BoardIndex addon
* Added some addons for sponsors
-
Приветствую!
После установки перестали работать уведомления. Т.е. при нажатии на кнопку получаем только пустоту и вечную надпись "Загружается..."
(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
В моде сам ничего не правил.
-
3 варианта, на выбор:
* SMF с гитхаба обновите.
* Обновите только систему оповещений, внося нужные правки вручную.
* Закомментируйте хук integrate_fetch_alerts в /LightPortal/Integration (42 строка)
-
A post here was reported for being written in Russian. IMO Russian is fine in this specific topic because the mod author speaks it.
-
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...
-
3 варианта, на выбор:
* SMF с гитхаба обновите.
* Обновите только систему оповещений, внося нужные правки вручную.
* Закомментируйте хук integrate_fetch_alerts в /LightPortal/Integration (42 строка)
Thnx! I chose option 3 :)
-
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 (см. скриншот).
-
Предлагаю автору мода добавить в плагин 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).
-
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.
(и на всякий случай по русски объясню)) Можете ли вы сделать так, чтобы на первой странице портала выводились все темы из выбранных разделов по дате создания темы, а не по дате последнего комментария? Сейчас на первой странице портала новая тема сначала размещается первой, но потом ее может обогнать старая тема. И получается какая-то каша вперемешку из новых и старых тем.)
-
Не каша, а отображение тем со свежими постами в первую очередь — чтобы и «старые» темы читали. В следующей версии добавлю настраиваемую сортировку :)
-
Не каша, а отображение тем со свежими постами в первую очередь — чтобы и «старые» темы читали.
В том то и дело, что в отличие от вывода на страницу портала списка "Последние темы" (там указываются даты последних постов), при выводе списка "Все темы из выбранных разделов" указываются даты создания этих тем, а они могут быть актуальными, многостраничными, но давно созданными.
У меня на форуме юзеры, увидев на вновь установленном портале темы с датами создания, начали спрашивать зачем показывать древние темы?))
Конечно, можно выводить на страницу портала список "Последние темы". Но этот список удачно смотрится только в боковой колонке, а не в центральной части страницы портала.
-
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)
-
v1.2
Спасибо за обновление мода.
Есть такое пожелание: что-то сделать с пустой левой колонкой во FrontpageFlarumStyle addon, когда на форуме мало разделов.
Попробовал туда добавить блоки портала, но они размещаются не в пустом месте колонки, а добавляют еще одну левую колонку.
-
Или может быть проще не переделывать этот плагин, а добавить похожее оформление в блок "Последние темы"?
Сейчас блок "Последние темы" рассчитан только на узкую боковую колонку, а хотелось бы вывести его по центру.
-
Another idea to increase the popularity of the addon Light Portal
Еще идея для увеличения популярности мода Light Portal. По русски мне проще объяснить ее суть. ;)
Предлагаю дополнить в настройках портала такую возможность:
При выводе в портал "Все темы из выбранных разделов" можно было бы между выводимых тем вставлять рекламные блоки.
На главной странице портала получилось бы что-то похожее на рекомендательный виджет от РСЯ.
Попробовал показать идею на скриншоте.
-
* Added the FrontpageFlarumStyle addon to display topic articles as Flarum style
При выводе на главной портала "Все темы из выбранных разделов" с сортировкой по последнему комментарию и с использованием FrontpageFlarumStyle addon, пользователи не понимают почему в превью показывается автор первого сообщения, а расположенная рядом дата - последнего сообщения? Т.е. автор не соответствует дате сообщения. И эта же дата не соответствует дате поста, который показывается в превью.
-
Где можно увидеть комментарии этих пользователей?
-
Где можно увидеть комментарии этих пользователей?
У меня на форуме)
Вопросы пользователей к админу по поводу показанного превью из первого поста в теме, начатой в 2014 году и помеченного меткой "Новинка"))
Почему-то вместо последнего сообщения в теме, показывается превью первого.
Вот, например, Мира покупала облигации не сегодня, а в 2014 году.
Какое то странное отображение тем на главной странице форума. По логике вроде должен последний пост отображаться, а тут смотрю облиги Су обсуждаются, думаю дай зайду, ну неужели ещё актуально
-
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.
-
On Linux only?
-
I uploaded most recent SMF files from GitHub and it's fixed.
-
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.
-
@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.
-
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;
}
-
@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?
-
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.
-
@Bugo
Thank you for all you do bro. Your portal is my new favorite mod.
-
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
-
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
-
Any errors in the console?
-
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.
-
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?
-
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!
-
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! ;)
-
So... what's new in v.1.4.1?
-
Fixed issues with import from EhPortal/TinyPortal
Fixed issues with comments
Fixed other found issues
-
Thanks! This mod is awesome... ;)
-
Bro, I would like to find out where to change the post time from Military time to regular time?
-
Do you mean the time of articles on the frontpage?
-
Do you mean the time of articles on the frontpage?
Yes.
-
/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']);
-
/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.
-
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?
-
Yes, this is what you need. Do not forget to clean the SMF cache after your changes.
-
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
-
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.
-
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;
}
-
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
-
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
-
Unable to load the 'plugin_post' template. :o Happens when trying to add plugin
-
Just extract Sources and Themes dir from the package to your forum root.
-
Just extract Sources and Themes dir from the package to your forum root.
Got it. Ty.
-
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
-
First french translation for Light Portal
Includ UTF8
-
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).
-
French translation REV 1.1 for Light Portal
8 fixes have been made
-
French translation REV 2.0
Changes made for Light Portal version 1.7
-
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
-
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.
-
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.
-
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.
-
Thanks @Bugo nice mod.
Turkish translation. Light Portal version 1.7
-
v1.7.1
* Fixed found issues
* Added Turkish translation (thanks to gevv)
* Updated translations
* Optimized JS/CSS
* Updated some addons
-
How to disable display of portal blocks in the main forum?
-
In the block settings.
-
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.
-
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.
-
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.
-
How does the current system with portal pages differ from articles?
-
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).
-
Bugo
Не совсем понятна логика настройки показов блоков.
Например, если создать "Блок с HTML-кодом" и в нем выбрать в Правах доступа "Показывать всем", то гостям блок не показывается. Нужно переходить в настройки портала "Права доступа" и там включать доступ для гостей "Кто может просматривать элементы портала".
-
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?
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.
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.
-
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.
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?
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?
-
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).
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.