comments on static pages
comments on static pages
just wondered if anyone has added comments on static pages ?
Proudly using flatpress https://www.mypoppy.uk/blog
Re: comments on static pages
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

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 
Stay up to date with our feeds: Forum RSS feed
Feel free to say Thank you: Donate
Re: comments on static pages
Ive looked at that but would prefer the flatpress system, any ideas ?
Proudly using flatpress https://www.mypoppy.uk/blog
- virtualsky
- Posts: 60
- Joined: Thu Mar 11, 2021 4:50 am
- Location: Saskatchewan, Canada
- Contact:
Re: comments on static pages
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.
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.thegrove.in.nf/retroblog
https://www.thegrove.in.nf/retroblog
Re: comments on static pages
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
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
- virtualsky
- Posts: 60
- Joined: Thu Mar 11, 2021 4:50 am
- Location: Saskatchewan, Canada
- Contact:
Re: comments on static pages
Ah yes, I see what you did there. Good thinking!
It ain't retro to me.... it's just how I live!
https://www.thegrove.in.nf/retroblog
https://www.thegrove.in.nf/retroblog
Re: comments on static pages
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
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
Re: comments on static pages
thanks for heads upWineMan 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

Proudly using flatpress https://www.mypoppy.uk/blog
Re: comments on static pages
This is tricky

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 
Stay up to date with our feeds: Forum RSS feed
Feel free to say Thank you: Donate
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests