Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
-FP Posted January 24, 2016 Posted January 24, 2016 I'm displaying content in a template depending on the member language. {{$member = \IPS\Member::loggedIn();}} {{if $member->language == 2}} Message A {{else}} Message B {{endif}} This works for logged in members, but is there a way to determine the language for guests?
-FP Posted January 24, 2016 Author Posted January 24, 2016 It feels so stupid when I find the solution to my own problem so short after asking... this works for members and guests: {{if member.language == 2}} Message A {{else}} Message B {{endif}}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.