Recent content by Ralle

  1. Ralle

    Confirmed Typo in xf:style-archive-export command

    php /var/www/html/cmd.php xf:style-archive-export -h Usage: xf:style-archive-export [options] [--] <style-id> Arguments: style-id Style ID Options: -d, --destination=DESTINATION Destination to store the exported archive. Default: current working directory. -a...
  2. Ralle

    Automatically copy contents of _files to styles/... or js/... for current development addon

    Thank you for pitching in Jeremy :). It's good to see you here.
  3. Ralle

    Automatically copy contents of _files to styles/... or js/... for current development addon

    Thanks! Yeah, that could work, but the problem is I would want check those symlinks into git. And my ideal is to only commit my src/addons/MyAddon to git, not all of XenForo. I am in the progress of making a .gitignore that ignores all of XenForo except my stuff. Here is a snippet. It's a huge...
  4. Ralle

    Automatically copy contents of _files to styles/... or js/... for current development addon

    It feels bad to me that in order to use the _files directory for add-on development, I will need to manually copy its contents to my styles/whatever or js/whatever during development. I feel like it should work just like template development does, which is to check the filesystem for template...
  5. Ralle

    Almost ready!

    Almost ready!
  6. Ralle

    You rock.

    You rock.
  7. Ralle

    Various disable function_warnings, why?

    I agree. On shared hosting you definitely don’t want these enabled. But you might not have access to ffmpeg on there either regardless. Shell functions can bypass PHP’s open_basedir and IF a hacker somehow finds a bug in the impeccable and really well written XF source code, they can do more...
  8. Ralle

    As designed H1, H2, H3 errors

    Sounds like he just wants the [h1] to compile to a <h2 class=“h1-style”>
  9. Ralle

    Not a bug Bug in SqlConstraint.php - Only takes first value from possible values.

    Hey Jeremy. Thanks for the reply. From what I understand, this design might be made to allow for multiple parameters instead of an array of options, like so: $query->withSql(new SqlConstraint( 'thread.discussion_state = %s AND thread.discussion_type = %s', [$discussionState...
  10. Ralle

    Not a bug Bug in SqlConstraint.php - Only takes first value from possible values.

    I hope I am not wasting anyone's time by reporting a bug in 2.1.7. It's niche enough that I expect it still exists in the latest version. I was passing an array of values to a SqlConstraint and the result was unexpected. Here's my example: $query->withSql(new SqlConstraint(...
  11. Ralle

    Fixed XF 2.1.7 - imPecl - Imagick resizing problem

    Update. I am now on PHP 7.2 and XF 2.1.7 and getting the same wrong response. I am on this Dockerfile: FROM php:7.2-fpm-buster RUN true \ && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y \ # For the imagick extension imagemagick \ libmagickwand-dev...
  12. Ralle

    Fixed XF 2.1.7 - imPecl - Imagick resizing problem

    I have a problem where the Imagick drivers fails to downscale an image. I have a feeling it has something to do with the foreach loop, but I have no idea why. The reason I made the foreach example is because XenForo does the same thing. After calling thumbnailimage the image returns false on...
  13. Ralle

    XF 2.0 Caching finder results

    I wrote a neat little function that allows you to fetch from a finder, but only if it is not cached. class Util { public static function cachedFinderFetch(\XF\Mvc\Entity\Finder $finder, $cacheKey, $lifeTime = 0) { $app = \XF::app(); $em = $app->em(); $cache =...
  14. Ralle

    XenForo Redirects for vBulletin

    I had the same experience. It does not work when your forum used to be in a sub folder. It does not strip the /forum/ out. It tries to match the link showthread.php but not /forum/showthread.php. I have rewritten this add-on completely for my use. I'd share it but it's quite tailored to my...
  15. Ralle

    XF 1.5 Xen Coding For Thread Links

    Oh wait, I ddin't mean \XF\Entity\Thread. This is clearly XF 1 and not 2. I've had my mind soaked in XF 2 since 2017, heh. This is what works: <a href="{xen:link 'threads', $thread}">Link to thread</a> And the $thread has to be an array containing these values (but can contain more): $thread...
Top