1. sayfa (Toplam 1 sayfa)
joomla makaleleler bazen biribirine giriyor
Gönderilme zamanı: 08 Ara 2010, 16:20
gönderen Mendenn
Joomla kurdum. Artisteer programı ile yaptığımda yolladığım makalleler tablo içinde tablo varmış gibi birbirine giriyor ama hazır bir tema kullandım mı öğle bir sorun yok. Sonra Artisteer ile kullandığım temaya döndün mü tablolar iç içe girmek kurtuluyor. Bunu bir türlü anlamayamadım.
Birde taşan resimler düzeni bozduğu için bir kaç eklenti kurdum ama istediğim gibi olmadı. Benim istediğim eklenti foruma gönderilen resim atıyorum 300x300 den büyük ise aktif olsun ve resmi düzene uyacak biçimde resimi tekrar boyutlandırsın.
Acaba bu sorunlar derman olacak olan var mı?
Re: joomla makaleleler bazen biribirine giriyor
Gönderilme zamanı: 08 Ara 2010, 16:38
gönderen velociraptor
hatir tema kullan derim Artisteer i bende birkac kez kullandim , benzeri problemler yasadim , O program kesinlikle amatörler icin , ve daha gelismesi gerek , diger dedigini kücük bir kod yardimi ile yapabilirsin , anasayfada vardi yanilmiyorsam fakat su an ne lokalimde ne de herhangi bir hostta ana sayfa mevcut degil
Re: joomla makaleleler bazen biribirine giriyor
Gönderilme zamanı: 08 Ara 2010, 17:42
gönderen Mendenn
bütün resimleri gösteren kod diye metin belgesi olarak bu tür ip uçlarını kayıt etmiştim.
kodu bu mu ? Tarkan abi.
Kod: Tümünü seç
javascript:Ai7Mg6P='';for (i7M1bQz=0;i7M1bQz<document.images.length;i7M1bQz++){Ai7Mg6P+='<img src='+document.images[i7M1bQz].src+'><br>'};if(Ai7Mg6P!=''){document.write('<center>'+Ai7Mg6P+'</center>');void(document.close())}else{alert('No images!')}
Yok değil ise kod ararım. ama diyelim buldum nereye yazmam gerek bu kodu...
Today my client is looking for a possibility to resize the full product image dynamically and give it maximal dimensions 600×600 during uploading. Not resize the image afterwards in the shop_product_details.php or the flypage.php. So we have a little search on this and found a solution to this, and would love to share it to the community with it.
The solution for this case is to hack the main product image resize to max height/width 600px, open the the file in administrator/components/com_virtuemart/classes/imageTools.class.php file. Locate the following code.
Böyle bişey....
Kod: Tümünü seç
// Resize the Full Image
if( !empty ( $_FILES[$tmp_field_name]["tmp_name"] )) {
$full_file = $_FILES[$tmp_field_name]["tmp_name"];
$image_info = getimagesize($full_file);
}
Kod: Tümünü seç
// Beginning of Modify by DesignerSandbox
// resize the full product image dynamically and give it maximal dimensions 600x600 during uploading
// Resize the Full Image
if( !empty ( $_FILES[$tmp_field_name]["tmp_name"] )) {
$full_file = $_FILES[$tmp_field_name]["tmp_name"];
$image_info = getimagesize($full_file);
$original_height = $image_info[1];
$original_width = $image_info[0];
if ($original_height > $original_width) {
$largewidth = (600 / $original_height) * $original_width;
$largeheight = "600px";
} else {
$largeheight = (600 / $original_width) * $original_height;
$largewidth = "600px";
}
//Get Image size info
list($original_width, $original_height, $image_type) = getimagesize($full_file);
switch ($image_type)
{
case 1: $im = imagecreatefromgif($full_file); break;
case 2: $im = imagecreatefromjpeg($full_file); break;
case 3: $im = imagecreatefrompng($full_file); break;
default: trigger_error('Unsupported filetype!', E_USER_WARNING); break;
}
$big = imagecreatetruecolor($largewidth, $largeheight);
/* Check if this image is PNG or GIF, then set if Transparent*/
if(($image_type == 1) OR ($image_type==3))
{
imagealphablending($big, false);
imagesavealpha($big,true);
$transparent = imagecolorallocatealpha($big, 255, 255, 255, 127);
imagefilledrectangle($big, 0, 0, $largewidth, $largeheight, $transparent);
}
imagecopyresampled($big, $im, 0, 0, 0, 0, $largewidth, $largeheight, $original_width, $original_height);
//Generate the file, and rename it to $newfilename
switch ($image_type)
{
case 1: imagegif($big,$full_file); break;
case 2: imagejpeg($big,$full_file); break;
case 3: imagepng($big,$full_file); break;
default: trigger_error('Er ging iets fout!', E_USER_WARNING); break;
}}
// end of edit by DesignerSandbox
Re: joomla makaleleler bazen biribirine giriyor
Gönderilme zamanı: 08 Ara 2010, 22:54
gönderen velociraptor
benim kodum css ye yazilna birseydi , joomla yi en son 5 yil kadar önce kurmustum , su an konuya hakim degilim