Recent content by Ralle

  1. Ralle

    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...
  2. Ralle

    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...
  3. 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 =...
  4. 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...
  5. 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...
  6. Ralle

    XF 1.5 Xen Coding For Thread Links

    It looks to me like your $thread is not an instance of XF\Entity\Thread. Your solution is not necessary if you have the proper thread object.
  7. Ralle

    XF 2.1 Welcome to XenForo 2.1 / Assorted improvements

    It is very strong. I love the code you guys write. I am learning a lot and really enjoy the flexibility of the add-on system. It is unmatched.
  8. Ralle

    XF 2.1 Welcome to XenForo 2.1 / Assorted improvements

    Oh no. I have been rewriting my site since 2017 for XenForo 2 :P. I hope XF 3 is far off :P
  9. Ralle

    XenForo Redirects for vBulletin

    In the file XF301VB/Pub/Controller/Redirect there is the method: public function actionAttachment(ParameterBag $params) { if ($params->filedataid) { return $this->redirectContent($params, 'attachment_filedata', 'XF:Attachment', 'attachments'...
  10. Ralle

    Not a bug XenForo Redirection Scripts for vBulletin

    In the file XF301VB/Pub/Controller/Redirect there is the method: public function actionAttachment(ParameterBag $params) { if ($params->filedataid) { return $this->redirectContent($params, 'attachment_filedata', 'XF:Attachment', 'attachments'...
  11. Ralle

    Fork Xenforo?

    You can basically fork it with add-ons though. You can replace functionality of almost every single method in every single class. You could also go another way and make an installer that modifies the existing XenForo files to what you want them to be, but it would only work if the customer has...
  12. Ralle

    MG 1.1 Show only categories on Media home

    When I navigate to the Media section on my site, it shows ALL recent media. This is a dumpster fire of random stuff. I like the idea of people having personal albums with pictures of themselves and their stuff, but I would like the Media home page to show only stuff from one or more categories...
  13. Ralle

    XF 2.1 Custom obfuscated link for controller

    Okay, I have found a solution that seems less hacky compared to what I showed in the OP. For anyone trying to do the same, here is what I did: public function actionIndex(\XF\Mvc\ParameterBag $params) { $paste = $this->assertViewablePaste($params->paste_id); $requestUri...
  14. Ralle

    XF 2.1 Custom obfuscated link for controller

    I would have hoped that someone like @digitalpoint or @Brogan would response eventually :). I still haven't found a prettier solution to this.
Top