View Single Post
  #2  
Old 02-26-2016, 01:47 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 129,031
Kyttias is on a distinguished road
Default

I no longer use the /login page (I have it redirecting to index, and have lines 19 and 20 entirely disabled, anyway). (See this mod, for why?) Your error is being thrown at these lines I no longer use whatsoever, and... (it's because you removed the function from the class_sidebar file, probably?)...

...well, bad news: The login form IS the same for both the /login page and the sidebar.

The login bar is added to the sidebar via the function getLoginBar, which calls the function setLoginBar, inside classes/class_sidebar.php, though getLoginBar is inevitably what's ALSO called in view/loginview.php.

You have a couple options: 1) This may not work, but it's worth a shot -- inside setLoginBar in class_sidebar, try removing the last line -
PHP Code:
$this->setDivision($this->loginBar); 
See if the form still appears on /login but not on the sidebar... an error might be thrown? I dunno, I just think it might help.

2) You can go ahead and make your own login form inside the view/loginview.php instead of calling the one in the sidebar and add it in manually to the login page, if you want? Just reference the one being built in setLoginBar from the sidebar class file... or do it from scratch with html and make sure it posts data to "../../login" (up two levels just in case you're logging in from some bizarre page, I guess... or a full url would work, I guess).
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.
Reply With Quote