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

XF 1.5 How to use PHP Callback to display author resource ?

Discussion in 'Styling and Customization Questions' started by dondomainer, Sep 20, 2016.

  1. dondomainer

    dondomainer Member

    With the intent to do this section (resource ) more personal, relationship between author and user, i would like to show the author resource at the end of page, as shown in the picture.

    Q : How to use PHP Callback to display author resource ?

    resource24.png
     
  2. dondomainer

    dondomainer Member

    i found this in xengalery_media_view ( Reverse engineering )

    Code:
    <xen:avatar user="$media" size="s" img="true" />
    so, if i change media for resource, i get the avatar.

    Code:
    xen:avatar user="$resource" size="M" img="true" />
    Now, only i need play with the style and costom field
     

Share This Page