Jump to content

Kaby

Members
  • Posts

    31
  • Joined

  • Last visited

About Kaby

  • Birthday 12/09/1987

Profile Information

  • Location
    Paris
  • Activity
    Agency

Recent Profile Visitors

2,377,492 profile views

Kaby's Achievements

Newbie

Newbie (1/14)

13

Reputation

1

Community Answers

  1. Bonjour, Merci pour votre réponse mais j'avoue ne pas du tout voir le rapport. Peut être pouvez-vous m'éclairer ? Nous parlons ici de l’identification d'un éventuel hack, pas de performance !? Cdlt
  2. Bonjour à tous, Je me permets de rebondir sur ce post car j'ai exactement le même problème. Deux nuances: - j'ai une alerte sur un autre port (33829) - J'ai un wp sur le même serveur (j'ai vu que la question a été posée plus haut). J'essaye de récupérer ce qu'il y a en ligne vers ma machine en local pour possiblement trouver quelque chose. Enfin, OVH me parle d'une alerte à 11:00:05. Dans mes logs je n'ai rien à cet instant précis. Est-ce fiable à la seconde ? D'autres idées ? Merci d'avance, Xavier
  3. Bonjour, Je sais de source sûre que la fonctionnalité a été développée à l'arrache en interne. Cette feature n'était simplement pas utilisable sur la 1.5, et je crois qu'il n'y a rien de nouveau à ce niveau sur la 1.6. Il faut juste oublier cette feature marketing qui ne fonctionne pas techniquement à priori... Good luck !
  4. Ok thanks for the info AND for advices about upgrades, I'll be cautious ! I'll marked this topic as solved.
  5. Hi Pascal, Thanks for your reply. I use Prestashop 1.6 and I did not re develop this image uploader at all ! What do you think ?
  6. Hi all, To add an image in a product description I need to click on insert image, upload my new image, then close the uploader window and open it back to finally add the already uploaded image. If I don't do that I can't click on the uploaded image just after uploading my image. Is this a known issue ? I didnt find anything about ? Am I the only one facing the problem ? Any idea to help ? Thanks a lot Xavier
  7. When I find when to edit the title of my topic I'll do it...
  8. Hi ! Indeed I had a long and meticulous look on the naming of hooks and here is what I get now, which works: if (!parent::install() || !$this->registerHook('leftColumn') || !$this->registerHook('rightColumn')) return false; The here is the name of my functions: public function hookLeftColumn($params) { $this->_prepareHook($params); $this->context->controller->addCSS(($this->_path).'blocknewsletter.css', 'all'); return $this->display(__FILE__, 'blocknewsletter.tpl', $this->getCacheId()); } public function hookRightColumn($params) { return $this->hookLeftColumn($params); } So that was actually a matter of right spelling of the name of hooks and functions, thanks for pointing me that issue ! And don't toatally understand as the hookDisplayLeftColumn function was the native one from the module. Have a nice day all ! Ty again !
  9. Well thanks again for your help, you basically advice me to do what I have done already (see the initial post)...
  10. Hi ty for your reply ! Isn't it what I am doing with : $this->registerHook('rightColumn') ? Thanks
  11. Hi all, I am using Prestashop 1.5.4.0 and I am trying to re-hook my newsletter block (in the right column). Here is what I do: - In the module install I have this line: if (!parent::install() || !$this->registerHook('leftColumn') || !$this->registerHook('header') || !$this->registerHook('rightColumn')) return false; - Then I have this function: public function hookDisplayRightColumn($params) { return $this->hookDisplayLeftColumn($params); } I reseted the module but I can't hook this newsletter block on ANY module of prestashop (Right Column, Left Column, Header...) I have the error message "You cannot hook this block here" (I don't know the exact English message. What might I have forget ? Thanks !
  12. Hello, désolé j'ai laissé l'aprem passé hier puis je n'y ai pas repensé le soir ! Dans le principe c'est ça et tant mieux si tu as cherché et trouvé par toi même, mais comme je te sens curieux tu peux faire plus propre: Tu écris ton lien vers ta home (pas la prepage) avec un paramètre à tester: href="/?prepage=true" A l'arrivée de ton visiteur tu testes le fait de ne pas être dans un traitement AJAX if(empty($_SERVER['HTTP_X_REQUESTED_WITH'])){ Si tu n'es pas en AJAX, tu testes si le paramètre existe (en $_GET), si oui c'est que le visiteur était déjà sur ta prépage et qu'il a cliqué sur ton lien, ainsi tu le rediriges vers ta home et tu définies ton cookie pour un autre test: if(isset($_GET['prepage']) && $_GET['prepage']) { setcookie('prepage', $_GET['prepage'], time() + 86400, '/'); header('location: '.$baseHost.'/'.ta_home.'/'); exit; } Ensuite tu testes si ton cookie existe: si oui c'est que ton utilisateur a déjà visité ton site mais qu'il vient d'y revenir (grâce à la définition précédente du cookie): if(isset($_COOKIE['prepage']) && $_COOKIE['prepage']) { header('location: '.$baseHost.'/'.ta_home.'/'); exit; } Enfin si tu n'as ni paramètre en $_GET ni cookie, c'est la première visite et tu rediriges vers la prepage: if(!isset($_COOKIE['prepage'])){ header('location: '.$baseHost.'/prepage'); exit; } Tu n'as pas besoin de plus de tests dans cette dernière condition car avant tu as des redirect et des exit; donc si une condition a été remplie tu auras déjà été redirigé. Voilà je me permets de proposer cela car je n'étais pas fan de la redirection js dans le print php... Tu auras sans doute besoin de définir une réécriture d'url dans ton htaccess pour ton url avec un paramètre (/?prepage=true). J'espère que c'est pas trop fouilli. A plus
  13. Hello, Et bien tu fais ce test avant tous tes tests sur l'existence ou non de cookie et ta redirection ! Dis moi si tu as besoin de plus d'infos...
  14. Hi, I could definitly send you a link but: - it does work on my preprod site - it does work on mt computer at home So path to images are good - I set up a vhost on my laptop to work out of my place but then images are not found and links to products are wrng... I tried to regenerate htaccess but no changes, what else could I have forget ?
×
×
  • Create New...