vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   My Physical Stats In Postbit (https://vborg.vbsupport.ru/showthread.php?t=123649)

Synergy 08-10-2006 10:00 PM

My Physical Stats In Postbit
 

7-24 Coder & Designer Team Physical Stats
Author : Synergy
Version: 3.5.5

Demo Page --->>> DEMO


Created , Under the avatar mini info bar


Installation

Step I

AdminCP , User Profile Fields >> Add New User Profile Field
Single Selection Menu

Title : My Stats
Description : Do u want , Showing your Physical Stats
Options : Yes
No
Set Default : Yes , But no first blank option
Display Order : ( This is your field number , take a note , write down number )
Field Required : Yes
Field Editable by User : Yes
Private Field : No
Field Searchable on Members List : Yes
Show on Members List : Yes
Allow user to input their own value for this option : No
Display Page : Edit Profile

Step II

Okey , now to create the input fields for stats

AdminCP , User Profile Fields >> Add New User Profile Field
Single Selection Menu

Title : Gender
Description : Your Gender
Options : Secret
Man
Women
Set Default : Yes , But no first blank option
Display Order : ( This is your field number , take a note , write down number )
Field Required : Yes
Field Editable by User : Yes
Private Field : No
Field Searchable on Members List : Yes
Show on Members List : Yes
Allow user to input their own value for this option : No
Display Page : Edit Profile

AdminCP , User Profile Fields >> Add New User Profile Field
Single Selection Menu

Title : Status
Description : Your Status
Options : Secret
Single
In a Relationship
Married
Open Marriage
Set Default : Yes , But no first blank option
Display Order : ( This is your field number , take a note , write down number )
Field Required : Yes
Field Editable by User : Yes
Private Field : No
Field Searchable on Members List : Yes
Show on Members List : Yes
Allow user to input their own value for this option : No
Display Page : Edit Profile


User Profile Fields >> User Profile Field Manager
Take a not ; Location Field Number

AdminCP , User Profile Fields >> Add New User Profile Field
Single Selection Menu


Title : Eyes Color
Description : Your Eyes Color
Options : Secret
Black
Brown
Blue
Green
Hazel
Set Default : Yes , But no first blank option
Display Order : ( This is your field number , take a note , write down number )
Field Required : Yes
Field Editable by User : Yes
Private Field : No
Field Searchable on Members List : Yes
Show on Members List : Yes
Allow user to input their own value for this option : No
Display Page : Edit Profile

AdminCP , User Profile Fields >> Add New User Profile Field
Single Selection Menu


Title : Hair Color
Description : Your Hair Color
Options : Secret
Black
Brown
Yellow
Ginger
Set Default : Yes , But no first blank option
Display Order : ( This is your field number , take a note , write down number )
Field Required : Yes
Field Editable by User : Yes
Private Field : No
Field Searchable on Members List : Yes
Show on Members List : Yes
Allow user to input their own value for this option : No
Display Page : Edit Profile


AdminCP , User Profile Fields >> Add New User Profile Field
Single Line Text Box


Title : Length
Description : Your Length
Default Value : Blank
Display Order : ( This is your field number , take a note , write down number )
Field Required : Yes
Field Editable by User : Yes
Private Field : No
Field Searchable on Members List : Yes
Show on Members List : Yes
Display Page : Edit Profile

AdminCP , User Profile Fields >> Add New User Profile Field
Single Line Text Box


Title : Weight
Description : Your Kilos
Default Value : Blank
Display Order : ( This is your field number , take a note , write down number )
Field Required : Yes
Field Editable by User : Yes
Private Field : No
Field Searchable on Members List : Yes
Show on Members List : Yes
Display Page : Edit Profile



AdminCP , User Profile Fields >> Add New User Profile Field
Single Selection Menu

Title : Body
Description : Your Body Type
Options : Secret
Slim
Fat
Athletic
Set Default : Yes , But no first blank option
Display Order : ( This is your field number , take a note , write down number )
Field Required : Yes
Field Editable by User : Yes
Private Field : No
Field Searchable on Members List : Yes
Show on Members List : Yes
Allow user to input their own value for this option : No
Display Page : Edit Profile



Step III

go to style & templates >>> style manager >>> edit templates >>> postbit_legacy (or Postbit)

Find

Code:


$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                </div>
                        </if>

Add Below ( at now using a your note , write FieldXX your Field Number )

Code:


<!--Synergy-->

<if condition="$post[fieldXX] == Yes"> <div id="sysinfo_$post[postid]" align="left" class="info" nowrap> <a href="#sysinfo"><b>My Stats</b> </a><script type="text/javascript"> 

vbmenu_register("sysinfo_$post[postid]");


</script></div> </if>
<!--/Synergy-->


repeat , go to postbit legacy

Find

Code:

</div>
<!-- / post $post[postid] popup menu -->

Add Below

Code:


<!?Synergy Stats-->

        <div class="vbmenu_popup" id="sysinfo_$post[postid]_menu" style="display:none">

                <table cellpadding="4" cellspacing="1" border="0">

<td class="thead">My Stats</td>

<if condition="$post[fieldXX]"><tr><td class="vbmenu_option"><b>Gender :</b> $post[fieldxx]</td></tr></if>

<if condition="$post[fieldXX]"><tr><td class="vbmenu_option"><b>Status :</b> $post[fieldXX]</td></tr></if>

<if condition="$post[fieldXX]"><tr><td class="vbmenu_option"><b>Location :</b> $post[fieldXX]</td></tr></if>

<if condition="$post[fieldXX]"><tr><td class="vbmenu_option"><b>Eyes :</b> $post[fieldXX]</td></tr></if>

<if condition="$post[fieldXX]"><tr><td class="vbmenu_option"><b>Hair :</b> $post[fieldXX]</td></tr></if>

<if condition="$post[fieldXX]"><tr><td class="vbmenu_option"><b>Length:</b> $post[fieldXX]</td></tr></if>

<if condition="$post[fieldXX]"><tr><td class="vbmenu_option"><b>Weight:</b> $post[fieldXX]</td></tr></if>

<if condition="$post[fieldXX]"><tr><td class="vbmenu_option"><b>Body:</b> $post[fieldXX]</td></tr></if>


                </table>
        </div>

<!--/Synergy Stats-->

Do not forget to change Field XX

Demo Page --->>> DEMO

Synergy

bashy 08-11-2006 02:20 PM

Hi

Can i ask what makes this different from this Show Users System Specs that i am already using...

I have had a look at the code and apart from the new wording for the stats its exactly the same?

Synergy 08-11-2006 02:56 PM

My İdea , System specs and People Physical stats is different subject , i want to forum users advertise to easy yourself in forums...

bashy 08-11-2006 03:33 PM

Sorry i didnt understand most of that....

I would have thought that peeps can and most probably have changed the other hack to suit just the same as you have to this 1?

Anyway, nice work again, well done :)

Atakan KOC 08-12-2006 06:32 AM

HEhehe.. Nice Style

http://www.7-24tr.com/forum/index.php

TheBlackPoet 09-14-2006 02:47 AM

Good Job brother!! im going to be adding this tonight when the site slows down..

TheBlackPoet 09-14-2006 11:27 AM

i had to come back and repost... i install this to your specs... and of course, it worked perfectly... i then had a brainstorm... i can alter the fields to what i want and expand the information regarding my members....

you kick butt! 'preciate it

TheBlackPoet 11-19-2007 03:12 AM

Over a year later, and this is still a good idea


All times are GMT. The time now is 06:40 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.01155 seconds
  • Memory Usage 1,747KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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