Carlo Laitano
Dec 23 2002, 10:42 AM
I implemented the comments system on my entries but I'm having some trouble with the mt-comments.cgi script. When people post a comment I don't want them to go the script but be redirected back to the news entry itself. Can anyone help me figure this out?
girlie
Dec 23 2002, 06:29 PM
Do you mean you don't want the comments in a popup window, but instead have the reader go directly to the archived entry?
Or do you mean the page they are returned to after posting a comment?
Carlo Laitano
Dec 24 2002, 02:01 PM
I mean that right after they post something, they return to the entry itself. I don't want them to see the .cgi page.
girlie
Dec 24 2002, 02:08 PM
So you're using popups then? You might want to switch to using inline comments on the Individual Page, and have them post comments from there.
jzader
Dec 24 2002, 04:49 PM
I am working through the same problem as Cruel Angel.
I have successful switched to using inline comments. However, right now, after visitors post their comments, they are taken to a mt-comments.cgi page that I don't know how to configure.
But rather than bother with trying to configure that page, I'd like to make it so that visitors are simply redirected to the original archive page after submitting their comments, rather than the mt-comments.cgi page.
How do we do this?
girlie
Dec 24 2002, 04:51 PM
Do you have this line in your inline comments form:
CODE
<input type="hidden" name="static" value="1">
or do you have a URL we can view?
jzader
Dec 24 2002, 04:55 PM
Yes, I do have that line in my inline comments form. I assume this is what redirects people to the comment when they are finished rather than the entry? If so, how do I change it?
jzader
Dec 24 2002, 04:57 PM
Actually, the line of code that appears in my form by default is:
CODE
<input type="hidden" name="static" value="<$MTCommentPreviewIsStatic$>" />
So, I assume I should change it to value="1"? I'll give that a whirl.
girlie
Dec 24 2002, 05:01 PM
Uh, that stuff is from the comment PREVIEW listing. It doesn't belong in your inline form at all.
jzader
Dec 24 2002, 05:29 PM
Ah yes, good spot. I was editing both sections (individual archive entry and comment preview) at the same time, since I wanted both pages to redirect to the same place after visitors post their comments. And I showed you the code from the wrong page.
*** So, back to the original question: How do we control where visitors get redirected after they post their comment? I have been unable to find any documentation on this point. ***
girlie
Dec 24 2002, 05:36 PM
If you're using inline comments, the reader will be returned to the entry on whatever page you have selected as the Preferred Archive Type.
If you want it to go to a different page, you can add this to your form:
CODE
<input type="hidden" name="static" value="<$MTEntryLink archive_type="Individual"$>" />
that would take them to the individual archive page, assuming you have Individual Archives turned on.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.