PDA

View Full Version : Add-On Releases - User Gender For Postbit_Legacy


Xp.Warrior
05-10-2012, 10:00 PM
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
<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
<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
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:

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

<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
You have small error here:

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

<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!