When a user is not logged in and tries to vote, I want to prompt the user to log in.
You can check out this previous question I asked to get a sense of what my code is like: Redirect not working
How would I, instead of redirecting the user to the login page, render with AJAX a div or a modal dialogue that has a form in it to login, or at least a link in it to take the user to the login page...
Of course this div should be rendered only when the user is not logged in and tries to vote....