I have written some code that basically popup when the user gets to the end of an article and recommends another one to read that is similar in choice. 

I have this code basically hacked into my system. I am planning on an upgrade and would like to stick this code into a plugin and make the whole thing modular. 

I have followed the tutorials all day trying to get it to work.

Can someone help out here..? I dont think the function inside the plugin is even being called.


Take a look at here: