pein87 |
02-05-2009 10:00 PM |
User bar system
1 Attachment(s)
This edit allows you to added user bars to your users postbit_legacy template under there signature. This one adds two new profile fields which will turn blank if someone picks both of the userbars. You can delete this option and the text I used for mine. Be sure to name your images just as you name them in in your profile fields.
To start make two new profile fields and make sure there both single selection menu. You can name them as you wont to and add you own fields or use my bleach or naruto userbars. In the options private field make sure it says no. In the option to make them searchable and on make viewable on memberslist put no.
In postbit_legacy template find:
PHP Code:
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>
Add below for the no dual userbar add on.
PHP Code:
<if condition="$post[field25] AND $post[field28]">
<br /><else />
<!-- start userbars -->
<if condition="$post[field25]">
<br /><div style="text-align: center; border-top: 1px dashed gray;">[COLOR="Indigo"]Bleach Group[/COLOR]<br /><img src="images/misc/$post[field25].png" alt="rpg side" /></div>
<else />
<!-- /end userbars -->
<!-- start userbars -->
<if condition="$post[field28]">
<br /><div style="text-align: center; border-top: 1px dashed gray;">[COLOR="indigo"]Ninja Village[/COLOR]<br /><img src="images/misc/$post[field28].png" alt="rpg side" /></div>
</if></if></if>
<!-- /end userbars -->
If you dont care if they use both you can use this one.
PHP Code:
<br />
<!-- start userbars -->
<if condition="$post[field25]">
<br /><div style="text-align: center; border-top: 1px dashed gray;">[COLOR="Indigo"]Bleach Group[/COLOR]<br /><img src="images/misc/$post[field25].png" alt="rpg side" /></div>
</if>
<!-- /end userbars -->
<!-- start userbars -->
<if condition="$post[field28]">
<br /><div style="text-align: center; border-top: 1px dashed gray;">[COLOR="indigo"]Ninja Village[/COLOR]<br /><img src="images/misc/$post[field28].png" alt="rpg side" /></div>
</if>
<!-- /end userbars -->
If you wont to add them to your profile as well open the memberinfo template.
Find in memberinfo template:
PHP Code:
<if condition="$prepared['usertitle']">
<h2>$prepared[usertitle]</h2>
</if>
</td>
</tr>
</table>
Next add one of these below that:
PHP Code:
<br />
<!-- start userbars -->
<if condition="$userinfo[field25]">
<br /><div style="text-align: center; border-top: 1px dashed gray;">[COLOR="Indigo"]Bleach Group[/COLOR]<br /><img src="images/misc/$userinfo[field25].png" alt="rpg side" /></div>
</if>
<!-- /end userbars -->
<!-- start userbars -->
<if condition="$userinfo[field28]">
<br /><div style="text-align: center; border-top: 1px dashed gray;">[COLOR="indigo"]Ninja Village[/COLOR]<br /><img src="images/misc/$userinfo[field28].png" alt="rpg side" /></div>
</if>
<!-- /end userbars -->
Add this one for only one of the userbars to show:
PHP Code:
<if condition="$userinfo[field25] AND $userinfo[field28]">
<br /><else />
<!-- start userbars -->
<if condition="$userinfo[field25]">
<br /><div style="text-align: center; border-top: 1px dashed gray;">[COLOR="Indigo"]Bleach Group[/COLOR]<br /><img src="images/misc/$userinfo[field25].png" alt="rpg side" /></div>
<else />
<!-- /end userbars -->
<!-- start userbars -->
<if condition="$userinfo[field28]">
<br /><div style="text-align: center; border-top: 1px dashed gray;">[COLOR="indigo"]Ninja Village[/COLOR]<br /><img src="images/misc/$userinfo[field28].png" alt="rpg side" /></div>
</if></if></if>
<!-- /end userbars -->
There you go that concludes my edits hope you like click installed if you use this please.
Naruto Userbars Bleach userbars
|