Showing the fellow user activities

Fellow user activities can be show using stats:actionList tag. Here is a sample script for doing this.

<stats:actionList id="feedList" type="fellowuserrating, fellowuserfavorites, fellowusercommenting"
        max="10" user="userProfile"/>
<ul>
<c:forEach items="${feedList}" var="feedAction">
  <c:set var="actionKey" value="${feedAction.actionType.shortKey}"/>
  <community:user id="fellowUser" userId="${feedAction.fellowUserId}"/>
  <li>
  <c:choose>
    <c:when test="${actionKey == 'fellowuserrating'}">
      <article:use articleId="${feedAction.articleId}">
      <a href="${fellowUser.section.url}">${fellowUser.article.fields.userName}</a> also rated <a href="${article.url}">${article.fields.title}</a>
      </article:use>
    </c:when>
    <c:when test="${actionKey == 'fellowuserfavorites'}">
      <article:use articleId="${feedAction.articleId}">
      <a href="${fellowUser.section.url}">${fellowUser.article.fields.userName}</a> also likes <a href="${article.url}">${article.fields.title}</a>
      </article:use>
    </c:when>
    <c:when test="${actionKey == 'fellowusercommenting'}">
      <article:use articleId="${feedAction.articleId}">
      <a href="${fellowUser.section.url}">${fellowUser.article.fields.userName}</a> also commented on <a href="${article.url}">${article.fields.title}</a>
      </article:use>
    </c:when>
  </c:choose>
  </li>
</c:forEach>
</ul>
        

For further details on this tag, see Escenic Community Expansion Taglib Reference: Chapter 8: stats:actionList