Status
Not open for further replies.

astrixoblix

New member
Hello everyone,
I'm just trying to add a new tab to my PostBit Tabs to display Reputation Display with image ( Default VB Reputation Display ).

This the code i'm trying:

PHP:
<vb:if condition="$show['reputation']">
    <div style="margin:0 auto 0 auto;text-align:center;">
        <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>
    </div>
</vb:if>

This is Vbulletin Postbit Legacy code, this code works perfect in Postbit_legacy template, but when i tried to put it to PostBit Tabs, it didn't work anymore.
everything of this code looks like normal except:

PHP:
            <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>

As you maybe know, this code, display user reputation with images ( green images ).
Looks Like VB:each doesn't work at all.

- Displaying Reputation is enable on settings
- The above codes works perfect in postbit legacy temple
i will appreciate any idea
Regards
 
Status
Not open for further replies.
Back
Top