-
Hey,
i have two questions about UserPRO:
1. UserPRO has a nice builtin country list with all the flags. Is it possible to create an additional list? But instead of countries i would like to use states with their own flags. I know that i can create a custom field based on a dropdown but how can i assign a small icon to each entry? There are two builtin choice lists for roles and countries, where can i add a third one?
2. Is it possible to edit existing multiple registration forms? Can´t find a option for that.
Thanks 🙂
1. How can you assign a small icon to each entry? You can use the Filter Hooks I provide for userpro 😀 example..
http://userproplugin.com/userpro/docs/api.html#userpro_before_value_is_displayed
That hook runs just before custom value is printed, I use it to make images in lightbox (if they are pictures), make video embeds (if provided url is vimeo/youtube) and so on. You can also match
if ($key == ‘gender’) { if key = your custom field (state)? and if $value = Arizona for example, you can append the value.
Do you have knowledge about using hooks? Here’s a very straightforward documented example:
http://userproplugin.com/userpro/docs/api.html#userpro_before_value_is_displayedDamn this works very fine 🙂
So i changed the “fields-hooks.php” to add a filter which shows me a flag besides the state of the user in the profile. Also i added a small badge of the users state by changing the “badge-functions.php”.
Thanks for the tip!
You must be logged in to reply to this topic.