Recent content by jkilbride

  1. jkilbride

    Fixed XF301VB: Add redirects for announcement.php URLs

    @Steffen The code above fails on requests like this: announcement.php?s=3197cb9546da32356b6eeecb6e642306&f=10, which I have seen in my logs. Borrowing from the code you have for external.php, I added this and it seems to work for all cases: case 'announcement.php': { $forum_id =...
  2. jkilbride

    XF 2.0 Versioning included javascript files

    1) I find it hard to believe that anyone who works for xenForo would say they are not obligated to provide documentation in any way. That's a fairly senseless statement for a software company to make. (and your attitude bugs me a bit, given #5 below...) 2) I don't consider myself thankful when...
  3. jkilbride

    XF 2.0 Versioning included javascript files

    I'm sorry, but I have a hard time understanding why it's the community's responsibility to document licensed code. This isn't open source. I paid a decent license fee, plus annual renewals, to purchase the right to use xenForo. (And I have to pay an additional fee if I want their copyright...
  4. jkilbride

    Duplicate XF301VB: Bad entry in $simpleMap

    The entry for usercp.php in the $simpleMap variable doesn't work. Here's the code from lines 45-47: 'usercp.php' => [ 'whats-new' ] I've fixed it by changing it to: 'usercp.php' => [ '_' => 'whats-new' ] Thanks!
  5. jkilbride

    XF 2.0 Versioning included javascript files

    Thanks again! Sure would be nice if this stuff was actually documented somewhere, instead of having to search the forums and dig through the code...
  6. jkilbride

    XF 2.0 Versioning included javascript files

    @S Thomas Great! I'll give that a try. Thanks! Is there an equivalent cs_url function?
  7. jkilbride

    XF 2.0 Versioning included javascript files

    I have an external javascript file I am including with a template modification of the helper_js_global template. I'm using something like this right below the <!--XF:JS--> comment: <xf:js src="/js/my/addon/my-file.min.js"></xf:js> Everything is working correctly, but I noticed that all the...
  8. jkilbride

    XF 2.0 Creating ads in Setup.php

    Can I just dump the xf_advertising table from my dev database and insert those records into production? Are there any other database entries I would need to copy from dev to production?
  9. jkilbride

    XF 2.0 Creating ads in Setup.php

    I am using an add-on to encapsulate all my customizations and tweaks, in order to make it easier to move from development to production. I use $this->createWidget() in Setup.php, but noticed there's no corresponding method for creating ads. What's the best way to handle setting up ads when...
  10. jkilbride

    XF 2.0 Less vs. CSS in templates

    @Chris D Sorry, I figured it out. I forgot that my editor has a plugin that automatically transpiles less to css whenever a file is saved. My bad. I guess since I have both versions, I may as well include the css in the template. One less thing for XF to do. (no pun intended...) :)
  11. jkilbride

    XF 2.0 Less vs. CSS in templates

    @Chris D Thanks for the quick reply. Actually, I'm editing the file in the filesystem as my_styles.less: src/addons/MyAddon/_output/templates/public/my_styles.less But looking in the AdminCP, there are two templates created -- my_styles.less and my_styles.css -- and both work with the...
  12. jkilbride

    XF 2.0 Less vs. CSS in templates

    When creating a less template in an add-on, I noticed that it's automatically transpiled to CSS. Does it make any difference which file I then include in my templates? <xf:css src="my_styles.less" /> vs. <xf:css src="my_styles.css" /> Both work, but is there any advantage to using the...
  13. jkilbride

    XF 2.0 Changing codeCachePath produces blank page

    @Chris D Thanks! Plenty to look at here. These examples should be enough to get me going.
  14. jkilbride

    XF 2.0 Changing codeCachePath produces blank page

    That's an interesting idea, but not what I was talking about. Sorry for not being more clear. I have my own backend API that I need to fetch some data from and then I want to store it in the local Redis cache. I already have Redis working, I just want to access it from my own code. Actually...
  15. jkilbride

    XF 2.0 Changing codeCachePath produces blank page

    @Chris D Ok, thanks. I'm not worried about having a single point of failure, because Amazon EFS is fault tolerant. I'm more worried about the speed of access to the files, especially in code_cache. NFS is orders of magnitude slower than a local drive. However, I just ran across cachefilesd...
Top Bottom