mecha_query($sql)) ){ $dbMain->mecha_breakd('Could not retrieve member data for portfolio.', $sql); } $row = $dbMain->mecha_fetchrow($result); $uName = $row[username]; if (!$filter) $filter = $row[portfType]; if (!$sort) $sort = $row[portfSort]; $excludes = $row[portfExclude]; $dbMain->mecha_freeresult($result); } $titletxt .= $uName.'\'s portfolio'; ?> '; $noResultsFound .= ''; $noResultsFound .= '
Invalid user ID specified. Please close this window and try again.
"); $colspanz = 3; // sort and type stuffs ######################################################################################### ######################################################################################### ######################################################################################### ######################################################################################### ######################################################################################### # This page only displays ENDED slag/faceoff/volley/graffiti entries ######################################################################################### ######################################################################################### ######################################################################################### ######################################################################################### $slagWhereSQL = "AND c.slagEnd < Now() AND c.isGraffiti = 0 AND e.entWidth >= 200"; $grafWhereSQL = 'AND c.graffiClosed < now() AND c.isGraffiti = 1 AND e.entWidth >= 200'; // excludes if ($excludes) { //string format is S:123 or G:123 or V:123 $sEntExclude = array(); $gEntExclude = array(); $tmpExcludes = explode(",", $excludes); foreach($tmpExcludes as $value){ if ($value{0} == 'S' || $value{0} == 'V'){ $sEntExclude[] = substr($value, 2); }elseif ($value{0} == 'G'){ $gEntExclude[] = substr($value, 2); } } if (sizeof($sEntExclude)){ $sqlExcludeSlag = implode(",", $sEntExclude); $slagWhereSQL .= " AND e.entID NOT IN($sqlExcludeSlag)"; } if (sizeof($gEntExclude)){ $sqlExcludeGraf = implode(",", $gEntExclude); $grafWhereSQL .= " AND e.entID NOT IN($sqlExcludeGraf)"; } } // define $totalentcount = $ttlSlag = $ttlFace = $ttlGraf = $ttlVolley = 0; $vsUIDs = array(); // Get total entries $sql = "SELECT e.entID, e.collab, c.slagType, c.partici1, c.partici2, c.isGraffiti FROM $m.entries e, $m.slags c WHERE e.slagID = c.slagID AND (e.userID = $uid OR e.collab = $uid) AND c.isHidden = 0 $slagWhereSQL UNION SELECT e.entID, e.hideCmt as gak1, c.graffiType, c.sugg as gak2, c.sugg as gak3, c.isGraffiti FROM $gz.entries e, $gz.contests c WHERE e.graffiID = c.graffiID AND e.userID = $uid AND c.isHidden = 0 $grafWhereSQL"; if ( !($result = $dbMain->mecha_query($sql)) ) { $dbMain->mecha_breakd('Could not retrieve entry count for portfolio.', $sql); } //$totalentcount = $dbMain->mecha_numrows($result); while($row = $dbMain->mecha_fetchrow($result)) { if ($row[isGraffiti] == 1) { $ttlGraf++; }else{ switch ($row[slagType]) { case 1: $ttlSlag++; break; case 2: $ttlSlag++; break; case 3: $ttlFace++; break; case 4: $ttlFace++; break; case 5: $ttlSlag++; break; case 6: $ttlVolley++; break; default: break; } if ($row[collab] > 0) $vsUIDs[] = $row[collab]; if ($row[partici1] > 0 && $row[partici1] != $uid) $vsUIDs[] = $row[partici1]; if ($row[partici2] > 0 && $row[partici2] != $uid) $vsUIDs[] = $row[partici2]; } $totalentcount++; } $dbMain->mecha_freeresult($result); $ttlSlagFace = $ttlSlag + $ttlFace; // set default type based on entry count... if ($filter != 'slagface' && $filter != 'graf' && $filter != 'volley'){ $filter = ($ttlSlagFace >= $ttlGraf) ? 'slagface' : 'graf'; if ($ttlVolley > $ttlSlagFace || $ttlVolley > $ttlGraf) $filter = 'volley'; } $sqlBest = ($filter == 'graf') ? 'numVoters' : 'entAvg'; // no sorting by Views OR Comments for volleybattle entries if ($filter == 'volley' && ($sort == 'views' || $sort == 'comments')) unset($sort); //sort switch ($sort) { case 'date': $sqlORDER = "slagBegin DESC, slagID DESC, entCreated DESC"; $sortLinkB = ''.(($filter == 'graf') ? 'most votes' : 'best average').''; $sortLinkC = 'most comments'; $sortLinkF = 'most favorites'; $sortLinkD = 'most recent'; break; case 'faves': $sqlORDER = "numScraps DESC, ".$sqlBest." DESC, slagBegin DESC, slagID DESC"; $sortLinkB = ''.(($filter == 'graf') ? 'most votes' : 'best average').''; $sortLinkC = 'most comments'; $sortLinkF = 'most favorites'; $sortLinkD = 'most recent'; break; case 'comments': $sqlORDER = "numComments DESC, slagBegin DESC, slagID DESC, entAvg DESC"; $sortLinkB = ''.(($filter == 'graf') ? 'most votes' : 'best average').''; $sortLinkC = 'most comments'; $sortLinkF = 'most favorites'; $sortLinkD = 'most recent'; break; /* case 'views': $sqlORDER = "numViews DESC, slagBegin DESC, slagID DESC, entAvg DESC"; $sortLinkB = ''.(($filter == 'graf') ? 'most votes' : 'best average').''; $sortLinkC = 'most comments'; $sortLinkF = 'most favorites'; $sortLinkD = 'most recent'; break; */ default: $sqlORDER = $sqlBest." DESC, slagBegin DESC, slagID DESC, entTitle DESC"; $sort = 'best'; $sortLinkB = ''.(($filter == 'graf') ? 'most votes' : 'best average').''; $sortLinkC = 'most comments'; $sortLinkF = 'most favorites'; $sortLinkD = 'most recent'; break; } // filter switch ($filter) { case 'slagface': $slagWhereSQL .= " AND (slagType <= 4)"; $grafWhereSQL .= " AND isGraffiti = 0"; $displaymems = $ttlSlagFace; $filterEntText = 'Slag/Faceoff'; break; case 'graf': $slagWhereSQL .= " AND isGraffiti = 1"; $displaymems = $ttlGraf; $filterEntText = 'Graffiti'; break; case 'volley': $slagWhereSQL .= " AND (slagType = 6)"; $grafWhereSQL .= " AND isGraffiti = 0"; $displaymems = $ttlVolley; $filterEntText = 'Volleybattle'; break; default: break; //this should never happen } #end preparations ############################################################################################################################# if ($totalentcount > 0) { //ENTRIES //////////// $i = $mems = 0; $graphSlag = array(); $graphGraf = array(); // determine pagination: // $display = 10; //date_format(c.graffiLive,'%m/%d/%Y') $sql = "SELECT e.entID, e.entAvg, date_format(c.slagBegin,'%b %e') as showDate, c.slagBegin as tmpstarts , c.slagEnd, c.isGraffiti FROM $m.entries e, $m.slags c WHERE e.slagID = c.slagID AND (e.userID = $uid OR e.collab = $uid) AND c.isHidden = 0 $slagWhereSQL UNION SELECT e.entID, e.numVotes, date_format(c.graffiLive,'%b %e') as showDate, c.graffiLive as tmpstarts , c.graffiClosed, c.isGraffiti FROM $gz.entries e, $gz.contests c WHERE e.graffiID = c.graffiID AND e.userID = $uid AND c.isHidden = 0 $grafWhereSQL ORDER BY tmpstarts DESC"; if ( !($result = $dbMain->mecha_query($sql)) ) { $dbMain->mecha_breakd('Could not retrieve entries for history page pagination.', $sql); } // if ($mechaGrpTopAdm) echo '

'.$sql.'

'; while($row = $dbMain->mecha_fetchrow($result)) { if ($row[slagEnd] <= $when) { $tmpstarts = $row[showDate].'|'.$mems; if ($row[isGraffiti] == 1){ $graphGraf["$tmpstarts"] = $row[entAvg]; }else{ $graphSlag["$tmpstarts"] = $row[entAvg]; } } $mems++; } $dbMain->mecha_freeresult($result); // if there are no entries found, set variable (to display below) unset($noResultsFound); if ($mems == 0) { $noResultsFound = '
'; $noResultsFound .= '
Sorry, '.$uName.' has not created any '.$filterEntText.' entries.'; $noResultsFound .= '

Please choose a different contest type.'; $noResultsFound .= '


'; $noResultsFound .= '
'; $noResultsFound .= ''; $noResultsFound .= ''; $noResultsFound .= '
'; $noResultsFound .= '
'; $noResultsFound .= '©2003-'.date("Y").' Mechapixel.com'; $noResultsFound .= '
'; $noResultsFound .= ''; } $divide = $mems / $display; $pages = ceil($divide); if(!$pid || $pid < 1) { $pid = "1"; } elseif($pid >= $pages) { $pid = $pages; } if($pid == "1") { $start = "0"; } else { $start = $display * ($pid - 1); } // fetch graffiti stuff for placement OR Vs/collab usernames for slags/faceoffs/volleys $gArr = Array(); $placeArr = Array(); $vsUnameArr = Array(); if ($filter == 'graf') { $sql = "SELECT e.graffiID FROM $gz.entries e, $gz.contests s WHERE e.userID = $uid AND e.graffiID = s.graffiID AND s.isHidden = 0"; if ( !($result = $dbMain->mecha_query($sql)) ){ $dbMain->mecha_breakd('Could not retrieve graffiti ID for place check.', $sql); } while($row = $dbMain->mecha_fetchrow($result)) { $gArr[] = $row[graffiID]; } $dbMain->mecha_freeresult($result); if (sizeof($gArr) >= 1) // check for number of first place finishes { $graffIDz = implode(",", $gArr); $tmpID = 0; $sql = "SELECT entID, graffiID, numVotes, userID FROM $gz.entries WHERE graffiID IN ($graffIDz) ORDER BY graffiID ASC, numVotes DESC"; if ( !($result = $dbMain->mecha_query($sql)) ){ echo '
UID: '.$uid.'
SQL: '.$sql.'

'; $dbMain->mecha_breakd('Could not retrieve graffiti entry place stats.', $sql); } while($row = $dbMain->mecha_fetchrow($result)) { $tmpUser = $row[userID]; if ($tmpID != $row[graffiID]) { $tmpID = $row[graffiID]; $tmpCount = 1; $tmpVotes = 0; $entPleece = 1; } if ($tmpCount != 1 && $tmpVotes != $row[numVotes]){ $entPleece = $tmpCount; } if ($tmpUser == $uid) $placeArr[$row[entID]] = $entPleece; $tmpVotes = $row[numVotes]; $tmpCount++; } $dbMain->mecha_freeresult($result); } } else { if (sizeof($vsUIDs)) { $vsUIDsNoDupe = array_unique($vsUIDs); $vsUIDsql = implode(",", $vsUIDsNoDupe); $sql = "SELECT username, userid FROM $f.user WHERE userid IN($vsUIDsql)"; if ( !($result = $dbMain->mecha_query($sql)) ){ $dbMain->mecha_breakd('Could not retrieve vs and collab usernames.', $sql); } while($row = $dbMain->mecha_fetchrow($result)) { $vsUnameArr[$row[userid]] = $row[username]; } $dbMain->mecha_freeresult($result); } } } else { $noResultsFound = ''; $noResultsFound .= ''; $noResultsFound .= '

'.$uName.' has not yet created any entries to show off!'; $noResultsFound .= '


'; $noResultsFound .= ''; $noResultsFound .= ''; $noResultsFound .= ''; $noResultsFound .= ''; $noResultsFound .= '
'; $noResultsFound .= '[close window]'; $noResultsFound .= '


'; $noResultsFound .= '©2003-'.date("Y").' Mechapixel.com'; $noResultsFound .= '
'; $noResultsFound .= ''; } if ($totalentcount > 0) { // echo '
'; //style="padding: 5px; float: right; position: absolute; right: 4px; top: 9px;">'; echo '
'; echo ''; echo ''; echo ''; switch ($filter){ case 'slagface': $navimg1 = 'portfolio-slag-on.gif'; $navimg2 = 'portfolio-graff-off.gif'; $navimg3 = 'portfolio-volley-off.gif'; break; case 'graf': $navimg1 = 'portfolio-slag-off.gif'; $navimg2 = 'portfolio-graff-on.gif'; $navimg3 = 'portfolio-volley-off.gif'; break; case 'volley': $navimg1 = 'portfolio-slag-off.gif'; $navimg2 = 'portfolio-graff-off.gif'; $navimg3 = 'portfolio-volley-on.gif'; break; default: break; } echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
'; echo ''.$uName.''; echo '
'; echo '
'; echo 'X'; echo '
'; echo ''; echo ''; echo ''; echo '
'; echo '
'; echo $sortLinkB; echo '  o  '; if ($filter != 'volley') echo $sortLinkC; if ($filter != 'volley') echo '  o  '; echo $sortLinkF; echo '  o  '; echo $sortLinkD; echo '
'; echo '
'; echo '
'; } ?> '; // display NO RESULTS clause (will be empty if the user has created any entries at all) if ($noResultsFound) { echo $noResultsFound; die(); } else { $j = 1; $trophesSlag1 = $trophesSlag2 = $trophesSlag3 = $trophesFace = $trophesGraf = $trophesVol = 0; //////////////////////////////////////////////////////////////////////////////// // get entries for display in table $sql = "SELECT e.entID, e.entTitle, e.entDesc, e.entCreated, e.numVoters, e.entAvg, e.numComments , e.numViews, e.numScraps, e.numEmails, e.entRandom, e.entExt, e.entPlace, e.vRndPlace, e.entWidth , e.entHeight, e.fullWidth, e.fullHeight, e.collab , c.slagID, c.slagType, c.volleyID, c.slagTitle, c.slagDesc, c.particiNames, c.numEntries, c.slagBegin , c.slagEnd, c.isGraffiti, c.origFile, c.origExt, c.partici1, c.partici2 , date_format(c.slagBegin,'%M %e %Y') as entDate , date_format(e.entCreated,'%M %e %Y') as entCrea FROM $m.entries e, $m.slags c WHERE e.slagID = c.slagID AND (e.userID = $uid OR e.collab = $uid) AND c.isHidden = 0 $slagWhereSQL UNION SELECT e.entID, e.entTitle, e.entTitle as Nadas, e.entCreated, e.numVotes, e.votesPct, e.numComments , e.numViews, e.numScraps, e.numEmails, e.entUsername, e.entExt, e.hideCmt as blahs, e.hideCmt, e.entWidth , e.entHeight, e.fullWidth, e.fullHeight, e.hideCmt as gak1 , c.graffiID, c.graffiType, c.sugg, c.graffiTitle, c.graffiDesc, c.origFile, c.graffiEntries, c.graffiLive , c.graffiClosed, c.isGraffiti, c.origFile, c.origExt, c.sugg as gak2, c.sugg as gak3 , date_format(c.graffiLive,'%M %e %Y') as entDate , date_format(e.entCreated,'%M %e %Y') as entCrea FROM $gz.entries e, $gz.contests c WHERE e.graffiID = c.graffiID AND e.userID = $uid AND c.isHidden = 0 $grafWhereSQL ORDER BY $sqlORDER LIMIT $start,$display"; if ( !($result = $dbMain->mecha_query($sql)) ) { $dbMain->mecha_breakd('Could not retrieve entries for history page.', $sql); } while($row = $dbMain->mecha_fetchrow($result)) { // define stuff $slagid = $row['slagID']; $volleyid = $row['volleyID']; $slagType = $row['slagType']; $slagBegins = $row['slagBegin']; $slagEnds = $row['slagEnd']; $totalEnts = $row['numEntries']; $origFile = $row['origFile']; $origExt = $row['origExt']; $collab = $row['collab']; $partici1 = $row['partici1']; $partici2 = $row['partici2']; $entid = $row['entID']; $entPlace = $row['entPlace']; $entTitle = $row['entTitle']; $entDesc = $row['entDesc']; $entDate = $row['entDate']; $entCrea = $row['entCrea']; $entWidth = $row['entWidth']; $entHeight = $row['entHeight']; $entFullWidth = $row['fullWidth']; $entFullHeight = $row['fullHeight']; $numVoters = $row['numVoters']; $entAvg = $row['entAvg']; $numComments = $row['numComments']; $numViews = number_format($row['numViews']); $numScraps = $row['numScraps']; $numEmails = $row['numEmails']; unset($isVolley); $colorz = ($j%2 == 0) ? '#3A3A3A' : '#444444'; //with black bg: #212121 and 2e2e2e // $picborderz = '#464646'; //($j%2 == 0) ? '#3a3a3a' : '#484848'; // if (strlen($entTitle) > 20) $entTitle = substr($entTitle, 0, 18).'..'; #/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/ #/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/ #/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/ # graffiti or other entry? if ($row[isGraffiti] == 1) { $entVotes = $numVoters; $entDesc = $entCollabs = $entVsWho = ''; $thisTheme = ($slagType == 1 || $slagType == 2) ? 1 : 0; // sets value to 1 if theme OR photo contest switch ($slagType){ case 1: $slgType = 'Graffiti Theme'; break; case 2: $slgType = 'Photograffi'; break; default: $slgType = 'Graffiti STP'; break; } $typeDot = 'portEntryDot-graf.gif'; $slgTitle = ''.$row['slagTitle']. ''; $entViewLink = 'view all'; $slgDesc = nl2br(html_entity_decode($row[slagDesc])); $slgTick = '  ['.$totalEnts.' Entries]'; // $numComments = ($numComments > 0) ? ''.$numComments.'' : $numComments; //build link: // determine folder $graffiFolder = fetchGraffiFolder($slagid); $popthmb = $graffiFolder.'/'.$entid.$row[entRandom].'.'.$row[entExt]; $popfull = $graffiFolder.'/'.$entid.$row[entRandom].'-f.'.$row[entExt]; $entTitle = ''.$entTitle.''; if (MECHANON){ $entLink = ''.str_replace(''; $fullEntLink = $entFullWidth.'x'.$entFullHeight; }else{ $entLink = ''; // original popup // $entLink = 'View the full version of '.str_replace(''; $fullEntLink = ''.$entFullWidth.'x'.$entFullHeight.''; //.(($entFullWidth == $entWidth) ? '' : ' (+'.(round((($entFullWidth-$entWidth)/$entWidth*100),1)).'%)'); } $showTheO = ($thisTheme == 1) ? '' : $graffiFolder.'/'.$origFile.'.'.$origExt; $showTheOThumb = ($thisTheme == 1) ? '' : $graffiFolder.'/'.$origFile.'-t.'.$origExt; // avg/ownage $entOwnage = number_format(($entAvg*100),2) . '%'; $entAvg = 0; //determine if trophy image will be displayed $entPlace = $placeArr[$entid]; if ($entPlace == 1) { $entPlace = '1st First Place'; }else{ switch ($entPlace){ case 1: $nth = 'st'; break; case 2: $nth = 'nd'; break; case 3: $nth = 'rd'; break; case 4: $nth = 'th'; break; case 5: $nth = 'th'; break; case 6: $nth = 'th'; break; case 7: $nth = 'th'; break; case 8: $nth = 'th'; break; case 9: $nth = 'th'; break; case 10: $nth = 'th'; break; case 11: $nth = 'th'; break; case 12: $nth = 'th'; break; case 13: $nth = 'th'; break; default: if (substr($entPlace, -1) == 1){ $nth = 'st'; }elseif (substr($entPlace, -1) == 2){ $nth = 'nd'; }elseif (substr($entPlace, -1) == 3){ $nth = 'rd'; }else{ $nth = 'th'; } break; } $entPlace = $entPlace.$nth; } } #/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/ #/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/ #/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/ else //slag { $entVotes = $entOwnage = 0; //partner? $entCollabs = ($collab > 0) ? ''.$vsUnameArr[$collab].'' : ''; //Vs? if ($partici1 > 0 && $partici1 != $uid){ $entVsWho = $vsUnameArr[$partici1] . ' :: portfolio'; }elseif ($partici2 > 0 && $partici2 != $uid){ $entVsWho = $vsUnameArr[$partici2] . ' :: portfolio'; }else{ $entVsWho = ''; } switch ($slagType){ case '1': $slgType = 'Slag Theme'; $thisTheme = 1; $typeDot = 'portEntryDot-slag.gif'; break; case '2': $slgType = 'Slag STP'; $thisTheme = 0; $typeDot = 'portEntryDot-slag.gif'; break; case '3': $slgType = 'Faceoff Theme'; $thisTheme = 1; $typeDot = 'portEntryDot-face.gif'; break; case '4': $slgType = 'Faceoff STP'; $thisTheme = 0; $typeDot = 'portEntryDot-face.gif'; break; case '5': $slgType = 'Tennislag'; $thisTheme = 0; $typeDot = 'portEntryDot-slag.gif'; break; case '6': $slgType = 'Volleybattle'; $isVolley = 1; $thisTheme = 1; $typeDot = 'portEntryDot-volley.gif'; break; default: $slgType = $typeDot = ''; break; } $slgType .= ''; //determine if trophy image will be displayed if ($slagType == 1 || $slagType == 2){ if ($entPlace == 1 ){ $entPlace = '1st First Place'; }elseif ($entPlace == 2){ $entPlace = '2nd Second Place'; }elseif ($entPlace == 3){ $entPlace = '3rd Third Place'; } } elseif ( ($slagType == 3 || $slagType == 4) && $entPlace == 1 ){ $entPlace = '1st Faceoff Win'; } elseif ($isVolley){ $entPlace = ($row[vRndPlace] == 1) ? '1st Round winner' : $row[vRndPlace]; } else{ switch ($entPlace){ case 1: $nth = 'st'; break; case 2: $nth = 'nd'; break; case 3: $nth = 'rd'; break; case 4: $nth = 'th'; break; case 5: $nth = 'th'; break; case 6: $nth = 'th'; break; case 7: $nth = 'th'; break; case 8: $nth = 'th'; break; case 9: $nth = 'th'; break; case 10: $nth = 'th'; break; case 11: $nth = 'th'; break; case 12: $nth = 'th'; break; case 13: $nth = 'th'; break; default: if (substr($entPlace, -1) == 1){ $nth = 'st'; }elseif (substr($entPlace, -1) == 2){ $nth = 'nd'; }elseif (substr($entPlace, -1) == 3){ $nth = 'rd'; }else{ $nth = 'th'; } break; } $entPlace = $entPlace.$nth; } // define contest/entry titles if ($isVolley) { $slgTitle = ''.$row['slagTitle'] . ''; $entViewLink = 'view all'; $slgTick = '  ['.$totalEnts.' Entries]'; //build link: $popthmb = 'slags/'.$slagid.'/'.$entid.$row[entRandom].'.'.$row[entExt]; $popfull = 'slags/'.$slagid.'/'.$entid.$row[entRandom].'-f.'.$row[entExt]; $entTitle = ''.$entTitle.''; if (MECHANON){ $entLink = ''.str_replace(''; $fullEntLink = $entFullWidth.'x'.$entFullHeight; }else{ $entLink = 'View the full version of '.str_replace(''; $fullEntLink = ''.$entFullWidth.'x'.$entFullHeight.''; //.(($entFullWidth == $entWidth) ? '' : ' (+'.(round((($entFullWidth-$entWidth)/$entWidth*100),1)).'%)'); } $showTheOThumb = $showTheO = ''; } else { $slgTitle = ''.$row['slagTitle'] . ''; $entViewLink = 'view all'; $slgDesc = nl2br(html_entity_decode($row[slagDesc])); $slgTick = '  ['.$totalEnts.' Entries]'; //build link: $popthmb = 'slags/'.$slagid.'/'.$entid.$row[entRandom].'.'.$row[entExt]; $popfull = 'slags/'.$slagid.'/'.$entid.$row[entRandom].'-f.'.$row[entExt]; $entTitle = ''.$entTitle.''; if (MECHANON){ $entLink = ''.str_replace(''; $fullEntLink = $entFullWidth.'x'.$entFullHeight; }else{ $entLink = 'View the full version of '.str_replace(''; $fullEntLink = ''.$entFullWidth.'x'.$entFullHeight.''; //.(($entFullWidth == $entWidth) ? '' : ' (+'.(round((($entFullWidth-$entWidth)/$entWidth*100),1)).'%)'); } $showTheO = ($thisTheme == 1) ? '' : 'slags/'.$slagid.'/'.$origFile.'.'.$origExt; $showTheOThumb = ($thisTheme == 1) ? '' : 'slags/'.$slagid.'/'.$origFile.'-t.'.$origExt; } if (strlen(trim($entDesc)) > 0){ $entDesc = html_entity_decode(mechabbparse($entDesc, 1, 1, 1, 0, 1, 0)); }else{ $entDesc = ''; } // average if ($slagType == 5){ //tennis $numVoters = 'n/a'; $entPlace = 'n/a'; $entAvg = 'n/a'; }else{ $entAvg = round($entAvg, 3); } // volley defaults if ($isVolley){ $numComments = 'view'; $numViews = 'n/a'; }else{ // $numComments = ($numComments > 0) ? ''.$numComments.'' : $numComments; } } if ($showTheO){ $tmpDims = getimagesize($showTheO); $origPopW = $tmpDims[0]; $origPopH = $tmpDims[1]; } ###################################################################################### #/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/ ###################################################################################### #/ OUTPUT ###################################################################################### #/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/ ###################################################################################### echo ''; echo ''; echo $entLink; echo ''; echo ''; echo '
'; echo '
'.$entTitle.'
'; if ($entDesc){ echo '
'; echo 'Author comment:
'; echo '
'; echo ''; echo ''; echo '
'; echo str_replace('a href=', 'a target="_blank" href=', $entDesc); echo '
'; echo '
'; echo '
'; } echo ''; echo ''; echo '
'; // width="50%" echo ''; if ($entCollabs) echo ''; echo ''; echo ''; echo ''; echo '
Co-Author:'.$entCollabs.'
Full Size:'.$fullEntLink.'
Views:'.$numViews.'
Comments:'.$numComments; if ($row['numComments'] > 0) { echo ' :: '; echo 'show'; }else{ echo ''; } echo '
'; echo '
'; // echo ''; echo ''; if ($entAvg) echo ''; if ($entVotes) echo ''; // if ($entOwnage) echo ''; echo ''; echo '
Place:'.$entPlace.'
Average:'.$entAvg.'
Votes:'.$entVotes.'
Ownage:'.$entOwnage.'
Favorites:'.$numScraps.'
'; echo '

'; echo '
'; echo '
'; ################################################################################################################ if ($showTheOThumb) echo '
Original:

click to compare
'; echo '
Contest
'; echo '
'; echo ''; if ($entVsWho) echo ''; echo ''; echo ''; echo ''; echo ''; echo '
Vs:'.$entVsWho.'
Title:'.$slgTitle.'
Style: '.$slgType.'
Date:'.$entDate.'
Entries:'.$totalEnts.' :: '.$entViewLink.'

'; if (!$isVolley){ echo '
'; echo 'Directions:'; echo '
'; echo '
'.str_replace('a href=', 'a target="_blank" href=', $slgDesc).'
'; echo '
expand »
'; echo '
'; echo '
'; }else{ echo '
'; } echo '
'; echo ''; echo ''; $j++; } $dbMain->mecha_freeresult($result); // display pagination echo ''; echo '
'; echo '
'; // generate pagination (note: querystring page variable MUST be 'page'). // (current page, total pages, url, end url #anchor) echo mechaPagi($pid, $pages, 'portfolio.php?uid='.$uid.'&filter='.$filter.'&sort='.$sort, ''); echo '
'; echo ''; echo '
'; $tmpfinish = $start+$display; if ($tmpfinish > $displaymems) $tmpfinish = $displaymems; echo ''; echo ($start+1).'-'.$tmpfinish.' out of '.$displaymems.' '.$filterEntText.' entries'; echo ''; echo ''; } // NO RESULTS clause ?>
Click here to view 's complete entry stats

This page excludes entries in Live or Upcoming
contests, and entries less than 200 pixels wide

[jump to top]  [close window]


©2003-2020 Mechapixel.com