Please help,
how to show or hide blocks on page based on profile country in PHP?
if $country == 'US' {
'do something
}
How do I do this?
kind regards
Please help, how to show or hide blocks on page based on profile country in PHP? if $country == 'US' { 'do something } How do I do this? kind regards |
I am supposing that you want to show blocks as per on logged user country. you can try this $iID = getLoggedId(); $aProfile = getProfileInfo($iID); if ($aProfile['Country'] = 'US') { 'blah blah and one more blah.'; } This should work.. Good luck so much to do.... |
Thanks Prashank25 this works for me. :-) |
Glad to help...:) Thanks Prashank25 this works for me. :-)
so much to do.... |
great http://www.mediaworkflow.com.au |