Problems applying texture to Extruded Geometry

Maybe you can easily achieve the result with the combination of the two techniques?