Avatar In Online List

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Avatar In Online List

    Code:
    $avlink = getavatar($user);
      if ($avlink=="")
      { 
        $sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$user."'"));
        if($sex[0]=='M')
             {
          echo "
    <img src=\"images/nophotoboy.gif\" alt=\"avatar\"/>
    ";
        }else if($sex[0]==&#39;F&#39;)
              {
                echo "
    <img src=\"images/nophotogirl.gif\" alt=\"avatar\"/>
    ";
              }else{
                     echo "
    <img src=\"images/nopic.jpg\" alt=\"avatar\"/>
    ";
                   }
      }else{
      echo "
    <img src=\"$avlink\" alt=\"avatar\"/>
    
    ";
      }
    when i add this to my online list it only show the nopic what must i do that it can show the avatar in the members profile i did check with me i have a avatar and it still show nopic icon

    #2
    This is how I do it on my site bro...
    Code:
    $avlink = getavatar($item[2]);
    if ($avlink!=""){
    echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }else{
    echo "<img src=\"images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>";
    }
          $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\"> $item[0]</a>";
          echo "
    ";
        echo "$item[1]
    ";
    
    }

    WapCHAT Forum Currenltly changing over to xhtml

    My Dowloads Site

    Comment


      #3
      just add
      $user = $item[2];
      above your coding

      Comment


        #4
        this will work try it

        Code:
        $avlink = getavatar($item[2]);
        if ($avlink!=""){
        echo "<img src=\"$avlink\" height=\"25\" width=\"25\" alt=\"avatar\"/>
        ";
        }else{
        echo "<img src=\"images/nopic.jpg\" height=\"25\" width=\"25\" alt=\"avatar\"/>
        ";
        }
        sigpic

        WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

        Comment


          #5
          hes trying to code male and female no-pics so that wont work lol

          his code is right it just needs
          $user = $item[2];
          adding above it.

          Comment


            #6
            I nw got avatar in my online list inbox and in my forum posts

            Comment


              #7
              looks like you are trying to copy someones site
              Advertise your mobile site for FREE with AdTwirl

              Comment


                #8
                Hehe gumslone im getting ideas all over the net

                Comment


                  #9
                  Hey GumSlone why moan just shows you have the ideas before everyone else....

                  Comment


                    #10
                    Not really ive gotten the idea from fimizone then ive seen 2wap have it lol so yea i guess im catching allot with the eye then trying to search for my site

                    Comment


                      #11
                      Waring gumslone lamar is copying again lol
                      Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                      Visit: WapMasterz Coming Back Soon!
                      _______
                      SCRIPTS FOR SALE BY SUBZERO
                      Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                      FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                      _______
                      Info & Tips
                      php.net
                      w3schools.com

                      Comment

                      Working...
                      X