Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: Champs Personnalisés Supplémentaires  (Read 19204 times)

0 Members and 1 Guest are viewing this topic.

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Champs Personnalisés Supplémentaires
« on: August 13, 2006, 11:31:44 am »

Bonjour, je voudrais savoir s'il est possible d'ajouter des Champs supplémentaire dans la Configuration:
Champs personnalisés pour les descriptions d'images

car je voudrais tout simplement ajouter d'autre info importante. Je me suis baladé un peu, et j'ai vu quelque petit truc dans la section anglaise du forum, mais déjà moi et l'anglais ... et en plus apparemment certains trucs sont défectueux donc ...

Pourriez-vous m'aider?

Merci d'avance pour votre aide.

« Last Edit: August 19, 2006, 09:38:19 am by PYAP »
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Champs Personnalisés Supplémentaires
« Reply #1 on: August 13, 2006, 11:49:39 am »

Re salut,
Il y à un MOD/HACK qui permets de faires ça, et couplé à un aure MOD du même auteur d'afficher une autre "boite" d'information avec ces champs personnalisés
http://forum.coppermine-gallery.net/index.php?topic=23695.0
http://forum.coppermine-gallery.net/index.php?topic=23700.0
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Re: Champs Personnalisés Supplémentaires
« Reply #2 on: August 13, 2006, 12:14:22 pm »

Si j'ai bien compris le 1er me suffit, il permet d'ajouter autant de champs supplémentaire que je veux, c'est ça?

Pour l'installation, il suffit d'effectuer tout ce qui est dit dans les 2 premiers posts de pslawinski, ou il y a d'autres modifications qui ont été ajouté après? car j'ai de grosse faiblesse en anglais et je ne comprends pas tout  :(
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Champs Personnalisés Supplémentaires
« Reply #3 on: August 13, 2006, 01:51:22 pm »

Oui c'est bien ça.
par contre, comme il  a une modif dans le fichier langue anglaise, il faut t'assurer que tu as bien coché oui dans la config Remplacer les expressions non trouvées par l'anglais ? sinon tu auras une erreur.
N'oublie pas de faire une sauvegarde de la base de donnée avant de faire les manips ainsi que de chacun des fichiers modifiés au cas ou.
Après, il ne reste plus qu'a suivre scrupuleusement les instructions. (attention, en cas de mise à jour de coppermine, si les fichiers modifiés ont été changés, il faudra recomencer  :-\)
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Re: Champs Personnalisés Supplémentaires
« Reply #4 on: August 13, 2006, 03:20:08 pm »

Bon j'ai tout changé, mais il n'y a rien de nouveau sur ma page  :( Il n'y a rien dans le menu Configuration. Je suis en 1.4.8, mais c'est marqué que c'est juste pour la 1.4, donc ça devrait marcher.

J'ai remarqué quelque différence pendant l'installe mais bon, ça avait l'air correcte au final.
« Last Edit: August 13, 2006, 03:32:05 pm by Doggy »
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Champs Personnalisés Supplémentaires
« Reply #5 on: August 13, 2006, 03:34:50 pm »

Je n'ai jamais utilisé ce MOD, je ne peux donc rien dire comme ça tout de suite, il faudrait voir exactement ce qui se passe. (essaye de vider le cache du navigateur et recharge la page)
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Re: Champs Personnalisés Supplémentaires
« Reply #6 on: August 13, 2006, 03:41:38 pm »

Je vous fais une petite liste des problèmes rencontrés:

1) Dans upload.php, je n'ai pas trouvé ça:
Quote
Code:
    array($CONFIG['user_field1_name'], 'user1', 0, 255, 1),
    array($CONFIG['user_field2_name'], 'user2', 0, 255, 1),
    array($CONFIG['user_field3_name'], 'user3', 0, 255, 1),
    array($CONFIG['user_field4_name'], 'user4', 0, 255, 1),
    );

Mais ça:
Quote
// Check for user defined fields.
    if(!empty($CONFIG['user_field1_name'])) {
        $form_array[] = array($CONFIG['user_field1_name'], 'user1', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field2_name'])) {
        $form_array[] = array($CONFIG['user_field2_name'], 'user2', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field3_name'])) {
        $form_array[] = array($CONFIG['user_field3_name'], 'user3', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field4_name'])) {
        $form_array[] = array($CONFIG['user_field4_name'], 'user4', 0, 255, 1);
    }

2) Dans image_processor.php, je n'ai pas trouvé ça:
Quote
print "<input type=\"hidden\" name=\"user1\" value=\"$user1\">";
print "<input type=\"hidden\" name=\"user2\" value=\"$user2\">";
print "<input type=\"hidden\" name=\"user3\" value=\"$user3\">";
print "<input type=\"hidden\" name=\"user4\" value=\"$user4\">";

Mais ça:
Quote
print "<input type=\"hidden\" name=\"user1\" value=\"$user1\" />";
print "<input type=\"hidden\" name=\"user2\" value=\"$user2\" />";
print "<input type=\"hidden\" name=\"user3\" value=\"$user3\" />";
print "<input type=\"hidden\" name=\"user4\" value=\"$user4\" />";

3) Toujours dans image_processor.php, ceci est introuvable:
Quote
$user1 = $HTTP_POST_VARS['$user1'];
$user2 = $HTTP_POST_VARS['$user2'];
$user3 = $HTTP_POST_VARS['$user3'];
$user4 = $HTTP_POST_VARS['$user4'];

4) Toujours dans image_processor.php, je n'ai pas trouvé ça:
Quote
$user1 = $_POST['$user1'];
$user2 = $_POST['$user2'];
$user3 = $_POST['$user3'];
$user4 = $_POST['$user4'];

Mais ça:
Quote
        $user1    = $_POST['user1'];
        $user2    = $_POST['user2'];
        $user3    = $_POST['user3'];
        $user4    = $_POST['user4'];

5) Toujours dans image_processor.php, je n'ai pas trouvé ça:
Quote
print "<input type=\"hidden\" name=\"user1\" value=\"$user1\">";
print "<input type=\"hidden\" name=\"user2\" value=\"$user2\">";
print "<input type=\"hidden\" name=\"user3\" value=\"$user3\">";
print "<input type=\"hidden\" name=\"user4\" value=\"$user4\">";

Mais ça:
Quote
                print "<input type=\"hidden\" name=\"user1\" value=\"$user1\" />";
                print "<input type=\"hidden\" name=\"user2\" value=\"$user2\" />";
                print "<input type=\"hidden\" name=\"user3\" value=\"$user3\" />";
                print "<input type=\"hidden\" name=\"user4\" value=\"$user4\" />";

6) Dans picmgmt.inc.php, je n'ai pas trouvé ça:
Quote
function add_picture($aid, $filepath, $filename, $position = 0, $title = '', $caption = '', $keywords = '', $user1 = '', $user2 = '', $user3 = '', $user4 = '', $category = 0, $raw_ip = '', $hdr_ip = '')

Mais ça:
Quote
function add_picture($aid, $filepath, $filename, $position = 0, $title = '', $caption = '', $keywords = '', $user1 = '', $user2 = '', $user3 = '', $user4 = '', $category = 0, $raw_ip = '', $hdr_ip = '', $iwidth = 0, $iheight = 0)

7) Toujours dans picmgmt.inc.php, je n'ai pas trouvé ça:
Quote
  $CURRENT_PIC_DATA['user1'] = $user1;
    $CURRENT_PIC_DATA['user2'] = $user2;
    $CURRENT_PIC_DATA['user3'] = $user3;
    $CURRENT_PIC_DATA['user4'] = $user4;
    $CURRENT_PIC_DATA['pic_raw_ip'] = $raw_ip;
    $CURRENT_PIC_DATA['pic_hdr_ip'] = $hdr_ip;
    $CURRENT_PIC_DATA['position'] = $position;
    $CURRENT_PIC_DATA = CPGPluginAPI::filter('add_file_data',$CURRENT_PIC_DATA);

    $query = "INSERT INTO {$CONFIG['TABLE_PICTURES']} (pid, aid, filepath, filename, filesize, total_filesize, pwidth, pheight, ctime, owner_id, owner_name, title, caption, keywords, approved, user1, user2, user3, user4, pic_raw_ip, pic_hdr_ip, position) VALUES ('', '{$CURRENT_PIC_DATA['aid']}', '" . addslashes($CURRENT_PIC_DATA['filepath']) . "', '" . addslashes($CURRENT_PIC_DATA['filename']) . "', '{$CURRENT_PIC_DATA['filesize']}', '{$CURRENT_PIC_DATA['total_filesize']}', '{$CURRENT_PIC_DATA['pwidth']}', '{$CURRENT_PIC_DATA['pheight']}', '" . time() . "', '{$CURRENT_PIC_DATA['owner_id']}', '{$CURRENT_PIC_DATA['owner_name']}','{$CURRENT_PIC_DATA['title']}', '{$CURRENT_PIC_DATA['caption']}', '{$CURRENT_PIC_DATA['keywords']}', '{$CURRENT_PIC_DATA['approved']}', '{$CURRENT_PIC_DATA['user1']}', '{$CURRENT_PIC_DATA['user2']}', '{$CURRENT_PIC_DATA['user3']}', '{$CURRENT_PIC_DATA['user4']}', '{$CURRENT_PIC_DATA['pic_raw_ip']}', '{$CURRENT_PIC_DATA['pic_hdr_ip']}', '{$CURRENT_PIC_DATA['position']}')";

Mais ça:
Quote
    $CURRENT_PIC_DATA['user1'] = $user1;
    $CURRENT_PIC_DATA['user2'] = $user2;
    $CURRENT_PIC_DATA['user3'] = $user3;
    $CURRENT_PIC_DATA['user4'] = $user4;
    $CURRENT_PIC_DATA['pic_raw_ip'] = $raw_ip;
    $CURRENT_PIC_DATA['pic_hdr_ip'] = $hdr_ip;
    $CURRENT_PIC_DATA['position'] = $position;
    $CURRENT_PIC_DATA = CPGPluginAPI::filter('add_file_data',$CURRENT_PIC_DATA);

    $query = "INSERT INTO {$CONFIG['TABLE_PICTURES']} (aid, filepath, filename, filesize, total_filesize, pwidth, pheight, ctime, owner_id, owner_name, title, caption, keywords, approved, user1, user2, user3, user4, pic_raw_ip, pic_hdr_ip, position) VALUES ('{$CURRENT_PIC_DATA['aid']}', '" . addslashes($CURRENT_PIC_DATA['filepath']) . "', '" . addslashes($CURRENT_PIC_DATA['filename']) . "', '{$CURRENT_PIC_DATA['filesize']}', '{$CURRENT_PIC_DATA['total_filesize']}', '{$CURRENT_PIC_DATA['pwidth']}', '{$CURRENT_PIC_DATA['pheight']}', '" . time() . "', '{$CURRENT_PIC_DATA['owner_id']}', '{$CURRENT_PIC_DATA['owner_name']}','{$CURRENT_PIC_DATA['title']}', '{$CURRENT_PIC_DATA['caption']}', '{$CURRENT_PIC_DATA['keywords']}', '{$CURRENT_PIC_DATA['approved']}', '{$CURRENT_PIC_DATA['user1']}', '{$CURRENT_PIC_DATA['user2']}', '{$CURRENT_PIC_DATA['user3']}', '{$CURRENT_PIC_DATA['user4']}', '{$CURRENT_PIC_DATA['pic_raw_ip']}', '{$CURRENT_PIC_DATA['pic_hdr_ip']}', '{$CURRENT_PIC_DATA['position']}')";
« Last Edit: August 13, 2006, 05:22:17 pm by Doggy »
Logged

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Re: Champs Personnalisés Supplémentaires
« Reply #7 on: August 13, 2006, 05:35:09 pm »

De plus:

1) Dans le fichier image_processor.php, j'ai remarqué ça qui est en double:
Quote
        $user1    = $_POST['user1'];
        $user2    = $_POST['user2'];
        $user3    = $_POST['user3'];
        $user4    = $_POST['user4'];


2) Dans le fichier upload.php, j'ai remarqué ça aussi:
Quote
if(!empty($CONFIG['user_field1_name'])) {
            $form_array[] = array($CONFIG['user_field1_name'], 'user1', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field2_name'])) {
            $form_array[] = array($CONFIG['user_field2_name'], 'user2', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field3_name'])) {
            $form_array[] = array($CONFIG['user_field3_name'], 'user3', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field4_name'])) {
            $form_array[] = array($CONFIG['user_field4_name'], 'user4', 0, 255, 1);
        }


Je pense que ça devrait être modifié également vu que ça parle de la variable 'user*'
avec *= 1 ou 2 ou 3 ou 4

Voila, j'espere que ça va vous aider à m'aider :)
Logged

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Re: Champs Personnalisés Supplémentaires
« Reply #8 on: August 13, 2006, 10:55:33 pm »

Bon j'ai utilisé une autre façon, j'ai modifié tous les fichiers et la bdd. Mais bon c'est pratique.

ps: Si ça interesse quelqu'un, je vous file toutes les infos.
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Champs Personnalisés Supplémentaires
« Reply #9 on: August 14, 2006, 07:30:29 am »

Bon j'ai utilisé une autre façon, j'ai modifié tous les fichiers et la bdd. Mais bon c'est pratique.

ps: Si ça interesse quelqu'un, je vous file toutes les infos.
oui bien sur ça nous interresse (enfin moi déjà, je vais certainement avoir besoin de plus de 4 champs utilisateurs et je voulais tester la solution proposée par le mod)
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Pascal YAP

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Champs Personnalisés Supplémentaires
« Reply #10 on: August 14, 2006, 07:30:56 am »

Bonjour Doggy,

Quote
ps: Si ça interesse quelqu'un, je vous file toutes les infos.
Inutile de demander si quelqu'un est interressé ! Tout le Monde est interressé !
C'est le principe du Forum  ;)

PYAP
Logged

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Re: Champs Personnalisés Supplémentaires
« Reply #11 on: August 17, 2006, 07:59:55 pm »

Bonsoir, Ok je vous donne ça demain soir avec toutes les explications.
Logged

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Re: Champs Personnalisés Supplémentaires
« Reply #12 on: August 18, 2006, 09:41:11 pm »

Bon alors ce que je vais vous proposer rajoute 16 Champs Personnalisés Supplémentaires.

Auteur :  Doggy

1. Les fichiers à modifier.

  • db_input.php
  • displayimage.php
  • editOnePic.php
  • editpics.php
  • lang/english.php
  • lang/french.php
  • image_processor.php
  • include/picmgmt.inc.php
  • include/search.inc.php
  • thumbnails.php
  • upload.php
  • xp_publish.php

Téléchargez ces fichiers et faites un Backup avant les modifications !

Faites les modifications suivantes (les fichiers seront remplacés sur le ftp au DERNIER MOMENT !!).

Ouvrez: db_input.php
Recherchez:
Code: [Select]
        $user1 = addslashes($_POST['user1']);
        $user2 = addslashes($_POST['user2']);
        $user3 = addslashes($_POST['user3']);
        $user4 = addslashes($_POST['user4']);

Ajoutez ci-dessous:
Code: [Select]
$user5 = addslashes($_POST['user5']);
$user6 = addslashes($_POST['user6']);
$user7 = addslashes($_POST['user7']);
$user8 = addslashes($_POST['user8']);
$user9 = addslashes($_POST['user9']);
$user10 = addslashes($_POST['user10']);
$user11 = addslashes($_POST['user11']);
        $user12 = addslashes($_POST['user12']);
        $user13 = addslashes($_POST['user13']);
        $user14 = addslashes($_POST['user14']);
$user15 = addslashes($_POST['user15']);
$user16 = addslashes($_POST['user16']);
$user17 = addslashes($_POST['user17']);
$user18 = addslashes($_POST['user18']);
$user19 = addslashes($_POST['user19']);
$user20 = addslashes($_POST['user20']);


Recherchez:
Code: [Select]
$user1, $user2, $user3, $user4,
Ajoutez ci-dessous:
Code: [Select]
$user5, $user6, $user7, $user8, $user9, $user10, $user11, $user12, $user13, $user14, $user15, $user16, $user17, $user18, $user19, $user20,
Sauvegardez & Fermez : db_input.php


Ouvrez: displayimage.php
Recherchez:
Code: [Select]
for ($i = 1; $i <= 4; $i++)
Remplacez le 4 par 20:
Code: [Select]
for ($i = 1; $i <= 20; $i++)
Sauvegardez & Fermez : displayimage.php


Ouvrez: editOnePic.php
Recherchez:
Code: [Select]
    $user1        = $_POST['user1'];
    $user2        = $_POST['user2'];
    $user3        = $_POST['user3'];
    $user4        = $_POST['user4'];

Ajoutez ci-dessous:
Code: [Select]
$user5        = $_POST['user5'];
$user6        = $_POST['user6'];
$user7        = $_POST['user7'];
$user8        = $_POST['user8'];
$user9        = $_POST['user9'];
$user10        = $_POST['user10'];
    $user11        = $_POST['user11'];
    $user12        = $_POST['user12'];
    $user13        = $_POST['user13'];
    $user14        = $_POST['user14'];
$user15        = $_POST['user15'];
$user16        = $_POST['user16'];
$user17        = $_POST['user17'];
$user18        = $_POST['user18'];
$user19        = $_POST['user19'];
$user20        = $_POST['user20'];


Recherchez:
Code: [Select]
    $update .= ", user1 = '".addslashes($user1)."'";
    $update .= ", user2 = '".addslashes($user2)."'";
    $update .= ", user3 = '".addslashes($user3)."'";
    $update .= ", user4 = '".addslashes($user4)."'";

Ajoutez ci-dessous:
Code: [Select]
$update .= ", user5 = '".addslashes($user5)."'";
$update .= ", user6 = '".addslashes($user6)."'";
$update .= ", user7 = '".addslashes($user7)."'";
$update .= ", user8 = '".addslashes($user8)."'";
$update .= ", user9 = '".addslashes($user9)."'";
$update .= ", user10 = '".addslashes($user10)."'";
    $update .= ", user11 = '".addslashes($user11)."'";
    $update .= ", user12 = '".addslashes($user12)."'";
    $update .= ", user13 = '".addslashes($user13)."'";
    $update .= ", user14 = '".addslashes($user14)."'";
$update .= ", user15 = '".addslashes($user15)."'";
$update .= ", user16 = '".addslashes($user16)."'";
$update .= ", user17 = '".addslashes($user17)."'";
$update .= ", user18 = '".addslashes($user18)."'";
$update .= ", user19 = '".addslashes($user19)."'";
$update .= ", user20 = '".addslashes($user20)."'";


Recherchez:
Code: [Select]
EOT;
if ($CONFIG['user_field1_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field1_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                                <input type="text" style="width: 100%" name="user1" maxlength="255" value="{$CURRENT_PIC['user1']}" class="textinput" />
                        </td>
        </tr>
EOT;
}
if ($CONFIG['user_field2_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field2_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user2" maxlength="255" value="{$CURRENT_PIC['user2']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field3_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field3_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user3" maxlength="255" value="{$CURRENT_PIC['user3']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field4_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field4_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user4" maxlength="255" value="{$CURRENT_PIC['user4']}" class="textinput" />
                        </td>
        </tr>
EOT;
}

Ajoutez ci-dessous:
Code: [Select]
if ($CONFIG['user_field5_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field5_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user5" maxlength="255" value="{$CURRENT_PIC['user5']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field6_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field6_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user6" maxlength="255" value="{$CURRENT_PIC['user6']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field7_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field7_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user7" maxlength="255" value="{$CURRENT_PIC['user7']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field8_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field8_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user8" maxlength="255" value="{$CURRENT_PIC['user8']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field9_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field9_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user9" maxlength="255" value="{$CURRENT_PIC['user9']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field10_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field10_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user10" maxlength="255" value="{$CURRENT_PIC['user10']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field11_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field11_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                                <input type="text" style="width: 100%" name="user11" maxlength="255" value="{$CURRENT_PIC['user11']}" class="textinput" />
                        </td>
        </tr>
EOT;
}
if ($CONFIG['user_field12_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field12_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user12" maxlength="255" value="{$CURRENT_PIC['user12']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field13_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field13_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user13" maxlength="255" value="{$CURRENT_PIC['user13']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field14_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field14_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user14" maxlength="255" value="{$CURRENT_PIC['user14']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field15_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field15_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user15" maxlength="255" value="{$CURRENT_PIC['user15']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field16_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field16_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user16" maxlength="255" value="{$CURRENT_PIC['user16']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field17_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field17_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user17" maxlength="255" value="{$CURRENT_PIC['user17']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field18_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field18_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user18" maxlength="255" value="{$CURRENT_PIC['user18']}" class="textinput" />
                        </td>
        </tr>
EOT;
}if ($CONFIG['user_field19_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field19_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user19" maxlength="255" value="{$CURRENT_PIC['user19']}" class="textinput" />
                        </td>
        </tr>

EOT;
}if ($CONFIG['user_field20_name'] != ''){
echo <<<EOT
        <tr>
            <td class="tableb" style="white-space: nowrap;">
                {$CONFIG['user_field20_name']}
                </td>
                <td width="100%" class="tableb" valign="top">
                <input type="text" style="width: 100%" name="user20" maxlength="255" value="{$CURRENT_PIC['user20']}" class="textinput" />
                        </td>
        </tr>
EOT;
}

Recherchez:
Code: [Select]
if ($CONFIG['user_field1_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field2_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field3_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field4_name'] != '') $THUMB_ROWSPAN++;

Ajoutez ci-dessous:
Code: [Select]
if ($CONFIG['user_field6_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field7_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field8_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field9_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field10_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field11_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field12_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field13_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field14_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field15_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field16_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field17_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field18_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field19_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field20_name'] != '') $THUMB_ROWSPAN++;


Sauvegardez & Fermez : editOnePic.php
« Last Edit: August 18, 2006, 10:50:22 pm by Doggy »
Logged

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Re: Champs Personnalisés Supplémentaires
« Reply #13 on: August 18, 2006, 09:54:49 pm »

Ouvrez: editpics.php
Recherchez:
Code: [Select]
        array($CONFIG['user_field1_name'], 'user1', 0, 255),
        array($CONFIG['user_field2_name'], 'user2', 0, 255),
        array($CONFIG['user_field3_name'], 'user3', 0, 255),
        array($CONFIG['user_field4_name'], 'user4', 0, 255),

Ajoutez ci-dessous:
Code: [Select]
array($CONFIG['user_field5_name'], 'user5', 0, 255),
array($CONFIG['user_field6_name'], 'user6', 0, 255),
array($CONFIG['user_field7_name'], 'user7', 0, 255),
array($CONFIG['user_field8_name'], 'user8', 0, 255),
array($CONFIG['user_field9_name'], 'user9', 0, 255),
array($CONFIG['user_field10_name'], 'user10', 0, 255),
    array($CONFIG['user_field11_name'], 'user11', 0, 255),
        array($CONFIG['user_field12_name'], 'user12', 0, 255),
        array($CONFIG['user_field13_name'], 'user13', 0, 255),
        array($CONFIG['user_field14_name'], 'user14', 0, 255),
array($CONFIG['user_field15_name'], 'user15', 0, 255),
array($CONFIG['user_field16_name'], 'user16', 0, 255),
array($CONFIG['user_field17_name'], 'user17', 0, 255),
array($CONFIG['user_field18_name'], 'user18', 0, 255),
array($CONFIG['user_field19_name'], 'user19', 0, 255),
array($CONFIG['user_field20_name'], 'user20', 0, 255),

Recherchez:
Code: [Select]
                $user1       = get_post_var('user1', $pid);
                $user2       = get_post_var('user2', $pid);
                $user3       = get_post_var('user3', $pid);
                $user4       = get_post_var('user4', $pid);

Ajoutez ci-dessous:
Code: [Select]
$user5       = get_post_var('user5', $pid);
$user6       = get_post_var('user6', $pid);
$user7       = get_post_var('user7', $pid);
$user8       = get_post_var('user8', $pid);
$user9       = get_post_var('user9', $pid);
$user10       = get_post_var('user10', $pid);
            $user11       = get_post_var('user11', $pid);
                $user12       = get_post_var('user12', $pid);
                $user13       = get_post_var('user13', $pid);
                $user14       = get_post_var('user14', $pid);
$user15       = get_post_var('user15', $pid);
$user16       = get_post_var('user16', $pid);
$user17       = get_post_var('user17', $pid);
$user18       = get_post_var('user18', $pid);
$user19       = get_post_var('user19', $pid);
$user20       = get_post_var('user20', $pid);

Recherchez:
Code: [Select]
                $update .= ", user1 = '".addslashes($user1)."'";
                $update .= ", user2 = '".addslashes($user2)."'";
                $update .= ", user3 = '".addslashes($user3)."'";
                $update .= ", user4 = '".addslashes($user4)."'";

Ajoutez ci-dessous:
Code: [Select]
$update .= ", user5 = '".addslashes($user5)."'";
$update .= ", user6 = '".addslashes($user6)."'";
$update .= ", user7 = '".addslashes($user7)."'";
$update .= ", user8 = '".addslashes($user8)."'";
$update .= ", user9 = '".addslashes($user9)."'";
$update .= ", user10 = '".addslashes($user10)."'";
                $update .= ", user11 = '".addslashes($user11)."'";
                $update .= ", user12 = '".addslashes($user12)."'";
                $update .= ", user13 = '".addslashes($user13)."'";
                $update .= ", user14 = '".addslashes($user14)."'";
$update .= ", user15 = '".addslashes($user15)."'";
$update .= ", user16 = '".addslashes($user16)."'";
$update .= ", user17 = '".addslashes($user17)."'";
$update .= ", user18 = '".addslashes($user18)."'";
$update .= ", user19 = '".addslashes($user19)."'";
$update .= ", user20 = '".addslashes($user20)."'";

Recherchez:
Code: [Select]
if ($CONFIG['user_field1_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field2_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field3_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field4_name'] != '') $THUMB_ROWSPAN++;

Ajoutez ci-dessous:
Code: [Select]
if ($CONFIG['user_field5_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field6_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field7_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field8_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field9_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field10_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field11_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field12_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field13_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field14_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field15_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field16_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field17_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field18_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field19_name'] != '') $THUMB_ROWSPAN++;
if ($CONFIG['user_field20_name'] != '') $THUMB_ROWSPAN++;

Sauvegardez & Fermez : editpics.php


Ouvrez: lang/english.php
Recherchez:
Code: [Select]
  array('Field 1 name', 'user_field1_name', 0, 'f=index.htm&amp;as=admin_custom_image&amp;ae=admin_custom_image_end'), //cpg1.4
  array('Field 2 name', 'user_field2_name', 0),
  array('Field 3 name', 'user_field3_name', 0),
  array('Field 4 name', 'user_field4_name', 0),

Ajoutez ci-dessous:
Code: [Select]
  array('Field 5 name', 'user_field5_name', 0),
  array('Field 6 name', 'user_field6_name', 0),
  array('Field 7 name', 'user_field7_name', 0),
  array('Field 8 name', 'user_field8_name', 0),
  array('Field 9 name', 'user_field9_name', 0),
  array('Field 10 name', 'user_field10_name', 0),
  array('Field 11 name', 'user_field11_name', 0),
  array('Field 12 name', 'user_field12_name', 0),
  array('Field 13 name', 'user_field13_name', 0),
  array('Field 14 name', 'user_field14_name', 0),
  array('Field 15 name', 'user_field15_name', 0),
  array('Field 16 name', 'user_field16_name', 0),
  array('Field 17 name', 'user_field17_name', 0),
  array('Field 18 name', 'user_field18_name', 0),
  array('Field 19 name', 'user_field19_name', 0),
  array('Field 20 name', 'user_field20_name', 0),

Sauvegardez & Fermez : lang/english.php


Ouvrez: lang/french.php
Recherchez:
Code: [Select]
  array('Nom du champ 1', 'user_field1_name', 0, 'f=index.htm&amp;as=admin_custom_image&amp;ae=admin_custom_image_end'), //cpg1.4
  array('Nom du champ 2', 'user_field2_name', 0),
  array('Nom du champ 3', 'user_field3_name', 0),
  array('Nom du champ 4', 'user_field4_name', 0),

Ajoutez ci-dessous:
Code: [Select]
  array('Nom du champ 5', 'user_field5_name', 0),
  array('Nom du champ 6', 'user_field6_name', 0),
  array('Nom du champ 7', 'user_field7_name', 0),
  array('Nom du champ 8', 'user_field8_name', 0),
  array('Nom du champ 9', 'user_field9_name', 0),
  array('Nom du champ 10', 'user_field10_name', 0),
  array('Nom du champ 11', 'user_field11_name', 0),
  array('Nom du champ 12', 'user_field12_name', 0),
  array('Nom du champ 13', 'user_field13_name', 0),
  array('Nom du champ 14', 'user_field14_name', 0),
  array('Nom du champ 15', 'user_field15_name', 0),
  array('Nom du champ 16', 'user_field16_name', 0),
  array('Nom du champ 17', 'user_field17_name', 0),
  array('Nom du champ 18', 'user_field18_name', 0),
  array('Nom du champ 19', 'user_field19_name', 0),
  array('Nom du champ 20', 'user_field20_name', 0),

Sauvegardez & Fermez : lang/french.php
« Last Edit: August 18, 2006, 10:27:54 pm by Doggy »
Logged

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Re: Champs Personnalisés Supplémentaires
« Reply #14 on: August 18, 2006, 10:11:25 pm »

Ouvrez: image_processor.php
Recherchez:
Code: [Select]
global $user1;
global $user2;
global $user3;
global $user4;

Ajoutez ci-dessous:
Code: [Select]
global $user5;
global $user6;
global $user7;
global $user8;
global $user9;
global $user10;
global $user11;
global $user12;
global $user13;
global $user14;
global $user15;
global $user16;
global $user17;
global $user18;
global $user19;
global $user20;

Recherchez:
Code: [Select]
print "<input type=\"hidden\" name=\"user1\" value=\"$user1\" />";
print "<input type=\"hidden\" name=\"user2\" value=\"$user2\" />";
print "<input type=\"hidden\" name=\"user3\" value=\"$user3\" />";
print "<input type=\"hidden\" name=\"user4\" value=\"$user4\" />";

Ajoutez ci-dessous:
Code: [Select]
print "<input type=\"hidden\" name=\"user5\" value=\"$user5\" />";
print "<input type=\"hidden\" name=\"user6\" value=\"$user6\" />";
print "<input type=\"hidden\" name=\"user7\" value=\"$user7\" />";
print "<input type=\"hidden\" name=\"user8\" value=\"$user8\" />";
print "<input type=\"hidden\" name=\"user9\" value=\"$user9\" />";
print "<input type=\"hidden\" name=\"user10\" value=\"$user10\" />";
print "<input type=\"hidden\" name=\"user11\" value=\"$user11\" />";
print "<input type=\"hidden\" name=\"user12\" value=\"$user12\" />";
print "<input type=\"hidden\" name=\"user13\" value=\"$user13\" />";
print "<input type=\"hidden\" name=\"user14\" value=\"$user14\" />";
print "<input type=\"hidden\" name=\"user15\" value=\"$user15\" />";
print "<input type=\"hidden\" name=\"user16\" value=\"$user16\" />";
print "<input type=\"hidden\" name=\"user17\" value=\"$user17\" />";
print "<input type=\"hidden\" name=\"user18\" value=\"$user18\" />";
print "<input type=\"hidden\" name=\"user19\" value=\"$user19\" />";
print "<input type=\"hidden\" name=\"user20\" value=\"$user20\" />";

Recherchez:
Code: [Select]
        $user1    = $_POST['user1'];
        $user2    = $_POST['user2'];
        $user3    = $_POST['user3'];
        $user4    = $_POST['user4'];

Ajoutez ci-dessous:
Code: [Select]
$user5    = $_POST['user5'];
$user6    = $_POST['user6'];
$user7    = $_POST['user7'];
$user8    = $_POST['user8'];
$user9    = $_POST['user9'];
$user10    = $_POST['user10'];
        $user11    = $_POST['user11'];
        $user12    = $_POST['user12'];
        $user13    = $_POST['user13'];
        $user14    = $_POST['user14'];
$user15    = $_POST['user15'];
$user16    = $_POST['user16'];
$user17    = $_POST['user17'];
$user18    = $_POST['user18'];
$user19    = $_POST['user19'];
$user20    = $_POST['user20'];

Recherchez:
Code: [Select]
        $user1    = $_POST['user1'];
        $user2    = $_POST['user2'];
        $user3    = $_POST['user3'];
        $user4    = $_POST['user4'];

Ajoutez ci-dessous:
Code: [Select]
$user5    = $_POST['user5'];
$user6    = $_POST['user6'];
$user7    = $_POST['user7'];
$user8    = $_POST['user8'];
$user9    = $_POST['user9'];
$user10    = $_POST['user10'];
        $user11    = $_POST['user11'];
        $user12    = $_POST['user12'];
        $user13    = $_POST['user13'];
        $user14    = $_POST['user14'];
$user15    = $_POST['user15'];
$user16    = $_POST['user16'];
$user17    = $_POST['user17'];
$user18    = $_POST['user18'];
$user19    = $_POST['user19'];
$user20    = $_POST['user20'];

Recherchez:
Code: [Select]
                print "<input type=\"hidden\" name=\"user1\" value=\"$user1\" />";
                print "<input type=\"hidden\" name=\"user2\" value=\"$user2\" />";
                print "<input type=\"hidden\" name=\"user3\" value=\"$user3\" />";
                print "<input type=\"hidden\" name=\"user4\" value=\"$user4\" />";

Ajoutez ci-dessous:
Code: [Select]
print "<input type=\"hidden\" name=\"user5\" value=\"$user5\" />";
print "<input type=\"hidden\" name=\"user6\" value=\"$user6\" />";
print "<input type=\"hidden\" name=\"user7\" value=\"$user7\" />";
print "<input type=\"hidden\" name=\"user8\" value=\"$user8\" />";
print "<input type=\"hidden\" name=\"user9\" value=\"$user9\" />";
print "<input type=\"hidden\" name=\"user10\" value=\"$user10\" />";
print "<input type=\"hidden\" name=\"user11\" value=\"$user11\" />";
                print "<input type=\"hidden\" name=\"user12\" value=\"$user12\" />";
                print "<input type=\"hidden\" name=\"user13\" value=\"$user13\" />";
                print "<input type=\"hidden\" name=\"user14\" value=\"$user14\" />";
print "<input type=\"hidden\" name=\"user15\" value=\"$user15\" />";
print "<input type=\"hidden\" name=\"user16\" value=\"$user16\" />";
print "<input type=\"hidden\" name=\"user17\" value=\"$user17\" />";
print "<input type=\"hidden\" name=\"user18\" value=\"$user18\" />";
print "<input type=\"hidden\" name=\"user19\" value=\"$user19\" />";
print "<input type=\"hidden\" name=\"user20\" value=\"$user20\" />";

Sauvegardez & Fermez : image_processor.php


Ouvrez: include/picmgmt.inc.php
Recherchez:
Code: [Select]
$user1 = '', $user2 = '', $user3 = '', $user4 = '',
Ajoutez ci-dessous:
Code: [Select]
$user5 = '', $user6 = '', $user7 = '', $user8 = '', $user9 = '', $user10 = '', $user11 = '', $user12 = '', $user13 = '', $user14 = '', $user15 = '', $user16 = '', $user17 = '', $user18 = '', $user19 = '', $user20 = '',
Recherchez:
Code: [Select]
    $CURRENT_PIC_DATA['user1'] = $user1;
    $CURRENT_PIC_DATA['user2'] = $user2;
    $CURRENT_PIC_DATA['user3'] = $user3;
    $CURRENT_PIC_DATA['user4'] = $user4;

Ajoutez ci-dessous:
Code: [Select]
$CURRENT_PIC_DATA['user5'] = $user5;
$CURRENT_PIC_DATA['user6'] = $user6;
$CURRENT_PIC_DATA['user7'] = $user7;
$CURRENT_PIC_DATA['user8'] = $user8;
$CURRENT_PIC_DATA['user9'] = $user9;
$CURRENT_PIC_DATA['user10'] = $user10;
    $CURRENT_PIC_DATA['user11'] = $user11;
    $CURRENT_PIC_DATA['user12'] = $user12;
    $CURRENT_PIC_DATA['user13'] = $user13;
    $CURRENT_PIC_DATA['user14'] = $user14;
$CURRENT_PIC_DATA['user15'] = $user15;
$CURRENT_PIC_DATA['user16'] = $user16;
$CURRENT_PIC_DATA['user17'] = $user17;
$CURRENT_PIC_DATA['user18'] = $user18;
$CURRENT_PIC_DATA['user19'] = $user19;
$CURRENT_PIC_DATA['user20'] = $user20;

Sauvegardez & Fermez : include/picmgmt.inc.php


Ouvrez: include/search.inc.php
Recherchez:
Code: [Select]
'user1', 'user2', 'user3', 'user4'
Ajoutez ci-dessous:
Code: [Select]
, 'user5', 'user6', 'user7', 'user8', 'user9', 'user10', 'user11', 'user12', 'user13', 'user14', 'user15', 'user16', 'user17', 'user18', 'user19', 'user20'
Sauvegardez & Fermez : include/search.inc.php
Logged

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Re: Champs Personnalisés Supplémentaires
« Reply #15 on: August 18, 2006, 10:26:44 pm »

Ouvrez: thumbnails.php
Recherchez:
Code: [Select]
'user1', 'user2', 'user3', 'user4'
Ajoutez ci-dessous:
Code: [Select]
, 'user5', 'user6', 'user7', 'user8', 'user9', 'user10', 'user11', 'user12', 'user13', 'user14', 'user15', 'user16', 'user17', 'user18', 'user19', 'user20'
Sauvegardez & Fermez : thumbnails.php


Ouvrez: upload.php
Recherchez:
Code: [Select]
        if(!empty($CONFIG['user_field1_name'])) {
            $form_array[] = array($CONFIG['user_field1_name'], 'user1', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field2_name'])) {
            $form_array[] = array($CONFIG['user_field2_name'], 'user2', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field3_name'])) {
            $form_array[] = array($CONFIG['user_field3_name'], 'user3', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field4_name'])) {
            $form_array[] = array($CONFIG['user_field4_name'], 'user4', 0, 255, 1);
        }

Ajoutez ci-dessous:
Code: [Select]

        if(!empty($CONFIG['user_field5_name'])) {
            $form_array[] = array($CONFIG['user_field5_name'], 'user5', 0, 255, 1);
        }
       
if(!empty($CONFIG['user_field6_name'])) {
            $form_array[] = array($CONFIG['user_field6_name'], 'user6', 0, 255, 1);
        }
       
if(!empty($CONFIG['user_field7_name'])) {
            $form_array[] = array($CONFIG['user_field7_name'], 'user7', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field8_name'])) {
            $form_array[] = array($CONFIG['user_field8_name'], 'user8', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field9_name'])) {
            $form_array[] = array($CONFIG['user_field9_name'], 'user9', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field10_name'])) {
            $form_array[] = array($CONFIG['user_field10_name'], 'user10', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field11_name'])) {
            $form_array[] = array($CONFIG['user_field11_name'], 'user11', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field12_name'])) {
            $form_array[] = array($CONFIG['user_field12_name'], 'user12', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field13_name'])) {
            $form_array[] = array($CONFIG['user_field13_name'], 'user13', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field14_name'])) {
            $form_array[] = array($CONFIG['user_field14_name'], 'user14', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field15_name'])) {
            $form_array[] = array($CONFIG['user_field15_name'], 'user15', 0, 255, 1);
        }
       
if(!empty($CONFIG['user_field16_name'])) {
            $form_array[] = array($CONFIG['user_field16_name'], 'user16', 0, 255, 1);
        }
       
if(!empty($CONFIG['user_field17_name'])) {
            $form_array[] = array($CONFIG['user_field17_name'], 'user17', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field18_name'])) {
            $form_array[] = array($CONFIG['user_field18_name'], 'user18', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field19_name'])) {
            $form_array[] = array($CONFIG['user_field19_name'], 'user19', 0, 255, 1);
        }

        if(!empty($CONFIG['user_field20_name'])) {
            $form_array[] = array($CONFIG['user_field20_name'], 'user20', 0, 255, 1);
        }

Recherchez:
Code: [Select]
    if(!empty($CONFIG['user_field1_name'])) {
        $form_array[] = array($CONFIG['user_field1_name'], 'user1', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field2_name'])) {
        $form_array[] = array($CONFIG['user_field2_name'], 'user2', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field3_name'])) {
        $form_array[] = array($CONFIG['user_field3_name'], 'user3', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field4_name'])) {
        $form_array[] = array($CONFIG['user_field4_name'], 'user4', 0, 255, 1);
    }

Ajoutez ci-dessous:
Code: [Select]
    if(!empty($CONFIG['user_field5_name'])) {
        $form_array[] = array($CONFIG['user_field5_name'], 'user5', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field6_name'])) {
        $form_array[] = array($CONFIG['user_field6_name'], 'user6', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field7_name'])) {
        $form_array[] = array($CONFIG['user_field7_name'], 'user7', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field8_name'])) {
        $form_array[] = array($CONFIG['user_field8_name'], 'user8', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field9_name'])) {
        $form_array[] = array($CONFIG['user_field9_name'], 'user9', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field10_name'])) {
        $form_array[] = array($CONFIG['user_field10_name'], 'user10', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field11_name'])) {
        $form_array[] = array($CONFIG['user_field11_name'], 'user11', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field12_name'])) {
        $form_array[] = array($CONFIG['user_field12_name'], 'user12', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field13_name'])) {
        $form_array[] = array($CONFIG['user_field13_name'], 'user13', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field14_name'])) {
        $form_array[] = array($CONFIG['user_field14_name'], 'user14', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field15_name'])) {
        $form_array[] = array($CONFIG['user_field15_name'], 'user15', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field16_name'])) {
        $form_array[] = array($CONFIG['user_field16_name'], 'user16', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field17_name'])) {
        $form_array[] = array($CONFIG['user_field17_name'], 'user17', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field18_name'])) {
        $form_array[] = array($CONFIG['user_field18_name'], 'user18', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field19_name'])) {
        $form_array[] = array($CONFIG['user_field19_name'], 'user19', 0, 255, 1);
    }

    if(!empty($CONFIG['user_field20_name'])) {
        $form_array[] = array($CONFIG['user_field20_name'], 'user20', 0, 255, 1);
    }

Recherchez:
Code: [Select]
        $user1 = addslashes($_POST['user1']);
        $user2 = addslashes($_POST['user2']);
        $user3 = addslashes($_POST['user3']);
        $user4 = addslashes($_POST['user4']);

Ajoutez ci-dessous:
Code: [Select]
$user5 = addslashes($_POST['user5']);
$user6 = addslashes($_POST['user6']);
$user7 = addslashes($_POST['user7']);
$user8 = addslashes($_POST['user8']);
$user9 = addslashes($_POST['user9']);
$user10 = addslashes($_POST['user10']);
        $user11 = addslashes($_POST['user11']);
        $user12 = addslashes($_POST['user12']);
        $user13 = addslashes($_POST['user13']);
        $user14 = addslashes($_POST['user14']);
$user15 = addslashes($_POST['user15']);
$user16 = addslashes($_POST['user16']);
$user17 = addslashes($_POST['user17']);
$user18 = addslashes($_POST['user18']);
$user19 = addslashes($_POST['user19']);
$user20 = addslashes($_POST['user20']);

Recherchez:
Code: [Select]
$user1, $user2, $user3, $user4,
Ajoutez ci-dessous:
Code: [Select]
$user5, $user6, $user7, $user8, $user9, $user10, $user11, $user12, $user13, $user14, $user15, $user16, $user17, $user18, $user19, $user20,
Sauvegardez & Fermez : upload.php


Ouvrez: xp_publish.php
Recherchez:
Code: [Select]
    $user1 = '';
    $user2 = '';
    $user3 = '';
    $user4 = '';

Ajoutez ci-dessous:
Code: [Select]
$user5 = '';
$user6 = '';
$user7 = '';
$user8 = '';
$user9 = '';
    $user10 = '';
    $user11 = '';
    $user12 = '';
    $user13 = '';
    $user14 = '';
$user15 = '';
$user16 = '';
$user17 = '';
$user18 = '';
$user19 = '';
    $user20 = '';

Recherchez:
Code: [Select]
$user1, $user2, $user3, $user4,
Ajoutez ci-dessous:
Code: [Select]
$user5, $user6, $user7, $user8, $user9, $user10, $user11, $user12, $user13, $user14, $user15, $user16, $user17, $user18, $user19, $user20,
Sauvegardez & Fermez : xp_publish.php
Logged

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Re: Champs Personnalisés Supplémentaires
« Reply #16 on: August 18, 2006, 10:48:42 pm »

2. La base de donnée à modifier.

Faite une sauvegarde de votre base de donnée et faites un Backup avant les modifications !

Allez dans l'onglet configuration de la galerie, enlevez tous les champs existant (laissez les cases vident)

Faite une autre sauvegarde de votre base de donnée et faites les modifications suivantes sur celle-ci puis importez là.

("Table Préfixe doit être remplacé par le Préfixe de votre Table.)

Recherchez dans "Table Préfixe"_pictures:
Code: [Select]
  `user1` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user2` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user3` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user4` varchar(255) collate latin1_german2_ci NOT NULL default '',

Ajoutez ci-dessous:
Code: [Select]
  `user5` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user6` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user7` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user8` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user9` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user10` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user11` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user12` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user13` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user14` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user15` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user16` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user17` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user18` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user19` varchar(255) collate latin1_german2_ci NOT NULL default '',
  `user20` varchar(255) collate latin1_german2_ci NOT NULL default '',

Recherchez dans "Table Préfixe"_config:
Code: [Select]
INSERT INTO `cpg148_config` VALUES ('user_field1_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field2_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field3_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field4_name', '');

Ajoutez ci-dessous:
Code: [Select]
INSERT INTO `cpg148_config` VALUES ('user_field5_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field6_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field7_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field8_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field9_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field10_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field11_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field12_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field13_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field14_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field15_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field16_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field17_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field18_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field19_name', '');
INSERT INTO `cpg148_config` VALUES ('user_field20_name', '');


Uploadez TOUT LES FICHIERS MODIFIÉS et ça devrait fonctionner.

Si vous remarquez des erreurs (surtout de virgule ou autres p'tits truc...) dites le moi, et excusez moi d'avance ;).
Logged

Pascal YAP

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Champs Personnalisés Supplémentaires
« Reply #17 on: August 19, 2006, 09:37:49 am »

Doggy,

Excellent  ;D
J'imagine que vous avez fait des essais avant de publier !

Merci pour la contribution  :-*

PYAP
Logged

Doggy

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 63
Re: Champs Personnalisés Supplémentaires
« Reply #18 on: August 19, 2006, 03:13:14 pm »

Oui, ça marche impec, mais je ne suis pas à l'abris d'une erreur.
Logged

Pascal YAP

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Champs Personnalisés Supplémentaires
« Reply #19 on: August 19, 2006, 04:09:59 pm »

Doggy est passé CONTRIBUTOR dans la hiérarchie du Forum  ;D

PYAP
Logged
Pages: [1] 2   Go Up
 

Page created in 0.057 seconds with 20 queries.