Avatar help with User Info block V5

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Avatar help with User Info block V5
LordMaximus
CZ Super Newbie
 Codezwiz Site Donator
LordMaximus has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 18, 2004
0.01 posts per day
Posts: 60
Points: 5,643
   
First I want to say that if there is any site on the net with great help and fantastic add-ons etc its Codezwiz! Thanks for being a great resource!

Ok..I have user info v5 installed. I have one modification to make and I'm not real sure how to do it. We use Avatars that are larger than norm...So with the default code on it jacks the page up with avatars enabled.

Here is the code:

if ($useavatars == 1) {
   //Avatars...
   $bbconf = array();
   $result = $db->sql_query("SELECT * FROM ".$prefix."_bbconfig");
   while(list($config_name, $config_value) = $db->sql_fetchrow($result)){
      $bbconf[$config_name] = $config_value;
   }
  if ($userinfo['user_allowavatar']) {
   if ($userinfo['user_avatar_type'] == 1)  {
   $content .= "<br /><br /><center><img src=\"".$bbconf['avatar_path']."/".$userinfo['user_avatar']."\"></center><br />\n";
   } elseif ($userinfo['user_avatar_type'] == 2) {
   $content .= "<br /><br /><center><img src=\"".$userinfo['user_avatar']."\"></center><br />\n";
   } elseif ($userinfo['user_avatar'] == "") {
   $content .= "<br /><br /><center><img src=\"".$bbconf['avatar_gallery_path']."/gallery/blank.gif\"></center>\n";
   } else {
   $content .= "<br /><br /><center><img src=\"".$bbconf['avatar_gallery_path']."/".$userinfo['user_avatar']."\"></center><br />\n";


Where do I make the changes to reduce the size of the avatar for the info use blocK and whats the best way? Can someone throw something in there and I can mess with the different sizes?

Any help would be much appreciated!
LordMaximus


Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Adjust the 100's to your liking.


if ($useavatars == 1) {
   //Avatars...
   $bbconf = array();
   $result = $db->sql_query("SELECT * FROM ".$prefix."_bbconfig");
   while(list($config_name, $config_value) = $db->sql_fetchrow($result)){
      $bbconf[$config_name] = $config_value;
   }
  if ($userinfo['user_allowavatar']) {
   if ($userinfo['user_avatar_type'] == 1)  {
   $content .= "<br /><br /><center><img height=\"100\" width=\"100\" src=\"".$bbconf['avatar_path']."/".$userinfo['user_avatar']."\"></center><br />\n";
   } elseif ($userinfo['user_avatar_type'] == 2) {
   $content .= "<br /><br /><center><img height=\"100\" width=\"100\" src=\"".$userinfo['user_avatar']."\"></center><br />\n";
   } elseif ($userinfo['user_avatar'] == "") {
   $content .= "<br /><br /><center><img height=\"100\" width=\"100\" src=\"".$bbconf['avatar_gallery_path']."/gallery/blank.gif\"></center>\n";
   } else {
   $content .= "<br /><br /><center><img height=\"100\" width=\"100\" src=\"".$bbconf['avatar_gallery_path']."/".$userinfo['user_avatar']."\"></center><br />\n";




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Avatar help with User Info block V5
LordMaximus
CZ Super Newbie
 Codezwiz Site Donator
LordMaximus has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 18, 2004
0.01 posts per day
Posts: 60
Points: 5,643
   
Yeah..I figured it out...Sorry I didn't update...



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum