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

XF 1.5 trophies list problem

Discussion in 'Styling and Customization Questions' started by yazer, Aug 16, 2016.

  1. yazer

    yazer Member

    Good afternoon everyone, i have try to change the trophies and have messed it all up, try editing and using custom trophies images and ended up deleted the list of trophies screenshot below, anyone any ideas how i sort this please
     

    Attached Files:

  2. Malcolm M

    Malcolm M Active Member

    Have you tried reverting the template?
     
    yazer likes this.
  3. yazer

    yazer Member

    Yes but i deleted the trophies in acp aswell :(
     
  4. Malcolm M

    Malcolm M Active Member

    You can re-add them :p

    Edit: Users > Trophies
     
  5. yazer

    yazer Member

    I try add new one got it added and awarded but no icon showed up
     
  6. Malcolm M

    Malcolm M Active Member

    [​IMG] This number?
     
    yazer likes this.
  7. yazer

    yazer Member

    Yes, i added the trophies icons to folder on ftp styles/default/images/trophy but i lost after that
     
  8. Malcolm M

    Malcolm M Active Member

    The numbers that you see there aren't actually icons. You don't need to upload anything :p

    Try replacing you Trophy template with:

    Code:
    <xen:require css="trophy.css" />
    
    <div class="trophy" id="trophy-{$trophy.trophy_id}">
        <div class="points">{$trophy.trophy_points}</div>
        <xen:if is="{$trophy.award_date}">
            <div class="awarded">{xen:phrase awarded}: <xen:datetime time="$trophy.award_date" /></div>
        </xen:if>
        <div class="info">
            <h3 class="title">{$trophy.title}</h3>
            <p class="description">{xen:raw $trophy.description}</p>
        </div>
    </div>
     
  9. yazer

    yazer Member

    That now shows the amount points awarded that do great i can work with that thanks
     
  10. Malcolm M

    Malcolm M Active Member

    [​IMG] I managed to get this, I think I know how to do individuals ones but I'd have to create an addon I believe.
     
  11. yazer

    yazer Member

    that blue even suits my site, gamer icons would be great
     
  12. Malcolm M

    Malcolm M Active Member

  13. yazer

    yazer Member

    How:
    1. Find/create icons that fit your trophies
    2. Rename them: "trophy_1.png" for the trophy with ID=1, "trophy_2.png" for ID=2, etc.
    3. Upload them to your server
    4. Open trophy template
    5. Replace entire code with:
    Code:
    <xen:require css="trophy.css" />

    <div class="trophy" id="trophy-{$trophy.trophy_id}">
    <div class="points"><img title="{$trophy.title}" alt="{$trophy.title}" src="[PATH TO YOUR TROPHY ICON DIRECTORY]/trophy_{$trophy.trophy_id}.png"></div>
    <xen:if is="{$trophy.award_date}">
    <div class="awarded">{xen:phrase awarded}: <xen:datetime time="$trophy.award_date" /></div>
    </xen:if>
    <div class="info">
    <h3 class="title">{$trophy.title}</h3>
    <p class="description">{xen:phrase points}: {$trophy.trophy_points}</p>
    <p class="description">{xen:raw $trophy.description}</p>
    </div>
    </div>

    This i try lol couldnt get it working
     
  14. Malcolm M

    Malcolm M Active Member

    I'll try it on my end then let you know :)
     
    yazer likes this.
  15. yazer

    yazer Member

    Thanks i see the date is 2012 so that could be problem
     
  16. Malcolm M

    Malcolm M Active Member

    Yeah, I'm modifying the code :p
     
  17. yazer

    yazer Member

    Nice upload as a addon? maybe add gamer icons lol hint hint
     
  18. Malcolm M

    Malcolm M Active Member

    I didn't create the add-on :D
     
  19. yazer

    yazer Member

    aww do tell what you done
     
  20. Malcolm M

    Malcolm M Active Member

    I got it to work!

    [​IMG]
     

Share This Page