View Full Version : A little pointer for tab file location?
Infernette
07-19-2014, 02:00 PM
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:
$tabs = new Tab(5, $tabsList, 2);
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.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.