@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 =...
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...
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...
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!
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...
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?
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...
@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...) :)
@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...
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...
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...
@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...