![]() |
How to Convert this piece of code from the header template to work in VB 4
I have this piece of code working perfectly fine in vb 3.8
But we recently upgraded to 4.0.3 and this code no longer works Can some one please help me in getting this to work ? This code goes in the header template <vb:if condition="is_member_of($bbuserinfo, 20)"> <br /> <div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"> <h1>Your trial Membership has expired.</h1> <h1> You can Upgrade your Trial membership <a href="xxxxxxx">here</a>.</h1> </div> </vb:if> <vb:if condition="is_member_of($bbuserinfo, 2)"> <vb:if condition="$daysleft = (int)(($bbuserinfo[joindate] + 7*86400 - TIMENOW) / 86400)"> <br /> <div align="center" style="color: red; background-color: white; border: 1px solid black; padding:2px"> <h1>Your trial Membership expires in $daysleft days.</h1> <h1> You can Upgrade your Trial membership <a href="XXXXXXXXXXXXXXXX">here</a>.</h1> </div> </vb:if> </vb:if> |
this works for me.. maybe you could change it.
Quote:
|
|
All times are GMT. The time now is 10:18 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:
|