@julian I want to post large number of topics at once on JSON format, and it will be frequently use under one user id.
Does body-parser has the ability? and is it easy to modify api/v3/topics ?
Many Thanks,
Khaled
May someone please assist me with the coding to add reputation and post count in the topic view? I added this code, not correct as i'm a novice, in post.tpl in partials:
<span class="userinfo-extra">
<i class="fa fa-star"></i> <span component="user/reputation" data-reputation="{reputation}" data-uid="{posts.user.uid}" class="formatted-number reputation">{reputation}</span> |
<i class="fa fa-pencil"></i> <span class="formatted-number" component="user/postcount" data-uid="{posts.user.uid}" data-postcount="{postcount}">{postcount}</span>
</span>
However it does not work properly as you can see in the image below. I got this by looking at someone else's site.
@torn2 try this
<span class="userinfo-extra">
<i class="fa fa-star"></i> <span component="user/reputation" data-reputation="{posts.user.reputation}" data-uid="{posts.user.uid}" class="formatted-number reputation">{posts.user.reputation}</span> |
<i class="fa fa-pencil"></i> <span class="formatted-number" component="user/postcount" data-uid="{posts.user.uid}" data-postcount="{posts.user.postcount}">{posts.user.postcount}</span>
</span>
@pichalite Awesome! Thanks for replying so quickly. It works, though for some users it will not show?
@torn2 did they make any posts and do they have reputation?
@pichalite Yes, one has 5K as posts and 1k as rep. Also, just noticed that the same user has it showing on one post, but two posts later does not?
@torn2 which template did you add the code in?
Is your site public to take a look?
@pichalite It is added in Persona.
@torn2 I am talking about the template file... not theme
@pichalite I cleared my browser cache and now it works! Thanks for all the help.