TomokiG |
04-27-2003 05:11 PM |
Quote:
Today at 06:22 AM []\[]emesis said this in Post #215
I ahve installed this Perfectly except i have the same problem as quoted above. Anyone that would like to see it in action go to
http://www.extremeracingforums.com and click on any member and you will notice that everyone has the same images when someone uploads them. :-\
|
For myself I fixed that bug... find in "viPortfolio.php" following code:
PHP Code:
$query = "
select viPortfolioid, filename, file, text,
cthumb, content_type, thumb, iconpath, largeicon, supported,
i.title, iconpath, width, height, ext
FROM viPortfolio p, mime m
LEFT JOIN icons i ON m.iconid = i.iconid
where p.mimeid = m.mimeid
and p.enddate is NULL
and m.enddate is NULL
and i.enddate is NULL
";
$query .= " ORDER BY p.viPortfolioid ";
if ( $userid < 1 )
$query .= " limit ".$_totalimages;
else
$query .= " and p.userid = ".$userid;
... and replace it with this one:
PHP Code:
$query = "
select viPortfolioid, filename, file, text,
cthumb, content_type, thumb, iconpath, largeicon, supported,
i.title, iconpath, width, height, ext
FROM viPortfolio p, mime m
LEFT JOIN icons i ON m.iconid = i.iconid
where p.mimeid = m.mimeid
and p.enddate is NULL
and m.enddate is NULL
and i.enddate is NULL
";
/* TomokiG */
if ( $userid > 0)
$query .= " and p.userid = ".$userid;
/* ENDE */
$query .= " ORDER BY p.viPortfolioid ";
if ( $userid < 1 )
$query .= " limit ".$_totalimages;
// else
// $query .= " and p.userid = ".$userid;
I hope I could help... *g*
?TomokiG?
|