Puljac
Maven
Joined 13 years ago
Joined 13 years ago
Well I work my solution thru TEXT EDITOR:
page.post.original_message_quote.text = <blockquote><br/>[QUOTE:] {0}<br/>{1}<br/></blockquote>
See http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api. I don't remember the 24 hour one off the top of my head but here's the first two:
Domain.com/restapi/vc/topics/count - topic count
Domain.com/restapi/vc/posts/count - post count
Puljac- we created a custom component for one of our communities that shows the user their five most recent posts. Here's a code snippet that shows how you can do this:
<#if user.id != -1>
<div class="RecentPosts">
...
<#assign recentPosts = rest("/users/id/${user.id}/posts?page_size=5&restapi.response_style=view").node_message_context.message />
<ul>
<#list recentPosts as recentPost>
<li><a href="${recentPost.@view_href}">${recentPost.subject}</a></li>
</#list>
</ul>
...
</div>
</#if>