-
Compteur de contenus
8 -
Inscrit(e) le
-
Dernière visite
Messages posté(e)s par eXtreme
-
-
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(); ?>
-
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:
-
Est-ce que c'est mieux de passer par le fichier robots ou par google webmaster tools ?
En rajoutant dans mon fichier robots :
Disallow: *?id=*
Disallow: *?tri=*
Disallow: *?match=*
Disallow: *?search=*
Disallow: *?page=* -
Ok je vais voir merci.
-
ok merci bien. :)
-
Comment faire dans la version 6.0.3 ? Dans fonctions_admin.php j 'ai passé $rename_file à false mais ceci ne change rien !
Merci bien
-
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=23Je 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.
Watermark Php Et Transparence Png
dans Module PEEL Premium pour PEEL SHOPPING
Posté(e) · Signaler ce message
Je voudrais apposer un filigrane sur les images des produits. En local le code fonctionne très bien, par contre en ligne ça me pose problème avec les images en png. :(