vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - User Gender For Postbit_Legacy (https://vborg.vbsupport.ru/showthread.php?t=282760)

Xp.Warrior 05-10-2012 10:00 PM

User Gender For Postbit_Legacy
 
1 Attachment(s)
Hi And Assalam-o-Alaikum
Today I Make User Gender System For Users
On Registration User Select User Gender As "Male" And "Female" Any One.

Instructions
?Upload? ALL the Gender GIF pics to your forum root images/misc/ Folder.
If You Useing Any Skin Then Upload Gender Gifs In forum root skin/misc Folder.

ACP -> User Profile Fields -> Add New User Profile Field ->Profile Field Type -> Single-Selection Menu
Add New User Profile Field Single-Selection Menu

Title = User Gender
Description = Select Your Gender.
Profile Field Category = (Uncategorized)
Options = Male And Below Female
Set Default = None
Display Order = You Select this (dependant on how many you already have)
Field Required = yes, at registration and profile updating
Field Editable by User = Yes
Private Field = No
Field Searchable on Members List = No
Show on Members List = Yes


Optional Input:

Allow user to input their own value for this option = No
Max length of allowed user input = 100
Field Length = 25
Regular Expression = Leave this Blank


Display Page:

Which page displays this option? = Edit Your Details

Then, In your Admin Control Panel (ACP)
For Postbit_lagacy
ACP -> Styles & Templates -> Style Manager -> Postbit Templates -> postbit_lagacy
Find
Code:

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</if>
                        <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                        $template_hook[postbit_userinfo_left]

ADD BELOW
Code:

<b><if condition="$post[field6]"><img src="$stylevar[imgdir_misc]/$post[fieldX].gif" alt="$post[fieldX]" /></if></b>
Replace the ?X? with your FieldID number

Enjoy This Mod
If Any One Have Any Problem Then Tell To Me.
I Hope Member Like This.

Boofo 05-11-2012 05:14 AM

Nice images. ;)

Can you ad a text file to the ZIP file with the instructions in it so users will have it available in case of a re-install?

Xp.Warrior 05-11-2012 06:44 AM

Quote:

Originally Posted by Boofo (Post 2328282)
Nice images. ;)

Can you ad a text file to the ZIP file with the instructions in it so users will have it available in case of a re-install?

Done Bro :)

Dr.osamA 05-11-2012 07:04 PM

Excellent = 5 Stars
i like it
keep it up bro
tank you

Alan_SP 05-14-2012 12:05 AM

You have small error here:

HTML Code:

<b><if condition="$post[field6]"><img src="$stylevar[imgdir_misc]/$post[fieldX].gif" alt="$post[fieldX]" /></if></b>
HTML Code:

<b><if condition="$post[fieldX]"><img src="$stylevar[imgdir_misc]/$post[fieldX].gif" alt="$post[fieldX]" /></if></b>
You should also check if there's value specified in certain (X) field, not 6 specifically. Typo I'm sure, but could confuse some people.

Also, you need to mention that images has to have same name as values you have. It's important for different languages. So, if site uses different language, file names have to be changed accordingly. And in case of special characters it could be a problem, if it is not supported by OS, file couldn't be named with them, so you need to use different words to describe gender.

And just my opinion about section where it is posted, this is template modification, not a mod.

Xp.Warrior 05-14-2012 12:20 PM

Quote:

Originally Posted by Alan_SP (Post 2329144)
You have small error here:

HTML Code:

<b><if condition="$post[field6]"><img src="$stylevar[imgdir_misc]/$post[fieldX].gif" alt="$post[fieldX]" /></if></b>
HTML Code:

<b><if condition="$post[fieldX]"><img src="$stylevar[imgdir_misc]/$post[fieldX].gif" alt="$post[fieldX]" /></if></b>
You should also check if there's value specified in certain (X) field, not 6 specifically. Typo I'm sure, but could confuse some people.

Also, you need to mention that images has to have same name as values you have. It's important for different languages. So, if site uses different language, file names have to be changed accordingly. And in case of special characters it could be a problem, if it is not supported by OS, file couldn't be named with them, so you need to use different words to describe gender.

And just my opinion about section where it is posted, this is template modification, not a mod.

Ya Bro Thanks For Your Info And Comment

OnlyTouch 12-19-2015 02:03 PM

Good mod, installed!


All times are GMT. The time now is 01:59 PM.

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.01188 seconds
  • Memory Usage 1,736KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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