After reading your posts, and your note to me, here are my suggestions... for some of us this is very straight forward... . you seem to be having some problems and I've tried to reduce this to basics... . if you have problems with this please either email me again or consult professional help...
1 - are the lights on the flat bed LED's or standard bulbs... .
2 - do you have a 12 v test light or volt meter... .
3 - are the tail/stop lights sealed units with a 3 wire pigtail coming from them... .
4 - if 3 is yes... . look on the back of the sealed units and they are labeled tail, stop, ground... make sure that all ground wires are grounded to the bed... we usually weld a stud to the bed to bolt ground wires to them... we usually have 3 or 4 of these on the bed... if not use a drill motor and put a hole someplace in the bed where you can do this where it doesn't show... and you can get to it to clean it... make sure that this is not in the spray area of the rear wheels...
5 - once you've decided that you have a good ground and that all the bulb housings are grounded correctly run a 12 volt wire from the battery... . to each of the wires on the bed... . take some masking tape and apply the 12 wire from the battery to each of the wires on the bed... . label what lights up... . tail lights are dim red, stop turn are bright red, back up lights, clearance lights...
6 - Once you decide what each of the wires go to on the bed, now take the 12 v test light and check each wire coming from the truck wiring harness... . do the same with the truck... either right down the wire color and what comes on... . ie: turn on the head lights one click... so that the clearance lights and tail lights should be on... mark the wire or connect them to the wires you've identified as the tail lights clearance lights. .
7 - turn off the lights, and turn on the left turn signal... find the wire that flashes the test light and connect that to the wire you've identified as the left turn bulb, do the same with the right turn as well... .
8 - now do this with the back up lights by putting the transmission in reverse and finding the wire that lights the test light... . connect this to the back up lights...
9 - if you are using LED's as stop tail lights and clearance lights there might not be enough current draw to shut off the bulb out light on your trucks dash... if this is the case you need to have someone sell you common sealed units that bulbs in them and replace the LED's or find someone who can help you work through the installation of a resistor to draw additional current to shut down the light... .
10 - using ohm's law, with an ohm meter you can measure the current draw of a bulb and compute the amount of resistance you'll need... I personally suggest that you just remove the sealed LED's and replace them with sealed bulbs...
11 - when you make or check the connections on the sealed units or the back of the bulbs..... get some vasoline, or dielectric grease to coat the connections to prevent electrical damage to the connection... .
12 - the common connection between bulb or sealed unit and the wire are dissimular metals and with electricity flowing through the connection and some spray from the road these connections will fail...
Hope this helps...