Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Opening first tab on user profile
Avatar
cwwcwi0ecnuwijcowecwreiovuejwcko
Member
Free Members
sp_UserOfflineSmall Offline
Dec 21, 2012 - 6:43 am

I have disabled the first "Profile" tab completely in "Profile Tabs & Menus". So my first tab on the users forum profile should be "Options" now. The only problem is that this "Options" tab is not opened by default (like the profile tab). I need to click it first.

Just tried to move the "Options" tab above the "Profile" tab, but the behavior doesn't change. Looks like the auto expanding tab is statically set on "Profile".

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 21, 2012 - 8:40 am

yes... but you can change it...  in your theme, you will find the template function that launches the profile...

sp_ProfileEdit()

just change it to

sp_ProfileEdit('options');

and that one will come up by default...

but in your case, what was coming up?  nothing?  will have to make sure there is fallback in place if there isnt a profile tab - not sure anyone has ever removed that tab... ;)

Avatar
cwwcwi0ecnuwijcowecwreiovuejwcko
Member
Free Members
sp_UserOfflineSmall Offline
Dec 21, 2012 - 9:01 am

I refer users to the WordPress profile page, so I don't need that tab. Keeping everything minimalistic. The tabs are loaded but the first one, in my case "Options" is not opened. But it works good after clicking the tab :)

Guess it has something to do with jQuery activating the first tab. Your suggestion work great. Thanks!

Before click (without fix):

before.jpegImage Enlarger

After click (without fix):

after.jpegImage Enlarger

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 21, 2012 - 9:05 am

yeah, what i was saying...  have opened a ticket for a fallback if the selected tab does not exist to pick the first tab in the list...

but you can always select any tab to open first as I detailed...  thanks for the heads up...

Avatar
cwwcwi0ecnuwijcowecwreiovuejwcko
Member
Free Members
sp_UserOfflineSmall Offline
Dec 21, 2012 - 9:23 am

Ok, thanks. I see spProfileTabs is using "ul li" to format. Maybe the jQuery tab loader can activate the ul li:first-child by default.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 21, 2012 - 9:26 am

have already made a code change to handle this... easier to handle in the tab passed in the ajax... but thanks!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625