How to place a banner in vBulletin for unregistered users

If your forum is ranked well among search engines it is a good idea to make profit of that without causing inconvenience to the regular user. Thus it is a good idea to place a banner only for unregistered or awaiting verification users.

In vBulletin this can be done easily following these steps:

1. Log in your vBulletin admin area (e.g.

2. Go to Styles & Templates from the left menu. There choose Style Manager.

3. Click on << >> to collapse all options.

4. Then choose where you'd like your banner to be placed. In our case it will be the header so we double-click 'header'.

5. Then scroll to the bottom and add the following code:

<if condition="in_array($bbuserinfo['usergroupid'], array(1, 3))">

Your banner code goes here in HTML
< /if>

The above code means that if the user has groupid 1 or 3 the following code should be executed. By default 1 and 3 user group ids belong to unregistered and awaiting-approval users.

You need help with an application? hostlantern is specialized in hosting and supporting more than 200 scripts. Sign up for our web hosting services and let us help you with your application, 24/7!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to change the vBulletin administrator password

In order to change the vBulletin forum administrator password you should load your vBulletin...

Home / vBulletin FAQ / How to enable private messages notifications for vBulletin users?

You can allow all vBulletin forum members to receive private messages by running a query under...

How to enable/disable ‘Email this Page to a Friend’ in vBulletin?

The "Email this Page to a Friend" functionality can be enabled/disabled per user group. You can...

How to insert programming source code in vBulletin posts?

Many forum members, especially in the technically oriented forums, need to insert programming...

Remove default http:// from the Insert Link option in vBulletin

In order to remove the predefined http://  string from the Insert Link functionality in the...