2013-07-31, 04:21 AM
In MyBB, how do I define that which is 'undefined'?
The best way to explain what I mean is to go to my web forum and click on the login prompt at the top of the page:
http://www.fislam.com/mybb_1610/Upload/
Click on the login prompt
What results is this prompt:
[img]www.fislam.com/undefined.PNG[/img]
Now, the button that says "undefined" means "Login" the check box, on the other hand, has a purpose that I do not understand and should be commented out (coding lingo).
I have done my best to try to narrow down where this is happening. The string "undefined" is located in too many places for me to guess where to look.
The member.php has a switch statement that i can tell is called when you click on the Login option:
The "add_bredcrumb" function is defined in the functions.php like this:
Here is what I suspect is going on. The member.lang.php file has a set of assignments. If an assignment is missing, there is a default label called "undefind" that is put in its place.
But I do not know how to track down the varable for the login button or the check box label. Please offer some advice.
The best way to explain what I mean is to go to my web forum and click on the login prompt at the top of the page:
http://www.fislam.com/mybb_1610/Upload/
Click on the login prompt
What results is this prompt:
[img]www.fislam.com/undefined.PNG[/img]
Now, the button that says "undefined" means "Login" the check box, on the other hand, has a purpose that I do not understand and should be commented out (coding lingo).
I have done my best to try to narrow down where this is happening. The string "undefined" is located in too many places for me to guess where to look.
The member.php has a switch statement that i can tell is called when you click on the Login option:
// Make navigation
switch($mybb->input['action'])
{
case "register":
case "do_register":
add_breadcrumb($lang->nav_register);
break;
case "activate":
add_breadcrumb($lang->nav_activate);
break;
case "resendactivation":
add_breadcrumb($lang->nav_resendactivation);
break;
case "lostpw":
add_breadcrumb($lang->nav_lostpw);
break;
case "resetpassword":
add_breadcrumb($lang->nav_resetpassword);
break;
case "login":
add_breadcrumb($lang->nav_login);
break;
case "emailuser":
add_breadcrumb($lang->nav_emailuser);
break;
}
The "add_bredcrumb" function is defined in the functions.php like this:
/**
* Add a breadcrumb menu item to the list.
*
* @param string The name of the item to add
* @param string The URL of the item to add
*/
function add_breadcrumb($name, $url="")
{
global $navbits;
$navsize = count($navbits);
$navbits[$navsize]['name'] = $name;
$navbits[$navsize]['url'] = $url;
}
Here is what I suspect is going on. The member.lang.php file has a set of assignments. If an assignment is missing, there is a default label called "undefind" that is put in its place.
But I do not know how to track down the varable for the login button or the check box label. Please offer some advice.