(2012-02-14, 11:19 AM)Alan Shepperson Wrote: [ -> ]Sorry, not sure what I was getting at with my last post, it doesn't even make any sense to me.
Can you run the file verification tool in the ACP and list any files that show in red?
Thank you, good idea, and at least I finally thought of something.
Ran the file verification few minutes ago and was coming back to post (scrnshot attached).
Main thing modified was to comment out 'quickLogin: function()' at general.js per code below, to omit the short form login and go directly to the long form login.
Must have caused modifications in other files, dont remember making changes in all of the red files.
Guess can go back and compare all with orig MyBB files if need be.
/** quickLogin: function()
{
if($("quick_login"))
{
var form = new Element("form", { method: "post", action: "member.php" });
form.insert({ bottom: new Element("input",
{
name: "action",
type: "hidden",
value: "do_login"
})
});
if(document.location.href)
{
form.insert({ bottom: new Element("input",
{
name: "url",
type: "hidden",
value: this.HTMLchars(document.location.href)
})
});
}
form.insert({ bottom: new Element ("input",
{
name: "quick_login",
type: "hidden",
value: "1"
})
});
form.insert({ bottom: new Element("input",
{
name: "quick_username",
id: "quick_login_username",
type: "text",
value: lang.username,
"class": "textbox",
onfocus: "if(this.value == '"+lang.username+"') { this.value=''; }",
onblur: "if(this.value == '') { this.value='"+lang.username+"'; }"
})
}).insert({ bottom: "Username " });
form.insert({ bottom: new Element("input",
{
name: "quick_password",
id: "quick_login_password",
type: "password",
value: lang.password,
"class": "textbox",
onfocus: "if(this.value == '"+lang.password+"') { this.value=''; }",
onblur: "if(this.value == '') { this.value='"+lang.password+"'; }"
})
}).insert({ bottom: "Password " });
form.insert({ bottom: new Element("input",
{
name: "submit",
type: "submit",
value: lang.login,
"class": "button"
})
});
var span = new Element("span", { "class": "remember_me" }).insert({ bottom: new Element("input",
{
name: "quick_remember",
id: "quick_login_remember",
type: "checkbox",
value: "yes",
"class": "checkbox"
})
});
span.innerHTML += "<label for=\"quick_login_remember\"> "+lang.remember_me+"</label>";
form.insert({ bottom: span });
form.innerHTML += lang.lost_password+lang.register_url;
$("quick_login").innerHTML = "";
$("quick_login").insert({ before: form });
$("quick_login_remember").setAttribute("checked", "checked");
$('quick_login_username').focus();
}
return false;
}
}; */
Tried undoing the comment out, but did not fix.
Ps:
So, went and ran ACP/Tool&Maint/Recount&Rebuild and button works, but still shows red files (did refresh etc).
Went back, re-did comment out, problem came back, ran R&R but didnt help.
Now, guess question is how to omit the 'short form login' without causing the problem, with general.js ?