Hi Sir or Madam,
My name is XXXXX XXXXX I've been a professional answering questions concerning dog health and behavioral issues here since 2006. I've professionally worked with animals for over 16 years. Over 13,000 of my answers have been accepted by customers. It will be my pleasure to work with you.
Diarrhea can be caused by a large number of things including an unusual treat, irritable bowel syndrome, disease, bacteria or protozoan infection. If your dog is eating and drinking normally, Kaopectate at 1 teaspoon per 5 pound every 2 - 6 hours or Imodium at 1 mg per 15 pounds one or two times a day can be given for diarrhea. I know you have tried kaopectat but wanted to be sure you were dosing correction. Read dosage information here that states Loperamide is also dosed at 1 capsule (2 mg) per 50 pounds (25 kg) if over 20 pounds (10 kg).
Some herding breeds like collies can have an adverse reaction to imodium so avoid using in collies and similar breeds.
Canned pumpkin (not pie filling) will also absorb excess fluid in the bowel with just a spoonful added to the dog’s food. Some experts will recommend a bland diet for a few days of boiled chicken and rice. If the diarrhea continues, have your dog tested for parasites such as worms or a protozoan infection such as coccidia or giardia. Here are sites on worms, coccidia and giardia, which you may find informative.
Since it has been going on a week, I'd go ahead and have a fecal test run.
I hope this information is helpful to you.