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)
-   -   A little pointer for tab file location? (http://www.mysidiaadoptables.com/forum/showthread.php?t=4609)

Infernette 07-19-2014 02:00 PM

A little pointer for tab file location?
 
Where in the classes for the tabs does it define the default tab that is opened when a person visits a page? I'd love to change it to the first tab but I can't find the location.

Infernette 07-26-2014 03:10 PM

Still need :)

Hwona 07-27-2014 11:18 PM

Took me a while to figure this out, but if you go to the profile.php file, you should be able to see some start and end tab stuff. If you change the number order of those tabs, the numbers, and then find this: $profiletabs = new Tab(5, $tabs, 2); and change the 2 with a 1, it should work. :3
I think I failed at explaining that. XP

Infernette 07-28-2014 07:00 AM

I've done that but it doesn't work, sadly. Changed from 2 to 1 to 0 even, no luck. Still opens the second tab.

Hwona 07-28-2014 08:25 AM

Umm, did you remember to reorder the start-end tab stuff... it works for me. Try looking around the rest of the file. It should be there...

Infernette 08-21-2014 06:36 PM

Ok so an update, it WILL first open the tab I tell it to, then the second tab overtakes it once the page loads. I think there is some script piece I'm missing but I'm not sure.

Hall of Famer 08-22-2014 11:51 AM

Its in the script /view/profileview.php, in this line:

PHP Code:

$tabs = new Tab(5$tabsList2); 

Here the third parameter(2) defines the default tab opened when you enter a user's profile page, the value 1-5 corresponds to (Visitor Message, About Me, Adoptables, Friends, Contact Info). So you can see why the default is About Me.


All times are GMT -5. The time now is 03:20 PM.

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