$TMPL['premium_member_carousel_list'] = '';
$TMPL['new_featured_members_side_list'] = '';
$TMPL['new_featured_members_side_list_row'] = '';
$result = $DB->query("SELECT username,url,title,description,category FROM {$CONF['sql_prefix']}_sites WHERE active = 1 ORDER BY RAND()", 10, 0, __FILE__, __LINE__);
while ($row = $DB->fetch_array($result)) {
$TMPL['newest_featured_members_title'] = $row['title'];
$TMPL['newest_featured_members_url'] = $row['url'];
$TMPL['newest_featured_members_title'] = $row['title'];
$TMPL['newest_featured_members_category'] = $row['category'];
$TMPL['newest_featured_members_username'] = $row['username'];
//Show Screenshots? (VisioList API Access required)
if (!empty($CONF['visio_screen_api'])) {
$parse = parse_url($TMPL['newest_featured_members_url']);
$screenshot_url = $parse['host'];
$screenshot_url = str_ireplace('/','-',"$screenshot_url");
$screenshot_url = $screenshot_url.'_small.jpg';
if (file_exists("screens/$screenshot_url")) {
$TMPL['screenshot'] = "<br /><img src=\"screens/{$screenshot_url}\" alt=\"{$TMPL['newest_featured_members_title']}\" title=\"{$TMPL['newest_featured_members_title']}\" class=\"vistip screenshot\" />";
}
else {
$TMPL['screenshot'] = '';
}
}
$i++;
if($i == 1){$active = ' active';}else{$active = '';}
$TMPL['new_featured_members_side_list_row'] .= base::do_plugin_skin('./plugins/NewFeaturedMembers','new_featured_members_side_list_row');
}
$TMPL['sidebar_1_bottom'] .= base::do_plugin_skin('./plugins/NewFeaturedMembers','new_featured_members_side_list');