xeoncross / forumfive

A < 10kB forum system in PHP - Code Golf
164 stars 18 forks source link

Footer message is wrong #8

Open s4ke opened 9 years ago

s4ke commented 9 years ago

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 ! You have made 0 ? $_SESSION['posts'] : 0?> posts during this session. This is more appropriate than the current message imo. In action: http://aoc.getdrunkonmovies.com/

xeoncross commented 9 years ago

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".

s4ke commented 9 years ago

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.