Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 2, 200519 yr for the profile card if a member has no photo an image saying no photo goes in place. i think it would be good if an image went in place of avatar if no avatar was chosen :thumbsup: cause on my forums i have a dotted box around each profile field, andso if no avatar is chosen! you just get an empty box which as its setas 0% width to fit the avatar, it basically just looks like a littlewhite box about 3px big! this would solve it :ermm: cheers
August 4, 200519 yr I'm almost positive you could just make your own, and then write some code to make the "no Avatar" field display an Avatar stating "no Avatar." I think this idea is a bit of a contradiction, since a "no Avatar" Avatar is in fact an Avatar... It just shows that you haven't selected a custom Avatar.
August 4, 200519 yr Open /sources/functions.php Find: if ( ! $member_avatar or $member_view_avatars == 0 or ! $ibforums->vars['avatars_on'] or preg_match ( "/^noavatar/", $member_avatar ) ) { return ""; } if ( (preg_match ( "/.swf/", $member_avatar)) and ($ibforums->vars['allow_flash'] != 1) ) { return ""; } Replace(only the first one): return ""; With this: return "<img src='{$ibforums->vars['board_url']}/style_avatars/noavatar.gif'>";
August 5, 200519 yr This might be a nice default feature for some boards. I think this could be added as a setting quite easily.
August 5, 200519 yr um to make it valid change:return "<img src='{$ibforums->vars['board_url']}/style_avatars/noavatar.gif'>"; to return "<img src='{$ibforums->vars['board_url']}/style_avatars/noavatar.gif' border='0' alt='User has no selected avatar' />";
August 5, 200519 yr um to make it valid change:return "<img src='{$ibforums->vars['board_url']}/style_avatars/noavatar.gif'>"; to return "<img src='{$ibforums->vars['board_url']}/style_avatars/noavatar.gif' border='0' alt='User has no selected avatar' />"; Did you read this? When I said valid, I meant for the output of the image to be valid for xhtml.
August 5, 200519 yr you should of said that! :thumbsup: it sounded as though you meant make it valid, not make it meet W3C Standards!
Archived
This topic is now archived and is closed to further replies.