Recent content by Jeremy P

  1. Jeremy P

    XF 2.2 What is the title for "OR" phrase for translation?

    It would be: or_separator.
  2. Jeremy P

    XF 2.2 XF Conditional for basic mobile/desktop detection?

    os can sometimes be an empty string (''). osVersion can sometimes be null.
  3. Jeremy P

    XF 2.2 Additional info in member tooltip

    <xf:if is="$user.isMemberOf([3, 100, 150])">
  4. Jeremy P

    XF 2.2 JSON_ARRAY column and allowedValues

    You could use a verifier method. Something like (untested)... protected function verifyDays(array $values, string $key, int $type, array $columnOptions): bool { if (!empty(array_diff($values, $columnOptions['allowedValues']) { $this->error(\XF::phrase('some_phrase'), $key)...
  5. Jeremy P

    Fixed Broken oEmbed medium after ugrade to 2.2.10

    I think this issue should be fairly rare (it implies IPv6 DNS resolution is failing), but you can replace line 290 of src/XF/Http/Reader.php to sort it: $ipv6s = @dns_get_record($parts['host'], DNS_AAAA) ?: [];
  6. Jeremy P

    Fixed Catastrophically poor performance when viewing "IP" dialog & in approval queue

    @Xon Can you confirm whether adding the user_id clause results in MySQL picking the correct index? SELECT ip FROM xf_ip WHERE content_type = 'user' AND content_id = 'xxx' AND action = 'register' AND user_id = 'xxx' ORDER BY log_date DESC LIMIT 1
  7. Jeremy P

    SQL query help. Number of users using a style?

    SELECT style_id, COUNT(*) AS users FROM xf_user GROUP BY style_id
  8. Jeremy P

    XF 2.1 additional_files with images

    It's an operating system feature. On *nix-based operating systems, something like ln -s src/addon/Vendor/AddOn/_files/foo/bar/xyz.png foo/bar/xyz.png. I'm not familiar with what support is like on Windows these days. Close, it would put it at foo/bar/xyz.png. If you want it in data/, you'd...
  9. Jeremy P

    XF 2.1 _postSave on same row resulting in forceSet error

    Ah yeah, overlooked that line. I would strongly caution against coupling file input to entities in this way.
  10. Jeremy P

    XF 2.1 _postSave on same row resulting in forceSet error

    You could probably do... $this->fastUpdate('path_to_file', $filename); Though for derived data you might want to just make this a getter instead of an actual column: https://xenforo.com/docs/dev/entities-finders-repositories/#getters
  11. Jeremy P

    XF 2.1 additional_files with images

    A bit cumbersome out of the box, but I tend to use symbolic links to the _files directory. You would essentially treat _files as the root directory. In your build.json: { // ... "additional_files": [ "images/cool.png" ], // ... }...
  12. Jeremy P

    Not a bug Haunted Xenforo Instalation

    Yeah, this is almost certainly related to this add-on: https://xenforo.com/community/resources/latest-post-live.6349/
  13. Jeremy P

    XF 2.2 Error installing plugin

    Either remove the Setup.php file from the add-on directory if it does not do anything, or double check its namespace and class name.
  14. Jeremy P

    XF 2.2 Changing default user list sort order in the ACP

    I'm only speaking for myself, but I do not actively monitor threads here. If I reply at all, it is usually because 1) I happened to come across the thread, 2) I am not already busy with something else, and 3) I already know the answer. In this specific case, I came across this thread by chance...
  15. Jeremy P

    XF 2.2 Changing default user list sort order in the ACP

    The forums are for community-based support only. Answers are given voluntarily and not guaranteed. Anyway, the default order is not configurable so it would require custom development.
Top