Page 1 of 2

New tech blog

Posted: Sat Dec 11, 2021 6:19 pm
by mschatz
Dear FlatPress community,

I would like to re-release my old blog with new content. New entries are Wordpress is a bit oversized for my requierments so I like to ask some questions:
1. Is there a syntax highlight plugin e.g. for python or perl?
2. Why is smarty used in a flat file system? PHP by itself is the template enginge and it makes no sense to cache files to reduce database access. It is difficult for me to design my own theme.
3. I noticed, not all strings are able for translation.

Hope some plugin is available.

Best regards,
Michael

Re: New tech blog

Posted: Wed Dec 15, 2021 9:28 am
by eagleman
mschatz wrote: Sat Dec 11, 2021 6:19 pm Dear FlatPress community,

I would like to re-release my old blog with new content. New entries are Wordpress is a bit oversized for my requierments so I like to ask some questions:
1. Is there a syntax highlight plugin e.g. for python or perl?
2. Why is smarty used in a flat file system? PHP by itself is the template enginge and it makes no sense to cache files to reduce database access. It is difficult for me to design my own theme.
3. I noticed, not all strings are able for translation.

Hope some plugin is available.

Best regards,
Michael
For the third point of your list I can help you.
Not all the strings are available for the translation because most probably you have translated only the main core.
All the remaining strings are available into each plugin itself.
Check every plugin folder and add your preferred language if missing or improve the existing one if you want.

Re: New tech blog

Posted: Sat Dec 18, 2021 1:07 pm
by Arvid
Michael, welcome to FlatPress :)

mschatz wrote: Sat Dec 11, 2021 6:19 pm1. Is there a syntax highlight plugin e.g. for python or perl?
There used to be NoWhereMan's SyntaxHighlighter plugin, I found it in the very old FP stuff and attached it to this posting. It's not actively maintained and I never used it; it might not be much work to get it running.
It's integrated with the "code" BBCode element, check out fp-plugins/bbcode/plugin.bbcode.php on line 404.
If you get it revived, let us know - I would then gladly add it to our FlatPress Extras repository, and we could add it to the wiki as well.

mschatz wrote: Sat Dec 11, 2021 6:19 pm2. Why is smarty used in a flat file system? PHP by itself is the template enginge and it makes no sense to cache files to reduce database access. It is difficult for me to design my own theme.
This question has to be asked to the ancestors ;) Smarty provides some clever ways to include templates into each other, but of course you must understand its mechanisms first. Do you stumble upon specific questions?

mschatz wrote: Sat Dec 11, 2021 6:19 pm3. I noticed, not all strings are able for translation.
Which ones?

All the best (und viele Grüße aus dem Ruhrpott)
Arvid

Re: New tech blog

Posted: Tue Dec 28, 2021 4:57 pm
by mschatz
Hello,

thank you for your feedback and sorry for my delay in replying.
I found a better solution for my purpose and switch over to dokuwiki!

Think you can close/delete this topic.

To point 3:
I saw "Posted by" which is not translated:
Translation
Translation
2021-12-28 17_55_47-Window.png (5.02 KiB) Viewed 13810 times
Best regards and all the best with flatpress!
Michael

Re: New tech blog

Posted: Thu Dec 30, 2021 3:20 pm
by laborix
mschatz wrote: Tue Dec 28, 2021 4:57 pm... To point 3:
I saw "Posted by" which is not translated: ...
You have to translate the used Template to get this and some other points in german language. If you want to translate Flatpress completly to german you have to do that manually directly on a few more points in the Flatpress source code.

Let me know if you want to do that, geht auch in Deutsch :D

Re: New tech blog

Posted: Sun Jan 23, 2022 11:42 am
by Arvid
Michael,

DokuWiki is great, we have an instance running :)
The "posted by" link is indeed part of the theme, not the FP code itself.

All the best,
Arvid

Re: New tech blog

Posted: Sat Apr 16, 2022 8:01 pm
by bttr
mschatz wrote: Tue Dec 28, 2021 4:57 pm ...
I found a better solution for my purpose and switch over to dokuwiki!
Hi Michal,
where is your DokuWiki-driven blog located now?
https://www.blogschatz.de/ is still running FlatPress and quite empty.

Re: New tech blog

Posted: Wed Jun 21, 2023 12:12 am
by DeltaLima
Arvid wrote: Sat Dec 18, 2021 1:07 pm ..
If you get it revived, let us know - I would then gladly add it to our FlatPress Extras repository, and we could add it to the wiki as well.
..
I took some time for it today and hacked "syntaxhighlighter-ng" together :) See the result here: https://git.la10cy.net/DeltaLima/flatpr ... lighter-ng

Small Demo site: https://deltalima.org/blog/index.php/sy ... -testpage/

Best greetings!

DeltaLima

Re: New tech blog

Posted: Sun Jun 25, 2023 1:29 pm
by fraenkiman
Hello DeltaLima,

welcome aboard! Thanks for the write up on NoWhereMan's SyntaxHighlighter plugin :+1: . I have tested the SyntaxHighlighter-NG -plugin on the development version of FlatPress. It works very well :smile: . Nice stuff! It does cause a few layout/CSS glitches in the individual styles of the FlatPress theme Leggero, but they can be fixed quickly.

With best regards
Frank

Re: New tech blog

Posted: Sun Jun 25, 2023 5:03 pm
by eagleman
Hello Deltalima.
I have downloaded both your themes and I merged it into a new one.
In other words I have downloaded snail orange theme and the main theme of your blog with the tux on it and I created an hybrid theme using the colorful theme but with the simple header of snail orange.
I called it Rainbow and you can see the result on my blog.
If you like my simple mashup of your themes I can publish it on the wiki.
I have only to test it with FP 1.3 beta.