Icon center Sidebar Visitor Panel

Discussion in '[bd] Medal System' started by Nirjonadda, May 29, 2017.

  1. Nirjonadda

    Nirjonadda Member

    How to show Icon center in Sidebar Visitor Panel?

    [​IMG]
     
  2. Nirjonadda

    Nirjonadda Member

    Also how to showing "Awards User" in /help/medals page?
     
  3. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    I'm currently away from work but adapting the code in template "bdmedal_message_medals" should work, you can try to put something like this in the visitor panel template:

    Code:
    <xen:callback class="bdMedal_Helper_Template"
    method="renderCachedMedals"
    params="{xen:array
    'user={$visitor}',
    'awardDateTemplate={xen:raw $awardDateTemplate}',
    'imageSize={xen:property bdMedal_messageImageSize}',
    'max={xen:property bdMedal_messageMax}'
    }">
    <a href="{link}"
    class="OverlayTrigger Tooltip"
    title="{medalName}{preparedAwardDate}"
    data-offsetX="{xen:calc '-{xen:helper bdMedal_imageSize, {xen:property bdMedal_messageImageSize}}'}"
    data-offsetY="{xen:calc '{xen:helper bdMedal_imageSize, {xen:property bdMedal_messageImageSize}} / -2'}"
    style="display: inline-block">{medalImage}</a>
    </xen:callback>
     
  4. Nirjonadda

    Nirjonadda Member

    #4 Nirjonadda, May 30, 2017
    Last edited: May 30, 2017
    @xfrocks how to showing "Awards User" in /help/medals page?

    Can done adding any CSS code to EXTRA.css for center?
     
    1. xfrocks

      xfrocks XenForo rocks!
      Staff Member

      xfrocks @Nirjonadda You meant you want to award user on the help page?
       
    2. Nirjonadda

      Nirjonadda Member

      Nirjonadda @xfrocks Awarded Users are not showing on my site.

      Example:

      [​IMG]
       
Loading...