This episode was primarily about how after a certain age, everyone has emotional baggage. Ted was so worried about what his new girlfriend's baggage was that he forgot that he is carrying some himself, and that doesn't include that in the future he tells long boring stories to his kids that are supposed to be how he met their mother, but never gets to the point.
So, Ted and his girlfriend go to a movie, "The Wedding Bride", which turns out to be about Stella dumping Ted at the alter, except the movie is written to make Ted the bad guy in the whole incident. The movie is very popular, and just days after its release is the 5th highest grossing movie of all time.
What the writers completely ignore is that in real life, Ted would have been able to sue the writer and studio for major bucks. Not only was his name barely changed ("Ted" became "Jed"), but at least twice the Ted character is actually called Ted Moseby. IANAL, but it seems to me that Ted would be able to sue for invasion of privacy, libel, and being held up to public ridicule. At a trial, if the defendants were stupid enough to let it go that far, a jury would be likely to award Ted a major percentage of the movie's gross, and he would be a very rich man.
The fact that the writers did not even address the issue of Ted suing is a fatal flaw in this episode for me.