View Create Edit Reply
Similar to a traditional forum, a reply to a topic is called a “reply”. Put this tag in a template to make a create or edit a topic reply item. Make sure to pass in a topic_id if this is a create form (since a reply gets tied to the parent topic), and just a reply_id if you are using this as an edit form.
Note: You may or may not want to let people edit their replies after they submit them, so keep that in mind when providing edit links to members of the group.
{exp:user_groups:reply_form}{/exp:user_groups:reply_form}
Table of Contents
Parameters
reply_id
Optional, but must be passed in to edit
topic_id
name
form name
form_title
class
Class gets applied to the form
return
This parameter allows you to specify the template to take users to after they submit this form.
reply_id, topic_id, and topic_url_title get converted for you to the group’s id you’re editing or creating. return=“groups/topic/topic_url_title” would take you to the topic template in the groups template group with the generated URL Title for the group passed in to segment_3.
Note: If you don’t pass this in, you’re just taken to a boring confirmation message
Variables
The following are available in this tag.
body
description
Example
{exp:user_groups:reply_form return="groups/topic/topic_id"}
<h3>Reply to this thread</h3>
Body<br/>
<textarea name="body" style="width: 400px;" rows="8">{body}</textarea><br/><br/>
<input type="checkbox" checked="checked" name="notify" value="y" /> Notify me when someone replies?<br/><br/>
<input type="submit" name="submit" value="Submit" /><br/>
{/exp:user_groups:reply_form}