Hi again Danny,
When a cat stops urinating in the litterbox, it's usually because he has a urinary infection, crystals, or a behavioral problem which is caused by stress.
Because of your cat's age, not urinating where he should, and not defecating normally, it would be best for him if he saw the vet at this time. Older cats are prone to various illness/diseases, like diabetes, kidney, thyroid and liver problems, and he should have a blood test run, plus a urinalysis, to find what the problem is.
Diabetes can often cause hind leg weakness, and this may one of the reasons why his legs go up (the way you describe it, it sounds like he's actually 'sitting' instead of 'squatting') when he urinates and then has trouble walking afterwards. He also could have some neurological damage in that area from a host of various other conditions.
If he IS found to have a urinary infection, this can be very dangerous in male cats and must be treated immediately.
The recent repeated (almost) unsuccessful attempts at defecation might be connected with the legs up in the air/difficulty in walking after urinating, too. There might be a nerve in that area which has been affected. The constipation problem might be caused by a hairball, not drinking enough water, or components of his food; but it might also be caused by a neurological or other problem in that particular area.
My best recommendation to get your cat well, is bring him to the vet TODAY for evaluation, diagnosis and treatment.
To help with the lack of defecation, you can try to give him 1/2 teaspoon of mineral oil mixed into the wet food, twice a day. You can also try some hairball remedies/stool softeners, like Petromalt and Laxatone. These are sold at Petsmart/Petco.
To clean the areas where he's urinated, you can use Natures's Miracle, or any enzymatic cleaner for pet stains/odors. This is also available at Petsmart. You can also try Feliway plug-ins to help with the inappropriate urination and if he's stressed. To see how feliway works, go to:
www.feliway.com
www.catfaeries.com/feliway.html
A kitty litter which helps attract cats back to the litterbox is called 'Cat Attract' and is also sold in pet supply stores.
First, find out what's causing these elimination problems in your boy, then, when those problems are being treated, you can try the other products to try to 're-train' him back to the litterbox.
I wish you much luck and please let me know what the vet tells you. Thanks!
Cher
__________________
If you found my answer helpful, please click ACCEPT so I may be compensated for my work. A Bonus is always welcomed & appreciated! Thanks for the opportunity to help!