Log in

View Full Version : integratre reputation into custom templates


X-or
05-24-2015, 01:25 PM
Hi,

I'm trying to add reput to custom templates of an addon but nothing is showing up.

Basically added this to template

<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}">
<vb:each from="reputationdisplay" value="row">
<img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend}
</vb:each>
</span>
</vb:if>

Is there a guide detailing how I could add reput to custom templates?

Thanks in advance.

Elite_360_
05-24-2015, 04:14 PM
We will need your php code too.

X-or
05-29-2015, 01:33 PM
I haven't added anything to the php code and I guess that's the issue :)