Announcement

Collapse
No announcement yet.

How do I change the reputation scales image after someone has given reputation?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I change the reputation scales image after someone has given reputation?

    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":
    PHP Code:
    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..

  • #2
    I can't find any simple template conditional for this. From what I can tell you need a custom plugin to query the database to see if the current user has already given reputation to each post. If you have some coding ability then you can post on www.vbulletin.org for help with this.

    Comment


    • #3
      Oh, I was afraid of that. Well, I'll see what I can do.

      Maybe I'll release it as a new mod.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X