Jump to content

[RESOLU] Cacher le message de mise a jours


Recommended Posts

Bonjour,


Vous voulez parler des informations en page d'accueil du Back Office ? comme :


Nouvelle version de PrestaShop disponible : Téléchargement 1.3.7 finale !


Si c'est ça, je vous propose d'éditer votre fichier /[votre_dossier_admin]/index.php
A partir de la ligne 76 environ, changez :

       if (@ini_get('allow_url_fopen') AND $update = checkPSVersion())
           echo ''.translate('New PrestaShop version available').' : '.translate('Download').' '.$update['name'].' !';
       elseif (!@ini_get('allow_url_fopen'))
       {
           echo '
'.translate('Update notification unavailable').'';
           echo '
 ';
           echo '
'.translate('To receive PrestaShop update warnings, you need to activate the allow_url_fopen command in your php.ini config file.').' ['.translate('more infos').']';
           echo '
'.translate('If you don\'t know how to do that, please contact your host administrator !').'
';
       }



Par :

   if(intval($cookie->profile) == _PS_ADMIN_PROFILE_) {
       if (@ini_get('allow_url_fopen') AND $update = checkPSVersion())
           echo ''.translate('New PrestaShop version available').' : '.translate('Download').' '.$update['name'].' !';
       elseif (!@ini_get('allow_url_fopen'))
       {
           echo '
'.translate('Update notification unavailable').'';
           echo '
 ';
           echo '
'.translate('To receive PrestaShop update warnings, you need to activate the allow_url_fopen command in your php.ini config file.').' ['.translate('more infos').']';
           echo '
'.translate('If you don\'t know how to do that, please contact your host administrator !').'
';
       }
   }



Ca devrai marcher !

Bien cordialement

Link to comment
Share on other sites

C'est super merci ca marche mais il manquait un ' après .'

donc voicis le code corrigé :

if(intval($cookie->profile) == _PS_ADMIN_PROFILE_) {
       if (@ini_get('allow_url_fopen') AND $update = checkPSVersion())
           echo ''.translate('New PrestaShop version available').' : '.translate('Download').' '.$update['name'].' !';
       elseif (!@ini_get('allow_url_fopen'))
       {
           echo '
'.translate('Update notification unavailable').'';
           echo '
 ';
           echo '
'.translate('To receive PrestaShop update warnings, you need to activate the allow_url_fopen command in your php.ini config file.').' ['.translate('more infos').']';
           echo '
'.translate('If you don\'t know how to do that, please contact your host administrator !').'
';
       }
   } 



Encore merci

Link to comment
Share on other sites

  • 2 months later...

Oui tout à fait.
Mais j'ai appliqué la modification telle que décrite et cela ne marche pas.
Après une petite analyse, j'ai vu que PS_ADMIN_PROFILE n'est pas défini dans prestashop 1.2.5.0. D'ou l'ajout dans config-inc.php et comme ça cela fonctionne.

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...