I'm sorry you've had wireless connection problems for more than 30 days. However, reading all of your 19 posts, it appears you've made great improvements compared to what it originally was.
Since you did not start your own thread and explain your issue, how it started and what you've attempted, it's difficult to recommend anything in particular. It certainly does not appear to have ever been a hardware problem with your iMac, but a network configuration issue which you now seem to have cleared up.
I have found it somewhat difficult to setup both a new network and a new computer at the same time. If the network already exists, however, connecting to it is a snap using Airport, and there are only a couple of adjustments to Network System Preferences that might be made afterwards to improve performance.
Assuming your network existed prior to the iMac, when you initially setup your iMac, did it discover your network immediately? It should have. If not, your network was not discoverable, hardly the fault of your iMac.
If you believe you are still having a problem - leave the wireless router where it is and substitute a different computer in place of your iMac to see if that computer's wireless performance is better than your iMac's is now. If that is the case, then perhaps you have not fully optimized your iMac's Network settings in System Preferences.
It may also be that you are expecting too much from your network - distance from wireless router, interference between router and iMac. This would appear to be the case, since you say that everything is fine when the router is right next to your iMac. Yet when it is, you can not leave it there, or others can not use the wireless, which would seem to indicate that then they are too far from it.
Well, if someone is always too far, there's a problem with the design or layout of the physical network. The router should be placed in a central location amongst the locations of the various users. It should be moved around to find the optimal spot for its location. It may need to be placed higher up (next floor), so that its signal is more accessable.
Edit-
If there is metal between, such as a kitchen, bath, laundry, utility area, or garage with auto, you should expect somewhat severe signal interference, and need to position the router to avoid the blocking of the signal.