On my customer's site, I've put in the OssnLocation JS file to fill the Location field with ossnloggedinuser()->place. When the cache is disabled, it works fine. But, when the cache is enabled, this field is filled with the admin's place to all users. Is there an equivalent ossnloggedinuser() to be used in the javascript file?
[Update] The admin place is set to all users, when cache is enabled
That's also the 3rd way. Glad you solved the problem :)
After taking a look into how the OssnChat component works, I was able to do.
Thanks
The only solution for this is loading the user location on runtime using ajax (may use cookie also) and initialize your component.
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)