Currency Converter

  • Currency
  • US$ Amount

Editor functions

  • Dim_editor($area, $text ="", $rows = 26, $showresize = false, $dimcp = false, $editor_id = 0, $parent ="")

This function is used to call the Editor. It is executed within adding and editing pages.


$area (mandatory): the name of the 'textarea' box upon which the Editor will be applied.
      -  $text (optional): the text found in the Editor.  
      -  $rows (optional): the Editor height in horizontal rows.   
$showresize (optional): the value 'boolean true/false' is used to activate the enlarge
             and decrease Editor size feature.   
$dimcp (optional): the value 'boolean true/false' is set to 'true' if the Editor will appear on the
             DimCP control panel pages.
      -  $editor_id (optional): the Editor ID, this is assigned if there is more than one Editor on the same page  
      -  $parent (optional): the names of the main blocks under which the Editor template file calling
             line within the block is found.   


{* php buffer start *} require_once(DIR .'/include/functions_editor.php');
Dim_editor("description",htmlspecialchars_uni($row['description']), 15);
Dim_editor("text",'', 26, 1, 0, 1,"editors"); 
{* php buffer end *}

  • bbcodeparse($bbcode, $module ="", $tooltip = false)

This function is for bbcode codes processing within the text and transferring them to their original form


$bbcode (mandatory): the text to be processed.
      -  $module (optional): the module name without the letter 's' or the constant 'THIS_PRODUCT' which
             was explained further in the 'Creating a module' explanation. 
      -  $tooltip (optional): the value 'boolean true/false' is set to 'true' if the text is to be shown within 'tooltip'.
             When this parameter is activated, the symbols " and ' are changed so that they wouldn't cause any
             HTML errors when they are added in the 'tag attribute'.


{* php buffer start *} $desc bbcodeparse($row['description'], THIS_PRODUCT, true); 
{* php buffer end *}

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Email functions (Views: 954)

[php]DIM_mail($remail, $rname, $message, $subject, $semail ="", $sname ="", $priority = 3, $mass...

General functions (Views: 979)

Dimofinf appreciates your time and so, we offer you a selection of ready functions and constants...

User functions (Views: 938)

verify_id($idname, &$id, $alert = true, $selall = false, $options = 0)This function is used...

Content functions (Views: 848)

recursive($dynamic_cat_id,$module,$rate)This function is important and should be added at the end...

Files functions (Views: 1257)

file_extension($filename)This function is used to return the file extension.Parameters: ...