http://www.muscle-book.com need to know if someone can make the popular members, into 2 sections, Popular Males and Popular Females.. i was told to edit this file here "Please check out include/functions_general.php line 1124 and you will see popular_users(). That is the function that generates the popular members array. You will need to modify is, or make a copy of that function that only generates a specific gender." // THIS FUNCTION RETURNS AN ARRAY CONTAINING THE MOST POPULAR USERS // INPUT: // OUTPUT: function popular_users() { global $setting, $database; $popular_users = NULL; // CACHING $cache_object = SECache::getInstance('serial'); if( is_object($cache_object) ) { $popular_users = $cache_object->get('popular_users'); } // RETRIEVAL //if( !is_array($popular_users) || empty($popular_users) ) if( !is_array($popular_users) ) { $sql = "SELECT count(se_friends.friend_user_id2) AS num_friends, se_users.user_id, se_users.user_username, se_users.user_fname, se_users.user_lname, se_users.user_photo FROM se_friends LEFT JOIN se_users ON se_friends.friend_user_id1=se_users.user_id WHERE se_friends.friend_status='1' AND se_users.user_search='1' GROUP BY se_users.user_id ORDER BY num_friends DESC LIMIT 20"; $resource = $database->database_query($sql); $popular_users = array(); while( $user_info = $database->database_fetch_assoc($resource) ) { $popular_user = new se_user(); $popular_user->user_info['user_id'] = $user_info['user_id']; $popular_user->user_info['user_username'] = $user_info['user_username']; $popular_user->user_info['user_photo'] = $user_info['user_photo']; $popular_user->user_info['user_fname'] = $user_info['user_fname']; $popular_user->user_info['user_lname'] = $user_info['user_lname']; $popular_user->user_displayname(); $popular_users[] = array( 'friend' => &$popular_user, 'total_friends' => $user_info['num_friends'] ); unset($popular_user); } // CACHE if( is_object($cache_object) ) { $cache_object->store($popular_users, 'popular_users'); } } return $popular_users; } // END popular_users() FUNCTION
I can easily do this for you. If you want to get in touch via PM or instant messaging, I can take a closer look at the exact changes you need (just code, or implement the code into the design, etc.) and we can discuss price and take it from there. Hope to hear from you soon!
Hi, I can do this..for you..i think there is a column in db "gender of user" as this link suggests there is.. http://www.muscle-book.com/search_advanced.php?task=browse&field_id=5&field_value=2 So it wont be a problem sorting the popular members in two section.. Let me know if you are interested..we can proceed further.. Thanks