Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

i dont see the avatars

Asked Modified Viewed 2,374 times
T
theone23
T
  • Newbie, joined since
  • Contributed 2 posts on the community forums.
  • Started 2 threads in the forums
  • Started this discussions
asked
Newbie

i have here a code that shows members from a group but it dont shows the avatars.

the code:
[code]global $userdata, $locale, $db_prefix;
   $isMember = false;
   $owner = dbarray(infDbQuery("SELECT int_owner FROM ".$db_prefix."interest_groups WHERE int_id=".$grpid));
   $owner = $owner['int_owner'];
   $sql = "SELECT usr.user_name, memb.* "
        ."FROM ".$db_prefix."interest_groups grp, ".$db_prefix."users usr, ".$db_prefix."interest_members memb "
        ."WHERE grp.int_id = memb.int_id AND memb.user_id = usr.user_id AND grp.int_id =".$grpid." AND memb.user_id=".$owner."";
   $sql2 = "SELECT grp.int_owner, usr.user_name, memb.* "
        ."FROM ".$db_prefix."interest_groups grp, ".$db_prefix."users usr, ".$db_prefix."interest_members memb "
        ."WHERE grp.int_id = memb.int_id AND memb.user_id = usr.user_id AND grp.int_id =".$grpid." AND memb.user_id!=".$owner." "
        ."ORDER BY user_name";
   $owner = dbarray(infDbQuery($sql));

   $result = infDbQuery($sql2);



   if ($owner['user_id'] == $userdata['user_id']) {
      $isMember = true;
   }
   if ($owner['igm_profilepage'] == "") {
      echo "<td class=\"tbl1\" align='center' >[color=#ff0033]<img src='".BASEDIR."images/avatars/".$data['user_avatar']."'width='75' height='80' alt='" .$data['user_name']."'>[/color]<br><a href='".BASEDIR."profile.php?lookup=".$owner['user_id']."' title='" .$data['user_name']."'>".trimlink($owner['user_name'],8)."</a> (x)</td>";
   } else {
      echo "[color=#ff0000]<img src='".BASEDIR."images/avatars/".$data['user_avatar']."'width='75' height='80' alt='" .$data['user_name']."'>[/color]<br><a href='".BASEDIR."profile.php?lookup=".$owner['user_id']."' title='" .$data['user_name']."'>".trimlink($owner['user_name'],8)." (x)</a>";   }
   $altrow = 2;
   while ($data = dbarray($result)) {
      if ($data['user_id'] == $userdata['user_id']) {
         $isMember = true;
      }
         if (trim($data['igm_profilepage']) == "") {
         echo "<td class=\"tbl".$altrow."\" align='center'>[color=#cc0033]<img src='".BASEDIR."images/avatars/".$data['user_avatar']."'width='75' height='80' alt='" .$data['user_name']."'>[/color]<br><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='" .$data['user_name']."'>".trimlink($data['user_name'],8)."</a> (x)</td>";
         if ($data['user_id'] == $userdata['user_id']){
             
          }
         elseif (checkOwner($grpid, $userdata['user_id'])) {
            echo "<a href=\"interest_group.php?action=kick_user&userid=".$data['user_id']."&grpid=".$grpid."\">".$locale['INT324']."</a>";
         }
         echo "";
      } else {
         echo "<tr><td class=\"tbl".$altrow."\" ><a href=\"interest_group.php?action=showp&grpid=".$grpid."&uid=".$data['user_id']."\">"
         .$data['user_name']."</a></td><td class=\"tbl".$altrow."\" align=\"right\">";
         if ($data['user_id'] == $userdata['user_id']){ echo "<a href=\"interest_group.php?action=leave&grpid=".$grpid."\">".$locale['INT302']."</a>";}
         elseif (checkOwner($grpid, $userdata['user_id']) || checkRights("IP")) {
            echo "<a href=\"interest_group.php?action=kick_user&userid=".$data['user_id']."&grpid=".$grpid."\">".$locale['INT324']."</a>";
         }
         
         
         echo "</td></tr>";
      }
      if ($altrow == 1) {
         $altrow = 2;
      } else {
         $altrow = 1;
      }
   }
[/code]
0 replies
There are no post found.

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 0 posts
  • Votes 0 votes
  • Topic users 1 member

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet