1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Making Use of Node Choosers in Your Add-on

Discussion in 'Development Tutorials [Archive]' started by James, Jul 24, 2011.

  1. James

    James Well-Known Member

    XenForo comes with 2 default rendering options for forum nodes, which you can make use of in your add-on.

    First option, rendering them as a HTML <select>:
    renderSelect.png
    You can do this by setting:
    Edit Format: PHP Callback
    Format Parameters: XenForo_Option_NodeChooser::renderSelect

    The second option renders them as a HTML radio:
    renderRadio.png
    You can do this by setting:
    Edit Format: PHP Callback
    Format Parameters: XenForo_Option_NodeChooser::renderRadio

    You can (of course) set your own rendering options by putting your own callback.

    UPDATE: You can also do this with usergroups by using the following callbacks:
    Select - XenForo_Option_UserGroupChooser::renderSelect
    Radio - XenForo_Option_UserGroupChooser::renderRadio
     

Share This Page