Ad Widget

Collapse

Carriage return in triggers display ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • windsurf51
    Junior Member
    • Sep 2009
    • 20

    #1

    Carriage return in triggers display ?

    Hey

    I'm looking for a trick to display carriage return in triggers or dashboard view

    I tried with '\n' : item is ok but when trigger is displayed with ITEM.LASTVALUE , the carriage return is lost

    Any idea?

    Thx
    Last edited by windsurf51; 12-11-2009, 16:06.
  • windsurf51
    Junior Member
    • Sep 2009
    • 20

    #2
    Solved:


    modify this line in ctag.inc.php

    array_push($this->items,str_replace(array('<','>','"'),array('&lt;' ,'&gt;','&quot;'),$value));
    by

    array_push($this->items,str_replace(array('<','>','"','&lt;BR&gt;') ,array('&lt;','&gt;','&quot;','<BR>'),$value));

    with this modification you will only keep <BR> but other informations with > < " will be replace like before , but you can add what you want in array

    Bye

    Comment

    Working...