PDA

View Full Version : Profile Enhancements - User bar system


pein87
06 Feb 2009, 16:21
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:
__________________<br />
$post[signature]
</div>
<!-- / sig -->
</if>

Add below for the no dual userbar add on.
<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;">Bleach Group<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;">Ninja Village<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.

<br />
<!-- start userbars -->
<if condition="$post[field25]">
<br /><div style="text-align: center; border-top: 1px dashed gray;">Bleach Group<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;">Ninja Village<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:
<if condition="$prepared['usertitle']">
<h2>$prepared[usertitle]</h2>
</if>
</td>
</tr>

</table>

Next add one of these below that:

<br />
<!-- start userbars -->
<if condition="$userinfo[field25]">
<br /><div style="text-align: center; border-top: 1px dashed gray;">Bleach Group<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;">Ninja Village<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:
<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;">Bleach Group<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;">Ninja Village<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 (http://www.vbulletin.org/forum/showthread.php?threadid=204469) Bleach userbars (http://www.vbulletin.org/forum/showthread.php?t=199444)

pein87
06 Feb 2009, 21:58
You might wont to also use the YARS(yet another ranking system) i use it and its awesome thats how i added the rank for my captains its a 3.7. mod but works well with 3.8 also. Be sure to upload avatar.php tp admincp folder.

TheLastSuperman
06 Feb 2009, 22:13
You might wont to also use the YARS(yet another ranking system) i use it and its awesome thats how i added the rank for my captains its a 3.7. mod but works well with 3.8 also. Be sure to upload avatar.php tp admincp folder.

So you have tested the TGW Yet Another Ranks System w/ 3.8? If so let me know as I stated in the 3.7 release thread for volunteers to test and I hear this now lol! Was it the recenetly updated version or previous i.e. PRE-January etc?

You can PM if you have the time so we don't clutter your thread!

Thanks!

S-MAN

RobbieZ
17 Jun 2009, 23:54
Thanks Pein87

"clicks installed"

I have a question about your vmoods in your screenshots. Can you PM me so not to ruin this thread pls?

devlin2010
12 Sep 2009, 12:34
Nice mod pein ;)