Vous n'êtes pas identifié(e).
[25 janvier 2021] - Publication de Wanewsletter 3.1.0
Pages : 1
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
Are you english ?
Please write your message in your natural language..
PHP et MySQL, un duo gagnant !
Hors ligne
What is the version that you use ?
PHP et MySQL, un duo gagnant !
Hors ligne
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
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
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
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
Thanks Biobe I managed to make all the changes ..............
Hors ligne
Pages : 1