Page 1 of 1
comments on static pages
Posted: Sun Nov 20, 2022 4:52 pm
by George
just wondered if anyone has added comments on static pages ?
Re: comments on static pages
Posted: Sun Nov 20, 2022 6:01 pm
by Arvid
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
Re: comments on static pages
Posted: Mon Nov 21, 2022 9:28 am
by George
Ive looked at that but would prefer the flatpress system, any ideas ?
Re: comments on static pages
Posted: Thu Nov 24, 2022 12:54 am
by virtualsky
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.
Re: comments on static pages
Posted: Thu Nov 24, 2022 12:41 pm
by George
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
Re: comments on static pages
Posted: Thu Nov 24, 2022 4:12 pm
by virtualsky
Ah yes, I see what you did there. Good thinking!
Re: comments on static pages
Posted: Thu Nov 24, 2022 5:13 pm
by WineMan
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
Re: comments on static pages
Posted: Thu Nov 24, 2022 6:05 pm
by George
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
Re: comments on static pages
Posted: Mon Dec 12, 2022 7:02 pm
by Arvid
George wrote: ↑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
This is tricky