Welcome to the Australian Ford Forums forum.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and inserts advertising. By joining our free community you will have access to post topics, communicate privately with other members, respond to polls, upload content and access many other special features without post based advertising banners. Registration is simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Please Note: All new registrations go through a manual approval queue to keep spammers out. This is checked twice each day so there will be a delay before your registration is activated.

Go Back   Australian Ford Forums > General Topics > Ford Forums Central > Site Support

Site Support If something isn't working or you have a suggestion ( a nice one !! ) let us know here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 30-03-2007, 02:52 AM   #1
LG
FF.Com.Au Hardcore
 
LG's Avatar
 
Join Date: Dec 2004
Location: Melbourne, Victoria
Posts: 2,434
Default Index Page

Only on the Index Page, do i get a bunch of php code up the top:

0 ) { $query2 = "SELECT cat,laston FROM {$pp_db_prefix**laston WHERE userid=$UserID"; $last = mysql_query($query2); while ( list( $lastcat, $lasttime ) = mysql_fetch_row($last) ) { $laston[$lastcat] = $lasttime; ** mysql_free_result($last); ** $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]; $CatTitle = stripslashes($CatTitle); $CatDesc = stripslashes($CatDesc); 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; $Title = stripslashes($Title); $Description = stripslashes($Description); // 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 ) continue; if ( $showmg == 1 && $CatID == 500 ) continue; // Make sure they have permission to be here if ( $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 ) { $photitle = stripslashes($photitle); $pp_cat_list .= <<
$photitle
by $lastphoby on $pptime
PPPRINT; ** else { $pp_cat_list .= <<Never PPPRINT; ** $pp_cat_list .= << PPPRINT; ** ** $photopostcats = ""; if ( $pp_headers == "yes" ) { $photopostcats = <<PPPRINT; ** $photopostcats .= $pp_cat_list; if ( $pp_headers == "yes" ) { $photopostcats .= <<
Photo Galleries Images Posts Last Photo
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"); ?>


__________________
AUIII Falcon Forte, with SIX Appeal
LG is offline   Reply With Quote Multi-Quote with this Post
 


Forum Jump


All times are GMT +11. The time now is 11:18 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Other than what is legally copyrighted by the respective owners, this site is copyright www.fordforums.com.au
Positive SSL