cam drysdale Posted August 2, 2005 Share Posted August 2, 2005 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 Link to comment Share on other sites More sharing options...
cam drysdale Posted August 4, 2005 Share Posted August 4, 2005 bump Link to comment Share on other sites More sharing options...
Quillz Posted August 4, 2005 Share Posted August 4, 2005 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. Link to comment Share on other sites More sharing options...
DarkChris666 Posted August 4, 2005 Share Posted August 4, 2005 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'>"; Link to comment Share on other sites More sharing options...
cam drysdale Posted August 5, 2005 Share Posted August 5, 2005 wow okay thanks!!! Link to comment Share on other sites More sharing options...
Antony Posted August 5, 2005 Share Posted August 5, 2005 This might be a nice default feature for some boards. I think this could be added as a setting quite easily. Link to comment Share on other sites More sharing options...
DarkChris666 Posted August 5, 2005 Share Posted August 5, 2005 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' />"; Link to comment Share on other sites More sharing options...
cam drysdale Posted August 5, 2005 Share Posted August 5, 2005 erm? did you make a mistake in the first post of the code??? Link to comment Share on other sites More sharing options...
DarkChris666 Posted August 5, 2005 Share Posted August 5, 2005 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. Link to comment Share on other sites More sharing options...
cam drysdale Posted August 5, 2005 Share Posted August 5, 2005 you should of said that! :thumbsup: it sounded as though you meant make it valid, not make it meet W3C Standards! Link to comment Share on other sites More sharing options...
DarkChris666 Posted August 5, 2005 Share Posted August 5, 2005 thought you would of noticed by the changes lol. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.