forumfive icon indicating copy to clipboard operation
forumfive copied to clipboard

Footer message is wrong

Open s4ke opened this issue 9 years ago • 2 comments

The footer that shows how many posts a user has made is currently displaying the posts a user has made during this login. When you logout and login again, the counter is reset. Also the number of posts is not displayed if the user has 0 posts. I changed my footer to display this:

Welcome = $_SESSION['email']; ?>! You have made = $_SESSION['posts'] > 0 ? $_SESSION['posts'] : 0?> posts during this session.

This is more appropriate than the current message imo.

In action:

http://aoc.getdrunkonmovies.com/

s4ke avatar Apr 08 '15 12:04 s4ke

If you logout and then log back in, the session counter will be reinstated.

However, you are right that it displays nothing instead of "0".

xeoncross avatar Apr 08 '15 15:04 xeoncross

I know that it should be reinstated, but on my test system it doesn't work. Feel free to try that on my blog site.

I should have clarified more. I just changed the message so it displays something meaningful for the moment.

s4ke avatar Apr 08 '15 15:04 s4ke