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.
Hi
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.
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../forum';
$phpEx =...
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.
<?php
class...
I solved the problem.
Replace in the function _genUrl in the variable $returnTo and $params['openid.realm'] :
!empty($_SERVER['HTTPS'])
With:
isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on"
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.
http://xenforo.com/community/threads/editing-templates-and-defining-a-callback-for-pages.7226/
How would I create a custom page for XenForo there I can put my own php code?
I need to create a page there it shows bans from my gameserver.
Best Regards
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.)