• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • 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

James

Well-known member
#1
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