[Plugin: Members List Plugin] Syntax and Author Url
-
Hi,
two thoughts on your plugin (as of version 2.9.1):Firstly I found a couple of mistakes on php syntax which can be a problem: “<?=” should be “<?php ” (found 36 hits to correct).
This causes (at least) that at a first use “<?=$o[‘url’];?>” and “<?=$o[‘meta’];?>” show up on the options page. Anyway, I assume your were already aware of this by now.Then, and more importantly, I’d suggest you the following change on the “markup” function:
(line 874)
//$s .= '<a class="tern_wp_member_gravatar" href="'.get_bloginfo('url').'/?author='.$u->ID.'">'."\n ".get_avatar($u->ID,60)."\n ".'</a>'."\n "; $s .= '<a class="tern_wp_member_gravatar" href="'.get_author_posts_url($u->ID).'">'."\n ".get_avatar($u->ID,60)."\n ".'</a>'."\n ";
(line 878)
//$s .= "\n ".str_replace('%author_url%',get_bloginfo('url').'/?author='.$u->ID,str_replace('%value%',$u->$v['name'],$v['markup'])); $s .= "\n ".str_replace('%author_url%',get_author_posts_url($u->ID),str_replace('%value%',$u->$v['name'],$v['markup']));
The benefit of this is using a core function which can be filtered by other plugins (like WP htaccess Control, which I wrote).
Thank you for your work on this plugin,
António
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: Members List Plugin] Syntax and Author Url’ is closed to new replies.