To select users by excluding any who do not have certain criteria, use the exclude column for that field.
Enter the values which will cause users to be excluded. These should be the actual data values.
Separate multiple values with one comma with no spaces.
Registered Days Ago and Registration Date
There are two fields that show details of date of registration. When the plugin started I wanted to see a human based ‘days ago’ view as I found that much more helpful to assess how long a user had been a member.
Thus that is the real wordpress registration date fields default formatting. If one hovers over the field full details of the actual date will show.
It is also possible for you to write your own formatting function to format the date any way you would like. For those people who are unable to write their own functions from the example and just want to display the registration date, there is a ‘pseudo’ field created which is called ‘Registration Date’ – it is not a real field though and does not sort well.
Registered days ago
- real registration date field formatted using wordpress’s human time difference date time function
- has hover text so you can see the actual date
- will sort by date
- will display the date in the csv extract
Registration date
- pseudo field created on the fly in display only
- doesn’t sort. Sort by the ‘days ago’ field and then remove the display order to hide the field
- doesn’t show in csv
Future
In the future there may be the possibility for one to choose from a range of formats. For example I can imagine a number of possibilities:
- a range of date formatting options using php date format options
- human time diff, days ago
- birthday (no years)
nice to get thanks
does exactly what he (she?) needed
Roles, First Role, bbpress forum roles, s2member levels…
[2019 Note: Please watch out for major update. First_role will be replaced by Capabilities/Roles. There will no longer be a separate first_role field ]
Do users on your websites have more than one wordpress role ?
On a basic wordpress install, a user usually has only one role. At the simplest, many sites only deal with administrators and subscribers.
The free amr users user listing plugin will extract the first role found in the wordpress usermeta capabilities value and present that as the ‘first role’. This is great for most installs, some may need more reporting possibilities.
WordPress does actually allow for users to have multiple roles. Add in the bbpress plugin and possibly a membership plugin which may create it’s own set of roles in parallel to the wordpress ones (ie not instead of), then you may find a single user may have many roles even if you actually need them to only have one.
Depending how/when a user was created in the system, (converted? created before or after the forum etc) they may/may not have a wordpress default role, they may just have a bpress role for example. Even more confusingly the ‘first role’ may no longer be useful. For example, someone may have been created as a forum participant with while someone else may be wordpress ‘editor’ and then a forum participant. The ‘first roles’ may then differ, when one might think that they should both have participant.
In such a case, other role fields may be useful too. The free amr users plugin will automatically extract all the roles it finds and present each as a field where the user either has a that value (1 or true) or does not. One can use these to exclude or include users from the user lists, or to interrogate the db looking for users with multiple roles etc.
If you need more than that, then you need the amr-users-plus plugin. It adds
- a ‘roles’ field which will list in the one field all the roles a user has. It also adds filtering functionality where one can do realtime selection. This will work for any roles stored in the usermeta capabilities record.
- a first bbpress forum role, in case you just interested in forum access only
Exclude meta keys, and delete them too
The latest update (3.9) adds a admin screen that allows you to
- see and change which meta keys are excluded by default from the plugin and
- exclude more meta keys
- delete user meta records for selected metakeys (cleanup)
- see totals of meta records for meta keys
This became essential for anyone using S2member, and handy for anyone using Advanced custom fields which seems to create additional hidden metakeys for every custom field. Thisplugin will attempt to help you out by default excluding as many unnecessary fields as possible. You can then update.
The S2member access cap times field is keyed by time, which means that as time goes by there will be more and more sub fields detected by amr-users and the fields and nicenames page will become impossible.
This is clearly unworkable. So a admin page to exclude meta keys was added. This page will also allow you to delete meta records. Be Careful! This is a confirmation step, but no undo.
The “find fields and nice names” page has been updated to help highlight what’s going on.
Are you using the buddy press resume plugin and amr-users?
Do you want to link from your amr-users member list to the members buddypress members resume page?
Version 1.5 of the amr-users-plus-buddypress plugin now offers that link type.
Format a field as a link
This is an example of a site specific add-on created specifically for a certain website.
This site specific plugin adds a formatting function for a custom field created by a third party plugin. In this case the field is called ‘teachers-website’.
The formatting function therefore must be called:
ausers_format_teachers_website($v, $u)
This example includes target=”_blank” as that was requested. However please read what various institutions advise about opening new windows on links: http://webdesign.anmari.com/2820/dont-force-open-new-windows/
Instructions on how to create your own formatting function are here: https://wpusersplugin.com/2645/format-any-field-any-way-you-wish/
amr_format_extra_fields (zip file)
Wicked plugin
Woo hoo! Once I get some additional funds in I’m buying the pro version because I want those additional sorting options. Thanks for the lightening fast response and the wicked plugin!
From the wordpress forum in December 2013
Adding custom css to a wordpress website for plugin html
Do you want to add css for html generated by a plugin perhaps?
Got a Custom Theme?
Do you have a custom theme that you are NEVER going to automatically update?
Then edit the themes css, add your custom css to the bottom of the main style.css. This should be in your themes folder under wp-content.
Got an Updateable Theme ?
Does your theme have upates occasionally ? If you want to be able to auto update your theme, then it is better to add your css separately.
Some plugin have ways to add a custom css file for that plugin and/or to disable any plugin css so that you may reduce the number of stylesheets. Do NOT edit any plugin css files unless it is a site specific plugin that will not be updated automatically – you will lose your css when the update is applied.
The easiest way to add custom css if you cannot use your themes style.css is probably by using the official wordpress jetpack plugin: http://wordpress.org/support/plugin/jetpack
It has a custom css module http://jetpack.me/support/custom-css/ There are other plugins that allow you to do this.
How to work out what css selectors to use?
First you need to work out what css selectors have been provided in the html that is generated. My plugins generally offer many css selectors in the html. The various ‘inspect element’ tools are invaluable here.
Examples:
- http://getfirebug.com/css and
- https://developers.google.com/chrome-developer-tools/docs/elements.
- http://www.youtube.com/watch?v=oao2MmT78mI
They help highlight what css is being applied to the html and what is being overwritten. And of course they help you to see easily what css ‘hooks’ there are to add special styling.
Your custom css needs to work with your theme, so you either need to specify the css tightly enough that no theme css will ever override it, or know that you are not going to be changing themes.
To work out what css to add, ideally you should have a reasonable understanding of css. In particular the concepts of specificity and inheritance
http://coding.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/ .
You could ask for help from css experts.
- http://webmasters.stackexchange.com/questions/tagged/css or
- http://stackoverflow.com/questions/tagged/css or
- pay for a bit of wp related help https://www.google.com.au/search?q=www.wpquestions.com+css
When asking for help you should
- provide a link to the problem page of your site or demo site
- identify the theme you are using perhaps
- be clear and specific about the effect you are trying to achieve and your level of skill in editing css
Browser consistency
You should also know that browsers vary in their implementation and while your hack that you worked out or have been given might look beautiful on your apple mac running safari, results can vary greatly.
If you have any pride in your work at all, you should test the result using something like http://browsershots.org/, or risk the site looking really stupid.
Identifying CSS selectors example:
In this example from the amr-users plugin, one can see that:
- there are id’s specific to a user list, thus enabling one to isolate your css to just the list (div id=userlist1)
- there is a general userlist class which enables one to style all such userlists with the same css
- there are classes per field allowing one to style individual fields