Jump to content

no avatar image!

Featured Replies

Posted

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

bump

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.

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'>";

wow okay thanks!!!

This might be a nice default feature for some boards. I think this could be added as a setting quite easily.

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' />";

erm? did you make a mistake in the first post of the code???

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.

you should of said that! :thumbsup:

it sounded as though you meant make it valid, not make it meet W3C Standards!

thought you would of noticed by the changes lol.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.