RSS und Atom Feed Reader Online

FlatPress support forum

The place to find help and support

Plugin support • Re: Plugin FPstats

I updated phplot.php from https://github.com/PHPlot/phplot
but there are still bugs in PHP8:

Code:

Deprecated: Return type of DBIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/eywjamcd/solarcz.eu/fp-plugins/fpstats/classes/core/db/DBIterator.php on line 23Deprecated: Return type of DBIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/eywjamcd/solarcz.eu/fp-plugins/fpstats/classes/core/db/DBIterator.php on line 36Deprecated: Return type of DBIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/eywjamcd/solarcz.eu/fp-plugins/fpstats/classes/core/db/DBIterator.php on line 27Deprecated: Return type of DBIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/eywjamcd/solarcz.eu/fp-plugins/fpstats/classes/core/db/DBIterator.php on line 58Deprecated: Return type of DBIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/eywjamcd/solarcz.eu/fp-plugins/fpstats/classes/core/db/DBIterator.php on line 46Deprecated: Return type of CSVFileIterator::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/eywjamcd/solarcz.eu/fp-plugins/fpstats/classes/core/db/CSVFileIterator.php on line 64Deprecated: Return type of CSVFileIterator::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/eywjamcd/solarcz.eu/fp-plugins/fpstats/classes/core/db/CSVFileIterator.php on line 34Deprecated: Return type of CSVFileIterator::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/eywjamcd/solarcz.eu/fp-plugins/fpstats/classes/core/db/CSVFileIterator.php on line 54Deprecated: Return type of CSVFileIterator::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/eywjamcd/solarcz.eu/fp-plugins/fpstats/classes/core/db/CSVFileIterator.php on line 74Deprecated: Return type of CSVFileIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/eywjamcd/solarcz.eu/fp-plugins/fpstats/classes/core/db/CSVFileIterator.php on line 44Fatal error: Declaration of admin_plugin_fpstats::onsubmit() must be compatible with AdminPanelAction::onsubmit($data = null) in /home/eywjamcd/solarcz.eu/fp-plugins/fpstats/classes/admin_plugin_fpstats.php on line 65

Statistics: Posted by Lubomír Ludvík — Mon Dec 23, 2024 10:03 am


Veröffentlicht am 23.12.2024 um 11:03:40 Uhr - Kategorie: Plugin support - Autor: Lubomír Ludvík

Plugin support • Simple rssread widget

source rssread.php
<?php
$rss = $_GET['rss'];
$rss = simplexml_load_file($rss);
echo '<h1>'. $rss->channel->title . '</h1>';

foreach ($rss->channel->item as $item) {
echo '<h2><a href="'. $item->link .'">' . $item->title . "</a></h2>";
echo "<p>" . $item->pubDate . "</p>";
echo "<p>" . $item->description . "</p>";
}
?>
example: https://solarcz.eu/programy/php_kody/rs ... =feed:rss2

Statistics: Posted by Lubomír Ludvík — Sun Dec 22, 2024 11:40 pm


Veröffentlicht am 23.12.2024 um 00:40:20 Uhr - Kategorie: Plugin support - Autor: Lubomír Ludvík

Plugin support • RSS FlatPressForum widget

Widget create with https://rss.app from feed/rss2

Code:

<iframe width=”800” height=”500” src=”https://rss.app/embed/v1/feed/xeLKa4jg6jhRnw7V” frameborder=”0”></iframe>

Statistics: Posted by Lubomír Ludvík — Sun Dec 22, 2024 8:03 pm


Veröffentlicht am 22.12.2024 um 21:03:24 Uhr - Kategorie: Plugin support - Autor: Lubomír Ludvík

General Support • Re: Please fix output from Flatpress RSS

I have cleaned up the PhotoSwipe plugin accordingly and uploaded it again.
I tested it, it's ok.

Statistics: Posted by Lubomír Ludvík — Sun Dec 22, 2024 4:38 pm


Veröffentlicht am 22.12.2024 um 17:38:34 Uhr - Kategorie: General Support - Autor: Lubomír Ludvík

General Support • Re: Please fix output from Flatpress RSS

Hello Lubomír,

Error from the post:
Oops, I must have forgotten that under FlatPress 1.3/ 1.3.1 there were no nonce values for inline scripts to mark Java scripts as safe.
I have cleaned up the PhotoSwipe plugin accordingly and uploaded it again.

Thanks for testing.
With best regards
Frank

Statistics: Posted by fraenkiman — Sun Dec 22, 2024 12:02 pm


Veröffentlicht am 22.12.2024 um 13:02:36 Uhr - Kategorie: General Support - Autor: fraenkiman

General Support • Re: Please fix output from Flatpress RSS

Thank you, strip_tags works in /fp-interface/sharedtpls/rss.tpl

Code:

a) {$content|tag:the_content|truncate:256}b) {$content|tag:the_content|strip_tags|strip|truncate:256:"...":true|escape}
rss_tag.png

Statistics: Posted by Lubomír Ludvík — Sun Dec 22, 2024 7:53 am


Veröffentlicht am 22.12.2024 um 08:53:23 Uhr - Kategorie: General Support - Autor: Lubomír Ludvík

General Support • Re: Please fix output from Flatpress RSS

The PhotoSwipe plugin version 2.0.1 no works, get HTTP ERROR 500 on PHP Version 8.2.26

Code:

[22-Dec-2024 07:47:00 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "RANDOM_HEX" in /home/eywjamcd/flatpress.cz/fp-plugins/photoswipe/photoswipefunctions.class.php:222Stack trace:#0 /home/eywjamcd/flatpress.cz/fp-includes/core/core.wp-plugin-interface.php(134): PhotoSwipeFunctions::echoScriptTags('')#1 /home/eywjamcd/flatpress.cz/fp-includes/core/core.theme.php(303): do_action('wp_head')#2 /home/eywjamcd/flatpress.cz/fp-content/cache/e93fccb09cf8b04111b9595da102f3f4^21e22cdf11647423625b7c388c19562289f32c8a_0.file.header.tpl.php(33): theme_smarty_function_action(Array, Object(Smarty_Internal_Template))#3 /home/eywjamcd/flatpress.cz/fp-includes/smarty-4.3.1/libs/sysplugins/smarty_template_resource_base.php(123): content_673ef5718346c1_50717738(Object(Smarty_Internal_Template))

Statistics: Posted by Lubomír Ludvík — Sun Dec 22, 2024 7:49 am


Veröffentlicht am 22.12.2024 um 08:49:56 Uhr - Kategorie: General Support - Autor: Lubomír Ludvík

General Support • Re: Please fix output from Flatpress RSS

Hello everyone.

Mini-spoiler:

The PhotoSwipe plugin version 2.0.1 is now available for FlatPress 1.3 and 1.3.1. The update fixes the problem that the 6 overlay buttons were displayed in the RSS feed in an unsightly way.
Screenshot 2024-12-22 010814.png
The good case
Screenshot 2024-12-22 014008.png

Update on the topic: Plain text in the RSS feed

Code:

{$content|tag:the_content|strip_tags|strip|truncate:1024:"...":true|escape}
But I like the HTML output better.

Have a merry Christmas.
With best regards
Frank

Statistics: Posted by fraenkiman — Sun Dec 22, 2024 1:16 am


Veröffentlicht am 22.12.2024 um 02:16:34 Uhr - Kategorie: General Support - Autor: fraenkiman

General Support • Re: Please fix output from Flatpress RSS

Post text without image can be reached with

Code:

{$content|tag:the_content|strip_tags|strip|truncate:256:“...”:true|escape}

Statistics: Posted by fraenkiman — Thu Dec 19, 2024 11:02 pm


Veröffentlicht am 20.12.2024 um 00:02:55 Uhr - Kategorie: General Support - Autor: fraenkiman

General Support • Re: Please fix output from Flatpress RSS

Hello Lubomír

to shorten the description, edit the file rss.tpl in the directory /fp-interface/sharedtpls. (Template on GitHub)

Look for the <description> tag there. Replace

Code:

{$content|tag:the_content}
with

Code:

{$content|tag:the_content|truncate:256}
This would shorten the description to 256 characters, for example.

Alternatively, you can also use the [more] BBcode tag and place an image of your choice before the [more] tag. It will look something like this:
rss01.png
An image in the <image> tag is not so easy to realize, because you can include several images in a post, or even entire galleries or no image. These aspects would have to be taken into account during implementation. I'll take a look at it when I get the chance. I have created #505 for this. If you already have an implementation suggestion, I look forward to a pull request.

With best regards
Frank

Statistics: Posted by fraenkiman — Thu Dec 19, 2024 10:30 pm


Veröffentlicht am 19.12.2024 um 23:30:42 Uhr - Kategorie: General Support - Autor: fraenkiman

General Support • Please fix output from Flatpress RSS

Please fix output from flatpress RSS
- briefer description to tag <description>
- add picture to tag <image>...</image>

Try Widget Preview: https://www.rssfeedwidget.com/
https://www.flatpress.org/feed/rss2/ - has big description with picture
http://feeds.bbci.co.uk/news/england/rss.xml - look good
http://wordpress.org/news/feed/ - look good
rss.png

Statistics: Posted by Lubomír Ludvík — Wed Dec 18, 2024 7:36 am


Veröffentlicht am 18.12.2024 um 08:36:32 Uhr - Kategorie: General Support - Autor: Lubomír Ludvík

Theme support • Re: Change header color/picture (Flatpress 1.3.1)

in the file fp-interface\themes\leggero\leggero-v2\res\common.css
line 169 replace: background: rgba(184,60,50,0.7);

background-image: linear-gradient(red, yellow);
background-image: linear-gradient(to right, red , yellow);
background-image: linear-gradient(to right, rgba(255,0,0,1), rgba(255,0,0,0));
gradient.png

Statistics: Posted by Lubomír Ludvík — Fri Dec 13, 2024 4:08 pm


Veröffentlicht am 13.12.2024 um 17:08:56 Uhr - Kategorie: Theme support - Autor: Lubomír Ludvík

Development and tests • Re: Conference registration form

Hello andriishyichuk,

welcome to the FlatPress support forum. In general, your idea is not new. Somewhere I have seen a similar request here in the past.

There are a few functions scattered across FlatPress that could be implemented in a conference website.

You would have to define a few things in advance that the backend would have to do for you. I assume you don't know the participants, but would like to collect basic data (name, email) of potential participants first. This would make the comment function easier to customize. Comments would then first end up in the comment center for approval without being published. As an admin, you will receive an e-mail with every new comment (contact).

However, FlatPress currently lacks a function to send a registration confirmation to the interested party by e-mail. You would then also need an SMTP relay that can send several hundred emails per day.
Or you would have to reply to each interested party by hand.

I don't think it's a good idea to make the uploader accessible to the public from the admin area. The uploader has a rudimentary cleanup function (filtering disallowed files e.t.c) but no limit on the amount of data. In addition, FlatPress lacks the ability to validate whether the visitor just wants to clutter your server with junk data by uploading, or whether he wants to register and upload a coupon.

All around, you could use FlatPress as the basis for a conference suite, but you'd have to customize a lot of PHP code and templates. That's not done with a two-liner. The backend also needs a defense against malicious file content.

My PHP knowledge only goes as far as I can see and without glasses that's not far :-P.

If it's just a trial project that's not under time pressure, I can support you, depending on how much free time I have.

But another idea. Install a Nextcloud instance. Anyone who wants to can register with their e-mail address and provide files after successful login. That way you get basic data from interested parties, a platform for communicating. I run Nextcloud 30.0 of a Raspberry Pi 4 and with Collabora Online you can also provide your prospects with Office documents. Even a video conference works with 8 people.

With best regards
Frank

Statistics: Posted by fraenkiman — Thu Dec 12, 2024 10:01 pm


Veröffentlicht am 12.12.2024 um 23:01:06 Uhr - Kategorie: Development and tests - Autor: fraenkiman

Theme support • Re: Blank screen after changing to (wrong) template

Welcome to FlatPress :) Thanks for letting us know you found the solution!

All the best
Arvid

Statistics: Posted by Arvid — Wed Dec 11, 2024 5:54 pm


Veröffentlicht am 11.12.2024 um 18:54:34 Uhr - Kategorie: Theme support - Autor: Arvid

Development and tests • Conference registration form

Dear Community,

I am trying to use FlatPress to make a conference web page. The critical component is a registration form with file uploader.

Currently, I am messing around and trying to construct a chimera out of contact form and admin uploader.

Given the fact that I do not know PHP and have a very basic knowledge of HTML - I wonder if I will succeed. Hence, the questions.

Did anyone do something like this before?
Alternatively, would anyone help me with fixing my code, once I'm done?

As a result, we would end up with another set of templates for FlatPress, cuz why not.

Statistics: Posted by andriishyichuk — Tue Dec 10, 2024 12:34 pm


Veröffentlicht am 10.12.2024 um 13:34:30 Uhr - Kategorie: Development and tests - Autor: andriishyichuk



Webhosting bei Alfahosting - jetzt kostenlos testen!