eXtreme

Utilisateur open source
  • Compteur de contenus

    8
  • Inscrit(e) le

  • Dernière visite


Messages posté(e)s par eXtreme


  1. Bonjour,

    Comment faire en sorte de garder la transparence des images png sur peel ? Ci-dessous le code.

    Merci pour votre aide.

     

    <?php
    /* watermark.php */
    
    $path = $_SERVER['DOCUMENT_ROOT'].$_SERVER['REQUEST_URI'];
    $upload = imagecreatefromstring(file_get_contents($path));
    
    $w = imagesx($upload);
    $h = imagesy($upload);
    
    // You can change the watermark filename below.
    $watermark = imagecreatefrompng('watermark.png');
    $ww = imagesx($watermark);
    $wh = imagesy($watermark);
    
    imagecopy($upload, $watermark, $w-$ww, $h-$wh, 0, 0, $ww, $wh);
    
    // blending the images together
    imagealphablending($watermark , false);
    imagesavealpha($watermark , true);
    
    header('Content-type: image/jpeg');
    imagejpeg($upload, null, 95);
    exit();
    ?>

  2. De retour pour mon problème de nom des images.

     

    J'ai fait un test avec la version 7.3. Dans lib\fonctions\fonctions.php format_filename_base je le passe en $rename_file à false ça marche.

     

    Par contre dans la version 6.3 dans lib\fonctions\fonctions.php j'ai pas function format_filename_base ?

     

    function upload($the_file, $rename_file = true, $file_kind = null, $image_max_width = null, $image_max_height = null)
    {
    	$error = get_upload_errors_text($the_file, $file_kind); // Teste la validité du téléchargement
    	if (empty($error)) {
    		// Upload OK
    		$extension = pathinfo($the_file['name'], PATHINFO_EXTENSION);
    		if ($rename_file) {
    			$dateheure = strftime("%d%m%y_%H%M%S");
    			$mdp = MDP();
    			$the_new_file_name_without_extension = $dateheure . "_PEEL_" . $mdp;
    		} else {
    			$modified_old_name_without_extension = String::strtolower(String::convert_accents(str_replace(array('%2520', '%20', ';', ',', ' ', '^', '
    

     

    J'ai beau chercher, je trouve pas :mellow:


  3. Bonjour,

     

    Comment éviter ce problème de duplicata de produits dans google ?
     

    /achat/cat-produit-909.html
    /achat/cat-produit-909.html?tri=nom_fr&sort=asc
    /achat/cat-produit-909.html?tri=nom_fr&sort=desc

    /achat/marque.php?id=23&page=5
    /achat/marque.php?id=23&page=4
    /achat/marque.php?id=23

     

     

    Je voulais savoir comment ne pas référencer les ?tri=nom_fr&sort=asc, ?tri=nom_fr&sort=desc ainsi que /achat/marque.php?id=

     

    Merci d'avance pour pour aide.

Twitter Advisto ecommerce

Facebook PEEL Shopping