Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Gender For Postbit_Legacy Details »»
User Gender For Postbit_Legacy
Version: 1.00, by Xp.Warrior Xp.Warrior is offline
Developer Last Online: Aug 2013 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.2 Rating:
Released: 05-10-2012 Last Update: 05-10-2012 Installs: 13
Template Edits
Code Changes Additional Files  
No support by the author.

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.

Download Now

File Type: zip User Gender.zip (3.1 KB, 108 views)

Screenshots

File Type: jpg gender.jpg (85.4 KB, 0 views)
File Type: png 2.png (12.4 KB, 0 views)
File Type: png 3.png (1,007 Bytes, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Dr.osamA, sodasusu

Comments
  #2  
Old 05-11-2012, 05:14 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 05-11-2012, 06:44 AM
Xp.Warrior Xp.Warrior is offline
 
Join Date: Mar 2012
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
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
Reply With Quote
  #4  
Old 05-11-2012, 07:04 PM
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Posts: 979
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent = 5 Stars
i like it
keep it up bro
tank you
Reply With Quote
  #5  
Old 05-14-2012, 12:05 AM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 05-14-2012, 12:20 PM
Xp.Warrior Xp.Warrior is offline
 
Join Date: Mar 2012
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alan_SP View Post
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
Reply With Quote
  #7  
Old 12-19-2015, 02:03 PM
OnlyTouch's Avatar
OnlyTouch OnlyTouch is offline
 
Join Date: Nov 2015
Location: Moscow
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good mod, installed!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:06 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04503 seconds
  • Memory Usage 2,306KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (2)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (4)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete