setting it so that there is no default avatar to begin with?

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   setting it so that there is no default avatar to begin with?
carcinogen
CZ Newbie
carcinogen has been a member for over 20 year's 20 Year Member
Age: 37
Gender: Female
Status: Offline
Joined: Jul 10, 2004
0.00 posts per day
Posts: 16
Points: 1,986
   
[edit] I've more or less sorted out the first problem I had previously described in this post (it was an error in the original coding which I had to manually fix) ... now my main problem is that even if my users haven't specified any avatar at all in their profile, the broken image red 'x' still shows up beneath their user name. I suppose the default setting for phpNuke is for the "blank.gif" graphic to be displayed when no avatar has been specified (I deleted that particular image, which is why now I'm getting the red 'x'), but what I want is for no image to show up, at all.

I'm pretty certain that this is the section of coding that controls the default avatar settings and which I'm hoping I can somehow change to suit my needs (the first part):


        // Default Avatar MOD - Begin
        //
        if ( empty($poster_avatar) && $poster_id != ANONYMOUS)
        {
                $poster_avatar = '<img src="'.  $images['default_avatar'] .'" alt="" border="0" />';
        }
        if ( $poster_id == ANONYMOUS )
        {
                $poster_avatar = '<img src="'.  $images['guest_avatar'] .'" alt="" border="0" />';
        }
        //
        // Default Avatar MOD - End


Could anybody suggest a way for me to edit this bit of coding so that instead of the default avatar being displayed, no avatar shows up at all ?


Back to top Reply with quote
#2   
carcinogen
CZ Newbie
carcinogen has been a member for over 20 year's 20 Year Member
Age: 37
Gender: Female
Status: Offline
Joined: Jul 10, 2004
0.00 posts per day
Posts: 16
Points: 1,986
   
Wheee I managed to sort out my previous problem. ^____^ -proud !- But could somebody please help me out with this new one (as described above in my edit) ... ?



Back to top Reply with quote
#3   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.04 posts per day
Posts: 8089
Points: 494,430
   
That code above is for anonymous poster's. The code you will need to edit is in the modules/Your_Account/index.php. Look in the function activate.




_________________
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
#4   
carcinogen
CZ Newbie
carcinogen has been a member for over 20 year's 20 Year Member
Age: 37
Gender: Female
Status: Offline
Joined: Jul 10, 2004
0.00 posts per day
Posts: 16
Points: 1,986
   
... I feel like such a dork. Is this it ?


function activate($username, $check_num) {
    global $db, $user_prefix, $module_name, $language;
    $past = time()-86400;
    $db->sql_query("DELETE FROM ".$user_prefix."_users_temp WHERE time < $past");
    $sql = "SELECT * FROM ".$user_prefix."_users_temp WHERE username='$username' AND check_num='$check_num'";
    $result = $db->sql_query($sql);
    if ($db->sql_numrows($result) == 1) {
   $row = $db->sql_fetchrow($result);
   if ($check_num == $row[check_num]) {
       $db->sql_query("INSERT INTO ".$user_prefix."_users (user_id, username, user_email, user_password, user_avatar, user_regdate, user_lang) VALUES (NULL, '$row[username]', '$row[user_email]', '$row[user_password]', '$row[user_regdate]', '$language')");
       $db->sql_query("DELETE FROM ".$user_prefix."_users_temp WHERE username='$username' AND check_num='$check_num'");
       include("header.php");
       title(""._ACTIVATIONYES."");
       OpenTable();
       echo "<center><b>$row[username]:</b> "._ACTMSG."</center>";
       CloseTable();
       include("footer.php");
       die();
   } else {
       include("header.php");
       title(""._ACTIVATIONERROR."");
       OpenTable();
       echo "<center>"._ACTERROR1."</center>";
       CloseTable();
       include("footer.php");
       die();
   }
    } else {
   include("header.php");
   title(""._ACTIVATIONERROR."");
   OpenTable();
   echo "<center>"._ACTERROR2."</center>";
   CloseTable();
   include("footer.php");
   die();
    }

}


There was a bit in there linking to blank.gif which I've deleted, but the red 'x' still shows up and I have no idea what else to edit within that section of coding. Help, please ? =\


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