3
This is untested.
modules/contact/contactform.php
Change:
$name_text = new XoopsFormText(_CT_NAME, "usersName", 50, 100, $name_v);
$email_text = new XoopsFormText(_CT_EMAIL, "usersEmail", 50, 100, $email_v);
To:
$name_text = new XoopsFormLabel(_CT_NAME, $name_v);
$email_text = new XoopsFormLabel(_CT_EMAIL, $email_v);
modules/contact/index.php
Change:
$usersEmail = $myts->stripSlashesGPC($usersEmail);
To:
$usersEmail = !empty($xoopsUser) ? $xoopsUser->getVar("email", "E") : "";
Change:
$usersName = $myts->stripSlashesGPC($usersName);
To:
$usersName = !empty($xoopsUser) ? $xoopsUser->getVar("uname", "E") : "";