View Full Version : [3.0.3] Important Account Information


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 :)

Admiral Spock
16th July 2004, 05:23 PM
Thanks, Floris! I got that on my site. :D

Montada
17th July 2004, 12:14 PM
it's really great dear ... Thank you

tignasse
22nd July 2004, 02:42 AM
Super cool! I am going to install this. Thanks a ton! :)

Disjunto
22nd July 2004, 10:26 AM
good use of conditionals and phrases flo :)

omgli3k
23rd July 2004, 05:43 AM
ty... make t hat style publically available!

SaN-DeeP
27th July 2004, 03:49 AM
i would prefer having them in header instead :)
floris any solution to this ?

Alzeimer
9th October 2004, 11:15 AM
Installed and working, thanks for your tutorials floris.

HiDeo
9th October 2004, 12:44 PM
Thanks floris I love that !

ambumann
30th November 2004, 02:56 AM
Genious, solves alot of issues here!

Tony
30th November 2004, 04:59 AM
A really nice mod, definitely making it easier for new members to join and post. Nice mod. :)

Will probably use it.

P.Jackson
1st December 2004, 02:14 AM
how would i do it for guests? maybe to encourage them to register

teamrocketman
5th December 2004, 04:09 AM
Going to install tommorrow (if I can)

Ms.Rachel
13th April 2007, 11:33 AM
oh wow..i love this one..!