Manual removal of email field/suggestion #63

Closed
opened 2018-07-25 07:18:18 +00:00 by ghost1 · 2 comments
ghost1 commented 2018-07-25 07:18:18 +00:00 (Migrated from gitlab.com)

Hi, i was just trying to make the form a bit simpler, so i removed the email field. It works in flatfile mode. My question is, would it be possible to ad the option in settings.php to remove the name, email, subject or password fields safely? What i mean by safe is that i removed it and it works in flatfile mode but im not sure if it would mess up database mode.

here is exactly what i i removed-
///////////////////////////////////////////////////////////////////////////////////
1)html.php lines 214, 215, 216, 217 218, 219 and 220 removed

E-mail

  1. imgboard.php line 94 removed
    post['email'] = cleanString(str_replace('"', '"', substr(_POST['email'], 0, 75)));

///////////////////////////////////////////////////////////////////////////////////////////////////

So i wonder if that would screw up database mode or anything? It seems to work in flatfile as far as i can tell without causing errors. Just an ideal, even if you do not want to ad the option to remove the fields in
settings.php, you could put it in the readme, like the text above on how i removed the email field. I do not know if it is safe to remove the lines that i did though, i dont want to cause server errors or end up crashing the server. If you think it could cause memory issues or whatever removing the email field, please let me know and i will just stop messing with it. Thank you very much!

Hi, i was just trying to make the form a bit simpler, so i removed the email field. It works in flatfile mode. My question is, would it be possible to ad the option in settings.php to remove the name, email, subject or password fields safely? What i mean by safe is that i removed it and it works in flatfile mode but im not sure if it would mess up database mode. here is exactly what i i removed- /////////////////////////////////////////////////////////////////////////////////// 1)html.php lines 214, 215, 216, 217 218, 219 and 220 removed <tr> <td class="postblock"> E-mail </td> <td> <input type="text" name="email" size="28" maxlength="75" accesskey="e"> </td> 2) imgboard.php line 94 removed $post['email'] = cleanString(str_replace('"', '&quot;', substr($_POST['email'], 0, 75))); /////////////////////////////////////////////////////////////////////////////////////////////////// So i wonder if that would screw up database mode or anything? It seems to work in flatfile as far as i can tell without causing errors. Just an ideal, even if you do not want to ad the option to remove the fields in settings.php, you could put it in the readme, like the text above on how i removed the email field. I do not know if it is safe to remove the lines that i did though, i dont want to cause server errors or end up crashing the server. If you think it could cause memory issues or whatever removing the email field, please let me know and i will just stop messing with it. Thank you very much!
tslocum commented 2018-08-01 17:06:56 +00:00 (Migrated from gitlab.com)

Thanks for the suggestion, I've added two new settings: TINYIB_HIDEFIELDSOP and TINYIB_HIDEFIELDS.

Thanks for the suggestion, I've added two new settings: `TINYIB_HIDEFIELDSOP` and `TINYIB_HIDEFIELDS`.
tslocum commented 2018-08-01 17:06:57 +00:00 (Migrated from gitlab.com)

closed

closed
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/tinyib#63
No description provided.