zell25 Posted February 18, 2011 Share Posted February 18, 2011 Bonsoir a tous, je voudrais savoir si on peu cacher les messages de mise a jours aux utilisateur du BO qui ne fond pas partie du groupe Administrator et comment? Merci Link to comment Share on other sites More sharing options...
DevNet Posted February 20, 2011 Share Posted February 20, 2011 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.phpA 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 More sharing options...
zell25 Posted February 20, 2011 Author Share Posted February 20, 2011 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 More sharing options...
DevNet Posted February 20, 2011 Share Posted February 20, 2011 C'est super merci ca marche mais il manquait un ' après .' C'est le parse de la balise code du forum qui fait ça. C'est idem sur le code que vous venez de rajouter.Bien cordialement Link to comment Share on other sites More sharing options...
zell25 Posted February 20, 2011 Author Share Posted February 20, 2011 ah oui! si ca peu aider une autre personne. Link to comment Share on other sites More sharing options...
Jovicyr Posted May 12, 2011 Share Posted May 12, 2011 Pour la version PS 1.4 il faut faire cette modification dans le fichier suivant :(admin rep)/tabs/AdminHome.phpvers la ligne 156. Link to comment Share on other sites More sharing options...
leeloo Posted May 16, 2011 Share Posted May 16, 2011 Comment appliquer cela a la version 1.2.5.0 ?Je me réponds: il faut ajouter : define('_PS_ADMIN_PROFILE_', 1); dans config-inc.php Link to comment Share on other sites More sharing options...
Jovicyr Posted May 16, 2011 Share Posted May 16, 2011 Le test de _PS_ADMIN_PROFILE_ , c'est pour que l'affichage soit tout de même présent pour le super admin mais masqué pour tous les autres.Dans la version 1.2.5, y'a pas de super admin ? Link to comment Share on other sites More sharing options...
leeloo Posted May 16, 2011 Share Posted May 16, 2011 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 More sharing options...
Jovicyr Posted May 17, 2011 Share Posted May 17, 2011 oui, donc à ce moment là, pas besoin de faire un test IF si on est sûr de passer dans la boucle ;-) Link to comment Share on other sites More sharing options...
ebouilleur Posted November 12, 2013 Share Posted November 12, 2013 Bonjour, Je me permet de resortir un vieux post, mais je me pose la meme question, pour la version 1.5.5.0. Le define('_PS_ADMIN_PROFILE_', 1); ne fonctionne pas Merci! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now