comments on static pages

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
George
Posts: 37
Joined: Tue May 18, 2021 10:54 am
Location: Uk
Contact:

comments on static pages

Post by George » Sun Nov 20, 2022 4:52 pm

just wondered if anyone has added comments on static pages ?
Proudly using flatpress https://www.mypoppy.uk/blog

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

Re: comments on static pages

Post by Arvid » Sun Nov 20, 2022 6:01 pm

Someone has indeed :)

Although static pages can not be commented in vanilla FlatPress, you may add the Disqus comment system - this works for entries and static pages. See our wiki for details :)

All the best,
Arvid
Helpful FlatPress links: Project blog 📝 - FlatPress wiki 📖 - FlatPress@Twitter 🐦 - FlatPress@Mastodon 🐘
Stay up to date with our feeds: Forum RSS feed 📜 - Project blog RSS feed 📜
Feel free to say Thank you: Donate ❤️

🔥 How to rework your themes and plugins for FlatPress 1.3 / Smarty 4 🔥

🇩🇪 Für meinen Arbeitgeber in Bochum habe ich eine Stelle zu besetzen: Junior-Systemadministrator 🇩🇪

George
Posts: 37
Joined: Tue May 18, 2021 10:54 am
Location: Uk
Contact:

Re: comments on static pages

Post by George » Mon Nov 21, 2022 9:28 am

Ive looked at that but would prefer the flatpress system, any ideas ?
Proudly using flatpress https://www.mypoppy.uk/blog

User avatar
virtualsky
Posts: 55
Joined: Thu Mar 11, 2021 4:50 am
Location: Saskatchewan, Canada
Contact:

Re: comments on static pages

Post by virtualsky » Thu Nov 24, 2022 12:54 am

At first I was going to say, "couldn't you just alter the php to include the 'comments' portion from the blog entry sheet into the static page sheet", but then I took a close look at the file structure. From what I can see, all of the static pages are stored as .txt files within the same sub-folder. While comments, on the other hand, are stored within a sub-folder under the folders created for each individual blog entry. So, obviously that first idea wouldn't work.

The only way that I can thing of to add comments to a static page (within the confines of vanilla Flatpress as it is today) is to create a companion blog entry for each static page. Then, at the bottom of the static page, you include a link to the corresponding blog entry page, where the visitor could then add a comment. Not very graceful, I know.
It ain't retro to me.... it's just how I live!
https://www.chorusgrove.site/retroblog

George
Posts: 37
Joined: Tue May 18, 2021 10:54 am
Location: Uk
Contact:

Re: comments on static pages

Post by George » Thu Nov 24, 2022 12:41 pm

thanks,i did it but much easier than that, my flatpress has two instances running. the first is only for the front/home page. the second is the main site.
so in the main site i edited static.pl and added a link to the home site. it isnt clean but it works :)
Proudly using flatpress https://www.mypoppy.uk/blog

User avatar
virtualsky
Posts: 55
Joined: Thu Mar 11, 2021 4:50 am
Location: Saskatchewan, Canada
Contact:

Re: comments on static pages

Post by virtualsky » Thu Nov 24, 2022 4:12 pm

Ah yes, I see what you did there. Good thinking!
It ain't retro to me.... it's just how I live!
https://www.chorusgrove.site/retroblog

User avatar
WineMan
Posts: 78
Joined: Tue Sep 01, 2020 5:03 pm

Re: comments on static pages

Post by WineMan » Thu Nov 24, 2022 5:13 pm

I don't know if you're aware of this or not, but on your home page at the bottom there is an error message. Here is what it says:

Server Uptime 17:10:08 up 8 days, 7:50, 1 user, load average: 0.00, 0.00, 0.00
Warning: Undefined array key 1 in /home/.sites/site2/wwwroot/web/odds/uptime2.php on line 4

George
Posts: 37
Joined: Tue May 18, 2021 10:54 am
Location: Uk
Contact:

Re: comments on static pages

Post by George » Thu Nov 24, 2022 6:05 pm

WineMan wrote: Thu Nov 24, 2022 5:13 pm I don't know if you're aware of this or not, but on your home page at the bottom there is an error message. Here is what it says:

Server Uptime 17:10:08 up 8 days, 7:50, 1 user, load average: 0.00, 0.00, 0.00
Warning: Undefined array key 1 in /home/.sites/site2/wwwroot/web/odds/uptime2.php on line 4
thanks for heads up :) i think its now fixed
Proudly using flatpress https://www.mypoppy.uk/blog

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests