Recent content by Gobb

  1. Gobb

    XF 2.2 How does the smilie cache work when searching?

    Appreciate the response, Lukas. I'll review the reaction code tomorrow as it's fairly late here currently. I do have what I want fully functional including the JS already, just with hardcoded font awesome Icons, so no issues if I do need to re-write things to work with the different method. I'm...
  2. Gobb

    XF 2.2 How does the smilie cache work when searching?

    Hi all. I'm looking to create an addon where users can select a small icon image to put before their username. I am intending the selection form to have functionality like the smilie search box in the editor. That's fine and well, but I'm really struggling to understand one part of how this...
  3. Gobb

    XF 2.2 Understanding handlers

    All good, It seems to be working now after your clarification and my re-typing of it. I think I was just using the incorrect name for the entity. I have an Entity called KenoLog which my intent is to fetch the logs and render the appropriate template depending on the content_type and action...
  4. Gobb

    XF 2.2 Understanding handlers

    Hi, Just hoping to get some clarification as to using handlers. The following is seen in the alert abstract handler: public function getTemplateName($action) { return 'public:alert_' . $this->contentType . '_' . $action; } public function getTemplateData($action, UserAlert...
  5. Gobb

    XF 2.2 Controller Post Dispatch to add an additional params on thread load

    Can't believe I didn't even think of that lol, cheers.
  6. Gobb

    XF 2.2 Controller Post Dispatch to add an additional params on thread load

    Hi, Just wanting to know if there are any real negatives to hooking into the controller post dispatch functionality to add additional params which are obtained via SessionActivity repository/finder/entity? I understand ideally I would be extending the Index action of the Thread parent. However...
  7. Gobb

    XF 2.2 Creating addon updates XF1 to XF2

    Ok, thank you for clarifying. I believe it's my fault originally it wasn't pointing to the legacy ID so I've tried installing it as a standalone new addon as I didn't exactly understand how to correctly update the addon. I might just have to try again with a clean install. Thanks again :) Edit...
  8. Gobb

    XF 2.2 Creating addon updates XF1 to XF2

    Thanks for your in-depth response Chris, I really appreciate it. I believe I've understood everything and it's pretty much answered all of my questions. Just to clarify the bolded, in my test environment as I've already got the existing addon showing as legacy after upgrading to XF2, I should...
  9. Gobb

    XF 2.2 Creating addon updates XF1 to XF2

    Hey guys, Just a query regarding how addon version checking is handled in the setup.php file for XenForo 2? I'm in the process of re-writing addons for the eventual move from 1.5 -> 2.2, but can't find much info as to how to actually update XF2 addons. What I mean is, in XF1, we could just add...
  10. Gobb

    XF 2.2 Get Node Permissions

    I haven't tried myself, but I'd review the following functions/files: XF\Admin\Controller\Node public function actionPermissions(ParameterBag $params) XF\ControllerPlugin\NodePermission XF\ControllerPlugin\AbstractPermission public function actionList(ParameterBag $params) Those all...
  11. Gobb

    XF 1.5 Sending xenForo Alert via PHP

    For 1.5, you must create the alert handler. I had something like this in my old addon. YourAddonDirectory/AlertHandler/AlertHandler.php You then need to add the content types to the database. Rebuild caches. You then need to make the relevant template for the alert...
  12. Gobb

    XF 2.2 Custom inline moderation help

    Thanks for your response. I assumed that was the case. Not really sure if this is right, but I couldn't get the database to write using the applyToEntity function, however it does work with the apply function and looping through the entity. I believe the issue is the entity that is defined in...
  13. Gobb

    XF 2.2 Custom inline moderation help

    Hey guy, So I've got as far as the inline moderation popping up with the content I'm selecting and I have been able to add my custom actions which then open up the overlay form. However, I am really struggling complete the updates once the overlay form is posted. I've looked over the XenForo...
  14. Gobb

    XF 2.2 How to get rich username working in phrases? (with tooltip)

    No worries. Is there a reason that you're trying to render the phrase in the way that you are? After reviewing the XenForo approval stuff, everything is in the templates and as you said in your first response, the render function in the template usually returns a template depending on the...
  15. Gobb

    XF 2.2 How to get rich username working in phrases? (with tooltip)

    Ah, I've got you now. I'll try and have a look but I don't think I'll be of any help, so best of luck!
Top