Support » Plugin: amr users » Adding a custom link

  • Resolved Alternatewords


    I know this has been brought up before and I’ve also read all the documentation on However, I am still stuck.

    On my site I am using User Profile Made Easy ( It uses user_ID to retrieve any users profile, e.g. I’d like to add this to the column display_name. I know in a previous version I was able to do this via ‘Before’ and ‘After’ (I did something like this for a private messaging plugin). But for the life of me I can’t remember how I did it.

    I wouldn’t mind adding a custom function, but am not sure how. I tried this example, reasoning I could adapt it to my needs:

    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);

    But I am greeted with a white screen in amr. Any assistance would be greatly appreciated.

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


    white space usually means you have something wrong in your php code.

    also the html you are returning there is badly broken.


    return ('<href="'.$u->user_url.'">'.$v.'</a>');

    then when you have that working, replace the user url with whatever you need to generate the profile link that that plugin generates.

    Sorry, still couldn’t get this to work. I resorted to directly editing an existing function (edit_user) to accomplish what I need. I know it’s not recommended and I have to change after each plugin update but I’ll have to make due, I am not a PHP programmer and no time time to dig into this.

    Thanks anyway.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding a custom link’ is closed to new replies.