Adding Profile Pics to members admin page

Backup and open manage.php
find

    $result_featured = array();
    $query = @mysql_query($result_sql);
    while ($result1 = @mysql_fetch_array($query)) {
       //get comments inforation
        $user_id = mysql_real_escape_string($result1['user_id']);

add this straight after

		###pics####
        $member_id = $result1['user_id'];
        $sql11 = "SELECT * FROM pictures WHERE user_id = $member_id AND approved ='yes'";
        $result11 = @mysql_query($sql11);
        if (@mysql_num_rows($result11) == 0) {
            // show place holder for no image uploaded by user at all
            $picture = $config['site_base_url'] . '/image_s/placeholder.png';
            $picture_array = array('picture' => $picture);
        }
        else {
            $results12 = mysql_fetch_array($result11);
            $result11_existing_file = $results12['file_name'];
            $result11_approved = $results12['approved'];
            // show current picture
            $picture = $config['site_base_url'] . '/pictures/' . $result11_existing_file;
            $picture_array = array('picture' => $picture);
        }
		#####

then find this

$result2 = @array_merge($result1,$video_array);

change it to this

$result2 = @array_merge($result1,$video_array,$picture_array);

then in your inner_management.htm file use this code to add the picture

2 Responses to “Adding Profile Pics to members admin page”

  1. jamie says:

    hey,

    Where about in inner_management.htm do i

    paste

    ??

    Could you email me back please. I might not be able to find this site again

  2. pugsx says:

    It really depends on where you want it I replaced the country field with it as I have no use for country.

Leave a Reply

Listed on BlogShares