Support » Plugin: amr users » [Plugin: amr users] Add a link to user details

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author anmari

    (@anmari)

    Hi carblanco,

    Current version no,
    But have quickly whipped up a pluggable possibility and it’s looking sweet, so will see if I can put a small update up with an example

    Plugin Author anmari

    (@anmari)

    Ha! that was a bit of fun – but really I should be asleep…

    anyway see version 2.3.11 – see the pluggables file – copy one of the functions and drop it into your plugin file or your theme’s functions.php

    Don’t edit the plugin file unless you are prepared to recreate the code when there is an update.

    example: here “nice name” is given a link to the users url.

    – so depending how your details page is set – some kind of user profile template maybe ? – generate a link to it and there you are.

    if (!function_exists(‘ausers_format_user_nicename’)) {
    function ausers_format_user_nicename($v, $u) {
    if (!empty($u->user_url))
    return (‘user_url.'”>’.$v.’‘);
    else return ($v);
    }
    }

    Thanks anmari but I really don’t understand.
    So you say I have to copy (If I want that the nicename links to the users profile)

    if (!function_exists('ausers_format_user_nicename')) {
    function ausers_format_user_nicename($v, $u) {
    if (!empty($u->user_url))
    return ('user_url.'">'.$v.'');
    else return ($v);
    }
    }

    into my theme funtions.php, right? Then it doen’t work for me.

    Plugin Author anmari

    (@anmari)

    Note: in latest version of plugin one can choose link types (profile, mailto, author template as per theme etc) in the setup of the report.

    If you have other unusual requirements, then you may need to resort to writingyour own formatting function similar to the above.

    Yes, and it works very well 😉
    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: amr users] Add a link to user details’ is closed to new replies.