1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

User Ranks Based on Trophy Points

Display a rank image in the postbit based on trophy points earned

  1. AzzidReign

    AzzidReign Well-Known Member

    AzzidReign submitted a new resource:

    User Ranks Based on Trophy Points - Display a rank image in the postbit based on trophy points earned

    Read more about this resource...
     
    loplo and Mirovinger like this.
  2. Justin Long

    Justin Long New Member

    I replaced

    HTML:
    <span class="arrow"><span></span></span>
    with the code you provided and I get...

    "The following error occurred:
    The following templates contained errors and were not saved: message_user_info: 1) Line 124: Template syntax error."

    I was wondering what I did wrong.

    btw, thanks for this, it looks really nice!
     
  3. AzzidReign

    AzzidReign Well-Known Member

    Oh, you should probably keep the last 2 spans.
     
  4. Justin Long

    Justin Long New Member

    No luck. :(
     
  5. AzzidReign

    AzzidReign Well-Known Member

    Try adding above? I'll look at the code more closely. Sadly, I'm not a coder :(
     
  6. Justin Long

    Justin Long New Member

    Yeah, I tried. Above, below, within. To no avail. :(
     
  7. Justin Long

    Justin Long New Member

    The only thing I change is the image path, right? I leave everything else the same?
     
  8. AzzidReign

    AzzidReign Well-Known Member

    I believe so. I'll look more at the code tomorrow.
     
  9. AzzidReign

    AzzidReign Well-Known Member

    Are you using the default skin?
     
  10. Justin Long

    Justin Long New Member

    I just figured it out. Thanks for your help!!
     
  11. AzzidReign

    AzzidReign Well-Known Member

    What was it? Is it something wrong I said?
     
  12. Justin Long

    Justin Long New Member

    No, I'm guessing it was a conflict on my end as I went over the code character by character and it looked fine. And it doesn't seem like anybody else had the same problem as I. So I took out everything and just left the if statements, image source, and tooltip popup codes and it worked perfectly. Although, I couldn't figure out exactly why it didn't work, I still got to the finish line. Thank you so much much for all your help. I very much appreciate it!
     
    AzzidReign likes this.
  13. KidRegal

    KidRegal Member

    Nice feature Azzid.
    The code will give a syntax error because this line:

    <xen:if is="{$user.trophy_points} >= 130" />

    Should be:

    <xen:if is="{$user.trophy_points} >= 130" >
     
    AzzidReign likes this.
  14. AzzidReign

    AzzidReign Well-Known Member

    Thank you. I have a much bigger list on my site so I just removed a ton of the ones we have and didn't notice that. :)
     
    KidRegal likes this.
  15. KidRegal

    KidRegal Member

    no prob. Thanks for sharing the code!
     
  16. JahgDohg

    JahgDohg Member

    What file do I put this in?
     
  17. KidRegal

    KidRegal Member

    Message_user_info
     
  18. JahgDohg

    JahgDohg Member

    Thank you!
     
    KidRegal likes this.
  19. Pinn

    Pinn Active Member

    How is it for posts?

    see?

    HTML:
     <xen:if is="{$user.posts} >= 130" />
     
  20. KidRegal

    KidRegal Member

    That should work. If not, try 'messages' instead of 'posts'
     

Share This Page