Show or hide page block based on profile country?

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

Quote · 4 May 2012

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....
Quote · 4 May 2012

Thanks Prashank25

this works for me. :-)

Quote · 5 May 2012

 Glad to help...:)

Thanks Prashank25

this works for me. :-)

 

so much to do....
Quote · 5 May 2012

great

http://www.mediaworkflow.com.au
Quote · 5 May 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.