Floris
16th July 2004, 04:28 PM
This will add a custom usergroup based message at the top of your forum to inform your new members where to go, what to do and any other custom forum rules. It is controlled by custom phrases, so you can translate it if needed. We use this on vBulletin.nl to tell users who just registered that their registration was done, but they need to validate their account before they can post. And users who have done just that, that they require to post before they can view attachments. Stuff like that.
So, let's add some custom phrases first. It will at least teach you what is required to modify this to your own site needs; So you won't bug me with simple questions.
Goto the Admin Control Panel and add a new phrase: vbnl_important_validate :with content >
Welcome. You have just registered on our site!<br /><br />
<strong>In order to use your account, please check your e-mail and follow the link in it to activate your account. <br />
If you do not activate your account, you can not post!</strong><br />
<em>Users who do not activate their account could find their account deleted after a period of time.</em><br /><br />
Please <a href="register.php?do=requestemail">click here</a> to e-mail the activation code again.
Save this phrase, and add another phrase: vbnl_important_zeroposter :with content >
Welcome. You have just validated your account on our site!<br /><br />
<strong>In order to use your account to the fullest, please make at least 1 post.<br />
If you do not post, we might delete your account after 6 months of inactivity!</strong><br /><br />
<em>Users with more then 1 post can view attachments.<br />
Users with more then 30 posts and 30 days of registration can access the vBulletin resources.</em><br /><br />
You could make at least one post by introducting yourself to the community.<Br />
This can be done by making a <a href="newthread.php?do=newthread&f=53">new thread</a> in the <a href="forumdisplay.php?f=53">introduction</a> forum.
Change any forumid to your own introduction forum for both links!
Save this phrase.
Now open the template: navbar :in the template manager and below all the other code, on a new line, add this code:
<if condition="$bbuserinfo['usergroupid'] == 3">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat"><phrase 1="$vboptions[bbtitle]">Important Account Information</phrase></td>
</tr>
<tr>
<td class="alt1">
$vbphrase[vbnl_important_validate]
</td>
</tr>
</thead>
</table>
<div style="padding:0px 0px 8px 0px;"></div>
<else />
<if condition="$bbuserinfo['usergroupid'] == 2">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat"><phrase 1="$vboptions[bbtitle]">Important Account Information</phrase></td>
</tr>
<tr>
<td class="alt1">
$vbphrase[vbnl_important_zeroposter]
</td>
</tr>
</thead>
</table>
<div style="padding:0px 0px 8px 0px;"></div>
</if>
</if>
Change any usergroup id in the conditionals to the usergroups you use (for custom groups)
And save the template.
That should do the trick :)
So, let's add some custom phrases first. It will at least teach you what is required to modify this to your own site needs; So you won't bug me with simple questions.
Goto the Admin Control Panel and add a new phrase: vbnl_important_validate :with content >
Welcome. You have just registered on our site!<br /><br />
<strong>In order to use your account, please check your e-mail and follow the link in it to activate your account. <br />
If you do not activate your account, you can not post!</strong><br />
<em>Users who do not activate their account could find their account deleted after a period of time.</em><br /><br />
Please <a href="register.php?do=requestemail">click here</a> to e-mail the activation code again.
Save this phrase, and add another phrase: vbnl_important_zeroposter :with content >
Welcome. You have just validated your account on our site!<br /><br />
<strong>In order to use your account to the fullest, please make at least 1 post.<br />
If you do not post, we might delete your account after 6 months of inactivity!</strong><br /><br />
<em>Users with more then 1 post can view attachments.<br />
Users with more then 30 posts and 30 days of registration can access the vBulletin resources.</em><br /><br />
You could make at least one post by introducting yourself to the community.<Br />
This can be done by making a <a href="newthread.php?do=newthread&f=53">new thread</a> in the <a href="forumdisplay.php?f=53">introduction</a> forum.
Change any forumid to your own introduction forum for both links!
Save this phrase.
Now open the template: navbar :in the template manager and below all the other code, on a new line, add this code:
<if condition="$bbuserinfo['usergroupid'] == 3">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat"><phrase 1="$vboptions[bbtitle]">Important Account Information</phrase></td>
</tr>
<tr>
<td class="alt1">
$vbphrase[vbnl_important_validate]
</td>
</tr>
</thead>
</table>
<div style="padding:0px 0px 8px 0px;"></div>
<else />
<if condition="$bbuserinfo['usergroupid'] == 2">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat"><phrase 1="$vboptions[bbtitle]">Important Account Information</phrase></td>
</tr>
<tr>
<td class="alt1">
$vbphrase[vbnl_important_zeroposter]
</td>
</tr>
</thead>
</table>
<div style="padding:0px 0px 8px 0px;"></div>
</if>
</if>
Change any usergroup id in the conditionals to the usergroups you use (for custom groups)
And save the template.
That should do the trick :)