function smart_ip_views_bridge_help in Smart IP 7.2
Same name and namespace in other branches
- 6.2 modules/smart_ip_views_bridge/smart_ip_views_bridge.module \smart_ip_views_bridge_help()
- 6 modules/smart_ip_views_bridge/smart_ip_views_bridge.module \smart_ip_views_bridge_help()
Implements hook_help().
File
- modules/
smart_ip_views_bridge/ smart_ip_views_bridge.module, line 21 - Non-displayable characters.
Code
function smart_ip_views_bridge_help($path, $arg) {
switch ($path) {
case 'admin/help#smart_ip_views_bridge':
return '<p>' . t("Smart IP Views Bridge exposes Smart IP visitor's location details to \n Views field (coordinates, country, ISO 3166 2-character country code, \n region, region code (FIPS), city and zip) and filter (country, ISO 3166 \n 2-character country code, region, region code (FIPS), city and zip).") . '</p><p>' . '<p>' . t('Guide/example of using Smart IP views fields and filters with Location module:') . '</p><p>' . '<ol><li>' . t('Download/install Location module.') . '</li>' . '<li>' . t("Add location CCK field to <strong><em>Page</em></strong> content type at\n http://www.example.com/?q=admin/structure/types/manage/page/fields. Populate \n the field label with <strong><em>Location</em></strong> and field name with <strong><em>location</em></strong>. Select <strong><em>Location</em></strong> \n from Type of data to store.") . '</li>' . '<li>' . t("At <strong><em>Location</em></strong> field settings > Locative Information > Collection Settings \n select <strong><em>Allow</em></strong> for the <strong><em>City</em></strong> and <strong><em>Country</em></strong> items.") . '</li>' . '<li>' . t("Create a <strong><em>Page</em></strong> content. Populate the <strong><em>Title</em></strong>, <strong><em>City</em></strong> and select a country \n (Important: be sure that the city and country matches the geolocation that \n Smart IP has detected based on your IP. To check, enable the device_geolocation \n block - Please refer to the README.txt of device_geolocation module for the instructions).") . '</li>' . '<li>' . t("Create your views at http://www.example.com/?q=admin/structure/views") . '</li>' . '<li>' . t("Inside your Edit view, add a Filter criteria then select <strong><em>Location: City</em></strong> from the \n list (click <strong><em>Add and configure filter criteria</em></strong> button).") . '</li>' . '<li>' . t("In <strong><em>Configure filter criterion: Location: City</em></strong>, populate the <strong><em>Value:</em></strong> textfield \n with <strong><em>smart_ip][location][city</em></strong> Smart IP Views token and leave the <strong><em>Is equal to</em></strong> \n selected in <strong><em>Operator</em></strong> dropdown menu (click <strong><em>Apply</em></strong> button).") . '</li>' . '<li>' . t("At your Edit view, add a Filter criteria then select <strong><em>Location: Country</em></strong> from the \n list (click <strong><em>Add and configure filter criteria</em></strong> button).") . '</li>' . '<li>' . t("In <strong><em>Configure filter criterion: Location: Country</em></strong>, scroll down at the \n bottom of the <strong><em>Country</em></strong> list box and select <strong><em>Smart IP: visitor's country code</em></strong>. \n And select <strong><em>Is one of</em></strong> from <strong><em>Operator</em></strong> radio selection (click <strong><em>Apply</em></strong> button).") . '<blockquote><p>' . t("This will filter contents with the country defined in Location CCK fields (Country \n and City) in ralation to your visitor's country and city detected by Smart IP.") . '</p></blockquote></li>' . '<li>' . t("Add a field then select <strong><em>Smart IP: Country</em></strong> from the list (click \n <strong><em>Add and configure fields</em></strong> button).") . '</li>' . '<li>' . t("In <strong><em>Configure field: Smart IP: Country</em></strong>, change the <strong><em>Label</em></strong> to <strong><em>Your Country</em></strong>\n then select <strong><em>Country name</em></strong> from the <strong><em>Display style:</em></strong> dropdown menu (click \n <strong><em>Update</em></strong> button). This will display the country of your visitor along with other CCK \n fields you've included in your views.") . '</li></ol>';
break;
}
}