OK let me be a little more explicit: where is the class "register-form" defined, in the file register.pstpl? Hope I can delete the "name" and "surname" form there, to provide real anonymity while ensuring that just one user per mail can run through the specific survey. In other words - we just need mail registration WITHOUT the name and surname form.
This is register.pstpl:
" <table class="register-table">
<tr>
<td>
<span class="warning-text">{REGISTERERROR}</span>
<p class="register-message-1">{REGISTERMESSAGE1}</p>
<p class="register-message-2">{REGISTERMESSAGE2}</p>
<div class="register-form">{REGISTERFORM}</div>
</td>
</tr>
</table>
"
Now where can I find those classes?
Hope really someone could help us - because we need this for a scientific experiment.
Rather than hacking the core code, how about simply hiding those inputs (since they are not mandatory anyway).
Add this to the end of template.js:
Code:
$(document).ready(function() {
// Only if the registration form exists...
if($('table.register').length > 0) {
// Hide the name input rows
$('input[name="register_firstname"], input[name="register_lastname"]').closest('tr').hide();
}
});
.
Cheers,
Tony Partner Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.