Recent content by Tommi Gustafsson

  1. Tommi Gustafsson

    Not a bug [Solved] Thread prefixes appearing as random strings for a user when language is set to Finnish

    EDIT: I found the problem. Thread prefixes can be overriden in phrases. Hi! We are running XenForo 2.1.2, and users are seeing thread prefixes as random labels, when they have set the language to Finnish. See the screenshots below. Finnish (this has wrong thread prefixes): In English, it...
  2. Tommi Gustafsson

    XF 2.0 403 Forbidden when Testing Google Linked Account

    Hi! I have set up Google OAuth (Linked Account) for my XenForo installation. I try to test it, but when it returns from Google OAuth screen to connected_account.php, I get 403 Forbidden message. Facebook worked fine, so the problem is not with my server. How to resolve the problem? I have...
  3. Tommi Gustafsson

    Fixed External URL Resource Button shows text "Download"

    Also, if you try to change the type of the external URL resource, the external URL shows up empty.
  4. Tommi Gustafsson

    Fixed External URL Resource Button shows text "Download"

    Hi! I have XenForo Resource Manager 2.0.4 and it has a bug. The button to access an External URL resource shows the text "Download". It should be something else, like Visit Page, Go to External URL, or whatever you think best. I tried to look at the template code (xfrm_resource_wrapper_macros)...
  5. Tommi Gustafsson

    XF 2.0 No highlight when selecting text in forum posts

    Hi! I have XenForo 2.0.10. When I select text in the editing mode in forum posts, it shows no highlight. I can indeed select text, but I see no color marking the selected text. How can I fix the problem? I tried with Google Chrome and Microsoft Edge, and both have the same problem. Edit...
  6. Tommi Gustafsson

    XF 2.0 Entity Relation returns non-existing items

    Hi! I fetch some items through an entity relation and it returns items that are not in the database. I checked their primary keys and indeed they are not in the database. Is there some kind of a cache, which should be emptied? The entities which should be returned are from my custom database...
  7. Tommi Gustafsson

    XF 2.0 Can I limit entities fetched by a relation?

    I have a relation on my entity, and I would like to limit a number of related entities that are returned by it. Is there a way to achieve this in the relation definition in the entity structure? Thanks, Tommi
  8. Tommi Gustafsson

    XF 2.0 If I accidentally edited a wrong template, can I revert back to original and delete the new version?

    Hi! As the title says, if I edited a XenForo template by accident, is there a way to revert back to original? Does it cause any problems with regard to upgrades, if I just edit it back to original? For example, do new XenForo upgrades automatically overwrite my edits in the template? Best...
  9. Tommi Gustafsson

    XF 2.0 How to automatically copy addon JavaScript files to js folder on save?

    No, because I am in the middle of development process. I am using Visual Studio Code by the way.
  10. Tommi Gustafsson

    XF 2.0 How to automatically copy addon JavaScript files to js folder on save?

    Hi! I have some JavaScript files in my addon, which I have placed in _files/js/link/to/jsfile folder. But I need to reference the file, of course, through a template, wherefore I have copied it to js/link/to/jsfile folder under the Xenforo main directory. I would like to have it automated so...
  11. Tommi Gustafsson

    XF 2.0 MySQL statement prepare error

    I found the answer: I had to use ->rawQuery() instead of ->query() Best regards, Tommi
  12. Tommi Gustafsson

    XF 2.0 MySQL statement prepare error

    Hi! I am trying to execute the following command in my uninstall step: $this->db()->query('DROP EVENT update_and_delete_download_list_items;'); But I get [XF\Db\Exception] MySQL statement prepare error [0]: I was able to get some connection debug info as follows: client_info:"mysqlnd...
  13. Tommi Gustafsson

    XF 2.0 How to convert BB Code to plain text?

    Hello! Is there functionality to convert BB Code to plain text in Xenforo 2? I could only find BB Code to HTML converters. Best regards, Tommi
  14. Tommi Gustafsson

    XF 2.0 How to get Entities based on IDs in another table

    Hello! I have a table, let's say Table 1, where I have lists of ResourceItem IDs and some additional info associated with them. In my code, I want to fetch those ResourceItems, whose IDs are listed in Table 1 and return them with the extra data associated with them. In SQL, that is very simple...
Top Bottom