Search results

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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 :)
  6. 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...
  7. 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..
  8. 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...
  9. 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.
  10. 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...
  11. 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...
  12. 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...
  13. 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.
  14. 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...
  15. I

    XF 2.1 XenForo, Laravel, and PHPUnit: XenForo Dev Environment, Factories, and Cleanup?

    Glad to hear you are working on this. I'm mostly in need of unit-testing and factories to ensure my functionality works. However, since you are still working on it would my best bet be to just mock the responses I need? The worst part I think is the cleanup. Even if it's MySQL and not SQLite...
  16. I

    XF 2.1 XenForo, Laravel, and PHPUnit: XenForo Dev Environment, Factories, and Cleanup?

    I've adopted a TDD workflow the past few months and obviously since Laravel comes with PHPUnit and a whole testing suite working out the box, this is pretty neat. But I need to work on an app that interacts with XenForo in a variety of different ways, most of which will be accomplished by...
  17. I

    XF 2.1 Correct way to grab all properties of an XF Entity?

    Wow! Can't believe it was that simple. Guess I definitely wasn't looking hard enough! Thanks a lot for all the help. :)
  18. I

    XF 2.1 Correct way to grab all properties of an XF Entity?

    So I'm pretty new to XF, so I'm not sure if this is a basic question. But basically, I'm writing some third-party software that is extending some of the classes as such from XF so that I can link forum accounts with my software. At the moment, I'm very much in WIP phase but I've run into a bit...
  19. I

    XF 2.1 Best way to add/remove usergroups dynamically?

    Thanks for this. That appears to work. If it isn't too much to ask, can I ask if you will ever decide to support JSON? It seems to be the primary standard nowadays and to be honest, I completely forgot x-www-form-urlencoded even existed, since I've never really used it. Is there any specific...
  20. I

    XF 2.1 Best way to add/remove usergroups dynamically?

    Add and Remove users to existing usergroups. :) Ideally, say I wanted to add usergroup(s) to a user, I'd like to be able to post/put something like secondary_group_ids with an array of group ids like so; POST/PUT /forum/api/users/1/ { "secondary_group_ids": [1, 2, 3] } And that would then...
Top