PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 1st, 2005, 08:35 AM   #1 (permalink)
Member
 
Join Date: Jan 2005
Location: Jakarta
Posts: 159
Send a message via MSN to hendri Send a message via Skype™ to hendri
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");

?>

Last edited by hendri; February 1st, 2005 at 08:39 AM.
hendri is offline   Reply With Quote
Old February 1st, 2005, 11:27 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Your pictures if below the normal thumb layout will fit within rounded overlay with a black background. it is just the way it works
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
black thumbnails Black_Widow Installs and Upgrade - vBulletin 3.0.X 4 May 16th, 2007 04:46 PM
Thumnails keep being black?? Timo_Denmark Photopost Pro How Do I...? 3 July 10th, 2005 10:04 AM
How to add new borde for my thumbails in recent photos ? hendri Photopost Pro Installation & Upgrades 4 February 2nd, 2005 07:57 PM
Black Page when running 4.67 chavalo Photopost Pro Installation & Upgrades 14 January 8th, 2005 01:11 AM
Black Thumbnails iloco Photopost Pro Installation & Upgrades 1 December 28th, 2004 06:01 PM


All times are GMT -5. The time now is 04:55 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0