Changeset 3046035
- Timestamp:
- 03/06/2024 03:04:34 AM (13 months ago)
- Location:
- show-visitor-ip
- Files:
-
- 6 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
show-visitor-ip/trunk/readme.txt
r2973344 r3046035 3 3 Tags: ip address, country code, region, lat, long, city, country name, user IP, visitor IP, display, shortcode, vs, rockon 4 4 Requires at least: 3.0 5 Tested up to: 6. 35 Tested up to: 6.4.3 6 6 Stable tag: 1.0.01 7 7 License: GPLv2 or later … … 49 49 * initial release 50 50 51 = 5.1 - 30 September 2023 = 52 * Optimized the coding for better performance. 53 * Fixed the region name issue, not appearing with mobile internet. 51 = 5.2 - 06 March 2024 = 52 * Fixed the city shortcode issue. 54 53 55 54 == Upgrade Notice == -
show-visitor-ip/trunk/show-visitor-ip.php
r2973350 r3046035 5 5 Description: This plgin show the current user ip address & other location info by ip. Short-code [show_ip], [svip_location type="countryCode"] regarding another shortcode please check the plugin readme file or visit on plugin website. 6 6 Author: Vikas Sharma 7 Version: 5. 17 Version: 5.2 8 8 Author URI: https://profiles.wordpress.org/devikas301 9 9 */ … … 45 45 46 46 if($ip_data){ 47 if($svip_ltype == 'countryCode' ){47 if($svip_ltype == 'countryCode' || strpos($svip_ltype, 'countryCode') !== false){ 48 48 $svip_data = $ip_data['countryCode']; 49 } elseif($svip_ltype == 'region' ){49 } elseif($svip_ltype == 'region' || strpos($svip_ltype, 'region') !== false){ 50 50 $svip_data = $ip_data['regionName']; 51 } elseif($svip_ltype == 'lat' ){51 } elseif($svip_ltype == 'lat' || strpos($svip_ltype, 'lat') !== false){ 52 52 $svip_data = $ip_data['lat']; 53 } elseif($svip_ltype == 'long' ){53 } elseif($svip_ltype == 'long' || strpos($svip_ltype, 'long') !== false){ 54 54 $svip_data = $ip_data['lon']; 55 } elseif($svip_ltype == 'city' ){55 } elseif($svip_ltype == 'city' || strpos($svip_ltype, 'city') !== false){ 56 56 $svip_data = $ip_data['city']; 57 } elseif($svip_ltype == 'timeZone' ){57 } elseif($svip_ltype == 'timeZone' || strpos($svip_ltype, 'timeZone') !== false){ 58 58 $svip_data = $ip_data['timezone']; 59 } elseif($svip_ltype == 'currency' ){59 } elseif($svip_ltype == 'currency' || strpos($svip_ltype, 'currency') !== false){ 60 60 $svip_data = $ip_data['currency']; 61 61 } else {
Note: See TracChangeset
for help on using the changeset viewer.