[Plugin: Members List Plugin] Feature request(s) including some code for it
-
Hi Matthew,
Thank you for this plugin. I, for one, am very happy to have found it.
I’m currently implementing it in a closed-user environment (no open registration). The members list will be a company ‘Our team’ page.
I’m using members-list plugin version 3.0 with WP 3.0.1.I ran into four things which IMHO would make the plugin even better:
1) Independently of whether a user has filled anything in on profile field, the profile field will be ‘shown’ in the members list.
This mean you that mark-up such as the below would look sloppy as ‘URL’ will still show with nothing behind it:
<div class="tern_wp_members_user_url"> URL: <a href="%value%" target="_blank">%value%</a> </div>
The fix:
Replace line 909:
$s .= "\n ".str_replace('%author_url%',get_author_posts_url($u->ID),str_replace('%value%',$u->$v['name'],$v['markup']));
With:
if( isset( $u->$v['name'] ) && $u->$v['name'] !== '' ) { $s .= "\n ".str_replace('%author_url%',get_author_posts_url($u->ID),str_replace('%value%',$u->$v['name'],$v['markup'])); }
2) Maybe not all users would want this, so an option in settings, could be used to turn this on or off. (I don’t need this, but it’s a thought).
3) At the top of the page, the phrase
Now viewing 1 through 3 of 3 members found.
appears. Quite aside from the language issue that causes, for my use it’s superfluous information.
I currently hide the phrase with this addition the style.css file, but I can imagine an option to hide the phrase would be welcome:.tern_members_view { display: none; }
4) The language issue… If you could separate the language strings into a .pot / .mo file, I’ll gladly help with translating it to (in my case) Dutch. Having the language strings in the code makes it an upgrade nightmare ??
Hope this feedback helps & keep up the good work!
Smile,
Juliette
- The topic ‘[Plugin: Members List Plugin] Feature request(s) including some code for it’ is closed to new replies.