Recent content by Deek

  1. Deek

    Datepicker not updating value when existing value is set

    I ended up using this as it is vastly better than my original way.
  2. Deek

    Datepicker not updating value when existing value is set

    I ended up translating the timestamp by creating a DateTime object in the controller. $dateTime = new DateTime('@' . $item['effectiveDate']); $item['effectiveDate'] = $dateTime->format('Y-m-d'); Just a note for anyone playing around with dates. Don't forget your timezone matters!
  3. Deek

    Datepicker not updating value when existing value is set

    I'm creating a little admin section that is a text box and a date picker. Here is the field for the date picker: <dl class="ctrlUnit"> <dt><label for="ctrl_effectiveDate">Effective Date:</label><dt> <dd> <input type="date" name="effectiveDate"...
  4. Deek

    Hiding Attachment Buttons

    I'm working on a plugin that will allow users to upload files to a ticket. I've been able to hook up the backend and am able to get files attached. The only problem I have is that the editor that submitters are using doesn't allow for inline referencing of attached image when submitting. In...
  5. Deek

    Unset Permission in Template

    So I set the permission in 'User Permission' section for the user I'm testing in the admin section and here are the outputs: XenForo_Visitor::getInstance()->hasPermission('developer', 'canDownload') Not Set (No) => true Allow => true Never => false Why does Not Set return true? EDIT: Tried...
  6. Deek

    Unset Permission in Template

    When I change a permission from Never to No Set and dump out XenForo_Visitor::getInstance()->getPermissions(); ['developer']['canDownload'] will still show as True. Do non-node permission only have 'allow' and 'never' states but no way to check unset?
  7. Deek

    Unset Permission in Template

    I've created a permission ['developers']['canDownload'] and I'd like to check the permission in templates. I check for the permission by using <xen:if is="{$visitor.permissions.developer.canDownload} == 'allow'"> This will work if the permission is set to allow or never but the check does not...
  8. Deek

    Setting Permission from Addon

    I figured it out. I was setting the permission using 1 or true when it needed to be 'allow'. Silly mistake on my end. XenForo_Model_Permission->updateGlobalPermissionsForUserCollection(array('developer' => array('canDownload' = 'allow')), 0, $userId);
  9. Deek

    Setting Permission from Addon

    I looked in the code for updateContentPermissionsForUserCollection and at one point it calls both In XenForo_Model_Permission updateUserPermissionCombination($userId, false) rebuildPermissionCacheForUserId($userId) But when I run the same function again the permission isn't set.
  10. Deek

    Setting Permission from Addon

    I created a new permission in group 'developer' with the permission 'canDownload' in the admin panel. I'm able to check the permission easily in my addon. I'm trying to enable this permission in my addon using...
  11. Deek

    Force Style for Specific Route Prefix

    That is exactly what I needed. Thanks!
  12. Deek

    Force Style for Specific Route Prefix

    I'm working on setting up a developer's area on our forums. I'd like for anything that matches the route prefix I created to use a specific theme that is different from the site's default theme. I don't want to allow users to have any choice in select thing style. Any suggestions on how to...
  13. Deek

    XF 1.3 External License File

    I'd like to put the core XenForo release in my own version control to make deploying updates easier. I know that each download is tied to a license of some sort. Is it possible to distill the license information to a file outside of the core code? Ideally I'd be able to use the same repo to push...
  14. Deek

    WordPress 3.x (Users Only) to XenForo

    Have you tried the patch I mentioned above? I haven't had a chance to merge it back in with the rest. Try replace <root>/library/TheCollectiveMind/Authentication/WordPress.php with this: https://gist.github.com/deekthesqueak/6084055
  15. Deek

    WordPress 3.x (Users Only) to XenForo

    I don't have anything setup for donations right now but I will let you know if I ever do set it up. Just let me know if you have anymore issues. I just want as many people as possible to find the plugin useful.
Top Bottom