Review the sentence:
The nails were admired by Madeline painted pink with gold sparkles.
Painted pink with gold sparkles, a participle phrase, is right behind Madeline, an illogical target. Really, are not her nails a more appropriate target for that modifier?
Before you continue, review the rules for misplaced and dangling modifiers.