Recent content by improbable_airtime

  1. I

    XF 2.2 Want to do a simple SQL lookup and display result via Add-on?

    I'm trying to add a link to my staff bar, that has a badge with a counter on it. I've created an add-on and have modified the templates, but I'm unsure of where I can write the PHP/SQL code to retrieve the count I want to display in the badge. I know I can extend controllers, but I'm not sure...
  2. I

    Not planned Upgrade to Guzzle 7

    Might be some performance benefits since it implements directly with php-http. Also means you can shrink the dependency list since no need for an adapter anymore. (y) Also I know this isn't "supported" but when extending XF into custom applications (e.g Laravel) and requiring XF.php, since...
  3. I

    XF 2.1 How are we meant to integrate anything with XenForo?

    Hey @robdog , Thanks for the detailed reply. My current way of doing it has been to use something similar to this (https://github.com/swede2k/xf2bridge) but I wrote most of it myself, only found this one AFTER I'd already made my own. 🤦‍♂️ Also quickly to clarify my app and the forum will be...
  4. I

    XF 2.1 How are we meant to integrate anything with XenForo?

    I've been working on a project the past few months where I've wanted to integrate XenForo with an external app, a Laravel app to be specific. I'm not trying to do anything too complicated, just basically have it so that if a user is logged into the forum, then they can access the app. If they...
  5. I

    XF 2.1 Usergroup change via Job/Queue Laravel?

    Actually just discovered that it seems to be removing usergroups that is then blocking adding usergroups to the user again. Basically the way I was testing was; Catch Webhook Add usergroup Remove usergroup catch webhook (doesnt add forumgroup anymore for some duration of time) So I think...
  6. I

    XF 2.1 Usergroup change via Job/Queue Laravel?

    Hey Lukas, forum_id is just an alias I use in my laravel app for convenience sake since the context makes more sense. It's really using user_id :)
  7. I

    XF 2.1 Usergroup change via Job/Queue Laravel?

    In regards to $groups->toArray(), that's actually just an array of group ids. I just put them inside of a Laravel collection so that I can use their nifty helper functions and then at the end I called toArray() to make sure it was just an array and none of the other collection stuff. While...
  8. I

    XF 2.1 Usergroup change via Job/Queue Laravel?

    forum_id is the same thing as XF user_id, just an alias I use in my project. :) Also, function just returns 1, even when it doesn't work..
  9. I

    XF 2.1 Usergroup change via Job/Queue Laravel?

    That is the one I used and updated. https://gist.github.com/marbuser/c3e4d16609a579bb0808f333b691cd5e Really the only file that changed the most was this one. https://gist.github.com/marbuser/c3e4d16609a579bb0808f333b691cd5e#file-xenforo-php Like I said, for everything else works fine for me...
  10. I

    XF 2.1 Usergroup change via Job/Queue Laravel?

    I'm using a simplified and updated version of this that I did myself; https://github.com/UnderRatedBrilliance/XenforoBridge By "updated" I mean for the latest version of Laravel and XF. I didn't add any new features, so it's 99.9% same as that one.
  11. I

    XF 2.1 Usergroup change via Job/Queue Laravel?

    For my specific application, the bridge was the best option. The things I can't do with the API are restrictions on XF's end, not mine. I don't want to sound like a jerk, but if you aren't going to help please refrain from posting on here. Even IF XF fixed the restrictions I mentioned above...
  12. I

    XF 2.1 Usergroup change via Job/Queue Laravel?

    Because there are other parts of the forum I need to access in my application that AREN'T available in the API. Also at this point since I've already included XF.php etc... into my application, it seems a bit foolish to then rely on sending web requests to the forum to change just usergroups and...
  13. I

    XF 2.1 Usergroup change via Job/Queue Laravel?

    I'm in the process of building an app with Laravel that works in-hand with XenForo. The issue is that in my use-case, I have a webhook that communicates with my server and I create a Job and run it with a worker. When that webhook is processed, I want it to give the context user a certain...
  14. I

    XF 2.1 How to edit XF templates and Styles/CSS in IDE/Editor?

    Every time I try and use this and connec to it, it claims the webdav cant be connected to lol.
  15. I

    XF 2.1 How to edit XF templates and Styles/CSS in IDE/Editor?

    Back in XF 1, I remember there was a plugin you could install that allowed you to edit the XF templates and styles via WebDav. However, I've tried to get something similar working with XF 2 but have been unsuccessful. Can anyone provide any advice on how I could get this working so I can work...
Top