Fork me on GitHub

Rapport de message :*
 

Re: TDMPicture

Titre du sujet : Re: TDMPicture
par Franck0768 sur 13/01/2013 18:24:07

Passage de Extgallery à TDMPicture:

Catégories des albums
Nous pouvons remplir une partie de la table xxxx_tdmpicture_cat à partir de la table xxxx_extgallery_publiccat.
Il faudra peut être faire un contrôle de longueur de la chaîne de caractère de cat_name varchar(255) dans extgallery car cat_title dans tdmpicture est en varchar(50).
Une boucle de contrôle pour prévenir les troncations?

`xxxx_tdmpicture_cat` (
  
`
cat_idint(11unsigned NOT NULL AUTO_INCREMENT,
  
`
cat_pidint(11unsigned NOT NULL DEFAULT '0',
  
`
cat_titlevarchar(50NOT NULL DEFAULT '',
  
`
cat_dateint(11NOT NULL DEFAULT '0',
  
`
cat_texttext,
  `
cat_imgvarchar(100) DEFAULT NULL,
  
`
cat_weightint(11unsigned NOT NULL DEFAULT '0',
  
`
cat_displayint(1NOT NULL DEFAULT '0',
  
`
cat_uidint(11unsigned NOT NULL DEFAULT '0',
  
`
cat_indexint(1unsigned NOT NULL DEFAULT '0',
  
PRIMARY KEY (`cat_id`)

`xxxx_extgallery_publiccat` (
  
`
cat_idint(11NOT NULL AUTO_INCREMENT,
  
`
cat_pidint(11NOT NULL DEFAULT '0',
  
`
nleftint(11NOT NULL DEFAULT '0',
  
`
nrightint(11NOT NULL DEFAULT '0',
  
`
nlevelint(11NOT NULL DEFAULT '0',
  
`
cat_namevarchar(255NOT NULL,
  
`
cat_desctext NOT NULL,
  
`
cat_dateint(11NOT NULL DEFAULT '0',
  
`
cat_isalbumtinyint(1NOT NULL DEFAULT '0',
  
`
cat_weightint(11NOT NULL DEFAULT '0',
  
`
cat_nb_albumint(11NOT NULL DEFAULT '0',
  
`
cat_nb_photoint(11NOT NULL DEFAULT '0',
  
`
cat_imgurlvarchar(150NOT NULL,
  
`
photo_idint(11NOT NULL DEFAULT '0',
  
PRIMARY KEY (`cat_id`)

Pour compléter cat_uid de la table xxxx_tdmpicture_cat, cela me semble plus complexe.
Il faudrait reccupérer l'uid de la première photo dans les albums d'Extgallery:
`x5fe_extgallery_publicphoto` (
`
cat_idint(11NOT NULL,
  
`
uidint(11NOT NULL,

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

28 Personne(s) en ligne (22 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 28 | Plus ...