Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Galerijos regulevimas.

Parašė maski· 2010 Rugp. 27 15:08:54
#1

Sveiki taigu turiu panele atsitiktine foto ant v6 ir jame rodo mazas foto ar galima kaip nors padidinti ?

Stai kodas:

if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }


$result = dbquery("SELECT panel_name FROM ".$db_prefix."panels WHERE panel_filename = 'latest_images_panel'");
if (dbrows($result) != 0) {
$data = dbarray($result);
$panel_name = $data['panel_name'];
}

$result=dbquery(
"SELECT tp.*, ta.* FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."photo_albums ta USING(album_id)
WHERE ".groupaccess('album_access')." ORDER BY RAND() LIMIT 1"
);
if(dbrows($result)==1){
}

openside("Galerija");


$data=dbarray($result);
$randphotodir = PHOTOS.(!@ini_get("safe_mode") ? "album_".$data['album_id']."/" : "");
if(!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
echo "<center>
<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='gallery'>
<img src='".$randphotodir.$data['photo_thumb1']."' title='".$data['photo_title']."' alt='".$data['photo_title']."'>
</a><br /><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='side'>".$data['photo_title']."</a>
<br>
<a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' class='side'>".$data['album_title']."
</center></a>";
?><br><center><a href="http://fragnet.ql.lt/photogallery.php">-->Daugiau foto...<--</a></center>
<?
closeside();



Parašė NofiNe· 2010 Rugp. 27 16:08:40
#2

Šitame kode tai nemanau ar galima nes nėra nieko su dydžiais.

Parašė maski· 2010 Rugp. 27 16:08:01
#3

Tai gal koky koda,panele gali numesti kur butu galima taip daryti :) ?:?

Parašė weberiz· 2010 Rugp. 27 17:08:55
#4

if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }


$result = dbquery("SELECT panel_name FROM ".$db_prefix."panels WHERE panel_filename = 'latest_images_panel'");
if (dbrows($result) != 0) {
$data = dbarray($result);
$panel_name = $data['panel_name'];
}

$result=dbquery(
"SELECT tp.*, ta.* FROM ".$db_prefix."photos tp
LEFT JOIN ".$db_prefix."photo_albums ta USING(album_id)
WHERE ".groupaccess('album_access')." ORDER BY RAND() LIMIT 1"
);
if(dbrows($result)==1){
}

openside("Galerija");


$data=dbarray($result);
$randphotodir = PHOTOS.(!@ini_get("safe_mode") ? "album_".$data['album_id']."/" : "");
if(!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
echo "<center>
<a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='gallery'>
<img src='".$randphotodir.$data['photo_thumb1']."' title='".$data['photo_title']."' alt='".$data['photo_title']."' width='1000' height='1000'>
</a><br /><a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='side'>".$data['photo_title']."</a>
<br>
<a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' class='side'>".$data['album_title']."
</center></a>";
?><br><center><a href="http://fragnet.ql.lt/photogallery.php">-->Daugiau foto...<--</a></center>
<?
closeside();




jai viskas ok +11 ;)

Parašė maski· 2010 Rugp. 27 19:08:39
#5

Dekui, bet cia speceliai padarei 1000x1000 :) ?

Bet dekui susimazinau nesunkei .:p