My question is, which file should I place the code in so that people can like or share any story.
Just for stories you would probably want to modify just the storytext.thtml template file for the theme you are using. For example the denim theme the file would be found under /public_html/layout/denim/ One of the Geeklog Core Developers.
I ended up adding the first code to footer.thtml and the second to article.thtml. Worked like a charm. Thanks.