A Comment Problem

Hi Steph,

 

following problem:

I created one form and one display page for different users to supply and show their vita, So far so good!

If someone posted a comment to e.g. the vita of me, the comment is also displayed in everybody's vita.

Of course the comment should be displayed only on the vita it relies to!

 

Possible? If yes, please help!

I think I will need to see the way you are doing this in order to give you any suggestions. Can you show me with screenshots or direct me to the pages?

Hi Stephanie

 

no problem, url is http://www.aquaref.de

 

use the translater and/or click on Vorträge/lectures, choose any of them. At the bottom you'll find an post "Dschingel" - on every lecture!

Of course I want it only on that lecture, it was written - and not to every other one!

 

regards

Lutz

I see. The problem is that technically, all the lectures are actually on the same WordPress page. If you want the comments to work as you would like. it looks like you might need to add a special Formidable form for comments on this page with a hidden field with the dynamic default value [get-vortrag]. Then, to display the comments, you can add a "where" line to make that field equal to [get-vortrag].

Let me know if you need more details on setting this up.

I'm actually very interested in doing this same thing.  


So, if I understand this correctly-

1)  Create a form for "posts"
2)  Create a separate form for "post comments"
3)  On the display details portion for viewing single post details (ie: "where" line?), pass in a reference to the comment data for association and display.

Conceptually I get it but I'm not sure how to put this into practice.  Very interesting though and would like to know more.

Thanks!
-Dave

Yep, you're right. After creating each form you will create one custom display for each form. The post form will be set up to create posts (or a custom post type like here in the help desk). The comment form must include a hidden field with [post_id] as the default value.

The comment custom display includes the where row to set that post I'd hidden field equal to [post_id].

Now insert the two custom displays on a page along with the comment form and you're set.

Thanks!  This worked great!


One problem I have is that on my display all posts page, it also displays all comments.  Is there a way to suppress the display of comments unless the user is looking at a post details entry?


Yep. Just don't insert the shortcode for the comments on the listing page. In your custom display, make sure it's set to "both (dynamic)", and move the shortcode for displaying comments from the "content" box to the "dynamic content" box.

So I tried editing the custom display for the main posts form.

  • In the "Form and Display Type" fieldset, I've selected "Both (Dynamic) ...." radio item
  • In the "Content" fieldset, the textarea for "Dynamic Content" - added these lines
[formidable id=9 title=true description=true]
[display-frm-data id=2]


When I view the details for the post, those new elements don't seem to render.


Could it be something else that I've overlooked?

Is this page set as the blog page in your Wordpress settings? If adding text to that page doesn't show up, neither will adding shortcodes. Is that what you mean?

The page I have the form and display code are regular pages (not blog posts).  The shortcodes for comments I have saved in the "Dynamic content" field in the primary custom display.

Oh I see. When you insert the custom display, add filter=1. [display-frm-data id=x filter=1].

You can find a little more detail on this near the bottom of the page here:
http://formidablepro.com/knowledgebase/display-your-form-data/

Stephanie, you run a tight ship.  Adding filter=1 to the main custom display did the trick.


Thanks for being so responsive!

Topic closed.