Previous Thread
Next Thread
Print Thread
Hop To
#221111 01/14/2009 7:16 PM
Joined: Jun 2006
Posts: 464
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 464
Likes: 1
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 !!!
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
well if you look at the error most all of it does not even relate to ubb.
The first two lines reference vbulletin.
Then serveral lines reference photopost
The last line again states photopost and vb database.
In fact the only thing I see part of ubb is the reference to nonewposts.gif and newposts.gif


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 464
Likes: 1
M
Addict
Addict
M Offline
Joined: Jun 2006
Posts: 464
Likes: 1
yes just looked at that.. its coming from my random picture generator hmmm path issues I think..

False alarm I think


Happy Customer !!!
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Yes just looked at you site the photo gallery island is not working either. But also is not part of ubb just placed in a custom island.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Looks like a PhotoPost error


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (DennyP, 1 invisible), 969 guests, and 171 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)