Where is the data for the Loginbar located?

Forum
Last Post
Threads / Messages

Infernette

CODE CODE CODE CODE CODE
Member
Joined
Jan 29, 2013
Messages
164
Points
0
Location
Where I live? I live home.
Mysidian Dollar
15,625
Okay this thing has been giving quite a few of my users trouble, since if you aren't on the index it will redirect you to a non-existent page that is relative to the page you are on, causing it to not work and thrown an error. I have been trying to find where the actual code for the login bar is located in the files, but it has been to no avail- can anyone point me in the right direction so I can modify the page it goes to. :p

It's not in the db or editable in the modules part of the admin control panel, I've even tried editing the class_sidebar to just exclude it and use my own but that throws an error, I have no idea where this thing is.
 
I've looked at the code and cannot figure it out myself. It's actually giving me a slight headache (but the meds I'm on can be counted towards that too!)...

I did find the class_sidebar info, but no help from me I'm afraid... :ohnoes:
 
I believe there is a method in class_sidebar.php called getLoginBar() or buildLoginBar() that you can edit to make it work on your site, you will need to know the basics of PHP and Mysidia's GUI programming to achieve this.
 
protected function setLoginBar(){
$this->loginBar = new FormBuilder("login", "login", "post");

The second "login" in the FormBuilder construt is I believe what makes you redirect to whataver/login

edit: in mine it seems to work either way. Maybe try to imitate what's in the login.php?
 
protected function setLoginBar(){
$this->loginBar = new FormBuilder("login", "login", "post");

The second "login" in the FormBuilder construt is I believe what makes you redirect to whataver/login

edit: in mine it seems to work either way. Maybe try to imitate what's in the login.php?


The second one is right, just changed it to the URL of my login page and it works! Thankies ^^
 
I see, glad it work for ya. Come to think about it, is this actually a bug of the script? If anyone else can reproduce the same error/problem please let me know or post an issue in the bug tracker.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top