![]() |
why there is a black line in my thumbails ?? anybody can help ? why there is a black line in my thumbails ?? anybody can help ? www.aroclubindonesia.com/forum/index.php i want like this : http://www.photopost.com/sites_frame...lery/index.php how to remove it ? here my inc_features.php view : <? //////////////////////////// COPYRIGHT NOTICE ////////////////////////////// // This script is part of PhotoPost PHP, a software application by // // All Enthusiast, Inc. Use of any kind of part or all of this // // script or modification of this script requires a license from All // // Enthusiast, Inc. Use or modification of this script without a license // // constitutes Software Piracy and will result in legal action from All // // Enthusiast, Inc. All rights reserved. // // http://www.photopost.com legal@photopost.com // // Contributing Developer: Michael Pierce (mpdev.com) // // // // PhotoPost Copyright 2005, All Enthusiast, Inc. // //////////////////////////////////////////////////////////////////////////// require "config-int.php"; // If you have placed PhotoPost into a seperate database, you will need to // uncomment these lines to connect to the PhotoPost database. It is suggested // that you install PP into the same database as vB for better performance. // // If you use the same userid/password to access both databases, you don't need to // uncomment the mysql_connect - this is only if you require different ids to access // the PhotoPost database. // //$link = mysql_connect ("localhost", "$dbuserid", "$dbuserpassword") or die('I cannot connect to the database.'); //mysql_select_db ("pp_database")or die("Could not select photopost database"); // Number of photos to display $num_display = 14; // Number of columns (1 for vertical) $columns = 7; // which type of images do you want to show (random, most_view, latest) $q_switch = "latest"; // == END CONFIGURATION == //////////////////////////////////////////////////////////////////////////// if ( !isset($ViewPerm) ) { $mygroups = $bbuserinfo['usergroupid']; if ( $bbuserinfo['membergroupids'] != "" ) $mygroups .= ",".$bbuserinfo['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 ); } function pp_get_ext( $filename ) { return substr($filename, strrpos($filename,".")); } function pp_is_image( $filename ) { $retval = 0; $mediatypes = array( ".jpg", ".gif", ".png", ".bmp" ); $ext = pp_get_ext( $filename ); if ( in_array(strtolower($ext), $mediatypes) ) $retval = 1; return( $retval ); } // // Featured Photos Code // Follow down to End Feature Photos Code // switch ($q_switch) { case "most_view": $query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.height,p.width,c.catname,c.photos,c.posts FROM {$pp_db_prefix}photos p LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat WHERE c.cattype = 'c' AND p.cat != 500 AND p.storecat = 0 ORDER BY views DESC"; break; case "latest": $query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.height,p.width,c.catname,c.photos,c.posts FROM {$pp_db_prefix}photos p LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat WHERE c.cattype = 'c' AND p.cat != 500 AND p.storecat = 0 ORDER BY date DESC"; break; default: $query = "SELECT p.id,p.user,p.userid,p.cat,p.bigimage,p.height,p.width,c.catname,c.photos,c.posts FROM {$pp_db_prefix}photos p LEFT JOIN {$pp_db_prefix}categories c ON c.id = p.cat WHERE c.cattype = 'c' AND p.cat != 500 AND p.storecat = 0 ORDER BY RAND()"; break; } $result = mysql_query($query); $counted = 0; $countcol = 0; $featured = ""; while (list($pid,$puser,$puserid,$pcat,$photo,$height,$width,$catname,$cphotos,$cposts) = mysql_fetch_row($result)) { if ( $ViewPerm[$pcat] == 1 ) continue; if ( pp_is_image($photo) ) { $photolen = strlen($photo); $theext = pp_get_ext($photo); $photo_name = str_replace( $theext, "", $photo ); $temp_user = $puserid; $catname = stripslashes($catname); if ( $height > $width ) $mthumb = "<img src=\"{$url_path}/images/overlay-redp.gif\" height=\"105\" width=\"81\" border=\"0\" alt=\"\" />"; else $mthumb = "<img src=\"{$url_path}/images/overlay-red.gif\" height=\"81\" width=\"105\" border=\"0\" alt=\"\" />"; // One box for each feature $featured .= <<<PPPRINT <td align="center" bgcolor="#E0E0F6"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td style="background-repeat: no-repeat; background-position: center;" bgcolor="#000000" background="{$data_dir}/{$pcat}/{$puserid}{$photo_name}-thumb{$theext}"> <a href="{$url_path}/showphoto.php?photo={$pid}">$mthumb</a> </td> </tr> </table> <font size="1" face="verdana,arial">{$puser} </font> </td> PPPRINT; $counted++; $countcol++; } // If we've reached our limit, quit if ( $counted == $num_display ) break; // If we need to end the column, do so. if ( $countcol == $columns ) { $featured .= <<<PPPRINT </tr> <tr> PPPRINT; $countcol = 0; } } @mysql_free_result($result); // Add on the ending tag $featured .= "</tr>"; // First part is for the featured photos // $photopostfeature not holds the Featured Photos box and $photopostcats (set below) holds the // gallery list $photopostfeature = <<<PPPRINT <table class="tborder" cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr> <td> <table cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%"> <thead> <tr> <td class="tcat" colspan="$columns" align="center"> <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('featurepal');"><img id="collapseimg_featurepal" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_featurepal].gif" alt="" border="0" /></a> Arowana Gallery Latest Pics </td> </tr> </thead> <tbody id="collapseobj_featurepal" style="$vbcollapse[collapseobj_featurepal]"> $featured </tbody> </table> </td> </tr> </table> <br /> PPPRINT; // // End Featured Photos Code // // If you use PhotoPost in a seperate database from vB, you'll need to reselect the vB database! //mysql_select_db ("vb_database"); ?> |
Your pictures if below the normal thumb layout will fit within rounded overlay with a black background. it is just the way it works |
| All times are GMT -5. The time now is 04:28 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0