New tech blog

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
mschatz
Posts: 2
Joined: Wed Nov 17, 2021 9:54 pm

New tech blog

Post by mschatz » 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

eagleman
Posts: 67
Joined: Sat Mar 02, 2019 12:10 pm

Re: New tech blog

Post by eagleman » Wed Dec 15, 2021 9:28 am

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.

User avatar
Arvid
FlatPress Coder
Posts: 283
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: New tech blog

Post by Arvid » Sat Dec 18, 2021 1:07 pm

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
Attachments
syntaxhighlighter.zip
(24.45 KiB) Downloaded 15 times

mschatz
Posts: 2
Joined: Wed Nov 17, 2021 9:54 pm

Re: New tech blog

Post by mschatz » Tue Dec 28, 2021 4:57 pm

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 226 times
Best regards and all the best with flatpress!
Michael

laborix
Posts: 53
Joined: Sat Feb 16, 2019 3:51 pm

Re: New tech blog

Post by laborix » Thu Dec 30, 2021 3:20 pm

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

User avatar
Arvid
FlatPress Coder
Posts: 283
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: New tech blog

Post by Arvid » Sun Jan 23, 2022 11:42 am

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

Post Reply

Who is online

Users browsing this forum: dsale and 0 guests