zell25 Posted February 13, 2011 Share Posted February 13, 2011 Bonjour, j'ai inserer un onglet Google sitemap dans les outils mais le probleme est que presta me mais onglet inexistant quand je clic dessus. Comment je peu regler ce soucis?merci Link to comment Share on other sites More sharing options...
zell25 Posted February 14, 2011 Author Share Posted February 14, 2011 aprés avoir chercher des heures j'ai trouvé ce bout de code a mettre dans un fichier php et a uploader dans admin/tabs/ <?php include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php'); include_once(_PS_MODULE_DIR_.'/gsitemap/gsitemap.php'); class AdminGsitemap extends AdminTab { private $module = 'Gsitemap'; public function __construct() { global $cookie, $_LANGADM; $langFile = _PS_MODULE_DIR_.$this->module.'/'.Language::getIsoById(intval($cookie->id_lang)).'.php'; if(file_exists($langFile)) { require_once $langFile; foreach($_MODULE as $key=>$value) if(substr(strip_tags($key), 0, 5) == 'Admin') $_LANGADM[str_replace('_', '', strip_tags($key))] = $value; } parent::__construct(); } public function display() { $module = new Gsitemap; echo $module->getContent(); } } ?> Mais mon soucis reste le meme quelqu'un pourrais me donner un coup de main svp? 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