In MyBB themes, the <form> tag responsible for login functionality can typically be found in specific template files within the Admin Control Panel (ACP). Here's how to locate and edit the relevant templates:
Step-by-Step Guide to Locate and Edit the Login Form
Go to Templates & Style > Templates.
Select the template set for your active theme (e.g., NetPen Pro).
This template contains the login form displayed to guests.
member_login
This template contains the main login form used for the login page (member.php?action=login).
Open these templates to find and edit the <form> tag.
Example of the Login Form Code
In header_welcomeblock_guest, you may find a structure like this:
Common Changes
Ensure the action attribute is correctly pointing to member.php.
Check for any missing or incorrectly formatted <input> fields.
Additional Template Locations
login template: Handles full login pages.
header_welcomeblock_member: Contains the welcome block for logged-in users (ensure it’s correct for testing).
Step-by-Step Guide to Locate and Edit the Login Form
- Step 1: Access the Templates in ACP
Go to Templates & Style > Templates.
Select the template set for your active theme (e.g., NetPen Pro).
- Step 2: Locate the Login Form Template
PHP Code:
header_welcomeblock_guest
This template contains the login form displayed to guests.
member_login
This template contains the main login form used for the login page (member.php?action=login).
Open these templates to find and edit the <form> tag.
Example of the Login Form Code
In header_welcomeblock_guest, you may find a structure like this:
PHP Code:
<form method="post" action="member.php">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<label for="username">Username</label>
<input type="text" name="username" id="username" />
<label for="password">Password</label>
<input type="password" name="password" id="password" />
<input type="submit" value="Login" />
</form>
Common Changes
Ensure the action attribute is correctly pointing to member.php.
Check for any missing or incorrectly formatted <input> fields.
- Step 3: Save Changes
Additional Template Locations
login template: Handles full login pages.
header_welcomeblock_member: Contains the welcome block for logged-in users (ensure it’s correct for testing).