Recent content by Dannymh

  1. Dannymh

    XF 2.2 InvalidArgumentException: The error value must be a string or an object which can be cast to a string

    Appears to be a permission issue only happens when a thread is soft deleted
  2. Dannymh

    XF 2.2 InvalidArgumentException: The error value must be a string or an object which can be cast to a string

    I have some things that operate off of custom fields. I changed a custom thread field from numeric and made as whole number to unchecking that box and started getting this error. I can't seem to find where or what might be causing it. I changed the thread field back by rechecking the box and the...
  3. Dannymh

    XF 2.2 Posting via Postman to api/threads brings back list of threads and not add a thread

    Never mind this was SSL set up. It was redirecting through NGINX as GET. Quick change on postman settings and nginx conf fixed it
  4. Dannymh

    XF 2.2 Posting via Postman to api/threads brings back list of threads and not add a thread

    I am using postman to work with the API. In doing so I am trying to create a new thread. When I POST to the thread endpoint it returns a list of threads rather than adding a new thread. - API Key and scope # thread:read # thread:write Request type: http/ POST Endpoint: api/threads...
  5. Dannymh

    XF 2.2 Custom thread field not updating -> help

    Found it, I forgot I had another entity in a related addon overwriting that field, I just needed to wrap that in some checks and that fixed it
  6. Dannymh

    XF 2.2 Custom thread field not updating -> help

    I will give it a go, however all the other fields are updating, its only this one that doesn't want to update using the method above
  7. Dannymh

    XF 2.2 Custom thread field not updating -> help

    I added a new field to see if that would work, and this updates in the same process correctly if I have the following line directly under it $theThread->custom_fields->set('otbETS', time(), 'admin', true); THe field has the exact same settings
  8. Dannymh

    XF 2.2 Custom thread field not updating -> help

    Hi all, I have a series of custom fields that get updated during a specific process All fields but one continue to get updated and I can not figure out why. The code I have is //Update thread details and close thread $theThread->custom_fields->set('otbOrderState', 'bin', 'admin'...
  9. Dannymh

    XF 2.2 rerouteController not reReouting

    Hi, I have the following code in my controller class (extends abstractContrller as this is a custom controller) if($params->slug) { return $this->rerouteController(__CLASS__, 'actionView', $params); } Then I have the public function inside that class...
  10. Dannymh

    XF 2.2 Run process for specific users on any page but one?

    Hi All, I have an addon I am writing that elevates users based on conditions to a specific secondary user group. Once they perform a certain action I remove that permission or group from them. Basically if they visit a certain page and match criteria X they get a new user group. That page is a...
  11. Dannymh

    XF 2.2 Set a permission for a user from code on the fly

    I am building a system for a very specific use case where users attach to a parent account, kind of like employees of a business. All posts have to be on behalf of the business account, and not the individuals, though some content is drawn from the profile of the employee, like name, phone...
  12. Dannymh

    XF 2.2 Child Nodes in grid layout?

    Hi, I currently have one node setup which has children nodes. When I go into that node, they are listed in a stack rather than in the grid layout that I have elsewhere. I was wondering if there was any easy way for me to change this to make them appear in a grid layout the same as on the...
  13. Dannymh

    XF 2.2 Shared discussion between two xenforo sites?

    Also what works and doesn't work. Does not Work: -Cross site reactions (because of the fact the user id doesn't exist on the other sites, we can't put in an "anonymous" like and users can't like a post more than once Quoting works but does not alert the user to being quoted. I could send an...
  14. Dannymh

    XF 2.2 Shared discussion between two xenforo sites?

    Yeah we have been running it for a while across 3 websites. Here is an example of a recent one (We run them weekly for about 6 months of the year) https://silvertails.net/threads/round-16-2024-shambolic-bi-directional-communication.63822/ Theres a bit of config weekly to add the thread ID's...
  15. Dannymh

    As designed Breadcrumbs don't return to prior position

    The breadcrumbs at the top of a post don't return you to the same context you came from. If you are in a node with multiple pages and scroll through to say page three, and then click into a post on page three and want to return to you prior position the breadcrumb for the "node" or forum takes...
Back
Top Bottom