The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hello,
I am trying to upgrade some calls so that this will function properly: Code:
<if condition="$show['guest']">
<!-- guest welcome message -->
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="alt1" colspan="6">
<phrase 1="faq.php?$session[sessionurl]" 2="register.php?$session[sessionurl]">$vbphrase[first_visit_message]</phrase>
$vbphrase[welcome_ads]
</td>
</tr>
</thead>
</table>
<!-- / guest welcome message -->
<else />
<if condition="!is_member_of($bbuserinfo, 3)">
<!-- / unconfirmed user message -->
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="alt1" colspan="6">
$vbphrase[welcome_unconfirmed]
$vbphrase[welcome_ads]
</td>
</tr>
</thead>
</table>
<!-- / unconfirmed user message -->
<else />
<if condition="$bbuserinfo[posts]<1">
<!-- never posted message -->
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="alt1" colspan="6">
<phrase 1="$bbuserinfo[username]">$vbphrase[welcome_neverposted]</phrase>
$vbphrase[welcome_ads]
</td>
</tr>
</thead>
</table>
<!-- / never posted message -->
<else />
<if condition="$headerstime - 1209600 > $bbuserinfo[lastpost]">
<!-- never posted message -->
<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="alt1" colspan="6">
<phrase 1="$bbuserinfo[username]">$vbphrase[welcome_postmoreoften]</phrase>
$vbphrase[welcome_ads]
</td>
</tr>
</thead>
</table>
<!-- / never posted message -->
</if>
</if>
</if>
</if>
This was originally written for 3.0.X. (don't recall the author.) I have been attempting to upgrade it to work with my 3.5 board. |
|
#2
|
|||
|
|||
|
$bbuserinfo isn't used anymore its vbulletin->userinfo['usergroupid'] that might help
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|