- You need XenForo 2.x. You can setup a Scotch Box environment as described in the Xenforo 2.x Development Documentation
- Fork BbMath
- Move in the
src/addon/
folder of your development enviroment andmkdir Inforge && cd Inforge
git clone https://github.com/<your-username>/BbMath && cd BbMath
git remote add upstream https://github.com/InforgeNet/BbMath
Each time you want to submit a pull request, do the following:
- Download latest upstream modifications:
git fetch upstream
- Ceate a new branch:
git checkout -b whatever-you-want-feature upstream/master
- Make you changes, add them and commit
git push -u origin whatever-you-want-feature
- Visit
https://github.com/<your-username>/BbMath
and create a new pull request
Follow these guidelines to write a proper commit message: How to Write a Git Commit Message.
General guidelines:
- Indent code with a single tab
- Avoid brackets when they are not necessary
- Try to keep lines under 80 columns, assuming a tab width equal to 8 spaces (yes!)
- Follow the XenForo 2.x code style conventions
- In general, I like the Linux Kernel Coding Style and try to adapt it to PHP, JS and every other C-like language
- Check out the code already in the repository and try to follow the same style
- Use common sense