Search found 4 matches

by r3z3
29 Jul 2024, 13:06
Forum: French
Topic: Custom Plugin champs perso
Replies: 1
Views: 11621

Custom Plugin champs perso

Hello,
J'avais besoin d'adapter Mantis Bug Tracker pour gérer des risques.
Avec l'aide de l'IA, j'ai réussi à faire fonctionner ce plugin que j'ai ajouté à ma version 2.23.0

Si ça peut vous aider aussi, c'est avec plaisir !
PS : dans mon cas, ajout de 3 champs perso : Impact, Proba et Score. Le ...
by r3z3
13 Nov 2019, 12:30
Forum: Help
Topic: string_nl2br doesn't wrap anything ...
Replies: 1
Views: 1548

Re: string_nl2br doesn't wrap anything ...

"solved" adding this new function to string_api.php :


function myWordWrap ($string, $length=30, $wrap=' ', $from='left') {
if ($from=='left') $txt=wordwrap($string, $length, $wrap, true);
if ($from=='right') {
$m = strlen($string)%$length;
if ($m < strlen($string))
$txt = substr($string,0,$m ...
by r3z3
12 Nov 2019, 16:17
Forum: Help
Topic: string_nl2br doesn't wrap anything ...
Replies: 1
Views: 1548

string_nl2br doesn't wrap anything ...

Hi,
I don't understand how the function "string_nl2br" works :cry: .
I want to split long words in the "description" column. I modified the columns_api.php like that :

function print_column_description( BugData $p_bug, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
$t_description = string ...
by r3z3
23 Jun 2012, 13:43
Forum: Help
Topic: wrap my textearea !
Replies: 1
Views: 2109

wrap my textearea !

Hi all,

I would like to force the text entered in my textarea field, to be wrapped (for exemple after 30 characters) automatically, even if it has no white space after the word (this_is_a_long_word_that_i_would_like_to_be_wrapped_after_the_30_th_caracter)
Can someone help me ?

Thanks