![]() |
question hook profile_tabs_first
i use hook profile_tabs_first to add custome and i have use code after to set default.
Code:
if (!$_REQUEST['tab']) - if user no data, my tabs will be hidden and reset tab activitystream it default. |
<a href="https://vborg.vbsupport.ru/showthread.php?t=317852" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=317852</a>
|
Quote:
Now I have the following cases: - if user no data, my tabs will be auto hidden (not show tab name) and reset tab activitystream it default. |
Sorry, I don't understand exactly what you're asking. profile_tabs_first is a template hook but you posted php code above, so I don't understand that.
It sounds like maybe you want your custom tab to be selected unless the user has no data for the custom tab, then you want activity stream selected? |
when user have data --> OK :up:
https://vborg.vbsupport.ru/external/2015/07/17.png when user not data, tab stream activity not selected :( https://vborg.vbsupport.ru/external/2015/07/18.png |
Well, I guess you'd have to check to see if there's any data, and if not, don't set $_REQUEST['tab'] = 'mytab'; ?
|
at hook member_execute_start i set code:
Code:
if (!$_REQUEST['tab']) $_REQUEST['tab'] = 'mytab'; |
All times are GMT. The time now is 09:12 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|