Page 1 of 1

proposal for comments

Posted: Fri May 07, 2010 12:53 pm
by konus
Hello,
I would like to make some suggestions/wishes to enhance comment handling in s9y:
  1. in the email, s9y sends to me about a comment, I would like to see the referrer (helps to decide if it is spam or not)
  2. After calling the links with the comment_tokens from the email, (approving or deleting the comment) S9y opens up a blank page and gives some feedback "comment # 1080 was deleted" or "approved" - I would like to have a link to the article here.
  3. After login, under all comments appears the "delete"-Link (I use bulletproof). It would be useful to show a "modify"-Link too .

Re: proposal for comments

Posted: Mon May 17, 2010 1:25 am
by konus
Hi,
I made some small modifications to functions_comments.inc.php from /include/ to solve whish No.1 Here is the file (zipped, see last paragraph)

Then I tried to solve my wish No.2, but did not find a way to make the link clickable in
die($return_msg)
The output is not html, but text. Is there a way to solve this?

Here is my work so far (file, zipped, line 109 - 112).

Re: proposal for comments

Posted: Mon May 17, 2010 9:45 am
by garvinhicking
Hi!

Great, committed your 1st patch!

Wish no2 is not solvable this way. The output is a plaintext output. If it were HTML, we would need to add all kind of HTML head/body structure to the output.

But when you click the link in your mailclient, you also have the original link there, so you could simply first click on the moderation link and immediately also click on the entry title which would open both URLs in your browser?

Regards,
Garvin

Re: proposal for comments

Posted: Sat May 22, 2010 11:09 pm
by konus
You are right, it is just a matter of workflow. I will call the url in my mailclient.