Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Where is the data for the Loginbar located? (http://www.mysidiaadoptables.com/forum/showthread.php?t=4326)

Infernette 12-17-2013 06:56 AM

Where is the data for the Loginbar located?
 
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.

Tequila 12-17-2013 02:05 PM

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:

Hall of Famer 12-17-2013 04:05 PM

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.

IntoRain 12-17-2013 04:10 PM

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?

Infernette 12-17-2013 04:47 PM

Quote:

Originally Posted by IntoRain (Post 28634)
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 ^^

IntoRain 12-18-2013 03:54 AM

Glad it worked ^^

Hall of Famer 12-18-2013 04:53 AM

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.


All times are GMT -5. The time now is 05:51 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.