• 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
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.webp
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.webp
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
 
Top Bottom