blame Posted June 26, 2004 Report Share Posted June 26, 2004 Ir radusies nepieciešamība pēc maza un vienkārša php veidotas fotogalerijas..Neko sarazgīitu nevajag , tik taa lai uz ekrana ir redzama viena bile un ar bultinņam pa labi un pa kresi taas mainitos.Taa kaa diemžel pašam zinašanas ieks php nav, veleejos luuugt juus paliidziibu...vai kaads ko tadu var iedot? Un ja nav , tad kur ko tadu varetu dabut? Paldies jau iepriekš Link to comment Share on other sites More sharing options...
DelNet Posted June 27, 2004 Report Share Posted June 27, 2004 zhel ka nesmu pie sava kompja varetu atri izpalidzeet, bet vispar lieta nevareetu but sarezhgjita, mape glabaa tikai atteelus... nolasi no mapes failu skaitu un tad tam piepluso vieniniecinju un tad ar ieguto vertibu ieglabaa atteelinju, kaut caur uploadu... atteelojot atkal sadabuu failu skaitu un izveido tikpat podzinjas kur katra nakama ved uz katru nakamo bilditi tipa ?bilde=1, tad 2 utt.. tur attiecigi atkal <img src =\"http://kautkas.lv/$_GET[bilde]."jpg"\"> Taada garaaa... par mapju nolasisanu referencee bija pie file system functions laikam.. ;) VEIXMI! Link to comment Share on other sites More sharing options...
spoks Posted June 27, 2004 Report Share Posted June 27, 2004 Pamēģini http://sh.id.lv/?page=comments&id=65 Link to comment Share on other sites More sharing options...
DelNet Posted June 27, 2004 Report Share Posted June 27, 2004 Kaut kas lidziigs... vajadzetu dereet... Link to comment Share on other sites More sharing options...
DimanC Posted June 29, 2004 Report Share Posted June 29, 2004 reku labucītis: http://sourceforge.net/projects/spmg/ diemžēl viņa saits spmg.sourceforge.net neiet, bet šī galerija imho ir diezgan laba. ;) Link to comment Share on other sites More sharing options...
rumpels Posted June 29, 2004 Report Share Posted June 29, 2004 aesmu taisijis ko tmldz un viss ir oki iemauc vienu index.php ailu un viss rulle bet ir viens minuss ja velies galeriju tieshi lapa nevis ka blank bez visam malam utt ka print vers. bez maz vai, tad rodas probas ar lielam bildem piemeram Tev iznes tabula 480px bet bildes platums ir 560px bet nakama 250px un arda ara visu lapu esmu megjinajis likt procentuali bet tas nekam neder vienigais ko izdomaju bija uzradit visiem vienadu width="470px" un tad ja ir lielaka bilde vinsh attiecigi proprcionee height un ir normali bet ja bilde ir 250px tad too izplesh lidz tiem 470px karoch vai tikai thumbnailus ar GD var uztaisit, domaju ka vienigais variants ir uzdot shini aila maksimalo platumu 470 ja faila platums ir lielaks par sho bet ja mazaks radit pilnu bildi ar savu platumu...bus japamegjina kadu dienu:) <img src="<?= $imagesArray[$_GET["id"]];?>" <? if ($width > '470'){echo "width=\"470px\"";}?> border=0> aptuveni shadi:) Link to comment Share on other sites More sharing options...
rumpels Posted June 30, 2004 Report Share Posted June 30, 2004 nju re kaut ko sashtukoju list($width, $height, $type, $attr) = getimagesize("foto/".$imagesArray[$_GET["img"]].""); if ($width > '370') { print "<img src=\"foto/".$imagesArray[$_GET["img"]]."\" width=\"370px\" border=0>"; } else { print "<img src=\"foto/".$imagesArray[$_GET["img"]]."\" border=0>"; } Link to comment Share on other sites More sharing options...
Recommended Posts