Quantcast
Channel: MyBB Community Forums - Tutorials
Viewing all articles
Browse latest Browse all 690

Add Userbars to Postbit without 2 Groups.

$
0
0
Okay so a lot of people use plugins to have multiple group images appear on the postbit, lets say you are an administrator and you've made a developer group just so you can have two userbars. This tutorial will show a quicker way in which you can add multiple images to the postbit without the need for having two user groups. All you need is a plugin which in effect, a lot of people already use.

Okay so to start off you will want to have PHP in Templates, if you do not have the plugin you can download it here.
Now log in to the Admin Control Panel and navigate to your theme and postbit/postbit_classic.
AdminCP > Templates & Style > Templates > your-template > Postbit Templates > postbit or postbit_classic

Now in that template locate the following;
Code:
{$post['groupimage']}

Add the following under it;
Code:
<if $post['uid'] == 1 then><img src="IMAGE"></if>

  1. The number one (1) is the user ID you want to use.
  2. Replace the word IMAGE with the link to the userbar.
Upon adding that code with the updated user id and the image save the template and should look like below.

.png   sfZpn.png (Size: 37.49 KB / Downloads: 15)

Viewing all articles
Browse latest Browse all 690

Trending Articles