The solution will not prevent polls from being created via post requests, only hide the option to create a poll. My suggestion is also something that should have been included long ago in vanilla XenForo, so it surprises me that it has not been added yet, soon 3 years after suggesting it.
I would like to get which groups a signed in user is from a external script.
In phpBB you would do it like this to see if the user has admin permissions.
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../forum';
How should the userfield callback function look. Ive found out that the class should extend XenForo_Model_UserField, but since I haven't a documentation for XenForo which shows which function I should extend and function variables
Currently the class looks like this.
I found what i was looking for here.
@ragtek the link you posted was almost correct. In that thread there was a link to this thread which was exactly what i wanted.
When will custom profile fields be implemented in XenForo?
I would have a big use of this right now.
Also when its implemented will it have the same functions as Identities (Adding checks to see if the input is valid etc.)
I would like to see if the user is banned in the view message template. If the user is banned it will show a static image url and if not it will show the users avatar.
I couldnt find a user variable to check this.