Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
<form> where will i locate this tag in mybb theme ?
#1
Lightbulb 
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
  • Step 1: Access the Templates in ACP
Log in to the MyBB Admin Control Panel (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
In the template set, look for the following templates:
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
After making changes, click Save Template and refresh the forum to test if the login issue is resolved.

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).
  


Bookmarks

Forum Jump:


Users browsing this thread:
1 Guest(s)