• 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

    http://wordpress.org/extend/plugins/members-list/

Viewing 4 replies - 1 through 4 (of 4 total)
  • ternstyle

    (@mpraetzel)

    andrad,

    The php short tags seem to work in most environments. I’ll take that into consideration though.

    I was unaware of the function “get_author_posts_url”. Thank you for the heads up.

    matthew

    Hey how are you?
    excellent plugin
    would like to know if I want to change the way of showing the user url
    For example:
    I get my ‘?user=12’ and I would like to use the nickname>> ‘?user= martin’

    Thank you : )

    if you want to use member-list plugin in multisite wordpress.
    you can modify tern_wp_members.php
    line 874 become ->

    $s .= ‘ID,’siteurl’).'”>’.”\n “.get_avatar($u->ID,60).”\n “.’‘.”\n “;

    line 878 become ->

    $s .= “\n “.str_replace(‘%author_url%’,get_blog_option($u->ID,’siteurl’),str_replace(‘%value%’,$u->$v[‘name’],$v[‘markup’]));

    GREAT
    thnxs!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Members List Plugin] Syntax and Author Url’ is closed to new replies.