PDA

View Full Version : Displaying reputation disappears when a user gives reps


Nutella!
10-03-2009, 01:34 AM
I added this modification to postbit and postbit_legacy so that it would show the reputation amount along with the power bars. But when a user gives reputation it disappears and you have to refresh to see the reputation amount again. What do I have to fix so it always shows the reputation amount?

thanks,


<if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span><br /></if>
<span id="repdisplay_$post[postid]_$post[userid]">$vbphrase[reputation]: <if condition="$post[showreputation]"><font color=<if condition="$post[reputation]>0">"green"<else /><if condition="$post[reputation]<0">"red"<else />"gray"</if></if> title="$post[username] $post[level]">$post[reputation]</font><else />hidden</if><br />
$post[reputationdisplay]</span>
</div>
</if>

Nutella!
10-04-2009, 08:42 PM
anyone know? I'm guessing i need to some how have it refresh when a user gives reputation.

Lynne
10-05-2009, 02:14 AM
Most likely the mod needs a new plugin that gets evaled when the ajax posts the postbit so that the variable is available for use. You are going to have to ask about this in the modification thread and see if the developer is willing to write it/add it to the modification.