MyBB Community Forums

Full Version: Usertitle Ribbon Tutorial/Help!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys i want to do this [Image: 4xisFcD.png] but for the usertitles that you set at a certain ammount of posts so they can have a usertitle and that as well.

Heres code to sorta accomplish it but not how i want this is different!

1- Go to ACP -> Templates & Styles -> Templates -> Your skin -> Postbit templates -> postbit
Find:

{$post['useravatar']}

Add before it:

<if $thread['uid'] == $post['uid'] then>
<div class="badge"></div>
</if>

Save.

2- Now go to your skin global.css and add the following:

.badge {
display: block;
position: absolute;
margin-top: -11px;
margin-left: -3px;
background: url(http://i.imgur.com/gzUPtwD.png) no-repeat transparent;
height: 56px;
width: 56px;
}

Save.
MyBB doesn't natively support PHP in templates, you need to use this plugin to do so.

http://mybbhacks.zingaburga.com/showthread.php?tid=260

That should make it work, I tested it and it does. Let me know how it goes for you.

edit: Do you have the rest of the tut? I really enjoy this.
(2014-12-28, 08:19 AM)Lo. Wrote: [ -> ]MyBB doesn't natively support PHP in templates, you need to use this plugin to do so.

http://mybbhacks.zingaburga.com/showthread.php?tid=260

That should make it work, I tested it and it does. Let me know how it goes for you.

edit: Do you have the rest of the tut? I really enjoy this.

No i already have that also thats the only part i want to make multiple of them whenever i do elseif it breaks.
<if $something == 6 then>
...
<elseif $something == 1 then>
..
<else>
.
</if>