Titre du sujet : Re: Securityimage dans smartpartner par DuGris sur 04/07/2008 10:47:54
Il n'est pas possible de reprendre une portion de code d'un module pour l'appliquer à un autre module, si c'était si simple !!!
Pour Smartpartner version 1.2, c'est sur mon site dans la rubrique Utilisation de la class SecurityImage avec En démo sur mon site : Devenir partenaire (accès membre uniquement)
Pour les utilisateurs de Smartpartner version 1.2, il y a une correction à apporter pour php 5
dans le fichier smartpartner/class/partner.php Remplacer la ligne 673
$sql = sprintf("INSERT INTO %s (id, categoryid, weight, hits, hits_page, url, image, image_url, title, summary, description, contact_name, contact_email, contact_phone, adress, `status`) VALUES ('', %u,%u, %u, %u, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %u)", $this->_db->prefix($this->_dbtable), $categoryid, $weight, $hits, $hits_page, $this->_db->quoteString($url), $this->_db->quoteString($image), $this->_db->quoteString($image_url), $this->_db->quoteString($title), $this->_db->quoteString($summary), $this->_db->quoteString($description), $this->_db->quoteString($contact_name), $this->_db->quoteString($contact_email), $this->_db->quoteString($contact_phone), $this->_db->quoteString($adress), $status);
par
$sql = sprintf("INSERT INTO %s (id, categoryid, weight, hits, hits_page, url, image, image_url, title, summary, description, contact_name, contact_email, contact_phone, adress, `status`) VALUES (0, %u,%u, %u, %u, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %u)", $this->_db->prefix($this->_dbtable), $categoryid, $weight, $hits, $hits_page, $this->_db->quoteString($url), $this->_db->quoteString($image), $this->_db->quoteString($image_url), $this->_db->quoteString($title), $this->_db->quoteString($summary), $this->_db->quoteString($description), $this->_db->quoteString($contact_name), $this->_db->quoteString($contact_email), $this->_db->quoteString($contact_phone), $this->_db->quoteString($adress), $status);
|