Hey cedc,
the whole thing was easier than expected for me
So first go to compojoomcomment's template open the index.php file and find
<input name='temail' id="temail" type='text' value='{email}' tabindex="2" {registered_readonly}/>
change it in
<input name='temail' id="temail" type='text' value='{email}' tabindex="2" />
then go to components/com_comment/classes/joomlacomment/JOSC_form.php
function set_temail($value) {
$user = JFactory::getUser();
$this->_temail = ($user->id ? JText::_('JOOMLACOMMENT_AUTOMATICEMAIL') : $value); /* change also modify - ajax_quote ! */
}
and change it to
function set_temail($value) {
$this->_temail = '';
}
and last but not least go to components/com_comment/joscomment/jscripts/client.js and change
if(typeof(form.temail) != 'undefined') {
if(form.temail.value != '' && !form.temail.disabled) {
if (!validate(form.temail.value, form)) {
return 0;
}
}
}
to
if(typeof(form.temail) != 'undefined') {
if (!validate(form.temail.value, form)) {
return 0;
}
}
the last thing will ensure that the user will have to always provide an e-mail address to submit the comment.
Cheers,
Daniel
P.S. Don't forget to write a review at
extensions.joomla.org/extensions/contact...icles-comments/12259