Does IP Geolocation have tokens available or can I use the smart_ip tokens?
I see that smart ip has the following tokens available:
Smart IP Tokens related to Smart IP geolocation info
City [smart_ip:city] Smart IP City
Country [smart_ip:country] Smart IP Country
Country code [smart_ip:country_code] Smart IP Country code
Latitude [smart_ip:latitude] Smart IP Latitude
Locality [smart_ip:locality] Smart IP Locality
Longitude [smart_ip:longitude] Smart IP Longitude
Postal code [smart_ip:postal_code] Smart IP Postal code
Region [smart_ip:region] Smart IP Region
Region code [smart_ip:region_code] Smart IP Region code
Comment | File | Size | Author |
---|---|---|---|
#8 | visitor-location tokens.png | 294.94 KB | RdeBoer |
Comments
Comment #1
RdeBoerHi SocialNicheGuru,
There is no code in the module to specifically enable or disable tokens from other modules.
Where did you want to use them?
You should be able to use code snippets in many cases:
Comment #2
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedmodules like yelp use tokens from other modules like smart_ip to identify the location.
It would be nice to have tokens available. I wonder if the smart_ip token code could be used?
Comment #3
RdeBoerYes I guess smart_ip code could serve as a base. Or any other module using tokens. Token code is pretty standard.
If there is a great need for this feature I will consider adding it.
Yelp at this stage has fewer than 40 D7 installs.
Comment #4
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedid love to place user location in panel or in a page title to help with SEO.
Comment #5
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedthere is a separate address token module. Maybe something like this:
http://drupal.org/project/addressfield_tokens
Comment #6
RdeBoerTokens aren't a bad idea. Just don't have the time.
Patches anyone?
Rik
Comment #7
robertwb CreditAttribution: robertwb commentedAre you still looking at this @RdeBoer? If so, I'm getting ready to do a little geolocation stuff.
Comment #8
RdeBoerI couldn't sleep, so added it. Tokens are exposed under the heading "Visitor tokens".
The screenshot shows how the tokens expose themselves, in this case on the Webform Form Settings page, e.g., node/123/webform/configure, after you've clicked "Browse available tokens".
Available now in IPGV&M 7.x-1.x-dev and in the upcoming official release 7.x-1.27
Comment #9
robertwb CreditAttribution: robertwb commentedThis is fantastic @RDeBoer !!! Testing today!