Not a developer? Go to MovableType.com

Documentation

AuthorIfFollowing

Determines whether or not a logged in user is following the user of the profile page they are viewing. Certain contents will only be visible if the following value is “true”.

Usage

<p class="edit-relation">
   <span id="following-status"></span>
   <mt:AuthorIfFollowing script="0">
      Following <$mt:AuthorDisplayName$> <$mt:AuthorUnfollowLink text="Unfollow"$>
   <mt:Else>
      <$mt:AuthorFollowLink text="Follow"$>
   </mt:AuthorIfFollowing>
</p>

Modifiers

id

Used by the community. If the ID of the user of the page with <mt:AuthorIfFollowing> is 4, you would use either following_4 or following_else_4.

following is the default value.

Example:

<p class="edit-relation">
   <span id="following-status"></span>
   <span id="following_1" class="following" style="display:none">
       Following Melody.  <a id="unfollow-link" href="javascript:void(0)" onclick="script_leave('1');">Unfollow</a>
   </span>
   <span id="following_1_else" class="following_else" style="display:none">
       <a id="follow-link" href="javascript:void(0)" onclick="script_follow('1');">Follow</a>
   </span>
</p>

class

Used by the community script. Certain class values are set if conditions specified with <mt:AuthorIfFollowing> are met. Not required for normal use.

following is the default value.

Example:

<p class="edit-relation">
   <span id="following-status"></span>
   <span id="following_1" class="following" style="display:none">
       Following Melody. <a id="unfollow-link" href="javascript:void(0)" onclick="script_leave('1');">Unfollow</a>
   </span>
   <span id="following_1_else" class="following_else" style="display:none">
       <a id="follow-link" href="javascript:void(0)" onclick="script_follow('1');">Follow</a>
   </span>
</p>

class_else

Used by the community script. Certain class values are set if conditions specified with <mt:AuthorIfFollowing> are met. Not required for normal use.

followingl_else is the default value.

Example:

<p class="edit-relation">
   <span id="following-status"></span>
   <span id="following_1" class="following" style="display:none">
       Following Melody. <a id="unfollow-link" href="javascript:void(0)" onclick="script_leave('1');">Unfollow</a>
   </span>
   <span id="following_1_else" class="following_else" style="display:none">
       <a id="follow-link" href="javascript:void(0)" onclick="script_follow('1');">Follow</a>
   </span>
</p>

script

Generates HTML code that calls out the community script. 1 (generate) is the default value.

script="0"
Back