Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-02-22 20:29:03

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

not displaying "comment is awaiting moderation" message

i didnt notice till now, but upon upgrading from 4.0.5 to 4.0.6, when a user submits a comment on my site, they don’t see the “comment is awaiting moderation” message anymore. the comment does end up in the moderation queue though. comments are automatically appended via txp backend.

if i turn off moderation and try commenting, the comment appears and they do get a “thank you for your comment” message. i haven’t changed my comment forms at all upon upgrading. was there something that changed in comment behaviour?

Offline

#2 2008-02-22 21:29:47

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: not displaying "comment is awaiting moderation" message

Track the URL through the comment process – I think something was different, but I can’t check my dev install right now.

Offline

#3 2008-02-23 07:52:34

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: not displaying "comment is awaiting moderation" message

as far as i can tell they’re the same..

the user clicks preview, and sees the preview at site.com/section/title#cpreview

if they miss a required field, then they do see “Please enter a comment” (if they neglected to enter one)

once all fields are filled, and upon submit they end up at site.com/section/title#txpCommentInputForm which just shows the empty comment form again with no indication at all that the comment they just submitted is awaiting moderation.

Last edited by iblastoff (2008-02-23 07:53:39)

Offline

#4 2008-02-23 08:49:51

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: not displaying "comment is awaiting moderation" message

The comment moderation message shows up if $_GET['commented'] is set to zero (lines 1475+1476 of taghandlers.php), and once the comment is added to the database that variable should be getting passed along (line 383 of comment.php).

Offline

#5 2008-02-23 09:02:11

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: not displaying "comment is awaiting moderation" message

ahh thanks..the $_GET[‘commented’] gave me a clue which lead me to find the cause. it was zem_redirect_pro. upon disabling it, the moderation message comes back.

Last edited by iblastoff (2008-02-23 09:22:48)

Offline

#6 2008-02-23 14:39:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,200
Website GitHub Mastodon Twitter

Re: not displaying "comment is awaiting moderation" message

nicely caught steve. i know that this is not the thread for it but is there a way around this?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2008-02-25 01:33:21

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: not displaying "comment is awaiting moderation" message

Is it due to the plugin alone, or could it be due to specific redirects you’re using? Looking quickly at the plugin, it looks like it does try and preserve $_GET.

Offline

#8 2008-02-25 01:35:56

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: not displaying "comment is awaiting moderation" message

Mary wrote:

Is it due to the plugin alone, or could it be due to specific redirects you’re using? Looking quickly at the plugin, it looks like it does try and preserve $_GET.

i did have specific redirects in use. but even upon removing those, the comment moderation message still wouldn’t show up. so i’d say its due to the way the plugin works by itself. i’ll test again to make sure..

edit:yep on my default 4.0.6 install, with zem_redirect_pro enabled, no other plugins, default theme and comment moderation on, the ‘awaiting moderation’ message fails to appear.

once i turn the plugin off, the message works again.

Last edited by iblastoff (2008-02-25 01:39:59)

Offline

#9 2008-02-25 07:40:43

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,200
Website GitHub Mastodon Twitter

Re: not displaying "comment is awaiting moderation" message

I just use the plugin using its default install and I am experiencing the same issues as steve


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB