Recent content by Dannymh

  1. Dannymh

    XF 2.2 Ads between threads in forum view

    I know this is an old thread but I just wanted to clean it up and show how to achieve this with a template modificatin. Create a template modification on "forum_view" Search: <xf:foreach loop="$threads" value="$thread">...
  2. Dannymh

    XF 2.3 Mutliple Options with multiple boxes

    Thanks mate, appreciate the reply and makes sense. I guess for me there are a bunch of settings that relate to the addon so was hoping to have them all in there to minimize the locations you have to go to in order to configure the addon. It makes it easier to do it this way however, so might...
  3. Dannymh

    XF 2.3 Mutliple Options with multiple boxes

    Hi All, I am setting up a new addon that takes over certain page nodes. I want to be able to allow users to select a node in a select box, and then next to it select multiple other items from a multiple select list to link to it. This should then save as an array in the options. The other...
  4. 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
  5. 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...
  6. 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
  7. 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...
  8. 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
  9. 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
  10. 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
  11. 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'...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
Back
Top Bottom