OK here's a schematic of the board that's in there, and the circuitry you need to add.
The new components are shown in the bottom part of the drawing. As you see, you'll need a few transistors, some resistors, and two trimmer potentiometers. VR1 sets the darkness detection threshold, and VR2...