coffeejunkie
01-04-2007, 05:50 PM
Hi,
I'm using JA Submit 2.1 and Community Builder. JA Submit allows users to enter a "Full Name" and "Email" which are automatically and correctly filled with the user information as it shows in CB.
Is there a way to make the two boxed read-only, so that users are forced to submit using the information from CB?
Otherwise a user can pose as someone else, and there's no way telling since the backend shows only the name that was used in JA Submit.
Otherwise works great, many thanks!
== SOLVED ==
OK here's a quick'n'dirty fix. Changing the inputbox type in the ja_submit.html.php to type="hidden" just hides the box, so users can't access it any more. Like this:
From the original
<tr>
<td><label for="created_by_alias"><?php echo _H_FULLNAME; ?>*</label>:</td>
<td><input class="inputbox" type="text" name="created_by_alias" id="created_by_alias" size="50" maxlength="50" value="<?php echo $my->name; ?>" style="width:200px;" /></td>
</tr>
<tr>
<td><label for="email"><?php echo _H_EMAIL; ?>*</label>:</td>
<td><input class="inputbox" type="text" name="email" id="email" size="50" maxlength="50" value="<?php echo $my->email; ?>" style="width:200px;" /></td>
</tr>
to this
<tr>
<td><label for="created_by_alias"><?php echo _H_FULLNAME; ?></label>:</td>
<td><?php echo $my->name; ?><input class="inputbox" type="hidden" name="created_by_alias" id="created_by_alias" size="50" maxlength="50" value="<?php echo $my->name; ?>" style="width:200px;" /></td>
</tr>
<tr>
<td><label for="email"><?php echo _H_EMAIL; ?></label>:</td>
<td><?php echo $my->email; ?><input class="inputbox" type="hidden" name="email" id="email" size="50" maxlength="50" value="<?php echo $my->email; ?>" style="width:200px;" /></td>
</tr>
Now the user just sees her/his username and email but can't edit. Works ok though maybe not the most elegant solution.
I'm using JA Submit 2.1 and Community Builder. JA Submit allows users to enter a "Full Name" and "Email" which are automatically and correctly filled with the user information as it shows in CB.
Is there a way to make the two boxed read-only, so that users are forced to submit using the information from CB?
Otherwise a user can pose as someone else, and there's no way telling since the backend shows only the name that was used in JA Submit.
Otherwise works great, many thanks!
== SOLVED ==
OK here's a quick'n'dirty fix. Changing the inputbox type in the ja_submit.html.php to type="hidden" just hides the box, so users can't access it any more. Like this:
From the original
<tr>
<td><label for="created_by_alias"><?php echo _H_FULLNAME; ?>*</label>:</td>
<td><input class="inputbox" type="text" name="created_by_alias" id="created_by_alias" size="50" maxlength="50" value="<?php echo $my->name; ?>" style="width:200px;" /></td>
</tr>
<tr>
<td><label for="email"><?php echo _H_EMAIL; ?>*</label>:</td>
<td><input class="inputbox" type="text" name="email" id="email" size="50" maxlength="50" value="<?php echo $my->email; ?>" style="width:200px;" /></td>
</tr>
to this
<tr>
<td><label for="created_by_alias"><?php echo _H_FULLNAME; ?></label>:</td>
<td><?php echo $my->name; ?><input class="inputbox" type="hidden" name="created_by_alias" id="created_by_alias" size="50" maxlength="50" value="<?php echo $my->name; ?>" style="width:200px;" /></td>
</tr>
<tr>
<td><label for="email"><?php echo _H_EMAIL; ?></label>:</td>
<td><?php echo $my->email; ?><input class="inputbox" type="hidden" name="email" id="email" size="50" maxlength="50" value="<?php echo $my->email; ?>" style="width:200px;" /></td>
</tr>
Now the user just sees her/his username and email but can't edit. Works ok though maybe not the most elegant solution.