The website is for sale. Check here for more information.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.
In MyBB, how do I define that which is 'undefined'?
#1
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:

Code:
// 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:

Code:
/**
* 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.
Reply
#2
The language variables are not being loaded.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply



  • View a Printable Version


Users browsing this thread: 1 Guest(s)

About MyBB-Plugins

Plug Yourself into the best MyBB AddOn.

Copyright © 2009-2021 MyBB-Plugins Forums.

Statistics

  • 51,000+ Posts
  • 19,000+ Members
  • 3,600+ Threads

Impressed? For sure
Check Full Stats here