Jump to content

no avatar image!


Guest cam drysdale

Recommended Posts

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

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

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

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

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...