You should be able to follow the order from that page. Also the grey one is for powering the vibro-motors, so you don't need to wire it if you are not using vibration.
@Madmorda is correct, the link above is for a Sony PS2 controller, not every third party controller would follow those colours. The best way would be to open up the controller connector and see exactly which wires connect to which point on the female connector. Then based on that you should be able to find out the point on the board.
Thanks for the reply I have a third party controller from eBay a blue one. The thing is that I took apart the controller and I lost the paper where I wrote down the pinout