Search results

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

    Fixed Removing connected-account when I have no password

    I am working towards integrating @Steve Gibson's SQRL login system with XenForo and I just came across an interesting series of steps. I just tested it with a Google account and it's the same with all kinds of connected accounts, I believe. So I did the following: Click "Register" Click...
  7. Ralle

    XF 2.0 Using rich-text editor in inline-moderation

    I have a system where people submit content and in order for said content to be approved, a moderator approves/rejects it and posts a review at the same time. Similar to XF but it has more states and more options directed at this type of content. Now, I wanted to make an inline-moderation...
  8. Ralle

    Fixed Indexing malformed UTF-8

    This is going to be a very low priority bug report. The search system works great and this shouldn't scare anyone from using it. You get the following error: XFES\Elasticsearch\BulkRequestException: Elasticsearch indexing error: Elasticsearch bulk action error (first error: [resource-27292]...
  9. Ralle

    Fixed Warning: "continue" targeting switch is equivalent to "break".

    Running 2.0.10. I am getting this: Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/html/src/XF/Language.php on line 458 Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in...
  10. Ralle

    XF 1.5 400 new PMs and counting

    I am getting spammed by bots. I just disabled starting conversations by users that aren't a few days old but this sucks. And what also sucks is that these messages are by new people each time so I have to click their avatar, click Spam, click Clean Up. 400 times... Isn't there something out...
  11. Ralle

    The slowest query on my site

    I just looked in my slow_query_log and found this repeated in the 1000s. # Time: 2018-04-05T18:55:39.819781Z # User@Host: root[root] @ [] Id: 1028754 # Query_time: 3.948271 Lock_time: 0.000123 Rows_sent: 2000 Rows_examined: 565049 SET timestamp=1522954539; SELECT media.*...
  12. Ralle

    Lack of interest [XF1] UserTagging breaking my custom BB codes

    For historical reasons I have a [highlight=language] tag. I think @digitalpoint made it back in the day. Possibly for vBulletin back then. I recently received a bug report where a user was highlighting code for a language full of @ symbols which did not have the desired effect. Random old users...
  13. Ralle

    Links in Documentation are broken

    The two links with these titles on this page are broken: What's new for developers in XenForo 2 (part 1) What's new for developers in XenForo 2 (part 2)
  14. Ralle

    XF 2.0 Convert addon.xml to XenForo 2

    Say I install XenForo 2 from scratch and have an old add-on I want to convert to XF2. How would I go about converting the addon.xml file to files on disk in the most painless way? Isn't there a CLI command to take a XF1 add-on and convert all metadata to XF2?
  15. Ralle

    XF 1.5 Apache, Access-Control-Allow-Origin for attachments

    Hey guys, I have worked several hours trying to get the Access-Control-Allow-Origin header to show up for attachments. I am using friendly URLs. I have tried the following: RewriteCond %{REQUEST_URI} ^/index.php/attachments RewriteRule .* - [E=CORS:1] Header set...
  16. Ralle

    As designed Editing post to add @-mentions does not send out alerts

    Users of my site are complaining about alerts not working when adding @-mentions as an after-thought to a post. It has also been discussed here in the past: Here's but one thread about this topic on my site...
  17. Ralle

    XF 1.5 A page taking up 142 MB due to animated GIF attachments

    Hey guys, I have this page which if loaded in your browser takes up 142 MB of bandwidth. Is there any way to not download all attachments unless clicked?
  18. Ralle

    Design issue Wysiwyg editor and \t (tab) bug

    Hey guys. I just came across a bug in the WYSIWYG editor in XenForo. 1. Copy the text from the file "indentation bug.txt" into first the WYSIWYG editor. 2. Press preview. 3. It shows this: Which is not expected. Now, try this: 1. Copy the text from the file "indentation bug.txt" into first...
  19. Ralle

    MG 1.1 Make order out of chaos

    On my site (linked in the signature) it is simply chaos when entering the Media tab. Every random piece of uploaded media is shown on the frontpage. Is there a good known way to show only the good stuff somehow? I have no idea what that would entail, the most viewed stuff or stuff from a...
  20. Ralle

    Fixed Slow MySQL queries

    I am getting slow queries. Please take a look: # Query_time: 3.333284 Lock_time: 0.000156 Rows_sent: 2000 Rows_examined: 534714 EXPLAIN SELECT media.* , album.*, albumviewperm.*, category.*, user.*, user_profile.*...