XF 2.2 Training AI on Xenforo's source code. Is it allowed to upload XF source code to a private Github repository?

MaximilianKohler

Well-known member
I want to make the Xenforo software available to AI so it can help me create addons and template modifications.

I found this related discussion: Is Xenforo open source?

Xenforo has a github page https://github.com/orgs/xenforo-ltd/repositories?type=all, but it doesn't look like any of the important code is there for an AI to learn from.

ChatGPT allows you to upload files for it to learn from, and the Xenforo software is only 15 MB, so it's fairly simple to upload the zip file each time.

Github's Copilot AI restricts you to using files that are on Github. Thus, I was wondering if it's allowed for us to upload the Xenforo code to a private Github repository?

I searched the license agreement https://xenforo.com/license-agreement/ and only found 1 result for "public" and 0 for "code". But I'm assuming that it's not allowed (as well as a bad idea, since your personal zip file contains a code that identifies you right?) to upload the code to a public repository.
 
Trying to have AI create full functioning addons with out knowing what to do is useless
Someone in another thread said it's already possible. At minimum the AI should be able to give you the code for template modifications no?

I might try Deepseek. Thanks for the tip.

EDIT:
Even after uploading the Xenforo .zip to ChatGPT it still couldn't figure out how to add a working "show results as threads" option to the main search menu.

Deepseek doesn't take .zip files and couldn't figure it out either.
 
Last edited:
I searched the license agreement https://xenforo.com/license-agreement/ and only found 1 result for "public" and 0 for "code". But I'm assuming that it's not allowed (as well as a bad idea, since your personal zip file contains a code that identifies you right?) to upload the code to a public repository.

You are responsible for your licenses files, including, but not limited to, handing them over to third party developers for custom development work, granting third parties access to your server, uploading them to a (public) server, etc.

If your files should become publicly available and used elsewhere, then your license would be at risk of being revoked.
 
ChatGPT and Grok already understand the XenForo 2.3 and 2.2 framework to build add ons. ChatGPT may make mistakes by giving you old XF 2.2 code for something you want written in 2.3, but if you notice it (through learning) and tell it to rewrite it optimized for 2.3, it'll give you its "whoopsie daisy, I forgot that you wanted it done that way" message and rewrite it.

(I'm not entirely sure if 2.2 is "old" code, as it works, but in 2.2 it'll give you db queries as opposed to something like XF:Finder)

ChatGPT can package the add ons in a zip file and bump versioning each change, while Grok cannot though (without a separate instruction on just the addon.json file). However, Grok seems to perform the task better. You just need to put the files in the right folders and then learn how to bump version_id and version for an upgrade. On the other hand, Grok is better at bumping than ChatGPT as it constantly makes errors since it doesn't quite understand version_id like Grok does.

No need to upload it. It's already there. Somehow.

But, plus this, as it would be trial and error with even the most simple add on. Or, you can query it 100 times to get right. Or, you could learn it and then fix the section yourself with ease and move on.

So is ChatGPT, but with either of those you still need to know how to work within XF's code to actually make addons work. Trying to have AI create full functioning addons with out knowing what to do is useless.

Learn to code within XF, https://xenforo.com/docs/dev/lets-build-an-add-on/
 
Last edited:
Neither ChatGPT nor Deepseek could figure out how to make a very simple change: https://xenforo.com/community/threa...a-template-and-adding-them-to-another.229230/

I'll try Grock.
You're not doing an add on but trying to edit templates in that thread.

It knows the template system too, but probably not as well as for add ons, as I'm sure it hasn't been trained enough to edit templates while many have worked with add ons more.

Also looks like you're trying to build the XFES "suggested threads" out of templates, which probably won't work, as you can't grab searches to template out. It'd be best to just get XFES and install ES to do what you're trying to do.
 
I want to make the Xenforo software available to AI so it can help me create addons and template modifications.

I found this related discussion: Is Xenforo open source?

Xenforo has a github page https://github.com/orgs/xenforo-ltd/repositories?type=all, but it doesn't look like any of the important code is there for an AI to learn from.

ChatGPT allows you to upload files for it to learn from, and the Xenforo software is only 15 MB, so it's fairly simple to upload the zip file each time.

Github's Copilot AI restricts you to using files that are on Github. Thus, I was wondering if it's allowed for us to upload the Xenforo code to a private Github repository?

I searched the license agreement https://xenforo.com/license-agreement/ and only found 1 result for "public" and 0 for "code". But I'm assuming that it's not allowed (as well as a bad idea, since your personal zip file contains a code that identifies you right?) to upload the code to a public repository.
You can do all this privately, too, if you know how.

Here's an example of feeding in my entire Centmin Mod code base of ~2.8 million tokens into AI using Microsoft LLMLingua-2 prompt token compression to reduce total prompt tokens by ~38%, so a reduction to ~1.58 million tokens so it can fit into Google Gemini 2.0 Pro's 2 million context model :cool:

Using this method, I can fit up to 5.2 million tokens into a 2 million token max model or fit 2.6 million tokens into a 1 million token max model, or 340K tokens into a 131K token max model :D

As to creating addons, etc. AI can only help so much. You still need some experience yourself. Using AI as a tutor for teaching you would be one way with https://xenforo.com/docs/dev/lets-build-an-add-on/ as a starting guide fed into AI maybe :D
 
Could someone please do me a favour and test out the new Claude 3.7 CLI to see how it gets on trying to generate XF3.0, or maybe even skip a version to 4.0. I'm curious to know if the cost in credits will be less than my XF renewal 🙂

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
Could someone please do me a favour and test out the new Claude 3.7 CLI to see how it gets on trying to generate XF3.0, or maybe even skip a version to 4.0. I'm curious to know if the cost in credits will be less than my XF renewal 🙂

To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
Can't really say about CLI, you can try free: https://claude.ai
 
Back
Top Bottom