New tech blog

This is the right place to report general bugs, make suggestions or ask for help.
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: 206
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: 591
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 979 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 17409 times
Best regards and all the best with flatpress!
Michael

laborix
Posts: 124
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: 591
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

bttr
Posts: 47
Joined: Tue Mar 22, 2022 9:20 pm
Location: Berlin, Germany
Contact:

Re: New tech blog

Post by bttr » Sat Apr 16, 2022 8:01 pm

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.

User avatar
DeltaLima
Posts: 16
Joined: Mon Jun 19, 2023 2:04 pm

Re: New tech blog

Post by DeltaLima » Wed Jun 21, 2023 12:12 am

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

User avatar
fraenkiman
Posts: 263
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: New tech blog

Post by fraenkiman » Sun Jun 25, 2023 1:29 pm

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
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

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

Re: New tech blog

Post by eagleman » Sun Jun 25, 2023 5:03 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests