The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
In my product I check what number is in the field then I write an HTML conditional for the appropiate parts.
PHP Code:
|
|
#2
|
|||
|
|||
|
you've got a typo.
Code:
<if condition='".$show['meber']."'> Code:
<if condition='".$show['member']."'> |
|
#3
|
|||
|
|||
|
I fixed that but still doesn't work.
Maybe if I cancel out the array <if condition='.\$show['member']."'> |
|
#4
|
|||
|
|||
|
Make sure $show['member'] is set and try...
Code:
<if condition="$show[member]"> |
|
#5
|
|||
|
|||
|
I tried this but this doesn't work
PHP Code:
|
|
#6
|
|||
|
|||
|
Oops, missed your hook location. Yes it's that b/c $show['member'] is not defined until after that hook. In global you'll see...
Code:
if ($vbulletin->userinfo['userid'])
{
$show['guest'] = false;
$show['member'] = true;
}
else
{
$show['guest'] = true;
$show['member'] = false;
}
Code:
<if condition="$bbuserinfo[userid]"> |
|
#7
|
|||
|
|||
|
i'll do that tonight.
thanks |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|