News:

Join the Facebook Fan Page.

Main Menu

Light Portal

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

Previous topic - Next topic

Arantor

PHP 7.4 is no longer updated by the PHP team (even if there are security issues), and hosts are increasingly forcing the PHP 8 upgrade on people. It makes sense to prepare to stay current, not cling on to versions whose support is questionable.

@rjen

I would agree, but in the end it is up to the mod author to decide.
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Ricsca

Quote from: Arantor on March 18, 2023, 01:05:28 PMPHP 7.4 is no longer updated by the PHP team (even if there are security issues), and hosts are increasingly forcing the PHP 8 upgrade on people. It makes sense to prepare to stay current, not cling on to versions whose support is questionable.

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

Bugo

LP v2.0 supports PHP 7.4+ (and tested with 8.0/8.1), you can use it until you update PHP.
Also, vote here - https://github.com/dragomano/Light-Portal/discussions/84

Arantor

Quote from: Ricsca on March 20, 2023, 08:05:24 AM
Quote from: Arantor on March 18, 2023, 01:05:28 PMPHP 7.4 is no longer updated by the PHP team (even if there are security issues), and hosts are increasingly forcing the PHP 8 upgrade on people. It makes sense to prepare to stay current, not cling on to versions whose support is questionable.

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

That's because WordPress doesn't work properly on PHP 8.1 yet, so they don't try to keep users current. It's also a completely different product with a completely different set of circumstances, so things *will* be different.

Panoulis64

Bugo Good evening here too.
In the original, I don't find an option to not show the section, which I have circled in red in the photo below.
What can I do to make it not appear?

Bugo

It seems to be what is rendered with the FlarumStyle plugin. Turn it off and that part is gone.

Panoulis64

Thanks for the prompt reply.
That's right, it removed it, but it also removed my articles that it was pulling into the center of the panel.
It unfortunately stayed there, a text "There are no items to display." (Which also spoils the appearance, just like that).

Another problem I have is the GalleryFrontPage, I downloaded it, installed it in the admin and it shows as Light Portal plugins, but I can't find it so I can set it to position on the home page...

Bugo

If you want Flarum-style forum topic output but without the sidebar with categories, I'll add an option to disable it in the next version.

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

Panoulis64

QuoteIf you want Flarum-style forum topic output but without the sidebar with categories, I'll add an option to disable it in the next version.

I think it would be nice to have an option.

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

Unfortunately, but it's all enabled, but it doesn't show up in my block selection, so I can select it!
And of course, although I have some images, they don't appear on their own, on the homepage, in the logic like Flarum-style or something like that.
Tried again today, uninstalled, installed, but nothing...

Bugo

v2.1 final released. What's new?

* Fixed found issues
* Updated permission system (do not forget re-check permissions after updating)
* Added the ability to set exclusion rules for display areas in block settings (e.g., "all,!portal" - everywhere except portal area)
* Added Greek translation (thanks to Panoulis64)
* Added new plugins - Giscus (integrates page comments with GitHub Discussions), Crowdin Context (for easy translation of the portal on your forum), and Simple Chat (to talk a lot)
* Updated docs site
* Updated some plugins

We are still looking for more testers, translators, and doc writers.

This modification is still in development so yor feedback and bug reports are very welcome at GitHub Issues/Discussions or right here, in this topic.

-Rock Lee-

When I activate Crowdin In-Context Translations it doesn't let me connect or register from SMF, when I generate another admin it does the same thing but if I create a global user it enters without problems. Although I'm connected to crowdin translating I don't know if that's why...
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Bugo

What is a "global user"?

-Rock Lee-

Quote from: Bugo on April 02, 2023, 01:32:10 PMWhat is a "global user"?

A global moderator was just trying to generate another user to solve that problem, and I typed by inertia :PAG
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Panoulis64

I did the installation on the forum, as in the demo, with the export, import file.
Everything looks right, but I have the known problem.
The articles are not displayed, as in the demo.
In settings, you don't see the 3rd option: Sections - front page article source. Look at photo 1, on the left is the forum, on the right is the demo.
On photo 2, it says: No data to display.
I want to have a post with a photo, like in photo 3.
I will ask you again. How hard is it, to have a multiple choice with a check, like in photo 4, instead of putting id?
Information:
I enable FlarumStyle and BoardList and I keep getting an error when I click on the home page link.
/home/triglian/public_html/Sources/Subs-MessageIndex.php (Line 60)

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

Line 60, that's it
==>60:        $request = $smcFunc['db_query']('order_by_board_order', '

Bugo

Are both of your forums - demo and work - have the same portal pages, topics, and boards with the same IDs? If there are no items, the output (the lists) will be empty.

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

Quote from: Panoulis64 on April 03, 2023, 01:56:19 AMI will ask you again. How hard is it, to have a multiple choice with a check, like in photo 4, instead of putting id?
It's not difficult, but on large forums, such lists will take a very long time to scroll through.

Panoulis64

QuoteAre both of your forums - demo and work - have the same portal pages, topics, and boards with the same IDs? If there are no items, the output (the lists) will be empty.

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

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

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

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

Allow me to have another point of view. It's something that makes me feel comfortable.

Bugo

v2.1.1

* Fixed found issues
* Updated some plugins
* Improved loading speed for portal pages
* Improved mobile view for some panels
* Improved UI for some settings

Bugo

v2.1.2

* A lot of refactoring
* Fixed some issues related PostgreSQL
* Improved UI for all fields where you need to select category/board/page/topic from the list
* AdsBlock now can work with portal page areas
* Removed GalleryFrontPage, added GalleryBlock plugin instead

Darknico

#279
Hi @Bugo
I installed the 2.1.2 and show this error in the frontpage:

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

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

SMF 2.1.3
PHP: 8.0.14
MySQL: 5.7.28

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


         SELECT
            p.page_id, p.category_id, p.author_id, p.alias, p.content, p.description, p.type, p.status, p.num_views,
            CASE WHEN COALESCE(CAST(par.value AS integer), 0) > 0 THEN p.num_comments ELSE 0 END AS num_comments, p.created_at,
            GREATEST(p.created_at, p.updated_at) AS date, cat.name AS category_name, mem.real_name AS author_name,
            com.created_at AS comment_date, com.author_id AS comment_author_id, mem2.real_name AS comment_author_name, com.message AS comment_message
         FROM smf_lp_pages AS p
            LEFT JOIN smf_lp_categories AS cat ON (cat.category_id = p.category_id)
            LEFT JOIN smf_members AS mem ON (p.author_id = mem.id_member)
            LEFT JOIN smf_lp_comments AS com ON (p.last_comment_id = com.id)
            LEFT JOIN smf_members AS mem2 ON (com.author_id = mem2.id_member)
            LEFT JOIN smf_lp_params AS par ON (par.item_id = com.page_id AND par.type = 'page' AND par.name = 'allow_comments')
         WHERE p.status = 1
            AND p.created_at <= 1681373557
            AND p.permissions IN (0, 1, 2, 3)
            AND p.category_id IN (6)
         ORDER BY p.created_at DESC
         LIMIT 0, 1
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


Advertisement: