• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Recent content by DragonByte Tech

  1. DragonByte Tech

    Template Modification entity "canEdit" not checked during edit

    In actionDelete there's a check: if (!$modification->canEdit()) { return $this->error(\XF::phrase('item_cannot_be_deleted_associated_with_addon_explain')); } However, I'm not seeing this check during actionSave or modificationSaveProcess as I would expect. I...
  2. DragonByte Tech

    DragonByte Tech Special Offers

    Do you mean Global Branding Free? In either case, it applies to absolutely every product we sell @ our site :) Fillip
  3. DragonByte Tech

    DragonByte Tech Special Offers

    Hey all, We have a Black Friday special for 33% off all products, valid until 23:59 GMT / UK Time, November 30 2017! This offer includes our entire range of XenForo products :) To take advantage of this special offer, enter BF2017 in the Coupon Code box during checkout @ DragonByte-Tech.com...
  4. DragonByte Tech

    Infinite scrolling

    Anecdotal evidence, but I do work for a medium to large site that used to have infinite scroll sprinkled literally everywhere. It made working with the site a complete nightmare, since I couldn't access any footer links, and performance-wise it was also terrible*. Users also hated it, and I was...
  5. DragonByte Tech

    XF 2.0 First Attempt At Add On -- Questions From n00b

    I believe so, yeah :) Fillip
  6. DragonByte Tech

    Fixed Superfluous </a> in admin:template_modification_list

    If you open the template in the AdminCP editor, the syntax highlighting makes the runaway </a> pretty obvious, here's the specific block: <xf:action href="{{ link('template-modifications/log', $modification) }}" overlay="true">...
  7. DragonByte Tech

    XF 2.0 First Attempt At Add On -- Questions From n00b

    You can insert the data as clear text, or as hex. This is how I do an insert with hex in Setup.php: $this->query(" INSERT IGNORE INTO `xf_purchasable` (`purchasable_type_id`, `purchasable_class`, `addon_id`) VALUES...
  8. DragonByte Tech

    XF 2.0 First Attempt At Add On -- Questions From n00b

    I've not attempted to insert a new payment provider, but in the Setup.php file you can use $this->query() with an INSERT IGNORE statement (so that it doesn't error if the setup was halted and restarted). Using $this->query() in Setup.php is better than going directly to the database adapter...
  9. DragonByte Tech

    XF 2.0 Question regarding the cost_amount column in the xf_purchase_request table

    To start with, I want to say I know why decimal(10,2) was used, no-one likes to deal with floating point rounding errors. My question is, would this not adversely affect cryptocurrency payments? I don't know much about cryptocurrency, but I do know that fractions in at least Bitcoin needs more...
  10. DragonByte Tech

    Clarify "Section context" in the Routes with a description phrase

    So I feel mildly stupid right now, but I had no idea that the "Section context" of a route should be set to the "Admin navigation ID" from the Admin Navigation interface. If you didn't stumble across this information via trial and error, and you've not studied the code, it's virtually impossible...
  11. DragonByte Tech

    Awaiting feedback Extending/hooking sessions

    To add my own use case to the above list: In XF1, our Security product allowed users to (effectively) kill other sessions belonging to their account. For instance, if you logged in at your friend's computer, and the forum enforced the "stay logged in" box or you ticked it out of reflex, and you...
  12. DragonByte Tech

    XF 2.0 Difference between Repository, Service and stand-alone class?

    Makes sense, thank you for your time :) Fillip
  13. DragonByte Tech

    XF 2.0 Difference between Repository, Service and stand-alone class?

    I think I asked something similar back on the XF2 demo board, but I can't seem to find the thread right now. TL;DR: What is the distinct use-case difference between these three methods of creating application logic? Details: I've had a look at the Abstract classes for Repository and Service...
  14. DragonByte Tech

    Not a bug Bitfields not working in <xf:if>

    No bother, it's largely legacy code anyway since it's based on code that was running on vB3/vB4, so at some point in the future it'd be good to go through and replace it with something better :) For now, the getter works perfectly fine :) Fillip
  15. DragonByte Tech

    Fixed Tokeninputrow - Please enter 2 or more characters

    Confirmed on Chrome 62 on Win10 using the conversation invite method. Fillip