Zacarias
06-18-2008, 03:24 AM
I wanted to let the user know what posts he or she had given reputation to by showing a different image in place of the scales (or whatever it may be) on the postbit.
I tried making a plugin, and failed miserably. I added the following to the hook "reputation_add_complete":
if ($db->affected_rows() > 0)
{
$usergivenrep = 1;
}
Then, in the postbit_legacy template (the one I'm using), I would have an if conditional that would display the different image.
It's my first time coding so.. I need some help.. :)
I tried making a plugin, and failed miserably. I added the following to the hook "reputation_add_complete":
if ($db->affected_rows() > 0)
{
$usergivenrep = 1;
}
Then, in the postbit_legacy template (the one I'm using), I would have an if conditional that would display the different image.
It's my first time coding so.. I need some help.. :)