1

Re: Members List - taking out gravitar link

You're very welcome. Thank you again for the donation!

Re: Members List - taking out gravitar link

Don't mean to dig up an old thread, but I'd like to know how to take out the gravitar link. When I click on this thread, it says there are 5 posts, but all I see is:

"You're very welcome. Thank you again for the donation!" by ternforum

Any idea why that is? I'd like to remove the gravitar link and searched through this forum - found a thread about it, but can't see the instructions on how to do it! lol. Please help smile

Re: Members List - taking out gravitar link

Check under display options on this page:
http://www.ternstyle.us/products/plugin … n-settings

4 (edited by skeeboo 2011-10-12 18:06:54)

Re: Members List - taking out gravitar link

Ah, I saw that. Perhaps I should have been more clear. I would like the gravitar to display - I just don't want it to link to anything (author pages). Any way to remove the linking code from the markup but still keep the images?

Thanks again!

Re: Members List - taking out gravitar link

Change line 369 of /class/member.php from:

$s .= '<a class="tern_wp_member_gravatar" href="'.get_author_posts_url($u->ID).'">'."\n        ".get_avatar($u->ID,60)."\n    ".'</a>'."\n    ";

to:

$s .= get_avatar($u->ID,60)."\n    ";

Re: Members List - taking out gravitar link

Thank you!

7 (edited by tyeung 2011-11-02 23:16:18)

Re: Members List - taking out gravitar link

Thanks for this guys!   One other tweak, with this modification, the Gravatar ends up on it's own line, and then the rest of the text info gets pushed to the next line after it.   

If you want it to retain the same layout, where the image style still retains the "floats: left", this is what I used instead:

$s .= '<div class="tern_wp_member_gravatar">'."\n        ".get_avatar($u->ID,60)."\n    ".'</div>'."\n    ";


thankx again!
T

Re: Members List - taking out gravitar link

You could also simply add a CSS rule for this. It's best not to change the plugin code as your changes will be overwritten when you upgrade.

Re: Members List - taking out gravitar link

yes for sure - problem is I only know enough to be dangerous wink  So I could only figure out how to do it by looking at the original line of code and modifying accordingly.  I'm trying to figure out how to make the Gravatar image and associated member_info get displayed in table format using css.  Not so successful so far!

hopefully have some good news in a little while...

Re: Members List - taking out gravitar link

For table formatting...have you tries using HTML table mark-up in the mark-up editor?