if you go to who's online by using the link it is generally ok.. But if the page automatically refreshes you get this at the very top of the page. Sometimes it also shows this when you click the who's online link too.

========================

userinfo['usergroupid']; if ( $vbulletin->userinfo['membergroupids'] != "" ) { $mygroups .= ",".$vbulletin->userinfo['membergroupids']; } } $grouparr = explode( ",", $mygroups ); $query = "SELECT id,ugnoview FROM {$pp_db_prefix}categories"; $resultb = mysql_query($query); $ViewPerm = array(); while ( list( $catugid, $ugnoview ) = mysql_fetch_row($resultb) ) { $noview=0; $ViewPerm[$catugid] = 1; $allnoview = explode( ",", $ugnoview ); foreach ($allnoview as $key) { if (in_array($key, $grouparr) ) { $noview = 1; } } if ( $noview == 0 ) { $ViewPerm[$catugid]=0; } } mysql_free_result( $resultb ); } // // PhotoPost Categories // Get the list of categories from PhotoPost // $maincats = array(); $subcats[] = array(); $laston = array(); $x=0; $pp_cat_list = null; // First we need to cache the categories $query = "SELECT c.id, c.catname, c.description, c.catorder, c.parent, c.thumbs, c.children, c.photos, c.posts, p.id, p.user, p.userid, p.date, p.title, com.username, com.id, com.date, com.photo FROM {$pp_db_prefix}categories c LEFT JOIN {$pp_db_prefix}photos p ON c.lastphoto=p.id LEFT JOIN {$pp_db_prefix}comments com ON com.id=c.lastpost ORDER BY c.catorder ASC"; $boards = mysql_query($query); while ( $categories = mysql_fetch_row($boards) ) { if ( $categories[4] == 0 || $parent == $categories[0] ) { if ( $parent == 0 || $parent == $categories[0] ) { $maincats[$x]=$categories; // count the number of main categories $x++; } } $whichcat = $categories[0]; $subcats[$whichcat] = $categories; } mysql_free_result($boards); // Then, if we need to, we cache the last time the user was in each category if ( $UserID > 0 ) { $last = mysql_query("SELECT cat,laston FROM {$pp_db_prefix}laston WHERE userid=$UserID"); while ( list( $lastcat, $lasttime ) = mysql_fetch_row($last) ) { $laston[$lastcat] = $lasttime; } } $catcol = 0; // Cycle through the categories for ( $y=0; $y < $x; $y++ ) { list( $CatNumber, $CatTitle, $CatDesc, $mainorder, $maincatparent, $maincatthumbs, $mainchildren, $mainnumphotos, $mainnumposts, $mainlastphoid, $mainlastphoby, $mainlastphobyid, $mainlastphotime, $maintitle, $mainlastpostby, $mainlastpostbyid, $mainlastposttime, $mainlastpostlink ) = $maincats[$y]; if ( $mainchildren != "" ) { $mainchildren = "$mainchildren"; } else { $mainchildren = "$CatNumber"; } $processcats = explode( ",", $mainchildren ); // --------------------------------------------- // Now cycle through the boards in this category $firstpass = 0; while ( list($num, $eachcat) = each($processcats) ) { list( $CatID, $Title, $Description, $order, $catparent, $catthumbs, $Children, $showphotos, $showcomments, $lastphoid, $lastphoby, $lastphobyid, $lastphotime, $photitle, $lastpostby, $lastpostbyid, $lastposttime, $lastpostlink ) = $subcats[$eachcat]; $catdepth = 0; // First thing is to check the indent level $chkparent = $catparent; do { if ( $chkparent == 0 || $chkparent == $parent ) { break; } $chkparent = $subcats[$chkparent][4]; $catdepth++; } while ( $chkparent != 0 ); // This is the setting that determines how many levels you will print on the main index // A setting of 1 just means the first level of subcats under the main categories if ( ($catdepth > $showlevels) || ($showmg == 1 && $CatID == 500) || $ViewPerm[$CatID] == 1 ) { continue; } // Now add up the number of photos per child $numnew = 0; if ( $UserID > 0 && ($lastphotime > $laston[$CatID] || $lastposttime > $laston[$CatID]) ) { $numnew = 1; } if ( $Children != "" ) { $processkids = explode( ",", $Children ); while ( list($num, $eachkid) = each($processkids) ) { $showphotos += $subcats[$eachkid][7]; $showcomments += $subcats[$eachkid][8]; if ( $UserID > 0 && ($lastphotime > $laston[$eachkid] || $lastposttime > $laston[$eachkid]) ) { $numnew = 1; } } } // ----------------------------------------------- // Open a table on the first pass through this cat if (!$firstpass && $CatID != MOBILE_CAT) { if ( $CatID == 500 || $CatID == $mobilecat ) { $pp_cat_list .= << $CatTitle PPPRINT; } else { $catcol++; $colimg = &$vbcollapse["collapseimg_photo_$catcol"]; $colobj = &$vbcollapse["collapseobj_photo_$catcol"]; $pp_cat_list .= << $CatTitle PPPRINT; } $firstpass = 1; } // -------------------------- // Which folder do we display $boardfolder = "nonewposts.gif"; if ( $numnew > 0 || ($UserID == 0 && $showphotos > 0) ) { $boardfolder = "newposts.gif"; } if ( $CatID == 500 ) { $whichcat = "showmembers"; } elseif ( $CatID == MOBILE_PROC ) { $whichcat = "showmobile"; } else { $whichcat = "showgallery"; } $pp_cat_list .= <<
$Title
$Description
$showphotos $showcomments PPPRINT; // If you want a "number of new photos/comments indicator, you have a couple extra // queries per displayed category //if ( $numnewp != 0 ) $showphotos = "$showphotos $numnew"; //if ( $numnewc != 0 ) $showcomments = "$showphotos $numnew"; // vB calls to format time $pptime = @date("F d, y", $lastphotime); //$pptime .= " " . @date("h:i A", $lastphotime) . ""; if ( $showphotos != 0 ) { $pp_cat_list .= <<
$photitle
by $lastphoby on $pptime
PPPRINT; } else { $pp_cat_list .= <<Never PPPRINT; } $pp_cat_list .= << PPPRINT; } } $photopostcats = null; if ( $pp_headers == "yes" ) { $photopostcats = << Photo Galleries Images Posts Last Photo PPPRINT; } $photopostcats .= $pp_cat_list; if ( $pp_headers == "yes" ) { $photopostcats .= << PPPRINT; } // // End PhotoPost Categories // // If you use PhotoPost in a seperate database from vB, you'll need to reselect the vB database! //mysql_select_db ("vb_database"); ?>


Happy Customer !!!