vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Profile Enhancements - User bar system (https://vborg.vbsupport.ru/showthread.php?t=204472)

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

pein87 02-06-2009 08:58 PM

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 02-06-2009 09:13 PM

Quote:

Originally Posted by pein87 (Post 1736483)
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 06-17-2009 10:54 PM

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 09-12-2009 11:34 AM

Nice mod pein ;)


All times are GMT. The time now is 02:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01025 seconds
  • Memory Usage 1,767KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete