Gender icon beside nickname in Postbit

  • Thread starter Thread starter AdminAdmin is verified member.
  • Start date Start date
Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
This mini modification allows you to display a gender icon beside the nicknames in postbit:
- Live Demo: BlackBerry10 Forum
tuoitrevnbiz06062013.jpg

tuoitrevnbiz06062013.jpg


GUIDE

01) Create a custom Profilefield 'Gender'

01.01) AdminCP » Profilefields » Add Profilefield
01.02) Profilefield type = Dropdown » Next
01.03) Title = Gender » Description = Gender » Options = boy AND girl (one on each line)
01.04) AdminCP » Profilefields » Manage Profilefields » notice the Name of the created Profilefield 'Gender' (f.e. field10)


So now, your users are able to select 'boy' or 'girl' in UserCP


02) CSS customizing

02.01) AdminCP » Search Templates » Search for 'postbit_legacy' » Edit
02.02) Search for '{vb:raw memberaction_dropdown}' » below add:

<vb:if condition="$post[field10] == 'boy'"><img src="/images/boy.png" alt="Boy"></vb:if>
<vb:if condition="$post[field10] == 'girl'"><img src="/images/girl.png" alt ="Girl"></vb:if>

Insert your noticed number from step 01.04 here!

02.03) Download 'boy.png' and 'girl.png' (rightclick » Save As)
02.04) Upload both files to /forumroot/images


03) Last step
03.01) Go to your UserCP » Select your gender
03.02) Take a look at your Postbit » Enjoy!
03.03) Mark as installed


Feel free to contact me if you have problems setting it up!
Cheers - Dennis
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
814
AdminAdmin is verified member.
Admin
Admin
Replies
1
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
783
AdminAdmin is verified member.
Admin
cuongpro9x
Replies
0
Views
2K
cuongpro9xcuongpro9x is verified member.
cuongpro9x
Admin
Replies
0
Views
852
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Back
Top