Check out Alice Chess, our featured variant for June, 2024.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

EarliestEarlier Reverse Order Later
The new editcomment.php script[Subject Thread] [Add Response]
🕸Fergus Duniho wrote on Mon, Jul 13, 2020 01:53 AM UTC in reply to Fergus Duniho from 01:53 AM:

The footnotes were initially working in the preview. It appears that some tests following the footnote test are interfering with them working, but it's late, and I don't want to keep trying to figure out what that could be right now. Here is the footnote test by itself.

Testing footnotes

Here's a simple footnote,1 and here's a longer one.2


  1. This is the first footnote. 

  2. Here's one with multiple paragraphs and code.

    Indent paragraphs to include them in the footnote.

    { my code }

    Add as many paragraphs as you like. 


H. G. Muller wrote on Mon, Jul 13, 2020 01:33 PM UTC:

The 'Edit' links seem to have disappeared from all my comments. Is there another way to modify a comment now?

[Edit] Forget about this; I see the link now. Not sure what was wrong before, it said I was logged on.


🕸Fergus Duniho wrote on Tue, Jul 14, 2020 05:55 PM UTC:

I have now added the ability to send email notifications, which was in addcomment.php. I copied over the code from that file and made some modifications to it. Since I previously added the ability to reply to a specific comment, replies will send an email notification to the person whose comment is being replied to instead of to the page authors or game inventors. This will also work for subject comments. Otherwise, no one will be notified for new subject comments. Also, no one will be notified for Kibbitz comments.


🕸Fergus Duniho wrote on Fri, Jul 10, 2020 11:24 AM UTC in reply to H. G. Muller from 11:24 AM:

The new script doesn't seem to have an exit: when you click 'post' after having seen the preview, it goes back to edit mode.

There is now a link back to the latest comments page.


H. G. Muller wrote on Tue, Jul 14, 2020 06:47 PM UTC:

Authors might still be interested in discussions between other people in the comment section. Wouldn't it be better to send a notification to both the page author and the poster of the comment that is replied to?


🕸Fergus Duniho wrote on Tue, Jul 14, 2020 06:47 PM UTC in reply to H. G. Muller from 06:47 PM:

Okay, I modified it to do that.


🕸Fergus Duniho wrote on Sun, Jul 19, 2020 01:44 AM UTC:

I have been working on getting this script to handle the extra abilities provided to editors in the /indexmaint/editcomment.php script. When it's complete, I'll remove the [*] link and just have the edit link show up differently for editors when the comment is not their own.

I also learned that PHP now supports goto, and I used it instead of the kludge of using break in a while or do-while loop.


🕸Fergus Duniho wrote on Sun, Jul 19, 2020 03:52 PM UTC:

Since I was using a goto in an if-elseif series that checked the same variable, I changed it to switch and used break again. I also got rid of some breaks by using elseif instead of if in some places. But some early breaks were needed to skip over code for mailing notifications.


🕸Fergus Duniho wrote on Sun, Jul 19, 2020 10:32 PM UTC:

The editcomment.php script in /index/ now provides the same functionality to editors as the editcomment.php script in /indexmaint/ did. So, I have removed the [*] link and have replaced it with the [Edit] link when the editor is not the comment's author. When the editor is the author, it would be redundant to have two links, and only the regular Edit link is provided.

Instead of having a checkbox for Reviewed, it now has buttons called Approve and Disapprove. The former will update the Reviewed column with a true value, and the latter will update it with a false value.

Instead of having all the buttons show up all the time, only relevant buttons will show up, and only editors will get to see the extra buttons. The Approve and Disapprove buttons show up only if the person who posted a comment is not a registered user, and only the one that will change the value of Reviewed will show up. Likewise, Block will show up only for unblocked comments, and Unblock will show up only for blocked comments.

One change that affects authors too is that authors now have access to the Delete button to delete their own comments.


Ben Reiniger wrote on Tue, Jun 29, 2021 12:09 AM UTC:

Is there any appetite for supporting markdown for member submitted pages? (I've caught myself trying to enter markdown already...)


10 comments displayed

EarliestEarlier Reverse Order Later

Permalink to the exact comments currently displayed.