The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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']) { $_REQUEST['tab'] = 'mytab'; } - if user no data, my tabs will be hidden and reset tab activitystream it default. |
#2
|
|||
|
|||
<a href="https://vborg.vbsupport.ru/showthread.php?t=317852" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=317852</a>
|
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
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? |
#5
|
|||
|
|||
when user have data --> OK :up:
when user not data, tab stream activity not selected |
#6
|
|||
|
|||
Well, I guess you'd have to check to see if there's any data, and if not, don't set $_REQUEST['tab'] = 'mytab'; ?
|
#7
|
|||
|
|||
at hook member_execute_start i set code:
Code:
if (!$_REQUEST['tab']) $_REQUEST['tab'] = 'mytab'; |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|