Well I am not sure what version you are talking about.
Since you are upgrading from ubb6 and also mentioned testing ubb7.
Sounds like UBB as a courtesy fixed some settings for you.
But if you want to know how it was done .
Then just ask about one feature at a time and we can work through it.
We do have ubbwiki as a reference.
External code is for when you have a side island that you want to place on a regular non UBB HTML page