I recognize the problem and made the following modification to file administrator/components/com_comprofiler/comprofiler.class.php line 2085[code:1]$return = '<input class="inputbox" mosReq="'.$oReq.'" mosLabel="'.getLangDefinition($oLabel).'" type="text" name="' . $oName .'" readonly="readonly" id="' . $oName . '" value="' . $oValue . '" />'."\n";[/code:1]
take the readonly out and change it to[code:1]$return = '<input class="inputbox" mosReq="'.$oReq.'" mosLabel="'.getLangDefinition($oLabel).'" type="text" name="' . $oName .'" id="' . $oName . '" value="' . $oValue . '" />'."\n";[/code:1]
Line 2086[code:1]if (!$oReadOnly) $return .= "<script type=\"text/javascript\">\n"[/code:1]To create an image button button, change it to[code:1]if (!$oReadOnly) $return .= '<img src="../components/com_comprofiler/images/calendar.png" id="trigger_i" alt="+" title="' . _UE_DATE_SELECT . '" />' . "<script type=\"text/javascript\">\n"[/code:1]
Insert somewhere between line 2088 - 2092 this line. [code:1]'button : "trigger_i",'
[/code:1]To have a trigger on the image button, I inserted it after 2090. EDIT>> JB dropped a leading point ('.') in the last statement for concatenation.
Now you need to insert an image in components/com_comprofiler/images/calendar.png
I took one from phpmyadmin, which has the right size.
Last step to to control the language.
Add this to your language file components/com_comprofiler/plugin/language/default_language/default_language.php [code:1]DEFINE('_UE_DATE_SELECT','Date select');[/code:1] and add it to other language files, if needed.
If everything is implemented well, it does the following:
- The date text field is editable
- It allows to delete any earlier entered date from the field
- A small button is displayed on the right for date selection at will
It worked for me.
Success
I hope that this code is properly displayed by JoomlaBoard.
Post edited by: walb, at: 2006/03/28 18:38