In the Hidden Grotto that's in the Giant Chasm, in the forest. It's rare to find, though you can get it. Or you can use the Dream World.
Look here for how to get Ditto.
How to change your username
How to add a user avatar
Why was my post hidden?
The points system
Flags vs Downvotes
Type a Pokemon name, type, move or ability to see instant results.