Search results

  1. Ralle

    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(...
  2. 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...
  3. 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...
  4. 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 =...
  5. 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...
  6. 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...
  7. 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.
  8. 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.
  9. 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
  10. 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'...
  11. 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'...
  12. 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...
  13. 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...
  14. 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...
  15. 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.
  16. Ralle

    XF 2.1 Custom obfuscated link for controller

    I'm in the process of writing an add-on which will have non-discoverable links to entities. To stay compatible with the same add-on for XF1, the link looks something like this: index.php?pastebin/0123456789abcd23213112abcd123412/ The ID of an entity is a 32 character hash. I did the following in...
  17. Ralle

    Hey! Thanks for the like :)

    Hey! Thanks for the like :)
  18. Ralle

    I have been rewriting my 1.x site since December 2017. I hope to be done this year.

    I have been rewriting my 1.x site since December 2017. I hope to be done this year.
  19. Ralle

    XF 2.0 Where to start to add a fully custom logon option?

    In case anyone was wondering what our private conversations resulted in, this is the result: https://bitbucket.org/Ralleab/sqrl-xenforo/ Running on the SQRL forums. I plan to upload this as an add-on here when all SQRL features are integrated and pounded on by Steve's community.
Top