• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • As we have now upgraded the main XenForo community, this forum is now being retired. It will remain open in a mostly read only state. Any further feedback, suggestions or bug reports should be posted on the main forum. We will still process the existing bug reports from this forum.

    When we approach a stable release, this forum will become inaccessible. If there is any content you wish to save, please do so before then.

Search results

  1. silence

    Detect When Add-On is being Uninstalled

    So I'm running into an issue when I'm setting one of the default entities `defaultWith` relation to a custom table I've made. However when uninstalling it complains that the table is missing halfway through. Is there a way to check if the current process is an uninstall one or something related...
  2. silence

    As designed LITERALLY UNUSABLE

    Yes but have you thought about the effects that this could have on the emotional state of those who are afraid to turn left and thus must take only rights?
  3. silence

    As designed LITERALLY UNUSABLE

    Maybe something like that
  4. silence

    As designed LITERALLY UNUSABLE

    It's not centered :(
  5. silence

    Distracting hover icons in Admin Control Panel

    You could always use local CSS styling and apply it to your browser so they wouldn't show up :)
  6. silence

    Test

  7. silence

    Initialize Relations as not null

    Right now I can initialize it through a template helper which just checks the entity for that relation and returns whichever.
  8. silence

    Initialize Relations as not null

    If we could define that in the relation then that would be fantastic :)
  9. silence

    Initialize Relations as not null

    At the moment you can initialize an empty entity and populate it fine so it would be nice if it did the same with relations.
  10. silence

    Initialize Relations as not null

    I'm asking if the relation is null that it doesn't return just null but rather return just no match found. At least then I can access some aspects of the entity, especially since I'm setting defaultWith to that specific entity.
  11. silence

    Initialize Relations as not null

    So I am using a adding a relation onto User and I want to use the permission checking within that entity, but since there isn't currently a found result in the database it just returns null. Is there a way to not have it as null so I can still do permission checking since otherwise I'll have to...
  12. silence

    Color Validator Class

    Since you have the XF\Util\Color class, could we get a validator class implemented using the methods? It would be awesome to be able to verify color input right out of the box :) You know some monstrosity like this: https://regex101.com/r/A2IjNO/4 Thanks!
  13. silence

    Not a bug Template callbacks and content checks

    So if I do something like this: <xf:macro name="brogans_hat_library" arg-type="!" arg-id="!" arg-content="!"> <xf:if contentcheck="true"> <ul class="hat-list"> <xf:contentcheck> <li class="hat"> {{ hat($type, $id) }}...
  14. silence

    Data Registry Additions

    Any thoughts?
  15. silence

    XenForo 2.0.0 Developer Preview 7 Released

    At the end of the day nobody knows what the current focus is on and how big or how long it will take to implement. They could annouce every idea they have only to scrap it a week later and it would be frustrating. News on things that have been chosen to be worthy of implementation is the best...
  16. silence

    XenForo 2.0.0 Developer Preview 7 Released

    You don't seem to mind being impatient lol
  17. silence

    XenForo 2.0.0 Developer Preview 7 Released

    Honestly I'm hoping to see it pushed back even further for more development on the backend so it makes add-on creation more powerful and feature-rich. Everyone remembers a bad product launch ;)
  18. silence

    Data Registry Additions

    @Chris D In the class App (XF2), you have a list of preloaded data at the top: protected $preLoadShared = [ 'autoJobRun', 'bbCodeMedia', 'classExtensions', 'codeEventListeners', 'connectedAccountCount', 'contentTypes', 'displayStyles'...
  19. silence

    Data Registry Additions

    Could we have the ability to add data we need from the initial query, so multiple new ones will not have to occur? This was an issue in XF1 and was incredibly annoying since you could have additional queries happen outside the first grab which don't have to happen. Also could data fetched be...
  20. silence

    Is there a canViewThread function in XF2

    In XF1 you would code the Controller or Model to do permission checking, but now permissions are checked within the Entity class (check the files at src/XF/Entity/Thread.php). The Thread entity has that method `canView()`. To get a thread entity check out the Thread public controller...