Annonce

#1 2003-08-11 06:18:54

paulmaher
Membre
Inscription : 2003-08-11
Messages : 17

Re : petits détails

Bomjour

Comment je changez les menus dans des sections d'admin en changement 'texte 'pour lire 'plain text


excuses pour mon mauvais Français!

Merci
Paul.M

Hors ligne

#2 2003-08-11 16:55:51

Bobe
Administrateur
Lieu : La Rochelle
Inscription : 2002-05-27
Messages : 5 299

Re : petits détails

Are you english ?

Please write your message in your natural language..


PHP et MySQL, un duo gagnant !

Hors ligne

#3 2003-08-11 17:47:11

Bobe
Administrateur
Lieu : La Rochelle
Inscription : 2002-05-27
Messages : 5 299

Re : petits détails

What is the version that you use ?


PHP et MySQL, un duo gagnant !

Hors ligne

#4 2003-08-11 23:37:42

paulmaher
Membre
Inscription : 2003-08-11
Messages : 17

Re : petits détails

I've managed to do this now thanks Bobe when I searched for 'texte' my search and replace utility was ignoring the .tpl files for some reason hence I was confused..

Thanks

Hors ligne

#5 2003-08-12 19:34:34

Bobe
Administrateur
Lieu : La Rochelle
Inscription : 2002-05-27
Messages : 5 299

Re : petits détails

I wanted to chnage texte to plain text as non technical people in UK might not understand texte to be the same thing as plain text

In what page ?


PHP et MySQL, un duo gagnant !

Hors ligne

#6 2003-08-12 20:03:39

paulmaher
Membre
Inscription : 2003-08-11
Messages : 17

Re : petits détails

Hi Bobe

It was mainly in the options for adding and editing lists in the administration (dropdown menus for format).

I edited: view_liste.tpl ,  newletter.php and view.php from v.214 of WANewsletter

Hors ligne

#7 2003-08-12 20:38:04

Bobe
Administrateur
Lieu : La Rochelle
Inscription : 2002-05-27
Messages : 5 299

Re : petits détails

in view.php, replace at line 481 :

$box_format = '<select name="format">';        
        $box_format .= ( $row['choix_format'] == FORMAT_TEXTE ) ? '<option value="1" selected="selected"> - texte - </option>' : '<option value="1"> - texte - </option>';
        $box_format .= ( $row['choix_format'] == FORMAT_HTML ) ? '<option value="2" selected="selected"> - html - </option>' : '<option value="2"> - html - </option>';
        $box_format .= ( $row['choix_format'] == FORMAT_MULTIPLE ) ? '<option value="3" selected="selected"> - texte & html - </option>' : '<option value="3"> - texte & html - </option>';
        $box_format .= '</select>';

by

$box_format = '<select name="format">';        
        $box_format .= ( $row['choix_format'] == FORMAT_TEXTE ) ? '<option value="1" selected="selected"> - plain texte - </option>' : '<option value="1"> - texte - </option>';
        $box_format .= ( $row['choix_format'] == FORMAT_HTML ) ? '<option value="2" selected="selected"> - html - </option>' : '<option value="2"> - html - </option>';
        $box_format .= ( $row['choix_format'] == FORMAT_MULTIPLE ) ? '<option value="3" selected="selected"> - plain texte & html - </option>' : '<option value="3"> - texte & html - </option>';
        $box_format .= '</select>';

and replace at line 764 :

switch($row['choix_format'])
        {
            case FORMAT_TEXTE:
                $format = "txt";
                break;            
            case FORMAT_HTML:
                $format = "html";
                break;            
            case FORMAT_MULTIPLE:
                $format = "txt & html";
                break;
            default:
                $format = $lang['unknow'];
                break;
        }

by :

switch($row['choix_format'])
        {
            case FORMAT_TEXTE:
                $format = "plain texte";
                break;            
            case FORMAT_HTML:
                $format = "html";
                break;            
            case FORMAT_MULTIPLE:
                $format = "plain texte & html";
                break;
            default:
                $format = $lang['unknow'];
                break;
        }

PHP et MySQL, un duo gagnant !

Hors ligne

#8 2003-08-13 02:07:47

paulmaher
Membre
Inscription : 2003-08-11
Messages : 17

Re : petits détails

Thanks Biobe I managed to make all the changes ..............

Hors ligne

Pied de page des forums