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

Resource data pulled on Member page?

Discussion in 'XenForo Development Discussions' started by Floren, May 4, 2014.

  1. Floren

    Floren Well-Known Member

    Go to my profile page and look at the Resources tab:
    http://xenforo.com/community/members/floren.18/

    In what file is the $article or $update array defined to display the info into member's Resources tab? I need to add another key to the array, but I don't know where the code is processed.

    Thanks for your help.
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    I'm not sure I understand "$article or $update array"? I'm not familiar with this code in the context of the member profile or resource authors code.

    Anyway, to answer your question, the Resources tab pulls in information via an AJAX request. The actual content is pulled via an AJAX request to this page: http://xenforo.com/community/resources/authors/floren.18/

    It's one of the features of the XenForo tabs system. It is able to load the content of any page in a tab without the surrounding container.

    With that in mind, to make any changes to that you would need to extend the XenResource_ControllerPublic_Author controller. (actionView to modify the parameters available on a user's page).
     
    Floren likes this.
  3. Floren

    Floren Well-Known Member

    Thank you Chris, that was exactly what I was looking for: XenResource_ControllerPublic_Author.
     

Share This Page