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

Query a table and display data in profile page

Discussion in 'XenForo Development Discussions' started by anmol dubey, Jun 19, 2015.

  1. anmol dubey

    anmol dubey Member

    Here is what i want to do

    1. Query a database table (non - Xenforo) with a select query and fetch records
    2. Display the records in users profile page

    Please help me with details how this can be done.
  2. Daniel Hood

    Daniel Hood Well-Known Member

    Use a template modification to add a tab to the profile (member_view). Set the template to load from a url. Use the route prefix system to add your route, use the controller and models to load the data and pass a response view, then use the template to display it. If you don't want it in a tab, then you need to use the template modificaton system on the same template, then use either the xen:callback tag or extend the XenForo_ControllerPublic_Member controller to load your data.

Share This Page