Recent content by Andy R

  1. 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...
  2. 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..
  3. 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...
  4. 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?
  5. 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();
  6. 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?
  7. 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');
  8. 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'); });
  9. 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(','))
  10. A

    XF 2.2 Explode in isMemberOf() in template?

    The $xf.options.comma_delimited_groups_custom_mod_option is just a comma delimited list.
  11. A

    XF 2.2 Explode in isMemberOf() in template?

    Is there any way to do something like: $xf.visitor.isMemberOf(explode(',', $xf.options.comma_delimited_groups_custom_mod_option)) In a template?
  12. A

    XF 2.2 Any way to bypass usernameValidation programmatically?

    Example: $user->email = $email; $user->username = $username; $user->save(); I want to bypass the option to check if the username has disallowed text, set in the options area. Any way to do this?
  13. A

    XF 2.2 How To Create User Group Options Settings

    This used to be easy to do in vBulletin 3.x, just set the type to say, "usergroup:9" when creating a custom setting, but is there a way in XenForo when creating a custom option for your addons that lets you select user groups, especially multiple groups?
  14. A

    XF 2.2 Get Config Values in Templates?

    How can I use values in the config file in a template?
Back
Top Bottom