Recent content by Andy R

  1. A

    XF 2.2 What's New API Endpoint

    Because I want an activity stream with one API call, not multiple API calls with all the content properly ordered.
  2. A

    XF 2.2 What's New API Endpoint

    No, because multiple content types can reside in the latest activity, not just threads.
  3. A

    XF 2.2 What's New API Endpoint

    I just want to confirm that there are no endpoints for Whats' New in the API? Meaning, there is no API call one can make to say, get latest activity like you can in the What's New section? Thanks!
  4. A

    XF 2.2 JSON Column Support

    I mean, can we do this using the native Db schema classes: CREATE TABLE products ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255), details JSON ); Or must it be a raw query?
  5. A

    XF 2.2 JSON Column Support

    Are we able to create json columns in addons via the setup.php file?
  6. A

    XF 2.2 Detect what page from template

    Is there any conditional in a template that can be used to detect if the user is on the contact page or registration page?
  7. A

    XF 2.3 Xenforo Specific AI Rules

    Many developers are using AI tools to do development, especially those integrated into their IDEs. Cursor, Cline, Windsurf, etc., to name a few agentic solution. As the models have gotten smarter, they getting much better at writing code, however, they are not built upon magic. The agents are...
  8. A

    XF 2.2 Programmatically Create Media Gallery Report

    I think the issue here is because it is firing in the admin area (running cron job there) that it doesn't pick up the media type properly when creating the report... Still at a loss..
  9. A

    XF 2.2 Programmatically Create Media Gallery Report

    We are developing an internal addon that deep dives into uploaded images in the Media Gallery using various tools to see if they need to be moderated, for example if they are inappropriate. This is running in a cron job. For the life of me, I can't figure out how to generate a proper report...
  10. A

    XF 2.2 Create a route directly to a file extention

    How would I create a route to myforum.com/robots.txt, where robots.txt file does not exist, so I pick it up and show it via a controller? I currently have it working just going to myforum.com/robots but can't figure out how to add the .txt extension?
  11. A

    XF 2.2 Any way to see raw query using finder?

    Is there any way to see what the raw query Finder is using? Example $finder->toSql();
  12. A

    XF 2.2 Add Jobs To Rebuild Caches For Custom Addon

    How do I add a rebuild option for my custom addon in the tools/rebuild area?
  13. A

    XF 2.2 Add an index to a new column?

    GPT gave me the answer: $table->addKey(['user_id', 'some_id'], 'index_user_whatever');
  14. A

    XF 2.2 Add an index to a new column?

    How do I tell the schemaManager to create an index along with a new column? Example? $this->schemaManager()->createTable('some_table', function(Create $table) { $table->addColumn('some_id', 'int'); });
  15. A

    XF 2.2 Explode in isMemberOf() in template?

    I finally figured this out.. In the end, here is what worked: $xf.visitor.isMemberOf($xf.options.comma_delimited_groups_custom_mod_option|split(','))
Back
Top Bottom