I have modified the getDisplayTab function on line 65 in cb.profilegallery.php to show the users who have images waiting for approve.
[code:1] function getDisplayTab($tab,$user,$ui) {
global $my,$mainframe,$mosConfig_lang, $database;
$this->_getLanguageFile();
$tabparams=$this->_pgGetTabParameters($user);
$htmltext1 = "";
if (!$tabparams["pgmanagementtabenabled"]) return $htmltext1;
// Is user a moderator?
$isModerator=isModerator($my->id);
if (!$isModerator) return $htmltext1;
$query = "SELECT DISTINCT u.id, u.username ";
$query .= "\n FROM #__comprofiler_plug_profilegallery as c, #__users as u";
$query .= "\n WHERE c.pgitemapproved = 0";
$query .= "\n and u.id = c.userid";
$database->setQuery($query);
$rows = $database->loadObjectList();
if($tab->description != null) {
$htmltext1 .= "\t\t<div class=\"tab_Description\">";
$htmltext1 .= unHtmlspecialchars(getLangDefinition($tab->description));
$htmltext1 .= "</div>\n";
$htmltext1 .= "<br />\n";
if (count($rows) > 0) {
foreach($rows as $row) {
$htmltext1 .= '<a href="index.php?option=com_comprofiler&task=userProfile&user='.$row->id.'">'.$row->username.'</a><br />';
}
}
}
return $htmltext1;
}
[/code:1]
hf ..