Friends:Status Form
- Home
- Documentation
- Modules
- Friends
- Tags
- Status Form
The Friends:Status_Form function allows your users to submit a current status for their profile, similar to the way Facebook's status feature works.
{exp:friends:status_form} content {/exp:friends:status_form}
Parameters
The following parameters are available for use:
form_class=
form_class="your_form_class"
The 'form_class' parameter allows you to establish a class attribute for the form.
form_name=
form_name="your_form_name"
The 'form_name' parameter allows you to establish a name attribute for the form.
form_id=
form_id="your_form_id"
The 'form_id' parameter allows you to establish an ID attribute for the form.
return=
return="friends/status"
The 'return' parameter allows you to return the user to a specified template upon successful submittal of form.
Variables
All standard and custom member fields are available for use here.
Form Fields
The following form fields are available for use:
friends_status
<input type="text" name="friends_status" value="is " />
The 'friends_status' form field collects the status the member wants submitted to their profile.
friends_status_private
<input type="checkbox" name="friends_status_private" id="friends_status_private" value="y" />
The 'friends_status_private' form field allows the user to control whether their status update is public or only available to their friends for viewing. Checking the checkbox with a value of "y" will make the status update available only to reciprocal friends.
Examples
The following example will allow your users to submit a status to their profile:
<h3>Submit a new Status:</h3>
{exp:friends:status_form return="friends/status"}
<p>{friends_screen_name} <input type="text" name="friends_status" value="is " /> <input type="submit" name="submit" value="Add" /><br />
<input type="checkbox" name="friends_status_private" id="friends_status_private" value="y" /> <label for="friends_status_private">Show Only to Friends?</label></p>
{/exp:friends:status_form}


