Re: IP Addresses in Users Online for all users
{$smarty.server.REMOTE_ADDR} shows IP of the user viewing the template. Since you are the user viewing the page (and template), it displays yours IP.
So, instead of retrieving the address when the template is rendered, you should collect it in a php script and store in the user's session (so every user will have its IP in his session data). And, when displaying the template listing online users, show addresses stored in users' sessions.
Unfortunately, I can't post code that will work for all XC versions, but the logic will be as I've described.
|